vendor: 8,210 bytes, lines 1-9
1var Xh=e=>{throw TypeError(e)};var Jl=(e,t,r)=>t.has(e)||Xh("Cannot "+r);var T=(e,t,r)=>(Jl(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?Xh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(Jl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),We=(e,t,r)=>(Jl(e,t,"access private method"),r);var Mi=(e,t,r,n)=>({set _(s){Q(e,t,s,r)},get _(){return T(e,t,n)}});function Qw(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Um(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zm={exports:{}},ml={},Bm={exports:{}},X={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var _i=Symbol.for("react.element"),Yw=Symbol.for("react.portal"),Jw=Symbol.for("react.fragment"),Xw=Symbol.for("react.strict_mode"),Zw=Symbol.for("react.profiler"),ex=Symbol.for("react.provider"),tx=Symbol.for("react.context"),rx=Symbol.for("react.forward_ref"),nx=Symbol.for("react.suspense"),sx=Symbol.for("react.memo"),ox=Symbol.for("react.lazy"),Zh=Symbol.iterator;function ix(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Wm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vm=Object.assign,Hm={};function ro(e,t,r){this.props=e,this.context=t,this.refs=Hm,this.updater=r||Wm}ro.prototype.isReactComponent={};ro.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")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qm(){}qm.prototype=ro.prototype;function yd(e,t,r){this.props=e,this.context=t,this.refs=Hm,this.updater=r||Wm}var wd=yd.prototype=new qm;wd.constructor=yd;Vm(wd,ro.prototype);wd.isPureReactComponent=!0;var ef=Array.isArray,Km=Object.prototype.hasOwnProperty,xd={current:null},Gm={key:!0,ref:!0,__self:!0,__source:!0};function Qm(e,t,r){var n,s={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Km.call(t,n)&&!Gm.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:_i,type:e,key:o,ref:i,props:s,_owner:xd.current}}function ax(e,t){return{$$typeof:_i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bd(e){return typeof e=="object"&&e!==null&&e.$$typeof===_i}function lx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var tf=/\/+/g;function Xl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lx(""+e.key):t.toString(36)}function ma(e,t,r,n,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case _i:case Yw:i=!0}}if(i)return i=e,s=s(i),e=n===""?"."+Xl(i,0):n,ef(s)?(r="",e!=null&&(r=e.replace(tf,"$&/")+"/"),ma(s,t,r,"",function(c){return c})):s!=null&&(bd(s)&&(s=ax(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(tf,"$&/")+"/")+e)),t.push(s)),1;if(i=0,n=n===""?".":n+":",ef(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+Xl(o,a);i+=ma(o,t,r,l,s)}else if(l=ix(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+Xl(o,a++),i+=ma(o,t,r,l,s);else if(o==="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 i}function Fi(e,t,r){if(e==null)return e;var n=[],s=0;return ma(e,n,"","",function(o){return t.call(r,o,s++)}),n}function cx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},ga={transition:null},ux={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:ga,ReactCurrentOwner:xd};function Ym(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Fi,forEach:function(e,t,r){Fi(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Fi(e,function(){t++}),t},toArray:function(e){return Fi(e,function(t){return t})||[]},only:function(e){if(!bd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=ro;X.Fragment=Jw;X.Profiler=Zw;X.PureComponent=yd;X.StrictMode=Xw;X.Suspense=nx;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ux;X.act=Ym;X.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Vm({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=xd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Km.call(t,l)&&!Gm.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:_i,type:e.type,key:s,ref:o,props:n,_owner:i}};X.createContext=function(e){return e={$$typeof:tx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ex,_context:e},e.Consumer=e};X.createElement=Qm;X.createFactory=function(e){var t=Qm.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:rx,render:e}};X.isValidElement=bd;X.lazy=function(e){return{$$typeof:ox,_payload:{_status:-1,_result:e},_init:cx}};X.memo=function(e,t){return{$$typeof:sx,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=ga.transition;ga.transition={};try{e()}finally{ga.transition=t}};X.unstable_act=Ym;X.useCallback=function(e,t){return tt.current.useCallback(e,t)};X.useContext=function(e){return tt.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};X.useEffect=function(e,t){return tt.current.useEffect(e,t)};X.useId=function(){return tt.current.useId()};X.useImperativeHandle=function(e,t,r){return tt.current.useImperativeHandle(e,t,r)};X.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return tt.current.useMemo(e,t)};X.useReducer=function(e,t,r){return tt.current.useReducer(e,t,r)};X.useRef=function(e){return tt.current.useRef(e)};
vendor: 5,274 bytes, lines 9-25
9X.useState=function(e){return tt.current.useState(e)};X.useSyncExternalStore=function(e,t,r){return tt.current.useSyncExternalStore(e,t,r)};X.useTransition=function(){return tt.current.useTransition()};X.version="18.3.1";Bm.exports=X;var w=Bm.exports;const O=Um(w),_d=Qw({__proto__:null,default:O},[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 dx=w,hx=Symbol.for("react.element"),fx=Symbol.for("react.fragment"),px=Object.prototype.hasOwnProperty,mx=dx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gx={key:!0,ref:!0,__self:!0,__source:!0};function Jm(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)px.call(t,n)&&!gx.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:hx,type:e,key:o,ref:i,props:s,_owner:mx.current}}ml.Fragment=fx;ml.jsx=Jm;ml.jsxs=Jm;zm.exports=ml;var u=zm.exports,Xm={exports:{}},yt={},Zm={exports:{}},eg={};/** 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(C,N){var P=C.length;C.push(N);e:for(;0<P;){var q=P-1>>>1,z=C[q];if(0<s(z,N))C[q]=N,C[P]=z,P=q;else break e}}function r(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var N=C[0],P=C.pop();if(P!==N){C[0]=P;e:for(var q=0,z=C.length,Y=z>>>1;q<Y;){var Z=2*(q+1)-1,Ce=C[Z],Be=Z+1,ne=C[Be];if(0>s(Ce,P))Be<z&&0>s(ne,Ce)?(C[q]=ne,C[Be]=P,q=Be):(C[q]=Ce,C[Z]=P,q=Z);else if(Be<z&&0>s(ne,P))C[q]=ne,C[Be]=P,q=Be;else break e}}return N}function s(C,N){var P=C.sortIndex-N.sortIndex;return P!==0?P:C.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,h=null,p=3,f=!1,x=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(C){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=C)n(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(c)}}function _(C){if(m=!1,y(C),!x)if(r(l)!==null)x=!0,F(S);else{var N=r(c);N!==null&&W(_,N.startTime-C)}}function S(C,N){x=!1,m&&(m=!1,v(j),j=-1),f=!0;var P=p;try{for(y(N),h=r(l);h!==null&&(!(h.expirationTime>N)||C&&!B());){var q=h.callback;if(typeof q=="function"){h.callback=null,p=h.priorityLevel;var z=q(h.expirationTime<=N);N=e.unstable_now(),typeof z=="function"?h.callback=z:h===r(l)&&n(l),y(N)}else n(l);h=r(l)}if(h!==null)var Y=!0;else{var Z=r(c);Z!==null&&W(_,Z.startTime-N),Y=!1}return Y}finally{h=null,p=P,f=!1}}var E=!1,k=null,j=-1,A=5,I=-1;function B(){return!(e.unstable_now()-I<A)}function D(){if(k!==null){var C=e.unstable_now();I=C;var N=!0;try{N=k(!0,C)}finally{N?K():(E=!1,k=null)}}else E=!1}var K;if(typeof g=="function")K=function(){g(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,L=$.port2;$.port1.onmessage=D,K=function(){L.postMessage(null)}}else K=function(){b(D,0)};function F(C){k=C,E||(E=!0,K())}function W(C,N){j=b(function(){C(e.unstable_now())},N)}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(C){C.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,F(S))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(C){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var P=p;p=N;try{return C()}finally{p=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,N){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var P=p;p=C;try{return N()}finally{p=P}},e.unstable_scheduleCallback=function(C,N,P){var q=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?q+P:q):P=q,C){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=P+z,C={id:d++,callback:N,priorityLevel:C,startTime:P,expirationTime:z,sortIndex:-1},P>q?(C.sortIndex=P,t(c,C),r(l)===null&&C===r(c)&&(m?(v(j),j=-1):m=!0,W(_,P-q))):(C.sortIndex=z,t(l,C),x||f||(x=!0,F(S))),C},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(C){var N=p;return function(){var P=p;p=N;try{return C.apply(this,arguments)}finally{p=P}}}})(eg);Zm.exports=eg;
vendor: 4,228 bytes, lines 25-33
25var vx=Zm.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 yx=w,vt=vx;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var tg=new Set,Vo={};function qn(e,t){Ks(e,t),Ks(e+"Capture",t)}function Ks(e,t){for(Vo[e]=t,e=0;e<t.length;e++)tg.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=Object.prototype.hasOwnProperty,wx=/^[: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]*$/,rf={},nf={};function xx(e){return Yc.call(nf,e)?!0:Yc.call(rf,e)?!1:wx.test(e)?nf[e]=!0:(rf[e]=!0,!1)}function bx(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _x(e,t,r,n){if(t===null||typeof t>"u"||bx(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new rt(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){ze[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sd=/[\-:]([a-z])/g;function Ed(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sd,Ed);ze[t]=new rt(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(Sd,Ed);ze[t]=new rt(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(Sd,Ed);ze[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kd(e,t,r,n){var s=ze.hasOwnProperty(t)?ze[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_x(t,r,s,n)&&(r=null),n||s===null?xx(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var kr=yx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),gs=Symbol.for("react.portal"),vs=Symbol.for("react.fragment"),Cd=Symbol.for("react.strict_mode"),Jc=Symbol.for("react.profiler"),rg=Symbol.for("react.provider"),ng=Symbol.for("react.context"),Td=Symbol.for("react.forward_ref"),Xc=Symbol.for("react.suspense"),Zc=Symbol.for("react.suspense_list"),jd=Symbol.for("react.memo"),Mr=Symbol.for("react.lazy"),sg=Symbol.for("react.offscreen"),sf=Symbol.iterator;function po(e){return e===null||typeof e!="object"?null:(e=sf&&e[sf]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Zl;function Eo(e){if(Zl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Zl=t&&t[1]||""}return` 34`+Zl+e}var ec=!1;function tc(e,t){if(!e||ec)return"";ec=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var s=c.stack.split(` 35`),o=n.stack.split(` 36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 37`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ec=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Eo(e):""}function Sx(e){switch(e.tag){case 5:return Eo(e.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return e=tc(e.type,!1),e;case 11:return e=tc(e.type.render,!1),e;case 1:return e=tc(e.type,!0),e;default:return""}}function eu(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 vs:return"Fragment";case gs:return"Portal";case Jc:return"Profiler";case Cd:return"StrictMode";case Xc:return"Suspense";case Zc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ng:return(e.displayName||"Context")+".Consumer";case rg:return(e._context.displayName||"Context")+".Provider";case Td:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jd:return t=e.displayName||null,t!==null?t:eu(e.type)||"Memo";case Mr:t=e._payload,e=e._init;try{return eu(e(t))}catch{}}return null}function Ex(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 eu(t);case 8:return t===Cd?"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 cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function og(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kx(e){var t=og(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zi(e){e._valueTracker||(e._valueTracker=kx(e))}function ig(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=og(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Oa(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 tu(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function of(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=cn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ag(e,t){t=t.checked,t!=null&&kd(e,"checked",t,!1)}function ru(e,t){ag(e,t);var r=cn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nu(e,t.type,r):t.hasOwnProperty("defaultValue")&&nu(e,t.type,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function af(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function nu(e,t,r){(t!=="number"||Oa(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ko=Array.isArray;function Ns(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+cn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function su(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lf(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(ko(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:cn(r)}}function lg(e,t){var r=cn(t.value),n=cn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function cf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cg(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 ou(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,ug=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ho(e,t){if(t){var r=e.firstChild;
vendor: 10,005 bytes, line 37
37if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Po={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},Cx=["Webkit","ms","Moz","O"];Object.keys(Po).forEach(function(e){Cx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Po[t]=Po[e]})});function dg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Po.hasOwnProperty(e)&&Po[e]?(""+t).trim():t+"px"}function hg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=dg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var Tx=ye({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 iu(e,t){if(t){if(Tx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function au(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 lu=null;function Nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cu=null,Ps=null,Rs=null;function uf(e){if(e=ki(e)){if(typeof cu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=xl(t),cu(e.stateNode,e.type,t))}}function fg(e){Ps?Rs?Rs.push(e):Rs=[e]:Ps=e}function pg(){if(Ps){var e=Ps,t=Rs;if(Rs=Ps=null,uf(e),t)for(e=0;e<t.length;e++)uf(t[e])}}function mg(e,t){return e(t)}function gg(){}var rc=!1;function vg(e,t,r){if(rc)return e(t,r);rc=!0;try{return mg(e,t,r)}finally{rc=!1,(Ps!==null||Rs!==null)&&(gg(),pg())}}function qo(e,t){var r=e.stateNode;if(r===null)return null;var n=xl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var uu=!1;if(yr)try{var mo={};Object.defineProperty(mo,"passive",{get:function(){uu=!0}}),window.addEventListener("test",mo,mo),window.removeEventListener("test",mo,mo)}catch{uu=!1}function jx(e,t,r,n,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Ro=!1,Ia=null,La=!1,du=null,Nx={onError:function(e){Ro=!0,Ia=e}};function Px(e,t,r,n,s,o,i,a,l){Ro=!1,Ia=null,jx.apply(Nx,arguments)}function Rx(e,t,r,n,s,o,i,a,l){if(Px.apply(this,arguments),Ro){if(Ro){var c=Ia;Ro=!1,Ia=null}else throw Error(R(198));La||(La=!0,du=c)}}function Kn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function yg(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 df(e){if(Kn(e)!==e)throw Error(R(188))}function Ax(e){var t=e.alternate;if(!t){if(t=Kn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var o=s.alternate;if(o===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===r)return df(s),e;if(o===n)return df(s),t;o=o.sibling}throw Error(R(188))}if(r.return!==n.return)r=s,n=o;else{for(var i=!1,a=s.child;a;){if(a===r){i=!0,r=s,n=o;break}if(a===n){i=!0,n=s,r=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===r){i=!0,r=o,n=s;break}if(a===n){i=!0,n=o,r=s;break}a=a.sibling}if(!i)throw Error(R(189))}}if(r.alternate!==n)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function wg(e){return e=Ax(e),e!==null?xg(e):null}function xg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xg(e);if(t!==null)return t;e=e.sibling}return null}var bg=vt.unstable_scheduleCallback,hf=vt.unstable_cancelCallback,Ox=vt.unstable_shouldYield,Ix=vt.unstable_requestPaint,Se=vt.unstable_now,Lx=vt.unstable_getCurrentPriorityLevel,Pd=vt.unstable_ImmediatePriority,_g=vt.unstable_UserBlockingPriority,$a=vt.unstable_NormalPriority,$x=vt.unstable_LowPriority,Sg=vt.unstable_IdlePriority,gl=null,rr=null;function Dx(e){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:Ux,Mx=Math.log,Fx=Math.LN2;function Ux(e){return e>>>=0,e===0?32:31-(Mx(e)/Fx|0)|0}var Wi=64,Vi=4194304;function Co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Da(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=Co(a):(o&=i,o!==0&&(n=Co(o)))}else i=r&~s,i!==0?n=Co(i):o!==0&&(n=Co(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Bt(t),s=1<<r,n|=e[r],t&=~s;return n}function zx(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 Bx(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Bt(o),a=1<<i,l=s[i];l===-1?(!(a&r)||a&n)&&(s[i]=zx(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Eg(){var e=Wi;return Wi<<=1,!(Wi&4194240)&&(Wi=64),e}function nc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Si(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=r}function Wx(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-Bt(r),o=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~o}}function Rd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Bt(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var se=0;function kg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cg,Ad,Tg,jg,Ng,fu=!1,Hi=[],Xr=null,Zr=null,en=null,Ko=new Map,Go=new Map,zr=[],Vx="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 ff(e,t){switch(e){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":Ko.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Go.delete(t.pointerId)}}function go(e,t,r,n,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ki(t),t!==null&&Ad(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Hx(e,t,r,n,s){switch(t){case"focusin":return Xr=go(Xr,e,t,r,n,s),!0;case"dragenter":return Zr=go(Zr,e,t,r,n,s),!0;case"mouseover":return en=go(en,e,t,r,n,s),!0;case"pointerover":var o=s.pointerId;return Ko.set(o,go(Ko.get(o)||null,e,t,r,n,s)),!0;case"gotpointercapture":return o=s.pointerId,Go.set(o,go(Go.get(o)||null,e,t,r,n,s)),!0}return!1}function Pg(e){var t=Tn(e.target);if(t!==null){var r=Kn(t);if(r!==null){if(t=r.tag,t===13){if(t=yg(r),t!==null){e.blockedOn=t,Ng(e.priority,function(){Tg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function va(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=pu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);lu=n,r.target.dispatchEvent(n),lu=null}else return t=ki(r),t!==null&&Ad(t),e.blockedOn=r,!1;t.shift()}return!0}function pf(e,t,r){va(e)&&r.delete(t)}function qx(){fu=!1,Xr!==null&&va(Xr)&&(Xr=null),Zr!==null&&va(Zr)&&(Zr=null),en!==null&&va(en)&&(en=null),Ko.forEac
vendor: 11,841 bytes, line 37
37h(pf),Go.forEach(pf)}function vo(e,t){e.blockedOn===t&&(e.blockedOn=null,fu||(fu=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,qx)))}function Qo(e){function t(s){return vo(s,e)}if(0<Hi.length){vo(Hi[0],e);for(var r=1;r<Hi.length;r++){var n=Hi[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xr!==null&&vo(Xr,e),Zr!==null&&vo(Zr,e),en!==null&&vo(en,e),Ko.forEach(t),Go.forEach(t),r=0;r<zr.length;r++)n=zr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<zr.length&&(r=zr[0],r.blockedOn===null);)Pg(r),r.blockedOn===null&&zr.shift()}var As=kr.ReactCurrentBatchConfig,Ma=!0;function Kx(e,t,r,n){var s=se,o=As.transition;As.transition=null;try{se=1,Od(e,t,r,n)}finally{se=s,As.transition=o}}function Gx(e,t,r,n){var s=se,o=As.transition;As.transition=null;try{se=4,Od(e,t,r,n)}finally{se=s,As.transition=o}}function Od(e,t,r,n){if(Ma){var s=pu(e,t,r,n);if(s===null)fc(e,t,n,Fa,r),ff(e,n);else if(Hx(s,e,t,r,n))n.stopPropagation();else if(ff(e,n),t&4&&-1<Vx.indexOf(e)){for(;s!==null;){var o=ki(s);if(o!==null&&Cg(o),o=pu(e,t,r,n),o===null&&fc(e,t,n,Fa,r),o===s)break;s=o}s!==null&&n.stopPropagation()}else fc(e,t,n,null,r)}}var Fa=null;function pu(e,t,r,n){if(Fa=null,e=Nd(n),e=Tn(e),e!==null)if(t=Kn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fa=e,null}function Rg(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(Lx()){case Pd:return 1;case _g:return 4;case $a:case $x:return 16;case Sg:return 536870912;default:return 16}default:return 16}}var Qr=null,Id=null,ya=null;function Ag(){if(ya)return ya;var e,t=Id,r=t.length,n,s="value"in Qr?Qr.value:Qr.textContent,o=s.length;for(e=0;e<r&&t[e]===s[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===s[o-n];n++);return ya=s.slice(e,1<n?1-n:void 0)}function wa(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 qi(){return!0}function mf(){return!1}function wt(e){function t(r,n,s,o,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qi:mf,this.isPropagationStopped=mf,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),t}var no={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=wt(no),Ei=ye({},no,{view:0,detail:0}),Qx=wt(Ei),sc,oc,yo,vl=ye({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$d,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!==yo&&(yo&&e.type==="mousemove"?(sc=e.screenX-yo.screenX,oc=e.screenY-yo.screenY):oc=sc=0,yo=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:oc}}),gf=wt(vl),Yx=ye({},vl,{dataTransfer:0}),Jx=wt(Yx),Xx=ye({},Ei,{relatedTarget:0}),ic=wt(Xx),Zx=ye({},no,{animationName:0,elapsedTime:0,pseudoElement:0}),eb=wt(Zx),tb=ye({},no,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rb=wt(tb),nb=ye({},no,{data:0}),vf=wt(nb),sb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ob={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"},ib={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ab(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ib[e])?!!t[e]:!1}function $d(){return ab}var lb=ye({},Ei,{key:function(e){if(e.key){var t=sb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ob[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$d,charCode:function(e){return e.type==="keypress"?wa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cb=wt(lb),ub=ye({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yf=wt(ub),db=ye({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$d}),hb=wt(db),fb=ye({},no,{propertyName:0,elapsedTime:0,pseudoElement:0}),pb=wt(fb),mb=ye({},vl,{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}),gb=wt(mb),vb=[9,13,27,32],Dd=yr&&"CompositionEvent"in window,Ao=null;yr&&"documentMode"in document&&(Ao=document.documentMode);var yb=yr&&"TextEvent"in window&&!Ao,Og=yr&&(!Dd||Ao&&8<Ao&&11>=Ao),wf=" ",xf=!1;function Ig(e,t){switch(e){case"keyup":return vb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function wb(e,t){switch(e){case"compositionend":return Lg(t);case"keypress":return t.which!==32?null:(xf=!0,wf);case"textInput":return e=t.data,e===wf&&xf?null:e;default:return null}}function xb(e,t){if(ys)return e==="compositionend"||!Dd&&Ig(e,t)?(e=Ag(),ya=Id=Qr=null,ys=!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 Og&&t.locale!=="ko"?null:t.data;default:return null}}var bb={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 bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bb[e.type]:t==="textarea"}function $g(e,t,r,n){fg(n),t=Ua(t,"onChange"),0<t.length&&(r=new Ld("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Oo=null,Yo=null;function _b(e){Kg(e,0)}function yl(e){var t=bs(e);if(ig(t))return e}function Sb(e,t){if(e==="change")return t}var Dg=!1;if(yr){var ac;if(yr){var lc="oninput"in document;if(!lc){var _f=document.createElement("div");_f.setAttribute("oninput","return;"),lc=typeof _f.oninput=="function"}ac=lc}else ac=!1;Dg=ac&&(!document.documentMode||9<document.documentMode)}function Sf(){Oo&&(Oo.detachEvent("onpropertychange",Mg),Yo=Oo=null)}function Mg(e){if(e.propertyName==="value"&&yl(Yo)){var t=[];$g(t,Yo,e,Nd(e)),vg(_b,t)}}function Eb(e,t,r){e==="focusin"?(Sf(),Oo=t,Yo=r,Oo.attachEvent("onpropertychange",Mg)):e==="focusout"&&Sf()}function kb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Yo)}function Cb(e,t){if(e==="click")return yl(t)}function Tb(e,t){if(e==="input"||e==="change")return yl(t)}function jb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:jb;function Jo(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Yc.call(t,s)||!Vt(e[s],t[s]))return!1}return!0}function Ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kf(e,t){var r=Ef(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ef(r)}}function Fg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ug(){for(var e=window,t=Oa();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Oa(e.document)}return t}function Md(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 Nb(e){var t=Ug(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Fg(r.ownerDocument.documentElement,r)){if(n!==null&&Md(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=kf(r,o);var i=kf(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pb=yr&&"documentMode"in document&&11>=document.documentMode,ws=null,mu=null,Io=null,gu=!1;function Cf(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gu||ws==null||ws!==Oa(n)||(n=ws,"selectionStart"in n&&Md(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Io&&Jo(Io,n)||(Io=n,n=Ua(mu,"onSelect"),0<n.length&&(t=new Ld("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ws)))}function Ki(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var xs={animationend:Ki("Animation","AnimationEnd"),animationiteration:Ki("Animation","AnimationIteration"),animationstart:Ki("Animation","AnimationStart"),transitionend:Ki("Transition","TransitionEnd")},cc={},zg={};yr&&(zg=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function wl(e){if(cc[e])return cc[e];if(!xs[e])return e;var t=xs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in zg)return cc[e]=t[r];return e}var Bg=wl("animationend"),Wg=wl("animationiteration"),Vg=wl("animationstart"),Hg=wl("transitionend"),qg=new Map,Tf="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 fn(e,t){qg.set(e,t),qn(t,[e])}for(var uc=0;uc<Tf.length;uc++){var dc=Tf[uc],Rb=dc.toLowerCase(),Ab=dc[0].toUpperCase()+dc.slice(1);fn(Rb,"on"+Ab)}fn(Bg,"onAnimationEnd");fn(Wg,"onAnimationIteration");fn(Vg,"onAnimationStart");fn("dblclick","onDoubleClick");fn("focusin","onFocus");fn("focusout","onBlur");fn(Hg,"onTransitionEnd");Ks("onMouseEnter",["mouseout","mouseover"]);Ks("onMouseLeave",["mouseout","mouseover"]);Ks("onPointerEnter",["pointerout","pointerover"]);Ks("onPointerLeave",["pointerout","pointerover"]);qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qn("onBeforeInput",["compositionend","keypress","textInput","paste"]);qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),Ob=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function jf(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Rx(n,t,void 0,e),e.currentTarget=null}function Kg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var a=n[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;jf(s,a,c),o=l}else for(i=0;i<n.length;i++){if(a=n[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;jf(s,a,c),o=l}}}if(La)throw e=du,La=!1,du=null,e}function ce(e,t){var r=t[bu];r===void 0&&(r=t[bu]=new Set);var n=e+"__bubble";r.has(n)||(Gg(t,e,2,!1),r.add(n))}function hc(e,t,r){var n=0;t&&(n|=4),Gg(r,e,n,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function Xo(e){if(!e[Gi]){e[Gi]=!0,tg.forEach(function(r){r!=="selectionchange"&&(Ob.has(r)||hc(r,!1,e),hc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,hc("selectionchange",!1,t))}}function Gg(e,t,r,n){switch(Rg(t)){case 1:var s=Kx;break;case 4:s=Gx;break;default:s=Od}r=s.bind(null,t,r,e),s=void 0,!uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function fc(e,t,r,n,s){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var a=n.stateNode.containerInfo;
vendor: 23,405 bytes, lines 37-38
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=n.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=Tn(a),i===null)return;if(l=i.tag,l===5||l===6){n=o=i;continue e}a=a.parentNode}}n=n.return}vg(function(){var c=o,d=Nd(r),h=[];e:{var p=qg.get(e);if(p!==void 0){var f=Ld,x=e;switch(e){case"keypress":if(wa(r)===0)break e;case"keydown":case"keyup":f=cb;break;case"focusin":x="focus",f=ic;break;case"focusout":x="blur",f=ic;break;case"beforeblur":case"afterblur":f=ic;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=hb;break;case Bg:case Wg:case Vg:f=eb;break;case Hg:f=pb;break;case"scroll":f=Qx;break;case"wheel":f=gb;break;case"copy":case"cut":case"paste":f=rb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=yf}var m=(t&4)!==0,b=!m&&e==="scroll",v=m?p!==null?p+"Capture":null:p;m=[];for(var g=c,y;g!==null;){y=g;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,v!==null&&(_=qo(g,v),_!=null&&m.push(Zo(g,_,y)))),b)break;g=g.return}0<m.length&&(p=new f(p,x,null,r,d),h.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==lu&&(x=r.relatedTarget||r.fromElement)&&(Tn(x)||x[wr]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=r.relatedTarget||r.toElement,f=c,x=x?Tn(x):null,x!==null&&(b=Kn(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=c),f!==x)){if(m=gf,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=yf,_="onPointerLeave",v="onPointerEnter",g="pointer"),b=f==null?p:bs(f),y=x==null?p:bs(x),p=new m(_,g+"leave",f,r,d),p.target=b,p.relatedTarget=y,_=null,Tn(d)===c&&(m=new m(v,g+"enter",x,r,d),m.target=y,m.relatedTarget=b,_=m),b=_,f&&x)t:{for(m=f,v=x,g=0,y=m;y;y=ns(y))g++;for(y=0,_=v;_;_=ns(_))y++;for(;0<g-y;)m=ns(m),g--;for(;0<y-g;)v=ns(v),y--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=ns(m),v=ns(v)}m=null}else m=null;f!==null&&Nf(h,p,f,m,!1),x!==null&&b!==null&&Nf(h,b,x,m,!0)}}e:{if(p=c?bs(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var S=Sb;else if(bf(p))if(Dg)S=Tb;else{S=kb;var E=Eb}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Cb);if(S&&(S=S(e,c))){$g(h,S,r,d);break e}E&&E(e,p,c),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&nu(p,"number",p.value)}switch(E=c?bs(c):window,e){case"focusin":(bf(E)||E.contentEditable==="true")&&(ws=E,mu=c,Io=null);break;case"focusout":Io=mu=ws=null;break;case"mousedown":gu=!0;break;case"contextmenu":case"mouseup":case"dragend":gu=!1,Cf(h,r,d);break;case"selectionchange":if(Pb)break;case"keydown":case"keyup":Cf(h,r,d)}var k;if(Dd)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else ys?Ig(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Og&&r.locale!=="ko"&&(ys||j!=="onCompositionStart"?j==="onCompositionEnd"&&ys&&(k=Ag()):(Qr=d,Id="value"in Qr?Qr.value:Qr.textContent,ys=!0)),E=Ua(c,j),0<E.length&&(j=new vf(j,e,null,r,d),h.push({event:j,listeners:E}),k?j.data=k:(k=Lg(r),k!==null&&(j.data=k)))),(k=yb?wb(e,r):xb(e,r))&&(c=Ua(c,"onBeforeInput"),0<c.length&&(d=new vf("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:c}),d.data=k))}Kg(h,t)})}function Zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ua(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=qo(e,r),o!=null&&n.unshift(Zo(e,o,s)),o=qo(e,t),o!=null&&n.push(Zo(e,o,s))),e=e.return}return n}function ns(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nf(e,t,r,n,s){for(var o=t._reactName,i=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,s?(l=qo(r,o),l!=null&&i.unshift(Zo(r,l,a))):s||(l=qo(r,o),l!=null&&i.push(Zo(r,l,a)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Ib=/\r\n?/g,Lb=/\u0000|\uFFFD/g;function Pf(e){return(typeof e=="string"?e:""+e).replace(Ib,` 38`).replace(Lb,"")}function Qi(e,t,r){if(t=Pf(t),Pf(e)!==t&&r)throw Error(R(425))}function za(){}var vu=null,yu=null;function wu(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 xu=typeof setTimeout=="function"?setTimeout:void 0,$b=typeof clearTimeout=="function"?clearTimeout:void 0,Rf=typeof Promise=="function"?Promise:void 0,Db=typeof queueMicrotask=="function"?queueMicrotask:typeof Rf<"u"?function(e){return Rf.resolve(null).then(e).catch(Mb)}:xu;function Mb(e){setTimeout(function(){throw e})}function pc(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Qo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Qo(t)}function tn(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 Af(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),Zt="__reactFiber$"+so,ei="__reactProps$"+so,wr="__reactContainer$"+so,bu="__reactEvents$"+so,Fb="__reactListeners$"+so,Ub="__reactHandles$"+so;function Tn(e){var t=e[Zt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[wr]||r[Zt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Af(e);e!==null;){if(r=e[Zt])return r;e=Af(e)}return t}e=r,r=e.parentNode}return null}function ki(e){return e=e[Zt]||e[wr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function xl(e){return e[ei]||null}var _u=[],_s=-1;function pn(e){return{current:e}}function ue(e){0>_s||(e.current=_u[_s],_u[_s]=null,_s--)}function ae(e,t){_s++,_u[_s]=e.current,e.current=t}var un={},Ge=pn(un),it=pn(!1),Fn=un;function Gs(e,t){var r=e.type.contextTypes;if(!r)return un;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function at(e){return e=e.childContextTypes,e!=null}function Ba(){ue(it),ue(Ge)}function Of(e,t,r){if(Ge.current!==un)throw Error(R(168));ae(Ge,t),ae(it,r)}function Qg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(R(108,Ex(e)||"Unknown",s));return ye({},r,n)}function Wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||un,Fn=Ge.current,ae(Ge,e),ae(it,it.current),!0}function If(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=Qg(e,t,Fn),n.__reactInternalMemoizedMergedChildContext=e,ue(it),ue(Ge),ae(Ge,e)):ue(it),ae(it,r)}var hr=null,bl=!1,mc=!1;function Yg(e){hr===null?hr=[e]:hr.push(e)}function zb(e){bl=!0,Yg(e)}function mn(){if(!mc&&hr!==null){mc=!0;var e=0,t=se;try{var r=hr;for(se=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}hr=null,bl=!1}catch(s){throw hr!==null&&(hr=hr.slice(e+1)),bg(Pd,mn),s}finally{se=t,mc=!1}}return null}var Ss=[],Es=0,Va=null,Ha=0,_t=[],St=0,Un=null,pr=1,mr="";function bn(e,t){Ss[Es++]=Ha,Ss[Es++]=Va,Va=e,Ha=t}function Jg(e,t,r){_t[St++]=pr,_t[St++]=mr,_t[St++]=Un,Un=e;var n=pr;e=mr;var s=32-Bt(n)-1;n&=~(1<<s),r+=1;var o=32-Bt(t)+s;if(30<o){var i=s-s%5;o=(n&(1<<i)-1).toString(32),n>>=i,s-=i,pr=1<<32-Bt(t)+s|r<<s|n,mr=o+e}else pr=1<<o|r<<s|n,mr=e}function Fd(e){e.return!==null&&(bn(e,1),Jg(e,1,0))}function Ud(e){for(;e===Va;)Va=Ss[--Es],Ss[Es]=null,Ha=Ss[--Es],Ss[Es]=null;for(;e===Un;)Un=_t[--St],_t[St]=null,mr=_t[--St],_t[St]=null,pr=_t[--St],_t[St]=null}var mt=null,pt=null,he=!1,zt=null;function Xg(e,t){var r=Et(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lf(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,pt=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Un!==null?{id:pr,overflow:mr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Et(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,mt=e,pt=null,!0):!1;default:return!1}}function Su(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eu(e){if(he){var t=pt;if(t){var r=t;if(!Lf(e,t)){if(Su(e))throw Error(R(418));t=tn(r.nextSibling);var n=mt;t&&Lf(e,t)?Xg(n,r):(e.flags=e.flags&-4097|2,he=!1,mt=e)}}else{if(Su(e))throw Error(R(418));e.flags=e.flags&-4097|2,he=!1,mt=e}}}function $f(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Yi(e){if(e!==mt)return!1;if(!he)return $f(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wu(e.type,e.memoizedProps)),t&&(t=pt)){if(Su(e))throw Zg(),Error(R(418));for(;t;)Xg(e,t),t=tn(t.nextSibling)}if($f(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){pt=tn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=mt?tn(e.stateNode.nextSibling):null;return!0}function Zg(){for(var e=pt;e;)e=tn(e.nextSibling)}function Qs(){pt=mt=null,he=!1}function zd(e){zt===null?zt=[e]:zt.push(e)}var Bb=kr.ReactCurrentBatchConfig;function wo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var n=r.stateNode}if(!n)throw Error(R(147,e));var s=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Df(e){var t=e._init;return t(e._payload)}function ev(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=on(v,g),v.index=0,v.sibling=null,v}function o(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,y,_){return g===null||g.tag!==6?(g=_c(y,v.mode,_),g.return=v,g):(g=s(g,y),g.return=v,g)}function l(v,g,y,_){var S=y.type;return S===vs?d(v,g,y.props.children,_,y.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Mr&&Df(S)===g.type)?(_=s(g,y.props),_.ref=wo(v,g,y),_.return=v,_):(_=Ca(y.type,y.key,y.props,null,v.mode,_),_.ref=wo(v,g,y),_.return=v,_)}function c(v,g,y,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Sc(y,v.mode,_),g.return=v,g):(g=s(g,y.children||[]),g.return=v,g)}function d(v,g,y,_,S){return g===null||g.tag!==7?(g=Mn(y,v.mode,_,S),g.return=v,g):(g=s(g,y),g.return=v,g)}function h(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=_c(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ui:return y=Ca(g.type,g.key,g.props,null,v.mode,y),y.ref=wo(v,null,g),y.return=v,y;case gs:return g=Sc(g,v.mode,y),g.return=v,g;case Mr:var _=g._init;return h(v,_(g._payload),y)}if(ko(g)||po(g))return g=Mn(g,v.mode,y,null),g.return=v,g;Ji(v,g)}return null}function p(v,g,y,_){var S=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(v,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ui:return y.key===S?l(v,g,y,_):null;case gs:return y.key===S?c(v,g,y,_):null;case Mr:return S=y._init,p(v,g,S(y._payload),_)}if(ko(y)||po(y))return S!==null?null:d(v,g,y,_,null);Ji(v,y)}return null}function f(v,g,y,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(y)||null,a(g,v,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ui:return v=v.get(_.key===null?y:_.key)||null,l(g,v,_,S);case gs:return v=v.get(_.key===null?y:_.key)||null,c(g,v,_,S);case Mr:var E=_._init;return f(v,g,y,E(_._payload),S)}if(ko(_)||po(_))return v=v.get(y)||null,d(g,v,_,S,null);Ji(g,_)}return null}function x(v,g,y,_){for(var S=null,E=null,k=g,j=g=0,A=null;k!==null&&j<y.length;j++){k.index>j?(A=k,k=null):A=k.sibling;var I=p(v,k,y[j],_);if(I===null){k===null&&(k=A);break}e&&k&&I.alternate===null&&t(v,k),g=o(I,g,j),E===null?S=I:E.sibling=I,E=I,k=A}if(j===y.length)return r(v,k),he&&bn(v,j),S;if(k===null){for(;j<y.length;j++)k=h(v,y[j],_),k!==null&&(g=o(k,g,j),E===null?S=k:E.sibling=k,E=k);return he&&bn(v,j),S}for(k=n(v,k);j<y.length;j++)A=f(k,v,j,y[j],_),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?j:A.key),g=o(A,g,j),E===null?S=A:E.sibling=A,E=A);return e&&k.forEach(function(B){return t(v,B)}),he&&bn(v,j),S}function m(v,g,y,_){var S=po(y);if(typeof S!="function")throw Error(R(150));if(y=S.call(y),y==null)throw Error(R(151));for(var E=S=null,k=g,j=g=0,A=null,I=y.next();k!==null&&!I.done;j++,I=y.next()){k.index>j?(A=k,k=null):A=k.sibling;var B=p(v,k,I.value,_);if(B===null){k===null&&(k=A);break}e&&k&&B.alternate===null&&t(v,k),g=o(B,g,j),E===null?S=B:E.sibling=B,E=B,k=A}if(I.done)return r(v,k),he&&bn(v,j),S;if(k===null){for(;!I.done;j++,I=y.next())I=h(v,I.value,_),I!==null&&(g=o(I,g,j),E===null?S=I:E.sibling=I,E=I);return he&&bn(v,j),S}for(k=n(v,k);!I.done;j++,I=y.next())I=f(k,v,j,I.value,_),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?j:I.key),g=o(I,g,j),E===null?S=I:E.sibling=I,E=I);return e&&k.forEach(function(D){return t(v,D)}),he&&bn(v,j),S}function b(v,g,y,_){if(typeof y=="object"&&y!==null&&y.type===vs&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ui:e:{for(var S=y.key,E=g;E!==null;){if(E.key===S){if(S=y.type,S===vs){if(E.tag===7){r(v,E.sibling),g=s(E,y.props.children),g.return=v,v=g;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Mr&&Df(S)===E.type){r(v,E.sibling),g=s(E,y.props),g.ref=wo(v,E,y),g.return=v,v=g;break e}r(v,E);break}else t(v,E);E=E.sibling}y.type===vs?(g=Mn(y.props.children,v.mode,_,y.key),g.return=v,v=g):(_=Ca(y.type,y.key,y.props,null,v.mode,_),_.ref=wo(v,g,y),_.return=v,v=_)}return i(v);case gs:e:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=s(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Sc(y,v.mode,_),g.return=v,v=g}return i(v);case Mr:return E=y._init,b(v,g,E(y._payload),_)}if(ko(y))return x(v,g,y,_);if(po(y))return m(v,g,y,_);Ji(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,y),g.return=v,v=g):(r(v,g),g=_c(y,v.mode,_),g.return=v,v=g),i(v)):r(v,g)}return b}var Ys=ev(!0),tv=ev(!1),qa=pn(null),Ka=null,ks=null,Bd=null;function Wd(){Bd=ks=Ka=null}function Vd(e){var t=qa.current;ue(qa),e._currentValue=t}function ku(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Os(e,t){Ka=e,Bd=ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Bd!==e)if(e={context:e,memoizedValue:t,next:null},ks===null){if(Ka===null)throw Error(R(308));ks=e,Ka.dependencies={lanes:0,firstContext:e}}else ks=ks.next=e;return t}var jn=null;function Hd(e){jn===null?jn=[e]:jn.push(e)}function rv(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Hd(t)):(r.next=s.next,s.next=r),t.interleaved=r,xr(e,n)}function xr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Fr=!1;function qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nv(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 vr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ee&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,xr(e,r)}return s=n.interleaved,s===null?(t.next=t,Hd(n)):(t.next=s.next,s.next=t),n.interleaved=t,xr(e,r)}function xa(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Rd(e,r)}}function Mf(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ga(e,t,r,n){var s=e.updateQueue;Fr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,d=c=l=null,a=o;do{var p=a.lane,f=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,m=a;switch(p=t,f=r,m.tag){case 1:if(x=m.payload,typeof x=="function"){h=x.call(f,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=m.payload,p=typeof x=="function"?x.call(f,h,p):x,p==null)break e;h=ye({},h,p);break e;case 2:Fr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=f,l=h):d=d.next=f,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Bn|=i,e.lanes=i,e.memoizedState=h}}function Ff(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(R(191,s));s.call(n)}}}var Ci={},nr=pn(Ci),ti=pn(Ci),ri=pn(Ci);function Nn(e){if(e===Ci)throw Error(R(174));return e}function Kd(e,t){switch(ae(ri,t),ae(ti,e),ae(nr,Ci),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ou(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ou(t,e)}ue(nr),ae(nr,t)}function Js(){ue(nr),ue(ti),ue(ri)}function sv(e){Nn(ri.current);var t=Nn(nr.current),r=ou(t,e.type);t!==r&&(ae(ti,e),ae(nr,r))}function Gd(e){ti.current===e&&(ue(nr),ue(ti))}var ge=pn(0);function Qa(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gc=[];function Qd(){for(var e=0;e<gc.length;e++)gc[e]._workInProgressVersionPrimary=null;gc.length=0}var ba=kr.ReactCurrentDispatcher,vc=kr.ReactCurrentBatchConfig,zn=0,ve=null,Ae=null,Ie=null,Ya=!1,Lo=!1,ni=0,Wb=0;function Ve(){throw Error(R(321))}function Yd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Vt(e[r],t[r]))return!1;return!0}function Jd(e,t,r,n,s,o){if(zn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ba.current=e===null||e.memoizedState===null?Kb:Gb,e=r(n,s),Lo){o=0;do{if(Lo=!1,ni=0,25<=o)throw Error(R(301));o+=1,Ie=Ae=null,t.updateQueue=null,ba.current=Qb,e=r(n,s)}while(Lo)}if(ba.current=Ja,t=Ae!==null&&Ae.next!==null,zn=0,Ie=Ae=ve=null,Ya=!1,t)throw Error(R(300));return e}function Xd(){var e=ni!==0;return ni=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ve.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Tt(){if(Ae===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ie===null?ve.memoizedState:Ie.next;if(t!==null)Ie=t,Ae=e;else{if(e===null)throw Error(R(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ie===null?ve.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function si(e,t){return typeof t=="function"?t(e):t}function yc(e){var t=Tt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=Ae,s=n.baseQueue,o=r.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}n.baseQueue=s=o,r.pending=null}if(s!==null){o=s.next,n=n.baseState;var a=i=null,l=null,c=o;do{var d=c.lane;if((zn&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,i=n):l=l.next=h,ve.lanes|=d,Bn|=d}c=c.next}while(c!==null&&c!==o);l===null?i=n:l.next=a,Vt(n,t.memoizedState)||(ot=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do o=s.lane,ve.lanes|=o,Bn|=o,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);
vendor: 4,900 bytes, line 38
38return[t.memoizedState,r.dispatch]}function wc(e){var t=Tt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,o=t.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Vt(o,t.memoizedState)||(ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ov(){}function iv(e,t){var r=ve,n=Tt(),s=t(),o=!Vt(n.memoizedState,s);if(o&&(n.memoizedState=s,ot=!0),n=n.queue,Zd(cv.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Ie!==null&&Ie.memoizedState.tag&1){if(r.flags|=2048,oi(9,lv.bind(null,r,n,s,t),void 0,null),$e===null)throw Error(R(349));zn&30||av(r,t,s)}return s}function av(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function lv(e,t,r,n){t.value=r,t.getSnapshot=n,uv(t)&&dv(e)}function cv(e,t,r){return r(function(){uv(t)&&dv(e)})}function uv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Vt(e,r)}catch{return!0}}function dv(e){var t=xr(e,1);t!==null&&Wt(t,e,1,-1)}function Uf(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:e},t.queue=e,e=e.dispatch=qb.bind(null,ve,e),[t.memoizedState,e]}function oi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function hv(){return Tt().memoizedState}function _a(e,t,r,n){var s=Qt();ve.flags|=e,s.memoizedState=oi(1|t,r,void 0,n===void 0?null:n)}function _l(e,t,r,n){var s=Tt();n=n===void 0?null:n;var o=void 0;if(Ae!==null){var i=Ae.memoizedState;if(o=i.destroy,n!==null&&Yd(n,i.deps)){s.memoizedState=oi(t,r,o,n);return}}ve.flags|=e,s.memoizedState=oi(1|t,r,o,n)}function zf(e,t){return _a(8390656,8,e,t)}function Zd(e,t){return _l(2048,8,e,t)}function fv(e,t){return _l(4,2,e,t)}function pv(e,t){return _l(4,4,e,t)}function mv(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 gv(e,t,r){return r=r!=null?r.concat([e]):null,_l(4,4,mv.bind(null,t,e),r)}function eh(){}function vv(e,t){var r=Tt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Yd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yv(e,t){var r=Tt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Yd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function wv(e,t,r){return zn&21?(Vt(r,t)||(r=Eg(),ve.lanes|=r,Bn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=r)}function Vb(e,t){var r=se;se=r!==0&&4>r?r:4,e(!0);var n=vc.transition;vc.transition={};try{e(!1),t()}finally{se=r,vc.transition=n}}function xv(){return Tt().memoizedState}function Hb(e,t,r){var n=sn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},bv(e))_v(t,r);else if(r=rv(e,t,r,n),r!==null){var s=Ze();Wt(r,e,n,s),Sv(r,t,n)}}function qb(e,t,r){var n=sn(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(bv(e))_v(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,Vt(a,i)){var l=t.interleaved;l===null?(s.next=s,Hd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=rv(e,t,s,n),r!==null&&(s=Ze(),Wt(r,e,n,s),Sv(r,t,n))}}function bv(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function _v(e,t){Lo=Ya=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Sv(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Rd(e,r)}}var Ja={readContext:Ct,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},Kb={readContext:Ct,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:zf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_a(4194308,4,mv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _a(4194308,4,e,t)},useInsertionEffect:function(e,t){return _a(4,2,e,t)},useMemo:function(e,t){var r=Qt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Hb.bind(null,ve,e),[n.memoizedState,e]}
vendor: 5,922 bytes, lines 38-40
38,useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Uf,useDebugValue:eh,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Uf(!1),t=e[0];return e=Vb.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,s=Qt();if(he){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),$e===null)throw Error(R(349));zn&30||av(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,zf(cv.bind(null,n,o,e),[e]),n.flags|=2048,oi(9,lv.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Qt(),t=$e.identifierPrefix;if(he){var r=mr,n=pr;r=(n&~(1<<32-Bt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ni++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Wb++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gb={readContext:Ct,useCallback:vv,useContext:Ct,useEffect:Zd,useImperativeHandle:gv,useInsertionEffect:fv,useLayoutEffect:pv,useMemo:yv,useReducer:yc,useRef:hv,useState:function(){return yc(si)},useDebugValue:eh,useDeferredValue:function(e){var t=Tt();return wv(t,Ae.memoizedState,e)},useTransition:function(){var e=yc(si)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:ov,useSyncExternalStore:iv,useId:xv,unstable_isNewReconciler:!1},Qb={readContext:Ct,useCallback:vv,useContext:Ct,useEffect:Zd,useImperativeHandle:gv,useInsertionEffect:fv,useLayoutEffect:pv,useMemo:yv,useReducer:wc,useRef:hv,useState:function(){return wc(si)},useDebugValue:eh,useDeferredValue:function(e){var t=Tt();return Ae===null?t.memoizedState=e:wv(t,Ae.memoizedState,e)},useTransition:function(){var e=wc(si)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:ov,useSyncExternalStore:iv,useId:xv,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Cu(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ye({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Kn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ze(),s=sn(e),o=vr(n,s);o.payload=t,r!=null&&(o.callback=r),t=rn(e,o,s),t!==null&&(Wt(t,e,s,n),xa(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ze(),s=sn(e),o=vr(n,s);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=rn(e,o,s),t!==null&&(Wt(t,e,s,n),xa(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ze(),n=sn(e),s=vr(r,n);s.tag=2,t!=null&&(s.callback=t),t=rn(e,s,n),t!==null&&(Wt(t,e,n,r),xa(t,e,n))}};function Bf(e,t,r,n,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Jo(r,n)||!Jo(s,o):!0}function Ev(e,t,r){var n=!1,s=un,o=t.contextType;return typeof o=="object"&&o!==null?o=Ct(o):(s=at(t)?Fn:Ge.current,n=t.contextTypes,o=(n=n!=null)?Gs(e,s):un),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wf(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function Tu(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},qd(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ct(o):(o=at(t)?Fn:Ge.current,s.context=Gs(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Cu(e,t,o,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Sl.enqueueReplaceState(s,s.state,null),Ga(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Xs(e,t){try{var r="",n=t;do r+=Sx(n),n=n.return;while(n);var s=r}catch(o){s=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function xc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ju(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Yb=typeof WeakMap=="function"?WeakMap:Map;function kv(e,t,r){r=vr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Za||(Za=!0,Mu=n),ju(e,t)},r}function Cv(e,t,r){r=vr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){ju(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){ju(e,t),typeof n!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Vf(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Yb;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=u1.bind(null,e,t,r),t.then(e,e))}function Hf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function qf(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=vr(-1,1),t.tag=2,rn(r,t,1))),r.lanes|=1),e)}var Jb=kr.ReactCurrentOwner,ot=!1;function Je(e,t,r,n){t.child=e===null?tv(t,null,r,n):Ys(t,e.child,r,n)}function Kf(e,t,r,n,s){r=r.render;var o=t.ref;
vendor: 6,220 bytes, line 40
40return Os(t,s),n=Jd(e,t,r,n,o,s),r=Xd(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,br(e,t,s)):(he&&r&&Fd(t),t.flags|=1,Je(e,t,n,s),t.child)}function Gf(e,t,r,n,s){if(e===null){var o=r.type;return typeof o=="function"&&!lh(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Tv(e,t,o,n,s)):(e=Ca(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Jo,r(i,n)&&e.ref===t.ref)return br(e,t,s)}return t.flags|=1,e=on(o,n),e.ref=t.ref,e.return=t,t.child=e}function Tv(e,t,r,n,s){if(e!==null){var o=e.memoizedProps;if(Jo(o,n)&&e.ref===t.ref)if(ot=!1,t.pendingProps=n=o,(e.lanes&s)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,br(e,t,s)}return Nu(e,t,r,n,s)}function jv(e,t,r){var n=t.pendingProps,s=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(Ts,ut),ut|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(Ts,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ae(Ts,ut),ut|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ae(Ts,ut),ut|=n;return Je(e,t,s,r),t.child}function Nv(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Nu(e,t,r,n,s){var o=at(r)?Fn:Ge.current;return o=Gs(t,o),Os(t,s),r=Jd(e,t,r,n,o,s),n=Xd(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,br(e,t,s)):(he&&n&&Fd(t),t.flags|=1,Je(e,t,r,s),t.child)}function Qf(e,t,r,n,s){if(at(r)){var o=!0;Wa(t)}else o=!1;if(Os(t,s),t.stateNode===null)Sa(e,t),Ev(t,r,n),Tu(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ct(c):(c=at(r)?Fn:Ge.current,c=Gs(t,c));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==c)&&Wf(t,i,n,c),Fr=!1;var p=t.memoizedState;i.state=p,Ga(t,n,i,s),l=t.memoizedState,a!==n||p!==l||it.current||Fr?(typeof d=="function"&&(Cu(t,r,d,n),l=t.memoizedState),(a=Fr||Bf(t,r,a,n,p,l,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,nv(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:It(t.type,a),i.props=c,h=t.pendingProps,p=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Ct(l):(l=at(r)?Fn:Ge.current,l=Gs(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||p!==l)&&Wf(t,i,n,l),Fr=!1,p=t.memoizedState,i.state=p,Ga(t,n,i,s);var x=t.memoizedState;a!==h||p!==x||it.current||Fr?(typeof f=="function"&&(Cu(t,r,f,n),x=t.memoizedState),(c=Fr||Bf(t,r,c,n,p,x,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),i.props=n,i.state=x,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Pu(e,t,r,n,o,s)}function Pu(e,t,r,n,s,o){Nv(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&If(t,r,!1),br(e,t,o);n=t.stateNode,Jb.current=t;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Ys(t,e.child,null,o),t.child=Ys(t,null,a,o)):Je(e,t,a,o),t.memoizedState=n.state,s&&If(t,r,!0),t.child}function Pv(e){var t=e.stateNode;t.pendingContext?Of(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Of(e,t.context,!1),Kd(e,t.containerInfo)}function Yf(e,t,r,n,s){return Qs(),zd(s),t.flags|=256,Je(e,t,r,n),t.child}var Ru={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rv(e,t,r){var n=t.pendingProps,s=ge.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ae(ge,s&1),e===null)return Eu(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):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Cl(i,n,0,null),e=Mn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Au(r),t.memoizedState=Ru,e):th(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Xb(e,t,i,n,a,s,r);if(o){o=n.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=on(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=on(a,o):(o=Mn(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?Au(r):{base
vendor: 8,213 bytes, line 40
40Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=Ru,n}return o=e.child,e=o.sibling,n=on(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function th(e,t){return t=Cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xi(e,t,r,n){return n!==null&&zd(n),Ys(t,e.child,null,r),e=th(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xb(e,t,r,n,s,o,i){if(r)return t.flags&256?(t.flags&=-257,n=xc(Error(R(422))),Xi(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,s=t.mode,n=Cl({mode:"visible",children:n.children},s,0,null),o=Mn(o,s,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Ys(t,e.child,null,i),t.child.memoizedState=Au(i),t.memoizedState=Ru,o);if(!(t.mode&1))return Xi(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(R(419)),n=xc(o,n,void 0),Xi(e,t,i,n)}if(a=(i&e.childLanes)!==0,ot||a){if(n=$e,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,xr(e,s),Wt(n,e,s,-1))}return ah(),n=xc(Error(R(421))),Xi(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=d1.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,pt=tn(s.nextSibling),mt=t,he=!0,zt=null,e!==null&&(_t[St++]=pr,_t[St++]=mr,_t[St++]=Un,pr=e.id,mr=e.overflow,Un=t),t=th(t,n.children),t.flags|=4096,t)}function Jf(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ku(e.return,t,r)}function bc(e,t,r,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function Av(e,t,r){var n=t.pendingProps,s=n.revealOrder,o=n.tail;if(Je(e,t,n.children,r),n=ge.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jf(e,r,t);else if(e.tag===19)Jf(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ae(ge,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Qa(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),bc(t,!1,s,r,o);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Qa(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}bc(t,!0,r,null,o);break;case"together":bc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function br(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=on(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=on(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Zb(e,t,r){switch(t.tag){case 3:Pv(t),Qs();break;case 5:sv(t);break;case 1:at(t.type)&&Wa(t);break;case 4:Kd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;ae(qa,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ae(ge,ge.current&1),t.flags|=128,null):r&t.child.childLanes?Rv(e,t,r):(ae(ge,ge.current&1),e=br(e,t,r),e!==null?e.sibling:null);ae(ge,ge.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Av(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ae(ge,ge.current),n)break;return null;case 22:case 23:return t.lanes=0,jv(e,t,r)}return br(e,t,r)}var Ov,Ou,Iv,Lv;Ov=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Ou=function(){};Iv=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Nn(nr.current);var o=null;switch(r){case"input":s=tu(e,s),n=tu(e,n),o=[];break;case"select":s=ye({},s,{value:void 0}),n=ye({},n,{value:void 0}),o=[];break;case"textarea":s=su(e,s),n=su(e,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=za)}iu(r,n);var i;r=null;for(c in s)if(!n.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vo.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(a=s!=null?s[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vo.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ce("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Lv=function(e,t,r,n){r!==n&&(t.flags|=4)};function xo(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function e1(e,t,r){var n=t.pendingProps;switch(Ud(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return at(t.type)&&Ba(),He(t),null;case 3:return n=t.stateNode,Js(),ue(it),ue(Ge),Qd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zt!==null&&(zu(zt),zt=null))),Ou(e,t),He(t),null;case 5:Gd(t);var s=Nn(ri.current);if(r=t.type,e!==null&&t.stateNode!=null)Iv(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(R(166));return He(t),null}if(e=Nn(nr.current),Yi(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Zt]=t,n[ei]=o,e=(t.mode&1)!==0,r){case"dialog":ce("cancel",n),ce("close",n);break;case"iframe":case"object":case"embed":ce("load",n);break;case"video":case"audio":for(s=0;s<To.length;s++)ce(To[s],n);break;case"source":ce("error",n);break;case"img":case"image":case"link":ce("error",n),ce("load",n);break;case"details":ce("toggle",n);break;case"input":of(n,o),ce("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},ce("invalid",n);break;case"textarea":lf(n,o),ce("invalid",n)}iu(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 31,695 bytes, line 40
40i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Qi(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Qi(n.textContent,a,e),s=["children",""+a]):Vo.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ce("scroll",n)}switch(r){case"input":zi(n),af(n,o,!0);break;case"textarea":zi(n),cf(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=za)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Zt]=t,e[ei]=n,Ov(e,t,!1,!1),t.stateNode=e;e:{switch(i=au(r,n),r){case"dialog":ce("cancel",e),ce("close",e),s=n;break;case"iframe":case"object":case"embed":ce("load",e),s=n;break;case"video":case"audio":for(s=0;s<To.length;s++)ce(To[s],e);s=n;break;case"source":ce("error",e),s=n;break;case"img":case"image":case"link":ce("error",e),ce("load",e),s=n;break;case"details":ce("toggle",e),s=n;break;case"input":of(e,n),s=tu(e,n),ce("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ye({},n,{value:void 0}),ce("invalid",e);break;case"textarea":lf(e,n),s=su(e,n),ce("invalid",e);break;default:s=n}iu(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hg(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ug(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ho(e,l):typeof l=="number"&&Ho(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Vo.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ce("scroll",e):l!=null&&kd(e,o,l,i))}switch(r){case"input":zi(e),af(e,n,!1);break;case"textarea":zi(e),cf(e);break;case"option":n.value!=null&&e.setAttribute("value",""+cn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ns(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ns(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=za)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)Lv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(R(166));if(r=Nn(ri.current),Nn(nr.current),Yi(t)){if(n=t.stateNode,r=t.memoizedProps,n[Zt]=t,(o=n.nodeValue!==r)&&(e=mt,e!==null))switch(e.tag){case 3:Qi(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qi(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Zt]=t,t.stateNode=n}return He(t),null;case 13:if(ue(ge),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&pt!==null&&t.mode&1&&!(t.flags&128))Zg(),Qs(),t.flags|=98560,o=!1;else if(o=Yi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Zt]=t}else Qs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),o=!1}else zt!==null&&(zu(zt),zt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Oe===0&&(Oe=3):ah())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return Js(),Ou(e,t),e===null&&Xo(t.stateNode.containerInfo),He(t),null;case 10:return Vd(t.type._context),He(t),null;case 17:return at(t.type)&&Ba(),He(t),null;case 19:if(ue(ge),o=t.memoizedState,o===null)return He(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)xo(o,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Qa(e),i!==null){for(t.flags|=128,xo(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ae(ge,ge.current&1|2),t.child}e=e.sibling}o.tail!==null&&Se()>Zs&&(t.flags|=128,n=!0,xo(o,!1),t.lanes=4194304)}else{if(!n)if(e=Qa(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),xo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!he)return He(t),null}else 2*Se()-o.renderingStartTime>Zs&&r!==1073741824&&(t.flags|=128,n=!0,xo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,r=ge.current,ae(ge,n?r&1|2:r&1),t):(He(t),null);case 22:case 23:return ih(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ut&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function t1(e,t){switch(Ud(t),t.tag){case 1:return at(t.type)&&Ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Js(),ue(it),ue(Ge),Qd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gd(t),null;case 13:if(ue(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(ge),null;case 4:return Js(),null;case 10:return Vd(t.type._context),null;case 22:case 23:return ih(),null;case 24:return null;default:return null}}var Zi=!1,Ke=!1,r1=typeof WeakSet=="function"?WeakSet:Set,M=null;function Cs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){be(e,t,n)}else r.current=null}function Iu(e,t,r){try{r()}catch(n){be(e,t,n)}}var Xf=!1;function n1(e,t){if(vu=Ma,e=Ug(),Md(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(a=i+s),h!==o||n!==0&&h.nodeType!==3||(l=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++c===s&&(a=i),p===o&&++d===n&&(l=i),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(yu={focusedElem:e,selectionRange:r},Ma=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;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 m=x.memoizedProps,b=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:It(t.type,m),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(_){be(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Xf,Xf=!1,x}function $o(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Iu(t,r,o)}s=s.next}while(s!==n)}}function El(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Lu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function $v(e){var t=e.alternate;t!==null&&(e.alternate=null,$v(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[ei],delete t[bu],delete t[Fb],delete t[Ub])),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 Dv(e){return e.tag===5||e.tag===3||e.tag===4}function Zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dv(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 $u(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=za));else if(n!==4&&(e=e.child,e!==null))for($u(e,t,r),e=e.sibling;e!==null;)$u(e,t,r),e=e.sibling}function Du(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Du(e,t,r),e=e.sibling;e!==null;)Du(e,t,r),e=e.sibling}var Fe=null,Ft=!1;function Or(e,t,r){for(r=r.child;r!==null;)Mv(e,t,r),r=r.sibling}function Mv(e,t,r){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(gl,r)}catch{}switch(r.tag){case 5:Ke||Cs(r,t);case 6:var n=Fe,s=Ft;Fe=null,Or(e,t,r),Fe=n,Ft=s,Fe!==null&&(Ft?(e=Fe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Fe.removeChild(r.stateNode));break;case 18:Fe!==null&&(Ft?(e=Fe,r=r.stateNode,e.nodeType===8?pc(e.parentNode,r):e.nodeType===1&&pc(e,r),Qo(e)):pc(Fe,r.stateNode));break;case 4:n=Fe,s=Ft,Fe=r.stateNode.containerInfo,Ft=!0,Or(e,t,r),Fe=n,Ft=s;break;case 0:case 11:case 14:case 15:if(!Ke&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Iu(r,t,i),s=s.next}while(s!==n)}Or(e,t,r);break;case 1:if(!Ke&&(Cs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){be(r,t,a)}Or(e,t,r);break;case 21:Or(e,t,r);break;case 22:r.mode&1?(Ke=(n=Ke)||r.memoizedState!==null,Or(e,t,r),Ke=n):Or(e,t,r);break;default:Or(e,t,r)}}function ep(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new r1),t.forEach(function(n){var s=h1.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Rt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Ft=!1;break e;case 3:Fe=a.stateNode.containerInfo,Ft=!0;break e;case 4:Fe=a.stateNode.containerInfo,Ft=!0;break e}a=a.return}if(Fe===null)throw Error(R(160));Mv(o,i,s),Fe=null,Ft=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){be(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Fv(t,e),t=t.sibling}function Fv(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rt(t,e),Gt(e),n&4){try{$o(3,e,e.return),El(3,e)}catch(m){be(e,e.return,m)}try{$o(5,e,e.return)}catch(m){be(e,e.return,m)}}break;case 1:Rt(t,e),Gt(e),n&512&&r!==null&&Cs(r,r.return);break;case 5:if(Rt(t,e),Gt(e),n&512&&r!==null&&Cs(r,r.return),e.flags&32){var s=e.stateNode;try{Ho(s,"")}catch(m){be(e,e.return,m)}}if(n&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&ag(s,o),au(a,i);var c=au(a,o);for(i=0;i<l.length;i+=2){var d=l[i],h=l[i+1];d==="style"?hg(s,h):d==="dangerouslySetInnerHTML"?ug(s,h):d==="children"?Ho(s,h):kd(s,d,h,c)}switch(a){case"input":ru(s,o);break;case"textarea":lg(s,o);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Ns(s,!!o.multiple,f,!1):p!==!!o.multiple&&(o.defaultValue!=null?Ns(s,!!o.multiple,o.defaultValue,!0):Ns(s,!!o.multiple,o.multiple?[]:"",!1))}s[ei]=o}catch(m){be(e,e.return,m)}}break;case 6:if(Rt(t,e),Gt(e),n&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(m){be(e,e.return,m)}}break;case 3:if(Rt(t,e),Gt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Qo(t.containerInfo)}catch(m){be(e,e.return,m)}break;case 4:Rt(t,e),Gt(e);break;case 13:Rt(t,e),Gt(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(sh=Se())),n&4&&ep(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ke=(c=Ke)||d,Rt(t,e),Ke=c):Rt(t,e),Gt(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(M=e,d=e.child;d!==null;){for(h=M=d;M!==null;){switch(p=M,f=p.child,p.tag){case 0:case 11:case 14:case 15:$o(4,p,p.return);break;case 1:Cs(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(m){be(n,r,m)}}break;case 5:Cs(p,p.return);break;case 22:if(p.memoizedState!==null){rp(h);continue}}f!==null?(f.return=p,M=f):rp(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=dg("display",i))}catch(m){be(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){be(e,e.return,m)}}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:Rt(t,e),Gt(e),n&4&&ep(e);break;case 21:break;default:Rt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Dv(r)){var n=r;break e}r=r.return}throw Error(R(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Ho(s,""),n.flags&=-33);var o=Zf(e);Du(e,o,s);break;case 3:case 4:var i=n.stateNode.containerInfo,a=Zf(e);$u(e,a,i);break;default:throw Error(R(161))}}catch(l){be(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function s1(e,t,r){M=e,Uv(e)}function Uv(e,t,r){for(var n=(e.mode&1)!==0;M!==null;){var s=M,o=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||Zi;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ke;a=Zi;var c=Ke;if(Zi=i,(Ke=l)&&!c)for(M=s;M!==null;)i=M,l=i.child,i.tag===22&&i.memoizedState!==null?np(s):l!==null?(l.return=i,M=l):np(s);for(;o!==null;)M=o,Uv(o),o=o.sibling;M=s,Zi=a,Ke=c}tp(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,M=o):tp(e)}}function tp(e){for(;M!==null;){var t=M;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||El(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ke)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:It(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ff(t,o,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ff(t,i,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Qo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ke||t.flags&512&&Lu(t)}catch(p){be(t,t.return,p)}}if(t===e){M=null;break}if(r=t.sibling,r!==null){r.return=t.return,M=r;break}M=t.return}}function rp(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var r=t.sibling;if(r!==null){r.return=t.return,M=r;break}M=t.return}}function np(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{El(4,t)}catch(l){be(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){be(t,s,l)}}var o=t.return;try{Lu(t)}catch(l){be(t,o,l)}break;case 5:var i=t.return;try{Lu(t)}catch(l){be(t,i,l)}}}catch(l){be(t,t.return,l)}if(t===e){M=null;break}var a=t.sibling;if(a!==null){a.return=t.return,M=a;break}M=t.return}}var o1=Math.ceil,Xa=kr.ReactCurrentDispatcher,rh=kr.ReactCurrentOwner,kt=kr.ReactCurrentBatchConfig,ee=0,$e=null,je=null,Ue=0,ut=0,Ts=pn(0),Oe=0,ii=null,Bn=0,kl=0,nh=0,Do=null,st=null,sh=0,Zs=1/0,ur=null,Za=!1,Mu=null,nn=null,ea=!1,Yr=null,el=0,Mo=0,Fu=null,Ea=-1,ka=0;function Ze(){return ee&6?Se():Ea!==-1?Ea:Ea=Se()}function sn(e){return e.mode&1?ee&2&&Ue!==0?Ue&-Ue:Bb.transition!==null?(ka===0&&(ka=Eg()),ka):(e=se,e!==0||(e=window.event,e=e===void 0?16:Rg(e.type)),e):1}function Wt(e,t,r,n){if(50<Mo)throw Mo=0,Fu=null,Error(R(185));Si(e,r,n),(!(ee&2)||e!==$e)&&(e===$e&&(!(ee&2)&&(kl|=r),Oe===4&&Br(e,Ue)),lt(e,n),r===1&&ee===0&&!(t.mode&1)&&(Zs=Se()+500,bl&&mn()))}function lt(e,t){var r=e.callbackNode;Bx(e,t);var n=Da(e,e===$e?Ue:0);if(n===0)r!==null&&hf(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&hf(r),t===1)e.tag===0?zb(sp.bind(null,e)):Yg(sp.bind(null,e)),Db(function(){!(ee&6)&&mn()}),r=null;else{switch(kg(n)){case 1:r=Pd;break;case 4:r=_g;break;case 16:r=$a;break;case 536870912:r=Sg;break;default:r=$a}r=Gv(r,zv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function zv(e,t){if(Ea=-1,ka=0,ee&6)throw Error(R(327));var r=e.callbackNode;if(Is()&&e.callbackNode!==r)return null;var n=Da(e,e===$e?Ue:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=tl(e,n);else{t=n;var s=ee;ee|=2;var o=Wv();($e!==e||Ue!==t)&&(ur=null,Zs=Se()+500,Dn(e,t));do try{l1();break}catch(a){Bv(e,a)}while(!0);Wd(),Xa.current=o,ee=s,je!==null?t=0:($e=null,Ue=0,t=Oe)}if(t!==0){if(t===2&&(s=hu(e),s!==0&&(n=s,t=Uu(e,s))),t===1)throw r=ii,Dn(e,0),Br(e,n),lt(e,Se()),r;if(t===6)Br(e,n);else{if(s=e.current.alternate,!(n&30)&&!i1(s)&&(t=tl(e,n),t===2&&(o=hu(e),o!==0&&(n=o,t=Uu(e,o))),t===1))throw r=ii,Dn(e,0),Br(e,n),lt(e,Se()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(R(345));case 2:_n(e,st,ur);break;case 3:if(Br(e,n),(n&130023424)===n&&(t=sh+500-Se(),10<t)){if(Da(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ze(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=xu(_n.bind(null,e,st,ur),t);break}_n(e,st,ur);break;case 4:if(Br(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var i=31-Bt(n);o=1<<i,i=t[i],i>s&&(s=i),n&=~o}if(n=s,n=Se()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*o1(n/1960))-n,10<n){e.timeoutHandle=xu(_n.bind(null,e,st,ur),n);break}_n(e,st,ur);break;case 5:_n(e,st,ur);break;default:throw Error(R(329))}}}return lt(e,Se()),e.callbackNode===r?zv.bind(null,e):null}function Uu(e,t){var r=Do;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=tl(e,t),e!==2&&(t=st,st=r,t!==null&&zu(t)),e}function zu(e){st===null?st=e:st.push.apply(st,e)}function i1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],o=s.getSnapshot;s=s.value;try{if(!Vt(o(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Br(e,t){for(t&=~nh,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Bt(t),n=1<<r;e[r]=-1,t&=~n}}function sp(e){if(ee&6)throw Error(R(327));Is();var t=Da(e,0);if(!(t&1))return lt(e,Se()),null;var r=tl(e,t);if(e.tag!==0&&r===2){var n=hu(e);n!==0&&(t=n,r=Uu(e,n))}if(r===1)throw r=ii,Dn(e,0),Br(e,t),lt(e,Se()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_n(e,st,ur),lt(e,Se()),null}function oh(e,t){var r=ee;ee|=1;try{return e(t)}finally{ee=r,ee===0&&(Zs=Se()+500,bl&&mn())}}function Wn(e){Yr!==null&&Yr.tag===0&&!(ee&6)&&Is();var t=ee;ee|=1;var r=kt.transition,n=se;try{if(kt.transition=null,se=1,e)return e()}finally{se=n,kt.transition=r,ee=t,!(ee&6)&&mn()}}function ih(){ut=Ts.current,ue(Ts)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,$b(r)),je!==null)for(r=je.return;r!==null;){var n=r;switch(Ud(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ba();break;case 3:Js(),ue(it),ue(Ge),Qd();break;case 5:Gd(n);break;case 4:Js();break;case 13:ue(ge);break;case 19:ue(ge);break;case 10:Vd(n.type._context);break;case 22:case 23:ih()}r=r.return}if($e=e,je=e=on(e.current,null),Ue=ut=t,Oe=0,ii=null,nh=kl=Bn=0,st=Do=null,jn!==null){for(t=0;t<jn.length;t++)if(r=jn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=s,n.next=i}r.pending=n}jn=null}return e}function Bv(e,t){do{var r=je;try{if(Wd(),ba.current=Ja,Ya){for(var n=ve.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Ya=!1}if(zn=0,Ie=Ae=ve=null,Lo=!1,ni=0,rh.current=null,r===null||r.return===null){Oe=1,ii=t,je=null;break}e:{var o=e,i=r.return,a=r,l=t;if(t=Ue,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Hf(i);if(f!==null){f.flags&=-257,qf(f,i,a,o,t),f.mode&1&&Vf(o,c,t),t=f,l=c;var x=t.updateQueue;if(x===null){var m=new Set;m.add(l),t.updateQueue=m}else x.add(l);break e}else{if(!(t&1)){Vf(o,c,t),ah();break e}l=Error(R(426))}}else if(he&&a.mode&1){var b=Hf(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),qf(b,i,a,o,t),zd(Xs(l,a));break e}}o=l=Xs(l,a),Oe!==4&&(Oe=2),Do===null?Do=[o]:Do.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=kv(o,l,t);Mf(o,v);break e;case 1:a=l;var g=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(nn===null||!nn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Cv(o,a,t);Mf(o,_);break e}}o=o.return}while(o!==null)}Hv(r)}catch(S){t=S,je===r&&r!==null&&(je=r=r.return);continue}break}while(!0)}function Wv(){var e=Xa.current;return Xa.current=Ja,e===null?Ja:e}function ah(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),$e===null||!(Bn&268435455)&&!(kl&268435455)||Br($e,Ue)}function tl(e,t){var r=ee;ee|=2;var n=Wv();($e!==e||Ue!==t)&&(ur=null,Dn(e,t));do try{a1();break}catch(s){Bv(e,s)}while(!0);if(Wd(),ee=r,Xa.current=n,je!==null)throw Error(R(261));return $e=null,Ue=0,Oe}function a1(){for(;je!==null;)Vv(je)}function l1(){for(;je!==null&&!Ox();)Vv(je)}function Vv(e){var t=Kv(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?Hv(e):je=t,rh.current=null}function Hv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=t1(r,t),r!==null){r.flags&=32767,je=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,je=null;return}}else if(r=e1(r,t,ut),r!==null){je=r;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Oe===0&&(Oe=5)}function _n(e,t,r){var n=se,s=kt.transition;try{kt.transition=null,se=1,c1(e,t,r,n)}finally{kt.transition=s,se=n}return null}function c1(e,t,r,n){do Is();while(Yr!==null);if(ee&6)throw Error(R(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(Wx(e,o),e===$e&&(je=$e=null,Ue=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ea||(ea=!0,Gv($a,function(){return Is(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=kt.transition,kt.transition=null;var i=se;se=1;var a=ee;ee|=4,rh.current=null,n1(e,r),Fv(r,e),Nb(yu),Ma=!!vu,yu=vu=null,e.current=r,s1(r),Ix(),ee=a,se=i,kt.transition=o}else e.current=r;if(ea&&(ea=!1,Yr=e,el=s),o=e.pendingLanes,o===0&&(nn=null),Dx(r.stateNode),lt(e,Se()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Za)throw Za=!1,e=Mu,Mu=null,e;return el&1&&e.tag!==0&&Is(),o=e.pendingLanes,o&1?e===Fu?Mo++:(Mo=0,Fu=e):Mo=0,mn(),null}function Is(){if(Yr!==null){var e=kg(el),t=kt.transition,r=se;try{if(kt.transition=null,se=16>e?16:e,Yr===null)var n=!1;else{if(e=Yr,Yr=null,el=0,ee&6)throw Error(R(331));var s=ee;for(ee|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(M=c;M!==null;){var d=M;switch(d.tag){case 0:case 11:case 15:$o(8,d,o)}var h=d.child;if(h!==null)h.return=d,M=h;else for(;M!==null;){d=M;var p=d.sibling,f=d.return;if($v(d),d===c){M=null;break}if(p!==null){p.return=f,M=p;break}M=f}}}var x=o.alternate;if(x!==null){var m=x.child;if(m!==null){x.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}M=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,M=i;else e:for(;M!==null;){if(o=M,o.flags&2048)switch(o.tag){case 0:case 11:case 15:$o(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,M=v;break e}M=o.return}}var g=e.current;for(M=g;M!==null;){i=M;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,M=y;else e:for(i=g;M!==null;){if(a=M,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:El(9,a)}}catch(S){be(a,a.return,S)}if(a===i){M=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,M=_;break e}M=a.return}}if(ee=s,mn(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(gl,e)}catch{}n=!0}return n}finally{se=r,kt.transition=t}}return!1}function op(e,t,r){t=Xs(r,t),t=kv(e,t,1),e=rn(e,t,1),t=Ze(),e!==null&&(Si(e,1,t),lt(e,t))}function be(e,t,r){if(e.tag===3)op(e,e,r);else for(;t!==null;){if(t.tag===3){op(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(nn===null||!nn.has(n))){e=Xs(r,e),e=Cv(t,e,1),t=rn(t,e,1),e=Ze(),t!==null&&(Si(t,1,e),lt(t,e));break}}t=t.return}}function u1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&r,$e===e&&(Ue&r)===r&&(Oe===4||Oe===3&&(Ue&130023424)===Ue&&500>Se()-sh?Dn(e,0):nh|=r),lt(e,t)}function qv(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var r=Ze();e=xr(e,t),e!==null&&(Si(e,t,r),lt(e,r))}function d1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qv(e,r)}function h1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),qv(e,r)}var Kv;Kv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)ot=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ot=!1,Zb(e,t,r);ot=!!(e.flags&131072)}else ot=!1,he&&t.flags&1048576&&Jg(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Sa(e,t),e=t.pendingProps;var s=Gs(t,Ge.current);Os(t,r),s=Jd(null,t,n,e,s,r);var o=Xd();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,at(n)?(o=!0,Wa(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,qd(t),s.updater=Sl,t.stateNode=s,s._reactInternals=t,Tu(t,n,e,r),t=Pu(null,t,n,!0,o,r)):(t.tag=0,he&&o&&Fd(t),Je(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Sa(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=p1(n),e=It(n,e),s){case 0:t=Nu(null,t,n,e,r);break e;case 1:t=Qf(null,t,n,e,r);break e;case 11:t=Kf(null,t,n,e,r);break e;case 14:t=Gf(null,t,n,It(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:It(n,s),Nu(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:It(n,s),Qf(e,t,n,s,r);case 3:e:{if(Pv(t),e===null)throw Error(R(387));n=t.pendingProps,o=t.memoizedState,s=o.element,nv(e,t),Ga(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Xs(Error(R(423)),t),t=Yf(e,t,n,r,s);break e}else if(n!==s){s=Xs(Error(R(424)),t),t=Yf(e,t,n,r,s);break e}else for(pt=tn(t.stateNode.containerInfo.firstChild),mt=t,he=!0,zt=null,r=tv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Qs(),n===s){t=br(e,t,r);break e}Je(e,t,n,r)}t=t.child}return t;case 5:return sv(t),e===null&&Eu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,wu(n,s)?i=null:o!==null&&wu(n,o)&&(t.flags|=32),Nv(e,t),Je(e,t,i,r),t.child;case 6:return e===null&&Eu(t),null;case 13:return Rv(e,t,r);case 4:return Kd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ys(t,null,n,r):Je(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:It(n,s),Kf(e,t,n,s,r);case 7:return Je(e,t,t.pendingProps,r),t.child;case 8:return Je(e,t,t.pendingProps.children,r),t.child;case 12:return Je(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,ae(qa,n._currentValue),n._currentValue=i,o!==null)if(Vt(o.value,i)){if(o.children===s.children&&!it.current){t=br(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=vr(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),ku(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(R(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),ku(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Je(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Os(t,r),s=Ct(s),n=n(s),t.flags|=1,Je(e,t,n,r),t.child;case 14:return n=t.type,s=It(n,t.pendingProps),s=It(n.type,s),Gf(e,t,n,s,r);case 15:return Tv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:It(n,s),Sa(e,t),t.tag=1,at(n)?(e=!0,Wa(t)):e=!1,Os(t,r),Ev(t,n,s),Tu(t,n,s,r),Pu(null,t,n,!0,e,r);case 19:return Av(e,t,r);case 22:return jv(e,t,r)}throw Error(R(156,t.tag))};function Gv(e,t){return bg(e,t)}function f1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,566 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,r,n){return new f1(e,t,r,n)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p1(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Td)return 11;if(e===jd)return 14}return 2}function on(e,t){var r=e.alternate;return r===null?(r=Et(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ca(e,t,r,n,s,o){var i=2;if(n=e,typeof e=="function")lh(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vs:return Mn(r.children,s,o,t);case Cd:i=8,s|=8;break;case Jc:return e=Et(12,r,t,s|2),e.elementType=Jc,e.lanes=o,e;case Xc:return e=Et(13,r,t,s),e.elementType=Xc,e.lanes=o,e;case Zc:return e=Et(19,r,t,s),e.elementType=Zc,e.lanes=o,e;case sg:return Cl(r,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rg:i=10;break e;case ng:i=9;break e;case Td:i=11;break e;case jd:i=14;break e;case Mr:i=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Et(i,r,t,s),t.elementType=e,t.type=n,t.lanes=o,t}function Mn(e,t,r,n){return e=Et(7,e,n,t),e.lanes=r,e}function Cl(e,t,r,n){return e=Et(22,e,n,t),e.elementType=sg,e.lanes=r,e.stateNode={isHidden:!1},e}function _c(e,t,r){return e=Et(6,e,null,t),e.lanes=r,e}function Sc(e,t,r){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nc(0),this.expirationTimes=nc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ch(e,t,r,n,s,o,i,a,l){return e=new m1(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Et(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qd(o),e}function g1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Qv(e){if(!e)return un;e=e._reactInternals;e:{if(Kn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(at(r))return Qg(e,r,t)}return t}function Yv(e,t,r,n,s,o,i,a,l){return e=ch(r,n,!0,e,s,o,i,a,l),e.context=Qv(null),r=e.current,n=Ze(),s=sn(r),o=vr(n,s),o.callback=t??null,rn(r,o,s),e.current.lanes=s,Si(e,s,n),lt(e,n),e}function Tl(e,t,r,n){var s=t.current,o=Ze(),i=sn(s);return r=Qv(r),t.context===null?t.context=r:t.pendingContext=r,t=vr(o,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=rn(s,t,i),e!==null&&(Wt(e,s,i,o),xa(e,s,i)),i}function rl(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 ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function uh(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function v1(){return null}var Jv=typeof reportError=="function"?reportError:function(e){console.error(e)};function dh(e){this._internalRoot=e}jl.prototype.render=dh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Tl(e,t,null,null)};jl.prototype.unmount=dh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wn(function(){Tl(null,e,null,null)}),t[wr]=null}};function jl(e){this._internalRoot=e}jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=jg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<zr.length&&t!==0&&t<zr[r].priority;r++);zr.splice(r,0,e),r===0&&Pg(e)}};function hh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ap(){}function y1(e,t,r,n,s){if(s){if(typeof n=="function"){var o=n;n=function(){var c=rl(i);o.call(c)}}var i=Yv(t,n,e,0,null,!1,!1,"",ap);return e._reactRootContainer=i,e[wr]=i.current,Xo(e.nodeType===8?e.parentNode:e),Wn(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var c=rl(l);a.call(c)}}var l=ch(e,0,!1,null,null,!1,!1,"",ap);return e._reactRootContainer=l,e[wr]=l.current,Xo(e.nodeType===8?e.parentNode:e),Wn(function(){Tl(t,l,r,n)}),l}function Pl(e,t,r,n,s){var o=r._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=rl(i);a.call(l)}}Tl(t,i,e,s)}else i=y1(r,t,e,s,n);return rl(i)}Cg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Co(t.pendingLanes);r!==0&&(Rd(t,r|1),lt(t,Se()),!(ee&6)&&(Zs=Se()+500,mn()))}break;case 13:Wn(function(){var n=xr(e,1);if(n!==null){var s=Ze();Wt(n,e,1,s)}}),uh(e,1)}};Ad=function(e){if(e.tag===13){var t=xr(e,134217728);if(t!==null){var r=Ze();Wt(t,e,134217728,r)}uh(e,134217728)}};Tg=function(e){if(e.tag===13){var t=sn(e),r=xr(e,t);if(r!==null){var n=Ze();Wt(r,e,t,n)}uh(e,t)}};jg=function(){return se};Ng=function(e,t){var r=se;try{return se=e,t()}finally{se=r}};cu=function(e,t,r){switch(t){case"input":if(ru(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=xl(n);if(!s)throw Error(R(90));ig(n),ru(n,s)}}}break;case"textarea":lg(e,r);break;case"select":t=r.value,t!=null&&Ns(e,!!r.multiple,t,!1)}};mg=oh;gg=Wn;var w1={usingClientEntryPoint:!1,Events:[ki,bs,xl,fg,pg,oh]},bo={findFiberByHostInstance:Tn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x1={bundleType:bo.bundleType,version:bo.version,rendererPackageName:bo.rendererPackageName,rendererConfig:bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wg(e),e===null?null:e.stateNode},findFiberByHostInstance:bo.findFiberByHostInstance||v1,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 ta=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ta.isDisabled&&ta.supportsFiber)try{gl=ta.inject(x1),rr=ta}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w1;yt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hh(t))throw Error(R(200));return g1(e,t,null,r)};yt.createRoot=function(e,t){if(!hh(e))throw Error(R(299));var r=!1,n="",s=Jv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=ch(e,1,!1,null,null,r,!1,n,s),e[wr]=t.current,Xo(e.nodeType===8?e.parentNode:e),new dh(t)};yt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=wg(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return Wn(e)};yt.hydrate=function(e,t,r){if(!Nl(t))throw Error(R(200));return Pl(null,e,t,!0,r)};yt.hydrateRoot=function(e,t,r){if(!hh(e))throw Error(R(405));var n=r!=null&&r.hydratedSources||null,s=!1,o="",i=Jv;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=Yv(t,null,e,1,r??null,s,!1,o,i),e[wr]=t.current,Xo(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new jl(t)};yt.render=function(e,t,r){if(!Nl(t))throw Error(R(200));return Pl(null,e,t,!1,r)};yt.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(R(40));return e._reactRootContainer?(Wn(function(){Pl(null,null,e,!1,function(){e._reactRootContainer=null,e[wr]=null})}),!0):!1};yt.unstable_batchedUpdates=oh;yt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Nl(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Pl(e,t,r,!1,n)};yt.version="18.3.1-next-f1338f8080-20240426";function Xv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xv)}catch(e){console.error(e)}}Xv(),Xm.exports=yt;var Ti=Xm.exports;const Zv=Um(Ti);var ey,lp=Ti;ey=lp.createRoot,lp.hydrateRoot;const b1=1,_1=1e6;let Ec=0;function S1(){return Ec=(Ec+1)%Number.MAX_SAFE_INTEGER,Ec.toString()}const kc=new Map,cp=e=>{if(kc.has(e))return;const t=setTimeout(()=>{kc.delete(e),Fo({type:"REMOVE_TOAST",toastId:e})},_1);kc.set(e,t)},E1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,b1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?cp(r):e.toasts.forEach(n=>{cp(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,905 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Ta=[];let ja={toasts:[]};function Fo(e){ja=E1(ja,e),Ta.forEach(t=>{t(ja)})}function k1({...e}){const t=S1(),r=s=>Fo({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Fo({type:"DISMISS_TOAST",toastId:t});return Fo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function ty(){const[e,t]=w.useState(ja);return w.useEffect(()=>(Ta.push(t),()=>{const r=Ta.indexOf(t);r>-1&&Ta.splice(r,1)}),[e]),{...e,toast:k1,dismiss:r=>Fo({type:"DISMISS_TOAST",toastId:r})}}function fe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function up(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ry(...e){return t=>{let r=!1;const n=e.map(s=>{const o=up(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():up(e[s],null)}}}}function et(...e){return w.useCallback(ry(...e),e)}function C1(e,t){const r=w.createContext(t),n=o=>{const{children:i,...a}=o,l=w.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:i})};n.displayName=e+"Provider";function s(o){const i=w.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,s]}function ji(e,t=[]){let r=[];function n(o,i){const a=w.createContext(i),l=r.length;r=[...r,i];const c=h=>{var v;const{scope:p,children:f,...x}=h,m=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,b=w.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:b,children:f})};c.displayName=o+"Provider";function d(h,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,x=w.useContext(f);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=r.map(i=>w.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,T1(s,...t)]}function T1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((a,{useScope:l,scopeName:c})=>{const h=l(o)[`__scope${c}`];return{...a,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ai(e){const t=j1(e),r=w.forwardRef((n,s)=>{const{children:o,...i}=n,a=w.Children.toArray(o),l=a.find(P1);if(l){const c=l.props.children,d=a.map(h=>h===l?w.Children.count(c)>1?w.Children.only(null):w.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...i,ref:s,children:w.isValidElement(c)?w.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var ny=ai("Slot");function j1(e){const t=w.forwardRef((r,n)=>{const{children:s,...o}=r;if(w.isValidElement(s)){const i=A1(s),a=R1(o,s.props);return s.type!==w.Fragment&&(a.ref=n?ry(n,i):i),w.cloneElement(s,a)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sy=Symbol("radix.slottable");function N1(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=sy,t}function P1(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sy}function R1(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function A1(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function O1(e){const t=e+"CollectionProvider",[r,n]=ji(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,g=O.useRef(null),y=O.useRef(new Map).current;return u.jsx(s,{scope:b,itemMap:y,collectionRef:g,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ai(a),c=O.forwardRef((m,b)=>{const{scope:v,children:g}=m,y=o(a,v),_=et(b,y.collectionRef);return u.jsx(l,{ref:_,children:g})});c.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=ai(d),f=O.forwardRef((m,b)=>{const{scope:v,children:g,...y}=m,_=O.useRef(null),S=et(b,_),E=o(d,v);return O.useEffect(()=>(E.itemMap.set(_,{ref:_,...y}),()=>void E.itemMap.delete(_))),u.jsx(p,{[h]:"",ref:S,children:g})});f.displayName=d;function x(m){const b=o(e+"CollectionConsumer",m);return O.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((E,k)=>y.indexOf(E.ref.current)-y.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},x,n]}var I1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ke=I1.reduce((e,t)=>{const r=ai(`Primitive.${t}`),n=w.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oy(e,t){e&&Ti.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function L1(e,t=globalThis==null?void 0:globalThis.document){const r=or(e);w.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var $1="DismissableLayer",Bu="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",M1="dismissableLayer.focusOutside",dp,iy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rl=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,c=w.useContext(iy),[d,h]=w.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),x=et(t,k=>h(k)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(b),g=d?m.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,_=g>=v,S=U1(k=>{const j=k.target,A=[...c.branches].some(I=>I.contains(j));!_||A||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},p),E=z1(k=>{const j=k.target;[...c.branches].some(I=>I.contains(j))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},p);return L1(k=>{g===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},p),w.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(dp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),hp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dp)}},[d,p,r,c]),w.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),hp())},[d,c]),w.useEffect(()=>{const k=()=>f({});return document.addEventListener(Bu,k),()=>document.removeEventListener(Bu,k)},[]),u.jsx(ke.div,{...l,ref:x,style:{pointerEvents:y?_?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,S.onPointerDownCapture)})});Rl.displayName=$1;var F1="DismissableLayerBranch",ay=w.forwardRef((e,t)=>{const r=w.useContext(iy),n=w.useRef(null),s=et(t,n);return w.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),u.jsx(ke.div,{...e,ref:s})});ay.displayName=F1;function U1(e,t=globalThis==null?void 0:globalThis.document){const r=or(e),n=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let l=function(){ly(D1,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function z1(e,t=globalThis==null?void 0:globalThis.document){const r=or(e),n=w.useRef(!1);return w.useEffect(()=>{const s=o=>{o.target&&!n.current&&ly(M1,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hp(){const e=new CustomEvent(Bu);document.dispatchEvent(e)}function ly(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?oy(s,o):s.dispatchEvent(o)}var B1=Rl,W1=ay,_r=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},V1="Portal",fh=w.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,o]=w.useState(!1);_r(()=>o(!0),[]);const i=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Zv.createPortal(u.jsx(ke.div,{...n,ref:t}),i):null});fh.displayName=V1;function H1(e,t){return w.useReducer((r,n)=>t[r][n]??r,e)}var oo=e=>{const{present:t,children:r}=e,n=q1(t),s=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),o=et(n.ref,K1(s));return typeof r=="function"||n.isPresent?w.cloneElement(s,{ref:o}):null};oo.displayName="Presence";function q1(e){const[t,r]=w.useState(),n=w.useRef(null),s=w.useRef(e),o=w.useRef("none"),i=e?"mounted":"unmounted",[a,l]=H1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const c=ra(n.current);o.current=a==="mounted"?c:"none"},[a]),_r(()=>{const c=n.current,d=s.current;if(d!==e){const p=o.current,f=ra(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),_r(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const m=ra(n.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=f=>{f.target===t&&(o.current=ra(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function ra(e){return(e==null?void 0:e.animationName)||"none"}function K1(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var G1=_d[" useInsertionEffect ".trim().toString()]||_r;function cy({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,i]=Q1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=w.useCallback(d=>{var h;if(a){const p=Y1(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else o(d)},[a,e,o,i]);return[l,c]}function Q1({defaultProp:e,onChange:t}){const[r,n]=w.useState(e),s=w.useRef(r),o=w.useRef(t);return G1(()=>{o.current=t},[t]),w.useEffect(()=>{var i;s.current!==r&&((i=o.current)==null||i.call(o,r),s.current=r)},[r,s]),[r,n,o]}function Y1(e){return typeof e=="function"}var J1=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"}),X1="VisuallyHidden",Al=w.forwardRef((e,t)=>u.jsx(ke.span,{...e,ref:t,style:{...J1,...e.style}}));Al.displayName=X1;var Z1=Al,ph="ToastProvider",[mh,e_,t_]=O1("Toast"),[uy,NR]=ji("Toast",[t_]),[r_,Ol]=uy(ph),dy=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=w.useState(null),[c,d]=w.useState(0),h=w.useRef(!1),p=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${ph}\`. Expected non-empty \`string\`.`),u.jsx(mh.Provider,{scope:t,children:u.jsx(r_,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:i})})};dy.displayName=ph;var hy="ToastViewport",n_=["F8"],Wu="toast.viewportPause",Vu="toast.viewportResume",fy=w.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=n_,label:s="Notifications ({hotkey})",...o}=e,i=Ol(hy,r),a=e_(r),l=w.useRef(null),c=w.useRef(null),d=w.useRef(null),h=w.useRef(null),p=et(t,h,i.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;w.useEffect(()=>{const b=v=>{var y;n.length!==0&&n.every(_=>v[_]||v.code===_)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),w.useEffect(()=>{const b=l.current,v=h.current;if(x&&b&&v){const g=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Wu);v.dispatchEvent(E),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Vu);v.dispatchEvent(E),i.isClosePausedRef.current=!1}},_=E=>{!b.contains(E.relatedTarget)&&y()},S=()=>{b.contains(document.activeElement)||y()};return b.addEventListener("focusin",g),b.addEventListener("focusout",_),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[x,i.isClosePausedRef]);const m=w.useCallback(({tabbingDirection:b})=>{const g=a().map(y=>{const _=y.ref.current,S=[_,...g_(_)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return w.useEffect(()=>{const b=h.current;if(b){const v=g=>
40{var S,E,k;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const j=document.activeElement,A=g.shiftKey;if(g.target===b&&A){(S=c.current)==null||S.focus();return}const D=m({tabbingDirection:A?"backwards":"forwards"}),K=D.findIndex($=>$===j);Cc(D.slice(K+1))?g.preventDefault():A?(E=c.current)==null||E.focus():(k=d.current)==null||k.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,m]),u.jsxs(W1,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(Hu,{ref:c,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"forwards"});Cc(b)}}),u.jsx(mh.Slot,{scope:r,children:u.jsx(ke.ol,{tabIndex:-1,...o,ref:p})}),x&&u.jsx(Hu,{ref:d,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"backwards"});Cc(b)}})]})});fy.displayName=hy;var py="ToastFocusProxy",Hu=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=Ol(py,r);return u.jsx(Al,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&n()}})});Hu.displayName=py;var Ni="Toast",s_="toast.swipeStart",o_="toast.swipeMove",i_="toast.swipeCancel",a_="toast.swipeEnd",my=w.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=cy({prop:n,defaultProp:s??!0,onChange:o,caller:Ni});return u.jsx(oo,{present:r||a,children:u.jsx(u_,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:or(e.onPause),onResume:or(e.onResume),onSwipeStart:fe(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:fe(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:fe(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:fe(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});my.displayName=Ni;var[l_,c_]=uy(Ni,{onClose(){}}),u_=w.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...x}=e,m=Ol(Ni,r),[b,v]=w.useState(null),g=et(t,$=>v($)),y=w.useRef(null),_=w.useRef(null),S=s||m.duration,E=w.useRef(0),k=w.useRef(S),j=w.useRef(0),{onToastAdd:A,onToastRemove:I}=m,B=or(()=>{var L;(b==null?void 0:b.contains(document.activeElement))&&((L=m.viewport)==null||L.focus()),i()}),D=w.useCallback($=>{!$||$===1/0||(window.clearTimeout(j.current),E.current=new Date().getTime(),j.current=window.setTimeout(B,$))},[B]);w.useEffect(()=>{const $=m.viewport;if($){const L=()=>{D(k.current),c==null||c()},F=()=>{const W=new Date().getTime()-E.current;k.current=k.current-W,window.clearTimeout(j.current),l==null||l()};return $.addEventListener(Wu,F),$.addEventListener(Vu,L),()=>{$.removeEventListener(Wu,F),$.removeEventListener(Vu,L)}}},[m.viewport,S,l,c,D]),w.useEffect(()=>{o&&!m.isClosePausedRef.current&&D(S)},[o,S,m.isClosePausedRef,D]),w.useEffect(()=>(A(),()=>I()),[A,I]);const K=w.useMemo(()=>b?_y(b):null,[b]);return m.viewport?u.jsxs(u.Fragment,{children:[K&&u.jsx(d_,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),u.jsx(l_,{scope:r,onClose:B,children:Ti.createPortal(u.jsx(mh.ItemSlot,{scope:r,children:u.jsx(B1,{asChild:!0,onEscapeKeyDown:fe(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(ke.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:fe(e.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:fe(e.onPointerDown,$=>{$.button===0&&(y.current={x:$.clientX,y:$.clientY})}),onPointerMove:fe(e.onPointerMove,$=>{if(!y.current)return;const L=$.clientX-y.current.x,F=$.clientY-y.current.y,W=!!_.current,C=["left","right"].includes(m.swipeDirection),N=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,P=C?N(0,L):0,q=C?0:N(0,F),z=$.pointerType==="touch"?10:2,Y={x:P,y:q},Z={originalEvent:$,delta:Y};W?(_.current=Y,na(o_,h,Z,{discrete:!1})):fp(Y,m.swipeDirection,z)?(_.current=Y,na(s_,d,Z,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(L)>z||Math.abs(F)>z)&&(y.current=null)}),onPointerUp:fe(e.onPointerUp,$=>{const L=_.current,F=$.target;if(F.hasPointerCapture($.pointerId)&&F.releasePointerCapture($.pointerId),_.current=null,y.current=null,L){const W=$.currentTarget,C={originalEvent:$,delta:L};fp(L,m.swipeDirection,m.swipeThreshold)?na(a_,f,C,{discrete:!0}):na(i_,p,C,{discrete:!0}),W.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),d_=e=>{const{__scopeToast:t,children:r,...n}=e,s=Ol(Ni,t),[o,i]=w.useState(!1),[a,l]=w.useState(!1);return p_(()=>i(!0)),w.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(fh,{asChild:!0,children:u.jsx(Al,{...n,children:o&&u.jsxs(u.Fragment,{children:[s.label," ",r]})})})},h_="ToastTitle",gy=w.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:r,...n}=e;return u.jsx(ke.div,{...n,ref:t})});gy.displayName=h_;var f_="ToastDescription",vy=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(ke.div,{...n,ref:t})});vy.displayName=f_;var yy="ToastAction",wy=w.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(by,{altText:r,asChild:!0,children:u.jsx(gh,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${yy}\`. Expected non-empty \`string\`.`),null)});wy.displayName=yy;var xy="ToastClose",gh=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=c_(xy,r);return u.jsx(by,{asChild:!0,children:u.jsx(ke.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,s.onClose)})})});gh.displayName=xy;var by=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return u.jsx(ke.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function _y(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),m_(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(..._y(n))}}),t}function na(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?oy(s,o):s.dispatchEvent(o)}var fp=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return t==="left"||t==="right"?o&&n>r:!o&&s>r};function p_(e=()=>{}){const t=or(e);_r(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function m_(e){return e.nodeType===e.ELEMENT_NODE}function g_(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Cc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var v_=dy,Sy=fy,Ey=my,ky=gy,Cy=vy,Ty=wy,jy=gh;function Ny(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ny(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Py(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ny(e))&&(n&&(n+=" "),n+=t);return n}const pp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mp=Py,Pi=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mp(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const d=r==null?void 0:r[c],h=o==null?void 0:o[c];if(d===null)return null;const p=pp(d)||pp(h);return s[c][p]}),a=r&&Object.entries(r).reduce((c,d)=>{let[h,p]=d;return p===void 0||(c[h]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...o,...a}[m]):{...o,...a}[m]===b})?[...c,h,p]:c},[]);return mp(e,i,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const y_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ry=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var w_={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 x_=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...a},l)=>w.createElement("svg",{ref:l,...w_,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Ry("lucide",s),...a},[...i.map(([c,d])=>w.createElement(c,d)),...Array.isArray(o)?o:[o]]));/** 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 re=(e,t)=>
60{const r=w.forwardRef(({className:n,...s},o)=>w.createElement(x_,{ref:o,iconNode:t,className:Ry(`lucide-${y_(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Na=re("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 b_=re("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 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 Uo=re("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 qu=re("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 gp=re("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 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 vh=re("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const __=re("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const S_=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 E_=re("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 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 gr=re("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 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 Ay=re("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 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 k_=re("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"}]]);/** 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 C_=re("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"}]]);/** 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 T_=re("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"}]]);/** 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 j_=re("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const N_=re("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/** 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 yh=re("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 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 Oy=re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 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 Iy=re("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"}]]);/** 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 P_=re("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 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 R_=re("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 A_=re("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 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 O_=re("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 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 Ly=re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 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 $y=re("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 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 I_=re("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"}]]);/** 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 Ku=re("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"}]]);/** 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 L_=re("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 $_=re("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 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 Ri=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 8,614 bytes, lines 210-215
210],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const wh=re("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),xh="-",D_=e=>{const t=F_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(xh);return a[0]===""&&a.length!==1&&a.shift(),Dy(a,t)||M_(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},Dy=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?Dy(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(xh);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},vp=/^\[(.+)\]$/,M_=e=>{if(vp.test(e)){const t=vp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},F_=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return z_(Object.entries(e.classGroups),r).forEach(([o,i])=>{Gu(i,n,o,t)}),n},Gu=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:yp(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(U_(s)){Gu(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{Gu(i,yp(t,o),r,n)})})},yp=(e,t)=>{let r=e;return t.split(xh).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},U_=e=>e.isThemeGetter,z_=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[r,s]}):e,B_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},My="!",W_=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,d=0,h;for(let b=0;b<a.length;b++){let v=a[b];if(c===0){if(v===s&&(n||a.slice(b,b+o)===t)){l.push(a.slice(d,b)),d=b+o;continue}if(v==="/"){h=b;continue}}v==="["?c++:v==="]"&&c--}const p=l.length===0?a:a.substring(d),f=p.startsWith(My),x=f?p.substring(1):p,m=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:i}):i},V_=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},H_=e=>({cache:B_(e.cacheSize),parseClassName:W_(e),...D_(e)}),q_=/\s+/,K_=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(q_);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(c);let x=!!f,m=n(x?p.substring(0,f):p);if(!m){if(!x){a=c+(a.length>0?" "+a:a);continue}if(m=n(p),!m){a=c+(a.length>0?" "+a:a);continue}x=!1}const b=V_(d).join(":"),v=h?b+My:b,g=v+m;if(o.includes(g))continue;o.push(g);const y=s(m,x);for(let _=0;_<y.length;++_){const S=y[_];o.push(v+S)}a=c+(a.length>0?" "+a:a)}return a};function G_(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Fy(t))&&(n&&(n+=" "),n+=r);return n}const Fy=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Fy(e[n]))&&(r&&(r+=" "),r+=t);return r};function Q_(e,...t){let r,n,s,o=i;function i(l){const c=t.reduce((d,h)=>h(d),e());return r=H_(c),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=K_(l,r);return s(l,d),d}return function(){return o(G_.apply(null,arguments))}}const le=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Uy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y_=/^\d+\/\d+$/,J_=new Set(["px","full","screen"]),X_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z_=/\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$/,eS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lr=e=>Ls(e)||J_.has(e)||Y_.test(e),Ir=e=>io(e,"length",uS),Ls=e=>!!e&&!Number.isNaN(Number(e)),Tc=e=>io(e,"number",Ls),_o=e=>!!e&&Number.isInteger(Number(e)),nS=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),J=e=>Uy.test(e),Lr=e=>X_.test(e),sS=new Set(["length","size","percentage"]),oS=e=>io(e,sS,zy),iS=e=>io(e,"position",zy),aS=new Set(["image","url"]),lS=e=>io(e,aS,hS),cS=e=>io(e,"",dS),So=()=>!0,io=(e,t,r)=>{const n=Uy.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},uS=e=>Z_.test(e)&&!eS.test(e),zy=()=>!1,dS=e=>tS.test(e),hS=e=>rS.test(e),fS=()=>{const e=le("colors"),t=le("spacing"),r=le("blur"),n=le("brightness"),s=le("borderColor"),o=le("borderRadius"),i=le("borderSpacing"),a=le("borderWidth"),l=le("contrast"),c=le("grayscale"),d=le("hueRotate"),h=le("invert"),p=le("gap"),f=le("gradientColorStops"),x=le("gradientColorStopPositions"),m=le("inset"),b=le("margin"),v=le("opacity"),g=le("padding"),y=le("saturate"),_=le("scale"),S=le("sepia"),E=le("skew"),k=le("space"),j=le("translate"),A=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",J,t],D=()=>[J,t],K=()=>["",lr,Ir],$=()=>["auto",Ls,J],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",J],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[Ls,J];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[lr,Ir],blur:["none","",Lr,J],brightness:q(),borderColor:[e],borderRadius:["none","","full",Lr,J],borderSpacing:D(),borderWidth:K(),contrast:q(),grayscale:N(),hueRotate:q(),invert:N(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[nS,Ir],inset:B(),margin:B(),opacity:q(),padding:D(),saturate:q(),scale:q(),sepia:N(),skew:q(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Lr]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:[...L(),J]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,J]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",_o,J]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",_o,J]},J]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[_o,J]},J]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}
vendor: 9,224 bytes, line 215
215],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Lr]},Lr]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Lr,Ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Tc]}],"font-family":[{font:[So]}],"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",J]}],"line-clamp":[{"line-clamp":["none",Ls,Tc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lr,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lr,Ir]}],"underline-offset":[{"underline-offset":["auto",lr,J]}],"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",J]}],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",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),iS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",oS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:F()}],"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:["",...F()]}],"outline-offset":[{"outline-offset":[lr,J]}],"outline-w":[{outline:[lr,Ir]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[lr,Ir]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Lr,cS]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Lr,J]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[_o,J]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],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",J]}],"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 215
215],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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[lr,Ir,Tc]}],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"]}}},pS=Q_(fS);function pe(...e){return pS(Py(e))}const mS=v_,By=w.forwardRef(({className:e,...t},r)=>u.jsx(Sy,{ref:r,className:pe("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}));By.displayName=Sy.displayName;const gS=Pi("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"}}),Wy=w.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(Ey,{ref:n,className:pe(gS({variant:t}),e),...r}));Wy.displayName=Ey.displayName;const vS=w.forwardRef(({className:e,...t},r)=>u.jsx(Ty,{ref:r,className:pe("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));vS.displayName=Ty.displayName;const Vy=w.forwardRef(({className:e,...t},r)=>u.jsx(jy,{ref:r,className:pe("absolute right-2 top-2 rounded-md p-1 text-foreground
215/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Ri,{className:"h-4 w-4"})}));Vy.displayName=jy.displayName;const Hy=w.forwardRef(({className:e,...t},r)=>u.jsx(ky,{ref:r,className:pe("text-sm font-semibold",e),...t}));Hy.displayName=ky.displayName;const qy=w.forwardRef(({className:e,...t},r)=>u.jsx(Cy,{ref:r,className:pe("text-sm opacity-90",e),...t}));qy.displayName=Cy.displayName;function yS(){const{toasts:e}=ty();return u.jsxs(mS,{children:[e.map(function({id:t,title:r,description:n,action:s,...o}){return u.jsxs(Wy,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(Hy,{children:r}),n&&u.jsx(qy,{children:n})]}),s,u.jsx(Vy,{})]},t)}),u.jsx(By,{})]})}var wp=["light","dark"],wS="(prefers-color-scheme: dark)",xS=w.createContext(void 0),bS={setTheme:e=>{},themes:[]},_S=()=>{var e;return(e=w.useContext(xS))!=null?e:bS};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let c=o==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?wp.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,m=!1,b=!0)=>{let v=i?i[x]:x,g=m?x+"|| ''":`'${v}'`,y="";return s&&b&&!m&&wp.includes(x)&&(y+=`d.style.colorScheme = '${x}';`),r==="class"?m||v?y+=`c.add(${g})`:y+="null":v&&(y+=`d[s](n,${g})`),y},f=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${wS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}${c?"":"else{"+p(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var SS=e=>{switch(e){case"success":return CS;case"info":return jS;case"warning":return TS;case"error":return NS;default:return null}},ES=Array(12).fill(0),kS=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},ES.map((r,n)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),CS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),TS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),jS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),NS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),PS=O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),RS=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Qu=1,AS=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 215
215{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Qu++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:i,title:r}):a):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
215this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,o,i=n.then(async l=>{if(o=["resolve",l],O.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(IS(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>i.then(()=>o[0]==="reject"?c(o[1]):l(o[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Qu++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},nt=new AS,OS=(e,t)=>{let r=(t==null?void 0:t.id)||Qu++;return nt.addToast({title:e,...t,id:r}),r},IS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LS=OS,$S=()=>nt.toasts,DS=()=>nt.getActiveToasts(),MS=Object.assign(LS,{success:nt.success,info:nt.info,warning:nt.warning,error:nt.error,custom:nt.custom,message:nt.message,promise:nt.promise,dismiss:nt.dismiss,loading:nt.loading},{getHistory:$S,getToasts:DS});function FS(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}FS(`: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;
215left: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}
215: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%);
215--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%)} 216`);function sa(e){return e.label!==void 0}var US=3,zS="32px",BS="16px",xp=4e3,WS=356,VS=14,HS=20,qS=200;function At(...e){return e.filter(Boolean).join(" ")}function KS(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var GS=e=>{var t,r,n,s,o,i,a,l,c,d,h;let{invert:p,toast:f,unstyled:x,interacting:m,setHeights:b,visibleToasts:v,heights:g,index:y,toasts:_,expanded:S,removeToast:E,defaultRichColors:k,closeButton:j,style:A,cancelButtonStyle:I,actionButtonStyle:B,className:D="",descriptionClassName:K="",duration:$,position:L,gap:F,loadingIcon:W,expandByDefault:C,classNames:N,icons:P,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:z}=e,[Y,Z]=O.useState(null),[Ce,Be]=O.useState(null),[ne,Jn]=O.useState(!1),[Tr,gn]=O.useState(!1),[jr,Xn]=O.useState(!1),[Nr,Li]=O.useState(!1),[Kl,$i]=O.useState(!1),[Gl,ho]=O.useState(0),[Zn,qh]=O.useState(0),fo=O.useRef(f.duration||$||xp),Kh=O.useRef(null),vn=O.useRef(null),Uw=y===0,zw=y+1<=v,xt=f.type,es=f.dismissible!==!1,Bw=f.className||"",Ww=f.descriptionClassName||"",Di=O.useMemo(()=>g.findIndex(G=>G.toastId===f.id)||0,[g,f.id]),Vw=O.useMemo(()=>{var G;return(G=f.closeButton)!=null?G:j},[f.closeButton,j]),Gh=O.useMemo(()=>f.duration||$||xp,[f.duration,$]),Ql=O.useRef(0),ts=O.useRef(0),Qh=O.useRef(0),rs=O.useRef(null),[Hw,qw]=L.split("-"),Yh=O.useMemo(()=>g.reduce((G,oe,de)=>de>=Di?G:G+oe.height,0),[g,Di]),Jh=RS(),Kw=f.invert||p,Yl=xt==="loading";ts.current=O.useMemo(()=>Di*F+Yh,[Di,Yh]),O.useEffect(()=>{fo.current=Gh},[Gh]),O.useEffect(()=>{Jn(!0)},[]),O.useEffect(()=>{let G=vn.current;if(G){let oe=G.getBoundingClientRect().height;return qh(oe),b(de=>[{toastId:f.id,height:oe,position:f.position},...de]),()=>b(de=>de.filter(jt=>jt.toastId!==f.id))}},[b,f.id]),O.useLayoutEffect(()=>{if(!ne)return;let G=vn.current,oe=G.style.height;G.style.height="auto";let de=G.getBoundingClientRect().height;G.style.height=oe,qh(de),b(jt=>jt.find(Nt=>Nt.toastId===f.id)?jt.map(Nt=>Nt.toastId===f.id?{...Nt,height:de}:Nt):[{toastId:f.id,height:de,position:f.position},...jt])},[ne,f.title,f.description,b,f.id]);let Pr=O.useCallback(()=>{gn(!0),ho(ts.current),b(G=>G.filter(oe=>oe.toastId!==f.id)),setTimeout(()=>{E(f)},qS)},[f,E,b,ts]);O.useEffect(()=>{if(f.promise&&xt==="loading"||f.duration===1/0||f.type==="loading")return;let G;return S||m||z&&Jh?(()=>{if(Qh.current<Ql.current){let oe=new Date().getTime()-Ql.current;fo.current=fo.current-oe}
216Qh.current=new Date().getTime()})():fo.current!==1/0&&(Ql.current=new Date().getTime(),G=setTimeout(()=>{var oe;(oe=f.onAutoClose)==null||oe.call(f,f),Pr()},fo.current)),()=>clearTimeout(G)},[S,m,f,xt,z,Jh,Pr]),O.useEffect(()=>{f.delete&&Pr()},[Pr,f.delete]);function Gw(){var G,oe,de;return P!=null&&P.loading?O.createElement("div",{className:At(N==null?void 0:N.loader,(G=f==null?void 0:f.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":xt==="loading"},P.loading):W?O.createElement("div",{className:At(N==null?void 0:N.loader,(oe=f==null?void 0:f.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":xt==="loading"},W):O.createElement(kS,{className:At(N==null?void 0:N.loader,(de=f==null?void 0:f.classNames)==null?void 0:de.loader),visible:xt==="loading"})}return O.createElement("li",{tabIndex:0,ref:vn,className:At(D,Bw,N==null?void 0:N.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[xt],(r=f==null?void 0:f.classNames)==null?void 0:r[xt]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:k,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":ne,"data-promise":!!f.promise,"data-swiped":Kl,"data-removed":Tr,"data-visible":zw,"data-y-position":Hw,"data-x-position":qw,"data-index":y,"data-front":Uw,"data-swiping":jr,"data-dismissible":es,"data-type":xt,"data-invert":Kw,"data-swipe-out":Nr,"data-swipe-direction":Ce,"data-expanded":!!(S||C&&ne),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${Tr?Gl:ts.current}px`,"--initial-height":C?"auto":`${Zn}px`,...A,...f.style},onDragEnd:()=>{Xn(!1),Z(null),rs.current=null},onPointerDown:G=>{Yl||!es||(Kh.current=new Date,ho(ts.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(Xn(!0),rs.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,oe,de,jt;if(Nr||!es)return;rs.current=null;let Nt=Number(((G=vn.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rr=Number(((oe=vn.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),yn=new Date().getTime()-((de=Kh.current)==null?void 0:de.getTime()),Pt=Y==="x"?Nt:Rr,Ar=Math.abs(Pt)/yn;if(Math.abs(Pt)>=HS||Ar>.11){ho(ts.current),(jt=f.onDismiss)==null||jt.call(f,f),Be(Y==="x"?Nt>0?"right":"left":Rr>0?"down":"up"),Pr(),Li(!0),$i(!1);return}Xn(!1),Z(null)},onPointerMove:G=>{var oe,de,jt,Nt;if(!rs.current||!es||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let Rr=G.clientY-rs.current.y,yn=G.clientX-rs.current.x,Pt=(de=e.swipeDirections)!=null?de:KS(L);!Y&&(Math.abs(yn)>1||Math.abs(Rr)>1)&&Z(Math.abs(yn)>Math.abs(Rr)?"x":"y");let Ar={x:0,y:0};Y==="y"?(Pt.includes("top")||Pt.includes("bottom"))&&(Pt.includes("top")&&Rr<0||Pt.includes("bottom")&&Rr>0)&&(Ar.y=Rr):Y==="x"&&(Pt.includes("left")||Pt.includes("right"))&&(Pt.includes("left")&&yn<0||Pt.includes("right")&&yn>0)&&(Ar.x=yn),(Math.abs(Ar.x)>0||Math.abs(Ar.y)>0)&&$i(!0),(jt=vn.current)==null||jt.style.setProperty("--swipe-amount-x",`${Ar.x}px`),(Nt=vn.current)==null||Nt.style.setProperty("--swipe-amount-y",`${Ar.y}px`)}},Vw&&!f.jsx?O.createElement("button",{"aria-label":q,"data-disabled":Yl,"data-close-button":!0,onClick:Yl||!es?()=>{}:()=>{var G;Pr(),(G=f.onDismiss)==null||G.call(f,f)},className:At(N==null?void 0:N.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(o=P==null?void 0:P.close)!=null?o:PS):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:O.createElement(O.Fragment,null,xt||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:At(N==null?void 0:N.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Gw():null,f.type!=="loading"?f.icon||(P==null?void 0:P[xt])||SS(xt):null):null,O.createElement("div",{"data-content":"",className:At(N==null?void 0:N.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:At(N==null?void 0:N.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?O.createElement("div",{"data-description":"",className:At(K,Ww,N==null?void 0:N.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&sa(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||I,onClick:G=>{var oe,de;sa(f.cancel)&&es&&((de=(oe=f.cancel).onClick)==null||de.call(oe,G),Pr())},className:At(N==null?void 0:N.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&sa(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:G=>{var oe,de;sa(f.action)&&((de=(oe=f.action).onClick)==null||de.call(oe,G),!G.defaultPrevented&&Pr())},className:At(N==null?void 0:N.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function bp(){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 QS(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?BS:zS;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${i}-${c}`]=a:r[`${i}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var YS=w.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:x=US,toastOptions:m,dir:b=bp(),gap:v=VS,loadingIcon:g,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[E,k]=O.useState([]),j=O.useMemo(()=>Array.from(new Set([n].concat(E.filter(z=>z.position).map(z=>z.position)))),[E,n]),[A,I]=O.useState([]),[B,D]=O.useState(!1),[K,$]=O.useState(!1),[L,F]=O.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
216k":"light"),W=O.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=O.useRef(null),P=O.useRef(!1),q=O.useCallback(z=>{k(Y=>{var Z;return(Z=Y.find(Ce=>Ce.id===z.id))!=null&&Z.delete||nt.dismiss(z.id),Y.filter(({id:Ce})=>Ce!==z.id)})},[]);return O.useEffect(()=>nt.subscribe(z=>{if(z.dismiss){k(Y=>Y.map(Z=>Z.id===z.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{Zv.flushSync(()=>{k(Y=>{let Z=Y.findIndex(Ce=>Ce.id===z.id);return Z!==-1?[...Y.slice(0,Z),{...Y[Z],...z},...Y.slice(Z+1)]:[z,...Y]})})})}),[]),O.useEffect(()=>{if(d!=="system"){F(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Y})=>{F(Y?"dark":"light")})}catch{z.addListener(({matches:Z})=>{try{F(Z?"dark":"light")}catch(Ce){console.error(Ce)}})}},[d]),O.useEffect(()=>{E.length<=1&&D(!1)},[E]),O.useEffect(()=>{let z=Y=>{var Z,Ce;s.every(Be=>Y[Be]||Y.code===Be)&&(D(!0),(Z=W.current)==null||Z.focus()),Y.code==="Escape"&&(document.activeElement===W.current||(Ce=W.current)!=null&&Ce.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),O.useEffect(()=>{if(W.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,P.current=!1)}},[W.current]),O.createElement("section",{ref:t,"aria-label":`${_} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((z,Y)=>{var Z;let[Ce,Be]=z.split("-");return E.length?O.createElement("ol",{key:z,dir:b==="auto"?bp():b,tabIndex:-1,ref:W,className:a,"data-sonner-toaster":!0,"data-theme":L,"data-y-position":Ce,"data-lifted":B&&E.length>1&&!o,"data-x-position":Be,style:{"--front-toast-height":`${((Z=A[0])==null?void 0:Z.height)||0}px`,"--width":`${WS}px`,"--gap":`${v}px`,...f,...QS(l,c)},onBlur:ne=>{P.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(P.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||P.current||(P.current=!0,N.current=ne.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{K||D(!1)},onDragEnd:()=>D(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},E.filter(ne=>!ne.position&&Y===0||ne.position===z).map((ne,Jn)=>{var Tr,gn;return O.createElement(GS,{key:ne.id,icons:y,index:Jn,toast:ne,defaultRichColors:h,duration:(Tr=m==null?void 0:m.duration)!=null?Tr:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:x,closeButton:(gn=m==null?void 0:m.closeButton)!=null?gn:i,interacting:K,position:z,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:q,toasts:E.filter(jr=>jr.position==ne.position),heights:A.filter(jr=>jr.position==ne.position),setHeights:I,expandByDefault:o,gap:v,loadingIcon:g,expanded:B,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const JS=({...e})=>{const{theme:t="system"}=_S();return u.jsx(YS,{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 XS=_d[" useId ".trim().toString()]||(()=>{}),ZS=0;function jc(e){const[t,r]=w.useState(XS());return _r(()=>{e||r(n=>n??String(ZS++))},[e]),e||(t?`radix-${t}`:"")}const eE=["top","right","bottom","left"],dn=Math.min,dt=Math.max,nl=Math.round,oa=Math.floor,sr=e=>({x:e,y:e}
vendor: 11,919 bytes, line 216
216),tE={left:"right",right:"left",bottom:"top",top:"bottom"},rE={start:"end",end:"start"};function Yu(e,t,r){return dt(e,dn(t,r))}function Sr(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function bh(e){return e==="x"?"y":"x"}function _h(e){return e==="y"?"height":"width"}const nE=new Set(["top","bottom"]);function tr(e){return nE.has(Er(e))?"y":"x"}function Sh(e){return bh(tr(e))}function sE(e,t,r){r===void 0&&(r=!1);const n=ao(e),s=Sh(e),o=_h(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=sl(i)),[i,sl(i)]}function oE(e){const t=sl(e);return[Ju(e),t,Ju(t)]}function Ju(e){return e.replace(/start|end/g,t=>rE[t])}const _p=["left","right"],Sp=["right","left"],iE=["top","bottom"],aE=["bottom","top"];function lE(e,t,r){switch(e){case"top":case"bottom":return r?t?Sp:_p:t?_p:Sp;case"left":case"right":return t?iE:aE;default:return[]}}function cE(e,t,r,n){const s=ao(e);let o=lE(Er(e),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Ju)))),o}function sl(e){return e.replace(/left|right|bottom|top/g,t=>tE[t])}function uE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ky(e){return typeof e!="number"?uE(e):{top:e,right:e,bottom:e,left:e}}function ol(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Ep(e,t,r){let{reference:n,floating:s}=e;const o=tr(t),i=Sh(t),a=_h(i),l=Er(t),c=o==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let f;switch(l){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(ao(t)){case"start":f[i]-=p*(r&&c?-1:1);break;case"end":f[i]+=p*(r&&c?-1:1);break}return f}const dE=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}=r,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=Ep(c,n,l),p=n,f={},x=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:g,y,data:_,reset:S}=await v({x:d,y:h,initialPlacement:n,placement:p,strategy:s,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=g??d,h=y??h,f={...f,[b]:{...f[b],..._}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:d,y:h}=Ep(c,p,l)),m=-1)}return{x:d,y:h,placement:p,strategy:s,middlewareData:f}};async function li(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Sr(t,e),x=Ky(f),b=a[p?h==="floating"?"reference":"floating":h],v=ol(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),g=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},S=ol(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-S.top+x.top)/_.y,bottom:(S.bottom-v.bottom+x.bottom)/_.y,left:(v.left-S.left+x.left)/_.x,right:(S.right-v.right+x.right)/_.x}}const hE=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Sr(e,t)||{};if(c==null)return{};const h=Ky(d),p={x:r,y:n},f=Sh(s),x=_h(f),m=await i.getDimensions(c),b=f==="y",v=b?"top":"left",g=b?"bottom":"right",y=b?"clientHeight":"clientWidth",_=o.reference[x]+o.reference[f]-p[f]-o.floating[x],S=p[f]-o.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let k=E?E[y]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=a.floating[y]||o.floating[x]);const j=_/2-S/2,A=k/2-m[x]/2-1,I=dn(h[v],A),B=dn(h[g],A),D=I,K=k-m[x]-B,$=k/2-m[x]/2+j,L=Yu(D,$,K),F=!l.arrow&&ao(s)!=null&&$!==L&&o.reference[x]/2-($<D?I:B)-m[x]/2<0,W=F?$<D?$-D:$-K:0;return{[f]:p[f]+W,data:{[f]:L,centerOffset:$-L-W,...F&&{alignmentOffset:W}},reset:F}}}),fE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...b}=Sr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const v=Er(s),g=tr(a),y=Er(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(y||!m?[sl(a)]:oE(a)),E=x!=="none";!p&&E&&S.push(...cE(a,m,x,_));const k=[a,...S],j=await li(t,b),A=[];let I=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&A.push(j[v]),h){const $=sE(s,i,_);A.push(j[$[0]],j[$[1]])}if(I=[...I,{placement:s,overflows:A}],!A.every($=>$<=0)){var B,D;const $=(((B=o.flip)==null?void 0:B.index)||0)+1,L=k[$];if(L&&(!(h==="alignment"?g!==tr(L):!1)||I.every(C=>C.overflows[0]>0&&tr(C.placement)===g)))return{data:{index:$,overflows:I},reset:{placement:L}};let F=(D=I.filter(W=>W.overflows[0]<=0).sort((W,C)=>W.overflows[1]-C.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(f){case"bestFit":{var K;const W=(K=I.filter(C=>{if(E){const N=tr(C.placement);return N===g||N==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(N=>N>0).reduce((N,P)=>N+P,0)]).sort((C,N)=>C[1]-N[1])[0])==null?void 0:K[0];W&&(F=W);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function kp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cp(e){return eE.some(t=>e[t]>=0)}const pE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=Sr(e,t);switch(n){case"referenceHidden":{const o=await li(t,{...s,elementContext:"reference"}),i=kp(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Cp(i)}}}case"escaped":{const o=await li(t,{...s,altBoundary:!0}),i=kp(o,r.floating);return{data:{escapedOffsets:i,escaped:Cp(i)}}}default:return{}}}}},Gy=new Set(["left","top"]);async function mE(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=Er(r),a=ao(r),l=tr(r)==="y",c=Gy.has(i)?-1:1,d=o&&l?-1:1,h=Sr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const gE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await mE(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},vE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...l}=Sr(e,t),c={x:r,y:n},d=await li(t,l),h=tr(Er(s)),p=bh(h);let f=c[p],x=c[h];if(o){const b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",g=f+d[b],y=f-d[v];f=Yu(g,f,y)}if(i){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=x+d[b],y=x-d[v];x=Yu(g,x,y)}const m=a.fn({...t,[p]:f,[h]:x});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:o,[h]:i}}}}}},yE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Sr(e,t),d={x:r,y:n},h=tr(s),p=bh(h);let f=d[p],x=d[h];const m=Sr(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=p==="y"?"height":"width",_=o.reference[p]-o.floating[y]+b.mainAxis,S=o.reference[p]+o.reference[y]-b.mainAxis;f<_?f=_:f>S&&(f=S)}if(c){var v,g;const y=p==="y"?"width":"height",_=Gy.has(Er(s)),S=o.reference[h]-o.floating[y]+(_&&((v=i.offset)==null?void 0:v[h])||0)+(_?0:b.crossAxis),E=o.reference[h]+o.reference[y]+(_?0:((g=i.offset)==null?void 0:g[h])||0)-(_?b.crossAxis:0);x<S?x=S:x>E&&(x=E)}return{[p]:f,[h]:x}}}},wE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Sr(e,t),d=await li(t,c),h=Er(s),p=ao(s),f=tr(s)==="y",{width:x,height:m}=o.floating;let b,v;h==="top"||h==="bottom"?(b=h,v=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,b=p==="end"?"top":"bottom");const g=m-d.top-d.bottom,y=x-d.left-d.right,_=dn(m-d[b],g),S=dn(x-d[v],y),E=!t.middlewareData.shift;let k=_,j=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=g),E&&!p){const I=dt(d.left,0),B=dt(d.right,0),D=dt(d.top,0),K=dt(d.bottom,0);f?j=x-2*(I!==0||B!==0?I+B:dt(d.left,d.right)):k=m-2*(D!==0||K!==0?D+K:dt(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:k});const A=await i.getDimensions(a.floating);return x!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function Il(){return typeof window<"u"}function lo(e){return Qy(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Qy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qy(e){return Il()?e instanceof Node||e instanceof gt(e).Node:!1}function Ht(e){return Il()?e instanceof Element||e instanceof gt(e).Element:!1}function ir(e){return Il()?e instanceof HTMLElement||e instanceof gt(e).HTMLElement:!1}function Tp(e){return!Il()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}const xE=new Set(["inline","contents"]);function Ai(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!xE.has(s)}const bE=new Set(["table","td","th"]);function _E(e){return bE.has(lo(e))}const SE=[":popover-open",":modal"];function Ll(e){return SE.some(t=>{try{return e.matches(t)}catch{return!1}})}const EE=["transform","translate","scale","rotate","perspective"],kE=["transform","translate","scale","rotate","perspective","filter"],CE=["paint","layout","strict","content"];function Eh(e){const t=kh(),r=Ht(e)?qt(e):e;return EE.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||kE.some(n=>(r.willChange||"").includes(n))||CE.some(n=>(r.contain||"").includes(n))}function TE(e){let t=hn(e);for(;ir(t)&&!eo(t);){if(Eh(t))return t;if(Ll(t))return null;t=hn(t)}return null}function kh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jE=new Set(["html","body","#document"]);function eo(e){return jE.has(lo(e))}function qt(e){return gt(e).getComputedStyle(e)}function $l(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hn(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tp(e)&&e.host||ar(e);return Tp(t)?t.host:t}function Yy(e){const t=hn(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ir(t)&&Ai(t)?t:Yy(t)}function ci(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Yy(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=gt(s);if(o){const a=Xu(i);
vendor: 5,412 bytes, line 216
216return t.concat(i,i.visualViewport||[],Ai(s)?s:[],a&&r?ci(a):[])}return t.concat(s,ci(s,[],r))}function Xu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jy(e){const t=qt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=ir(e),o=s?e.offsetWidth:r,i=s?e.offsetHeight:n,a=nl(r)!==o||nl(n)!==i;return a&&(r=o,n=i),{width:r,height:n,$:a}}function Ch(e){return Ht(e)?e:e.contextElement}function $s(e){const t=Ch(e);if(!ir(t))return sr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=Jy(t);let i=(o?nl(r.width):r.width)/n,a=(o?nl(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const NE=sr(0);function Xy(e){const t=gt(e);return!kh()||!t.visualViewport?NE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PE(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==gt(e)?!1:t}function Vn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Ch(e);let i=sr(1);t&&(n?Ht(n)&&(i=$s(n)):i=$s(e));const a=PE(o,r,n)?Xy(o):sr(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const p=gt(o),f=n&&Ht(n)?gt(n):n;let x=p,m=Xu(x);for(;m&&n&&f!==x;){const b=$s(m),v=m.getBoundingClientRect(),g=qt(m),y=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(m.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,h*=b.y,l+=y,c+=_,x=gt(m),m=Xu(x)}}return ol({width:d,height:h,x:l,y:c})}function Th(e,t){const r=$l(e).scrollLeft;return t?t.left+r:Vn(ar(e)).left+r}function Zy(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Th(e,n)),o=n.top+t.scrollTop;return{x:s,y:o}}function RE(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",i=ar(n),a=t?Ll(t.floating):!1;if(n===i||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=sr(1);const d=sr(0),h=ir(n);if((h||!h&&!o)&&((lo(n)!=="body"||Ai(i))&&(l=$l(n)),ir(n))){const f=Vn(n);c=$s(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const p=i&&!h&&!o?Zy(i,l,!0):sr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function AE(e){return Array.from(e.getClientRects())}function OE(e){const t=ar(e),r=$l(e),n=e.ownerDocument.body,s=dt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=dt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Th(e);const a=-r.scrollTop;return qt(n).direction==="rtl"&&(i+=dt(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:a}}function IE(e,t){const r=gt(e),n=ar(e),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=kh();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const LE=new Set(["absolute","fixed"]);function $E(e,t){const r=Vn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=ir(e)?$s(e):sr(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=n*o.y;return{width:i,height:a,x:l,y:c}}function jp(e,t,r){let n;if(t==="viewport")n=IE(e,r);else if(t==="document")n=OE(ar(e));else if(Ht(t))n=$E(t,r);else{const s=Xy(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return ol(n)}function e0(e,t){const r=hn(e);return r===t||!Ht(r)||eo(r)?!1:qt(r).position==="fixed"||e0(r,t)}function DE(e,t){const r=t.get(e);if(r)return r;let n=ci(e,[],!1).filter(a=>Ht(a)&&lo(a)!=="body"),s=null;const o=qt(e).position==="fixed";let i=o?hn(e):e;for(;Ht(i)&&!eo(i);){const a=qt(i),l=Eh(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&LE.has(s.position)||Ai(i)&&!l&&e0(e,i))?n=n.filter(d=>d!==i):s=a,i=hn(i)}return t.set(e,n),n}function ME(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Ll(t)?[]:DE(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((c,d)=>{const h=jp(t,d,s);return c.top=dt(h.top,c.top),c.right=dn(h.right,c.right),c.bottom=dn(h.bottom,c.bottom),c.left=dt(h.left,c.left),c},jp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function FE(e){const{width:t,height:r}=Jy(e);return{width:t,height:r}}function UE(e,t,r){const n=ir(t),s=ar(t),o=r==="fixed",i=Vn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=sr(0);function c(){l.x=Th(s)}if(n||!n&&!o)if((lo(t)!=="body"||Ai(s))&&(a=$l(t)),n){const f=Vn(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();o&&!n&&s&&c();const d=s&&!n&&!o?Zy(s,a):sr(0),h=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function Nc(e){return qt(e).position==="static"}function Np(e,t){if(!ir(e)||qt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ar(e)===r&&(r=r.ownerDocument.body),r}function t0(e,t){const r=gt(e);if(Ll(e))return r;if(!ir(e)){let s=hn(e);for(;s&&!eo(s);){if(Ht(s)&&!Nc(s))return s;s=hn(s)}return r}let n=Np(e,t);for(;n&&_E(n)&&Nc(n);)n=Np(n,t);return n&&eo(n)&&Nc(n)&&!Eh(n)?r:n||TE(e)||r}const zE=async function(e){const t=this.getOffsetParent||t0,r=this.getDimensions,n=await r(e.floating);return{reference:UE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function BE(e){return qt(e).direction==="rtl"}const WE={convertOffsetParentRelativeRectToViewportRelativeRect:RE,getDocumentElement:ar,getClippingRect:ME,getOffsetParent:t0,getElementRects:zE,getClientRects:AE,getDimensions:FE,get
vendor: 10,419 bytes, line 216
216Scale:$s,isElement:Ht,isRTL:BE};function r0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VE(e,t){let r=null,n;const s=ar(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(a||t(),!p||!f)return;const x=oa(h),m=oa(s.clientWidth-(d+p)),b=oa(s.clientHeight-(h+f)),v=oa(d),y={rootMargin:-x+"px "+-m+"px "+-b+"px "+-v+"px",threshold:dt(0,dn(1,l))||1};let _=!0;function S(E){const k=E[0].intersectionRatio;if(k!==l){if(!_)return i();k?i(!1,k):n=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!r0(c,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,y)}r.observe(e)}return i(!0),o}function HE(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ch(e),d=s||o?[...c?ci(c):[],...ci(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const h=c&&a?VE(c,r):null;let p=-1,f=null;i&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let x,m=l?Vn(e):null;l&&b();function b(){const v=Vn(e);m&&!r0(m,v)&&r(),m=v,x=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",r),o&&g.removeEventListener("resize",r)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(x)}}const qE=gE,KE=vE,GE=fE,QE=wE,YE=pE,Pp=hE,JE=yE,XE=(e,t,r)=>{const n=new Map,s={platform:WE,...r},o={...s.platform,_c:n};return dE(e,t,{...s,platform:o})};var ZE=typeof document<"u",ek=function(){},Pa=ZE?w.useLayoutEffect:ek;function il(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!il(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!il(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function n0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rp(e,t){const r=n0(e);return Math.round(t*r)/r}function Pc(e){const t=w.useRef(e);return Pa(()=>{t.current=e}),t}function tk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=w.useState(n);il(p,n)||f(n);const[x,m]=w.useState(null),[b,v]=w.useState(null),g=w.useCallback(C=>{C!==E.current&&(E.current=C,m(C))},[]),y=w.useCallback(C=>{C!==k.current&&(k.current=C,v(C))},[]),_=o||x,S=i||b,E=w.useRef(null),k=w.useRef(null),j=w.useRef(d),A=l!=null,I=Pc(l),B=Pc(s),D=Pc(c),K=w.useCallback(()=>{if(!E.current||!k.current)return;const C={placement:t,strategy:r,middleware:p};B.current&&(C.platform=B.current),XE(E.current,k.current,C).then(N=>{const P={...N,isPositioned:D.current!==!1};$.current&&!il(j.current,P)&&(j.current=P,Ti.flushSync(()=>{h(P)}))})},[p,t,r,B,D]);Pa(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(C=>({...C,isPositioned:!1})))},[c]);const $=w.useRef(!1);Pa(()=>($.current=!0,()=>{$.current=!1}),[]),Pa(()=>{if(_&&(E.current=_),S&&(k.current=S),_&&S){if(I.current)return I.current(_,S,K);K()}},[_,S,K,I,A]);const L=w.useMemo(()=>({reference:E,floating:k,setReference:g,setFloating:y}),[g,y]),F=w.useMemo(()=>({reference:_,floating:S}),[_,S]),W=w.useMemo(()=>{const C={position:r,left:0,top:0};if(!F.floating)return C;const N=Rp(F.floating,d.x),P=Rp(F.floating,d.y);return a?{...C,transform:"translate("+N+"px, "+P+"px)",...n0(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:P}},[r,a,F.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:K,refs:L,elements:F,floatingStyles:W}),[d,K,L,F,W])}const rk=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Pp({element:n.current,padding:s}).fn(r):{}:n?Pp({element:n,padding:s}).fn(r):{}}}},nk=(e,t)=>({...qE(e),options:[e,t]}),sk=(e,t)=>({...KE(e),options:[e,t]}),ok=(e,t)=>({...JE(e),options:[e,t]}),ik=(e,t)=>({...GE(e),options:[e,t]}),ak=(e,t)=>({...QE(e),options:[e,t]}),lk=(e,t)=>({...YE(e),options:[e,t]}),ck=(e,t)=>({...rk(e),options:[e,t]});var uk="Arrow",s0=w.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return u.jsx(ke.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});s0.displayName=uk;var dk=s0;function hk(e){const[t,r]=w.useState(void 0);return _r(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var o0="Popper",[i0,a0]=ji(o0),[PR,l0]=i0(o0),c0="PopperAnchor",u0=w.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=l0(c0,r),i=w.useRef(null),a=et(t,i);return w.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(ke.div,{...s,ref:a})});u0.displayName=c0;var jh="PopperContent",[fk,pk]=i0(jh),d0=w.forwardRef((e,t)=>{var ne,Jn,Tr,gn,jr,Xn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:x,...m}=e,b=l0(jh,r),[v,g]=w.useState(null),y=et(t,Nr=>g(Nr)),[_,S]=w.useState(null),E=hk(_),k=(E==null?void 0:E.width)??0,j=(E==null?void 0:E.height)??0,A=n+(o!=="center"?"-"+o:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],D=B.length>0,K={padding:I,boundary:B.filter(gk),altBoundary:D},{refs:$,floatingStyles:L,placement:F,isPositioned:W,middlewareData:C}=tk({strategy:"fixed",placement:A,whileElementsMounted:(...Nr)=>HE(...Nr,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[nk({mainAxis:s+j,alignmentAxis:i}),l&&sk({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ok():void 0,...K}),l&&ik({...K}),ak({...K,apply:({elements:Nr,rects:Li,availableWidth:Kl,availableHeight:$i})=>{const{width:Gl,height:ho}=Li.reference,Zn=Nr.floating.style;Zn.setProperty("--radix-popper-available-width",`${Kl}px`),Zn.setProperty("--radix-popper-available-height",`${$i}px`),Zn.setProperty("--radix-popper-anchor-width",`${Gl}px`),Zn.setProperty("--radix-popper-anchor-height",`${ho}px`)}}),_&&ck({element:_,padding:a}),vk({arrowWidth:k,arrowHeight:j}),p&&lk({strategy:"referenceHidden",...K})]}),[N,P]=p0(F),q=or(x);_r(()=>{W&&(q==null||q())},[W,q]);const z=(ne=C.arrow)==null?void 0:ne.x,Y=(Jn=C.arrow)==null?void 0:Jn.y,Z=((Tr=C.arrow)==null?void 0:Tr.centerOffset)!==0,[Ce,Be]=w.useState();return _r(()=>{v&&Be(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:W?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(gn=C.transformOrigin)==null?void 0:gn.x,(jr=C.transformOrigin)==null?void 0:jr.y].join(" "),...((Xn=C.hide)==null?void 0:Xn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(fk,{scope:r,placedSide:N,onArrowChange:S,arrowX:z,arrowY:Y,shouldHideArrow:Z,children:u.jsx(ke.div,{"data-side":N,"data-align":P,...m,ref:y,style:{...m.style,animation:W?void 0:"none"}})})})});d0.displayName=jh;var h0="PopperArrow",mk={top:"bottom",right:"left",bottom:"top",left:"right"},f0=w.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=pk(h0,n),i=mk[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(dk,{...s,ref:r,style:{...s.style,display:"block"}})})});f0.displayName=h0;function gk(e){return e!==null}var vk=e=>({name:"transformOrigin",options:e,fn(t){var b,v,g;const{placement:r,rects:n,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=p0(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let x="",m="";return c==="bottom"?(x=i?h:`${p}px`,m=`${-l}px`):c==="top"?(x=i?h:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(x=`${-l}px`,m=i?h:`${f}px`):c==="left"&&(x=`${n.floating.width+l}px`,m=i?h:`${f}px`),{data:{x,y:m}}}});function p0(e){const[t,r="center"]=e.split("-");return[t,r]}var yk=u0,wk=d0,xk=f0,[Dl,RR]=ji("Tooltip",[a0]),Nh=a0(),m0="TooltipProvider",bk=700,Ap="tooltip.open",[_k,g0]=Dl(m0),v0=e=>{const{__scopeTooltip:t,delayDuration:r=bk,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,i=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(_k,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:o})};v0.displayName=m0;var y0="Tooltip",[AR,Ml]=Dl(y0),Zu="TooltipTrigger",Sk=w.forwardRef((e,t)=>
vendor: 5,599 bytes, line 216
216{const{__scopeTooltip:r,...n}=e,s=Ml(Zu,r),o=g0(Zu,r),i=Nh(r),a=w.useRef(null),l=et(t,a,s.onTriggerChange),c=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>c.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(yk,{asChild:!0,...i,children:u.jsx(ke.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:fe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:fe(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:fe(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:fe(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:fe(e.onBlur,s.onClose),onClick:fe(e.onClick,s.onClose)})})});Sk.displayName=Zu;var Ek="TooltipPortal",[OR,kk]=Dl(Ek,{forceMount:void 0}),to="TooltipContent",w0=w.forwardRef((e,t)=>{const r=kk(to,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,i=Ml(to,e.__scopeTooltip);return u.jsx(oo,{present:n||i.open,children:i.disableHoverableContent?u.jsx(x0,{side:s,...o,ref:t}):u.jsx(Ck,{side:s,...o,ref:t})})}),Ck=w.forwardRef((e,t)=>{const r=Ml(to,e.__scopeTooltip),n=g0(to,e.__scopeTooltip),s=w.useRef(null),o=et(t,s),[i,a]=w.useState(null),{trigger:l,onClose:c}=r,d=s.current,{onPointerInTransitChange:h}=n,p=w.useCallback(()=>{a(null),h(!1)},[h]),f=w.useCallback((x,m)=>{const b=x.currentTarget,v={x:x.clientX,y:x.clientY},g=Rk(v,b.getBoundingClientRect()),y=Ak(v,g),_=Ok(m.getBoundingClientRect()),S=Lk([...y,..._]);a(S),h(!0)},[h]);return w.useEffect(()=>()=>p(),[p]),w.useEffect(()=>{if(l&&d){const x=b=>f(b,d),m=b=>f(b,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",m)}}},[l,d,f,p]),w.useEffect(()=>{if(i){const x=m=>{const b=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),y=!Ik(v,i);g?p():y&&(p(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,i,c,p]),u.jsx(x0,{...e,ref:o})}),[Tk,jk]=Dl(y0,{isInside:!1}),Nk=N1("TooltipContent"),x0=w.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Ml(to,r),c=Nh(r),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(Ap,d),()=>document.removeEventListener(Ap,d)),[d]),w.useEffect(()=>{if(l.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(Rl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(wk,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Nk,{children:n}),u.jsx(Tk,{scope:r,isInside:!0,children:u.jsx(Z1,{id:l.contentId,role:"tooltip",children:s||n})})]})})});w0.displayName=to;var b0="TooltipArrow",Pk=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Nh(r);return jk(b0,r).isInside?null:u.jsx(xk,{...s,...n,ref:t})});Pk.displayName=b0;function Rk(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ak(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Ok(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Ik(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],c=a.x,d=a.y,h=l.x,p=l.y;d>n!=p>n&&r<(h-c)*(n-d)/(p-d)+c&&(s=!s)}return s}function Lk(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),$k(t)}function $k(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Dk=v0,_0=w0;const Mk=Dk,Fk=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(_0,{ref:n,sideOffset:t,className:pe("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
216de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Fk.displayName=_0.displayName;var Fl=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(){}},Ul=typeof window>"u"||"Deno"in globalThis;function Lt(){}function Uk(e,t){return typeof e=="function"?e(t):e}function zk(e){return typeof e=="number"&&e>=0&&e!==1/0}function Bk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ed(e,t){return typeof e=="function"?e(t):e}function Wk(e,t){return typeof e=="function"?e(t):e}function Op(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==Ph(i,t.options))return!1}else if(!di(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Ip(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ui(t.options.mutationKey)!==ui(o))return!1}else if(!di(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Ph(e,t){return((t==null?void 0:t.queryKeyHashFn)||ui)(e)}function ui(e){return JSON.stringify(e,(t,r)=>td(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function di(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>di(e[r],t[r])):!1}function S0(e,t){if(e===t)return e;const r=Lp(e)&&Lp(t);if(r||td(e)&&td(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<i;d++){const h=r?d:o[d];(!r&&l.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,c++):(a[h]=S0(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function Lp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function td(e){if(!$p(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!$p(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $p(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vk(e){return new Promise(t=>{setTimeout(t,e)})}function Hk(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?S0(e,t):t}function qk(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Kk(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Rh=Symbol();function E0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Rh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Rn,Vr,Fs,Am,Gk=(Am=class extends Fl{constructor(){super();te(this,Rn);te(this,Vr);te(this,Fs);Q(this,Fs,t=>{if(!Ul&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,Vr)||this.setEventListener(T(this,Fs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Vr))==null||t.call(this),Q(this,Vr,void 0))}setEventListener(t){var r;Q(this,Fs,t),(r=T(this,Vr))==null||r.call(this),Q(this,Vr,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){T(this,Rn)!==t&&(Q(this,Rn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,Rn)=="boolean"?T(this,Rn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rn=new WeakMap,Vr=new WeakMap,Fs=new WeakMap,Am),k0=new Gk,Us,Hr,zs,Om,Qk=(Om=class extends Fl{constructor(){super();te(this,Us,!0);te(this,Hr);te(this,zs);Q(this,zs,t=>{if(!Ul&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 4,342 bytes, line 216
216)}}})}onSubscribe(){T(this,Hr)||this.setEventListener(T(this,zs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Hr))==null||t.call(this),Q(this,Hr,void 0))}setEventListener(t){var r;Q(this,zs,t),(r=T(this,Hr))==null||r.call(this),Q(this,Hr,t(this.setOnline.bind(this)))}setOnline(t){T(this,Us)!==t&&(Q(this,Us,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return T(this,Us)}},Us=new WeakMap,Hr=new WeakMap,zs=new WeakMap,Om),al=new Qk;function Yk(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function Jk(e){return Math.min(1e3*2**e,3e4)}function C0(e){return(e??"online")==="online"?al.isOnline():!0}var T0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rc(e){return e instanceof T0}function j0(e){let t=!1,r=0,n=!1,s;const o=Yk(),i=m=>{var b;n||(p(new T0(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>k0.isFocused()&&(e.networkMode==="always"||al.isOnline())&&e.canRun(),d=()=>C0(e.networkMode)&&e.canRun(),h=m=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,m),s==null||s(),o.resolve(m))},p=m=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,m),s==null||s(),o.reject(m))},f=()=>new Promise(m=>{var b;s=v=>{(n||c())&&m(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;s=void 0,n||(m=e.onContinue)==null||m.call(e)}),x=()=>{if(n)return;let m;const b=r===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var E;if(n)return;const g=e.retry??(Ul?0:3),y=e.retryDelay??Jk,_=typeof y=="function"?y(r,v):y,S=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!S){p(v);return}r++,(E=e.onFail)==null||E.call(e,r,v),Vk(_).then(()=>c()?void 0:f()).then(()=>{t?p(v):x()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?x():f().then(x),o)}}var Xk=e=>setTimeout(e,0);function Zk(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=Xk;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var Xe=Zk(),An,Im,N0=(Im=class{constructor(){te(this,An)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zk(this.gcTime)&&Q(this,An,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ul?1/0:5*60*1e3))}clearGcTimeout(){T(this,An)&&(clearTimeout(T(this,An)),Q(this,An,void 0))}},An=new WeakMap,Im),Bs,On,bt,In,qe,xi,Ln,Dt,cr,Lm,eC=(Lm=class extends N0{constructor(t){super();te(this,Dt);te(this,Bs);te(this,On);te(this,bt);te(this,In);te(this,qe);te(this,xi);te(this,Ln);Q(this,Ln,!1),Q(this,xi,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,In,t.client),Q(this,bt,T(this,In).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,Bs,rC(this.options)),this.state=t.state??T(this,Bs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,qe))==null?void 0:t.promise}setOptions(t){this.options={...T(this,xi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,bt).remove(this)}setData(t,r){const n=Hk(this.state.data,t,this.options);return We(this,Dt,cr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){We(this,Dt,cr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=T(this,qe))==null?void 0:n.promise;return(s=T(this,qe))==null||s.cancel(t),r?r.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Bs))}isActive(){return this.observers.some(t=>Wk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rh||this.state.dataUpdateCount+this.state.errorUpdate
216Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ed(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:!Bk(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,qe))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,qe))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,qe)&&(T(this,Ln)?T(this,qe).cancel({revert:!0}):T(this,qe).cancelRetry()),this.scheduleGc()),T(this,bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,Dt,cr).call(this,{type:"invalidate"})}fetch(t,r){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,qe))return T(this,qe).continueRetry(),T(this,qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Q(this,Ln,!0),n.signal)})},o=()=>{const p=E0(this.options,r),x=(()=>{const m={client:T(this,In),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return Q(this,Ln,!1),this.options.persister?this.options.persister(p,x,this):p(x)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:T(this,In),state:this.state,fetchFn:o};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),Q(this,On,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&We(this,Dt,cr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var f,x,m,b;Rc(p)&&p.silent||We(this,Dt,cr).call(this,{type:"error",error:p}),Rc(p)||((x=(f=T(this,bt).config).onError)==null||x.call(f,p,this),(b=(m=T(this,bt).config).onSettled)==null||b.call(m,this.state.data,p,this)),this.scheduleGc()};return Q(this,qe,j0({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,x,m,b;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){l(v);return}(x=(f=T(this,bt).config).onSuccess)==null||x.call(f,p,this),(b=(m=T(this,bt).config).onSettled)==null||b.call(m,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{We(this,Dt,cr).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{We(this,Dt,cr).call(this,{type:"pause"})},onContinue:()=>{We(this,Dt,cr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,qe).start()}},Bs=new WeakMap,On=new WeakMap,bt=new WeakMap,In=new WeakMap,qe=new WeakMap,xi=new WeakMap,Ln=new WeakMap,Dt=new WeakSet,cr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...tC(n.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,On,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Rc(s)&&s.revert&&T(this,On)?{...T(this,On),fetchStatus:"idle"}
vendor: 4,595 bytes, line 216
216:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Xe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,bt).notify({query:this,type:"updated",action:t})})},Lm);function tC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:C0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Yt,$m,nC=($m=class extends Fl{constructor(t={}){super();te(this,Yt);this.config=t,Q(this,Yt,new Map)}build(t,r,n){const s=r.queryKey,o=r.queryHash??Ph(s,r);let i=this.get(o);return i||(i=new eC({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){T(this,Yt).has(t.queryHash)||(T(this,Yt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Yt).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Yt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Yt).get(t)}getAll(){return[...T(this,Yt).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Op(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Op(t,n)):r}notify(t){Xe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yt=new WeakMap,$m),Jt,Ye,$n,Xt,$r,Dm,sC=(Dm=class extends N0{constructor(t){super();te(this,Xt);te(this,Jt);te(this,Ye);te(this,$n);this.mutationId=t.mutationId,Q(this,Ye,t.mutationCache),Q(this,Jt,[]),this.state=t.state||oC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Jt).includes(t)||(T(this,Jt).push(t),this.clearGcTimeout(),T(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Jt,T(this,Jt).filter(r=>r!==t)),this.scheduleGc(),T(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Jt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ye).remove(this))}continue(){var t;return((t=T(this,$n))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,c,d,h,p,f,x,m,b,v,g,y,_,S,E,k,j;const r=()=>{We(this,Xt,$r).call(this,{type:"continue"})};Q(this,$n,j0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,I)=>{We(this,Xt,$r).call(this,{type:"failed",failureCount:A,error:I})},onPause:()=>{We(this,Xt,$r).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ye).canRun(this)}));const n=this.state.status==="pending",s=!T(this,$n).canStart();try{if(n)r();else{We(this,Xt,$r).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=T(this,Ye).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&We(this,Xt,$r).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const A=await T(this,$n).start();return await((d=(c=T(this,Ye).config).onSuccess)==null?void 0:d.call(c,A,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,A,t,this.state.context)),await((x=(f=T(this,Ye).config).onSettled)==null?void 0:x.call(f,A,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,A,null,t,this.state.context)),We(this,Xt,$r).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(v=T(this,Ye).config).onError)==null?void 0:g.call(v,A,t,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,A,t,this.state.context)),await((E=(S=T(this,Ye).config).onSettled)==null?void 0:E.
216call(S,void 0,A,this.state.variables,this.state.context,this)),await((j=(k=this.options).onSettled)==null?void 0:j.call(k,void 0,A,t,this.state.context)),A}finally{We(this,Xt,$r).call(this,{type:"error",error:A})}}finally{T(this,Ye).runNext(this)}}},Jt=new WeakMap,Ye=new WeakMap,$n=new WeakMap,Xt=new WeakSet,$r=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Xe.batch(()=>{T(this,Jt).forEach(n=>{n.onMutationUpdate(t)}),T(this,Ye).notify({mutation:this,type:"updated",action:t})})},Dm);function oC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fr,Mt,bi,Mm,iC=(Mm=class extends Fl{constructor(t={}){super();te(this,fr);te(this,Mt);te(this,bi);this.config=t,Q(this,fr,new Set),Q(this,Mt,new Map),Q(this,bi,0)}build(t,r,n){const s=new sC({mutationCache:this,mutationId:++Mi(this,bi)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){T(this,fr).add(t);const r=ia(t);if(typeof r=="string"){const n=T(this,Mt).get(r);n?n.push(t):T(this,Mt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,fr).delete(t)){const r=ia(t);if(typeof r=="string"){const n=T(this,Mt).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&T(this,Mt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ia(t);if(typeof r=="string"){const n=T(this,Mt).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=ia(t);if(typeof r=="string"){const s=(n=T(this,Mt).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{T(this,fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,fr).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,fr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Ip(r,n))}findAll(t={}){return this.getAll().filter(r=>Ip(t,r))}notify(t){Xe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,659 bytes, line 216
216r.state.isPaused);return Xe.batch(()=>Promise.all(t.map(r=>r.continue().catch(Lt))))}},fr=new WeakMap,Mt=new WeakMap,bi=new WeakMap,Mm);function ia(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Dp(e){return{onFetch:(t,r)=>{var d,h,p,f,x;const n=t.options,s=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const b=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=E0(t.options,t.fetchOptions),g=async(y,_,S)=>{if(m)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return b(B),B})(),j=await v(k),{maxPages:A}=t.options,I=S?Kk:qk;return{pages:I(y.pages,j,A),pageParams:I(y.pageParams,_,A)}};if(s&&o.length){const y=s==="backward",_=y?aC:Mp,S={pages:o,pageParams:i},E=_(n,S);a=await g(S,E,y)}else{const y=e??o.length;do{const _=l===0?i[0]??n.initialPageParam:Mp(n,a);if(l>0&&_==null)break;a=await g(a,_),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function Mp(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function aC(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var we,qr,Kr,Ws,Vs,Gr,Hs,qs,Fm,lC=(Fm=class{constructor(e={}){te(this,we);te(this,qr);te(this,Kr);te(this,Ws);te(this,Vs);te(this,Gr);te(this,Hs);te(this,qs);Q(this,we,e.queryCache||new nC),Q(this,qr,e.mutationCache||new iC),Q(this,Kr,e.defaultOptions||{}),Q(this,Ws,new Map),Q(this,Vs,new Map),Q(this,Gr,0)}mount(){Mi(this,Gr)._++,T(this,Gr)===1&&(Q(this,Hs,k0.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,we).onFocus())})),Q(this,qs,al.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,we).onOnline())})))}unmount(){var e,t;Mi(this,Gr)._--,T(this,Gr)===0&&((e=T(this,Hs))==null||e.call(this),Q(this,Hs,void 0),(t=T(this,qs))==null||t.call(this),Q(this,qs,void 0))}isFetching(e){return T(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,qr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,we).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=T(this,we).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ed(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return T(this,we).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=T(this,we).get(n.queryHash),o=s==null?void 0:s.state.data,i=Uk(t,o);if(i!==void 0)return T(this,we).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Xe.batch(()=>T(this,we).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,we).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,we);Xe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,we);return Xe.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Xe.batch(()=>T(this,we).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return Xe.batch(()=>(T(this,we).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Xe.batch(()=>T(this,we).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(Lt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,we).build(this,t);return r.isStaleByTime(ed(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}
216prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=Dp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=Dp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return al.isOnline()?T(this,qr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,we)}getMutationCache(){return T(this,qr)}getDefaultOptions(){return T(this,Kr)}setDefaultOptions(e){Q(this,Kr,e)}setQueryDefaults(e,t){T(this,Ws).set(ui(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ws).values()],r={};return t.forEach(n=>{di(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){T(this,Vs).set(ui(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Vs).values()],r={};return t.forEach(n=>{di(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Kr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ph(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===Rh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Kr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,we).clear(),T(this,qr).clear()}},we=new WeakMap,qr=new WeakMap,Kr=new WeakMap,Ws=new WeakMap,Vs=new WeakMap,Gr=new WeakMap,Hs=new WeakMap,qs=new WeakMap,Fm),cC=w.createContext(void 0),uC=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(cC.Provider,{value:e,children:t}));/** 217 * @remix-run/router v1.23.0 218 * 219 * Copyright (c) Remix Software Inc. 220 * 221 * This source code is licensed under the MIT license found in the 222 * LICENSE.md file in the root directory of this source tree. 223 * 224 * @license MIT 225 */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hi.apply(this,arguments)}var Jr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jr||(Jr={}));const Fp="popstate";function dC(e){e===void 0&&(e={});function t(n,s){let{pathname:o,search:i,hash:a}=n.location;return rd("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:ll(s)}return fC(t,r,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hC(){return Math.random().toString(36).substr(2,8)}function Up(e,t){return{usr:e.state,key:e.key,idx:t}}function rd(e,t,r,n){return r===void 0&&(r=null),hi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?co(t):t,{state:r,key:t&&t.key||n||hC()})}function ll(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function co(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function fC(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,a=Jr.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(hi({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=Jr.Pop;let b=d(),v=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:v})}function p(b,v){a=Jr.Push;let g=rd(m.location,b,v);c=d()+1;let y=Up(g,c),_=m.createHref(g);try{i.pushState(y,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}o&&l&&l({action:a,location:m.location,delta:1})}function f(b,v){a=Jr.Replace;let g=rd(m.location,b,v);c=d();let y=Up(g,c),_=m.createHref(g);i.replaceState(y,"",_),o&&l&&l({action:a,location:m.location,delta:0})}function x(b){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:ll(b);return g=g.replace(/ $/,"%20"),Pe(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return a},get location(){return e(s,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Fp,h),l=b,()=>{s.removeEventListener(Fp,h),l=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let v=x(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:f,go(b){return i.go(b)}};return m}var zp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zp||(zp={}));function pC(e,t,r){return r===void 0&&(r="/"),mC(e,t,r,!1)}function mC(e,t,r,n){let s=typeof t=="string"?co(t):t,o=Ah(s.pathname||"/",r);if(o==null)return null;let i=R0(e);gC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=TC(o);a=kC(i[l],c,n)}return a}function R0(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Pe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
225id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=an([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(Pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),R0(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:SC(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of A0(o.path))s(o,i,l)}),t}function A0(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=A0(n.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function gC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:EC(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const vC=/^:[\w-]+$/,yC=3,wC=2,xC=1,bC=10,_C=-2,Bp=e=>e==="*";function SC(e,t){let r=e.split("/"),n=r.length;return r.some(Bp)&&(n+=_C),t&&(n+=wC),r.filter(s=>!Bp(s)).reduce((s,o)=>s+(vC.test(o)?yC:o===""?xC:bC),n)}function EC(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function kC(e,t,r){let{routesMeta:n}=e,s={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=Wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=Wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 13,421 bytes, lines 225-243
225Object.assign(s,h.params),i.push({params:s,pathname:an([o,h.pathname]),pathnameBase:RC(an([o,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(o=an([o,h.pathnameBase]))}return i}function Wp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=CC(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((c,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let m=a[h]||"";i=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const x=a[h];return f&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function CC(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),P0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function TC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P0(!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 Ah(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function jC(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?co(e):e;return{pathname:r?r.startsWith("/")?r:NC(r,t):t,search:AC(n),hash:OC(s)}}function NC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Ac(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function PC(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function O0(e,t){let r=PC(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function I0(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=co(e):(s=hi({},e),Pe(!s.pathname||!s.pathname.includes("?"),Ac("?","pathname","search",s)),Pe(!s.pathname||!s.pathname.includes("#"),Ac("#","pathname","hash",s)),Pe(!s.search||!s.search.includes("#"),Ac("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=jC(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const an=e=>e.join("/").replace(/\/\/+/g,"/"),RC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,OC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function IC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L0=["post","put","patch","delete"];new Set(L0);const LC=["get",...L0];new Set(LC);/** 226 * React Router v6.30.1 227 * 228 * Copyright (c) Remix Software Inc. 229 * 230 * This source code is licensed under the MIT license found in the 231 * LICENSE.md file in the root directory of this source tree. 232 * 233 * @license MIT 234 */function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fi.apply(this,arguments)}const Oh=w.createContext(null),$C=w.createContext(null),Gn=w.createContext(null),zl=w.createContext(null),Qn=w.createContext({outlet:null,matches:[],isDataRoute:!1}),$0=w.createContext(null);function DC(e,t){let{relative:r}=t===void 0?{}:t;Oi()||Pe(!1);let{basename:n,navigator:s}=w.useContext(Gn),{hash:o,pathname:i,search:a}=M0(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:an([n,i])),s.createHref({pathname:l,search:a,hash:o})}function Oi(){return w.useContext(zl)!=null}function Yn(){return Oi()||Pe(!1),w.useContext(zl).location}function D0(e){w.useContext(Gn).static||w.useLayoutEffect(e)}function MC(){let{isDataRoute:e}=w.useContext(Qn);return e?JC():FC()}function FC(){Oi()||Pe(!1);let e=w.useContext(Oh),{basename:t,future:r,navigator:n}=w.useContext(Gn),{matches:s}=w.useContext(Qn),{pathname:o}=Yn(),i=JSON.stringify(O0(s,r.v7_relativeSplatPath)),a=w.useRef(!1);return D0(()=>{a.current=!0}),w.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let h=I0(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:an([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,i,o,e])}function M0(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(Gn),{matches:s}=w.useContext(Qn),{pathname:o}=Yn(),i=JSON.stringify(O0(s,n.v7_relativeSplatPath));return w.useMemo(()=>I0(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function UC(e,t){return zC(e,t)}function zC(e,t,r,n){Oi()||Pe(!1);let{navigator:s}=w.useContext(Gn),{matches:o}=w.useContext(Qn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Yn(),d;if(t){var h;let b=typeof t=="string"?co(t):t;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||Pe(!1),d=b}else d=c;let p=d.pathname||"/",f=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=pC(e,{pathname:f}),m=qC(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:an([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:an([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,r,n);return t&&m?w.createElement(zl.Provider,{value:{location:fi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jr.Pop}},m):m}function BC(){let e=YC(),t=IC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:s},r):null,null)}const WC=w.createElement(BC,null);class VC 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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Qn.Provider,{value:this.props.routeContext},w.createElement($0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HC(e){let{routeContext:t,match:r,children:n}=e,s=w.useContext(Oh);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Qn.Provider,{value:t},n)}function qC(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Pe(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:p,errors:f}=r,x=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||x){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,h,p)=>{let f,x=!1,m=null,b=null;r&&(f=a&&h.route.id?a[h.route.id]:void 0,m=h.route.errorElement||WC,l&&(c<0&&p===0?(x=!0,b=null):c===p&&(x=!0,b=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,p+1)),g=()=>{let y;return f?y=m:x?y=b:h.route.Component?y=w.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=d,w.createElement(HC,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:y})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?w.createElement(VC,{location:r.location,revalidation:r.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var F0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(F0||{}),cl=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}(cl||{});function KC(e){let t=w.useContext(Oh);return t||Pe(!1),t}function GC(e){let t=w.useContext($C);return t||Pe(!1),t}function QC(e){let t=w.useContext(Qn);return t||Pe(!1),t}function U0(e){let t=QC(),r=t.matches[t.matches.length-1];return r.route.id||Pe(!1),r.route.id}function YC(){var e;let t=w.useContext($0),r=GC(cl.UseRouteError),n=U0(cl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function JC(){let{router:e}=KC(F0.UseNavigateStable),t=U0(cl.UseNavigateStable),r=w.useRef(!1);return D0(()=>{r.current=!0}),w.useCallback(function(s,o){o===void 0&&(o={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,fi({fromRouteId:t},o)))},[e,t])}function XC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Sn(e){Pe(!1)}function ZC(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Jr.Pop,navigator:o,static:i=!1,future:a}=e;Oi()&&Pe(!1);let l=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:l,navigator:o,static:i,future:fi({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof n=="string"&&(n=co(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:x="default"}=n,m=w.useMemo(()=>{let b=Ah(d,l);return b==null?null:{location:{pathname:b,search:h,hash:p,state:f,key:x},navigationType:s}},[l,d,h,p,f,x,s]);return m==null?null:w.createElement(Gn.Provider,{value:c},w.createElement(zl.Provider,{children:r,value:m}))}function eT(e){let{children:t,location:r}=e;return UC(nd(t),r)}new Promise(()=>{});function nd(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,s)=>{if(!w.isValidElement(n))return;let o=[...t,s];if(n.type===w.Fragment){r.push.apply(r,nd(n.props.children,o));return}n.type!==Sn&&Pe(!1),!n.props.index||!n.props.children||Pe(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=nd(n.props.children,o)),r.push(i)}),r}/** 235 * React Router DOM v6.30.1 236 * 237 * Copyright (c) Remix Software Inc. 238 * 239 * This source code is licensed under the MIT license found in the 240 * LICENSE.md file in the root directory of this source tree. 241 * 242 * @license MIT 243 */function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function tT(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function rT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nT(e,t){return e.button===0&&(!t||t==="_self")&&!rT(e)}const sT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],oT="6";try{window.__reactRouterVersion=oT}catch{}const iT="startTransition",Vp=_d[iT];function aT(e){let{basename:t,children:r,future:n,window:s}=e,o=w.useRef();o.current==null&&(o.current=dC({window:s,v5Compat:!0}));let i=o.current,[a,l]=w.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},d=w.useCallback(h=>{c&&Vp?Vp(()=>l(h)):l(h)},[l,c]);return w.useLayoutEffect(()=>
vendor: 4,382 bytes, lines 243-245
243i.listen(d),[i,d]),w.useEffect(()=>XC(n),[n]),w.createElement(ZC,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i,future:n})}const lT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=w.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,p=tT(t,sT),{basename:f}=w.useContext(Gn),x,m=!1;if(typeof c=="string"&&cT.test(c)&&(x=c,lT))try{let y=new URL(window.location.href),_=c.startsWith("//")?new URL(y.protocol+c):new URL(c),S=Ah(_.pathname,f);_.origin===y.origin&&S!=null?c=S+_.search+_.hash:m=!0}catch{}let b=DC(c,{relative:s}),v=uT(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function g(y){n&&n(y),y.defaultPrevented||v(y)}return w.createElement("a",sd({},p,{href:x||b,onClick:m||o?n:g,ref:r,target:l}))});var Hp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hp||(Hp={}));var qp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qp||(qp={}));function uT(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=MC(),c=Yn(),d=M0(e,{relative:i});return w.useCallback(h=>{if(nT(h,r)){h.preventDefault();let p=n!==void 0?n:ll(c)===ll(d);l(e,{replace:p,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,n,s,r,e,o,i,a])}const z0=w.createContext({language:"en",setLanguage:()=>{},t:e=>e}),Kp={en:{"nav.home":"Home","nav.biography":"Biography","nav.projects":"Projects","nav.publications":"Publications","nav.contact":"Contact","home.hero.name":"Fotis Pantopoulos","home.hero.title":"Educator, trainer, consultant and innovation designer","home.hero.intro":"Fotis Pantopoulos is an educator and trainer with an international presence, communication specialist, security consultant, STEM innovator, and entrepreneur whose work bridges education, business, and culture across two continents.","home.hero.cta":"Explore my work...","home.recognition.title":"Microsoft Academic Organization Recognition","home.recognition.subtitle":"Recognized for excellence in educational innovation","home.recognition.viewDetails":"View recognition details","home.aicatalyst.title":"Member of the Association of Artificial Intelligence","home.aicatalyst.text":"The Association of Artificial Intelligence â AiCatalyst is a broad network of experts from the Entrepreneurship, Science and Technology world. Its target is to contribute with critical interventions and become the catalyst for the fast transition of Greece to the new era through the digital transformation.","home.video.subtitle":"Welcome to my personal, professional and scientific website!","home.sophiaBanner":"For any information regarding my work and me personally, but also to contact me, please contact Sophia, my digital secretary. Thank you!","bio.title":"Biography","bio.intro":"Educator, trainer, consultant and innovation designer with a passion for bridging cultures through education","bio.card.title":"Educator with an international presence","bio.card.description":"With decades of experience spanning Greece, the Netherlands, and the USA, Fotis bridges cultures through innovative educational approaches and methodologies.","bio.cv.en":"English Biography","bio.cv.gr":"Greek Biography","bio.linkedin":"LinkedIn Profile","bio.architect.title":"Strategic Digital Transformation & Learning Design Architect","bio.architect.text":`Designing and implementing demanding technological initiatives forms the core of my professional practice. Backed by **36 years in education** alongside **a longstanding trajectory in the commercial market**, my approach focuses on creating advanced digital platforms, specialized applications, and strategic frameworks that bridge scientific knowledge with entrepreneurship, turning theory into operational value. 244 245My methodological background is grounded in **17 years of specialized training at an international Instructors School organized by a country globally recognized for its pioneering focus on learning innovation**. This frameworkâ**Thinking & Learning Design (TLD)**âw
245as applied in practice for **6 years (2014â2020) at the Department of Computer Science and Telecommunications of the University of Thessaly**, where I taught entrepreneurship courses through realistic business simulations, before being presented at a leading academic institution in the USA (Purdue University). 246 247This multi-layered experience translates into a specialized skillset combining technology, strategy, and education: 248 249- Software Architecture & Interactive Systems Design: Architectural design of specialized software, interactive systems, and modern digital platforms for managing complex data. 250 251- Project Management & Industrial Asset Tracking: Application of advanced project management standards for monitoring, risk analysis, and strategic guidance of Mega Projects. 252 253- Technology Transfer & Academic Extroversion: Strategic planning for transferring technology from the lab to the market, enhancing the extroversion of research entities, and building industrial partnerships. 254 255- Domain-Specific Simulation Platforms: Development of digital simulation environments and analytical models that support decision-making in cutting-edge fields, such as green transition and sustainable energy technologies. 256 257- Instructional Design & Capacity Building: Design of educational ecosystems, realistic simulations, and mentoring programs to bridge capability gaps between technical teams, executives, and the market. 258 259Acting as a catalyst between technology, education, and business, I design end-to-end systems that enable organizations, research centers, and enterprises to adopt innovation seamlessly, upskill their human capital, and respond rapidly to the demands of digital transformation.`,"projects.title":"Projects & Initiatives","projects.subtitle":"Bridging education, innovation, and entrepreneurship across two continents","projects.filologos.title":"My name is Teacher","projects.filologos.desc":"Platform for Modern Greek Language, Literature, and History courses with Microsoft Academic Organization Recognition","projects.school.title":"School of Didactics (Company)","projects.school.desc":"Educational methodology and teaching innovation seminars","projects.innovatebiz.title":"Innovatebiz","projects.innovatebiz.desc":"Business innovation consultancy based in the Netherlands (the scientific arm of the project)","projects.security.title":"School of Security","projects.security.desc":"Innovation and efficiency in the training of the critical area of Security","projects.investima.title":"Investima","projects.investima.desc":"Business and educational services in the USA","projects.projectx.title":"PRsolutions","projects.projectx.desc":"Strategic Communication, Public Image and Public Relations in Greece and in the USA","projects.projectz.title":"LEARN20GR Project","projects.projectz.desc":"Design Thinking and Learning for Education and Business","projects.projecty.title":"STEM20GR Project","projects.projecty.desc":"The STEM methodology for business-ready students","projects.tourism.title":"Tourism Articles","projects.tourism.desc":"Strategic Communication, tourism product, and tourism industry analysis","projects.business.title":"Business, Education & STEM Articles","projects.business.desc":"Thought leadership in business, training, and STEM education","projects.teacherhour.title":`The "Teacher's Hour"`,"projects.teacherhour.desc":"A 112-episode educational series by STAR Central Greece (2016â2020) exploring the teaching of Modern Greek Language and History","projects.teacherhour.linkText":"STAR Central Greece","projects.investimaAcademy.title":"Investima's Academy","projects.investimaAcademy.desc":"A seminar platform for entrepreneurship and education that incorporates AI tools. It focuses on developing modern skills and executing business plans by leveraging the power of technology.","projects.aiMentor.title":"AI Mentor for Human Development","projects.aiMentor.desc":"A digital platform focused on skill development for entrepreneurship and education. It utilizes AI tools to help users organize and enhance their professional competencies.","projects.aiBrand.title":"AI Personal Brand Strategy","projects.aiBrand.desc":"A digital platform focused on creating and managing personal or corporate brand identity. Using AI tools, it helps develop a consistent presence to enhance entrepreneurship and professional recognition.","projects.iot.title":"IoT: The Bridge to Business Readiness","projects.iot.de
259sc":"A digital platform that supports the journey from innovation to business adoption by connecting IoT technologies, data, and development tools. It fosters collaboration, business readiness, and the creation of sustainable digital solutions with measurable real-world impact.","projects.strategicForesight.title":"Strategic Foresight & Learning Design Hub","projects.strategicForesight.desc":"An innovative platform dedicated to Strategic Foresight and Thinking & Learning Design. Through advanced methodologies and dynamic insights, it prepares and guides organizations and executives to successfully navigate, adapt, and actively shape the trends of the future (the project is offered only in English).","projects.hydrogen.title":"Green Hydrogen Simulation & Education Platform","projects.hydrogen.desc1":"H2-SIMULATE PRO & ACADEMY is an innovative simulation and educational platform for the green hydrogen value chain. Developed in collaboration with ","projects.hydrogen.professorName":"Professor Sofoklis Makridis","projects.hydrogen.desc2":", it delivers high scientific rigor in modeling production, metal-hydride storage, LCOH financial analysis, and Monte Carlo risk assessmentâbridging advanced academic research with real-world industrial deployment.","contact.title":"Contact","contact.subtitle":"Let's connect and explore collaboration opportunities!","contact.phone":"Phone","contact.email":"Email","contact.form":"Contact Form","contact.book":"Book a meeting!","contact.social":"Follow me...","contact.getInTouch":"Get in touch...","contact.services.title":"Professional Services:","contact.services.consulting":"Educational Consulting","contact.services.workshops":"STEM Innovation Workshops","contact.services.business":"Business Development","contact.services.speaking":"Speaking Engagements","contact.services.programs":"Cross-cultural Educational Programs","contact.global.title":"Global Presence","contact.global.description":"Operating across two continents with offices and partnerships in Greece, the Netherlands, and the United States. Available for international collaborations and consulting projects.","contact.global.greece":"Greece","contact.global.netherlands":"Netherlands","contact.global.usa":"USA","home.overview.global.title":"Global Educator","home.overview.global.desc":"Teaching and inspiring across Greece, Netherlands, and USA","home.overview.stem.title":"STEM Innovator","home.overview.stem.desc":"Pioneering educational methodologies and Design Thinking","home.overview.entrepreneur.title":"Entrepreneur","home.overview.entrepreneur.desc":"Building bridges between education, consulting, and business innovation","btn.learnMore":"Learn More","btn.viewProject":"View Project","btn.readMore":"Read More","btn.watchYoutube":"Watch on YouTube","btn.microsoftRecognition":"Microsoft Academic Organization Recognition","btn.pantopoulosProject":"Pantopoulos Teaching Project","btn.greekPillar":"Greek Pillar","btn.academyStore":"Academy | Official Store","publications.scientific.title":"Scientific Publications","publications.scientific.description":'My scientific publications focus on education and language, exploring aspects of teaching, learning, and communication through the lens of my research project "My name is Teacher". You can view all related publications at the link below.',"publications.scientific.button":"View my publications here...","sophia.button":"I am Sophia. How can I help you?","sophia.header.title":"Sophia | Digital Secretary","sophia.header.subtitle":"Always at your disposal!","sophia.input.placeholder":"Type your message...","sophia.greeting":"Hello! ð I am Sophia, the digital secretary of Mr. Fotis Pantopoulos. How can I help you today?","sophia.error":"Sorry, I am experiencing a technical issue. Please try again.","sophia.contactSuggestion":"Would you like to leave your contact details so Mr. Pantopoulos can get in touch with you? You can fill out the form on the Contact page or tell me here.","sophia.contactStart":"Great! Let's get started. Please tell me your name:","sophia.askEmail":"Thank you, {name}! Now, please tell me your email:","sophia.invalidEmail":"That doesn't look like a valid email. Please try again:","sophia.askMessage":"Perfect! What message would you like to leave for Mr. Pantopoulos?","sophia.askPhone":'Thank y
259ou! Would you like to leave a phone number? (optional - say "no" to skip)',"sophia.confirm":`Perfect! Please confirm your details: 260 261ð Name: {name} 262ð§ Email: {email} 263ð¬ Message: {message} 264ð Phone: {phone} 265 266Is this correct? (yes/no)`,"sophia.notProvided":"Not provided","sophia.cancelled":"Okay, cancelled. You can start again whenever you like!","sophia.success":"â Thank you very much! Your message has been successfully sent to Mr. Pantopoulos. He will contact you as soon as possible!","sophia.sendError":"â Sorry, there was an issue sending your message. Please try again or visit the Contact page.","sophia.toast.success":"Success!","sophia.toast.sent":"Your message was sent.","sophia.yes":"Yes","sophia.no":"No","footer.tagline":"Educator, trainer, consultant and innovation designer bridging education, business, and culture across two continents.","footer.quickLinks":"Quick Links","footer.connect":"Connect","footer.rights":"All rights reserved.","contactForm.title":"Contact Form","contactForm.description":"Fill out the form below and we will get back to you as soon as possible.","contactForm.name":"Name","contactForm.namePlaceholder":"Enter your name","contactForm.email":"Email","contactForm.emailPlaceholder":"Enter your email","contactForm.phone":"Phone","contactForm.phonePlaceholder":"Enter your phone number","contactForm.message":"Message","contactForm.messagePlaceholder":"Write your message here...","contactForm.optional":"optional","contactForm.send":"Send Message","contactForm.sending":"Sending...","contactForm.cancel":"Cancel","contactForm.close":"Close","contactForm.success.title":"Message Sent!","contactForm.success.message":"Thank you for your message. Mr. Pantopoulos will contact you as soon as possible.","contactForm.error":"Failed to send message. Please try again.","contactForm.errors.nameRequired":"Name is required","contactForm.errors.emailRequired":"Email is required","contactForm.errors.emailInvalid":"Please enter a valid email address","contactForm.errors.messageRequired":"Message is required","cookie.message":"We use cookies to enhance your browsing experience. By continuing to use this site, you agree to our use of cookies.","cookie.accept":"Accept","cookie.decline":"Decline"},gr:{"nav.home":"ÎÏÏική","nav.biography":"ÎιογÏαÏικÏ","nav.projects":"ÎÏγα","nav.publications":"ÎημοÏιεÏÏειÏ","nav.contact":"ÎÏικοινÏνία","home.hero.name":"ΦÏÏÎ·Ï Î Î±Î½ÏÏÏÎ¿Ï Î»Î¿Ï","home.hero.title":"ÎκÏÎ±Î¹Î´ÎµÏ ÏικÏÏ, εκÏÎ±Î¹Î´ÎµÏ ÏήÏ, ÏÏÎ¼Î²Î¿Ï Î»Î¿Ï ÎºÎ±Î¹ ÏÏεδιαÏÏÎ®Ï ÎºÎ±Î¹Î½Î¿ÏομιÏν","home.hero.intro":"ΠΦÏÏÎ·Ï Î Î±Î½ÏÏÏÎ¿Ï Î»Î¿Ï ÎµÎ¯Î½Î±Î¹ εκÏÎ±Î¹Î´ÎµÏ ÏικÏÏ Î¼Îµ διεθνή ÏαÏÎ¿Ï Ïία, εÏικοινÏνιολÏγοÏ, ÏÏÎ¼Î²Î¿Ï Î»Î¿Ï Î±ÏÏαλείαÏ, ÏÏεδιαÏÏÎ®Ï ÎºÎ±Î¹Î½Î¿ÏÏμÏν μονÏÎλÏν STEM και εÏιÏειÏημαÏίαÏ, ÏÎ¿Ï Î¿ÏÎ¿Î¯Î¿Ï Ïο ÎÏγο γεÏÏ ÏÏνει Ïην εκÏÎ±Î¯Î´ÎµÏ Ïη, ÏÎ¹Ï ÎµÏιÏειÏήÏÎµÎ¹Ï ÎºÎ±Î¹ Ïον ÏολιÏιÏÎ¼Ï Ïε δÏο ηÏείÏÎ¿Ï Ï.","home.hero.cta":"ÎξεÏÎµÏ Î½Î®ÏÏε Ïο ÎÏγο Î¼Î¿Ï ...","home.recognition.title":"ÎναγνÏÏιÏη Microsoft Academic Organization","home.recognition.subtitle":"ÎναγνÏÏιÏη για Ïην αÏιÏÏεία ÏÏην εκÏÎ±Î¹Î´ÎµÏ Ïική καινοÏομία","home.recognition.viewDetails":"ÎείÏε ÏÎ¹Ï Î»ÎµÏÏομÎÏειεÏ","home.aicatalyst.title":"ÎÎÎ»Î¿Ï ÏÎ¿Ï ÎÎ¼Î¯Î»Î¿Ï Î¤ÎµÏνηÏÎ®Ï ÎοημοÏÏνηÏ","home.aicatalyst.text":"Î ÎÎ¼Î¹Î»Î¿Ï Î¤ÎµÏνηÏÎ®Ï ÎοημοÏÏÎ½Î·Ï â AI Catalyst είναι ÎÎ
266½Î± ÎµÏ ÏÏ Î´Î¯ÎºÏÏ Î¿ ÏÏελεÏÏν αÏÏ Ïον ÏÏÏο ÏÎ·Ï ÎÏιÏειÏημαÏικÏÏηÏαÏ, ÏÎ·Ï ÎÏιÏÏÎ®Î¼Î·Ï ÎºÎ±Î¹ ÏÎ·Ï Î¤ÎµÏνολογίαÏ. ΣÏοÏεÏει ÏÏην Ï Î»Î¿ÏοίηÏη κομβικÏν ÏαÏεμβάÏεÏν με ÏκοÏÏ Î½Î± αÏοÏελÎÏει Ïον καÏαλÏÏη ÏÏη ÏÏÏα Î¼Î±Ï Î³Î¹Î± μια γÏήγοÏη μεÏάβαÏη ÏÏην νÎα εÏοÏή μÎÏÏ ÏÎ¿Ï ÏηÏÎ¹Î±ÎºÎ¿Ï Î¼ÎµÏαÏÏημαÏιÏμοÏ.","home.video.subtitle":"ÎαλÏÏ Î®Î»Î¸Î±Ïε ÏÏην ÏÏοÏÏÏική, εÏαγγελμαÏική και εÏιÏÏημονική ιÏÏοÏελίδα Î¼Î¿Ï !","home.sophiaBanner":"Îια οÏοιαδήÏοÏε ÏληÏοÏοÏία ÏÏεÏικά με Ïο ÎÏγο Î¼Î¿Ï ÎºÎ±Î¹ εμÎνα ÏÏοÏÏÏικά, αλλά και για να εÏικοινÏνήÏεÏε μαζί Î¼Î¿Ï , ÏαÏÎ±ÎºÎ±Î»Ï ÎµÏικοινÏνήÏÏε με Ïη ΣοÏία, Ïην ÏηÏιακή Î¼Î¿Ï Î³ÏαμμαÏÎα. ÎÏ ÏαÏιÏÏÏ!","bio.title":"ÎιογÏαÏικÏ","bio.intro":"ÎκÏÎ±Î¹Î´ÎµÏ ÏικÏÏ, εκÏÎ±Î¹Î´ÎµÏ ÏήÏ, ÏÏÎ¼Î²Î¿Ï Î»Î¿Ï ÎºÎ±Î¹ ÏÏεδιαÏÏÎ®Ï ÎºÎ±Î¹Î½Î¿ÏομιÏν με ÏÎ¬Î¸Î¿Ï Î³Î¹Î± Ïη γεÏÏÏÏÏη ÏολιÏιÏμÏν μÎÏÏ ÏÎ·Ï ÎµÎºÏÎ±Î¯Î´ÎµÏ ÏηÏ","bio.card.title":"ÎκÏÎ±Î¹Î´ÎµÏ ÏικÏÏ Î¼Îµ διεθνή ÏαÏÎ¿Ï Ïία","bio.card.description":"Îε δεκαεÏÎ¯ÎµÏ ÎµÎ¼ÏειÏÎ¯Î±Ï ÏÎ¿Ï ÎµÎºÏείνονÏαι ÏÏην Îλλάδα, Ïην Îλλανδία και ÏÎ¹Ï ÎÎ Î, ο ΦÏÏÎ·Ï Î³ÎµÏÏ ÏÏνει ÏολιÏιÏμοÏÏ Î¼ÎÏÏ ÎºÎ±Î¹Î½Î¿ÏÏμÏν εκÏÎ±Î¹Î´ÎµÏ ÏικÏν ÏÏοÏεγγίÏεÏν και μεθοδολογιÏν.","bio.cv.en":"ÎÎ³Î³Î»Î¹ÎºÏ ÎιογÏαÏικÏ","bio.cv.gr":"ÎÎ»Î»Î·Î½Î¹ÎºÏ ÎιογÏαÏικÏ","bio.linkedin":"Î ÏοÏίλ LinkedIn","bio.architect.title":"ΣÏÎ¼Î²Î¿Ï Î»Î¿Ï Î£ÏÏαÏÎ·Î³Î¹ÎºÎ¿Ï Î¨Î·ÏÎ¹Î±ÎºÎ¿Ï ÎεÏαÏÏημαÏιÏÎ¼Î¿Ï & ΣÏεδιαÏÎ¼Î¿Ï ÎάθηÏηÏ","bio.architect.text":`Î ÏÏεδιαÏμÏÏ ÎºÎ±Î¹ η Ï Î»Î¿ÏοίηÏη αÏαιÏηÏικÏν ÏεÏνολογικÏν εγÏειÏημάÏÏν αÏοÏελεί Ïον ÏÏ Ïήνα ÏÎ·Ï Î´ÏαÏÏηÏιÏÏηÏÎ¬Ï Î¼Î¿Ï . Îε μια ÏοÏεία **36 εÏÏν ÏÏον ÏÏÏο ÏÎ·Ï ÎµÎºÏÎ±Î¯Î´ÎµÏ ÏηÏ** και ÏαÏάλληλη **μακÏά διαδÏομή ÏÏην ÏÏαγμαÏική αγοÏά,** η ÏÏοÏÎγγιÏή Î¼Î¿Ï ÎµÏικενÏÏÏνεÏαι ÏÏη Î´Î·Î¼Î¹Î¿Ï Ïγία ÏÏοηγμÎνÏν ÏηÏιακÏν ÏλαÏÏοÏμÏν, ÎµÎ¾ÎµÎ¹Î´Î¹ÎºÎµÏ Î¼ÎνÏν εÏαÏμογÏν και ÏÏÏαÏηγικÏν εÏγαλείÏν ÏÎ¿Ï Î³ÎµÏÏ ÏÏÎ½Î¿Ï Î½ Ïην εÏιÏÏημονική γνÏÏη με Ïην εÏιÏειÏημαÏικÏÏηÏα, μεÏαÏÏÎÏονÏÎ±Ï Ïη θεÏÏία Ïε λειÏÎ¿Ï Ïγική αξία. 267 268Πμεθοδολογική Î¼Î¿Ï ÎºÎ±ÏάÏÏιÏη βαÏίζεÏαι Ïε **17εÏή ÎµÎ¾ÎµÎ¹Î´Î¹ÎºÎµÏ Î¼Îνη εκÏÎ±Î¯Î´ÎµÏ Ïη Ïε διεθνÎÏ Î£Ïολείο ÎκÏÎ±Î¹Î´ÎµÏ ÏÏν διοÏγανÏμÎνο αÏÏ ÏÏÏα ÏαγκοÏμίÏÏ Î³Î½ÏÏÏή για Ïην ÏÏÏÏοÏοÏία και Ïην ÏÏοÏεÏαιÏÏηÏα ÏÎ¿Ï Î´Î¯Î½ÎµÎ¹ ÏÏη μαθηÏιακή καινοÏομία.** Το μονÏÎλο Î±Ï ÏÏ (**Thinking & Learning Design - TLD**) εÏαÏμÏÏÏηκε ÏÏην ÏÏάξη εÏί **6 ÎÏη (2014â2020) ÏÏο Τμήμα ΠληÏοÏοÏÎ¹ÎºÎ®Ï & ΤηλεÏικοινÏνιÏν ÏÎ¿Ï Î Î±Î½ÎµÏιÏÏÎ·Î¼Î¯Î¿Ï ÎεÏÏαλίαÏ,** ÏÏÎ¿Ï Î´Î¯Î´Î±Î¾Î± Ïα μαθήμαÏα ÏÎ·Ï ÎµÏιÏειÏημαÏικÏÏηÏÎ±Ï Î¼ÎÏÏ ÏεαλιÏÏικÏν ÏÏοÏομοιÏÏεÏν, ÎµÎ½Ï ÏÏη ÏÏ Î½ÎÏεια ÏαÏÎ¿Ï ÏιάÏÏηκε Ïε κοÏÏ Ïαίο ακαδημαÏÎºÏ Î¯Î´ÏÏ Î¼Î± ÏÏν ÎÎ Î (Purdue University). 269 270ÎÏ Ïή η ÏÎ¿Î»Ï ÎµÏίÏεδη εμÏειÏία μεÏÎ¿Ï ÏιÏνεÏαι Ïε Îναν ÎµÎ¾ÎµÎ¹Î´Î¹ÎºÎµÏ Î¼Îνο ÏÏ Ïήνα δεξιοÏήÏÏν ÏÎ¿Ï ÏÏ Î½Î¸ÎÏει Ïην ÏεÏνολογία, Ïη ÏÏÏαÏηγική και Ïην εκÏÎ±Î¯Î´ÎµÏ Ïη: 271 272- ÎÏÏιÏεκÏονική ÎογιÏÎ¼Î¹ÎºÎ¿Ï & ΣÏεδιαÏμÏÏ ÎιαδÏαÏÏικÏν Î£Ï ÏÏημάÏÏν: ÎÏÏιÏεκÏονικÏÏ ÏÏεδιαÏμÏÏ ÎµÎ¾ÎµÎ¹Î´Î¹ÎºÎµÏ Î¼ÎνÏν λογιÏμικÏν, διαδÏαÏÏικÏν ÏÏ ÏÏημάÏÏν και ÏÏγÏÏονÏν ÏηÏιακÏν ÏλαÏÏοÏμÏν για Ïη διαÏείÏιÏη ÏÏνθεÏÏν δεδομÎÎ
272½Ïν. 273 274- ÎιαÏείÏιÏη ÎÏγÏν & ΠαÏακολοÏθηÏη ÎιομηÏανικÏν Assets: ÎÏαÏμογή ÏÏοηγμÎνÏν ÏÏοÏÏÏÏν διαÏείÏιÏÎ·Ï ÎÏγÏν για Ïην ÏαÏακολοÏθηÏη, Ïην Î±Î½Î¬Î»Ï Ïη ÏίÏÎºÎ¿Ï ÎºÎ±Î¹ Ïη ÏÏÏαÏηγική καθοδήγηÏη Mega Projects. 275 276- ÎεÏαÏοÏά ΤεÏÎ½Î¿Î»Î¿Î³Î¯Î±Ï & ÎκαδημαÏκή ÎξÏÏÏÏÎÏεια: ΣÏÏαÏηγικÏÏ ÏÏεδιαÏμÏÏ Î³Î¹Î± Ïη μεÏαÏοÏά ÏεÏÎ½Î¿Î»Î¿Î³Î¯Î±Ï Î±ÏÏ Ïο εÏγαÏÏήÏιο ÏÏην αγοÏά, Ïην ενίÏÏÏ Ïη ÏÎ·Ï ÎµÎ¾ÏÏÏÏÎÏÎµÎ¹Î±Ï ÎµÏÎµÏ Î½Î·ÏικÏν ÏοÏÎÏν και Ïη Î´Î·Î¼Î¹Î¿Ï Ïγία βιομηÏανικÏν ÏÏ Î½ÎµÏγαÏιÏν. 277 278- ΠλαÏÏÏÏÎ¼ÎµÏ Î ÏοÏομοίÏÏÎ·Ï ÎιδικÏν ΤομÎÏν: ÎνάÏÏÏ Î¾Î· ÏηÏιακÏν ÏεÏιβαλλÏνÏÏν ÏÏοÏομοίÏÏÎ·Ï ÎºÎ±Î¹ Î±Î½Î±Î»Ï ÏικÏν μονÏÎλÏν ÏÎ¿Ï Ï ÏοÏÏηÏÎ¯Î¶Î¿Ï Î½ Ïη λήÏη αÏοÏάÏεÏν Ïε ÏÎ¿Î¼ÎµÎ¯Ï Î±Î¹ÏμήÏ, ÏÏÏÏ Î· ÏÏάÏινη μεÏάβαÏη και οι ÏεÏÎ½Î¿Î»Î¿Î³Î¯ÎµÏ Î²Î¹ÏÏÎ¹Î¼Î·Ï ÎµÎ½ÎÏγειαÏ. 279 280- ΣÏεδιαÏμÏÏ ÎκÏÎ±Î¯Î´ÎµÏ ÏÎ·Ï & ÎÎ½Î´Ï Î½Î¬Î¼ÏÏη ÎκανοÏήÏÏν: ΣÏεδιαÏμÏÏ ÎµÎºÏÎ±Î¹Î´ÎµÏ ÏικÏν οικοÏÏ ÏÏημάÏÏν, ÏεαλιÏÏικÏν ÏÏοÏομοιÏÏεÏν και ÏÏογÏαμμάÏÏν mentoring για Ïη γεÏÏÏÏÏη ÏÏν γνÏÏÏικÏν κενÏν μεÏÎ±Î¾Ï ÏεÏνικÏν ομάδÏν, ÏÏελεÏÏν και αγοÏάÏ. 281 282ÎÏÏνÏÎ±Ï ÏÏ ÎºÎ±ÏαλÏÏÎ·Ï Î¼ÎµÏÎ±Î¾Ï ÏεÏνολογίαÏ, εκÏÎ±Î¯Î´ÎµÏ ÏÎ·Ï ÎºÎ±Î¹ εÏιÏειÏημαÏικÏÏηÏαÏ, ÏÏÎµÎ´Î¹Î¬Î¶Ï Î¿Î»Î¿ÎºÎ»Î·ÏÏμÎνα ÏÏ ÏÏήμαÏα ÏÎ¿Ï ÎµÏιÏÏÎÏÎ¿Ï Î½ Ïε οÏγανιÏμοÏÏ, εÏÎµÏ Î½Î·Ïικά κÎνÏÏα και εÏιÏειÏήÏÎµÎ¹Ï Î½Î± Ï Î¹Î¿Î¸ÎµÏοÏν άμεÏα Ïην καινοÏομία, να εκÏαιδεÏÎ¿Ï Î½ Ïο ανθÏÏÏινο Î´Ï Î½Î±Î¼Î¹ÎºÏ ÏÎ¿Ï Ï ÎºÎ±Î¹ να ανÏαÏοκÏίνονÏαι με ÏαÏÏÏηÏα ÏÏÎ¹Ï ÏÏοκλήÏÎµÎ¹Ï ÏÎ¿Ï ÏηÏÎ¹Î±ÎºÎ¿Ï Î¼ÎµÏαÏÏημαÏιÏμοÏ.`,"projects.title":"ÎÏγα & Î ÏÏÏÎ¿Î²Î¿Ï Î»Î¯ÎµÏ","projects.subtitle":"ÎεÏÏ ÏÏνονÏÎ±Ï Ïην εκÏÎ±Î¯Î´ÎµÏ Ïη, Ïην καινοÏομία και Ïην εÏιÏειÏημαÏικÏÏηÏα Ïε δÏο ηÏείÏÎ¿Ï Ï","projects.filologos.title":"My name is Teacher","projects.filologos.desc":"ΠλαÏÏÏÏμα για Ïα μαθήμαÏα ÎÎµÎ¿ÎµÎ»Î»Î·Î½Î¹ÎºÎ®Ï ÎλÏÏÏαÏ, ÎογοÏεÏνίαÏ, και ÎÏÏοÏÎ¯Î±Ï Î¼Îµ ÎναγνÏÏιÏη Microsoft Academic Organization","projects.school.title":"ΣÏολείο ÎιδακÏÎ¹ÎºÎ®Ï (ÎÏαιÏεία)","projects.school.desc":"ΣεμινάÏια εκÏÎ±Î¹Î´ÎµÏ ÏÎ¹ÎºÎ®Ï Î¼ÎµÎ¸Î¿Î´Î¿Î»Î¿Î³Î¯Î±Ï ÎºÎ±Î¹ διδακÏÎ¹ÎºÎ®Ï ÎºÎ±Î¹Î½Î¿ÏομίαÏ","projects.innovatebiz.title":"Innovatebiz","projects.innovatebiz.desc":"Î£Ï Î¼Î²Î¿Ï Î»ÎµÏ Ïική για Ïην εÏιÏειÏημαÏική καινοÏομία ÏÏην Îλλανδία (ο εÏιÏÏημονικÏÏ Î²ÏαÏÎ¯Î¿Î½Î±Ï ÏÎ¿Ï ÎÏÎ³Î¿Ï )","projects.security.title":"ΣÏολείο ÎιδακÏÎ¹ÎºÎ®Ï ÏÎ·Ï ÎÏÏάλειαÏ","projects.security.desc":"ÎαινοÏομία και αÏοÏελεÏμαÏικÏÏηÏα ÏÏην εκÏÎ±Î¯Î´ÎµÏ Ïη ÏÎ¿Ï ÎºÏίÏÎ¹Î¼Î¿Ï ÏομÎα ÏÎ·Ï ÎÏÏάλειαÏ","projects.investima.title":"Investima","projects.investima.desc":"ÎÏιÏειÏημαÏικÎÏ ÎºÎ±Î¹ εκÏÎ±Î¹Î´ÎµÏ ÏικÎÏ Ï ÏηÏεÏÎ¯ÎµÏ ÏÏÎ¹Ï ÎÎ Î","projects.projectx.title":"PRsolutions","projects.projectx.desc":"ΣÏÏαÏηγική ÎÏικοινÏνία, ÎημÏÏια ÎικÏνα και ÎημÏÏÎ¹ÎµÏ Î£ÏÎÏÎµÎ¹Ï ÏÏην Îλλάδα και ÏÎ¹Ï ÎÎ Î","projects.projectz.title":"ÎÏγο LEARN20GR","projects.projectz.desc":"ΣÏεδιαÏμÏÏ Î£ÎºÎÏÎ·Ï ÎºÎ±Î¹ ÎάθηÏÎ·Ï Î³Î¹Î± Ïην εκÏÎ±Î¯Î´ÎµÏ Ïη και ÏÎ¹Ï ÎµÏιÏειÏήÏειÏ","projects.projecty.title":"ÎÏγο STEM20GR","projects.projecty.desc":"Πμεθοδολογία STEM ÏÏην ÏÏοεÏοιμαÏία ÏÏν μαθηÏÏν για Ïην εÏιÏειÏημαÏικÏÏηÏα και Ïην αγοÏά","projects.tourism.title":"ÎÏθÏογÏαÏία για Ïον Î¤Î¿Ï ÏιÏμÏ","projects.tourism.desc":"ΣÏÏαÏηγική ÎÏικοινÏνία, ÏÎ¿Ï ÏιÏÏÎ¹ÎºÏ ÏÏοÏÏν και Î±Î½Î¬Î»Ï Ïη ÏÎ·Ï ÏÎ¿Ï ÏιÏÏÎ¹ÎºÎ®Ï Î²Î¹Î¿Î¼Î·ÏανίαÏ","projects.business.title":"ÎÏθÏογÏαÏία για Ïην ÎÏιÏειÏημαÏικÏÏηÏα, Ïην ÎκÏÎ±Î¯Î´ÎµÏ Ïη και Ïο STEM","projects.business.desc":"ÎναλÏÏÎµÎ¹Ï ÎºÎ±Î¹ ÏÏοβλημαÏιÏμοί για Ïην εÏιÏειÏημαÏικÏÏηÏα, Ïην εκÏÎ±Î¯Î´ÎµÏ Ïη και Ïο STEM","projects.teacherhour.title":'Î "ÎÏα ÏÎ¿Ï ÎαÏÎºÎ¬Î»Î¿Ï "',"projects.teacherhour.desc":"ΣειÏά 112 εκÏομÏÏν ÏÎ¿Ï STAR ÎενÏÏÎ¹ÎºÎ®Ï ÎÎ»Î»Î¬Î´Î±Ï (2016â2020) Î
282³Î¹Î± Ïη διδακÏική ÏÎ·Ï ÎÎµÎ¿ÎµÎ»Î»Î·Î½Î¹ÎºÎ®Ï ÎλÏÏÏÎ±Ï ÎºÎ±Î¹ ÏÎ·Ï ÎÏÏοÏίαÏ","projects.teacherhour.linkText":"STAR ÎενÏÏÎ¹ÎºÎ®Ï ÎλλάδαÏ","projects.investimaAcademy.title":"Î Îκαδημία ÏÎ·Ï Investima","projects.investimaAcademy.desc":"ΠλαÏÏÏÏμα ΣεμιναÏίÏν για Ïην εÏιÏειÏημαÏικÏÏηÏα και Ïην εκÏαίδεÏ
Ïη, ÏοÏ
ενÏÏμαÏÏνει Ïη ÏÏήÏη εÏγαλείÏν ΤεÏνηÏÎ®Ï ÎοημοÏÏÎ½Î·Ï (AI). ÎÏÏιάζει ÏÏην ανάÏÏÏ
ξη ÏÏγÏÏονÏν δεξιοÏήÏÏν και Ïην Ï
λοÏοίηÏη εÏιÏειÏημαÏικÏν ÏλάνÏν με Ïη βοήθεια ÏÎ·Ï ÏεÏνολογίαÏ.","projects.aiMentor.title":"AI ÎÎνÏοÏÎ±Ï Î³Î¹Î± ÎνάÏÏÏ
ξη & ÎάθηÏη","projects.aiMentor.desc":"Îια ÏηÏιακή ÏλαÏÏÏÏμα εÏÏιαÏμÎνη ÏÏην ανάÏÏÏ
ξη δεξιοÏήÏÏν για Ïην εÏιÏειÏημαÏικÏÏηÏα και Ïην εκÏαίδεÏ
Ïη. ΧÏηÏιμοÏοιεί εÏγαλεία ΤεÏνηÏÎ®Ï ÎοημοÏÏÎ½Î·Ï (AI) για να βοηθήÏει ÏÏην οÏγάνÏÏη και Ïην ενίÏÏÏ
Ïη ÏÏν εÏαγγελμαÏικÏν ικανοÏήÏÏν ÏÏν ÏÏηÏÏÏν.","projects.aiBrand.title":"AI ΣÏÏαÏηγική Î ÏοÏÏÏÎ¹ÎºÎ¿Ï Brand","projects.aiBrand.desc":"Îια ÏηÏιακή ÏλαÏÏÏÏμα εÏÏιαÏμÎνη ÏÏη δημιοÏ
Ïγία και διαÏείÏιÏη ÏÎ·Ï ÏÏοÏÏÏÎ¹ÎºÎ®Ï Î® εÏαιÏÎ¹ÎºÎ®Ï ÏαÏ
ÏÏÏηÏÎ±Ï (branding). ÎÎÏÏ ÎµÏγαλείÏν ΤεÏνηÏÎ®Ï ÎοημοÏÏÎ½Î·Ï (AI), βοηθά ÏÏην ανάÏÏÏ
ξη Î¼Î¹Î±Ï ÏÏ
νεÏοÏÏ ÏαÏοÏ
ÏÎ¯Î±Ï Î³Î¹Î± Ïην ενίÏÏÏ
Ïη ÏÎ·Ï ÎµÏιÏειÏημαÏικÏÏηÏÎ±Ï ÎºÎ±Î¹ ÏÎ·Ï ÎµÏαγγελμαÏÎ¹ÎºÎ®Ï Î±Î½Î±Î³Î½ÏÏιÏηÏ.","projects.iot.title":"IoT: Î ÎÎÏÏ
Ïα ÏÏÎ¿Ï Ïην ÎÏιÏειÏημαÏική ÎÏοιμÏÏηÏα","projects.iot.desc":"Îια ÏηÏιακή ÏλαÏÏÏÏμα ÏοÏ
Ï
ÏοÏÏηÏίζει Ïη μεÏάβαÏη αÏÏ Ïην καινοÏομία ÏÏην εÏιÏειÏημαÏική αξιοÏοίηÏη, ÏÏ
νδÎονÏÎ±Ï ÏεÏÎ½Î¿Î»Î¿Î³Î¯ÎµÏ IoT, δεδομÎνα και εÏγαλεία ανάÏÏÏ
ξηÏ. ÎνιÏÏÏει Ïη ÏÏ
νεÏγαÏία, Ïην εÏιÏειÏημαÏική εÏοιμÏÏηÏα και Ïη δημιοÏ
Ïγία βιÏÏιμÏν ÏηÏιακÏν λÏÏεÏν με ÏÏαγμαÏÎ¹ÎºÏ Î±Î½ÏίκÏÏ
Ïο.","projects.strategicForesight.title":"ÎÏÎ¼Î²Î¿Ï Î£ÏÏαÏÎ·Î³Î¹ÎºÎ®Ï Î ÏοοÏÏÎ¹ÎºÎ®Ï & ΣÏεδιαÏÎ¼Î¿Ï ÎάθηÏηÏ","projects.strategicForesight.desc":"Îια ÏÏÏÏοÏοÏιακή ÏλαÏÏÏÏμα αÏιεÏÏμÎνη ÏÏη ΣÏÏαÏηγική Î ÏοοÏÏική και Ïο ΣÏεδιαÏÎ¼Ï Î£ÎºÎÏÎ·Ï & ÎάθηÏηÏ. ÎÎÏα αÏÏ ÏÏγÏÏÎ¿Î½ÎµÏ Î¼ÎµÎ¸Î¿Î´Î¿Î»Î¿Î³Î¯ÎµÏ ÎºÎ±Î¹ αναλÏÏειÏ, ÏÏοεÏοιμάζει και καθοδηγεί οÏγανιÏμοÏÏ ÎºÎ±Î¹ ÏÏελÎÏη ÏÏÏε να ÏλοηγηθοÏν με εÏιÏÏ
Ïία, να ÏÏοÏαÏμοÏÏοÏν και να διαμοÏÏÏÏοÏ
ν ÏÎ¹Ï ÏάÏÎµÎ¹Ï ÏοÏ
μÎλλονÏÎ¿Ï (Ïο ÎÏγο ÏÏοÏÏÎÏεÏαι μÏνο ÏÏην αγγλική γλÏÏÏα).","projects.hydrogen.title":"ΠλαÏÏÏÏμα Î ÏοÏομοίÏÏÎ·Ï & ÎκÏαίδεÏ
ÏÎ·Ï Î ÏάÏινοÏ
ΥδÏογÏνοÏ
","projects.hydrogen.desc1":"Το H2-SIMULATE PRO & ACADEMY αÏοÏελεί μια ÏÏÏÏοÏοÏιακή ÏλαÏÏÏÏμα ÏÏοÏομοίÏÏÎ·Ï ÎºÎ±Î¹ εκÏαίδεÏ
ÏÎ·Ï Î³Î¹Î± Ïην αλÏ
Ïίδα Î±Î¾Î¯Î±Ï ÏοÏ
ÏÏάÏινοÏ
Ï
δÏογÏνοÏ
. ÎναÏÏÏÏθηκε Ïε ÏÏ
νεÏγαÏία με Ïον ","projects.hydrogen.professorName":"ÎαθηγηÏή ΣοÏοκλή ÎακÏίδη","projects.hydrogen.desc2":", ÏÏοÏÏÎÏονÏÎ±Ï ÎµÏιÏÏημονική ακÏίβεια ÏÏη μονÏελοÏοίηÏη ÏαÏαγÏγήÏ, αÏοθήκεÏ
ÏÎ·Ï Ïε μεÏαλλοÏδÏίδια, ανάλÏ
ÏÎ·Ï LCOH και εκÏίμηÏÎ·Ï ÏίÏκοÏ
Monte Carlo, και γεÏÏ
ÏÏνονÏÎ±Ï ÎÏÏι Ïην ακαδημαÏκή ÎÏεÏ
να με Ïη βιομηÏανική εÏαÏμογή.","contact.title":"ÎÏικοινÏνία","contact.subtitle":"ÎÏ ÏÏ
νδεθοÏμε και Î±Ï ÎµÎ¾ÎµÏεÏ
νήÏοÏ
με μαÎ
282¶Î¯ εÏ
καιÏÎ¯ÎµÏ ÏÏ
νεÏγαÏίαÏ!","contact.phone":"ΤηλÎÏÏνο","contact.email":"Email","contact.form":"ΦÏÏμα ÎÏικοινÏνίαÏ","contact.book":"ÎλείÏÏε ÏανÏεβοÏ!","contact.social":"ÎκολοÏ
θήÏÏε με...","contact.getInTouch":"ÎÏικοινÏνήÏÏε μαζί μοÏ
...","contact.services.title":"ÎÏαγγελμαÏικÎÏ Ï
ÏηÏεÏίεÏ:","contact.services.consulting":"ÎκÏαιδεÏ
Ïική ΣÏ
μβοÏ
λεÏ
Ïική","contact.services.workshops":"ÎÏγαÏÏήÏια ÎαινοÏÎ¿Î¼Î¯Î±Ï STEM","contact.services.business":"ÎνάÏÏÏ
ξη ÎÏιÏειÏήÏεÏν","contact.services.speaking":"ÎÎ¼Î¹Î»Î¯ÎµÏ ÎºÎ±Î¹ ÎιαλÎξειÏ","contact.services.programs":"ÎιαÏολιÏιÏμικά ÎκÏαιδεÏ
Ïικά Î ÏογÏάμμαÏα","contact.global.title":"ΠαγκÏÏμια ÏαÏοÏ
Ïία","contact.global.description":"ÎÏαÏÏηÏιÏÏηÏα Ïε δÏο ηÏείÏοÏ
Ï Î¼Îµ γÏαÏεία και ÏÏ
νεÏγαÏÎ¯ÎµÏ ÏÏην Îλλάδα, Ïην Îλλανδία και ÏÎ¹Ï ÎνÏμÎÎ½ÎµÏ Î Î¿Î»Î¹ÏείεÏ. ÎιαθÎÏÎ¹Î¼Î¿Ï Î³Î¹Î± Î´Î¹ÎµÎ¸Î½ÎµÎ¯Ï ÏÏ
νεÏγαÏÎ¯ÎµÏ ÎºÎ±Î¹ ÏÏ
μβοÏ
λεÏ
Ïικά ÎÏγα.","contact.global.greece":"Îλλάδα","contact.global.netherlands":"Îλλανδία","contact.global.usa":"ÎÎ Î","home.overview.global.title":"ÎκÏαιδεÏ
ÏικÏÏ Î¼Îµ διεθνή ÏαÏοÏ
Ïία και δÏάÏη","home.overview.global.desc":"ÎιδαÏκαλία και ÎμÏνεÏ
Ïη Ïε Îλλάδα, Îλλανδία και ÎÎ Î","home.overview.stem.title":"ÎαινοÏÏÎ¼Î¿Ï ÏÏη μεθοδολογία STEM","home.overview.stem.desc":"Î ÏÏÏοÏοÏία Ïε εκÏαιδεÏ
ÏικÎÏ Î¼ÎµÎ¸Î¿Î´Î¿Î»Î¿Î³Î¯ÎµÏ ÎºÎ±Î¹ Design Thinking","home.overview.entrepreneur.title":"ÎÏιÏειÏημαÏίαÏ","home.overview.entrepreneur.desc":"ΧÏίζονÏÎ±Ï Î³ÎÏÏ
ÏÎµÏ Î±Î½Î¬Î¼ÎµÏα ÏÏην εκÏαίδεÏ
Ïη, Ïη ÏÏ
μβοÏ
λεÏ
Ïική και Ïην εÏιÏειÏημαÏική καινοÏομία","btn.learnMore":"ÎάθεÏε ÏεÏιÏÏÏÏεÏα","btn.viewProject":"ÎείÏε Ïο ÎÏγο","btn.readMore":"ÎιαβάÏÏε ÏεÏιÏÏÏÏεÏα","btn.watchYoutube":"ÎείÏε ÏÏο YouTube","btn.microsoftRecognition":"ÎναγνÏÏιÏη Microsoft Academic Organization","btn.pantopoulosProject":"Pantopoulos Teaching Project","btn.greekPillar":"ÎλληνικÏÏ Î Ï
λÏναÏ","btn.academyStore":"Îκαδημία | E-Shop","publications.scientific.title":"ÎÏιÏÏημονικÎÏ ÎημοÏιεÏÏειÏ","publications.scientific.description":"Îι εÏιÏÏημονικÎÏ Î¼Î¿Ï
δημοÏιεÏÏÎµÎ¹Ï ÎµÏικενÏÏÏνονÏαι ÏÏην εκÏαίδεÏ
Ïη και Ïη γλÏÏÏα, μελεÏÏνÏÎ±Ï ÏÏÏ
ÏÎÏ ÏÎ·Ï Î´Î¹Î´Î±ÏκαλίαÏ, ÏÎ·Ï Î¼Î¬Î¸Î·ÏÎ·Ï ÎºÎ±Î¹ ÏÎ·Ï ÎµÏικοινÏÎ½Î¯Î±Ï Î¼ÎÏα αÏÏ Ïο ÏÏίÏμα ÏοÏ
εÏιÏÏÎ·Î¼Î¿Î½Î¹ÎºÎ¿Ï ÎÏγοÏ
μοÏ
«My name is Teacher». ÎÏοÏείÏε να δείÏε ÏÎ»ÎµÏ ÏÎ¹Ï ÏÏεÏικÎÏ Î´Î·Î¼Î¿ÏιεÏÏÎµÎ¹Ï ÏÏον ÏαÏακάÏÏ ÏÏνδεÏμο.","publications.scientific.button":"ÎείÏε ÏÎ¹Ï Î´Î·Î¼Î¿ÏιεÏÏÎµÎ¹Ï Î¼Î¿Ï
εδÏ...","sophia.button":"Îίμαι η ΣοÏία. Î ÏÏ Î¼ÏοÏÏ Î½Î± βοηθήÏÏ;","sophia.header.title":"Sophia | ΨηÏιακή ÎÏαμμαÏÎαÏ","sophia.header.subtitle":"ΠάνÏα ÏÏη διάθεÏή ÏαÏ!","sophia.input.placeholder":"ΠληκÏÏολογήÏÏε Ïο μήνÏ
μά ÏαÏ...","sophia.greeting":"Îεια ÏαÏ! ð Îίμαι η ΣοÏία, η ÏηÏιακή γÏαμμαÏÎÎ±Ï ÏοÏ
κ. ΦÏÏη ΠανÏÏÏοÏ
λοÏ
. Î ÏÏ Î¼ÏοÏÏ Î½Î± ÏÎ±Ï Î²Î¿Î·Î¸Î®ÏÏ ÏήμεÏα;","sophia.error":"ΣÏ
γγνÏμη, ανÏιμεÏÏÏÎ¯Î¶Ï Îνα ÏεÏÎ½Î¹ÎºÏ Î¶Î®Ïημα. ΠαÏÎ±ÎºÎ±Î»Ï Î´Î¿ÎºÎ¹Î¼Î¬ÏÏε ξανά.","sophia.contactSuggestion":"Îα θÎλαÏε να αÏήÏεÏε Ïα ÏÏοιÏεία εÏικοινÏÎ½Î¯Î±Ï ÏÎ±Ï ÏÏÏε ο κ. ΠανÏÏÏοÏ
Î»Î¿Ï Î½Î± εÏικοινÏνήÏει μαζί ÏαÏ; ÎÏοÏείÏε να ÏÏ
μÏληÏÏÏεÏε Ïη ÏÏÏμα ÏÏη Ïελίδα ÎÏικοινÏνία ή να μοÏ
Ïα ÏείÏε εδÏ.","sophia.contactStart":"Î¥ÏÎÏοÏα! ÎÏ Î¾ÎµÎºÎ¹Î½Î®ÏοÏ
με. ΠείÏε μοÏ
Ïο Ï
282νομά ÏαÏ:","sophia.askEmail":"ÎÏ ÏαÏιÏÏÏ, {name}! ΤÏÏα, ÏαÏÎ±ÎºÎ±Î»Ï ÏείÏε Î¼Î¿Ï Ïο email ÏαÏ:","sophia.invalidEmail":"ÎÏ ÏÏ Î´ÎµÎ½ ÏαίνεÏαι ÎÎ³ÎºÏ Ïο email. ΠαÏÎ±ÎºÎ±Î»Ï Î´Î¿ÎºÎ¹Î¼Î¬ÏÏε ξανά:","sophia.askMessage":"ΤÎλεια! Τι Î¼Î®Î½Ï Î¼Î± θα θÎλαÏε να αÏήÏεÏε για Ïον κ. ΠανÏÏÏÎ¿Ï Î»Î¿;","sophia.askPhone":'ÎÏ ÏαÏιÏÏÏ! Îα θÎλαÏε να αÏήÏεÏε και Îναν αÏÎ¹Î¸Î¼Ï ÏηλεÏÏÎ½Î¿Ï ; (ÏÏοαιÏεÏÎ¹ÎºÏ - ÏείÏε "ÏÏι" για ÏαÏάλειÏη)',"sophia.confirm":`ΤÎλεια! ΠαÏÎ±ÎºÎ±Î»Ï ÎµÏιβεβαιÏÏÏε Ïα ÏÏοιÏεία ÏαÏ: 283 284ð Îνομα: {name} 285ð§ Email: {email} 286ð¬ ÎÎ®Î½Ï Î¼Î±: {message} 287ð ΤηλÎÏÏνο: {phone} 288 289Îίναι ÏÏÏÏά; (ναι/ÏÏι)`,"sophia.notProvided":"Îεν δÏθηκε","sophia.cancelled":"ÎνÏάξει, Î±ÎºÏ ÏÏθηκε. ÎÏοÏείÏε να ξεκινήÏεÏε ξανά ÏÏοÏε θÎλεÏε!","sophia.success":"â Î£Î±Ï ÎµÏ ÏαÏιÏÏÏ ÏολÏ! Το Î¼Î®Î½Ï Î¼Î¬ ÏÎ±Ï ÏÏάλθηκε με εÏιÏÏ Ïία ÏÏον κ. ΠανÏÏÏÎ¿Ï Î»Î¿. Îα εÏικοινÏνήÏει μαζί ÏÎ±Ï Ïο ÏÏ Î½ÏομÏÏεÏο Î´Ï Î½Î±ÏÏ!","sophia.sendError":"â Î£Ï Î³Î³Î½Ïμη, Ï ÏήÏξε ÏÏÏβλημα καÏά Ïην αÏοÏÏολή ÏÎ¿Ï Î¼Î·Î½ÏμαÏοÏ. ΠαÏÎ±ÎºÎ±Î»Ï Î´Î¿ÎºÎ¹Î¼Î¬ÏÏε ξανά ή εÏιÏκεÏθείÏε Ïη Ïελίδα ÎÏικοινÏνία.","sophia.toast.success":"ÎÏιÏÏ Ïία!","sophia.toast.sent":"Το Î¼Î®Î½Ï Î¼Î¬ ÏÎ±Ï ÏÏάλθηκε.","sophia.yes":"Îαι","sophia.no":"ÎÏι","footer.tagline":"ÎκÏÎ±Î¹Î´ÎµÏ ÏικÏÏ, εκÏÎ±Î¹Î´ÎµÏ ÏήÏ, ÏÏÎ¼Î²Î¿Ï Î»Î¿Ï ÎºÎ±Î¹ ÏÏεδιαÏÏÎ®Ï ÎºÎ±Î¹Î½Î¿ÏομιÏν ÏÎ¿Ï Î³ÎµÏÏ ÏÏνει εκÏÎ±Î¯Î´ÎµÏ Ïη, εÏιÏειÏήÏÎµÎ¹Ï ÎºÎ±Î¹ ÏολιÏιÏÎ¼Ï Ïε δÏο ηÏείÏÎ¿Ï Ï.","footer.quickLinks":"ÎÏήγοÏοι ÏÏνδεÏμοι","footer.connect":"ÎÏικοινÏνία","footer.rights":"Îε εÏιÏÏλαξη ÏανÏÏÏ Î´Î¹ÎºÎ±Î¹ÏμαÏοÏ.","contactForm.title":"ΦÏÏμα ÎÏικοινÏνίαÏ","contactForm.description":"Î£Ï Î¼ÏληÏÏÏÏε Ïην ÏαÏακάÏÏ ÏÏÏμα και θα εÏικοινÏνήÏÎ¿Ï Î¼Îµ μαζί ÏÎ±Ï Ïο ÏÏ Î½ÏομÏÏεÏο Î´Ï Î½Î±ÏÏ.","contactForm.name":"Îνομα","contactForm.namePlaceholder":"ÎιÏάγεÏε Ïο Ïνομά ÏαÏ","contactForm.email":"Email","contactForm.emailPlaceholder":"ÎιÏάγεÏε Ïο email ÏαÏ","contactForm.phone":"ΤηλÎÏÏνο","contactForm.phonePlaceholder":"ÎιÏάγεÏε Ïο ÏηλÎÏÏÎ½Ï ÏαÏ","contactForm.message":"ÎÎ®Î½Ï Î¼Î±","contactForm.messagePlaceholder":"ÎÏάÏÏε Ïο Î¼Î®Î½Ï Î¼Î¬ ÏÎ±Ï ÎµÎ´Ï...","contactForm.optional":"ÏÏοαιÏεÏικÏ","contactForm.send":"ÎÏοÏÏολή ÎηνÏμαÏοÏ","contactForm.sending":"ÎÏοÏÏολή...","contactForm.cancel":"ÎκÏÏÏÏη","contactForm.close":"ÎλείÏιμο","contactForm.success.title":"Το Î¼Î®Î½Ï Î¼Î± ÏÏάλθηκε!","contactForm.success.message":"ÎÏ ÏαÏιÏÏοÏμε για Ïο Î¼Î®Î½Ï Î¼Î¬ ÏαÏ. Πκ. ΠανÏÏÏÎ¿Ï Î»Î¿Ï Î¸Î± εÏικοινÏνήÏει μαζί ÏÎ±Ï Ïο ÏÏ Î½ÏομÏÏεÏο Î´Ï Î½Î±ÏÏ.","contactForm.error":"ÎÏοÏÏ Ïία αÏοÏÏÎ¿Î»Î®Ï Î¼Î·Î½ÏμαÏοÏ. ΠαÏÎ±ÎºÎ±Î»Ï Î´Î¿ÎºÎ¹Î¼Î¬ÏÏε ξανά.","contactForm.errors.nameRequired":"Το Ïνομα είναι Ï ÏοÏÏεÏÏικÏ","contactForm.errors.emailRequired":"Το email είναι Ï ÏοÏÏεÏÏικÏ","contactForm.errors.emailInvalid":"ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε ÎÎ³ÎºÏ Ïη διεÏÎ¸Ï Î½Ïη email","contactForm.errors.messageRequired":"Το Î¼Î®Î½Ï Î¼Î± είναι Ï ÏοÏÏεÏÏικÏ","cookie.message":"ΧÏηÏιμοÏοιοÏμε cookies για να βελÏιÏÏÎ¿Ï Î¼Îµ Ïην εμÏειÏία ÏεÏιήγηÏÎ®Ï ÏαÏ. Î£Ï Î½ÎµÏίζονÏÎ±Ï Î½Î± ÏÏηÏιμοÏοιείÏε Î±Ï ÏÏν Ïον ιÏÏÏÏοÏο, ÏÏ Î¼ÏÏνείÏε με Ïη ÏÏήÏη cookies.","cookie.accept":"ÎÏοδοÏή","cookie.decline":"ÎÏÏÏÏιÏη"}}
289,dT=({children:e})=>{const[t,r]=w.useState("en"),n=w.useMemo(()=>({language:t,setLanguage:r,t:s=>Kp[t][s]??Kp.en[s]??s}),[t]);return u.jsx(z0.Provider,{value:n,children:e})},Qe=()=>w.useContext(z0),hT=Pi("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"}}),Ne=w.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?ny:"button";return u.jsx(i,{className:pe(hT({variant:t,size:r,className:e})),ref:o,...s})});Ne.displayName="Button";const fT=()=>{const[e,t]=w.useState(!1),{language:r,setLanguage:n,t:s}=Qe(),o=Yn(),i=[{key:"home",path:"/",label:s("nav.home")},{key:"biography",path:"/biography",label:s("nav.biography")},{key:"projects",path:"/projects",label:s("nav.projects")},{key:"publications",path:"/publications",label:s("nav.publications")},{key:"contact",path:"/contact",label:s("nav.contact")}],a=l=>o.pathname===l;return u.jsx("nav",{className:"bg-background/95 backdrop-blur-sm border-b border-border sticky top-0 z-50 transition-smooth",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"flex justify-between items-center h-16",children:[u.jsx(ln,{to:"/",className:"font-display font-semibold text-xl text-primary transition-fast hover:text-navy-secondary",children:"Fotis Pantopoulos"}),u.jsx("div",{className:"hidden md:flex items-center space-x-8",children:i.map(l=>u.jsxs(ln,{to:l.path,className:`transition-fast relative ${a(l.path)?"text-primary font-medium":"text-muted-foreground hover:text-primary"}`,children:[l.label,a(l.path)&&u.jsx("div",{className:"absolute -bottom-1 left-0 w-full h-0.5 bg-primary rounded-full"})]},l.key))}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsxs("div",{className:"flex items-center space-x-1 bg-muted rounded-lg p-1",children:[u.jsx(Ne,{variant:r==="en"?"default":"ghost",size:"sm",onClick:()=>n("en"),className:"h-8 px-3 text-xs font-medium",children:"EN"}),u.jsx(Ne,{variant:r==="gr"?"default":"ghost",size:"sm",onClick:()=>n("gr"),className:"h-8 px-3 text-xs font-medium",children:"ÎÎ"})]}),u.jsx(Ne,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>t(!e),children:e?u.jsx(Ri,{className:"h-5 w-5"}):u.jsx(R_,{className:"h-5 w-5"})})]})]}),e&&u.jsx("div",{className:"md:hidden border-t border-border bg-background/95 backdrop-blur-sm",children:u.jsx("div",{className:"py-4 space-y-2",children:i.map(l=>u.jsx(ln,{to:l.path,onClick:()=>t(!1),className:`block px-4 py-2 rounded-lg transition-fast ${a(l.path)?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-primary"}`,children:l.label},l.key))})})]})})},pT=()=>{const{t:e}=Qe(),t=[{label:e("nav.home"),path:"/"},{label:e("nav.biography"),path:"/biography"},{label:e("nav.projects"),path:"/projects"},{label:e("nav.publications"),path:"/publications"},{label:e("nav.contact"),path:"/contact"}],r=[{icon:yh,url:"https://www.linkedin.com/in/fotispantopoulos-investima/",label:"LinkedIn"},{icon:Ay,url:"https://www.facebook.com/fotis.pantopoulos",label:"Facebook"},{icon:wh,url:"https://www.youtube.com/channel/UC8v2YS9wkxAyV1KLKNt87wA",label:"YouTube"}];return u.jsx("footer",{className:"bg-primary text-primary-foreground",children:u.jsxs("div",{className:"container mx-auto px-4 py-12",children:[u.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-xl font-display font-semibold",children:"Fotis Pantopoulos"}
289),u.jsx("p",{className:"text-primary-foreground/70 text-sm leading-relaxed",children:e("footer.tagline")})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-display font-semibold",children:e("footer.quickLinks")}),u.jsx("nav",{className:"flex flex-col space-y-2",children:t.map(n=>u.jsx(ln,{to:n.path,className:"text-primary-foreground/70 hover:text-primary-foreground text-sm transition-fast",children:n.label},n.path))})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-display font-semibold",children:e("footer.connect")}),u.jsxs("div",{className:"space-y-2 text-sm text-primary-foreground/70",children:[u.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 hover:text-primary-foreground transition-fast",children:[u.jsx(Iy,{className:"h-4 w-4"}),"[email protected]"]}),u.jsxs("a",{href:"tel:+306937714026",className:"flex items-center gap-2 hover:text-primary-foreground transition-fast",children:[u.jsx(Ly,{className:"h-4 w-4"}),"+30 693 771 4026"]})]}),u.jsx("div",{className:"flex gap-3 pt-2",children:r.map(n=>{const s=n.icon;return u.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":n.label,className:"w-9 h-9 rounded-full bg-primary-foreground/10 flex items-center justify-center hover:bg-primary-foreground/20 transition-fast",children:u.jsx(s,{className:"h-4 w-4"})},n.label)})})]})]}),u.jsxs("div",{className:"mt-10 pt-6 border-t border-primary-foreground/15 flex flex-col sm:flex-row justify-between items-center gap-4 text-xs text-primary-foreground/50",children:[u.jsxs("p",{children:["© ",new Date().getFullYear()," Fotis Pantopoulos. ",e("footer.rights")]}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("span",{children:"ð¬ð· Greece"}),u.jsx("span",{children:"ð³ð± Netherlands"}),u.jsx("span",{children:"ðºð¸ USA"})]})]})]})})},mT=()=>{const[e,t]=w.useState(!1);return w.useEffect(()=>{const r=()=>{t(window.scrollY>400)};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[]),e?u.jsx(Ne,{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"fixed bottom-20 left-4 z-40 w-10 h-10 rounded-full shadow-elegant bg-primary hover:bg-primary/90 text-primary-foreground animate-fade-in",size:"icon","aria-label":"Scroll to top",children:u.jsx(b_,{className:"h-5 w-5"})}):null},zo=w.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:pe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));zo.displayName="Input";var er=function(){return er=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},er.apply(this,arguments)};function uo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function gT(e,t,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{c(n.next(d))}catch(h){i(h)}}function l(d){try{c(n.throw(d))}catch(h){i(h)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function vT(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}const yT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Ih extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class wT extends Ih{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Gp extends Ih{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Qp extends Ih{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var od;(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"}
289)(od||(od={}));class xT{constructor(t,{headers:r={},customFetch:n,region:s=od.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=yT(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return gT(this,arguments,void 0,function*(r,n={}){var s;let o,i;try{const{headers:a,method:l,body:c,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const x=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,x.searchParams.set("forceFunctionRegion",f));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(p["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(p["Content-Type"]="application/json",m=JSON.stringify(c)):m=c;let b=d;h&&(i=new AbortController,o=setTimeout(()=>i.abort(),h),d?(b=i.signal,d.addEventListener("abort",()=>i.abort())):b=i.signal);const v=yield this.fetch(x.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:m,signal:b}).catch(S=>{throw new wT(S)}),g=v.headers.get("x-relay-error");if(g&&g==="true")throw new Gp(v);if(!v.ok)throw new Qp(v);let y=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return y==="application/json"?_=yield v.json():y==="application/octet-stream"||y==="application/pdf"?_=yield v.blob():y==="text/event-stream"?_=v:y==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Qp||a instanceof Gp?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var bT=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
289de=e.code}},_T=class{constructor(e){var t,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let i=null,a=null,l=null,c=o.status,d=o.statusText;if(o.ok){var h,p;if(r.method!=="HEAD"){var f;const v=await o.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const m=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),b=(p=o.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");m&&b&&b.length>1&&(l=parseInt(b[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var x;const m=await o.text();try{i=JSON.parse(m),Array.isArray(i)&&o.status===404&&(a=[],i=null,c=200,d="OK")}catch{o.status===404&&m===""?(c=204,d="No Content"):i={message:m}}if(i&&r.isMaybeSingle&&(!(i==null||(x=i.details)===null||x===void 0)&&x.includes("0 rows"))&&(i=null,c=200,d="OK"),i&&r.shouldThrowOnError)throw new bT(i)}return{error:i,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(s=s.catch(o=>{var i;let a="";const l=o==null?void 0:o.cause;if(l){var c,d,h,p;const x=(c=l==null?void 0:l.message)!==null&&c!==void 0?c:"",m=(d=l==null?void 0:l.code)!==null&&d!==void 0?d:"";a=`${(h=o==null?void 0:o.name)!==null&&h!==void 0?h:"FetchError"}: ${o==null?void 0:o.message}`,a+=` 290 291Caused by: ${(p=l==null?void 0:l.name)!==null&&p!==void 0?p:"Error"}: ${x}`,m&&(a+=` (${m})`),l!=null&&l.stack&&(a+=` 292${l.stack}`)}else{var f;a=(f=o==null?void 0:o.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},ST=class extends _T{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const o=s?`${s}.order`:"order",i=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
292explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:o="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`),o==="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 Yp=new RegExp("[,()]");var fs=class extends ST{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Yp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Yp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},ET=class{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),n&&this.headers.append("Prefer",`count=${n}`),new fs({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST";if(t&&this.headers.append("Prefer",`count=${t}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((i,a)=>i.concat(Object.keys(a)),[]);if(o.length>0){const i=[...new Set(o)].map(a=>`"${a}"`);this.url.searchParams.set("columns",i.join(","))}}return new fs({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var o;const i="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&this.url.searchParams.set("on_conflict",t),n&&this.headers.append("Prefer",`count=${n}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
2920){const l=[...new Set(a)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new fs({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:t}={}){var r;const n="PATCH";return t&&this.headers.append("Prefer",`count=${t}`),new fs({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var t;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new fs({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},kT=class B0{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new ET(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new B0(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([h,p])=>p!==void 0).map(([h,p])=>[h,Array.isArray(p)?`{${p.join(",")}}`:`${p}`]).forEach(([h,p])=>{l.searchParams.append(h,p)})):(a="POST",c=r);const d=new Headers(this.headers);return o&&d.set("Prefer",`count=${o}`),new fs({method:a,url:l,headers:d,schema:this.schemaName,body:c,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};class CT{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 293import ws from "ws" 294new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 295 296Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const TT="2.89.0",jT=`realtime-js/${TT}`,W0="1.0.0",NT="2.0.0",Jp=W0,id=1e4,PT=1e3,RT=100;var Ur;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ur||(Ur={}));var Re;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Re||(Re={}));var Ut;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Ut||(Ut={}));var ad;(function(e){e.websocket="websocket"})(ad||(ad={}));var kn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(kn||(kn={}));class AT{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},i=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,r,n){var s,o;const i=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+c.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let x=new DataView(f),m=0;x.setUint8(m++,this.KINDS.userBroadcastPush),x.setUint8(m++,l.length),x.setUint8(m++,a.length),x.setUint8(m++,i.length),x.setUint8(m++,c.length),x.setUint8(m++,h.length),x.setUint8(m++,r),Array.from(l,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>
296x.setUint8(m++,v.charCodeAt(0))),Array.from(i,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(c,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>x.setUint8(m++,v.charCodeAt(0)));var b=new Uint8Array(f.byteLength+n.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(n),f.byteLength),b.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,o,i,a,l]=n;return r({join_ref:s,ref:o,topic:i,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+s));l=l+s;const d=n.decode(t.slice(l,l+o));l=l+o;const h=n.decode(t.slice(l,l+i));l=l+i;const p=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,x={type:this.BROADCAST_EVENT,event:d,payload:f};return i>0&&(x.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class V0{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ie;(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"})(ie||(ie={}));const Xp=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((o,i)=>(o[i]=OT(i,e,t,s),o),{}):{}},OT=(e,t,r,n)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=r[e];return o&&!n.includes(o)?H0(o,i):ld(i)},H0=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return DT(t,r)}switch(e){case ie.bool:return IT(t);case ie.float4:case ie.float8:case ie.int2:case ie.int4:case ie.int8:case ie.numeric:case ie.oid:return LT(t);case ie.json:case ie.jsonb:return $T(t);case ie.timestamp:return MT(t);case ie.abstime:case ie.date:case ie.daterange:case ie.int4range:case ie.int8range:case ie.money:case ie.reltime:case ie.text:case ie.time:case ie.timestamptz:case ie.timetz:case ie.tsrange:case ie.tstzrange:return ld(t);default:return ld(t)}},ld=e=>e,IT=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},LT=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},$T=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},DT=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let o;const i=e.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>H0(t,a))}return e},MT=e=>typeof e=="string"?e.replace(" ","T"):e,q0=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Oc{constructor(t,r,n={},s=id){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
vendor: 4,598 bytes, line 296
296oin_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Zp;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Zp||(Zp={}));class Bo{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Bo.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Bo.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Bo.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const o=this.cloneDeep(t),i=this.transformState(r),a={},l={};return this.map(o,(c,d)=>{i[c]||(l[c]=d)}),this.map(i,(c,d)=>{const h=o[c];if(h){const p=d.map(b=>b.presence_ref),f=h.map(b=>b.presence_ref),x=d.filter(b=>f.indexOf(b.presence_ref)<0),m=h.filter(b=>p.indexOf(b.presence_ref)<0);x.length>0&&(a[c]=x),m.length>0&&(l[c]=m)}else a[c]=d}),this.syncDiff(o,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);t[a].unshift(...p)}n(a,d,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var em;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(em||(em={}));var Wo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Wo||(Wo={}));var dr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(dr||(dr={}));class js{constructor(t,r={config:{}},n){var s,o;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Re.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Oc(this,Ut.join,this.params,this.timeout),this.rejoinTimer=new V0(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Re.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
296i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Re.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ut.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new Bo(this),this.broadcastEndpointURL=q0(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==Re.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,c=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Wo.PRESENCE]&&this.bindings[Wo.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},p={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(dr.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(dr.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var x;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(dr.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,b=(x=m==null?void 0:m.length)!==null&&x!==void 0?x:0,v=[];for(let g=0;g<b;g++){const y=m[g],{filter:{event:_,schema:S,table:E,filter:k}}=y,j=f&&f[g];if(j&&j.event===_&&js.isFilterValueEqual(j.schema,S)&&js.isFilterValueEqual(j.table,E)&&js.isFilterValueEqual(j.filter,k))v.push(Object.assign(Object.assign({},y),{id:j.id}));else{this.unsubscribe(),this.state=Re.errored,t==null||t(dr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(dr.SUBSCRIBED);return}}).receive("error",f=>{this.state=Re.errored,t==null||t(dr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(dr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Re.joined&&t===Wo.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
296in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Re.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ut.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new Oc(this,Ut.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Re.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,o=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(o),i}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Oc(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>RT){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=Ut;if(n&&[a,l,c,d].indexOf(i)>=0&&n!==this._joinRef())return;let p=this._onMessage(i,r,n);if(r&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var x,m,b;return((x=f.filter)===null||x===void 0?void 0:x.event)==="*"||((b=(m=f.filter)===null||m===void 0?void 0:m.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(f=>f.callback(p,n)):(o=this.bindings[i])===null||o===void 0||o.filter(f=>{var x,m,b,v,g,y;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const _=f.id,S=(x=f.filter)===null||x===void 0?void 0:x.event;return _&&((m=r.ids)===null||m===void 0?void 0:m.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=r.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(g=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof p=="object"&&"ids"in p){const x=p.data,{schema:m,table:b,commit_timestamp:v,type:g,errors:y}=x;p=Object.assign(Object.assign({},{schema:m,table:b,commit_timestamp:v,eventType:g,new:{},old:{},errors:y}),this._getPayloadRecords(x))}f.callback(p,n)})}_isClosed(){return this.state===Re.closed}_isJoined(){return this.state===Re.joined}_isJoining(){return this.state===Re.joining}_isLeaving(){return this.state===Re.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),o={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===n&&js.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ut.close,{},t)}_onError(t){this._on(Ut.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Re.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Xp(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Xp(t.columns,t.old_record)),r}}const Ic=()=>{},aa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},FT=[1e3,2e3,5e3,1e4],UT=1e4,zT=` 297 addEventListener("message", (e) => { 298 if (e.data.event === "start") { 299 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 300 } 301 });`;class BT{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=id,this.transport=null,this.heartbeatIntervalMs=aa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ic,this.ref=0,this.reconnectTimer=null,this.vsn=Jp,this.logger=Ic,this.conn=null,this.sendBuffer=[],this.serializer
301=new AT,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${ad.websocket}`,this.httpEndpoint=q0(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=CT.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 302 303To use Realtime in Node.js, you need to provide a WebSocket implementation: 304 305Option 1: Use Node.js 22+ which has native WebSocket support 306Option 2: Install and provide the "ws" package: 307 308 npm install ws 309 310 import ws from "ws" 311 const client = new RealtimeClient(url, { 312 ...options, 313 transport: ws 314 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Ur.connecting:return kn.Connecting;case Ur.open:return kn.Open;case Ur.closing:return kn.Closing;default:return kn.Closed}}isConnected(){return this.connectionState()===kn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===n);if(s)return s;{const o=new js(`realtime:${t}`,r,this);return this.channels.push(o),o}}push(t){const{topic:r,event:n,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(PT,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
314heduleTimeout()},aa.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:o,ref:i}=r,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),o),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(s,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Ur.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Ur.open||this.conn.readyState===Ur.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
314heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Ut.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([zT],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const o={access_token:r,version:jT};r&&s.updateJoinPayload(o),s.joinedOnce&&s._isJoined()&&s._push(Ut.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new V0(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},aa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,o,i,a,l,c,d,h,p,f;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:id,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:aa.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Ic,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Jp,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:x=>FT[x-1]||UT,this.vsn){case W0:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(x,m)=>m(JSON.stringify(x)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(x,m)=>m(JSON.parse(x));break;case NT:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var pi=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function WT(e,t,r){const n=new URL(t,e);if(r)for(const[s,o]of Object.entries(r))o!==void 0&&n.searchParams.set(s,o);return n.toString()}async function VT(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 HT(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:o,headers:i}){const a=WT(e.baseUrl,n,s),l=await VT(e.auth),c=await t(a,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...i},body:o?JSON.stringify(o):void 0}),d=await c.text(),h=(c.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!c.ok){const f=h?p:void 0,x=f==null?void 0:f.error;throw new pi((x==null?void 0:x.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:f})}return{status:c.status,headers:c.headers,data:p}}}}function la(e){return e.join("�")}var qT=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:la(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${la(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${la(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${la(e.namespace)}`}),!0}catch(t){if(t instanceof pi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof pi&&r.status===409)return;throw r}}};function ss(e){return e.join("�")}var KT=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ss(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/${ss(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/${ss(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof pi&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof pi&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},GT=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=HT({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new qT(this.client,t),this.tableOps=new KT(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)}
314async 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)}},Bl=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function me(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var QT=class extends Bl{constructor(e,t,r){super(e),this.name="StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},cd=class extends Bl{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const Lh=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),YT=()=>Response,ud=e=>{if(Array.isArray(e))return e.map(r=>ud(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=ud(n)}),t},JT=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)},XT=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function mi(e){"@babel/helpers - typeof";return mi=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},mi(e)}function ZT(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ej(e){var t=ZT(e,"string");return mi(t)=="symbol"?t:t+""}function tj(e,t,r){return(t=ej(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(n){tj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Lc=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},rj=async(e,t,r)=>{e instanceof await YT()&&!(r!=null&&r.noResolveJson)?e.json().then(n=>{const s=e.status||500,o=(n==null?void 0:n.statusCode)||s+"";t(new QT(Lc(n),s,o))}).catch(n=>{t(new cd(Lc(n),n))}):t(new cd(Lc(e),e))},nj=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?s:(JT(n)?(s.headers=H({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),H(H({},s),r))};async function Ii(e,t,r,n,s,o){return new Promise((i,a)=>{e(r,nj(t,n,s,o)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>rj(l,a,n))})}async function gi(e,t,r,n){return Ii(e,"GET",t,r,n)}async function $t(e,t,r,n,s){return Ii(e,"POST",t,n,s,r)}async function dd(e,t,r,n,s){return Ii(e,"PUT",t,n,s,r)}async function sj(e,t,r,n){return Ii(e,"HEAD",t,H(H({},r),{},{noResolveJson:!0}),n)}async function $h(e,t,r,n,s){return Ii(e,"DELETE",t,n,s,r)}var oj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(me(t))return{data:null,error:t};throw t}}};let K0;K0=Symbol.toStringTag;var ij=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[K0]="BlobDownloadBuilder",this.promise=null}asStream(){return new oj(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(me(t))return{data:null,error:t};throw t}}};const aj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},rm={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var lj=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=r,this.fetch=Lh(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,r,n){var s=this;try{let o;const i=H(H({},rm),n);let a=H(H({},s.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",s.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",s.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),n!=null&&n.headers&&(a=H(H({},a),n.headers));const c=s._removeEmptyFolders(t),d=s._getFinalPath(c),h=await(e=="PUT"?dd:$t)(s.fetch,`${s.url}/object/${d}`,o,H({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:c,id:h.Id,fullPath:h.Key},error:null}}catch(o){if(s.shouldThrowOnError)throw o;if(me(o))return{data:null,error:o};throw o}}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const o=s._removeEmptyFolders(e),i=s._getFinalPath(o),a=new URL(s.url+`/object/upload/sign/${i}`);a.searchParams.set("token",t);try{let l;const c=H({upsert:rm.upsert},n),d=H(H({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{data:{path:o,fullPath:(await dd(s.fetch,a.toString(),l,{headers:d})).Key},error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(me(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var r=this;try{let n=r._getFinalPath(e);const s=H({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const o=await $t(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(r.url+o.url),a=i.searchParams.get("token");if(!a)throw new Bl("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(me(n))return{data:null,error:n};throw n}}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;try{return{data:await $t(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
314stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(me(s))return{data:null,error:s};throw s}}async copy(e,t,r){var n=this;try{return{data:{path:(await $t(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key},error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(me(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,r){var n=this;try{let s=n._getFinalPath(e),o=await $t(n.fetch,`${n.url}/object/sign/${s}`,H({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${n.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(me(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,r){var n=this;try{const s=await $t(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>H(H({},i),{},{signedUrl:i.signedURL?encodeURI(`${n.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(me(s))return{data:null,error:s};throw s}}download(e,t){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=n?`?${n}`:"",o=this._getFinalPath(e),i=()=>gi(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0});return new ij(i,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);try{return{data:ud(await gi(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(me(n))return{data:null,error:n};throw n}}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await sj(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(me(n)&&n instanceof cd){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&n.push(i);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${a}`)}}}async remove(e){var t=this;try{return{data:await $h(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async list(e,t,r){var n=this;try{const s=H(H(H({},aj),t),{},{prefix:e||""});return{data:await $t(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(me(s))return{data:null,error:s};throw s}}async listV2(e,t){var r=this;try{const n=H({},e);return{data:await $t(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(me(n))return{data:null,error:n};throw n}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const G0="2.89.0",Q0={"X-Client-Info":`storage-js/${G0}`};var cj=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1;const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=H(H({},Q0),t),this.fetch=Lh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const r=t.listBucketOptionsToQueryString(e);return{data:await gi(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await gi(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async createBucket(e,t={public:!1}){var r=this;try{return{data:await $t(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(me(n))return{data:null,error:n};throw n}}async updateBucket(e,t){var r=this;try{return{data:await dd(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(me(n))return{data:null,error:n};throw n}}async emptyBucket(e){var t=this;try{return{data:await $t(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await $h(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}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():""}},uj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Q0),t),this.fetch=Lh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await $t(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async listBuckets(e){var t=this;
314try{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return{data:await gi(t.fetch,s,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await $h(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(me(r))return{data:null,error:r};throw r}}from(e){var t=this;if(!XT(e))throw new Bl("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new GT({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,o){const i=s[o];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(s,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}};const Dh={"X-Client-Info":`storage-js/${G0}`,"Content-Type":"application/json"};var Y0=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function ht(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var $c=class extends Y0{constructor(e,t,r){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},dj=class extends Y0{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Mh=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),hj=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)},nm=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),fj=async(e,t,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const n=e.status||500,s=e;if(typeof s.json=="function")s.json().then(o=>{const i=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||n+"";t(new $c(nm(o),n,i))}).catch(()=>{const o=n+"";t(new $c(s.statusText||`HTTP ${n} error`,n,o))});else{const o=n+"";t(new $c(s.statusText||`HTTP ${n} error`,n,o))}}else t(new dj(nm(e),e))},pj=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return n?(hj(n)?(s.headers=H({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,H(H({},s),r)):s};async function mj(e,t,r,n,s,o){return new Promise((i,a)=>{e(r,pj(t,n,s,o)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>fj(l,a,n))})}async function ft(e,t,r,n,s){return mj(e,"POST",t,n,s,r)}var gj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Dh),t),this.fetch=Mh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async getIndex(e,t){var r=this;try{return{data:await ft(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(ht(n))return{data:null,error:n};throw n}}async listIndexes(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async deleteIndex(e,t){var r=this;try{return{data:await ft(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(ht(n))return{data:null,error:n};throw n}}},vj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Dh),t),this.fetch=Mh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await ft(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async getVectors(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
314if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await ft(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async queryVectors(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await ft(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}},yj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=H(H({},Dh),t),this.fetch=Mh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async listBuckets(e={}){var t=this;try{return{data:await ft(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await ft(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ht(r))return{data:null,error:r};throw r}}},wj=class extends yj{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new xj(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},xj=class extends gj{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new bj(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},bj=class extends vj{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,H(H({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},_j=class extends cj{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new lj(this.url,this.headers,e,this.fetch)}get vectors(){return new wj(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new uj(this.url+"/iceberg",this.headers,this.fetch)}};const J0="2.89.0",ps=30*1e3,hd=3,Dc=hd*ps,Sj="http://localhost:9999",Ej="supabase.auth.token",kj={"X-Client-Info":`gotrue-js/${J0}`},fd="X-Supabase-Api-Version",X0={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Cj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Tj=10*60*1e3;
314class vi extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function U(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class jj extends vi{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Nj(e){return U(e)&&e.name==="AuthApiError"}class Cn extends vi{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Cr extends vi{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class ct extends Cr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Pj(e){return U(e)&&e.name==="AuthSessionMissingError"}class os extends Cr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class ca extends Cr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ua extends Cr{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Rj(e){return U(e)&&e.name==="AuthImplicitGrantRedirectError"}class sm extends Cr{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Aj extends Cr{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 pd extends Cr{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Mc(e){return U(e)&&e.name==="AuthRetryableFetchError"}class om extends Cr{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class md extends Cr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),im=` 315\r=`.split(""),Oj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<im.length;t+=1)e[im[t].charCodeAt(0)]=-2;for(let t=0;t<ul.length;t+=1)e[ul[t].charCodeAt(0)]=t;return e})();function am(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(ul[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(ul[n]),t.queuedBits-=6}}function Z0(e,t,r){const n=Oj[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function lm(e){const t=[],r=i=>{t.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{$j(i,n,r)};for(let i=0;i<e.length;i+=1)Z0(e.charCodeAt(i),s,o);return t.join("")}function Ij(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 Lj(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}Ij(n,t)}}function $j(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Ds(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;
315s+=1)Z0(e.charCodeAt(s),r,n);return new Uint8Array(t)}function Dj(e){const t=[];return Lj(e,r=>t.push(r)),new Uint8Array(t)}function Pn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>am(s,r,n)),am(null,r,n),t.join("")}function Mj(e){return Math.round(Date.now()/1e3)+e}function Fj(){return Symbol("auth-callback")}const Me=()=>typeof window<"u"&&typeof document<"u",wn={tested:!1,writable:!1},ew=()=>{if(!Me())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(wn.tested)return wn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),wn.tested=!0,wn.writable=!0}catch{wn.tested=!0,wn.writable=!1}return wn.writable};function Uj(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const tw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zj=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ms=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},xn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},De=async(e,t)=>{await e.removeItem(t)};class Wl{constructor(){this.promise=new Wl.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Wl.promiseConstructor=Promise;function Fc(e){const t=e.split(".");if(t.length!==3)throw new md("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Cj.test(t[n]))throw new md("JWT not in base64url format");return{header:JSON.parse(lm(t[0])),payload:JSON.parse(lm(t[1])),signature:Ds(t[2]),raw:{header:t[0],payload:t[1]}}}async function Bj(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Wj(e,t){return new Promise((n,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){n(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function Vj(e){return("0"+e.toString(16)).substr(-2)}function Hj(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let o=0;o<56;o++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,Vj).join("")}async function qj(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function Kj(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await qj(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function is(e,t,r=!1){const n=Hj();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await ms(e,`${t}-code-verifier`,s);const o=await Kj(n);return[o,n===o?"plain":"s256"]}const Gj=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Qj(e){const t=e.headers.get(fd);if(!t||!t.match(Gj))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Yj(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 Jj(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 Xj=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function as(e){if(!Xj.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Uc(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Zj(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;
315if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function cm(e){return JSON.parse(JSON.stringify(e))}const En=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),eN=[502,503,504];async function um(e){var t;if(!zj(e))throw new pd(En(e),0);if(eN.includes(e.status))throw new pd(En(e),e.status);let r;try{r=await e.json()}catch(o){throw new Cn(En(o),o)}let n;const s=Qj(e);if(s&&s.getTime()>=X0["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new om(En(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new ct}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new om(En(r),e.status,r.weak_password.reasons);throw new jj(En(r),e.status||500,n)}const tN=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function V(e,t,r,n){var s;const o=Object.assign({},n==null?void 0:n.headers);o[fd]||(o[fd]=X0["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await rN(e,t,r+a,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function rN(e,t,r,n,s,o){const i=tN(t,n,s,o);let a;try{a=await e(r,Object.assign({},i))}catch(l){throw console.error(l),new pd(En(l),0)}if(a.ok||await um(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await um(l)}}function Ot(e){var t;let r=null;oN(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Mj(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function dm(e){const t=Ot(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Wr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function nN(e){return{data:e,error:null}}function sN(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o}=e,i=uo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function hm(e){return e}function oN(e){return e.access_token&&e.refresh_token&&e.expires_in}const zc=["global","local","others"];class iN{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=tw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
vendor: 4,751 bytes, line 315
315async signOut(t,r=zc[0]){if(zc.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${zc.join(", ")}`);try{return await V(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(U(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await V(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Wr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=uo(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await V(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:sN,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(U(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await V(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Wr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await V(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:hm});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const m=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(U(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){as(t);try{return await V(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Wr})}catch(r){if(U(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){as(t);try{return await V(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Wr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){as(t);try{return await V(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Wr})}catch(n){if(U(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){as(t.userId);try{const{data:r,error:n}=await V(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _deleteFactor(t){as(t.userId),as(t.id);try{return{data:await V(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await V(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:hm});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const m=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(U(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await V(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await V(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await V(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(U(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await V(this.fetch,"DELET
315E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(U(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await V(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(U(r))return{data:null,error:r};throw r}}}function fm(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const ls={debug:!!(globalThis&&ew()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class rw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class aN extends rw{}async function lN(e,t,r){ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),ls.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new aN(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ls.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function cN(){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 nw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function uN(e){return parseInt(e,16)}function dN(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function hN(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:c,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 316`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=nw(e.address),x=d?`${d}://${n}`:n,m=e.statement?`${e.statement} 317`:"",b=`${x} wants you to sign in with your Ethereum account: 318${f} 319 320${m}`;let v=`URI: ${h} 321Version: ${p} 322Chain ID: ${r}${i?` 323Nonce: ${i}`:""} 324Issued At: ${o.toISOString()}`;if(s&&(v+=` 325Expiration Time: ${s.toISOString()}`),a&&(v+=` 326Not Before: ${a.toISOString()}`),l&&(v+=` 327Request ID: ${l}`),c){let g=` 328Resources:`;for(const y of c){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=` 329- ${y}`}v+=g}return`${b} 330${v}`}
330class Te extends Error{constructor({message:t,code:r,cause:n,name:s}){var o;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=s??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class dl extends Te{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function fN({error:e,options:t}){var r,n,s;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Te({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Te({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Te({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=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Te({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 Te({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Te({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Te({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Te({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 i=window.location.hostname;if(sw(i)){if(o.rp.id!==i)return new Te({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Te({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Te({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 Te({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 Te({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function pN({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Te({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Te({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(sw(n)){if(r.rpId!==n)return new Te({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Te({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Te({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 Te({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class mN{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const gN=new mN;function vN(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=uo(e,["challenge","user","excludeCredentials"]),o=Ds(t).buffer,i=Object.assign(Object.assign({},r),{id:Ds(r.id).buffer}),a=Object.assign(Object.assign({}
330,s),{challenge:o,user:i});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ds(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function yN(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=uo(e,["challenge","allowCredentials"]),s=Ds(t).buffer,o=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const a=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:Ds(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function wN(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Pn(new Uint8Array(e.response.attestationObject)),clientDataJSON:Pn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function xN(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Pn(new Uint8Array(s.authenticatorData)),clientDataJSON:Pn(new Uint8Array(s.clientDataJSON)),signature:Pn(new Uint8Array(s.signature)),userHandle:s.userHandle?Pn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function sw(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function pm(){var e,t;return!!(Me()&&"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 bN(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new dl("Browser returned unexpected credential type",t)}:{data:null,error:new dl("Empty credential response",t)}}catch(t){return{data:null,error:fN({error:t,options:e})}}}async function _N(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new dl("Browser returned unexpected credential type",t)}:{data:null,error:new dl("Empty credential response",t)}}catch(t){return{data:null,error:pN({error:t,options:e})}}}const SN={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},EN={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function hl(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))n[o]=i;else if(r(i))n[o]=i;else if(t(i)){const a=n[o];t(a)?n[o]=hl(a,i):n[o]=hl(i)}else n[o]=i}return n}function kN(e,t){return hl(SN,e,t||{})}function CN(e,t){return hl(EN,e,t||{})}class TN{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},o){try{const{data:i,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!i)return{data:null,error:a};const l=s??gN.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:c}=i.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(i.webauthn.type){case"create":{const c=kN(i.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:d,error:h}=await bN({publicKey:c,signal:l});return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=CN(i.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:d,error:h}=await _N(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:c,signal:l}));return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new Cn("Unexpected error in challenge",i)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new vi("rpId is required for WebAuthn authentication")};try{if(!pm())return{data:null,error:new Cn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new Cn("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new vi("rpId is required for WebAuthn registration")};try{if(!pm())return{data:null,error:new Cn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var h;
330return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(i){return U(i)?{data:null,error:i}:{data:null,error:new Cn("Unexpected error in register",i)}}}}cN();const jN={url:Sj,storageKey:Ej,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:kj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function mm(e,t,r){return await r()}const cs={};class yi{get jwks(){var t,r;return(r=(t=cs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){cs[this.storageKey]=Object.assign(Object.assign({},cs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=cs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){cs[this.storageKey]=Object.assign(Object.assign({},cs[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},jN),t);if(this.storageKey=o.storageKey,this.instanceID=(r=yi.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,yi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Me()){const i=`${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(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new iN({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=tw(o.fetch),this.lock=o.lock||mm,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,o.lock?this.lock=o.lock:this.persistSession&&Me()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=lN:this.lock=mm,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 TN(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:ew()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=fm(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=fm(this.memoryStorage)),Me()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${J0}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Me()&&(r=Uj(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Me()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),Rj(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return U(r)?this._returnResult({error:r}):this._returnResult({error:new Cn("Unexpected error during initialization",r)}
330)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const o=await V(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Ot}),{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(U(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var r,n,s;try{let o;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,x=null;this.flowType==="pkce"&&([f,x]=await is(this.storage,this.storageKey)),o=await V(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:x},xform:Ot})}else if("phone"in t){const{phone:d,password:h,options:p}=t;o=await V(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Ot})}else throw new ca("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return await De(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let r;if("email"in t){const{email:o,password:i,options:a}=t;r=await V(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:dm})}else if("phone"in t){const{phone:o,password:i,options:a}=t;r=await V(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:dm})}else throw new ca("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const o=new os;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,o,i,a,l,c,d,h,p;let f,x;if("message"in t)f=t.message,x=t.signature;else{const{chain:m,wallet:b,statement:v,options:g}=t;let y;if(Me())if(typeof b=="object")y=b;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")y=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=b}const _=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),S=await y.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=nw(S[0]);let k=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const A=await y.request({method:"eth_chainId"});k=uN(A)}const j={domain:_.host,address:E,statement:v,uri:_.href,version:"1",chainId:k,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=hN(j),x=await y.request({method:"personal_sign",params:[dN(f),E]})}try{const{data:m,error:b}=await V(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:x}
330,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Ot});if(b)throw b;if(!m||!m.session||!m.user){const v=new os;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:b})}catch(m){if(U(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,s,o,i,a,l,c,d,h,p,f;let x,m;if("message"in t)x=t.message,m=t.signature;else{const{chain:b,wallet:v,statement:g,options:y}=t;let _;if(Me())if(typeof v=="object")_=v;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const S=new URL((r=y==null?void 0:y.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),g?{statement:g}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)x=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),m=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(d=y==null?void 0:y.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 331`);const E=await _.signMessage(new TextEncoder().encode(x),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=E}}try{const{data:b,error:v}=await V(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:Pn(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ot});if(v)throw v;if(!b||!b.session||!b.user){const g=new os;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:v})}catch(b){if(U(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const r=await xn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new Aj;const{data:o,error:i}=await V(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Ot});if(await De(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new os;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:o,nonce:i}=t,a=await V(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Ot}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new os;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,o,i;try{if("email"in t){const{email:a,options:l}=t;
331let c=null,d=null;this.flowType==="pkce"&&([c,d]=await is(this.storage,this.storageKey));const{error:h}=await V(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await V(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new ca("You must provide either an email or phone number.")}catch(a){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,o;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,o=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:a}=await V(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Ot});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,o,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await is(this.storage,this.storageKey));const c=await V(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:nN});return!((o=c.data)===null||o===void 0)&&o.url&&Me()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new ct;const{error:s}=await V(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(U(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:o}=t,{error:i}=await V(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:n,type:s,options:o}=t,{data:i,error:a}=await V(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new ca("You must provide either an email or phone number and a type")}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await xn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
331id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Dc:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const i=await xn(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=Uc()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=Zj(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await V(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Wr}):await this._useSession(async r=>{var n,s,o;const{data:i,error:a}=r;if(a)throw a;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ct}:await V(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:Wr})})}catch(r){if(U(r))return Pj(r)&&(await this._removeSession(),await De(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:o}=n;if(o)throw o;if(!s.session)throw new ct;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await is(this.storage,this.storageKey));const{data:c,error:d}=await V(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Wr});if(d)throw d;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ct;const r=Date.now()/1e3;let n=r,s=!0,o=null;const{payload:i}=Fc(t.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(U(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:i,error:a}=r;if(a)throw a;t=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new ct;const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(U(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Me())throw new ua("No browser detected.");
331if(t.error||t.error_description||t.error_code)throw new ua(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new sm("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ua("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new sm("No code detected.");const{data:g,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!o||!a||!i||!c)throw new ua("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let p=d+h;l&&(p=parseInt(l));const f=p-d;f*1e3<=ps&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const x=p-h;d-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,p,d):d-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,p,d);const{data:m,error:b}=await this._getUser(o);if(b)throw b;const v={provider_token:n,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:p,refresh_token:i,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(n){if(U(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await xn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({error:o});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(Nj(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await De(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=Fj(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:o},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){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",o),console.error(o)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await is(this.storage,this.storageKey,!0));try{return await V(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async o=>{var i,a,l,c,d;const{data:h,error:p}=o;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await V(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Me()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(U(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:o}}=r;if(s)throw s;const{options:i,provider:a,token:l,access_token:c,nonce:d}=t,h=await V(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:Ot}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new os}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await De(this.storage,`${this.storageKey}-code-verifier`),U(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)throw i;
331return await V(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Wj(async s=>(s>0&&await Bj(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await V(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ot})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Mc(o)&&Date.now()+i-n<ps})}catch(n){if(this._debug(r,"error",n),U(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Me()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await xn(this.storage,this.storageKey);if(s&&this.userStorage){let i=await xn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await ms(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:Uc()}else if(s&&!s.user&&!s.user){const i=await xn(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await De(this.storage,this.storageKey+"-user"),await ms(this.storage,this.storageKey,s)):s.user=Uc()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const o=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Dc;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${Dc}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),Mc(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Wl;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new ct;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),U(o)){const i={data:null,error:o};return Mc(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await De(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await ms(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const o=cm(s);await ms(this.storage,this.storageKey,o)}else{const s=cm(r);await ms(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await De(this.storage,this.storageKey),await De(this.storage,this.storageKey+"-code-verifier"),await De(this.storage,this.storageKey+"-user"),this.userStorage&&await De(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Me()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
331catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ps);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/ps);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ps}ms, refresh threshold is ${hd} ticks`),s<=hd&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof rw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Me()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,i]=await is(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);s.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;return o?this._returnResult({data:null,error:o}):await V(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await V(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?wN(t.webauthn.credential_response):xN(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await V(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await V(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:vN(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:yN(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}
331=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Fc(n.access_token);let i=null;o.aal&&(i=o.aal);let a=i;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=o.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await V(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new ct})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new ct});const i=await V(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Me()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new ct});const i=await V(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Me()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await V(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ct})})}catch(t){if(U(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await V(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ct})})}catch(r){if(U(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+Tj>s)return n;const{data:o,error:i}=await V(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,n=o.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:x}
331=await this.getSession();if(x||!f.session)return this._returnResult({data:null,error:x});n=f.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=Fc(n);r!=null&&r.allowExpired||Yj(o.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:o,header:s,signature:i},error:null}}const d=Jj(s.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,i,Dj(`${a}.${l}`)))throw new md("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(n){if(U(n))return this._returnResult({data:null,error:n});throw n}}}yi.nextInstanceID={};const NN=yi,PN="2.89.0";let jo="";typeof Deno<"u"?jo="deno":typeof document<"u"?jo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?jo="react-native":jo="node";const RN={"X-Client-Info":`supabase-js-${jo}/${PN}`},AN={headers:RN},ON={schema:"public"},IN={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},LN={};function wi(e){"@babel/helpers - typeof";return wi=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},wi(e)}function $N(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DN(e){var t=$N(e,"string");return wi(t)=="symbol"?t:t+""}function MN(e,t,r){return(t=DN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){MN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const FN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),UN=()=>Headers,zN=(e,t,r)=>{const n=FN(r),s=UN();return async(o,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(o,xe(xe({},i),{},{headers:c}))}};function BN(e){return e.endsWith("/")?e:e+"/"}function WN(e,t){var r,n;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:c,realtime:d,global:h}=t,p={db:xe(xe({},l),s),auth:xe(xe({},c),o),realtime:xe(xe({},d),i),storage:{},global:xe(xe(xe({},h),a),{},{headers:xe(xe({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function VN(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(BN(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var HN=class extends NN{constructor(e){super(e)}},qN=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const o=VN(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const i=`sb-${o.hostname.split(".")[0]}-auth-token`,a={db:ON,realtime:LN,auth:xe(xe({},IN),{},{storageKey:i}),global:AN},l=WN(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(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 c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=zN(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(xe({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new kT(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new _j(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new xT(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
331channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:o,flowType:i,lock:a,debug:l,throwOnError:c},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new HN({url:this.authUrl.href,headers:xe(xe({},p),d),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:i,lock:a,debug:l,throwOnError:c,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new BT(this.realtimeUrl.href,xe(xe({},e),{},{params:xe(xe({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const KN=(e,t,r)=>new qN(e,t,r);function GN(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}GN()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function QN(){var b,v;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((v=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:v[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const i=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,p=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(g,y,_)=>new Promise(S=>{const E=p();let k=!1,j;const A=D=>{k||(k=!0,clearTimeout(j),window.removeEventListener("message",I),S(D))},I=D=>{if(c.indexOf(D.origin)<0)return;const K=D.data;K&&K.type===d&&K.requestId===E&&A(K)};window.addEventListener("message",I);const B={type:g,requestId:E,projectId:s,key:y};_!==void 0&&(B.value=_);for(const D of c)window.parent.postMessage(B,D);j=setTimeout(()=>A(null),h)});let x=!0;const m=250;return{getItem:async g=>{let y=await f("lovable-preview-auth:get",g);return!y&&x&&(await new Promise(_=>setTimeout(_,m)),y=await f("lovable-preview-auth:get",g)),x=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(g),null):y.value:localStorage.getItem(g)},setItem:(g,y)=>(localStorage.setItem(g,y),f("lovable-preview-auth:set",g,y).then(()=>{})),removeItem:g=>(localStorage.removeItem(g),f("lovable-preview-auth:remove",g).then(()=>{}))}}const YN="https://nglgkacbdnislnvyrlpk.supabase.co",JN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5nbGdrYW
331NiZG5pc2xudnlybHBrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjczNjA0NzYsImV4cCI6MjA4MjkzNjQ3Nn0.TpMO7OD0HBN5Z5dX2lGpRFz2rkPQbXL1lmOifMw0Oic",gd=KN(YN,JN,{auth:{storage:QN(),persistSession:!0,autoRefreshToken:!0}}),XN="/assets/sophia-avatar-DcqbUMqw.png",vm=(e,t=5e3)=>!e||typeof e!="string"?"":e.replace(/<[^>]*>/g,"").slice(0,t).trim(),ZN=()=>{const{language:e,t}=Qe(),{toast:r}=ty(),[n,s]=w.useState(!1),[o,i]=w.useState([]),[a,l]=w.useState(""),[c,d]=w.useState(!1),[h,p]=w.useState(!1),[f,x]=w.useState(null),[m,b]=w.useState({name:"",email:"",message:"",phone:""}),[v,g]=w.useState(!1),y=w.useRef(null),_=()=>{var L;(L=y.current)==null||L.scrollIntoView({behavior:"smooth"})};w.useEffect(()=>{_()},[o]),w.useEffect(()=>{n&&o.length===0&&i([{role:"assistant",content:t("sophia.greeting")}])},[n,t]),w.useEffect(()=>{o.length===1&&o[0].role==="assistant"&&i([{role:"assistant",content:t("sophia.greeting")}])},[e,t]);const S=async()=>{var N;if(!a.trim()||c)return;const L=vm(a,1e3);if(!L)return;if(l(""),i(P=>[...P,{role:"user",content:L}]),h){j(L);return}const F=["yes","ναι","sure","ok","οκ","θÎλÏ","want"],W=e==="gr"?"ÏÏοιÏεία εÏικοινÏνίαÏ":"contact details";if(F.some(P=>L.toLowerCase().includes(P))&&o.length>0&&((N=o[o.length-1])==null?void 0:N.content.includes(W))){E();return}d(!0);try{const{data:P,error:q}=await gd.functions.invoke("sophia-chat",{body:{message:L,language:e,conversationHistory:o.slice(-10)}});if(q)throw q;const z=vm(P.response);i(Y=>[...Y,{role:"assistant",content:z}]),o.length>=6&&!h&&!v&&setTimeout(()=>{i(Y=>[...Y,{role:"assistant",content:t("sophia.contactSuggestion")}]),g(!0)},1500)}catch(P){console.error("Error sending message:",P),i(q=>[...q,{role:"assistant",content:t("sophia.error")}])}finally{d(!1)}},E=()=>{p(!0),x("name"),g(!1),i(L=>[...L,{role:"assistant",content:t("sophia.contactStart")}])},k=L=>{g(!1),L?(i(F=>[...F,{role:"user",content:t("sophia.yes")}]),E()):(i(F=>[...F,{role:"user",content:t("sophia.no")}]),i(F=>[...F,{role:"assistant",content:e==="gr"?"ÎανÎνα ÏÏÏβλημα! Îη διÏÏάÏεÏε να ÏÏÏήÏεÏε οÏιδήÏοÏε άλλο ή να εÏιÏκεÏθείÏε Ïη Ïελίδα ÎÏικοινÏνία αν αλλάξεÏε γνÏμη.":"No problem! Feel free to ask anything else or visit the Contact page if you change your mind."}]))},j=async L=>{switch(f){case"name":b(P=>({...P,name:L})),x("email"),i(P=>[...P,{role:"assistant",content:t("sophia.askEmail").replace("{name}",L)}]);break;case"email":if(!L.includes("@")){i(P=>[...P,{role:"assistant",content:t("sophia.invalidEmail")}]);return}b(P=>({...P,email:L})),x("message"),i(P=>[...P,{role:"assistant",content:t("sophia.askMessage")}]);break;case"message":b(P=>({...P,message:L})),x("phone"),i(P=>[...P,{role:"assistant",content:t("sophia.askPhone")}]);break;case"phone":const F=["no","ÏÏι","skip","ÏαÏάλειÏη","-"];F.some(P=>L.toLowerCase().includes(P))||b(P=>({...P,phone:L})),x("confirm");const W={...m,phone:F.some(P=>L.toLowerCase().includes(P))?"":L},C=t("sophia.confirm").replace("{name}",W.name).replace("{email}",W.email).replace("{message}",W.message).replace("{phone}",W.phone||t("sophia.notProvided"));i(P=>[...P,{role:"assistant",content:C}]),F.some(P=>L.toLowerCase().includes(P))||b(W);break;case"confirm":["yes","ναι","ÏÏÏÏά","correct","ok","οκ"].some(P=>L.toLowerCase().includes(P))?await A():(p(!1),x(null),b({name:"",email:"",message:"",phone:""}),i(P=>[...P,{role:"assistant",content:t("sophia.cancelled")}]));break}},A=async()=>{d(!0);try{const{error:L}=await gd.functions.invoke("sophia-contact",{body:m});if(L)throw L;i(F=>[...F,{role:"assistant",content:t("sophia.success")}]),r({title:t("sophia.toast.success"),description:t("sophia.toast.sent")})}catch(L){console.error("Error submitting contact form:",L),i(F=>[...F,{role:"assistant",content:t("sophia.sendError")}])}finally{d(!1),p(!1),x(null),b({name:"",email:"",message:"",phone:""})}},I=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),S())},B=t("sophia.button"),D=t("sophia.header.title"),K=t("sophia.header.subtitle"),$=t("sophia.input.placeholder");return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"fixed bottom-20 right-4 z-50 flex items-center gap-3",children:[!n&&u.jsx("span",{className:"text-sm font-medium text-rose-600 bg-rose-50 px-3 py-2 rounded-lg shadow-md border border-rose-200 animate-fade-in",children:B}),u.jsx(Ne,{onClick:()=>
331s(!n),className:"w-14 h-14 rounded-full bg-rose-500 hover:bg-rose-600 text-white shadow-xl transition-all duration-300 hover:scale-110","aria-label":n?"Close chat":"Open chat",children:n?u.jsx(Ri,{className:"w-6 h-6"}):u.jsx(A_,{className:"w-6 h-6"})})]}),n&&u.jsxs("div",{className:"fixed bottom-36 right-4 z-50 w-[360px] max-w-[calc(100vw-2rem)] max-h-[70vh] bg-background border border-border rounded-2xl shadow-2xl flex flex-col overflow-hidden animate-scale-in",children:[u.jsxs("div",{className:"bg-rose-500 p-4 flex items-center gap-3 flex-shrink-0",children:[u.jsx("img",{src:XN,alt:"Sophia",className:"w-12 h-12 rounded-full object-cover object-top border-2 border-white/30"}),u.jsxs("div",{className:"flex-1 text-center",children:[u.jsx("h3",{className:"font-semibold text-white",children:D}),u.jsx("p",{className:"text-sm text-white/80",children:K})]})]}),u.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto p-4 space-y-3 bg-muted/30",children:[o.map((L,F)=>u.jsx("div",{className:`flex ${L.role==="user"?"justify-end":"justify-start"}`,children:u.jsx("div",{className:`max-w-[80%] p-3 rounded-2xl text-sm whitespace-pre-wrap ${L.role==="user"?"bg-primary text-primary-foreground rounded-br-md":"bg-background border border-border rounded-bl-md shadow-sm"}`,children:L.content})},F)),c&&u.jsx("div",{className:"flex justify-start",children:u.jsx("div",{className:"bg-background border border-border rounded-2xl rounded-bl-md p-3 shadow-sm",children:u.jsx(Oy,{className:"w-5 h-5 animate-spin text-muted-foreground"})})}),v&&!c&&u.jsxs("div",{className:"flex justify-start gap-2",children:[u.jsx(Ne,{onClick:()=>k(!0),size:"sm",className:"bg-rose-500 hover:bg-rose-600 text-white",children:t("sophia.yes")}),u.jsx(Ne,{onClick:()=>k(!1),size:"sm",variant:"outline",className:"border-rose-300 text-rose-600 hover:bg-rose-50",children:t("sophia.no")})]}),u.jsx("div",{ref:y})]}),u.jsxs("div",{className:"p-3 border-t border-border bg-background flex gap-2 flex-shrink-0",children:[u.jsx(zo,{value:a,onChange:L=>l(L.target.value),onKeyPress:I,placeholder:$,className:"flex-1",disabled:c}),u.jsx(Ne,{onClick:S,disabled:!a.trim()||c,size:"icon",className:"bg-rose-500 hover:bg-rose-600",children:u.jsx(Ku,{className:"w-4 h-4"})})]})]})]})},eP=({children:e})=>{const t=Yn(),[r,n]=w.useState(!0),[s,o]=w.useState(e);return w.useEffect(()=>{n(!1);const i=setTimeout(()=>{o(e),n(!0)},150);return()=>clearTimeout(i)},[t.pathname]),w.useEffect(()=>{n(!0)},[]),u.jsx("div",{className:`transition-all duration-300 ease-in-out ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-2"}`,children:s})},Bc="cookieConsent",tP=()=>{const{t:e}=Qe(),[t,r]=w.useState(!1);w.useEffect(()=>{if(!localStorage.getItem(Bc)){const i=setTimeout(()=>r(!0),1500);return()=>clearTimeout(i)}},[]);const n=()=>{localStorage.setItem(Bc,"accepted"),r(!1)},s=()=>{localStorage.setItem(Bc,"declined"),r(!1)};return t?u.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-[60] animate-fade-in",children:u.jsx("div",{className:"bg-card border-t border-border shadow-elegant mx-auto max-w-4xl sm:mx-4 sm:mb-4 sm:rounded-xl p-4 sm:p-6",children:u.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[u.jsx(E_,{className:"h-6 w-6 text-primary flex-shrink-0 hidden sm:block"}),u.jsx("p",{className:"text-sm text-muted-foreground flex-1 leading-relaxed",children:e("cookie.message")}),u.jsxs("div",{className:"flex gap-3 flex-shrink-0 w-full sm:w-auto",children:[u.jsx(Ne,{variant:"outline",size:"sm",onClick:s,className:"flex-1 sm:flex-initial",children:e("cookie.decline")}),u.jsx(Ne,{size:"sm",onClick:n,className:"flex-1 sm:flex-initial",children:e("cookie.accept")})]})]})})}):null},rP=Pi("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{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",hero:"hero-gradient text-primary-foreground shadow-elegant hover:shadow-lg hover:scale-105 border border-primary/20",professional:"bg-navy-primary text-primary-foreground hover:bg-navy-secondary shadow-card hover:shadow-elegant",elegant:"bg-beige-light text-foreground border border-beige-warm hover:bg-beige-warm hover:shadow-card"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Le=w.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?ny:"button";return u.jsx(i,{className:pe(rP({variant:t,size:r,className:e})),ref:o,...s})});
vendor: 5,796 bytes, line 331
331Le.displayName="EnhancedButton";const Ee=w.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:pe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Ee.displayName="Card";const Fh=w.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:pe("flex flex-col space-y-1.5 p-6",e),...t}));Fh.displayName="CardHeader";const ow=w.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:pe("text-2xl font-semibold leading-none tracking-tight",e),...t}));ow.displayName="CardTitle";const nP=w.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:pe("text-sm text-muted-foreground",e),...t}));nP.displayName="CardDescription";const _e=w.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:pe("p-6 pt-0",e),...t}));_e.displayName="CardContent";const sP=w.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:pe("flex items-center p-6 pt-0",e),...t}));sP.displayName="CardFooter";const oP=Pi("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function fl({className:e,variant:t,...r}){return u.jsx("div",{className:pe(oP({variant:t}),e),...r})}const iw="/assets/fotis-portrait-Bc768qT7.jpg",iP=1,aP="e81b669c-faee-4ddb-88af-0d10333916ff",lP="5beebf2c-96da-4650-b07b-603e3f314e7b",cP="/__l5e/assets-v1/e81b669c-faee-4ddb-88af-0d10333916ff/aicatalyst-logo.svg",uP="a/v1/5beebf2c-96da-4650-b07b-603e3f314e7b/e81b669c-faee-4ddb-88af-0d10333916ff/aicatalyst-logo.svg",dP="aicatalyst-logo.svg",hP=55980,fP="image/svg+xml",pP="2026-06-09T13:57:28Z",mP={version:iP,asset_id:aP,project_id:lP,url:cP,r2_key:uP,original_filename:dP,size:hP,content_type:fP,created_at:pP};var Wc="focusScope.autoFocusOnMount",Vc="focusScope.autoFocusOnUnmount",ym={bubbles:!1,cancelable:!0},gP="FocusScope",aw=w.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=w.useState(null),c=or(s),d=or(o),h=w.useRef(null),p=et(t,m=>l(m)),f=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(n){let m=function(y){if(f.paused||!a)return;const _=y.target;a.contains(_)?h.current=_:Dr(h.current,{select:!0})},b=function(y){if(f.paused||!a)return;const _=y.relatedTarget;_!==null&&(a.contains(_)||Dr(h.current,{select:!0}))},v=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&Dr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,f.paused]),w.useEffect(()=>{if(a){xm.add(f);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Wc,ym);a.addEventListener(Wc,c),a.dispatchEvent(v),v.defaultPrevented||(vP(_P(lw(a)),{select:!0}),document.activeElement===m&&Dr(a))}return()=>{a.removeEventListener(Wc,c),setTimeout(()=>{const v=new CustomEvent(Vc,ym);a.addEventListener(Vc,d),a.dispatchEvent(v),v.defaultPrevented||Dr(m??document.body,{select:!0}),a.removeEventListener(Vc,d),xm.remove(f)},0)}}},[a,c,d,f]);const x=w.useCallback(m=>{if(!r&&!n||f.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(b&&v){const g=m.currentTarget,[y,_]=yP(g);y&&_?!m.shiftKey&&v===_?(m.preventDefault(),r&&Dr(y,{select:!0})):m.shiftKey&&v===y&&(m.preventDefault(),r&&Dr(_,{select:!0})):v===g&&m.preventDefault()}},[r,n,f.paused]);return u.jsx(ke.div,{tabIndex:-1,...i,ref:p,onKeyDown:x})});aw.displayName=gP;function vP(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Dr(n,{select:t}),document.activeElement!==r)return}function yP(e){const t=lw(e),r=wm(t,e),n=wm(t.reverse(),e);return[r,n]}function lw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function wm(e,t){for(const r of e)if(!wP(r,{upTo:t}))return r}function wP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xP(e){return e instanceof HTMLInputElement&&"select"in e}function Dr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&xP(e)&&t&&e.select()}}var xm=bP();function bP(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=bm(e,t),e.unshift(t)},remove(t){var r;e=bm(e,t),(r=e[0])==null||r.resume()}}}function bm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function _P(e){return e.filter(t=>t.tagName!=="A")}var Hc=0;function SP(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_m()),document.body.insertAdjacentElement("beforeend",e[1]??_m()),Hc++,()=>{Hc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hc--}},[])}function _m(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,904 bytes, lines 331-346
331style.position="fixed",e.style.pointerEvents="none",e}var Ra="right-scroll-bar-position",Aa="width-before-scroll-bar",EP="with-scroll-bars-hidden",kP="--removed-body-scroll-bar-size";function qc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CP(e,t){var r=w.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var TP=typeof window<"u"?w.useLayoutEffect:w.useEffect,Sm=new WeakMap;function jP(e,t){var r=CP(null,function(n){return e.forEach(function(s){return qc(s,n)})});return TP(function(){var n=Sm.get(r);if(n){var s=new Set(n),o=new Set(e),i=r.current;s.forEach(function(a){o.has(a)||qc(a,null)}),o.forEach(function(a){s.has(a)||qc(a,i)})}Sm.set(r,e)},[e]),r}function NP(e){return e}function PP(e,t){t===void 0&&(t=NP);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(o),i=r}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return s}function RP(e){e===void 0&&(e={});var t=PP(null);return t.options=er({async:!0,ssr:!1},e),t}var cw=function(e){var t=e.sideCar,r=uo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return w.createElement(n,er({},r))};cw.isSideCarExport=!0;function AP(e,t){return e.useMedium(t),cw}var uw=RP(),Kc=function(){},Vl=w.forwardRef(function(e,t){var r=w.useRef(null),n=w.useState({onScrollCapture:Kc,onWheelCapture:Kc,onTouchMoveCapture:Kc}),s=n[0],o=n[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,x=e.noIsolation,m=e.inert,b=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,y=e.gapMode,_=uo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,E=jP([r,t]),k=er(er({},_),s);return w.createElement(w.Fragment,null,d&&w.createElement(S,{sideCar:uw,removeScrollBar:c,shards:h,noRelative:f,noIsolation:x,inert:m,setCallbacks:o,allowPinchZoom:!!b,lockRef:r,gapMode:y}),i?w.cloneElement(w.Children.only(a),er(er({},k),{ref:E})):w.createElement(g,er({},k,{className:l,ref:E}),a))});Vl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vl.classNames={fullWidth:Aa,zeroRight:Ra};var OP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OP();return t&&e.setAttribute("nonce",t),e}function LP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $P(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=IP())&&(LP(t,r),$P(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},MP=function(){var e=DP();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},dw=function(){var e=MP(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},FP={left:0,top:0,right:0,gap:0},Gc=function(e){return parseInt(e||"",10)||0},UP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Gc(r),Gc(n),Gc(s)]},zP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FP;var t=UP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},BP=dw(),Ms="data-scroll-locked",WP=function(e,t,r,n){var s=e.left,o=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),` 332 .`.concat(EP,` { 333 overflow: hidden `).concat(n,`; 334 padding-right: `).concat(a,"px ").concat(n,`; 335 } 336 body[`).concat(Ms,`] { 337 overflow: hidden `).concat(n,`; 338 overscroll-behavior: contain; 339 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 340 padding-left: `.concat(s,`px; 341 padding-top: `).concat(o,`px; 342 padding-right: `).concat(i,`px; 343 margin-left:0; 344 margin-top:0; 345 margin-right: `).concat(a,"px ").concat(n,`; 346 `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
346")].filter(Boolean).join(""),` 347 } 348 349 .`).concat(Ra,` { 350 right: `).concat(a,"px ").concat(n,`; 351 } 352 353 .`).concat(Aa,` { 354 margin-right: `).concat(a,"px ").concat(n,`; 355 } 356 357 .`).concat(Ra," .").concat(Ra,` { 358 right: 0 `).concat(n,`; 359 } 360 361 .`).concat(Aa," .").concat(Aa,` { 362 margin-right: 0 `).concat(n,`; 363 } 364 365 body[`).concat(Ms,`] { 366 `).concat(kP,": ").concat(a,`px; 367 } 368`)},Em=function(){var e=parseInt(document.body.getAttribute(Ms)||"0",10);return isFinite(e)?e:0},VP=function(){w.useEffect(function(){return document.body.setAttribute(Ms,(Em()+1).toString()),function(){var e=Em()-1;e<=0?document.body.removeAttribute(Ms):document.body.setAttribute(Ms,e.toString())}},[])},HP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;VP();var o=w.useMemo(function(){return zP(s)},[s]);return w.createElement(BP,{styles:WP(o,!t,s,r?"":"!important")})},vd=!1;if(typeof window<"u")try{var da=Object.defineProperty({},"passive",{get:function(){return vd=!0,!0}});window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{vd=!1}var us=vd?{passive:!1}:!1,qP=function(e){return e.tagName==="TEXTAREA"},hw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!qP(e)&&r[t]==="visible")},KP=function(e){return hw(e,"overflowY")},GP=function(e){return hw(e,"overflowX")},km=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=fw(e,n);if(s){var o=pw(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},QP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},YP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},fw=function(e,t){return e==="v"?KP(t):GP(t)},pw=function(e,t){return e==="v"?QP(t):YP(t)},JP=function(e,t){return e==="h"&&t==="rtl"?-1:1},XP=function(e,t,r,n,s){var o=JP(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,l=t.contains(a),c=!1,d=i>0,h=0,p=0;do{if(!a)break;var f=pw(e,a),x=f[0],m=f[1],b=f[2],v=m-b-o*x;(x||v)&&fw(e,a)&&(h+=v,p+=x);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(p)<1||!s))&&(c=!0),c},ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cm=function(e){return[e.deltaX,e.deltaY]},Tm=function(e){return e&&"current"in e?e.current:e},ZP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e2=function(e){return` 369 .block-interactivity-`.concat(e,` {pointer-events: none;} 370 .allow-interactivity-`).concat(e,` {pointer-events: all;} 371`)},t2=0,ds=[];function r2(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),s=w.useState(t2++)[0],o=w.useState(dw)[0],i=w.useRef(e);w.useEffect(function(){i.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=vT([e.lockRef.current],(e.shards||[]).map(Tm),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=ha(m),g=r.current,y="deltaX"in m?m.deltaX:g[0]-v[0],_="deltaY"in m?m.deltaY:g[1]-v[1],S,E=m.target,k=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in m&&k==="h"&&E.type==="range")return!1;var j=km(k,E);if(!j)return!0;if(j?S=k:(S=k==="v"?"h":"v",j=km(k,E)),!j)return!1;if(!n.current&&"changedTouches"in m&&(y||_)&&(n.current=S),!S)return!0;var A=n.current||S;return XP(A,b,m,A==="h"?y:_,!0)},[]),l=w.useCallback(function(m){var b=m;if(!(!ds.length||ds[ds.length-1]!==o)){var v="deltaY"in b?Cm(b):ha(b),g=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&ZP(S.delta,v)}
vendor: 4,137 bytes, line 371
371)[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var y=(i.current.shards||[]).map(Tm).filter(Boolean).filter(function(S){return S.contains(b.target)}),_=y.length>0?a(b,y[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),c=w.useCallback(function(m,b,v,g){var y={name:m,delta:b,target:v,should:g,shadowParent:n2(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),d=w.useCallback(function(m){r.current=ha(m),n.current=void 0},[]),h=w.useCallback(function(m){c(m.type,Cm(m),m.target,a(m,e.lockRef.current))},[]),p=w.useCallback(function(m){c(m.type,ha(m),m.target,a(m,e.lockRef.current))},[]);w.useEffect(function(){return ds.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,us),document.addEventListener("touchmove",l,us),document.addEventListener("touchstart",d,us),function(){ds=ds.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,us),document.removeEventListener("touchmove",l,us),document.removeEventListener("touchstart",d,us)}},[]);var f=e.removeScrollBar,x=e.inert;return w.createElement(w.Fragment,null,x?w.createElement(o,{styles:e2(s)}):null,f?w.createElement(HP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function n2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const s2=AP(uw,r2);var mw=w.forwardRef(function(e,t){return w.createElement(Vl,er({},e,{ref:t,sideCar:s2}))});mw.classNames=Vl.classNames;var o2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hs=new WeakMap,fa=new WeakMap,pa={},Qc=0,gw=function(e){return e&&(e.host||gw(e.parentNode))},i2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=gw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},a2=function(e,t,r,n){var s=i2(t,Array.isArray(e)?e:[e]);pa[r]||(pa[r]=new WeakMap);var o=pa[r],i=[],a=new Set,l=new Set(s),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};s.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var f=p.getAttribute(n),x=f!==null&&f!=="false",m=(hs.get(p)||0)+1,b=(o.get(p)||0)+1;hs.set(p,m),o.set(p,b),i.push(p),m===1&&x&&fa.set(p,!0),b===1&&p.setAttribute(r,"true"),x||p.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),a.clear(),Qc++,function(){i.forEach(function(h){var p=hs.get(h)-1,f=o.get(h)-1;hs.set(h,p),o.set(h,f),p||(fa.has(h)||h.removeAttribute(n),fa.delete(h)),f||h.removeAttribute(r)}),Qc--,Qc||(hs=new WeakMap,hs=new WeakMap,fa=new WeakMap,pa={})}},l2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=o2(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),a2(n,s,r,"aria-hidden")):function(){return null}},Hl="Dialog",[vw,IR]=ji(Hl),[c2,Kt]=vw(Hl),yw=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=w.useRef(null),l=w.useRef(null),[c,d]=cy({prop:n,defaultProp:s??!1,onChange:o,caller:Hl});return u.jsx(c2,{scope:t,triggerRef:a,contentRef:l,contentId:jc(),titleId:jc(),descriptionId:jc(),open:c,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(h=>!h),[d]),modal:i,children:r})};yw.displayName=Hl;var ww="DialogTrigger",u2=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Kt(ww,r),o=et(t,s.triggerRef);return u.jsx(ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Bh(s.open),...n,ref:o,onClick:fe(e.onClick,s.onOpenToggle)})});u2.displayName=ww;var Uh="DialogPortal",[d2,xw]=vw(Uh,{forceMount:void 0}),bw=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=Kt(Uh,t);return u.jsx(d2,{scope:t,forceMount:r,children:w.Children.map(n,i=>u.jsx(oo,{present:r||o.open,children:u.jsx(fh,{asChild:!0,container:s,children:i})}))})};bw.displayName=Uh;var pl="DialogOverlay",_w=w.forwardRef((e,t)=>
vendor: 4,886 bytes, lines 371-375
371{const r=xw(pl,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Kt(pl,e.__scopeDialog);return o.modal?u.jsx(oo,{present:n||o.open,children:u.jsx(f2,{...s,ref:t})}):null});_w.displayName=pl;var h2=ai("DialogOverlay.RemoveScroll"),f2=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Kt(pl,r);return u.jsx(mw,{as:h2,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(ke.div,{"data-state":Bh(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Hn="DialogContent",Sw=w.forwardRef((e,t)=>{const r=xw(Hn,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Kt(Hn,e.__scopeDialog);return u.jsx(oo,{present:n||o.open,children:o.modal?u.jsx(p2,{...s,ref:t}):u.jsx(m2,{...s,ref:t})})});Sw.displayName=Hn;var p2=w.forwardRef((e,t)=>{const r=Kt(Hn,e.__scopeDialog),n=w.useRef(null),s=et(t,r.contentRef,n);return w.useEffect(()=>{const o=n.current;if(o)return l2(o)},[]),u.jsx(Ew,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,o=>o.preventDefault())})}),m2=w.forwardRef((e,t)=>{const r=Kt(Hn,e.__scopeDialog),n=w.useRef(!1),s=w.useRef(!1);return u.jsx(Ew,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Ew=w.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=Kt(Hn,r),l=w.useRef(null),c=et(t,l);return SP(),u.jsxs(u.Fragment,{children:[u.jsx(aw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(Rl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Bh(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(g2,{titleId:a.titleId}),u.jsx(y2,{contentRef:l,descriptionId:a.descriptionId})]})]})}),zh="DialogTitle",kw=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Kt(zh,r);return u.jsx(ke.h2,{id:s.titleId,...n,ref:t})});kw.displayName=zh;var Cw="DialogDescription",Tw=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Kt(Cw,r);return u.jsx(ke.p,{id:s.descriptionId,...n,ref:t})});Tw.displayName=Cw;var jw="DialogClose",Nw=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Kt(jw,r);return u.jsx(ke.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>s.onOpenChange(!1))})});Nw.displayName=jw;function Bh(e){return e?"open":"closed"}var Pw="DialogTitleWarning",[LR,Rw]=C1(Pw,{contentName:Hn,titleName:zh,docsSlug:"dialog"}),g2=({titleId:e})=>{const t=Rw(Pw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 372 373If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 374 375For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},v2="DialogDescriptionWarning",y2=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rw(v2).contentName}}.`;return w.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},w2=yw,x2=bw,Aw=_w,Ow=Sw,Iw=kw,Lw=Tw,b2=Nw;const Wh=w2,_2=x2,$w=w.forwardRef(({className:e,...t},r)=>u.jsx(Aw,{ref:r,className:pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));$w.displayName=Aw.displayName;const ql=w.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(_2,{children:[u.jsx($w,{}),u.jsxs(Ow,{ref:n,className:pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
375nded-lg",e),...r,children:[t,u.jsxs(b2,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(Ri,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ql.displayName=Ow.displayName;const Vh=({className:e,...t})=>u.jsx("div",{className:pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Vh.displayName="DialogHeader";const Hh=w.forwardRef(({className:e,...t},r)=>u.jsx(Iw,{ref:r,className:pe("text-lg font-semibold leading-none tracking-tight",e),...t}));Hh.displayName=Iw.displayName;const S2=w.forwardRef(({className:e,...t},r)=>u.jsx(Lw,{ref:r,className:pe("text-sm text-muted-foreground",e),...t}));S2.displayName=Lw.displayName;const jm="welcomeVideoShown",E2=()=>{const{t:e}=Qe(),[t,r]=w.useState(!1);w.useEffect(()=>{if(!sessionStorage.getItem(jm)){const o=setTimeout(()=>{r(!0),sessionStorage.setItem(jm,"true")},500);return()=>clearTimeout(o)}},[]);const n=()=>{r(!1)};return u.jsx(Wh,{open:t,onOpenChange:r,children:u.jsxs(ql,{className:"sm:max-w-[90vw] md:max-w-[600px] lg:max-w-[700px] p-0 gap-0 overflow-hidden",children:[u.jsx(Vh,{className:"p-4 pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Hh,{className:"text-lg font-display text-primary",children:e("home.video.subtitle")}),u.jsx(Ne,{variant:"ghost",size:"icon",onClick:n,className:"h-8 w-8 rounded-full",children:u.jsx(Ri,{className:"h-4 w-4"})})]})}),u.jsx("div",{className:"px-4 pb-4",children:u.jsx("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden",children:u.jsx("iframe",{src:"https://www.youtube.com/embed/mcIGmZIoUKQ?rel=0&modestbranding=1&cc_load_policy=1",title:"Welcome Video",className:"absolute inset-0 w-full h-full",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})]})})},k2=()=>{const{t:e}=Qe();return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(E2,{}),u.jsxs("section",{className:"py-20 lg:py-32 hero-gradient text-primary-foreground relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-black/20"}),u.jsx("div",{className:"container mx-auto px-4 relative z-10",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{className:"space-y-8 animate-fade-in",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(fl,{className:"bg-white/20 text-white hover:bg-white/30 border-white/30",children:[u.jsx(Uo,{className:"mr-2 h-4 w-4"}),"Microsoft Academic Organization Recognition"]}),u.jsx("h1",{className:"text-4xl lg:text-6xl font-display font-bold leading-tight",children:e("home.hero.name")}),u.jsx("h2",{className:"text-2xl lg:text-3xl text-primary-foreground/90 font-light",children:e("home.hero.title")})]}),u.jsx("p",{className:"text-lg lg:text-xl text-primary-foreground/80 leading-relaxed max-w-2xl",children:e("home.hero.intro")}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[u.jsx(Le,{variant:"secondary",size:"xl",asChild:!0,className:"bg-white text-primary hover:bg-white/90",children:u.jsxs(ln,{to:"/projects",children:[e("home.hero.cta"),u.jsx(Na,{className:"ml-2 h-5 w-5"})]})}),u.jsxs(Le,{variant:"secondary",size:"xl",className:"bg-white/10 backdrop-blur-sm text-white border border-white/50 hover:bg-white/20 hover:border-white",onClick:()=>window.open("https://www.filologos4u.gr/microsoft-recognition/","_blank"),children:[u.jsx(Uo,{className:"mr-2 h-5 w-5"}),e("home.recognition.title")]})]}),u.jsx("div",{className:"flex",children:u.jsxs(Le,{variant:"secondary",size:"xl",className:"bg-white text-primary hover:bg-white/90",onClick:()=>window.open("https://booking.setmore.com/scheduleappointment/80413ebc-1547-4ade-9650-9b48d0b71fd9?lang=Greek","_blank"),children:[u.jsx(vh,{className:"mr-2 h-5 w-5"}),e("contact.book")]})})]}),u.jsxs("div",{className:"animate-slide-in",children:[u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:iw,alt:"Fotis Pantopoulos",className:"w-full max-w-lg mx-auto rounded-2xl shadow-elegant"}),u.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-t from-primary/30 to-transparent"})]}),u.jsx("div",{className:"mt-4 max-w-lg mx-auto",children:u.jsx("div",{className:"bg-blue-600 text-white px-4 py-3 rounded-lg text-center text-sm font-medium shadow-lg",children:e("home.sophiaBanner")})})]})]})})]}),u.jsx("section",{className:"py-20 subtle-gradient",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"max-w-2xl mx-auto animate-fade-in",children:u.jsx(Ee,{className:"shadow-elegant flex items-center justify-center rounded-xl overflow-hidden transition-all duration-300 hover:scale-[1.02] hover:shadow-2xl cursor-pointer",children:u.jsxs(_e,{className:"p-8 lg:p-12 flex flex-col items-center justify-center",children:[u.jsxs("div",{className:"flex items-center justify-center mb-6",children:[u.jsx(Uo,{className:"h-12 w-12 text-primary mr-4"}),u.jsx("h3",{className:"text-2xl lg:text-3xl font-display font-bold text-primary",children:e("home.recognition.title")})]}),u.jsx("p",{className:"text-lg text-muted-foreground mb-8 text-center",children:e("home.recognition.subtitle")}),u.jsxs(Le,{variant:"professional",size:"lg",onClick:()=>window.open("https://www.filologos4u.gr/microsoft-recognition/","_blank"),children:[e("home.recognition.viewDetails"),u.jsx(Na,{className:"ml-2 h-4 w-4"})]})]})})})})}),u.jsx("section",{className:"py-16 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("a",{href:"https://www.aicatalyst.gr/",target:"_blank",rel:"noopener noreferrer",className:"block max-w-5xl mx-auto group",children:u.jsx(Ee,{className:"hero-gradient text-primary-foreground border-white/20 shadow-elegant transition-smooth hover:shadow-2xl hover:scale-[1.02] cursor-pointer overflow-hidden",children:u.jsx(_e,{className:"p-8 lg:p-12",children:u.jsxs("div",{className:"flex items-start gap-6",children:[u.jsx("div",{className:"hidden sm:flex bg-white/15 rounded-2xl p-4 shrink-0 items-center justify-center",children:u.jsx("img",{src:mP.url,alt:"AI Catalyst",className:"h-16 w-auto"})}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-2xl lg:text-4xl font-display font-bold leading-tight",children:e("home.aicatalyst.title")}),u.jsx("p",{className:"text-base lg:text-lg text-primary-foreground
375/85 leading-relaxed",children:e("home.aicatalyst.text")}),u.jsxs("div",{className:"inline-flex items-center text-sm font-medium text-white/90 group-hover:text-white transition-smooth",children:["aicatalyst.gr",u.jsx(Na,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})})})})})}),u.jsx("section",{className:"py-20 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[{icon:C_,title:e("home.overview.global.title"),description:e("home.overview.global.desc"),link:"/biography"},{icon:qu,title:e("home.overview.stem.title"),description:e("home.overview.stem.desc"),link:"/projects"},{icon:L_,title:e("home.overview.entrepreneur.title"),description:e("home.overview.entrepreneur.desc"),link:"https://fpantopoulos.lovable.app/projects"}].map((t,r)=>{const n=t.icon;return u.jsx(Ee,{className:"shadow-card hover:shadow-elegant transition-smooth transform hover:scale-105 animate-fade-in group cursor-pointer",style:{animationDelay:`${r*.2}s`},children:t.link.startsWith("http")?u.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",children:u.jsxs(_e,{className:"p-8 text-center",children:[u.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-6 group-hover:bg-primary/20 transition-smooth",children:u.jsx(n,{className:"h-8 w-8 text-primary"})}),u.jsx("h3",{className:"text-xl font-display font-semibold text-primary mb-4",children:t.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]})}):u.jsx(ln,{to:t.link,children:u.jsxs(_e,{className:"p-8 text-center",children:[u.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-6 group-hover:bg-primary/20 transition-smooth",children:u.jsx(n,{className:"h-8 w-8 text-primary"})}),u.jsx("h3",{className:"text-xl font-display font-semibold text-primary mb-4",children:t.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]})})},r)})})})})]})},C2=()=>{const{language:e}=Qe(),t=e==="gr"?[{initials:"Î.Î.",name:"Î.Î.",role:"ÎκÏαιδεÏ
ÏικÏÏ ÎεÏ
ÏεÏοβάθμιαÏ",quote:"Τα ÏεμινάÏια ÏοÏ
κ. ΠανÏÏÏοÏ
λοÏ
άλλαξαν Ïον ÏÏÏÏο ÏοÏ
ανÏιμεÏÏÏÎ¯Î¶Ï Ïη διδαÏκαλία. Î ÏακÏικÎÏ Î¼Îθοδοι ÏοÏ
εÏαÏμÏζονÏαι αμÎÏÏÏ ÏÏην Ïάξη."},{initials:"Î.Σ.",name:"Î.Σ.",role:"ÎÏιÏειÏημαÏίαÏ, ÎδÏÏ
ÏÎ®Ï Startup",quote:"Î ÏÏ
μβοÏ
λεÏ
Ïική ÏοÏ
ΦÏÏη ÏÏον ÏομÎα ÏÎ·Ï ÎºÎ±Î¹Î½Î¿ÏÎ¿Î¼Î¯Î±Ï Î¼Î±Ï Î²Î¿Î®Î¸Î·Ïε να αναδιαÏθÏÏÏοÏ
με Ïη ÏÏÏαÏηγική Î¼Î±Ï Î¼Îµ ενÏÏ
ÏÏÏιακά αÏοÏελÎÏμαÏα."},{initials:"Î.Î .",name:"Î.Î .",role:"ΦοιÏήÏÏια STEM",quote:"Πμεθοδολογία Design Thinking ÏοÏ
Î¼Î±Ï Î´Î¯Î´Î±Î¾Îµ ο κ. ΠανÏÏÏοÏ
Î»Î¿Ï Î®Ïαν μια αÏοκάλÏ
Ïη. ΠλÎον ÏκÎÏÏομαι ενÏελÏÏ Î´Î¹Î±ÏοÏεÏικά."},{initials:"Î.Î.",name:"Î.Î.",role:"ÎιεÏ
θÏ
νÏÎ®Ï Î£ÏολείοÏ
",quote:"Î ÏÏ
νεÏγαÏία Î¼Î±Ï Î®Ïαν καÏαλÏ
Ïική για Ïην εκÏαιδεÏ
Ïική καινοÏομία ÏÏο ÏÏολείο μαÏ. ÎÎ½Î±Ï ÏÏαγμαÏικÏÏ ÎµÏαγγελμαÏίαÏ."}]:[{initials:"A.K.",name:"A.K.",role:"Secondary Education Teacher",quote:"Mr. Pantopoulos' seminars transformed my approach to teaching. Practical methods that can be immediately applied in the classroom."},{initials:"M.S.",name:"M.S.",role:"Entrepreneur, Startup Founder",quote:"Fotis' innovation consulting helped us restructure our strategy with impressive results. His cross-cultural perspective is invaluable."},{initials:"E.P.",name:"E.P.",role:"STEM Student",quote:"The Design Thinking methodology taught by Mr. Pantopoulos was a revelation. I now think in a completely different way."},{initials:"D.L.",name:"D.L.",role:"School Principal",quote:"Our collaboration was catalytic for educational innovation in our school. A true professional with a global vision."}];return u.jsx("section",{className:"py-16 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsx("h2",{className:"text-3xl font-display font-bold text-primary text-center mb-3",children:e==="gr"?"Τι λÎνε οι ÏÏ
νεÏγάÏεÏâ¦":"What people sayâ¦"}),u.jsx("p",{className:"text-muted-foreground text-center mb-10",children:e==="gr"?"ÎμÏειÏÎ¯ÎµÏ Î±ÏÏ ÎµÎºÏαιδεÏ
ÏικοÏÏ, εÏιÏειÏημαÏÎ¯ÎµÏ ÎºÎ±Î¹ ÏοιÏηÏÎÏ":"Experiences from educators, entrepreneurs, and students"}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:t.map((r,n)=>u.jsx(Ee,{className:"shadow-card hover:shadow-elegant transition-smooth animate-fade-in",style:{animationDelay:`${n*.15}s`},children:u.jsxs(_e,{className:"p-6",children:[u.jsx(I_,{className:"h-5 w-5 text-primary/30 mb-3"}),u.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-5 italic text-sm",children:['"',r.quote,'"']}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-10 h-10 rounded-full bg-primary flex items-center justify-center text-primary-foreground text-sm font-semibold",children:r.initials.charAt(0)}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-semibold text-foreground",children:r.name}),u.jsx("p",{className:"text-xs text-muted-foreground",children:r.role})]})]})]})}
375,n))})]})})})},Nm=e=>e.split(/(\*\*.*?\*\*)/g).map((r,n)=>r.startsWith("**")&&r.endsWith("**")?u.jsx("span",{className:"font-semibold text-foreground",children:r.slice(2,-2)},n):r),T2=({raw:e})=>{const t=e.split(` 376 377`).filter(Boolean);return u.jsx("div",{className:"text-muted-foreground leading-relaxed",children:t.map((r,n)=>{if(r.startsWith("- ")){const s=r.slice(2),o=s.indexOf(": "),i=o!==-1?s.slice(0,o+1):s,a=o!==-1?s.slice(o+2):"";return u.jsx("ul",{className:"list-disc pl-5 space-y-3 my-4",children:u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold text-foreground",children:i})," ",Nm(a)]})},n)}return u.jsx("p",{className:"mb-4",children:Nm(r)},n)})})},j2=()=>{const{t:e}=Qe();return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx("section",{className:"py-20 subtle-gradient",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold text-primary mb-6",children:e("bio.title")}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:e("bio.intro")})]}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[u.jsx("div",{className:"animate-slide-in",children:u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:iw,alt:"Fotis Pantopoulos",className:"w-full rounded-2xl shadow-elegant"}),u.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-t from-primary/20 to-transparent"})]})}),u.jsx("div",{className:"space-y-8 animate-fade-in",children:u.jsx(Ee,{className:"shadow-card hover:shadow-elegant transition-smooth",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-4",children:e("bio.card.title")}),u.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:e("bio.card.description")}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Le,{variant:"professional",size:"lg",className:"w-full",onClick:()=>window.open("https://drive.google.com/file/d/1LsE04PT1kP09pi9TkM0_8aYmB5_ohqY-/view?usp=drive_link","_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}),e("bio.cv.en")]}),u.jsxs(Le,{variant:"elegant",size:"lg",className:"w-full",onClick:()=>window.open("https://drive.google.com/file/d/1qyDeH8wQi9LDZEw-JrBVZuuoM2aKJ51v/view?usp=drive_link","_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}),e("bio.cv.gr")]}),u.jsxs(Le,{variant:"outline",size:"lg",className:"w-full",onClick:()=>window.open("https://www.linkedin.com/in/fotispantopoulos-investima/","_blank"),children:[u.jsx(yh,{className:"mr-2 h-4 w-4"}),e("bio.linkedin")]})]})]})})})]})]})})}),u.jsx("section",{className:"py-12 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"max-w-4xl mx-auto",children:u.jsx(Ee,{className:"shadow-card animate-fade-in",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-6",children:e("bio.architect.title")}),u.jsx(T2,{raw:e("bio.architect.text")})]})})})})}),u.jsx(C2,{})]})},N2=()=>{const{t:e,language:t}=Qe(),[r,n]=w.useState("All"),s=["All","Education","Teaching","Innovation","Business","Consulting","Security","Strategic Communication","Tourism","STEM","EduTV","AI","IoT","Strategic Foresight"],o=[{title:e("projects.filologos.title"),description:e("projects.filologos.desc"),url:"https://www.filologos4u.gr/",youtubeUrl:"https://www.youtube.com/channel/UC8v2YS9wkxAyV1KLKNt87wA",microsoftUrl:"https://www.filologos4u.gr/microsoft-recognition/",country:"Greece",tags:["Education","Greek Language","History"],featured:!0},{title:e("projects.school.title"),description:e("projects.school.desc"),url:"https://seminars.pantopoulos.gr/",pantopoulosUrl:"https://www.filologos4u.gr/pantopoulos-teaching-project/",academyStoreUrl:"https://payhip.com/fotispantopoulos",country:"Greece",tags:["Education","Teaching","Innovation"]},{title:e("projects.innovatebiz.title"),description:e("projects.innovatebiz.desc"),url:"https://innovatebiz.eu/",institutionUrl:"https://institution.innovatebiz.eu/",country:"Netherlands",tags:["Business","Innovation","Consulting"]},{title:e("projects.security.title"),description:e("projects.security.desc"),url:"https://institution.innovatebiz.eu/security-education/",youtubeUrl:"https://www.youtube.com/@%CE%98%CE%95%CE%9C%CE%91%CE%A4%CE%91%CE%91%CE%A3%CE%A6%CE%91%CE%9B%CE%95%CE%99%CE%91%CE%A3",country:"Greece",tags:["Security","VIP","Safety"]},{title:e("projects.investima.title"),description:e("projects.investima.desc"),url:"https://investima.us/services/",youtubeUrl:"https://www.youtube.com/@investimallc2831",country:"USA",tags:["Business Services","Education","Consulting"]},{title:e("projects.projectx.title"),description:e("projects.projectx.desc"),url:"https://prsolutions.lovable.app/",youtubeUrl:"https://www.youtube.com/@prsolutions-sc",country:"International",tags:["Strategic Communication","Public Image","Public Relations"]},{title:e("projects.projectz.title"),description:e("projects.projectz.desc"),url:"https://learn20gr.lovable.app/",country:"International",tags:["Education","Business","Innovation"]},{title:e("projects.projecty.title"),description:e("projects.projecty.desc"),url:"https://stem20gr.lovable.app/",country:"International",tags:["Education","Business","Innovation"]},{title:e("projects.tourism.title"),description:e("projects.tourism.desc"),url:"https://www.traveldailynews.gr/author/fotis-pantopoylos/",country:"Greece",tags:["Tourism","Travel","TQM"]},{title:e("projects.business.title"),description:e("projects.business.desc"),url:"https://ceoworld.biz/author/fotis-pantopoulos/",country:"International",tags:["Business","STEM","Thought Leadership"]},{title:e("projects.teacherhour.title"),description:e("projects.teacherhour.desc"),descriptionLinkText:e("projects.teacherhour.linkText"),descriptionLinkUrl:"https://digitalstar.gr/webtv/psychagogia/i-ora-tou-daskalou/",url:"https://www.youtube.com/playlist?list=PL7Ity4l79ZC3XgTB2L77uLBo5E4ykbwc9",country:"Greece",tags:["Education","Teaching","EduTV"]},{title:e("projects.investimaAcademy.title"),description:e("projects.investimaAcademy.desc"),url:"https://investima-academy.lovable.app/",country:"Greece",tags:["Education","Teaching","Consulting"]},{title:e("projects.aiMentor.title"),description:e("projects.aiMentor.desc"),url:"https://myskills20.lovable.app/",country:"International",tags:["Education","Business","Consulting"]},{title:e("projects.aiBrand.title"),description:e("projects.aiBrand.desc"),url:"https://mybrand20.lovable.app/",country:"International",tags:["Strategic Communication","Business","Consulting"]}
377,{title:e("projects.iot.title"),description:e("projects.iot.desc"),url:"https://iot20gr.lovable.app/",country:"International",tags:["Innovation","AI","IoT"]},{title:e("projects.strategicForesight.title"),description:e("projects.strategicForesight.desc"),url:"https://foresight20.lovable.app/",country:"International",tags:["Innovation","Consulting","Strategic Foresight"]},{title:e("projects.hydrogen.title"),descriptionNode:u.jsxs(u.Fragment,{children:[e("projects.hydrogen.desc1"),u.jsx("a",{href:"https://www.linkedin.com/in/sofoklis-makridis",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-bold",children:e("projects.hydrogen.professorName")}),e("projects.hydrogen.desc2")]}),url:"https://hydrogen-lab26.lovable.app/",country:"International",tags:["Innovation","Education","Business"]}],i=l=>({Greece:"ð¬ð·",Netherlands:"ð³ð±",USA:"ðºð¸",International:"ð"})[l]||"ð",a=r==="All"?o:o.filter(l=>l.tags.includes(r));return u.jsx("div",{className:"min-h-screen bg-background",children:u.jsx("section",{className:"py-20 subtle-gradient",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold text-primary mb-6",children:e("projects.title")}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:e("projects.subtitle")})]}),u.jsx("div",{className:"mb-12 animate-fade-in",style:{animationDelay:"0.1s"},children:u.jsx("div",{className:"flex flex-wrap gap-3 justify-center max-w-5xl mx-auto",children:s.map(l=>u.jsx("button",{onClick:()=>n(l),className:`px-4 py-2 rounded-full font-medium transition-smooth hover-scale ${r===l?"bg-primary text-primary-foreground shadow-elegant":"bg-card text-foreground border border-border hover:border-primary/50"}`,children:l},l))})}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:a.map((l,c)=>u.jsxs(Ee,{className:`shadow-card hover:shadow-elegant transition-smooth transform hover:scale-105 animate-fade-in ${l.featured?"ring-2 ring-primary/20 lg:col-span-2":""}`,style:{animationDelay:`${c*.1}s`},children:[u.jsxs(Fh,{children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(ow,{className:"text-xl font-display text-primary",children:l.title}),u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("span",{className:"text-2xl",children:i(l.country)}),u.jsx("span",{className:"text-sm text-muted-foreground",children:l.country})]})]}),l.featured&&u.jsxs(fl,{className:"bg-primary/10 text-primary hover:bg-primary/20",children:[u.jsx(Uo,{className:"mr-1 h-3 w-3"}),"Featured"]})]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:l.tags.map((d,h)=>u.jsx(fl,{variant:"secondary",className:"text-xs",children:d},h))})]}),u.jsxs(_e,{className:"space-y-6",children:[u.jsx("div",{className:"text-muted-foreground leading-relaxed",children:l.descriptionNode?l.descriptionNode:l.descriptionLinkText&&l.descriptionLinkUrl?u.jsxs(u.Fragment,{children:[l.description.split(l.descriptionLinkText)[0],u.jsx("a",{href:l.descriptionLinkUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:l.descriptionLinkText}),l.description.split(l.descriptionLinkText)[1]]}):l.description}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs(Le,{variant:"professional",className:"w-full",onClick:()=>window.open(l.url,"_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}),e("btn.viewProject")]}),l.youtubeUrl&&u.jsxs(Le,{variant:"outline",className:"w-full",onClick:()=>window.open(l.youtubeUrl,"_blank"),children:[u.jsx(wh,{className:"mr-2 h-4 w-4"}),e("btn.watchYoutube")]}),l.microsoftUrl&&u.jsxs(Le,{variant:"hero",className:"w-full",onClick:()=>window.open(l.microsoftUrl,"_blank"),children:[u.jsx(Uo,{className:"mr-2 h-4 w-4"}),e("btn.microsoftRecognition")]}),l.pantopoulosUrl&&u.jsxs(Le,{variant:"elegant",className:"w-full",onClick:()=>window.open(l.pantopoulosUrl,"_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}
377),e("btn.pantopoulosProject")]}),l.institutionUrl&&u.jsxs(Le,{variant:"outline",className:"w-full",onClick:()=>window.open(l.institutionUrl,"_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}),e("btn.greekPillar")]}),l.academyStoreUrl&&u.jsxs(Le,{variant:"hero",className:"w-full",onClick:()=>window.open(l.academyStoreUrl,"_blank"),children:[u.jsx(gr,{className:"mr-2 h-4 w-4"}),e("btn.academyStore")]})]})]})]},c))})]})})})},P2=[{id:"1",title:"Modern Greek / Textual markers",titleGr:"ÎÎα Îλληνικά / Îειμενικοί δείκÏεÏ",thumbnail:"/lovable-uploads/bec10366-167d-4f07-96af-4abc18c0c578.png",duration:"21:28",publishedAt:"2021-04-04",url:"https://www.youtube.com/watch?v=hax6IpxDY2Y"},{id:"2",title:'Literature / "Typology" of Exercise C',titleGr:'ÎογοÏεÏνία / "ΤÏ
ÏολÏγιο" ÎÎμαÏÎ¿Ï Î',thumbnail:"/lovable-uploads/bec10366-167d-4f07-96af-4abc18c0c578.png",duration:"21:28",publishedAt:"2021-04-07",url:"https://www.youtube.com/watch?v=Ch1Ln7V0-eo"},{id:"3",title:"Modern Greek / EVALUATION CRITERIA: The incorrect way of creating them and its consequences",titleGr:"ÎÎα Îλληνικά / ÎΡÎΤÎΡÎÎ ÎÎÎÎÎÎÎÎΣÎΣ: ΠλανθαÏμÎÎ½Î¿Ï ÏÏÏÏÎ¿Ï Î´Î·Î¼Î¹Î¿Ï
ÏÎ³Î¯Î±Ï ÏοÏ
Ï ÎºÎ±Î¹ οι ÏÏ
νÎÏειÎÏ ÏοÏ
",thumbnail:"/lovable-uploads/bec10366-167d-4f07-96af-4abc18c0c578.png",duration:"44:18",publishedAt:"2024-01-17",url:"https://www.youtube.com/watch?v=fYpeoGCZjDw"},{id:"4",title:"History / How to write the historical sources in the exam",titleGr:"ÎÏÏοÏία / ΤÏÏÏÎ¿Ï Î³ÏαÏÎ®Ï ÏÏν ιÏÏοÏικÏν ÏηγÏν ÏÏην εξÎÏαÏη",thumbnail:"/lovable-uploads/bec10366-167d-4f07-96af-4abc18c0c578.png",duration:"07:10",publishedAt:"2013-11-20",url:"https://www.youtube.com/watch?v=tlui-CvE7T0"}],R2=()=>{const{language:e}=Qe(),t=P2.map(n=>({...n,title:e==="gr"?n.titleGr:n.title})),r=n=>{window.open(n,"_blank")};return u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"grid grid-cols-2 gap-4",children:t.map(n=>u.jsxs(Ee,{className:"group cursor-pointer hover:shadow-elegant transition-smooth transform hover:scale-105",onClick:()=>r(n.url),children:[u.jsxs("div",{className:"relative aspect-video overflow-hidden rounded-t-lg",children:[u.jsx("img",{src:n.thumbnail,alt:n.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300"}),u.jsx("div",{className:"absolute inset-0 bg-black/20 group-hover:bg-black/10 transition-colors duration-300"}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"w-12 h-12 bg-primary/90 rounded-full flex items-center justify-center group-hover:bg-primary transition-colors duration-300",children:u.jsx($y,{className:"w-5 h-5 text-primary-foreground ml-1",fill:"currentColor"})})}),u.jsxs("div",{className:"absolute bottom-2 right-2 bg-black/70 text-white text-xs px-2 py-1 rounded flex items-center space-x-1",children:[u.jsx(S_,{className:"w-3 h-3"}),u.jsx("span",{children:n.duration})]})]}),u.jsxs(_e,{className:"p-3",children:[u.jsx("h4",{className:"font-medium text-sm leading-tight line-clamp-2 group-hover:text-primary transition-colors",children:n.title}),u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:new Date(n.publishedAt).toLocaleDateString(e==="gr"?"el-GR":"en-US")})]})]},n.id))}),u.jsx("div",{className:"text-center",children:u.jsxs(Ne,{variant:"outline",onClick:()=>window.open("https://youtube.com/channel/UC8v2YS9wkxAyV1KLKNt87wA","_blank"),className:"group",children:[u.jsx(gr,{className:"w-4 h-4 mr-2 group-hover:translate-x-1 transition-transform"}),e==="gr"?"ÎείÏε Îλα Ïα ÎίνÏεο":"View All Videos"]})})]})},A2={ceoworld:[{id:"1",title:"Effective Business Communication in Executive Training",titleGr:"ÎÏοÏελεÏμαÏική ÎÏιÏειÏημαÏική ÎÏικοινÏνία ÏÏην ÎκÏαίδεÏ
Ïη ΣÏελεÏÏν",excerpt:"It is most certain that effective business communication is not limited to verbal interactions, but also includes written and non-verbal communication...",excerptGr:"Îίναι ÏλÎον βÎβαιο ÏÏι η αÏοÏελεÏμαÏική εÏιÏειÏημαÏική εÏικοινÏνία δεν ÏεÏιοÏίζεÏαι ÏÏÎ¹Ï Î»ÎµÎºÏικÎÏ Î±Î»Î»Î·Î»ÎµÏιδÏάÏειÏ, αλλά ÏεÏιλαμβάνει και Ïη γÏαÏÏή και μη λεκÏική εÏικοινÏνία...",publishedAt:"2023-07-09",url:"https://ceoworld.biz/2023/07/09/effective-business-communication-in-executive-training/",source:"CEOWORLD Magazine"},{id:"2",title:"Innovate to Educate: Merging Design Thinking and STEM for Next-Gen Learning",titleGr:"ÎαινοÏομία για Ïην ÎκÏαίδεÏ
Ïη: ΣÏ
νδÏ
αÏμÏÏ ÏοÏ
ΣÏεδιαÏÎ¼Î¿Ï Î£ÎºÎÏÎ·Ï ÎºÎ±Î¹ ÏοÏ
STEM για Ïη ÎάθηÏη ÏÎ·Ï ÎÏÏÎ¼ÎµÎ½Î·Ï ÎενιάÏ",excerpt:"Traditional teaching methods focused solely on mastery of individual academic disciplines are no longer sufficient in the complex, interconnected problems we face...",excerptGr:"Îι ÏαÏαδοÏιακÎÏ Î¼Îθοδοι διδαÏÎºÎ±Î»Î¯Î±Ï ÏοÏ
εÏικενÏÏÏνονÏαι αÏοκλειÏÏικά ÏÏην καÏανÏηÏη εÏιμÎÏοÏ
Ï Î±ÎºÎ±Î´Î·Î¼Î±ÏκÏν κλάδÏν δεν εÏαÏκοÏν ÏλÎον ÏÏα ÏολÏÏλοκα, αλληλÎνδεÏα ÏÏοβλήμαÏα ÏοÏ
ανÏιμεÏÏÏίζοÏ
με...",publishedAt:"2023-09-08",url:"https://ceoworld.biz/2023/09/08/innovate-to-educate-merging-design-thinking-and-stem-for-next-gen-learning/",source:"CEOWORLD Magazine"},{id:"3",title:"Strategies for success: maximizing People Development in learning ecosystems",titleGr:"ΣÏÏαÏηγικÎÏ Î³Î¹Î± Ïην εÏιÏÏ
Ïία: μεγιÏÏοÏοίηÏη ÏÎ·Ï ÎνάÏÏÏ
Î¾Î·Ï ÎνθÏÏÏινοÏ
ÎÏ
Î½Î±Î¼Î¹ÎºÎ¿Ï Ïε οικοÏÏ
ÏÏήμαÏα μάθηÏηÏ",excerpt:"Itâs about creating an environment that encourages development through participatory methods...",excerptGr:"Î ÏÏκειÏαι για Ïη δημιοÏ
Ïγία ενÏÏ ÏεÏιβάλλονÏÎ¿Ï ÏοÏ
ενθαÏÏÏνει Ïην ανάÏÏÏ
ξη μÎÏÏ ÏÏ
μμεÏοÏικÏν μεθÏδÏν...",publishedAt:"2025-05-20",url:"https://ceoworld.biz/2025/05/20
377/strategies-for-success-maximizing-people-development-in-learning-ecosystems/",source:"CEOWORLD Magazine"}],traveldaily:[{id:"1",title:"Promotion of visitable olive mills: the development of olive tourism in Greece",titleGr:"Î ÏοÏθηÏη ÏÏν εÏιÏκÎÏιμÏν ελαιοÏÏιβείÏν: η ανάÏÏÏ
ξη ÏοÏ
ελαιοÏοÏ
ÏιÏÎ¼Î¿Ï ÏÏην Îλλάδα",excerpt:"Olive tourism is a form of cultural tourism based on the appreciation/interest/evaluation and exploration of olive trees, olive groves and olive oil production...",excerptGr:"ΠελαιοÏοÏ
ÏιÏμÏÏ ÎµÎ¯Î½Î±Î¹ μια μοÏÏή ÏολιÏιÏÏÎ¹ÎºÎ¿Ï ÏοÏ
ÏιÏÎ¼Î¿Ï ÏοÏ
βαÏίζεÏαι ÏÏην εκÏίμηÏη/ενδιαÏÎÏον/αξιολÏγηÏη και εξεÏεÏνηÏη ÏÏν ελαιÏδενÏÏÏν, ÏÏν ελαιÏνÏν και ÏÎ·Ï ÏαÏαγÏÎ³Î®Ï ÎµÎ»Î±Î¹Î¿Î»Î¬Î´Î¿Ï
...",publishedAt:"2022-08-22",url:"https://www.traveldailynews.gr/column/arthro/proothisi-ton-episkepsimon-elaiotriveion-i-anaptyxi-toy-elaiotoyrismoy-stin-ellada/",source:"TravelDailyNews.gr"},{id:"2",title:"Exploitation of experiential tourism on (small) Greek islands",titleGr:"ÎξιοÏοίηÏη ÏοÏ
βιÏμαÏÎ¹ÎºÎ¿Ï ÏοÏ
ÏιÏÎ¼Î¿Ï Ïε (μικÏά) ελληνικά νηÏιά",excerpt:"Experiential tourism is a form of tourism that focuses on engaging travelers in local cultural and environmental experiences...",excerptGr:"ΠβιÏμαÏικÏÏ ÏοÏ
ÏιÏμÏÏ ÎµÎ¯Î½Î±Î¹ μια μοÏÏή ÏοÏ
ÏιÏÎ¼Î¿Ï ÏοÏ
εÏÏιάζει ÏÏην εμÏλοκή ÏÏν ÏαξιδιÏÏÏν Ïε ÏοÏικÎÏ ÏολιÏιÏÏικÎÏ ÎºÎ±Î¹ ÏεÏιβαλλονÏικÎÏ ÎµÎ¼ÏειÏίεÏ...",publishedAt:"2023-03-03",url:"https://www.traveldailynews.gr/column/arthro/axiopoiisi-toy-viomatikoy-toyrismoy-se-mikra-ellinika-nisia/",source:"TravelDailyNews.gr"},{id:"3",title:"Boutique Hotels: fashion or style?",titleGr:"Boutique Hotels: μÏδα ή ÏÏÏ
λ;",excerpt:"The services provided in boutique hotels must be personalized and target the particular needs-pleasures of the visitor...",excerptGr:"Îι Ï
ÏηÏεÏÎ¯ÎµÏ ÏοÏ
ÏαÏÎÏονÏαι ÏÏα boutique hotels ÏÏÎÏει να είναι εξαÏομικεÏ
μÎÎ½ÎµÏ ÎºÎ±Î¹ να ÏÏοÏεÏοÏ
ν ÏÎ¹Ï Î¹Î´Î¹Î±Î¯ÏεÏÎµÏ ÎµÎºÎµÎ¯Î½ÎµÏ Î±Î½Î¬Î³ÎºÎµÏ-αÏολαÏÏÎµÎ¹Ï ÏοÏ
εÏιÏκÎÏÏη...",publishedAt:"2013-01-14",url:"https://www.traveldailynews.gr/column/arthro/boutique-hotels-moda-i-styl/",source:"TravelDailyNews.gr"}]},Pm=({source:e,title:t,icon:r,viewAllUrl:n})=>{const{language:s}=Qe(),i=(A2[e]||[]).map(a=>({...a,title:s==="gr"?a.titleGr:a.title,excerpt:s==="gr"?a.excerptGr:a.excerpt}));return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[u.jsx(r,{className:"w-5 h-5 text-primary"}),u.jsx("h3",{className:"font-display font-semibold text-lg text-primary",children:t})]}),u.jsx("div",{className:"space-y-4",children:i.map(a=>u.jsxs(Ee,{className:"group cursor-pointer hover:shadow-card transition-smooth border-l-4 border-l-primary/20 hover:border-l-primary",onClick:()=>window.open(a.url,"_blank"),children:[u.jsx(Fh,{className:"pb-2",children:u.jsx("h4",{className:"font-medium text-sm leading-tight line-clamp-2 group-hover:text-primary transition-colors",children:a.title})}),u.jsxs(_e,{className:"pt-0",children:[u.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3 mb-3",children:a.excerpt}),u.jsxs("div",{className:"flex items-center justify-between text-xs",children:[u.jsxs("div",{className:"flex items-center space-x-1 text-muted-foreground",children:[u.jsx(vh,{className:"w-3 h-3"}),u.jsx("span",{children:new Date(a.publishedAt).toLocaleDateString(s==="gr"?"el-GR":"en-US")})]}),u.jsxs("div",{className:"flex items-center space-x-1 text-primary group-hover:translate-x-1 transition-transform",children:[u.jsx("span",{className:"text-xs font-medium",children:s==="gr"?"ÎιαβάÏÏε":"Read More"}),u.jsx(gr,{className:"w-3 h-3"})]})]})]})]},a.id))}),u.jsx("div",{className:"text-center pt-2",children:u.jsxs(Ne,{variant:"outline",size:"sm",onClick:()=>window.open(n,"_blank"),className:"group w-full",children:[u.jsx(k_,{className:"w-4 h-4 mr-2"}),s==="gr"?"Îλα Ïα ÎÏθÏα":"All Articles",u.jsx(gr,{className:"w-3 h-3 ml-2 group-hover:translate-x-1 transition-transform"})]})})]})},O2=1,I2="8f3b3cf8-44ee-4048-af39-b1f6dd428315",L2="5beebf2c-96da-4650-b07b-603e3f314e7b",$2="/__l5e/assets-v1/8f3b3cf8-44ee-4048-af39-b1f6dd428315/entrepreneurial-lab-front.png",D2="a/v1/5beebf2c-96da-4650-b07b-603e3f314e7b/8f3b3cf8-44ee-4048-af39-b1f6dd428315/entrepreneurial-lab-front.png",M2="entrepreneurial-lab-front.png",F2=46804,U2="image/webp",z2="2026-07-30T09:01:47Z",B2={version:O2,asset_id:I2,project_id:L2,url:$2,r2_key:D2,original_filename:M2,size:F2,content_type:U2,created_at:z2},W2=1,V2="ac74e060-b310-4f22-937d-b77c455d25e2",H2="5beebf2c-96da-4650-b07b-603e3f314e7b",q2="/__l5e/assets-v1/ac74e060-b310-4f22-937d-b77c455d25e2/digital-classroom-lab-front.png",K2="a/v1/5beebf2c-96da-4650-b07b-603e3f314e7b/ac74e060-b310-4f22-937d-b77c455d25e2/digital-classroom-lab-front.png",G2="digital-classroom-lab-front.png",Q2=47262,Y2="image/webp",J2="2026-07-31T21:55:16Z",X2={version:W2,asset_id:V2,project_id:H2,url:q2,r2_key:K2,original_filename:G2,size:Q2,content_type:Y2,created_at:J2},Z2=1,eR="de4f7c9c-ac55-46d3-82c3-1a40485ee9b3",tR="5beebf2c-96da-4650-b07b-603e3f314e7b",rR="/__l5e/assets-v1/de4f7c9c-ac55-46d3-82c3-1a40485ee9b3/entrepreneurial-lab-audio.m4a",nR="a/v1/5beebf2c-96da-4650-b07b-603e3f314e7b/de4f7c9c-ac55-46d3-82c3-1a40485ee9b3/entrepreneurial-lab-audio.m4a",sR="entrepreneurial-lab-audio.m4a",oR=11273276,iR="video/mp4",aR="2026-09-01T12:13:26Z",lR={version:Z2,asset_id:eR,project_id:tR,url:rR,r2_key:nR,original_filename:sR,size:oR,content_type:iR,created_at:aR},cR=1,uR="46381b25-e45c-4a8e-859c-5eb7158811ca",dR="5beebf2c-96da-4650-b07b-603e3f314e7b",hR="/__l5e/assets-v1/46381b25-e45c-4a8e-859c-5eb7158811ca/digital-classroom-lab-audio.m4a",fR="a/v1/5beebf2c-96da-4650-b07b-603e3f314e7b/46381b25-e45c-4a8e-859c-5eb7158811ca/digital-classroom-lab-audio.m4a",pR="digital-classroom-lab-audio.m4a",mR=11278505,gR="video/mp4",vR="2026-09-01T12:13:34Z",yR={version:cR,asset_id:uR,project_id:dR,url:hR,r2_key:fR,original_filename:pR,size:mR,content_type:gR,created_at:vR},Rm=[{id:"entrepreneurial-lab",title:"The Entrepreneurial Lab: Applying STEM Philosophy, Real-World Simulations, and Strategic Foresight to Business Learning",titleGr:"The Entrepreneurial Lab: Applying STEM Philosophy, Real-World Simulations, and Strategic Foresight to Business Learning",languageNote:"Written in English only",languageNoteGr:"ÎÏαμμÎνο μÏνο ÏÏην αγγλική γλÏÏÏα",description:["For decades, business education has prepared students to analyze the pastâyet left them unprepared to build the future. Graduates leave classrooms armed with frameworks and case studies, only to freeze when confronted with the ambiguity, speed, and emotional intensity of real venture creation. The Entrepreneurial Lab closes that gap forever.","In this groundbreaking guide, Fotis Pantopoulos introduces a radical new paradigm for entrepreneurial learning: treat business education not as a lecture hall, but as an experimental laboratory. Drawing on three integrated pillarsâSTEM Philosophy, Real-World Simulations, and Strategic Foresightâthis book shows how to cultivate entrepreneurs who think like scientists, adapt like engineers, and anticipate like strategists."],descriptionGr:["Îια δεκαεÏίεÏ, η εκÏαίδεÏ
Ïη ÏÏÎ¹Ï ÎµÏιÏειÏήÏÎµÎ¹Ï ÎÏει ÏÏοεÏοιμάÏει ÏοÏ
Ï ÏοιÏηÏÎÏ Î½Î± αναλÏοÏ
ν Ïο ÏαÏελθÏν. ΩÏÏÏÏο ÏοÏ
Ï Î¬ÏηÏε αÏÏοεÏοίμαÏÏοÏ
Ï Î½Î± ÏÏίÏοÏ
ν Ïο μÎλλον. Îι αÏÏÏοιÏοι ÏεÏγοÏ
ν αÏÏ ÏÎ¹Ï ÏÎ¬Î¾ÎµÎ¹Ï Î¿ÏλιÏμÎνοι με ÏλαίÏια και μελÎÏÎµÏ ÏεÏιÏÏÏÏεÏν, μÏνο και μÏνο για να βÏεθοÏν Ïε αμηÏανία ÏÏαν ÎÏÏονÏαι ανÏιμÎÏÏÏοι με Ïην αÏάÏεια, Ïην ÏαÏÏÏηÏα και Ïη ÏÏ
ναιÏθημαÏική ÎνÏαÏη ÏÎ·Ï Î´Î·Î¼Î¹Î¿Ï
ÏÎ³Î¯Î±Ï ÏÏαγμαÏικÏν εÏιÏειÏήÏεÏν. Το ÎÏιÏειÏημαÏÎ¹ÎºÏ ÎÏγαÏÏήÏιο κλείνει αÏ
ÏÏ Ïο ÎºÎµÎ½Ï Î³Î¹Î± ÏάνÏα.","Σε αÏ
ÏÏν Ïον ÏÏÏÏοÏοÏÎ¹Î±ÎºÏ Î¿Î´Î·Î³Ï, ο ΦÏÏÎ·Ï Î Î±Î½ÏÏÏοÏ
Î»Î¿Ï ÎµÎ¹Ïάγει Îνα ÏιζοÏÏαÏÏÎ¹ÎºÏ Î½Îο ÏαÏάδειγμα για Ïην εÏιÏειÏημαÏική μάθηÏη: να ανÏιμεÏÏÏίζει Ïην εκÏαίδεÏ
Ïη ÏÏÎ¹Ï ÎµÏιÏειÏήÏÎµÎ¹Ï ÏÏι ÏÏ Î±Î¯Î¸Î¿Ï
Ïα διαλÎξεÏν, αλλά ÏÏ ÏειÏαμαÏÎ¹ÎºÏ ÎµÏγαÏÏήÏιο. ÎαÏιζÏμενο Ïε ÏÏÎµÎ¹Ï Î¿Î»Î¿ÎºÎ»Î·ÏÏμÎνοÏ
Ï ÏÏ
λÏÎ½ÎµÏ (ΦιλοÏοÏία STEM, Î ÏοÏομοιÏÏÎµÎ¹Ï ÏÏαγμαÏÎ¹ÎºÎ¿Ï ÎºÏÏμοÏ
και ΣÏÏαÏηγική Î ÏοοÏÏική) αÏ
ÏÏ Ïο βιβλίο δείÏνει ÏÏÏ Î½Î± δημιοÏ
ÏγήÏεÏε εÏιÏειÏημαÏÎ¯ÎµÏ ÏοÏ
ÏκÎÏÏονÏαι Ïαν εÏιÏÏήμονεÏ, ÏÏοÏαÏμÏζονÏαι Ïαν μηÏανικοί και ÏÏοβλÎÏοÏ
ν Ïαν ÏÏÏαÏηγικοί αναλÏ
ÏÎÏ."],cover:B2.url,audio:lR.url,storeUrl:"https://payhip.com/b/LPaY4"},{id:"digital-classroom-lab",title:"The Digital Classroom Lab: Web 2.0, Augmented Reality, and Experiential Methods for Transformative Education",titleGr:"The Digital Classroom Lab: Web 2.0, Augmented Reality, and Experiential Methods for Transformative Education",languageNote:"Written in English only",languageNoteGr:"ÎÏαμμÎνο μÏνο ÏÏην αγγλική γλÏÏÏα",description:["For decades, the classroom has been shaped by a simple transaction: the teacher speaks, the students listen, and knowledge is assumed to transfer. But the learners of the twenty-first century inhabit a
377world that is networked, visual, interactive, and immersive. They do not merely consume informationâthey create it, share it, and navigate it across multiple dimensions. If education is to remain relevant, it must evolve from a space of transmission into a space of discovery.","The Digital Classroom Lab is a practical, research-grounded guide for educators ready to make that evolution. Drawing on two published empirical studies from the Greek educational context, author Fotis Pantopoulos demonstrates how Web 2.0 platforms, augmented reality, and QR-code gateways can transform even the most theoretical subjects into active, experiential laboratories."],descriptionGr:["Îια δεκαεÏίεÏ, η Ïάξη διαμοÏÏÏνÏÏαν αÏÏ Î¼Î¹Î± αÏλή διαδικαÏία: ο δάÏÎºÎ±Î»Î¿Ï Î¼Î¹Î»Î¬ÎµÎ¹, οι μαθηÏÎÏ Î±ÎºÎ¿Ïν και η γνÏÏη θεÏÏείÏαι ÏÏι μεÏαÏÎÏεÏαι. Îλλά οι μαθηÏÎÏ ÏοÏ
εικοÏÏÎ¿Ï ÏÏÏÏοÏ
αιÏνα καÏοικοÏν Ïε Îναν κÏÏμο δικÏÏ
ÏμÎνο, οÏÏικÏ, διαδÏαÏÏÎ¹ÎºÏ ÎºÎ±Î¹ καθηλÏÏικÏ. Îεν καÏαναλÏνοÏ
ν αÏλÏÏ ÏληÏοÏοÏίεÏ, αλλά ÏÎ¹Ï Î´Î·Î¼Î¹Î¿Ï
ÏγοÏν, ÏÎ¹Ï Î¼Î¿Î¹ÏάζονÏαι και ÏλοηγοÏνÏαι με βάÏη αÏ
ÏÎÏ Ïε ÏολλαÏλÎÏ Î´Î¹Î±ÏÏάÏειÏ. Îάν η εκÏαίδεÏ
Ïη ÏÏÏκειÏαι να ÏαÏαμείνει εÏίκαιÏη, ÏÏÎÏει να εξελιÏθεί αÏÏ Îναν ÏÏÏο μεÏάδοÏÎ·Ï Ïε Îναν ÏÏÏο ανακάλÏ
ÏηÏ.","Το ÎÏγαÏÏήÏιο ΨηÏÎ¹Î±ÎºÎ®Ï Î¤Î¬Î¾Î·Ï ÎµÎ¯Î½Î±Î¹ ÎÎ
377½Î±Ï ÏÏακÏικÏÏ, εÏεÏ
νηÏικά δομημÎÎ½Î¿Ï Î¿Î´Î·Î³ÏÏ Î³Î¹Î± εκÏαιδεÏ
ÏικοÏÏ ÏοÏ
είναι ÎÏοιμοι να ÏÏοÏÏÏήÏοÏ
ν Ïε αÏ
Ïή Ïην εξÎλιξη. ÎαÏιζÏÎ¼ÎµÎ½Î¿Ï Ïε δÏο δημοÏιεÏ
μÎÎ½ÎµÏ ÎµÎ¼ÏειÏικÎÏ Î¼ÎµÎ»ÎÏÎµÏ Î±ÏÏ Ïο ÎµÎ»Î»Î·Î½Î¹ÎºÏ ÎµÎºÏαιδεÏ
ÏÎ¹ÎºÏ ÏλαίÏιο, ο ÏÏ
γγÏαÏÎÎ±Ï Î¦ÏÏÎ·Ï Î Î±Î½ÏÏÏοÏ
Î»Î¿Ï ÎºÎ±ÏαδεικνÏει ÏÏÏ Î¿Î¹ ÏλαÏÏÏÏÎ¼ÎµÏ Web 2.0, η εÏαÏ
ξημÎνη ÏÏαγμαÏικÏÏηÏα και οι ÏÏÎ»ÎµÏ QR-code μÏοÏοÏν να μεÏαÏÏÎÏοÏ
ν ακÏμη και Ïα Ïιο θεÏÏηÏικά μαθήμαÏα Ïε ενεÏγά, βιÏμαÏικά εÏγαÏÏήÏια."],cover:X2.url,audio:yR.url,storeUrl:"https://payhip.com/b/6VGkN"}],wR=()=>{const{language:e}=Qe(),t=e==="gr",[r,n]=w.useState(null);return Rm.length===0?null:u.jsxs("div",{className:"mt-16 max-w-7xl mx-auto animate-fade-in",style:{animationDelay:"0.45s"},children:[u.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-8",children:[u.jsx(qu,{className:"w-6 h-6 text-primary"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-display font-semibold text-primary text-center",children:t?"Τα βιβλία μοÏ
":"My books"})]}),u.jsx("div",{className:"space-y-8",children:Rm.map(s=>{const o=t?s.titleGr:s.title,i=t?s.descriptionGr:s.description;return u.jsx(Ee,{className:"shadow-card overflow-hidden",children:u.jsx(_e,{className:"p-6 md:p-8",children:u.jsxs("div",{className:"grid md:grid-cols-[160px_1fr] gap-6 items-start",children:[u.jsx("div",{className:"w-full max-w-[160px] mx-auto md:mx-0",children:s.cover?u.jsx("button",{type:"button",onClick:()=>n({src:s.cover,alt:`${o} â ${t?"ÎξÏÏÏ
λλο":"Cover"}`}),className:"group block w-full rounded-lg overflow-hidden border border-border bg-muted/40 focu
377s:outline-none focus:ring-2 focus:ring-ring","aria-label":`${t?"ÎξÏÏÏ
λλο":"Cover"} â ${t?"μεγÎθÏ
νÏη":"enlarge"}`,children:u.jsx("img",{src:s.cover,alt:`${o} â ${t?"ÎξÏÏÏ
λλο":"Cover"}`,loading:"lazy",className:"w-full h-auto object-cover transition-transform duration-300 group-hover:scale-105"})}):u.jsx("div",{className:"aspect-[2/3] w-full flex items-center justify-center rounded-lg border border-border bg-muted/40 text-muted-foreground",children:u.jsx(qu,{className:"w-10 h-10"})})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl md:text-2xl font-display font-semibold text-primary leading-snug mb-3",children:o}),u.jsxs(fl,{variant:"secondary",className:"mb-4 inline-flex items-center gap-1",children:[u.jsx(N_,{className:"w-3 h-3"}),t?s.languageNoteGr:s.languageNote]}),s.audio&&u.jsxs("div",{className:"mb-6 rounded-lg border border-border bg-muted/40 p-3",children:[u.jsxs("p",{className:"text-sm font-medium text-primary mb-2 flex items-center gap-1.5",children:[u.jsx($_,{className:"w-4 h-4"}),t?"ÎκοÏ
Ïε μια ÏÏνÏομη ÏαÏοÏ
ÏίαÏη ÏοÏ
βιβλίοÏ
μοÏ
!":"Listen to a quick introduction to my book!"]}),u.jsx("audio",{controls:!0,preload:"none",className:"w-full h-9",children:u.jsx("source",{src:s.audio,type:"audio/mp4"})})]}),u.jsx("div",{className:"space-y-4 mb-6",children:i.map((a,l)=>u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a},l))}),u.jsx(Ne,{asChild:!0,className:"group",children:u.jsxs("a",{href:s.storeUrl,target:"_blank",rel:"noopener noreferrer",children:[t?"ÎÏιÏκεÏθείÏε Ïο ηλεκÏÏÎ¿Î½Î¹ÎºÏ ÎºÎ±ÏάÏÏημα":"Visit the online store",u.jsx(Na,{className:"w-4 h-4 ml-2 transition-transform group-hover:translate-x-1"})]})})]})]})})},s.id)})}),u.jsx(Wh,{open:!!r,onOpenChange:s=>!s&&n(null),children:u.jsx(ql,{className:"max-w-3xl p-2 bg-background",children:r&&u.jsx("img",{src:r.src,alt:r.alt,className:"w-full h-auto rounded-md"})})})]})},xR=()=>{const{language:e}=Qe();return u.jsx("div",{className:"min-h-screen bg-background",children:u.jsx("section",{className:"py-12 subtle-gradient",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold text-primary mb-6",children:e==="gr"?"ÎημοÏιεÏÏειÏ":"Publications"}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:e==="gr"?"ÎοιÏαζÏμαÏÏε γνÏÏÎµÎ¹Ï Î³Î¹Î± Ïην εκÏαίδεÏ
Ïη, Ïην εÏιÏειÏημαÏική καινοÏομία, Ïον ÏοÏ
ÏιÏÎ¼Ï ÎºÎ±Î¹ ÏÎ¹Ï STEM εÏιÏÏήμεÏ, Ïε ÏολλαÏλÎÏ ÏλαÏÏÏÏÎ¼ÎµÏ ÎºÎ±Î¹ γλÏÏÏεÏ:":"Sharing insights on education, business innovation, tourism, and STEM across multiple platforms and languages:"})]}),u.jsxs("div",{className:"grid lg:grid-cols-4 gap-8 max-w-7xl mx-auto",children:[u.jsx("div",{className:"lg:col-span-1 animate-fade-in",style:{animationDelay:"0.1s"},children:u.jsx(Ee,{className:"shadow-card h-fit",children:u.jsx(_e,{className:"p-6",children:u.jsx(Pm,{source:"ceoworld",title:e==="gr"?"ÎÏιÏειÏημαÏικÏÏηÏα":"Business Articles",icon:gp,viewAllUrl:"https://ceoworld.biz/author/fotis-pantopoulos/"})})})}),u.jsx("div",{className:"lg:col-span-2 animate-fade-in",style:{animationDelay:"0.2s"},children:u.jsx(Ee,{className:"shadow-card",children:u.jsxs(_e,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center space-x-2 mb-6",children:[u.jsx($y,{className:"w-6 h-6 text-primary"}),u.jsx("h2",{className:"text-2xl font-display font-semibold text-primary",children:e==="gr"?"ÎκÏαιδεÏ
Ïικά ÎίνÏεο":"Educational Videos"})]}),u.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:e==="gr"?'Τα Ïιο ÏÏÏÏÏαÏα εκÏαιδεÏ
Ïικά βίνÏεο αÏÏ Ïο κανάλι "My name is Teacher" με θÎμαÏα καινοÏÎ¿Î¼Î¯Î±Ï ÏÏην εκÏαίδεÏ
Ïη:':'Latest educational videos from "My name is Teacher" channel featuring innovation in education:'}),u.jsx(R2,{})]})})}),u.jsx("div",{className:"lg:col-span-1 animate-fade-in",style:{animationDelay:"0.3s"},children:u.jsx(Ee,{className:"shadow-card h-fit",children:u.jsx(_e,{className:"p-6",children:u.jsx(Pm,{source:"traveldaily",title:e==="gr"?"ΤοÏ
ÏιÏμÏÏ":"Tourism Articles",icon:P_,viewAllUrl:"https://www.traveldailynews.gr/author/fotis-pantopoylos/"})})})})]}),u.jsxs("div",{className:"mt-16 grid md:grid-cols-2 gap-8 max-w-7xl mx-auto animate-fade-in",style:{animationDelay:"0.4s"},children:[u.jsx(Ee,{className:"shadow-card",children:u.jsxs(_e,{className:"p-8 flex flex-col h-full",children:[u.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[u.jsx(T_,{className:"w-6 h-6 text-primary"}),u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary text-center",children:e==="gr"?"ÎÏιÏÏημονικÎÏ ÎημοÏιεÏÏειÏ":"Scientific Publications"})]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6 text-center flex-grow",children:e==="gr"?"Îι εÏιÏÏημονικÎÏ Î¼Î¿Ï
δημοÏιεÏÏÎµÎ¹Ï ÎµÏικενÏÏÏνονÏαι ÏÏην εκÏαίδεÏ
Ïη και Ïη γλÏÏÏα, μελεÏÏνÏÎ±Ï ÏÏÏ
ÏÎÏ ÏÎ·Ï Î´Î¹Î´Î±ÏκαλίαÏ, ÏÎ·Ï Î¼Î¬Î¸Î·ÏÎ·Ï ÎºÎ±Î¹ ÏÎ·Ï ÎµÏικοινÏÎ½Î¯Î±Ï Î¼ÎÏα αÏÏ Ïο ÏÏίÏμα ÏοÏ
εÏιÏÏÎ·Î¼Î¿Î½Î¹ÎºÎ¿Ï ÎÏγοÏ
μοÏ
«My name is Teacher». ÎÏοÏείÏε να δείÏε ÏÎ»ÎµÏ ÏÎ¹Ï ÏÏεÏικÎÏ Î´Î·Î¼Î¿ÏιεÏÏÎµÎ¹Ï ÏÏον ÏαÏακάÏÏ ÏÏνδεÏμο:":'My scientific publications focus on education and language, exploring aspects of teaching, learning, and communication through the lens of my research project "My name is Teacher". You can view all related publications at the link below:'}),u.jsx("div",{className:"flex justify-center",children:u.jsx(Ne,{asChild:!0,children:u.jsx("a",{href:"https://drive.google.com/drive/folders/1YXDyndD9VQn0YAHz9JN0CcD75TlRGQ-R?usp=drive_link",target:"_blank",rel:"noopener noreferrer",children:e==="gr"?"ÎείÏε ÏÎ¹Ï Î´Î·Î¼Î¿ÏιεÏÏÎµÎ¹Ï Î¼Î¿Ï
εδÏ...":"View my publications here..."})})})]})}),u.jsx(Ee,{className:"shadow-card",children:u.jsxs(_e,{className:"p-8 flex flex-col h-full",children:[u.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[u.jsx(gp,{className:"w-6 h-6 text-primary"}),u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary text-center",children:e==="gr"?"ÎÏικοινÏνία & εκÏÏοÏÏÏηÏη ÎÏιÏÏημονικÏν ÎÏγαÏÏηÏίÏν":"Communication & Representation for Scientific Laboratories"})]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6 text-center flex-grow",children:e==="gr"?"ΠαÏÎÏονÏαι ολοκληÏÏμÎÎ½ÎµÏ Ï
ÏηÏεÏÎ¯ÎµÏ ÎµÏαιÏÎ¹ÎºÎ®Ï ÎµÏικοινÏÎ½Î¯Î±Ï ÎºÎ±Î¹ εκÏÏοÏÏÏηÏÎ·Ï ÎµÏιÏÏημονικÏν εÏγαÏÏηÏίÏν, με ÎμÏαÏη ÏÏον ÏÏÏαÏÎ·Î³Î¹ÎºÏ ÏÏεδιαÏμÏ, Ïην ÏαÏαγÏγή εξειδικεÏ
μÎνοÏ
ÏεÏιεÏ
377ομÎνοÏ
και Ïη διαÏείÏιÏη ÏÏ
νεÏγαÏιÏν. Î¥ÏοÏÏηÏίζεÏαι η ÏÏ
νεÏÎ®Ï ÏαÏοÏ
Ïία και η ÏÏοÏθηÏη Ï
ÏηÏεÏιÏν Ïε ÏÏοÏεÏ
μÎÎ½ÎµÏ Î±Î³Î¿ÏÎÏ.":"Integrated corporate communication and representation services are provided for scientific laboratories, with a focus on strategic planning, specialized content creation, and partnership management. Consistent presence and service promotion in targeted markets are supported."}),u.jsx("div",{className:"flex justify-center",children:u.jsx(Ne,{asChild:!0,children:u.jsx("a",{href:"https://lab-pr.lovable.app/",target:"_blank",rel:"noopener noreferrer",children:e==="gr"?"ÎάθεÏε ÏεÏιÏÏÏÏεÏαâ¦":"Learn moreâ¦"})})})]})})]}),u.jsx(wR,{}),u.jsx("div",{className:"mt-16 text-center animate-fade-in",style:{animationDelay:"0.5s"},children:u.jsx(Ee,{className:"max-w-4xl mx-auto shadow-card",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-4",children:e==="gr"?"ΠολÏ
μεÏÎ¹ÎºÏ Î ÎµÏιεÏÏμενο":"Multimedia Content"}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:e==="gr"?"ÎκÏÏÏ Î±ÏÏ ÏÎ¹Ï Î³ÏαÏÏÎÏ Î´Î·Î¼Î¿ÏιεÏÏειÏ, ο ΦÏÏÎ·Ï Î¼Î¿Î¹ÏάζεÏαι εκÏαιδεÏ
ÏÎ¹ÎºÏ ÏεÏιεÏÏμενο μÎÏÏ Î²Î¹Î½Ïεο-ÏεμιναÏίÏν, webinars και ÏολÏ
μεÏικÏν ÏÏÏÏν. Το YouTube κανάλι ÏοÏ
ÏεÏιλαμβάνει εκÏαιδεÏ
ÏÎ¹ÎºÏ ÏεÏιεÏÏμενο ÏÏα ελληνικά και αγγλικά, εÏÏιάζονÏÎ±Ï Ïε καινοÏÏÎ¼ÎµÏ Î¼ÎµÎ¸Î¿Î´Î¿Î»Î¿Î³Î¯ÎµÏ Î´Î¹Î´Î±ÏÎºÎ±Î»Î¯Î±Ï ÎºÎ±Î¹ ÏÏην εκÏαίδεÏ
Ïη STEM.":"Beyond written publications, Fotis shares educational content through video seminars, webinars, and multimedia resources. His YouTube channel features educational content in both Greek and English, focusing on innovative teaching methodologies and STEM education."})]})})})]})})})},Dw=w.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{className:pe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
377ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));Dw.displayName="Textarea";var bR="Label",Mw=w.forwardRef((e,t)=>u.jsx(ke.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Mw.displayName=bR;var Fw=Mw;const _R=Pi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),No=w.forwardRef(({className:e,...t},r)=>u.jsx(Fw,{ref:r,className:pe(_R(),e),...t}));No.displayName=Fw.displayName;const SR=({isOpen:e,onClose:t})=>{const{t:r}=Qe(),[n,s]=w.useState(!1),[o,i]=w.useState(!1),[a,l]=w.useState({name:"",email:"",message:"",phone:""}),[c,d]=w.useState({}),h=()=>{const x={};return a.name.trim()||(x.name=r("contactForm.errors.nameRequired")),a.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a.email)||(x.email=r("contactForm.errors.emailInvalid")):x.email=r("contactForm.errors.emailRequired"),a.message.trim()||(x.message=r("contactForm.errors.messageRequired")),d(x),Object.keys(x).length===0},p=async x=>{if(x.preventDefault(),!!h()){s(!0);try{const{data:m,error:b}=await gd.functions.invoke("sophia-contact",{body:{name:a.name.trim(),email:a.email.trim(),message:a.message.trim(),phone:a.phone.trim()||void 0}});if(b)throw b;i(!0),l({name:"",email:"",message:"",phone:""})}catch(m){console.error("Error sending contact form:",m),MS.error(r("contactForm.error"))}finally{s(!1)}}},f=()=>{i(!1),l({name:"",email:"",message:"",phone:""}),d({}),t()};return u.jsx(Wh,{open:e,onOpenChange:f,children:u.jsxs(ql,{className:"sm:max-w-[500px] max-h-[90vh] overflow-y-auto",children:[u.jsx(Vh,{children:u.jsxs(Hh,{className:"text-2xl font-display text-primary flex items-center gap-2",children:[u.jsx(Ku,{className:"h-5 w-5"}),r("contactForm.title")]})}),o?u.jsxs("div",{className:"py-8 text-center space-y-4",children:[u.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center",children:u.jsx(__,{className:"h-8 w-8 text-green-600"})}),u.jsx("h3",{className:"text-xl font-semibold text-primary",children:r("contactForm.success.title")}),u.jsx("p",{className:"text-muted-foreground",children:r("contactForm.success.message")}),u.jsx(Ne,{onClick:f,className:"mt-4",children:r("contactForm.close")})]}):u.jsxs("form",{onSubmit:p,className:"space-y-5 py-4",children:[u.jsx("p",{className:"text-muted-foreground text-sm",children:r("contactForm.description")}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs(No,{htmlFor:"name",className:"text-sm font-medium",children:[r("contactForm.name")," ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(zo,{id:"name",value:a.name,onChange:x=>l({...a,name:x.target.value}),placeholder:r("contactForm.namePlaceholder"),className:c.name?"border-destructive":"",disabled:n}),c.name&&u.jsx("p",{className:"text-sm text-destructive",children:c.name})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs(No,{htmlFor:"email",className:"text-sm font-medium",children:[r("contactForm.email")," ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(zo,{id:"email",type:"email",value:a.email,onChange:x=>l({...a,email:x.target.value}),placeholder:r("contactForm.emailPlaceholder"),className:c.email?"border-destructive":"",disabled:n}),c.email&&u.jsx("p",{className:"text-sm text-destructive",children:c.email})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs(No,{htmlFor:"phone",className:"text-sm font-medium",children:[r("contactForm.phone")," ",u.jsxs("span",{className:"text-muted-foreground text-xs",children:["(",r("contactForm.optional"),")"]})]}),u.jsx(zo,{id:"phone",type:"tel",value:a.phone,onChange:x=>l({...a,phone:x.target.value}),placeholder:r("contactForm.phonePlaceholder"),disabled:n})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs(No,{htmlFor:"message",className:"text-sm font-medium",children:[r("contactForm.message")," ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(Dw,{id:"message",value:a.message,onChange:x=>l({...a,message:x.target.value}),placeholder:r("contactForm.messagePlaceholder"),className:`min-h-[120px] ${c.message?"border-destructive":""}`,disabled:n}),c.message&&u.jsx("p",{className:"text-sm text-destructive",children:c.message})]}),u.jsxs("div",{className:"flex gap-3 pt-2",children:[u.jsx(Ne,{type:"button",variant:"outline",onClick:f,disabled:n,className:"flex-1",children:r("contactForm.cancel")}),u.jsx(Ne,{type:"submit",disabled:n,className:"flex-1",children:n?u.jsxs(u.Fragment,{children:[u.jsx(Oy,{className:"mr-2 h-4 w-4 animate-spin"}),r("contactForm.sending")]}):u.jsxs(u.Fragment,{children:[u.jsx(Ku,{className:"mr-2 h-4 w-4"}),r("contactForm.send")]})})]})]})]})})},ER=()=>{const{t:e}=Qe(),[t,r]=w.useState(!1),n=[{icon:Ly,label:e("contact.phone"),value:"+30 693 771 4026",href:"tel:+306937714026"},{icon:Iy,label:e("contact.email"),value:"[email protected]",href:"mailto:[email protected]"},{icon:O_,label:e("contact.form"),value:e("contact.form"),isForm:!0}],s=[{icon:yh,name:"LinkedIn",url:"https://www.linkedin.com/in/fotispantopoulos-investima/",color:"hover:text-blue-600"},{icon:Ay,name:"Facebook",url:"https://www.facebook.com/fotis.pantopoulos",color:"hover:text-blue-700"},{icon:wh,name:"YouTube",url:"https://www.youtube.com/channel/UC8v2YS9wkxAyV1KLKNt87wA",color:"hover:text-red-600"}];return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx("section",{className:"py-20 subtle-gradient",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold text-primary mb-6",children:e("contact.title")}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:e("contact.subtitle")})]}),u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[u.jsx("div",{className:"space-y-8 animate-slide-in",children:u.jsx(Ee,{className:"shadow-card hover:shadow-elegant transition-smooth",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-6",children:e("contact.getInTouch")}),u.jsx("div",{className:"space-y-6",children:n.map((o,i)=>{const a=o.icon,l="isForm"in o&&o.isForm;return u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:u.jsx(a,{className:"h-5 w-5 text-primary"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:o.label}),l?u.jsx("button",{onClick:()=>r(!0),className:"text-primary font-medium hover:text-navy-secondary transition-fast cursor-pointer hover:underline",children:o.value}):u.jsx("a",{href:o.href,className:"text-primary font-medium hover:text-navy-secondary transition-fast",children:o.value})]})]},i)})}),u.jsx("div",{className:"mt-8 pt-6 border-t border-border",children:u.jsxs(Le,{variant:"hero",size:"lg",className:"w-full",onClick:()=>window.open("https://booking.setmore.com/scheduleappointment/80413ebc-1547-4ade-9650-9b48d0b71fd9?lang=Greek","_blank"),children:[u.jsx(vh,{className:"mr-2 h-5 w-5"}),e("contact.book")]})})]})})}),u.jsxs("div",{className:"space-y-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[u.jsx(Ee,{className:"shadow-card hover:shadow-elegant transition-smooth",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-6",children:e("contact.social")}),u.jsx("div",{className:"grid grid-cols-1 gap-4",children:s.map((o,i)=>{const a=o.icon;return u.jsxs(Le,{variant:"outline",size:"lg",className:"justify-start",onClick:()=>window.open(o.url,"_blank"),children:[u.jsx(a,{className:`mr-3 h-5 w-5 ${o.color}`}),o.name]},i)})})]})}),u.jsx(Ee,{className:"shadow-card",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-xl font-display font-semibold text-primary mb-4",children:e("contact.services.title")}),u.jsxs("div",{className:"space-y-3 text-muted-foreground",children:[u.jsxs("p",{className:"text-sm",children:["⢠",e("contact.services.consulting")]}),u.jsxs("p",{className:"text-sm",children:["⢠",e("contact.services.workshops")]}),u.jsxs("p",{className:"text-sm",children:["⢠",e("contact.services.business")]}),u.jsxs("p",{className:"text-sm",children:["⢠",e("contact.services.speaking")]}),u.jsxs("p",{className:"text-sm",children:["⢠",e("contact.services.programs")]})]})]})})]})]}),u.jsx("div",{className:"mt-16 animate-fade-in",style:{animationDelay:"0.4s"},children:u.jsx(Ee,{className:"shadow-card text-center",children:u.jsxs(_e,{className:"p-8",children:[u.jsx("h3",{className:"text-2xl font-display font-semibold text-primary mb-4",children:e("contact.global.title")}),u.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:e("contact.global.description")}),u.jsxs("div",{className:"flex justify-center space-x-8 text-2xl",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-4xl mb-2",children:"ð¬ð·"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e("contact.global.greece")})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-4xl mb-2",children:"ð³ð±"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e("contact.global.netherlands")})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-4xl mb-2",children:"ðºð¸"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e("contact.global.usa")})]})]})]})})})]})]})}),u.jsx(SR,{isOpen:t,onClose:()=>r(!1)})]})},kR=()=>{const e=Yn(),{language:t}=Qe();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"min-h-screen flex items-center justify-center subtle-gradient",children:u.jsxs("div",{className:"text-center max-w-md mx-auto px-4 animate-fade-in",children:[u.jsx("div",{className:"text-8xl font-display font-bold text-primary mb-4",children:"404"}),u.jsx("h1",{className:"text-2xl font-display font-semibold text-foreground mb-3",children:t==="gr"?"Î Ïελίδα δεν βÏÎθηκε":"Page Not Found"}),u.jsx("p",{className:"text-muted-foreground mb-8 leading-relaxed",children:t==="gr"?"Î Ïελίδα ÏοÏ
ÏάÏνεÏε δεν Ï
ÏάÏÏει ή ÎÏει μεÏακινηθεί.":"The page you are looking for doesn't exist or has been moved."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[u.jsx(Le,{variant:"professional",size:"lg",asChild:!0,children:u.jsxs(ln,{to:"/",children:[u.jsx(j_,{className:"mr-2 h-4 w-4"}),t==="gr"?"ÎÏÏική Σελίδα":"Back to Home"]})}),u.jsx(Le,{variant:"outline",size:"lg",asChild:!0,children:u.jsx(ln,{to:"/contact",children:t==="gr"?"ÎÏικοινÏνία":"Contact Us"})})]})]})})},CR=new lC,TR=()=>u.jsx(uC,{client:CR,children:u.jsx(dT,{children:u.jsxs(Mk,{children:[u.jsx(yS,{}),u.jsx(JS,{}),u.jsxs(aT,{children:[u.jsx(fT,{}),u.jsx(eP,{children:u.jsxs(eT,{children:[u.jsx(Sn,{path:"/",element:u.jsx(k2,{})}),u.jsx(Sn,{path:"/biography",element:u.jsx(j2,{})}),u.jsx(Sn,{path:"/projects",element:u.jsx(N2,{})}),u.jsx(Sn,{path:"/publications",element:u.jsx(xR,{})}),u.jsx(Sn,{path:"/contact",element:u.jsx(ER,{})}),u.jsx(Sn,{path:"*",element:u.jsx(kR,{})})]})}),u.jsx(pT,{}),u.jsx(mT,{}),u.jsx(ZN,{}),u.jsx(tP,{})]})]})})});ey(document.getElementById("root")).render(u.jsx(TR,{}));
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.