vendor: 4,238 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Blog-cjPsgNtd.js","assets/blog-gen3-execution-cover-BtL2SZqy.js","assets/agentforce-zurich-1-CY8ZWbR3.js","assets/blog-azure-marketplace-cover-3UFJ6Gm7.js","assets/blog-what-is-abx-three-types-BGpKtaDo.js","assets/blog-eu-ai-act-cover-KyUqFNOY.js","assets/blog-execution-gap-cover-Dvs2sTyo.js","assets/BlogGeneration3AI-__8Ej2Ol.js","assets/BlogPostSeo-Drewm8Pp.js","assets/seo-meta-BKjAR-ns.js","assets/use-seo-meta-BwyfBFMl.js","assets/BlogBylineDates-AJ9dhvyg.js","assets/arrow-left-CxMevVYZ.js","assets/BlogExecutionAI-Bfcf4IEp.js","assets/marianna-poletto-CVCcAbSv.js","assets/BlogGen3Execution-D_unqxwP.js","assets/relatedReading-DPgvARiP.js","assets/BlogAgenticEnterpriseCRM-Ck-r0O5V.js","assets/samuel-bucher-Nm1Rw5IG.js","assets/BlogAzureMarketplace-4QP6ZnFo.js","assets/BlogAgenticVsABX-BjlTc9CF.js","assets/BlogWhatIsABX-BipgRfaA.js","assets/BlogEUAIAct-IVkOjREK.js","assets/BlogExecutionGap-BkO37V15.js","assets/BlogCreateCapacity-5oVnb2QP.js","assets/BlogWhyAssistantsDontExecute-R0sg4Iih.js","assets/UseCases-CWmqdrZi.js","assets/useCases-CpPCpUkq.js","assets/ExpertiseLibrary-34QHE_Yj.js","assets/ExpertiseFilterPanel-xsg0xlc4.js","assets/whitepaper-01-cover-v3-CdL_-pMd.js","assets/WhitepaperCards-Cj3Q8AcZ.js","assets/EpisodeCards-CVOZhKb8.js","assets/WhitepapersPillar-ByeH6c1K.js","assets/InterviewSeriesPillar-CBHPuPyg.js","assets/WhitepaperABX-DRGJfZx4.js","assets/dialog-VPdhNuIA.js","assets/label-DtzeTj1C.js","assets/gieni-abx-whitepaper-01-CGyvjhnQ.js","assets/InterviewEpisode01-BVlsTkRF.js","assets/video-schema-DcKYp2Lw.js","assets/WhitepaperABXThankYou-vR9t9ooK.js","assets/HowItWorks-BEtgjIvI.js","assets/CompetitiveIntelligence-Ca1LE9IC.js","assets/ConnectorLogo-Q8yG6BU5.js","assets/UseCaseVideoThumbnail-BlB7TYsQ.js","assets/chevron-left-Cy0joxWE.js","assets/CRMEnrichment-DGBCvJLV.js","assets/SalesOutreach-Ch4r2IyZ.js","assets/BoardMaterialPrep-BMfBFSQ_.js","assets/MarketSignalMonitoring-Dv0oVN82.js","assets/WeeklyTeamBriefings-S4vlsyUH.js","assets/InvestorReporting-CAS1v0UB.js","assets/SalesforceHowItWorks-BDJ4Lyfr.js","assets/Contact-CXrkciDv.js","assets/index-5xEg3gjD.js","assets/chevron-up-kAKYvLJx.js","assets/Press-COTv1pZ-.js","assets/pressReleases-KjECyr9a.js","assets/PressRelease-gBr7guoF.js","assets/map-pin-BLzaTqPg.js","assets/Events-DW_n9hth.js","assets/users-C7UaRLqa.js","assets/Analytics-DwiSII16.js","assets/table-DU2Ypa3Y.js","assets/card-BbZhkgl9.js","assets/VideoHealth-BRF0XROD.js","assets/AnalyticsLogin-DHsiHNlw.js"])))=>i.map(i=>d[i]); 2var UT=Object.defineProperty;var Gg=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fn=(e,t,n)=>BT(e,typeof t!="symbol"?t+"":t,n),md=(e,t,n)=>t.has(e)||Gg("Cannot "+n);var P=(e,t,n)=>(md(e,t,"read from private field"),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?Gg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(md(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),qe=(e,t,n)=>(md(e,t,"access private method"),n);var ll=(e,t,n,r)=>({set _(s){Q(e,t,s,n)},get _(){return P(e,t,r)}});function VT(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();
vendor: 9,677 bytes, lines 2-26
2function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wx={exports:{}},_c={},xx={exports:{}},te={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var za=Symbol.for("react.element"),zT=Symbol.for("react.portal"),HT=Symbol.for("react.fragment"),WT=Symbol.for("react.strict_mode"),KT=Symbol.for("react.profiler"),GT=Symbol.for("react.provider"),qT=Symbol.for("react.context"),YT=Symbol.for("react.forward_ref"),XT=Symbol.for("react.suspense"),JT=Symbol.for("react.memo"),QT=Symbol.for("react.lazy"),qg=Symbol.iterator;function ZT(e){return e===null||typeof e!="object"?null:(e=qg&&e[qg]||e["@@iterator"],typeof e=="function"?e:null)}var bx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sx=Object.assign,_x={};function eo(e,t,n){this.props=e,this.context=t,this.refs=_x,this.updater=n||bx}eo.prototype.isReactComponent={};eo.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")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ex(){}Ex.prototype=eo.prototype;function Dp(e,t,n){this.props=e,this.context=t,this.refs=_x,this.updater=n||bx}var Mp=Dp.prototype=new Ex;Mp.constructor=Dp;Sx(Mp,eo.prototype);Mp.isPureReactComponent=!0;var Yg=Array.isArray,kx=Object.prototype.hasOwnProperty,$p={current:null},Tx={key:!0,ref:!0,__self:!0,__source:!0};function Cx(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)kx.call(t,r)&&!Tx.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:za,type:e,key:i,ref:o,props:s,_owner:$p.current}}function eC(e,t){return{$$typeof:za,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fp(e){return typeof e=="object"&&e!==null&&e.$$typeof===za}function tC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xg=/\/+/g;function gd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tC(""+e.key):t.toString(36)}function Xl(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case za:case zT:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+gd(o,0):r,Yg(s)?(n="",e!=null&&(n=e.replace(Xg,"$&/")+"/"),Xl(s,t,n,"",function(u){return u})):s!=null&&(Fp(s)&&(s=eC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Xg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Yg(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+gd(i,a);o+=Xl(i,t,n,l,s)}else if(l=ZT(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+gd(i,a++),o+=Xl(i,t,n,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ul(e,t,n){if(e==null)return e;var r=[],s=0;return Xl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function nC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ct={current:null},Jl={transition:null},rC={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:Jl,ReactCurrentOwner:$p};function Ax(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:ul,forEach:function(e,t,n){ul(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ul(e,function(){t++}),t},toArray:function(e){return ul(e,function(t){return t})||[]},only:function(e){if(!Fp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=eo;te.Fragment=HT;te.Profiler=KT;te.PureComponent=Dp;te.StrictMode=WT;te.Suspense=XT;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rC;te.act=Ax;te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sx({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=$p.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)kx.call(t,l)&&!Tx.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:za,type:e.type,key:s,ref:i,props:r,_owner:o}};te.createContext=function(e){return e={$$typeof:qT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:GT,_context:e},e.Consumer=e};te.createElement=Cx;te.createFactory=function(e){var t=Cx.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:YT,render:e}};te.isValidElement=Fp;te.lazy=function(e){return{$$typeof:QT,_payload:{_status:-1,_result:e},_init:nC}};te.memo=function(e,t){return{$$typeof:JT,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Jl.transition;Jl.transition={};try{e()}finally{Jl.transition=t}};te.unstable_act=Ax;te.useCallback=function(e,t){return ct.current.useCallback(e,t)};te.useContext=function(e){return ct.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return ct.current.useDeferredValue(e)};te.useEffect=function(e,t){return ct.current.useEffect(e,t)};te.useId=function(){return ct.current.useId()};te.useImperativeHandle=function(e,t,n){return ct.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return ct.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return ct.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return ct.current.useMemo(e,t)};te.useReducer=function(e,t,n){return ct.current.useReducer(e,t,n)};te.useRef=function(e){return ct.current.useRef(e)};te.useState=function(e){return ct.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return ct.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return ct.current.useTransition()};te.version="18.3.1";xx.exports=te;var m=xx.exports;const j=Va(m),Rx=VT({__proto__:null,default:j},[m]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var sC=m,iC=Symbol.for("react.element"),oC=Symbol.for("react.fragment"),aC=Object.prototype.hasOwnProperty,lC=sC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uC={key:!0,ref:!0,__self:!0,__source:!0};function Px(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)aC.call(t,r)&&!uC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:iC,type:e,key:i,ref:o,props:s,_owner:lC.current}}_c.Fragment=oC;_c.jsx=Px;_c.jsxs=Px;wx.exports=_c;var p=wx.exports,Ox={exports:{}},Ct={},jx={exports:{}},Nx={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(C,R){var D=C.length;C.push(R);e:for(;0<D;){var Y=D-1>>>1,K=C[Y];if(0<s(K,R))C[Y]=R,C[D]=K,D=Y;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],D=C.pop();if(D!==R){C[0]=D;e:for(var Y=0,K=C.length,ee=K>>>1;Y<ee;){var ne=2*(Y+1)-1,Re=C[ne],Ge=ne+1,ie=C[Ge];if(0>s(Re,D))Ge<K&&0>s(ie,Re)?(C[Y]=ie,C[Ge]=D,Y=Ge):(C[Y]=Re,C[ne]=D,Y=ne);else if(Ge<K&&0>s(ie,D))C[Y]=ie,C[Ge]=D,Y=Ge;else break e}}return R}function s(C,R){var D=C.sortIndex-R.sortIndex;return D!==0?D:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,y=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=C)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function S(C){if(g=!1,x(C),!y)if(n(l)!==null)y=!0,z(_);else{var R=n(u);R!==null&&X(S,R.startTime-C)}}function _(C,R){y=!1,g&&(g=!1,w(T),T=-1),f=!0;var D=h;try{for(x(R),d=n(l);d!==null&&(!(d.expirationTime>R)||C&&!$());){var Y=d.callback;
vendor: 9,158 bytes, lines 26-35
26if(typeof Y=="function"){d.callback=null,h=d.priorityLevel;var K=Y(d.expirationTime<=R);R=e.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&r(l),x(R)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var ne=n(u);ne!==null&&X(S,ne.startTime-R),ee=!1}return ee}finally{d=null,h=D,f=!1}}var E=!1,k=null,T=-1,O=5,A=-1;function $(){return!(e.unstable_now()-A<O)}function I(){if(k!==null){var C=e.unstable_now();A=C;var R=!0;try{R=k(!0,C)}finally{R?W():(E=!1,k=null)}}else E=!1}var W;if(typeof v=="function")W=function(){v(I)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,H=L.port2;L.port1.onmessage=I,W=function(){H.postMessage(null)}}else W=function(){b(I,0)};function z(C){k=C,E||(E=!0,W())}function X(C,R){T=b(function(){C(e.unstable_now())},R)}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(){y||f||(y=!0,z(_))},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"):O=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var D=h;h=R;try{return C()}finally{h=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var D=h;h=C;try{return R()}finally{h=D}},e.unstable_scheduleCallback=function(C,R,D){var Y=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Y+D:Y):D=Y,C){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=D+K,C={id:c++,callback:R,priorityLevel:C,startTime:D,expirationTime:K,sortIndex:-1},D>Y?(C.sortIndex=D,t(u,C),n(l)===null&&C===n(u)&&(g?(w(T),T=-1):g=!0,X(S,D-Y))):(C.sortIndex=K,t(l,C),y||f||(y=!0,z(_))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var R=h;return function(){var D=h;h=R;try{return C.apply(this,arguments)}finally{h=D}}}})(Nx);jx.exports=Nx;var cC=jx.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var dC=m,Tt=cC;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ix=new Set,ia={};function $s(e,t){Vi(e,t),Vi(e+"Capture",t)}function Vi(e,t){for(ia[e]=t,e=0;e<t.length;e++)Ix.add(t[e])}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$h=Object.prototype.hasOwnProperty,hC=/^[: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]*$/,Jg={},Qg={};function fC(e){return $h.call(Qg,e)?!0:$h.call(Jg,e)?!1:hC.test(e)?Qg[e]=!0:(Jg[e]=!0,!1)}function pC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mC(e,t,n,r){if(t===null||typeof t>"u"||pC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Bp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Bp);Ke[t]=new dt(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(Up,Bp);Ke[t]=new dt(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(Up,Bp);Ke[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vp(e,t,n,r){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(mC(t,n,s,r)&&(n=null),r||s===null?fC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ar=dC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cl=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),zp=Symbol.for("react.strict_mode"),Fh=Symbol.for("react.profiler"),Lx=Symbol.for("react.provider"),Dx=Symbol.for("react.context"),Hp=Symbol.for("react.forward_ref"),Uh=Symbol.for("react.suspense"),Bh=Symbol.for("react.suspense_list"),Wp=Symbol.for("react.memo"),xr=Symbol.for("react.lazy"),Mx=Symbol.for("react.offscreen"),Zg=Symbol.iterator;function vo(e){return e===null||typeof e!="object"?null:(e=Zg&&e[Zg]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,yd;function Io(e){if(yd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yd=t&&t[1]||""}return` 35`+yd+e}var vd=!1;function wd(e,t){if(!e||vd)return"";vd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,583 bytes, lines 35-38
35catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 36`),i=r.stack.split(` 37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 38`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{vd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function gC(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=wd(e.type,!1),e;case 11:return e=wd(e.type.render,!1),e;case 1:return e=wd(e.type,!0),e;default:return""}}function Vh(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 ai:return"Fragment";case oi:return"Portal";case Fh:return"Profiler";case zp:return"StrictMode";case Uh:return"Suspense";case Bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dx:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case Hp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wp:return t=e.displayName||null,t!==null?t:Vh(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return Vh(e(t))}catch{}}return null}function yC(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 Vh(t);case 8:return t===zp?"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 Vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vC(e){var t=$x(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=vC(e))}function Fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$x(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cu(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 zh(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ey(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ux(e,t){t=t.checked,t!=null&&Vp(e,"checked",t,!1)}function Hh(e,t){Ux(e,t);var n=Vr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wh(e,t.type,Vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ty(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wh(e,t,n){(t!=="number"||Cu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function Si(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Kh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ny(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Lo(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vr(n)}}function Bx(e,t){var n=Vr(t.value),r=Vr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ry(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vx(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 Gh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hl,zx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hl=hl||document.createElement("div"),hl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vo={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},wC=["Webkit","ms","Moz","O"];Object.keys(Vo).forEach(function(e){wC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vo[t]=Vo[e]})});function Hx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}function Wx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Hx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var xC=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qh(e,t){if(t){if(xC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Yh(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 Xh=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jh=null,_i=null,Ei=null;function sy(e){if(e=Ka(e)){if(typeof Jh!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ac(t),Jh(e.stateNode,e.type,t))}}function Kx(e){_i?Ei?Ei.push(e):Ei=[e]:_i=e}function Gx(){if(_i){var e=_i,t=Ei;if(Ei=_i=null,sy(e),t)for(e=0;e<t.length;e++)sy(t[e])}}function qx(e,t){return e(t)}function Yx(){}var xd=!1;function Xx(e,t,n){if(xd)return e(t,n);xd=!0;try{return qx(e,t,n)}finally{xd=!1,(_i!==null||Ei!==null)&&(Yx(),Gx())}}function aa(e,t){var n=e.stateNode;if(n===null)return null;var r=Ac(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var Qh=!1;if(Zn)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){Qh=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{Qh=!1}function bC(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var zo=!1,Au=null,Ru=!1,Zh=null,SC={onError:function(e){zo=!0,Au=e}};function _C(e,t,n,r,s,i,o,a,l){zo=!1,Au=null,bC.apply(SC,arguments)}function EC(e,t,n,r,s,i,o,a,l){if(_C.apply(this,arguments),zo){if(zo){var u=Au;zo=!1,Au=null}else throw Error(N(198));Ru||(Ru=!0,Zh=u)}}function Fs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Jx(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 iy(e){if(Fs(e)!==e)throw Error(N(188))}function kC(e){var t=e.alternate;if(!t){if(t=Fs(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return iy(s),e;if(i===r)return iy(s),t;i=i.sibling}throw Error(N(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Qx(e){return e=kC(e),e!==null?Zx(e):null}function Zx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zx(e);if(t!==null)return t;e=e.sibling}return null}var eb=Tt.unstable_scheduleCallback,oy=Tt.unstable_cancelCallback,TC=Tt.unstable_shouldYield,CC=Tt.unstable_requestPaint,Ae=Tt.unstable_now,AC=Tt.unstable_getCurrentPriorityLevel,Gp=Tt.unstable_ImmediatePriority,tb=Tt.unstable_UserBlockingPriority,Pu=Tt.unstable_NormalPriority,RC=Tt.unstable_LowPriority,nb=Tt.unstable_IdlePriority,Ec=null,Pn=null;function PC(e){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(Ec,e,void 0,(e.current.flags&128)===128)}catch{}}var un=Math.clz32?Math.clz32:NC,OC=Math.log,jC=Math.LN2;function NC(e){return e>>>=0,e===0?32:31-(OC(e)/jC|0)|0}var fl=64,pl=4194304;function Do(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 Ou(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Do(a):(i&=o,i!==0&&(r=Do(i)))}else o=n&~s,o!==0?r=Do(o):i!==0&&(r=Do(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-un(t),s=1<<n,r|=e[n],t&=~s;return r}function IC(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 LC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-un(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=IC(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function ef(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rb(){var e=fl;return fl<<=1,!(fl&4194240)&&(fl=64),e}function bd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-un(t),e[t]=n}function DC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-un(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function qp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-un(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var oe=0;function sb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ib,Yp,ob,ab,lb,tf=!1,ml=[],Ir=null,Lr=null,Dr=null,la=new Map,ua=new Map,Sr=[],MC="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 ay(e,t){switch(e){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":la.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ua.delete(t.pointerId)}}function xo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ka(t),t!==null&&Yp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function $C(e,t,n,r,s){switch(t){case"focusin":return Ir=xo(Ir,e,t,n,r,s),!0;case"dragenter":return Lr=xo(Lr,e,t,n,r,s),!0;case"mouseover":return Dr=xo(Dr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return la.set(i,xo(la.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ua.set(i,xo(ua.get(i)||null,e,t,n,r,s)),!0}return!1}function ub(e){var t=us(e.target);if(t!==null){var n=Fs(t);if(n!==null){if(t=n.tag,t===13){if(t=Jx(n),t!==null){e.blockedOn=t,lb(e.priority,function(){ob(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ql(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xh=r,n.target.dispatchEvent(r),Xh=null}else return t=Ka(n),t!==null&&Yp(t),e.blockedOn=n,!1;t.shift()}return!0}
vendor: 10,721 bytes, line 38
38function ly(e,t,n){Ql(e)&&n.delete(t)}function FC(){tf=!1,Ir!==null&&Ql(Ir)&&(Ir=null),Lr!==null&&Ql(Lr)&&(Lr=null),Dr!==null&&Ql(Dr)&&(Dr=null),la.forEach(ly),ua.forEach(ly)}function bo(e,t){e.blockedOn===t&&(e.blockedOn=null,tf||(tf=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,FC)))}function ca(e){function t(s){return bo(s,e)}if(0<ml.length){bo(ml[0],e);for(var n=1;n<ml.length;n++){var r=ml[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ir!==null&&bo(Ir,e),Lr!==null&&bo(Lr,e),Dr!==null&&bo(Dr,e),la.forEach(t),ua.forEach(t),n=0;n<Sr.length;n++)r=Sr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sr.length&&(n=Sr[0],n.blockedOn===null);)ub(n),n.blockedOn===null&&Sr.shift()}var ki=ar.ReactCurrentBatchConfig,ju=!0;function UC(e,t,n,r){var s=oe,i=ki.transition;ki.transition=null;try{oe=1,Xp(e,t,n,r)}finally{oe=s,ki.transition=i}}function BC(e,t,n,r){var s=oe,i=ki.transition;ki.transition=null;try{oe=4,Xp(e,t,n,r)}finally{oe=s,ki.transition=i}}function Xp(e,t,n,r){if(ju){var s=nf(e,t,n,r);if(s===null)Od(e,t,r,Nu,n),ay(e,r);else if($C(s,e,t,n,r))r.stopPropagation();else if(ay(e,r),t&4&&-1<MC.indexOf(e)){for(;s!==null;){var i=Ka(s);if(i!==null&&ib(i),i=nf(e,t,n,r),i===null&&Od(e,t,r,Nu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Od(e,t,r,null,n)}}var Nu=null;function nf(e,t,n,r){if(Nu=null,e=Kp(r),e=us(e),e!==null)if(t=Fs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Nu=e,null}function cb(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(AC()){case Gp:return 1;case tb:return 4;case Pu:case RC:return 16;case nb:return 536870912;default:return 16}default:return 16}}var Or=null,Jp=null,Zl=null;function db(){if(Zl)return Zl;var e,t=Jp,n=t.length,r,s="value"in Or?Or.value:Or.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Zl=s.slice(e,1<r?1-r:void 0)}function eu(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 gl(){return!0}function uy(){return!1}function At(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gl:uy,this.isPropagationStopped=uy,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gl)},persist:function(){},isPersistent:gl}),t}var to={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qp=At(to),Wa=Se({},to,{view:0,detail:0}),VC=At(Wa),Sd,_d,So,kc=Se({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(Sd=e.screenX-So.screenX,_d=e.screenY-So.screenY):_d=Sd=0,So=e),Sd)},movementY:function(e){return"movementY"in e?e.movementY:_d}}),cy=At(kc),zC=Se({},kc,{dataTransfer:0}),HC=At(zC),WC=Se({},Wa,{relatedTarget:0}),Ed=At(WC),KC=Se({},to,{animationName:0,elapsedTime:0,pseudoElement:0}),GC=At(KC),qC=Se({},to,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),YC=At(qC),XC=Se({},to,{data:0}),dy=At(XC),JC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QC={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"},ZC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZC[e])?!!t[e]:!1}function Zp(){return eA}var tA=Se({},Wa,{key:function(e){if(e.key){var t=JC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zp,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nA=At(tA),rA=Se({},kc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hy=At(rA),sA=Se({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zp}),iA=At(sA),oA=Se({},to,{propertyName:0,elapsedTime:0,pseudoElement:0}),aA=At(oA),lA=Se({},kc,{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}),uA=At(lA),cA=[9,13,27,32],em=Zn&&"CompositionEvent"in window,Ho=null;Zn&&"documentMode"in document&&(Ho=document.documentMode);var dA=Zn&&"TextEvent"in window&&!Ho,hb=Zn&&(!em||Ho&&8<Ho&&11>=Ho),fy=" ",py=!1;function fb(e,t){switch(e){case"keyup":return cA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function hA(e,t){switch(e){case"compositionend":return pb(t);case"keypress":return t.which!==32?null:(py=!0,fy);case"textInput":return e=t.data,e===fy&&py?null:e;default:return null}}function fA(e,t){if(li)return e==="compositionend"||!em&&fb(e,t)?(e=db(),Zl=Jp=Or=null,li=!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 hb&&t.locale!=="ko"?null:t.data;default:return null}}var pA={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 my(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pA[e.type]:t==="textarea"}function mb(e,t,n,r){Kx(r),t=Iu(t,"onChange"),0<t.length&&(n=new Qp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wo=null,da=null;function mA(e){Tb(e,0)}function Tc(e){var t=di(e);if(Fx(t))return e}function gA(e,t){if(e==="change")return t}var gb=!1;if(Zn){var kd;if(Zn){var Td="oninput"in document;if(!Td){var gy=document.createElement("div");gy.setAttribute("oninput","return;"),Td=typeof gy.oninput=="function"}kd=Td}else kd=!1;gb=kd&&(!document.documentMode||9<document.documentMode)}function yy(){Wo&&(Wo.detachEvent("onpropertychange",yb),da=Wo=null)}function yb(e){if(e.propertyName==="value"&&Tc(da)){var t=[];mb(t,da,e,Kp(e)),Xx(mA,t)}}function yA(e,t,n){e==="focusin"?(yy(),Wo=t,da=n,Wo.attachEvent("onpropertychange",yb)):e==="focusout"&&yy()}function vA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tc(da)}function wA(e,t){if(e==="click")return Tc(t)}function xA(e,t){if(e==="input"||e==="change")return Tc(t)}function bA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fn=typeof Object.is=="function"?Object.is:bA;function ha(e,t){if(fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!$h.call(t,s)||!fn(e[s],t[s]))return!1}return!0}function vy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wy(e,t){var n=vy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vy(n)}}function vb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wb(){for(var e=window,t=Cu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cu(e.document)}return t}function tm(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 SA(e){var t=wb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vb(n.ownerDocument.documentElement,n)){if(r!==null&&tm(n)){if
vendor: 5,074 bytes, line 38
38(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=wy(n,i);var o=wy(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _A=Zn&&"documentMode"in document&&11>=document.documentMode,ui=null,rf=null,Ko=null,sf=!1;function xy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sf||ui==null||ui!==Cu(r)||(r=ui,"selectionStart"in r&&tm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ko&&ha(Ko,r)||(Ko=r,r=Iu(rf,"onSelect"),0<r.length&&(t=new Qp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ui)))}function yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ci={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionend:yl("Transition","TransitionEnd")},Cd={},xb={};Zn&&(xb=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function Cc(e){if(Cd[e])return Cd[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xb)return Cd[e]=t[n];return e}var bb=Cc("animationend"),Sb=Cc("animationiteration"),_b=Cc("animationstart"),Eb=Cc("transitionend"),kb=new Map,by="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 qr(e,t){kb.set(e,t),$s(t,[e])}for(var Ad=0;Ad<by.length;Ad++){var Rd=by[Ad],EA=Rd.toLowerCase(),kA=Rd[0].toUpperCase()+Rd.slice(1);qr(EA,"on"+kA)}qr(bb,"onAnimationEnd");qr(Sb,"onAnimationIteration");qr(_b,"onAnimationStart");qr("dblclick","onDoubleClick");qr("focusin","onFocus");qr("focusout","onBlur");qr(Eb,"onTransitionEnd");Vi("onMouseEnter",["mouseout","mouseover"]);Vi("onMouseLeave",["mouseout","mouseover"]);Vi("onPointerEnter",["pointerout","pointerover"]);Vi("onPointerLeave",["pointerout","pointerover"]);$s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$s("onBeforeInput",["compositionend","keypress","textInput","paste"]);$s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="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(" "),TA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function Sy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,EC(r,t,void 0,e),e.currentTarget=null}function Tb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Sy(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Sy(s,a,u),i=l}}}if(Ru)throw e=Zh,Ru=!1,Zh=null,e}function fe(e,t){var n=t[cf];n===void 0&&(n=t[cf]=new Set);var r=e+"__bubble";n.has(r)||(Cb(t,e,2,!1),n.add(r))}function Pd(e,t,n){var r=0;t&&(r|=4),Cb(n,e,r,t)}var vl="_reactListening"+Math.random().toString(36).slice(2);
vendor: 22,109 bytes, lines 38-39
38function fa(e){if(!e[vl]){e[vl]=!0,Ix.forEach(function(n){n!=="selectionchange"&&(TA.has(n)||Pd(n,!1,e),Pd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vl]||(t[vl]=!0,Pd("selectionchange",!1,t))}}function Cb(e,t,n,r){switch(cb(t)){case 1:var s=UC;break;case 4:s=BC;break;default:s=Xp}n=s.bind(null,t,n,e),s=void 0,!Qh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Od(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=us(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Xx(function(){var u=i,c=Kp(n),d=[];e:{var h=kb.get(e);if(h!==void 0){var f=Qp,y=e;switch(e){case"keypress":if(eu(n)===0)break e;case"keydown":case"keyup":f=nA;break;case"focusin":y="focus",f=Ed;break;case"focusout":y="blur",f=Ed;break;case"beforeblur":case"afterblur":f=Ed;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=HC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=iA;break;case bb:case Sb:case _b:f=GC;break;case Eb:f=aA;break;case"scroll":f=VC;break;case"wheel":f=uA;break;case"copy":case"cut":case"paste":f=YC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=hy}var g=(t&4)!==0,b=!g&&e==="scroll",w=g?h!==null?h+"Capture":null:h;g=[];for(var v=u,x;v!==null;){x=v;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,w!==null&&(S=aa(v,w),S!=null&&g.push(pa(v,S,x)))),b)break;v=v.return}0<g.length&&(h=new f(h,y,null,n,c),d.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==Xh&&(y=n.relatedTarget||n.fromElement)&&(us(y)||y[er]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(y=n.relatedTarget||n.toElement,f=u,y=y?us(y):null,y!==null&&(b=Fs(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(f=null,y=u),f!==y)){if(g=cy,S="onMouseLeave",w="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=hy,S="onPointerLeave",w="onPointerEnter",v="pointer"),b=f==null?h:di(f),x=y==null?h:di(y),h=new g(S,v+"leave",f,n,c),h.target=b,h.relatedTarget=x,S=null,us(c)===u&&(g=new g(w,v+"enter",y,n,c),g.target=x,g.relatedTarget=b,S=g),b=S,f&&y)t:{for(g=f,w=y,v=0,x=g;x;x=Ks(x))v++;for(x=0,S=w;S;S=Ks(S))x++;for(;0<v-x;)g=Ks(g),v--;for(;0<x-v;)w=Ks(w),x--;for(;v--;){if(g===w||w!==null&&g===w.alternate)break t;g=Ks(g),w=Ks(w)}g=null}else g=null;f!==null&&_y(d,h,f,g,!1),y!==null&&b!==null&&_y(d,b,y,g,!0)}}e:{if(h=u?di(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var _=gA;else if(my(h))if(gb)_=xA;else{_=vA;var E=yA}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=wA);if(_&&(_=_(e,u))){mb(d,_,n,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Wh(h,"number",h.value)}switch(E=u?di(u):window,e){case"focusin":(my(E)||E.contentEditable==="true")&&(ui=E,rf=u,Ko=null);break;case"focusout":Ko=rf=ui=null;break;case"mousedown":sf=!0;break;case"contextmenu":case"mouseup":case"dragend":sf=!1,xy(d,n,c);break;case"selectionchange":if(_A)break;case"keydown":case"keyup":xy(d,n,c)}var k;if(em)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else li?fb(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(hb&&n.locale!=="ko"&&(li||T!=="onCompositionStart"?T==="onCompositionEnd"&&li&&(k=db()):(Or=c,Jp="value"in Or?Or.value:Or.textContent,li=!0)),E=Iu(u,T),0<E.length&&(T=new dy(T,e,null,n,c),d.push({event:T,listeners:E}),k?T.data=k:(k=pb(n),k!==null&&(T.data=k)))),(k=dA?hA(e,n):fA(e,n))&&(u=Iu(u,"onBeforeInput"),0<u.length&&(c=new dy("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}Tb(d,t)})}function pa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Iu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=aa(e,n),i!=null&&r.unshift(pa(e,i,s)),i=aa(e,t),i!=null&&r.push(pa(e,i,s))),e=e.return}return r}function Ks(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _y(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=aa(n,i),l!=null&&o.unshift(pa(n,l,a))):s||(l=aa(n,i),l!=null&&o.push(pa(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var CA=/\r\n?/g,AA=/\u0000|\uFFFD/g;function Ey(e){return(typeof e=="string"?e:""+e).replace(CA,` 39`).replace(AA,"")}function wl(e,t,n){if(t=Ey(t),Ey(e)!==t&&n)throw Error(N(425))}function Lu(){}var of=null,af=null;function lf(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 uf=typeof setTimeout=="function"?setTimeout:void 0,RA=typeof clearTimeout=="function"?clearTimeout:void 0,ky=typeof Promise=="function"?Promise:void 0,PA=typeof queueMicrotask=="function"?queueMicrotask:typeof ky<"u"?function(e){return ky.resolve(null).then(e).catch(OA)}:uf;function OA(e){setTimeout(function(){throw e})}function jd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ca(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ca(t)}function Mr(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 Ty(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var no=Math.random().toString(36).slice(2),Cn="__reactFiber$"+no,ma="__reactProps$"+no,er="__reactContainer$"+no,cf="__reactEvents$"+no,jA="__reactListeners$"+no,NA="__reactHandles$"+no;function us(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[er]||n[Cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ty(e);e!==null;){if(n=e[Cn])return n;e=Ty(e)}return t}e=n,n=e.parentNode}return null}function Ka(e){return e=e[Cn]||e[er],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function di(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Ac(e){return e[ma]||null}var df=[],hi=-1;function Yr(e){return{current:e}}function pe(e){0>hi||(e.current=df[hi],df[hi]=null,hi--)}function de(e,t){hi++,df[hi]=e.current,e.current=t}var zr={},tt=Yr(zr),gt=Yr(!1),Cs=zr;function zi(e,t){var n=e.type.contextTypes;if(!n)return zr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function yt(e){return e=e.childContextTypes,e!=null}function Du(){pe(gt),pe(tt)}function Cy(e,t,n){if(tt.current!==zr)throw Error(N(168));de(tt,t),de(gt,n)}function Ab(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(N(108,yC(e)||"Unknown",s));return Se({},n,r)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zr,Cs=tt.current,de(tt,e),de(gt,gt.current),!0}function Ay(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Ab(e,t,Cs),r.__reactInternalMemoizedMergedChildContext=e,pe(gt),pe(tt),de(tt,e)):pe(gt),de(gt,n)}var qn=null,Rc=!1,Nd=!1;function Rb(e){qn===null?qn=[e]:qn.push(e)}function IA(e){Rc=!0,Rb(e)}function Xr(){if(!Nd&&qn!==null){Nd=!0;var e=0,t=oe;try{var n=qn;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qn=null,Rc=!1}catch(s){throw qn!==null&&(qn=qn.slice(e+1)),eb(Gp,Xr),s}finally{oe=t,Nd=!1}}return null}var fi=[],pi=0,$u=null,Fu=0,It=[],Lt=0,As=null,Xn=1,Jn="";function is(e,t){fi[pi++]=Fu,fi[pi++]=$u,$u=e,Fu=t}function Pb(e,t,n){It[Lt++]=Xn,It[Lt++]=Jn,It[Lt++]=As,As=e;var r=Xn;e=Jn;var s=32-un(r)-1;r&=~(1<<s),n+=1;var i=32-un(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Xn=1<<32-un(t)+s|n<<s|r,Jn=i+e}else Xn=1<<i|n<<s|r,Jn=e}function nm(e){e.return!==null&&(is(e,1),Pb(e,1,0))}function rm(e){for(;e===$u;)$u=fi[--pi],fi[pi]=null,Fu=fi[--pi],fi[pi]=null;for(;e===As;)As=It[--Lt],It[Lt]=null,Jn=It[--Lt],It[Lt]=null,Xn=It[--Lt],It[Lt]=null}var Et=null,_t=null,ge=!1,on=null;function Ob(e,t){var n=Dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ry(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Et=e,_t=Mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Et=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=As!==null?{id:Xn,overflow:Jn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Et=e,_t=null,!0):!1;default:return!1}}function hf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ff(e){if(ge){var t=_t;if(t){var n=t;if(!Ry(e,t)){if(hf(e))throw Error(N(418));t=Mr(n.nextSibling);var r=Et;t&&Ry(e,t)?Ob(r,n):(e.flags=e.flags&-4097|2,ge=!1,Et=e)}}else{if(hf(e))throw Error(N(418));e.flags=e.flags&-4097|2,ge=!1,Et=e}}}function Py(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function xl(e){if(e!==Et)return!1;if(!ge)return Py(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lf(e.type,e.memoizedProps)),t&&(t=_t)){if(hf(e))throw jb(),Error(N(418));for(;t;)Ob(e,t),t=Mr(t.nextSibling)}if(Py(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=Mr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=Et?Mr(e.stateNode.nextSibling):null;return!0}function jb(){for(var e=_t;e;)e=Mr(e.nextSibling)}function Hi(){_t=Et=null,ge=!1}function sm(e){on===null?on=[e]:on.push(e)}var LA=ar.ReactCurrentBatchConfig;function _o(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function bl(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Oy(e){var t=e._init;return t(e._payload)}function Nb(e){function t(w,v){if(e){var x=w.deletions;x===null?(w.deletions=[v],w.flags|=16):x.push(v)}}function n(w,v){if(!e)return null;for(;v!==null;)t(w,v),v=v.sibling;return null}function r(w,v){for(w=new Map;v!==null;)v.key!==null?w.set(v.key,v):w.set(v.index,v),v=v.sibling;return w}function s(w,v){return w=Br(w,v),w.index=0,w.sibling=null,w}function i(w,v,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<v?(w.flags|=2,v):x):(w.flags|=2,v)):(w.flags|=1048576,v)}function o(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,v,x,S){return v===null||v.tag!==6?(v=Ud(x,w.mode,S),v.return=w,v):(v=s(v,x),v.return=w,v)}function l(w,v,x,S){var _=x.type;return _===ai?c(w,v,x.props.children,S,x.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===xr&&Oy(_)===v.type)?(S=s(v,x.props),S.ref=_o(w,v,x),S.return=w,S):(S=au(x.type,x.key,x.props,null,w.mode,S),S.ref=_o(w,v,x),S.return=w,S)}function u(w,v,x,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Bd(x,w.mode,S),v.return=w,v):(v=s(v,x.children||[]),v.return=w,v)}function c(w,v,x,S,_){return v===null||v.tag!==7?(v=_s(x,w.mode,S,_),v.return=w,v):(v=s(v,x),v.return=w,v)}function d(w,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ud(""+v,w.mode,x),v.return=w,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case cl:return x=au(v.type,v.key,v.props,null,w.mode,x),x.ref=_o(w,null,v),x.return=w,x;case oi:return v=Bd(v,w.mode,x),v.return=w,v;case xr:var S=v._init;return d(w,S(v._payload),x)}if(Lo(v)||vo(v))return v=_s(v,w.mode,x,null),v.return=w,v;bl(w,v)}return null}function h(w,v,x,S){var _=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(w,v,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case cl:return x.key===_?l(w,v,x,S):null;case oi:return x.key===_?u(w,v,x,S):null;case xr:return _=x._init,h(w,v,_(x._payload),S)}if(Lo(x)||vo(x))return _!==null?null:c(w,v,x,S,null);bl(w,x)}return null}function f(w,v,x,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return w=w.get(x)||null,a(v,w,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case cl:return w=w.get(S.key===null?x:S.key)||null,l(v,w,S,_);case oi:return w=w.get(S.key===null?x:S.key)||null,u(v,w,S,_);case xr:var E=S._init;return f(w,v,x,E(S._payload),_)}if(Lo(S)||vo(S))return w=w.get(x)||null,c(v,w,S,_,null);bl(v,S)}return null}function y(w,v,x,S){for(var _=null,E=null,k=v,T=v=0,O=null;k!==null&&T<x.length;T++){k.index>T?(O=k,k=null):O=k.sibling;var A=h(w,k,x[T],S);if(A===null){k===null&&(k=O);break}e&&k&&A.alternate===null&&t(w,k),v=i(A,v,T),E===null?_=A:E.sibling=A,E=A,k=O}if(T===x.length)return n(w,k),ge&&is(w,T),_;if(k===null){for(;T<x.length;T++)k=d(w,x[T],S),k!==null&&(v=i(k,v,T),E===null?_=k:E.sibling=k,E=k);return ge&&is(w,T),_}for(k=r(w,k);T<x.length;T++)O=f(k,w,T,x[T],S),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?T:O.key),v=i(O,v,T),E===null?_=O:E.sibling=O,E=O);return e&&k.forEach(function($){return t(w,$)}),ge&&is(w,T),_}function g(w,v,x,S){var _=vo(x);if(typeof _!="function")throw Error(N(150));if(x=_.call(x),x==null)throw Error(N(151));for(var E=_=null,k=v,T=v=0,O=null,A=x.next();k!==null&&!A.done;T++,A=x.next()){k.index>T?(O=k,k=null):O=k.sibling;var $=h(w,k,A.value,S);if($===null){k===null&&(k=O);break}e&&k&&$.alternate===null&&t(w,k),v=i($,v,T),E===null?_=$:E.sibling=$,E=$,k=O}if(A.done)return n(w,k),ge&&is(w,T),_;if(k===null){for(;!A.done;T++,A=x.next())A=d(w,A.value,S),A!==null&&(v=i(A,v,T),E===null?_=A:E.sibling=A,E=A);return ge&&is(w,T),_}for(k=r(w,k);!A.done;T++,A=x.next())A=f(k,w,T,A.value,S),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?T:A.key),v=i(A,v,T),E===null?_=A:E.sibling=A,E=A);return e&&k.forEach(function(I){return t(w,I)}),ge&&is(w,T),_}function b(w,v,x,S){if(typeof x=="object"&&x!==null&&x.type===ai&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case cl:e:{for(var _=x.key,E=v;E!==null;){if(E.key===_){if(_=x.type,_===ai){if(E.tag===7){n(w,E.sibling),v=s(E,x.props.children),v.return=w,w=v;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===xr&&Oy(_)===E.type){n(w,E.sibling),v=s(E,x.props),v.ref=_o(w,E,x),v.return=w,w=v;break e}n(w,E);break}else t(w,E);E=E.sibling}x.type===ai?(v=_s(x.props.children,w.mode,S,x.key),v.return=w,w=v):(S=au(x.type,x.key,x.props,null,w.mode,S),S.ref=_o(w,v,x),S.return=w,w=S)}return o(w);case oi:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(w,v.sibling),v=s(v,x.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else t(w,v);v=v.sibling}v=Bd(x,w.mode,S),v.return=w,w=v}return o(w);case xr:return E=x._init,b(w,v,E(x._payload),S)}if(Lo(x))return y(w,v,x,S);if(vo(x))return g(w,v,x,S);bl(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(w,v.sibling),v=s(v,x),v.return=w,w=v):(n(w,v),v=Ud(x,w.mode,S),v.return=w,w=v),o(w)):n(w,v)}return b}var Wi=Nb(!0),Ib=Nb(!1),Uu=Yr(null),Bu=null,mi=null,im=null;function om(){im=mi=Bu=null}function am(e){var t=Uu.current;pe(Uu),e._currentValue=t}function pf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){Bu=e,im=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(im!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(Bu===null)throw Error(N(308));mi=e,Bu.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var cs=null;function lm(e){cs===null?cs=[e]:cs.push(e)}function Lb(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,lm(t)):(n.next=s.next,s.next=n),t.interleaved=n,tr(e,r)}function tr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var br=!1;function um(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Db(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 Qn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $r(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,tr(e,n)}return s=r.interleaved,s===null?(t.next=t,lm(r)):(t.next=s.next,s.next=t),r.interleaved=t,tr(e,n)}function tu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qp(e,n)}}function jy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vu(e,t,n,r){var s=e.updateQueue;br=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(h=t,f=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(f,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,h=typeof y=="function"?y.call(f,d,h):y,h==null)break e;d=Se({},d,h);break e;case 2:br=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Ps|=o,e.lanes=o,e.memoizedState=d}}function Ny(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(N(191,s));s.call(r)}}}var Ga={},On=Yr(Ga),ga=Yr(Ga),ya=Yr(Ga);function ds(e){if(e===Ga)throw Error(N(174));return e}function cm(e,t){switch(de(ya,t),de(ga,e),de(On,Ga),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gh(t,e)}pe(On),de(On,t)}function Ki(){pe(On),pe(ga),pe(ya)}function Mb(e){ds(ya.current);var t=ds(On.current),n=Gh(t,e.type);t!==n&&(de(ga,e),de(On,n))}function dm(e){ga.current===e&&(pe(On),pe(ga))}var xe=Yr(0);function zu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Id=[];function hm(){for(var e=0;e<Id.length;e++)Id[e]._workInProgressVersionPrimary=null;Id.length=0}var nu=ar.ReactCurrentDispatcher,Ld=ar.ReactCurrentBatchConfig,Rs=0,be=null,Le=null,Fe=null,Hu=!1,Go=!1,va=0,DA
vendor: 5,041 bytes, line 39
39=0;function Ye(){throw Error(N(321))}function fm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fn(e[n],t[n]))return!1;return!0}function pm(e,t,n,r,s,i){if(Rs=i,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nu.current=e===null||e.memoizedState===null?UA:BA,e=n(r,s),Go){i=0;do{if(Go=!1,va=0,25<=i)throw Error(N(301));i+=1,Fe=Le=null,t.updateQueue=null,nu.current=VA,e=n(r,s)}while(Go)}if(nu.current=Wu,t=Le!==null&&Le.next!==null,Rs=0,Fe=Le=be=null,Hu=!1,t)throw Error(N(300));return e}function mm(){var e=va!==0;return va=0,e}function wn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Bt(){if(Le===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Fe===null?be.memoizedState:Fe.next;if(t!==null)Fe=t,Le=e;else{if(e===null)throw Error(N(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function wa(e,t){return typeof t=="function"?t(e):t}function Dd(e){var t=Bt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Le,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((Rs&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,be.lanes|=c,Ps|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,fn(r,t.memoizedState)||(mt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,be.lanes|=i,Ps|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Md(e){var t=Bt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);fn(i,t.memoizedState)||(mt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $b(){}function Fb(e,t){var n=be,r=Bt(),s=t(),i=!fn(r.memoizedState,s);if(i&&(r.memoizedState=s,mt=!0),r=r.queue,gm(Vb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,xa(9,Bb.bind(null,n,r,s,t),void 0,null),Be===null)throw Error(N(349));Rs&30||Ub(n,t,s)}return s}function Ub(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bb(e,t,n,r){t.value=n,t.getSnapshot=r,zb(t)&&Hb(e)}function Vb(e,t,n){return n(function(){zb(t)&&Hb(e)})}function zb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fn(e,n)}catch{return!0}}function Hb(e){var t=tr(e,1);t!==null&&cn(t,e,1,-1)}function Iy(e){var t=wn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=FA.bind(null,be,e),[t.memoizedState,e]}function xa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wb(){return Bt().memoizedState}function ru(e,t,n,r){var s=wn();be.flags|=e,s.memoizedState=xa(1|t,n,void 0,r===void 0?null:r)}function Pc(e,t,n,r){var s=Bt();r=r===void 0?null:r;var i=void 0;if(Le!==null){var o=Le.memoizedState;if(i=o.destroy,r!==null&&fm(r,o.deps)){s.memoizedState=xa(t,n,i,r);return}}be.flags|=e,s.memoizedState=xa(1|t,n,i,r)}function Ly(e,t){return ru(8390656,8,e,t)}function gm(e,t){return Pc(2048,8,e,t)}function Kb(e,t){return Pc(4,2,e,t)}function Gb(e,t){return Pc(4,4,e,t)}function qb(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 Yb(e,t,n){return n=n!=null?n.concat([e]):null,Pc(4,4,qb.bind(null,t,e),n)}function ym(){}function Xb(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jb(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qb(e,t,n){return Rs&21?(fn(n,t)||(n=rb(),be.lanes|=n,Ps|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mt=!0),e.memoizedState=n)}function MA(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=Ld.transition;Ld.transition={};try{e(!1),t()}finally{oe=n,Ld.transition=r}}function Zb(){return Bt().memoizedState}function $A(e,t,n){var r=Ur(e);
vendor: 9,287 bytes, lines 39-41
39if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eS(e))tS(t,n);else if(n=Lb(e,t,n,r),n!==null){var s=lt();cn(n,e,r,s),nS(n,t,r)}}function FA(e,t,n){var r=Ur(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eS(e))tS(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,fn(a,o)){var l=t.interleaved;l===null?(s.next=s,lm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Lb(e,t,s,r),n!==null&&(s=lt(),cn(n,e,r,s),nS(n,t,r))}}function eS(e){var t=e.alternate;return e===be||t!==null&&t===be}function tS(e,t){Go=Hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qp(e,n)}}var Wu={readContext:Ut,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},UA={readContext:Ut,useCallback:function(e,t){return wn().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Ly,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ru(4194308,4,qb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return ru(4,2,e,t)},useMemo:function(e,t){var n=wn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$A.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=wn();return e={current:e},t.memoizedState=e},useState:Iy,useDebugValue:ym,useDeferredValue:function(e){return wn().memoizedState=e},useTransition:function(){var e=Iy(!1),t=e[0];return e=MA.bind(null,e[1]),wn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,s=wn();if(ge){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Be===null)throw Error(N(349));Rs&30||Ub(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ly(Vb.bind(null,r,i,e),[e]),r.flags|=2048,xa(9,Bb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wn(),t=Be.identifierPrefix;if(ge){var n=Jn,r=Xn;n=(r&~(1<<32-un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=va++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},BA={readContext:Ut,useCallback:Xb,useContext:Ut,useEffect:gm,useImperativeHandle:Yb,useInsertionEffect:Kb,useLayoutEffect:Gb,useMemo:Jb,useReducer:Dd,useRef:Wb,useState:function(){return Dd(wa)},useDebugValue:ym,useDeferredValue:function(e){var t=Bt();return Qb(t,Le.memoizedState,e)},useTransition:function(){var e=Dd(wa)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:$b,useSyncExternalStore:Fb,useId:Zb,unstable_isNewReconciler:!1},VA={readContext:Ut,useCallback:Xb,useContext:Ut,useEffect:gm,useImperativeHandle:Yb,useInsertionEffect:Kb,useLayoutEffect:Gb,useMemo:Jb,useReducer:Md,useRef:Wb,useState:function(){return Md(wa)},useDebugValue:ym,useDeferredValue:function(e){var t=Bt();return Le===null?t.memoizedState=e:Qb(t,Le.memoizedState,e)},useTransition:function(){var e=Md(wa)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:$b,useSyncExternalStore:Fb,useId:Zb,unstable_isNewReconciler:!1};function Zt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oc={isMounted:function(e){return(e=e._reactInternals)?Fs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),s=Ur(e),i=Qn(r,s);i.payload=t,n!=null&&(i.callback=n),t=$r(e,i,s),t!==null&&(cn(t,e,s,r),tu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),s=Ur(e),i=Qn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$r(e,i,s),t!==null&&(cn(t,e,s,r),tu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=Ur(e),s=Qn(n,r);s.tag=2,t!=null&&(s.callback=t),t=$r(e,s,r),t!==null&&(cn(t,e,r,n),tu(t,e,r))}};function Dy(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ha(n,r)||!ha(s,i):!0}function rS(e,t,n){var r=!1,s=zr,i=t.contextType;return typeof i=="object"&&i!==null?i=Ut(i):(s=yt(t)?Cs:tt.current,r=t.contextTypes,i=(r=r!=null)?zi(e,s):zr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function My(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oc.enqueueReplaceState(t,t.state,null)}function gf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},um(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Ut(i):(i=yt(t)?Cs:tt.current,s.context=zi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(mf(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Oc.enqueueReplaceState(s,s.state,null),Vu(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Gi(e,t){try{var n="",r=t;do n+=gC(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:e,source:t,stack:s,digest:null}}function $d(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zA=typeof WeakMap=="function"?WeakMap:Map;function sS(e,t,n){n=Qn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gu||(Gu=!0,Cf=r),yf(e,t)},n}function iS(e,t,n){n=Qn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){yf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){yf(e,t),typeof r!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function $y(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zA;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=rR.bind(null,e,t,n),t.then(e,e))}function Fy(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 Uy(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qn(-1,1),t.tag=2,$r(n,t,1))),n.lanes|=1),e)}var HA=ar.ReactCurrentOwner,mt=!1;function st(e,t,n,r){t.child=e===null?Ib(t,null,n,r):Wi(t,e.child,n,r)}function By(e,t,n,r,s){n=n.render;var i=t.ref;return Ti(t,s),r=pm(e,t,n,r,i,s),n=mm(),e!==null&&!mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,nr(e,t,s)):(ge&&n&&nm(t),t.flags|=1,st(e,t,r,s),t.child)}function Vy(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!km(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,oS(e,t,i,r,s)):(e=au(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ha,n(o,r)&&e.ref===t.ref)return nr(e,t,s)}return t.flags|=1,e=Br(i,r),e.ref=t.ref,e.return=t,t.child=e}function oS(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ha(i,r)&&e.ref===t.ref)if(mt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(mt=!0);else return t.lanes=e.lanes,nr(e,t,s)}return vf(e,t,n,r,s)}function aS(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(yi,xt),xt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(yi,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(yi,xt),xt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(yi,xt),xt|=r;return st(e,t,s,n),t.child}function lS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,852 bytes, line 41
41function vf(e,t,n,r,s){var i=yt(n)?Cs:tt.current;return i=zi(t,i),Ti(t,s),n=pm(e,t,n,r,i,s),r=mm(),e!==null&&!mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,nr(e,t,s)):(ge&&r&&nm(t),t.flags|=1,st(e,t,n,s),t.child)}function zy(e,t,n,r,s){if(yt(n)){var i=!0;Mu(t)}else i=!1;if(Ti(t,s),t.stateNode===null)su(e,t),rS(t,n,r),gf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ut(u):(u=yt(n)?Cs:tt.current,u=zi(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&My(t,o,r,u),br=!1;var h=t.memoizedState;o.state=h,Vu(t,r,o,s),l=t.memoizedState,a!==r||h!==l||gt.current||br?(typeof c=="function"&&(mf(t,n,c,r),l=t.memoizedState),(a=br||Dy(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Db(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Zt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ut(l):(l=yt(n)?Cs:tt.current,l=zi(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&My(t,o,r,l),br=!1,h=t.memoizedState,o.state=h,Vu(t,r,o,s);var y=t.memoizedState;a!==d||h!==y||gt.current||br?(typeof f=="function"&&(mf(t,n,f,r),y=t.memoizedState),(u=br||Dy(t,n,u,r,h,y,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return wf(e,t,n,r,i,s)}function wf(e,t,n,r,s,i){lS(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ay(t,n,!1),nr(e,t,i);r=t.stateNode,HA.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wi(t,e.child,null,i),t.child=Wi(t,null,a,i)):st(e,t,a,i),t.memoizedState=r.state,s&&Ay(t,n,!0),t.child}function uS(e){var t=e.stateNode;t.pendingContext?Cy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cy(e,t.context,!1),cm(e,t.containerInfo)}function Hy(e,t,n,r,s){return Hi(),sm(s),t.flags|=256,st(e,t,n,r),t.child}var xf={dehydrated:null,treeContext:null,retryLane:0};function bf(e){return{baseLanes:e,cachePool:null,transitions:null}}function cS(e,t,n){var r=t.pendingProps,s=xe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),de(xe,s&1),e===null)return ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ic(o,r,0,null),e=_s(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=bf(n),t.memoizedState=xf,e):vm(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return WA(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Br(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Br(a,i):(i=_s(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?bf(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=xf,r}return i=e.child,e=i.sibling,r=Br(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vm(e,t){return t=Ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sl(e,t,n,r){return r!==null&&sm(r),Wi(t,e.child,null,n),e=vm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function WA(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=$d(Error(N(422))),Sl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ic({mode:"visible",children:r.children},s,0,null),i=_s(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wi(t,e.child,null,o),t.child.memoizedState=bf(o),t.memoizedState=xf,i);if(!(t.mode&1))return Sl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(N(419)),r=$d(i,r,void 0),Sl(e,t,o,r)}
vendor: 4,307 bytes, line 41
41if(a=(o&e.childLanes)!==0,mt||a){if(r=Be,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,tr(e,s),cn(r,e,s,-1))}return Em(),r=$d(Error(N(421))),Sl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=sR.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,_t=Mr(s.nextSibling),Et=t,ge=!0,on=null,e!==null&&(It[Lt++]=Xn,It[Lt++]=Jn,It[Lt++]=As,Xn=e.id,Jn=e.overflow,As=t),t=vm(t,r.children),t.flags|=4096,t)}function Wy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pf(e.return,t,n)}function Fd(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function dS(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(st(e,t,r.children,n),r=xe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wy(e,n,t);else if(e.tag===19)Wy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(xe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&zu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Fd(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&zu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Fd(t,!0,n,null,i);break;case"together":Fd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function su(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ps|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Br(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Br(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KA(e,t,n){switch(t.tag){case 3:uS(t),Hi();break;case 5:Mb(t);break;case 1:yt(t.type)&&Mu(t);break;case 4:cm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;de(Uu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?cS(e,t,n):(de(xe,xe.current&1),e=nr(e,t,n),e!==null?e.sibling:null);de(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dS(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),de(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,aS(e,t,n)}return nr(e,t,n)}var hS,Sf,fS,pS;hS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Sf=function(){};fS=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ds(On.current);var i=null;switch(n){case"input":s=zh(e,s),r=zh(e,r),i=[];break;case"select":s=Se({},s,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":s=Kh(e,s),r=Kh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lu)}qh(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ia.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];
vendor: 5,266 bytes, line 41
41if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ia.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&fe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};pS=function(e,t,n,r){n!==r&&(t.flags|=4)};function Eo(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GA(e,t,n){var r=t.pendingProps;switch(rm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return yt(t.type)&&Du(),Xe(t),null;case 3:return r=t.stateNode,Ki(),pe(gt),pe(tt),hm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,on!==null&&(Pf(on),on=null))),Sf(e,t),Xe(t),null;case 5:dm(t);var s=ds(ya.current);if(n=t.type,e!==null&&t.stateNode!=null)fS(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Xe(t),null}if(e=ds(On.current),xl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Cn]=t,r[ma]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(s=0;s<Mo.length;s++)fe(Mo[s],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":ey(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":ny(r,i),fe("invalid",r)}qh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&wl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&wl(r.textContent,a,e),s=["children",""+a]):ia.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&fe("scroll",r)}switch(n){case"input":dl(r),ty(r,i,!0);break;case"textarea":dl(r),ry(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Lu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Cn]=t,e[ma]=r,hS(e,t,!1,!1),t.stateNode=e;e:{switch(o=Yh(n,r),n){case"dialog":fe("cancel",e),fe("close",e),s=r;break;case"iframe":case"object":case"embed":fe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Mo.length;s++)fe(Mo[s],e);s=r;break;case"source":fe("error",e),s=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),s=r;break;case"details":fe("toggle",e),s=r;break;case"input":ey(e,r),s=zh(e,r),fe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Se({},r,{value:void 0}),fe("invalid",e);break;case"textarea":ny(e,r),s=Kh(e,r),fe("invalid",e);break;default:s=r}qh(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Wx(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zx(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&oa(e,l):typeof l=="number"&&oa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ia.hasOwnProperty(i)?l!=null&&i==="onScroll"&&fe("scroll",e):l!=null&&Vp(e,i,l,o))}switch(n){case"input":dl(e),ty(e,r,!1);break;case"textarea":dl(e),ry(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Si(e,!!r.multiple,i,!1):r.defaultValue!=null&&Si(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Lu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,395 bytes, line 41
41return Xe(t),null;case 6:if(e&&t.stateNode!=null)pS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=ds(ya.current),ds(On.current),xl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Cn]=t,(i=r.nodeValue!==n)&&(e=Et,e!==null))switch(e.tag){case 3:wl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Cn]=t,t.stateNode=r}return Xe(t),null;case 13:if(pe(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&_t!==null&&t.mode&1&&!(t.flags&128))jb(),Hi(),t.flags|=98560,i=!1;else if(i=xl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[Cn]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),i=!1}else on!==null&&(Pf(on),on=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||xe.current&1?De===0&&(De=3):Em())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return Ki(),Sf(e,t),e===null&&fa(t.stateNode.containerInfo),Xe(t),null;case 10:return am(t.type._context),Xe(t),null;case 17:return yt(t.type)&&Du(),Xe(t),null;case 19:if(pe(xe),i=t.memoizedState,i===null)return Xe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Eo(i,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zu(e),o!==null){for(t.flags|=128,Eo(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>qi&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304)}else{if(!r)if(e=zu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ge)return Xe(t),null}else 2*Ae()-i.renderingStartTime>qi&&n!==1073741824&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=xe.current,de(xe,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return _m(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function qA(e,t){switch(rm(t),t.tag){case 1:return yt(t.type)&&Du(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(),pe(gt),pe(tt),hm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dm(t),null;case 13:if(pe(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(xe),null;case 4:return Ki(),null;case 10:return am(t.type._context),null;case 22:case 23:return _m(),null;case 24:return null;default:return null}}var _l=!1,et=!1,YA=typeof WeakSet=="function"?WeakSet:Set,F=null;function gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function _f(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Ky=!1;function XA(e,t){if(of=ju,e=wb(),tm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(af={focusedElem:e,selectionRange:n},ju=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,b=y.memoizedState,w=t.stateNode,v=w.getSnapshotBeforeUpdate(t.elementType===t.type?g:Zt(t.type,g),b);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){Te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return y=Ky,Ky=!1,y}function qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&_f(t,n,i)}s=s.next}while(s!==r)}}function jc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ef(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mS(e){var t=e.alternate;t!==null&&(e.alternate=null,mS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Cn],delete t[ma],delete t[cf],delete t[jA],delete t[NA])),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 gS(e){return e.tag===5||e.tag===3||e.tag===4}function Gy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gS(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 kf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lu));else if(r!==4&&(e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}function Tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}var Ve=null,sn=!1;function pr(e,t,n){for(n=n.child;n!==null;)yS(e,t,n),n=n.sibling}function yS(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ec,n)}catch{}switch(n.tag){case 5:et||gi(n,t);case 6:var r=Ve,s=sn;Ve=null,pr(e,t,n),Ve=r,sn=s,Ve!==null&&(sn?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(sn?(e=Ve,n=n.stateNode,e.nodeType===8?jd(e.parentNode,n):e.nodeType===1&&jd(e,n),ca(e)):jd(Ve,n.stateNode));break;case 4:r=Ve,s=sn,Ve=n.stateNode.containerInfo,sn=!0,pr(e,t,n),Ve=r,sn=s;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&_f(n,t,o),s=s.next}while(s!==r)}pr(e,t,n);break;case 1:if(!et&&(gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Te(n,t,a)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,pr(e,t,n),et=r):pr(e,t,n);break;default:pr(e,t,n)}}function qy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YA),t.forEach(function(r){var s=iR.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,sn=!1;break e;case 3:Ve=a.stateNode.containerInfo,sn=!0;break e;case 4:Ve=a.stateNode.containerInfo,sn=!0;break e}a=a.return}if(Ve===null)throw Error(N(160));yS(i,o,s),Ve=null,sn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Te(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vS(t,e),t=t.sibling}function vS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),vn(e),r&4){try{qo(3,e,e.return),jc(3,e)}catch(g){Te(e,e.return,g)}try{qo(5,e,e.return)}catch(g){Te(e,e.return,g)}}break;case 1:Gt(t,e),vn(e),r&512&&n!==null&&gi(n,n.return);break;case 5:if(Gt(t,e),vn(e),r&512&&n!==null&&gi(n,n.return),e.flags&32){var s=e.stateNode;try{oa(s,"")}catch(g){Te(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Ux(s,i),Yh(a,o);var u=Yh(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Wx(s,d):c==="dangerouslySetInnerHTML"?zx(s,d):c==="children"?oa(s,d):Vp(s,c,d,u)}switch(a){case"input":Hh(s,i);break;case"textarea":Bx(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Si(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?Si(s,!!i.multiple,i.defaultValue,!0):Si(s,!!i.multiple,i.multiple?[]:"",!1))}s[ma]=i}catch(g){Te(e,e.return,g)}}break;case 6:if(Gt(t,e),vn(e),r&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){Te(e,e.return,g)}}break;case 3:if(Gt(t,e),vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ca(t.containerInfo)}catch(g){Te(e,e.return,g)}break;case 4:Gt(t,e),vn(e);break;case 13:Gt(t,e),vn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(bm=Ae())),r&4&&qy(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(et=(u=et)||c,Gt(t,e),et=u):Gt(t,e),vn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(h=F,f=h.child,h.tag){case 0:case 11:case 14:case 15:qo(4,h,h.return);break;case 1:gi(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Te(r,n,g)}}break;case 5:gi(h,h.return);break;case 22:if(h.memoizedState!==null){Xy(d);continue}}f!==null?(f.return=h,F=f):Xy(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Hx("display",o))}catch(g){Te(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Te(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Gt(t,e),vn(e),r&4&&qy(e);break;case 21:break;default:Gt(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gS(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(oa(s,""),r.flags&=-33);var i=Gy(e);Tf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Gy(e);kf(e,a,o);break;default:throw Error(N(161))}}catch(l){Te(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JA(e,t,n){F=e,wS(e)}function wS(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||_l;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||et;a=_l;var u=et;if(_l=o,(et=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Jy(s):l!==null?(l.return=o,F=l):Jy(s);for(;i!==null;)F=i,wS(i),i=i.sibling;F=s,_l=a,et=u}Yy(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Yy(e)}}function Yy(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:et||jc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!et)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Zt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ny(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ny(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ca(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}et||t.flags&512&&Ef(t)}catch(h){Te(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Xy(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Jy(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jc(4,t)}catch(l){Te(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Te(t,s,l)}}var i=t.return;try{Ef(t)}catch(l){Te(t,i,l)}break;case 5:var o=t.return;try{Ef(t)}catch(l){Te(t,o,l)}}}catch(l){Te(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var QA=Math.ceil,Ku=ar.ReactCurrentDispatcher,wm=ar.ReactCurrentOwner,$t=ar.ReactCurrentBatchConfig,re=0,Be=null,je=null,We=0,xt=0,yi=Yr(0),De=0,ba=null,Ps=0,Nc=0,xm=0,Yo=null,pt=null,bm=0,qi=1/0,Hn=null,Gu=!1,Cf=null,Fr=null,El=!1,jr=null,qu=0,Xo=0,Af=null,iu=-1,ou=0;function lt(){return re&6?Ae():iu!==-1?iu:iu=Ae()}function Ur(e){return e.mode&1?re&2&&We!==0?We&-We:LA.transition!==null?(ou===0&&(ou=rb()),ou):(e=oe,e!==0||(e=window.event,e=e===void 0?16:cb(e.type)),e):1}function cn(e,t,n,r){if(50<Xo)throw Xo=0,Af=null,Error(N(185));Ha(e,n,r),(!(re&2)||e!==Be)&&(e===Be&&(!(re&2)&&(Nc|=n),De===4&&_r(e,We)),vt(e,r),n===1&&re===0&&!(t.mode&1)&&(qi=Ae()+500,Rc&&Xr()))}function vt(e,t){var n=e.callbackNode;LC(e,t);var r=Ou(e,e===Be?We:0);if(r===0)n!==null&&oy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oy(n),t===1)e.tag===0?IA(Qy.bind(null,e)):Rb(Qy.bind(null,e)),PA(function(){!(re&6)&&Xr()}),n=null;else{switch(sb(r)){case 1:n=Gp;break;case 4:n=tb;break;case 16:n=Pu;break;case 536870912:n=nb;break;default:n=Pu}n=CS(n,xS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xS(e,t){if(iu=-1,ou=0,re&6)throw Error(N(327));var n=e.callbackNode;if(Ci()&&e.callbackNode!==n)return null;var r=Ou(e,e===Be?We:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Yu(e,r);else{t=r;var s=re;re|=2;var i=SS();(Be!==e||We!==t)&&(Hn=null,qi=Ae()+500,Ss(e,t));do try{tR();break}catch(a){bS(e,a)}while(!0);om(),Ku.current=i,re=s,je!==null?t=0:(Be=null,We=0,t=De)}if(t!==0){if(t===2&&(s=ef(e),s!==0&&(r=s,t=Rf(e,s))),t===1)throw n=ba,Ss(e,0),_r(e,r),vt(e,Ae()),n;if(t===6)_r(e,r);else{if(s=e.current.alternate,!(r&30)&&!ZA(s)&&(t=Yu(e,r),t===2&&(i=ef(e),i!==0&&(r=i,t=Rf(e,i))),t===1))throw n=ba,Ss(e,0),_r(e,r),vt(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:os(e,pt,Hn);break;case 3:if(_r(e,r),(r&130023424)===r&&(t=bm+500-Ae(),10<t)){if(Ou(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=uf(os.bind(null,e,pt,Hn),t);break}os(e,pt,Hn);break;case 4:if(_r(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-un(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QA(r/1960))-r,10<r){e.timeoutHandle=uf(os.bind(null,e,pt,Hn),r);break}os(e,pt,Hn);break;case 5:os(e,pt,Hn);break;default:throw Error(N(329))}}}return vt(e,Ae()),e.callbackNode===n?xS.bind(null,e):null}function Rf(e,t){var n=Yo;return e.current.memoizedState.isDehydrated&&(Ss(e,t).flags|=256),e=Yu(e,t),e!==2&&(t=pt,pt=n,t!==null&&Pf(t)),e}function Pf(e){pt===null?pt=e:pt.push.apply(pt,e)}function ZA(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!fn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _r(e,t){for(t&=~xm,t&=~Nc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-un(t),r=1<<n;e[n]=-1,t&=~r}}function Qy(e){if(re&6)throw Error(N(327));Ci();var t=Ou(e,0);if(!(t&1))return vt(e,Ae()),null;var n=Yu(e,t);if(e.tag!==0&&n===2){var r=ef(e);r!==0&&(t=r,n=Rf(e,r))}if(n===1)throw n=ba,Ss(e,0),_r(e,t),vt(e,Ae()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,os(e,pt,Hn),vt(e,Ae()),null}function Sm(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(qi=Ae()+500,Rc&&Xr())}}function Os(e){jr!==null&&jr.tag===0&&!(re&6)&&Ci();var t=re;re|=1;var n=$t.transition,r=oe;try{if($t.transition=null,oe=1,e)return e()}finally{oe=r,$t.transition=n,re=t,!(re&6)&&Xr()}}function _m(){xt=yi.current,pe(yi)}function Ss(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,RA(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(rm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Du();break;case 3:Ki(),pe(gt),pe(tt),hm();break;case 5:dm(r);break;case 4:Ki();break;case 13:pe(xe);break;case 19:pe(xe);break;case 10:am(r.type._context);break;case 22:case 23:_m()}n=n.return}if(Be=e,je=e=Br(e.current,null),We=xt=t,De=0,ba=null,xm=Nc=Ps=0,pt=Yo=null,cs!==null){for(t=0;t<cs.length;t++)if(n=cs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}cs=null}return e}function bS(e,t){do{var n=je;try{if(om(),nu.current=Wu,Hu){for(var r=be.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Hu=!1}if(Rs=0,Fe=Le=be=null,Go=!1,va=0,wm.current=null,n===null||n.return===null){De=1,ba=t,je=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=We,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Fy(o);if(f!==null){f.flags&=-257,Uy(f,o,a,i,t),f.mode&1&&$y(i,u,t),t=f,l=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(l),t.updateQueue=g}else y.add(l);break e}else{if(!(t&1)){$y(i,u,t),Em();break e}l=Error(N(426))}}else if(ge&&a.mode&1){var b=Fy(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Uy(b,o,a,i,t),sm(Gi(l,a));break e}}i=l=Gi(l,a),De!==4&&(De=2),Yo===null?Yo=[i]:Yo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=sS(i,l,t);jy(i,w);break e;case 1:a=l;var v=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Fr===null||!Fr.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=iS(i,a,t);jy(i,S);break e}}i=i.return}while(i!==null)}ES(n)}catch(_){t=_,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function SS(){var e=Ku.current;return Ku.current=Wu,e===null?Wu:e}function Em(){(De===0||De===3||De===2)&&(De=4),Be===null||!(Ps&268435455)&&!(Nc&268435455)||_r(Be,We)}function Yu(e,t){var n=re;re|=2;var r=SS();(Be!==e||We!==t)&&(Hn=null,Ss(e,t));do try{eR();break}catch(s){bS(e,s)}while(!0);if(om(),re=n,Ku.current=r,je!==null)throw Error(N(261));return Be=null,We=0,De}function eR(){for(;je!==null;)_S(je)}function tR(){for(;je!==null&&!TC();)_S(je)}function _S(e){var t=TS(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?ES(e):je=t,wm.current=null}function ES(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qA(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,je=null;return}}else if(n=GA(n,t,xt),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);De===0&&(De=5)}function os(e,t,n){var r=oe,s=$t.transition;try{$t.transition=null,oe=1,nR(e,t,n,r)}finally{$t.transition=s,oe=r}return null}function nR(e,t,n,r){do Ci();while(jr!==null);if(re&6)throw Error(N(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(DC(e,i),e===Be&&(je=Be=null,We=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||El||(El=!0,CS(Pu,function(){return Ci(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=$t.transition,$t.transition=null;var o=oe;oe=1;var a=re;re|=4,wm.current=null,XA(e,n),vS(n,e),SA(af),ju=!!of,af=of=null,e.current=n,JA(n),CC(),re=a,oe=o,$t.transition=i}else e.current=n;if(El&&(El=!1,jr=e,qu=s),i=e.pendingLanes,i===0&&(Fr=null),PC(n.stateNode),vt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Gu)throw Gu=!1,e=Cf,Cf=null,e;return qu&1&&e.tag!==0&&Ci(),i=e.pendingLanes,i&1?e===Af?Xo++:(Xo=0,Af=e):Xo=0,Xr(),null}function Ci(){if(jr!==null){var e=sb(qu),t=$t.transition,n=oe;try{if($t.transition=null,oe=16>e?16:e,jr===null)var r=!1;else{if(e=jr,jr=null,qu=0,re&6)throw Error(N(331));var s=re;for(re|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:qo(8,c,i)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var h=c.sibling,f=c.return;if(mS(c),c===u){F=null;break}if(h!==null){h.return=f,F=h;break}F=f}}}var y=i.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:qo(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,F=w;break e}F=i.return}}var v=e.current;for(F=v;F!==null;){o=F;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,F=x;else e:for(o=v;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jc(9,a)}}catch(_){Te(a,a.return,_)}if(a===o){F=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,F=S;break e}F=a.return}}if(re=s,Xr(),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(Ec,e)}catch{}r=!0}return r}finally{oe=n,$t.transition=t}}return!1}function Zy(e,t,n){t=Gi(n,t),t=sS(e,t,1),e=$r(e,t,1),t=lt(),e!==null&&(Ha(e,1,t),vt(e,t))}function Te(e,t,n){if(e.tag===3)Zy(e,e,n);else for(;t!==null;){if(t.tag===3){Zy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){e=Gi(n,e),e=iS(t,e,1),t=$r(t,e,1),e=lt(),t!==null&&(Ha(t,1,e),vt(t,e));break}}t=t.return}}function rR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(We&n)===n&&(De===4||De===3&&(We&130023424)===We&&500>Ae()-bm?Ss(e,0):xm|=n),vt(e,t)}function kS(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var n=lt();e=tr(e,t),e!==null&&(Ha(e,t,n),vt(e,n))}function sR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kS(e,n)}function iR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),kS(e,n)}var TS;TS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)mt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mt=!1,KA(e,t,n);mt=!!(e.flags&131072)}else mt=!1,ge&&t.flags&1048576&&Pb(t,Fu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;su(e,t),e=t.pendingProps;var s=zi(t,tt.current);Ti(t,n),s=pm(null,t,r,e,s,n);var i=mm();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(i=!0,Mu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,um(t),s.updater=Oc,t.stateNode=s,s._reactInternals=t,gf(t,r,e,n),t=wf(null,t,r,!0,i,n)):(t.tag=0,ge&&i&&nm(t),st(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(su(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=aR(r),e=Zt(r,e),s){case 0:t=vf(null,t,r,e,n);break e;case 1:t=zy(null,t,r,e,n);break e;case 11:t=By(null,t,r,e,n);break e;case 14:t=Vy(null,t,r,Zt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Zt(r,s),vf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Zt(r,s),zy(e,t,r,s,n);case 3:e:{if(uS(t),e===null)throw Error(N(387));
vendor: 4,729 bytes, line 41
41r=t.pendingProps,i=t.memoizedState,s=i.element,Db(e,t),Vu(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Gi(Error(N(423)),t),t=Hy(e,t,r,n,s);break e}else if(r!==s){s=Gi(Error(N(424)),t),t=Hy(e,t,r,n,s);break e}else for(_t=Mr(t.stateNode.containerInfo.firstChild),Et=t,ge=!0,on=null,n=Ib(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hi(),r===s){t=nr(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return Mb(t),e===null&&ff(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,lf(r,s)?o=null:i!==null&&lf(r,i)&&(t.flags|=32),lS(e,t),st(e,t,o,n),t.child;case 6:return e===null&&ff(t),null;case 13:return cS(e,t,n);case 4:return cm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wi(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Zt(r,s),By(e,t,r,s,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,de(Uu,r._currentValue),r._currentValue=o,i!==null)if(fn(i.value,o)){if(i.children===s.children&&!gt.current){t=nr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Qn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),pf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}st(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ti(t,n),s=Ut(s),r=r(s),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,s=Zt(r,t.pendingProps),s=Zt(r.type,s),Vy(e,t,r,s,n);case 15:return oS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Zt(r,s),su(e,t),t.tag=1,yt(r)?(e=!0,Mu(t)):e=!1,Ti(t,n),rS(t,r,s),gf(t,r,s,n),wf(null,t,r,!0,e,n);case 19:return dS(e,t,n);case 22:return aS(e,t,n)}throw Error(N(156,t.tag))};function CS(e,t){return eb(e,t)}function oR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,r){return new oR(e,t,n,r)}function km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aR(e){if(typeof e=="function")return km(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hp)return 11;if(e===Wp)return 14}return 2}function Br(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function au(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")km(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ai:return _s(n.children,s,i,t);case zp:o=8,s|=8;break;case Fh:return e=Dt(12,n,t,s|2),e.elementType=Fh,e.lanes=i,e;case Uh:return e=Dt(13,n,t,s),e.elementType=Uh,e.lanes=i,e;case Bh:return e=Dt(19,n,t,s),e.elementType=Bh,e.lanes=i,e;case Mx:return Ic(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:o=10;break e;case Dx:o=9;break e;case Hp:o=11;break e;case Wp:o=14;break e;case xr:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Dt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function _s(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function Ic(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=Mx,e.lanes=n,e.stateNode={isHidden:!1},e}function Ud(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}
vendor: 4,357 bytes, line 41
41function Bd(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lR(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bd(0),this.expirationTimes=bd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Tm(e,t,n,r,s,i,o,a,l){return e=new lR(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},um(i),e}function uR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function AS(e){if(!e)return zr;e=e._reactInternals;e:{if(Fs(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(yt(n))return Ab(e,n,t)}return t}function RS(e,t,n,r,s,i,o,a,l){return e=Tm(n,r,!0,e,s,i,o,a,l),e.context=AS(null),n=e.current,r=lt(),s=Ur(n),i=Qn(r,s),i.callback=t??null,$r(n,i,s),e.current.lanes=s,Ha(e,s,r),vt(e,r),e}function Lc(e,t,n,r){var s=t.current,i=lt(),o=Ur(s);return n=AS(n),t.context===null?t.context=n:t.pendingContext=n,t=Qn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$r(s,t,o),e!==null&&(cn(e,s,o,i),tu(e,s,o)),o}function Xu(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 ev(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cm(e,t){ev(e,t),(e=e.alternate)&&ev(e,t)}function cR(){return null}var PS=typeof reportError=="function"?reportError:function(e){console.error(e)};function Am(e){this._internalRoot=e}Dc.prototype.render=Am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Lc(e,t,null,null)};Dc.prototype.unmount=Am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Os(function(){Lc(null,e,null,null)}),t[er]=null}};function Dc(e){this._internalRoot=e}Dc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ab();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sr.length&&t!==0&&t<Sr[n].priority;n++);Sr.splice(n,0,e),n===0&&ub(e)}};function Rm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tv(){}function dR(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Xu(o);i.call(u)}}var o=RS(t,r,e,0,null,!1,!1,"",tv);return e._reactRootContainer=o,e[er]=o.current,fa(e.nodeType===8?e.parentNode:e),Os(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Xu(l);a.call(u)}}var l=Tm(e,0,!1,null,null,!1,!1,"",tv);return e._reactRootContainer=l,e[er]=l.current,fa(e.nodeType===8?e.parentNode:e),Os(function(){Lc(t,l,n,r)}),l}function $c(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Xu(o);a.call(l)}}Lc(t,o,e,s)}else o=dR(n,t,e,s,r);return Xu(o)}ib=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Do(t.pendingLanes);n!==0&&(qp(t,n|1),vt(t,Ae()),!(re&6)&&(qi=Ae()+500,Xr()))}break;case 13:Os(function(){var r=tr(e,1);if(r!==null){var s=lt();cn(r,e,1,s)}}),Cm(e,1)}};Yp=function(e){if(e.tag===13){var t=tr(e,134217728);if(t!==null){var n=lt();cn(t,e,134217728,n)}Cm(e,134217728)}};ob=function(e){if(e.tag===13){var t=Ur(e),n=tr(e,t);if(n!==null){var r=lt();cn(n,e,t,r)}Cm(e,t)}};ab=function(){return oe};lb=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};
41Jh=function(e,t,n){switch(t){case"input":if(Hh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ac(r);if(!s)throw Error(N(90));Fx(r),Hh(r,s)}}}break;case"textarea":Bx(e,n);break;case"select":t=n.value,t!=null&&Si(e,!!n.multiple,t,!1)}};qx=Sm;Yx=Os;var hR={usingClientEntryPoint:!1,Events:[Ka,di,Ac,Kx,Gx,Sm]},ko={findFiberByHostInstance:us,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fR={bundleType:ko.bundleType,version:ko.version,rendererPackageName:ko.rendererPackageName,rendererConfig:ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qx(e),e===null?null:e.stateNode},findFiberByHostInstance:ko.findFiberByHostInstance||cR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kl.isDisabled&&kl.supportsFiber)try{Ec=kl.inject(fR),Pn=kl}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hR;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rm(t))throw Error(N(200));return uR(e,t,null,n)};Ct.createRoot=function(e,t){if(!Rm(e))throw Error(N(299));var n=!1,r="",s=PS;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Tm(e,1,!1,null,null,n,!1,r,s),e[er]=t.current,fa(e.nodeType===8?e.parentNode:e),new Am(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Qx(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return Os(e)};Ct.hydrate=function(e,t,n){if(!Mc(t))throw Error(N(200));return $c(null,e,t,!0,n)};Ct.hydrateRoot=function(e,t,n){if(!Rm(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=PS;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=RS(t,null,e,1,n??null,s,!1,i,o),e[er]=t.current,fa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Dc(t)};Ct.render=function(e,t,n){if(!Mc(t))throw Error(N(200));return $c(null,e,t,!1,n)};Ct.unmountComponentAtNode=function(e){if(!Mc(e))throw Error(N(40));return e._reactRootContainer?(Os(function(){$c(null,null,e,!1,function(){e._reactRootContainer=null,e[er]=null})}),!0):!1};Ct.unstable_batchedUpdates=Sm;Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Mc(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return $c(e,t,n,!1,r)};Ct.version="18.3.1-next-f1338f8080-20240426";function OS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OS)}catch(e){console.error(e)}}OS(),Ox.exports=Ct;var qa=Ox.exports;const jS=Va(qa);var NS,IS,nv=qa;IS=nv.createRoot,NS=nv.hydrateRoot;const pR="modulepreload",mR=function(e){return"/"+e},rv={},q=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=mR(l),l in rv)return;rv[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":pR,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};var Fc=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(){}},Uc=typeof window>"u"||"Deno"in globalThis;function en(){}function gR(e,t){return typeof e=="function"?e(t):e}function yR(e){return typeof e=="number"&&e>=0&&e!==1/0}function vR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Of(e,t){return typeof e=="function"?e(t):e}function wR(e,t){return typeof e=="function"?e(t):e}function sv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Pm(o,t.options))return!1}else if(!_a(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function iv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Sa(t.options.mutationKey)!==Sa(i))return!1}else if(!_a(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Pm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Sa)(e)}function Sa(e){return JSON.stringify(e,(t,n)=>jf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function _a(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_a(e[n],t[n])):!1}function LS(e,t){if(e===t)return e;const n=ov(e)&&ov(t);if(n||jf(e)&&jf(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<o;c++){const d=n?c:i[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=LS(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function ov(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jf(e){if(!av(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!av(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function av(e){return Object.prototype.toString.call(e)==="[object Object]"}function xR(e){return new Promise(t=>{setTimeout(t,e)})}function bR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?LS(e,t):t}function SR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _R(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Om=Symbol();function DS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Om?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ms,Tr,Ii,dx,ER=(dx=class extends Fc{constructor(){super();se(this,ms);se(this,Tr);se(this,Ii);Q(this,Ii,t=>{if(!Uc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Tr)||this.setEventListener(P(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Tr))==null||t.call(this),Q(this,Tr,void 0))}setEventListener(t){var n;Q(this,Ii,t),(n=P(this,Tr))==null||n.call(this),Q(this,Tr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,ms)!==t&&(Q(this,ms,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,912 bytes, line 41
41this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,ms)=="boolean"?P(this,ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ms=new WeakMap,Tr=new WeakMap,Ii=new WeakMap,dx),MS=new ER,Li,Cr,Di,hx,kR=(hx=class extends Fc{constructor(){super();se(this,Li,!0);se(this,Cr);se(this,Di);Q(this,Di,t=>{if(!Uc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Cr)||this.setEventListener(P(this,Di))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Cr))==null||t.call(this),Q(this,Cr,void 0))}setEventListener(t){var n;Q(this,Di,t),(n=P(this,Cr))==null||n.call(this),Q(this,Cr,t(this.setOnline.bind(this)))}setOnline(t){P(this,Li)!==t&&(Q(this,Li,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Li)}},Li=new WeakMap,Cr=new WeakMap,Di=new WeakMap,hx),Ju=new kR;function TR(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function CR(e){return Math.min(1e3*2**e,3e4)}function $S(e){return(e??"online")==="online"?Ju.isOnline():!0}var FS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vd(e){return e instanceof FS}function US(e){let t=!1,n=0,r=!1,s;const i=TR(),o=g=>{var b;r||(h(new FS(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>MS.isFocused()&&(e.networkMode==="always"||Ju.isOnline())&&e.canRun(),c=()=>$S(e.networkMode)&&e.canRun(),d=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),s==null||s(),i.resolve(g))},h=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),s==null||s(),i.reject(g))},f=()=>new Promise(g=>{var b;s=w=>{(r||u())&&g(w)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(w){g=Promise.reject(w)}Promise.resolve(g).then(d).catch(w=>{var E;if(r)return;const v=e.retry??(Uc?0:3),x=e.retryDelay??CR,S=typeof x=="function"?x(n,w):x,_=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,w);if(t||!_){h(w);return}n++,(E=e.onFail)==null||E.call(e,n,w),xR(S).then(()=>u()?void 0:f()).then(()=>{t?h(w):y()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():f().then(y),i)}}var AR=e=>setTimeout(e,0);function RR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=AR;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var it=RR(),gs,fx,BS=(fx=class{constructor(){se(this,gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yR(this.gcTime)&&Q(this,gs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Uc?1/0:5*60*1e3))}clearGcTimeout(){P(this,gs)&&(clearTimeout(P(this,gs)),Q(this,gs,void 0))}},gs=new WeakMap,fx),Mi,ys,Nt,vs,Ze,Ua,ws,nn,Vn,px,PR=(px=class extends BS{constructor(t){super();se(this,nn);se(this,Mi);se(this,ys);se(this,Nt);se(this,vs);se(this,Ze);se(this,Ua);se(this,ws);Q(this,ws,!1),Q(this,Ua,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,vs,t.client),Q(this,Nt,P(this,vs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,Mi,jR(this.options)),this.state=t.state??P(this,Mi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Ze))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Ua),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Nt).remove(this)}setData(t,n){const r=bR(this.state.data,t,this.options);return qe(this,nn,Vn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){qe(this,nn,Vn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=P(this,Ze))==null?void 0:r.promise;return(s=P(this,Ze))==null||s.cancel(t),n?n.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Mi))}isActive(){return this.observers.some(t=>wR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Om||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 41
41Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Of(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!vR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,Nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Ze)&&(P(this,ws)?P(this,Ze).cancel({revert:!0}):P(this,Ze).cancelRetry()),this.scheduleGc()),P(this,Nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||qe(this,nn,Vn).call(this,{type:"invalidate"})}
vendor: 6,523 bytes, line 41
41fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Ze))return P(this,Ze).continueRetry(),P(this,Ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Q(this,ws,!0),r.signal)})},i=()=>{const h=DS(this.options,n),y=(()=>{const g={client:P(this,vs),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return Q(this,ws,!1),this.options.persister?this.options.persister(h,y,this):h(y)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,vs),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),Q(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&qe(this,nn,Vn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,y,g,b;Vd(h)&&h.silent||qe(this,nn,Vn).call(this,{type:"error",error:h}),Vd(h)||((y=(f=P(this,Nt).config).onError)==null||y.call(f,h,this),(b=(g=P(this,Nt).config).onSettled)==null||b.call(g,this.state.data,h,this)),this.scheduleGc()};return Q(this,Ze,US({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,y,g,b;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(w){l(w);return}(y=(f=P(this,Nt).config).onSuccess)==null||y.call(f,h,this),(b=(g=P(this,Nt).config).onSettled)==null||b.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{qe(this,nn,Vn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{qe(this,nn,Vn).call(this,{type:"pause"})},onContinue:()=>{qe(this,nn,Vn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,Ze).start()}},Mi=new WeakMap,ys=new WeakMap,Nt=new WeakMap,vs=new WeakMap,Ze=new WeakMap,Ua=new WeakMap,ws=new WeakMap,nn=new WeakSet,Vn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...OR(r.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,ys,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Vd(s)&&s.revert&&P(this,ys)?{...P(this,ys),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),it.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,Nt).notify({query:this,type:"updated",action:t})})},px);function OR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$S(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Sn,mx,NR=(mx=class extends Fc{constructor(t={}){super();se(this,Sn);this.config=t,Q(this,Sn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Pm(s,n);let o=this.get(i);return o||(o=new PR({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,Sn).has(t.queryHash)||(P(this,Sn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Sn).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Sn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){it.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Sn).get(t)}getAll(){return[...P(this,Sn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>sv(t,r)):n}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){it.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Sn=new WeakMap,mx),_n,rt,xs,En,yr,gx,IR=(gx=class extends BS{constructor(t){super();se(this,En);se(this,_n);se(this,rt);se(this,xs);this.mutationId=t.mutationId,Q(this,rt,t.mutationCache),Q(this,_n,[]),this.state=t.state||LR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,_n).includes(t)||(P(this,_n).push(t),this.clearGcTimeout(),P(this,rt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,_n,P(this,_n).filter(n=>n!==t)),this.scheduleGc(),P(this,rt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,_n).length||(this.state.status==="pending"?this.scheduleGc():P(this,rt).remove(this))}continue(){var t;return((t=P(this,xs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,c,d,h,f,y,g,b,w,v,x,S,_,E,k,T;const n=()=>{qe(this,En,yr).call(this,{type:"continue"})};Q(this,xs,US({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,A)=>{qe(this,En,yr).call(this,{type:"failed",failureCount:O,error:A})},onPause:()=>{qe(this,En,yr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,rt).canRun(this)}));const r=this.state.status==="pending",s=!P(this,xs).canStart();try{if(r)n();else{qe(this,En,yr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=P(this,rt).config).onMutate)==null?void 0:o.call(i,t,this));
41const A=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));A!==this.state.context&&qe(this,En,yr).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const O=await P(this,xs).start();return await((c=(u=P(this,rt).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,O,t,this.state.context)),await((y=(f=P(this,rt).config).onSettled)==null?void 0:y.call(f,O,null,this.state.variables,this.state.context,this)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,O,null,t,this.state.context)),qe(this,En,yr).call(this,{type:"success",data:O}),O}catch(O){try{throw await((v=(w=P(this,rt).config).onError)==null?void 0:v.call(w,O,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,O,t,this.state.context)),await((E=(_=P(this,rt).config).onSettled)==null?void 0:E.call(_,void 0,O,this.state.variables,this.state.context,this)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,void 0,O,t,this.state.context)),O}finally{qe(this,En,yr).call(this,{type:"error",error:O})}}finally{P(this,rt).runNext(this)}}},_n=new WeakMap,rt=new WeakMap,xs=new WeakMap,En=new WeakSet,yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),it.batch(()=>{P(this,_n).forEach(r=>{r.onMutationUpdate(t)}),P(this,rt).notify({mutation:this,type:"updated",action:t})})},gx);function LR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yn,rn,Ba,yx,DR=(yx=class extends Fc{constructor(t={}){super();se(this,Yn);se(this,rn);se(this,Ba);this.config=t,Q(this,Yn,new Set),Q(this,rn,new Map),Q(this,Ba,0)}build(t,n,r){const s=new IR({mutationCache:this,mutationId:++ll(this,Ba)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,Yn).add(t);const n=Tl(t);if(typeof n=="string"){const r=P(this,rn).get(n);r?r.push(t):P(this,rn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Yn).delete(t)){const n=Tl(t);if(typeof n=="string"){const r=P(this,rn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&P(this,rn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Tl(t);if(typeof n=="string"){const r=P(this,rn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Tl(t);if(typeof n=="string"){const s=(r=P(this,rn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{P(this,Yn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Yn).clear(),P(this,rn).clear()})}getAll(){return Array.from(P(this,Yn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>iv(n,r))}findAll(t={}){return this.getAll().filter(n=>iv(t,n))}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return it.batch(()=>Promise.all(t.map(n=>n.continue().catch(en))))}},Yn=new WeakMap,rn=new WeakMap,Ba=new WeakMap,yx);function Tl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function lv(e){return{onFetch:(t,n)=>{var c,d,h,f,y;const r=t.options,s=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)}
vendor: 4,482 bytes, line 41
41)},w=DS(t.options,t.fetchOptions),v=async(x,S,_)=>{if(g)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return b($),$})(),T=await w(k),{maxPages:O}=t.options,A=_?_R:SR;return{pages:A(x.pages,T,O),pageParams:A(x.pageParams,S,O)}};if(s&&i.length){const x=s==="backward",S=x?MR:uv,_={pages:i,pageParams:o},E=S(r,_);a=await v(_,E,x)}else{const x=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:uv(r,a);if(l>0&&S==null)break;a=await v(a,S),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function uv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function MR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ee,Ar,Rr,$i,Fi,Pr,Ui,Bi,vx,$R=(vx=class{constructor(e={}){se(this,Ee);se(this,Ar);se(this,Rr);se(this,$i);se(this,Fi);se(this,Pr);se(this,Ui);se(this,Bi);Q(this,Ee,e.queryCache||new NR),Q(this,Ar,e.mutationCache||new DR),Q(this,Rr,e.defaultOptions||{}),Q(this,$i,new Map),Q(this,Fi,new Map),Q(this,Pr,0)}mount(){ll(this,Pr)._++,P(this,Pr)===1&&(Q(this,Ui,MS.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onFocus())})),Q(this,Bi,Ju.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onOnline())})))}unmount(){var e,t;ll(this,Pr)._--,P(this,Pr)===0&&((e=P(this,Ui))==null||e.call(this),Q(this,Ui,void 0),(t=P(this,Bi))==null||t.call(this),Q(this,Bi,void 0))}isFetching(e){return P(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Ar).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Of(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=P(this,Ee).get(r.queryHash),i=s==null?void 0:s.state.data,o=gR(t,i);if(o!==void 0)return P(this,Ee).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return it.batch(()=>P(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Ee);it.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Ee);return it.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=it.batch(()=>P(this,Ee).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(en).catch(en)}invalidateQueries(e,t={}){return it.batch(()=>(P(this,Ee).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=it.batch(()=>P(this,Ee).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(en)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(en)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Ee).build(this,t);return n.isStaleByTime(Of(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(en).catch(en)}fetchInfiniteQuery(e){return e.behavior=lv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(en).catch(en)}ensureInfiniteQueryData(e){return e.behavior=lv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ju.isOnline()?P(this,Ar).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Ee)}getMutationCache(){return P(this,Ar)}getDefaultOptions(){return P(this,Rr)}
41setDefaultOptions(e){Q(this,Rr,e)}setQueryDefaults(e,t){P(this,$i).set(Sa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,$i).values()],n={};return t.forEach(r=>{_a(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Fi).set(Sa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Fi).values()],n={};return t.forEach(r=>{_a(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Rr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Om&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Rr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ee).clear(),P(this,Ar).clear()}},Ee=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,$i=new WeakMap,Fi=new WeakMap,Pr=new WeakMap,Ui=new WeakMap,Bi=new WeakMap,vx),FR=m.createContext(void 0),UR=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(FR.Provider,{value:e,children:t}));/** 42 * react-router v7.18.3 43 * 44 * Copyright (c) Remix Software Inc. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE.md file in the root directory of this source tree. 48 * 49 * @license MIT 50 */var jm=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,VS=/^[\\/]{2}/;function BR(e,t){return t+e.replace(/\\/g,"/")}var cv="popstate";function dv(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function VR(e={}){function t(r,s){var u;let i=(u=s.state)==null?void 0:u.masked,{pathname:o,search:a,hash:l}=i||r.location;return Nf("",{pathname:o,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,s){return typeof s=="string"?s:js(s)}return HR(t,n,null,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zR(){return Math.random().toString(36).substring(2,10)}function hv(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Nf(e,t,n=null,r,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ro(t):t,state:n,key:t&&t.key||r||zR(),mask:s}}function js({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function HR(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){a="POP";let b=c(),w=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:w})}function h(b,w){a="PUSH";let v=dv(b)?b:Nf(g.location,b,w);u=c()+1;let x=hv(v,u),S=g.createHref(v.mask||v);try{o.pushState(x,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(S)}i&&l&&l({action:a,location:g.location,delta:1})}function f(b,w){a="REPLACE";let v=dv(b)?b:Nf(g.location,b,w);u=c();let x=hv(v,u),S=g.createHref(v.mask||v);o.replaceState(x,"",S),i&&l&&l({action:a,location:g.location,delta:0})}function y(b){return WR(s,b)}let g={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(cv,d),l=b,()=>{s.removeEventListener(cv,d),l=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let w=y(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:f,go(b){return o.go(b)}};return g}function WR(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ve(r,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:js(t);return s=s.replace(/ $/,"%20"),!n&&VS.test(s)&&(s=r+s),new URL(s,r)}function zS(e,t,n="/"){return KR(e,t,n,!1)}
50function KR(e,t,n,r,s){let i=typeof t=="string"?ro(t):t,o=rr(i.pathname||"/",n);if(o==null)return null;let a=GR(e),l=null,u=sP(o);for(let c=0;l==null&&c<a.length;++c)l=rP(a[c],u,r);return l}function GR(e){let t=HS(e);return qR(t),t}function HS(e,t=[],n=[],r="",s=!1){let i=(o,a,l=s,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&l)return;ve(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=dn([r,c.relativePath]),h=n.concat(c);o.children&&o.children.length>0&&(ve(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),HS(o.children,t,h,d,l)),!(o.path==null&&!o.index)&&t.push({path:d,score:tP(d,o.index),routesMeta:h.map((f,y)=>{let[g,b]=GS(f.relativePath,f.caseSensitive,y===h.length-1);return{...f,matcher:g,compiledParams:b}})})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let u of WS(o.path))i(o,a,!0,u)}),t}function WS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=WS(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function qR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var YR=/^:[\w-]+$/,XR=3,JR=2,QR=1,ZR=10,eP=-2,fv=e=>e==="*";function tP(e,t){let n=e.split("/"),r=n.length;return n.some(fv)&&(r+=eP),t&&(r+=JR),n.filter(s=>!fv(s)).reduce((s,i)=>s+(YR.test(i)?XR:i===""?QR:ZR),r)}function nP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function rP(e,t,n=!1){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d={path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h=l.matcher&&l.compiledParams?KS(d,c,l.matcher,l.compiledParams):Qu(d,c),f=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Qu({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!h)return null;
50Object.assign(s,h.params),o.push({params:s,pathname:dn([i,h.pathname]),pathnameBase:aP(dn([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=dn([i,h.pathnameBase]))}return o}function Qu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=GS(e.path,e.caseSensitive,e.end);return KS(e,t,n,r)}function KS(e,t,n,r){let s=t.match(n);if(!s)return null;let i=s[0],o=Yi(i,1),a=s.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},h)=>{if(c==="*"){let y=a[h]||"";o=Yi(i.slice(0,i.length-y.length),1)}const f=a[h];return d&&!f?u[c]=void 0:u[c]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function GS(e,t=!1,n=!0){Vt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l,u,c)=>{if(r.push({paramName:a,isOptional:l!=null}),l){let d=c.charAt(u+o.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function sP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function iP(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ro(e):e,i;return n?(n=qS(n),n.startsWith("/")||n.startsWith("\\")?i=pv(n.substring(1),"/"):i=pv(n,t)):i=t,{pathname:i,search:lP(r),hash:uP(s)}}function pv(e,t){let n=Yi(t).split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function zd(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nm(e){let t=oP(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Bc(e,t,n,r=!1){let s;typeof e=="string"?s=ro(e):(s={...e},ve(!s.pathname||!s.pathname.includes("?"),zd("?","pathname","search",s)),ve(!s.pathname||!s.pathname.includes("#"),zd("#","pathname","hash",s)),ve(!s.search||!s.search.includes("#"),zd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=iP(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var qS=e=>e.replace(/[\\/]{2,}/g,"/"),dn=e=>qS(e.join("/"));function Yi(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var aP=e=>Yi(e).replace(/^\/*/,"/"),lP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cP=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function dP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function hP(e){let t=e.map(n=>n.route.path).filter(Boolean);return dn(t)||"/"}var YS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function XS(e,t){let n=e;
50if(typeof n!="string"||!jm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(YS)try{let i=new URL(window.location.href),o=VS.test(n)?new URL(BR(n,i.protocol)):new URL(n),a=rr(o.pathname,t);o.origin===i.origin&&a!=null?n=a+o.search+o.hash:s=!0}catch{Vt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mv=new URL("http://localhost");function Im(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),mv)}catch{return mv}}function Hd(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function fP(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===""||e.slice(n.length).startsWith("//"):!1}function Lm(e,t,n,r){let s=null;try{s=e==null?null:new URL(e,n)}catch{}let i=new URL(t,n),o=s!=null&&!Hd(s,n),a=!Hd(i,n);if(r==="reject"){if(o||a)throw new Error("External navigation is not allowed")}else if(a&&(s==null||!fP(e,s)||!Hd(s,i)))throw new Error("External navigation is not allowed")}var JS=["POST","PUT","PATCH","DELETE"];new Set(JS);var pP=["GET",...JS];new Set(pP);var mP=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function gP(e){try{return mP.includes(new URL(e).protocol)}catch{return!1}}var so=m.createContext(null);so.displayName="DataRouter";var Vc=m.createContext(null);Vc.displayName="DataRouterState";var QS=m.createContext(!1);function yP(){return m.useContext(QS)}var ZS=m.createContext({isTransitioning:!1});ZS.displayName="ViewTransition";var vP=m.createContext(new Map);vP.displayName="Fetchers";var wP=m.createContext(null);wP.displayName="Await";var Rt=m.createContext(null);Rt.displayName="Navigation";var Ya=m.createContext(null);Ya.displayName="Location";var gn=m.createContext({outlet:null,matches:[],isDataRoute:!1});gn.displayName="Route";var Dm=m.createContext(null);Dm.displayName="RouteError";var e_="REACT_ROUTER_ERROR",xP="REDIRECT",bP="ROUTE_ERROR_RESPONSE";function SP(e){if(e.startsWith(`${e_}:${xP}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function _P(e){if(e.startsWith(`${e_}:${bP}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new cP(t.status,t.statusText,t.data)}catch{}}function EP(e,{relative:t}={}){ve(io(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m.useContext(Rt),{hash:s,pathname:i,search:o}=Xa(e,{relative:t}),a=i;return n!=="/"&&(a=i==="/"?n:dn([n,i])),r.createHref({pathname:a,search:o,hash:s})}function io(){return m.useContext(Ya)!=null}function Me(){return ve(io(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(Ya).location}var t_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function n_(e){m.useContext(Rt).static||m.useLayoutEffect(e)}function Mm(){let{isDataRoute:e}=m.useContext(gn);return e?MP():kP()}function kP(){ve(io(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(so),{basename:t,navigator:n}=m.useContext(Rt),{matches:r}=m.useContext(gn),{pathname:s}=Me(),i=JSON.stringify(Nm(r)),o=m.useRef(!1);return n_(()=>{o.current=!0}),m.useCallback((l,u={})=>{if(Vt(o.current,t_),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=Bc(l,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:dn([t,c.pathname])),Lm(typeof l=="string"?l:js(l),n.createHref(c),Im(n),"reject"),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,s,e])}m.createContext(null);function _z(){let{matches:e}=m.useContext(gn),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Xa(e,{relative:t}={}){let{matches:n}=m.useContext(gn),{pathname:r}=Me(),s=JSON.stringify(Nm(n));return m.useMemo(()=>Bc(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function TP(e,t){return r_(e,t)}function r_(e,t,n){var b;ve(io(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=m.useContext(Rt),{matches:s}=m.useContext(gn),i=s[s.length-1],o=i?i.params:{},a=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let w=u&&u.path||"";i_(a,!u||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 51 52Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let c=Me(),d;if(t){let w=typeof t=="string"?ro(t):t;ve(l==="/"||((b=w.pathname)==null?void 0:b.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${w.pathname}" was given in the \`location\` prop.`),d=w}else d=c;let h=d.pathname||"/",f=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=n&&n.state.matches.length?n.state.matches.map(w=>Object.assign(w,{route:n.manifest[w.route.id]||w.route})):zS(e,{pathname:f});Vt(u||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Vt(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=OP(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:dn([l,r.encodeLocation?r.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:dn([l,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),s,n);return t&&g?m.createElement(Ya.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function CP(){let e=DP(),t=dP(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=m.createElement(m.Fragment,null,m.createElement("p",null,"ð¿ Hey developer ð"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:i},"ErrorBoundary")," or"," ",m.createElement("code",{style:i},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application
52Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:s},n):null,o)}var AP=m.createElement(CP,null),s_=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=_P(e.digest);n&&(e=n)}let t=e!==void 0?m.createElement(gn.Provider,{value:this.props.routeContext},m.createElement(Dm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(RP,{error:e},t):t}};s_.contextType=QS;var Wd=new WeakMap;function RP({children:e,error:t}){let{basename:n,navigator:r}=m.useContext(Rt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let s=SP(t.digest);if(s){let i=Wd.get(t);if(i)throw i;let o=XS(s.location,n),a=o.absoluteURL||o.to;if(Lm(s.location,a,Im(r),"allow-explicit"),gP(a))throw new Error("Invalid redirect location");if(YS&&!Wd.get(t))if(o.isExternal||s.reloadDocument)window.location.href=a;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:s.replace}));throw Wd.set(t,l),l}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function PP({routeContext:e,match:t,children:n}){let r=m.useContext(so);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(gn.Provider,{value:e},n)}function OP(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,i=r==null?void 0:r.errors;if(i!=null){let c=s.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);ve(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let o=!1,a=-1;if(n&&r){o=r.renderFallback;for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=c),d.route.id){let{loaderData:h,errors:f}=r,y=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||y){n.isStatic&&(o=!0),a>=0?s=s.slice(0,a+1):s=[s[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(c,d)=>{var h,f;l(c,{location:r.location,params:((f=(h=r.matches)==null?void 0:h[0])==null?void 0:f.params)??{},pattern:hP(r.matches),errorInfo:d})}:void 0;return s.reduceRight((c,d,h)=>{let f,y=!1,g=null,b=null;r&&(f=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||AP,o&&(a<0&&h===0?(i_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):a===h&&(y=!0,b=d.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,h+1)),v=()=>{let x;return f?x=g:y?x=b:d.route.Component?x=m.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,m.createElement(PP,{match:d,routeContext:{outlet:c,matches:w,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?m.createElement(s_,{location:r.location,revalidation:r.revalidation,component:g,error:f,children:v(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:u}):v()},null)}function $m(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jP(e){let t=m.useContext(so);return ve(t,$m(e)),t}function NP(e){let t=m.useContext(Vc);return ve(t,$m(e)),t}function IP(e){let t=m.useContext(gn);return ve(t,$m(e)),t}function Fm(e){let t=IP(e),n=t.matches[t.matches.length-1];return ve(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function LP(){return Fm("useRouteId")}function DP(){var r;let e=m.useContext(Dm),t=NP("useRouteError"),n=Fm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function MP(){let{router:e}=jP("useNavigate"),t=Fm("useNavigate"),n=m.useRef(!1);return n_(()=>{n.current=!0}),m.useCallback(async(s,i={})=>{Vt(n.current,t_),n.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var gv={};function i_(e,t,n){!t&&!gv[e]&&(gv[e]=!0,Vt(!1,n))}m.memo($P);function $P({routes:e,manifest:t,future:n,state:r,isStatic:s,onError:i}){return r_(e,void 0,{manifest:t,state:r,isStatic:s,onError:i,future:n})}function Zu({to:e,replace:t,state:n,relative:r}){ve(io(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s,navigator:i}=m.useContext(Rt);Vt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=m.useContext(gn),{pathname:a}=Me(),l=Mm(),u=Bc(e,Nm(o),a,r==="path");Lm(typeof e=="string"?e:js(e),i.createHref(u),Im(i),"reject");let c=JSON.stringify(u);return m.useEffect(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function V(e){ve(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function FP({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:i=!1,useTransitions:o}){ve(!io(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:a,navigator:s,static:i,useTransitions:o,future:{}}
52),[a,s,i,o]);typeof n=="string"&&(n=ro(n));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:f="default",mask:y}=n,g=m.useMemo(()=>{let b=rr(u,a);return b==null?null:{location:{pathname:b,search:c,hash:d,state:h,key:f,mask:y},navigationType:r}},[a,u,c,d,h,f,r,y]);return Vt(g!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:m.createElement(Rt.Provider,{value:l},m.createElement(Ya.Provider,{children:t,value:g}))}function UP({children:e,location:t}){return TP(If(e),t)}function If(e,t=[]){let n=[];return m.Children.forEach(e,(r,s)=>{if(!m.isValidElement(r))return;let i=[...t,s];if(r.type===m.Fragment){n.push.apply(n,If(r.props.children,i));return}ve(r.type===V,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ve(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=If(r.props.children,i)),n.push(o)}),n}var lu="get",uu="application/x-www-form-urlencoded";function zc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function BP(e){return zc(e)&&e.tagName.toLowerCase()==="button"}function VP(e){return zc(e)&&e.tagName.toLowerCase()==="form"}function zP(e){return zc(e)&&e.tagName.toLowerCase()==="input"}function HP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WP(e,t){return e.button===0&&(!t||t==="_self")&&!HP(e)}function Lf(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function KP(e,t){let n=Lf(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}var Cl=null;function GP(){if(Cl===null)try{new FormData(document.createElement("form"),0),Cl=!1}catch{Cl=!0}return Cl}var qP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Kd(e){return e!=null&&!qP.has(e)?(Vt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uu}"`),null):e}function YP(e,t){let n,r,s,i,o;if(VP(e)){let a=e.getAttribute("action");r=a?rr(a,t):null,n=e.getAttribute("method")||lu,s=Kd(e.getAttribute("enctype"))||uu,i=new FormData(e)}else if(BP(e)||zP(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?rr(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||lu,s=Kd(e.getAttribute("formenctype"))||Kd(a.getAttribute("enctype"))||uu,i=new FormData(a,e),!GP()){let{name:u,type:c,value:d}=e;if(c==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,d)}}else{if(zc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=lu,r=null,s=uu,o=e}return i&&s==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Um(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function o_(e,t,n,r){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:t&&rr(s.pathname,t)==="/"?s.pathname=`${Yi(t)}/_root.${r}`:s.pathname=`${Yi(s.pathname)}.${r}`,s}async function XP(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
52isSpaMode,window.location.reload(),new Promise(()=>{})}}function JP(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function QP(e,t,n){let r=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let o=await XP(i,n);return o.links?o.links():[]}return[]}));return nO(r.flat(1).filter(JP).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function yv(e,t,n,r,s,i){let o=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,a=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>o(l,u)||a(l,u)):i==="data"?t.filter((l,u)=>{var d;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||a(l,u))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ZP(e,t,{includeHydrateFallback:n}={}){return eO(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function eO(e){return[...new Set(e)]}function tO(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function nO(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let i=JSON.stringify(tO(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}function Bm(){let e=m.useContext(so);return Um(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rO(){let e=m.useContext(Vc);return Um(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vm=m.createContext(void 0);Vm.displayName="FrameworkContext";function Hc(){let e=m.useContext(Vm);return Um(e,"You must render this element inside a <HydratedRouter> element"),e}function sO(e,t){let n=m.useContext(Vm),[r,s]=m.useState(!1),[i,o]=m.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,h=m.useRef(null);m.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let g=w=>{w.forEach(v=>{o(v.isIntersecting)})},b=new IntersectionObserver(g,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),m.useEffect(()=>{if(r){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[r]);let f=()=>{s(!0)},y=()=>{s(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:To(a,f),onBlur:To(l,y),onMouseEnter:To(u,f),onMouseLeave:To(c,y),onTouchStart:To(d,f)}]:[!1,h,{}]}function To(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iO({page:e,...t}){let n=yP(),{nonce:r}=Hc(),{router:s}=Bm(),i=m.useMemo(()=>zS(s.routes,e,s.basename),[s.routes,e,s.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?m.createElement(aO,{page:e,matches:i,...t}):m.createElement(lO,{page:e,matches:i,...t})):null}function oO(e){let{manifest:t,routeModules:n}=Hc(),[r,s]=m.useState([]);return m.useEffect(()=>{let i=!1;return QP(e,t,n).then(o=>{i||s(o)}),()=>{i=!0}},[e,t,n]),r}function aO({page:e,matches:t,...n}){let r=Me(),{future:s}=Hc(),{basename:i}=Bm(),o=m.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let a=o_(e,i,s.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,u=[];for(let c of t)typeof c.route.shouldRevalidate=="function"?l=!0:u.push(c.route.id);return l&&u.length>0&&a.searchParams.set("_routes",u.join(",")),[a.pathname+a.search]},[i,s.v8_trailingSlashAwareDataRequests,e,r,t]);return m.createElement(m.Fragment,null,o.map(a=>m.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...n})))}function lO({page:e,matches:t,...n}){let r=Me(),{future:s,manifest:i,routeModules:o}=Hc(),{basename:a}=Bm(),{loaderData:l,matches:u}=rO(),c=m.useMemo(()=>yv(e,t,u,i,r,"data"),[e,t,u,i,r]),d=m.useMemo(()=>yv(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=m.useMemo(()=>
52{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,b=!1;if(t.forEach(v=>{var S;let x=i.routes[v.route.id];!x||!x.hasLoader||(!c.some(_=>_.route.id===v.route.id)&&v.route.id in l&&((S=o[v.route.id])!=null&&S.shouldRevalidate)||x.hasClientLoader?b=!0:g.add(v.route.id))}),g.size===0)return[];let w=o_(e,a,s.v8_trailingSlashAwareDataRequests,"data");return b&&g.size>0&&w.searchParams.set("_routes",t.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[a,s.v8_trailingSlashAwareDataRequests,l,r,i,c,t,e,o]),f=m.useMemo(()=>ZP(d,i),[d,i]),y=oO(d);return m.createElement(m.Fragment,null,h.map(g=>m.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),f.map(g=>m.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),y.map(({key:g,link:b})=>m.createElement("link",{key:g,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function uO(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cO&&(window.__reactRouterVersion="7.18.3")}catch{}function dO({basename:e,children:t,useTransitions:n,window:r}){let s=m.useRef();s.current==null&&(s.current=VR({window:r,v5Compat:!0}));let i=s.current,[o,a]=m.useState({action:i.action,location:i.location}),l=m.useCallback(u=>{n===!1?a(u):m.startTransition(()=>a(u))},[n]);return m.useLayoutEffect(()=>i.listen(l),[i,l]),m.createElement(FP,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var a_=m.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:o,mask:a,state:l,target:u,to:c,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:f,...y},g){let{basename:b,navigator:w,useTransitions:v}=m.useContext(Rt),x=typeof c=="string"&&jm.test(c),S=XS(c,b);c=S.to;let _=EP(c,{relative:s}),E=Me(),k=null;if(a){let H=Bc(a,[],E.mask?E.mask.pathname:"/",!0);b!=="/"&&(H.pathname=H.pathname==="/"?b:dn([b,H.pathname])),k=w.createHref(H)}let[T,O,A]=sO(r,y),$=mO(c,{replace:o,mask:a,state:l,target:u,preventScrollReset:d,relative:s,viewTransition:h,defaultShouldRevalidate:f,useTransitions:v});function I(H){t&&t(H),H.defaultPrevented||$(H)}let W=!(S.isExternal||i),L=m.createElement("a",{...y,...A,href:(W?k:void 0)||S.absoluteURL||_,onClick:W?I:t,ref:uO(g,O),target:u,"data-discover":!x&&n==="render"?"true":void 0});return T&&!x?m.createElement(m.Fragment,null,L,m.createElement(iO,{page:_})):L});a_.displayName="Link";var hO=m.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:i,to:o,viewTransition:a,children:l,...u},c){let d=Xa(o,{relative:u.relative}),h=Me(),f=m.useContext(Vc),{navigator:y,basename:g}=m.useContext(Rt),b=f!=null&&xO(d)&&a===!0,w=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,v=h.pathname,x=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&g&&(x=rr(x,g)||x);const S=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let _=v===w||!s&&v.startsWith(w)&&v.charAt(S)==="/",E=x!=null&&(x===w||!s&&x.startsWith(w)&&x.charAt(w.length)==="/"),k={isActive:_,isPending:E,isTransitioning:b},T=_?t:void 0,O;typeof r=="function"?O=r(k):O=[r,_?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let A=typeof i=="function"?i(k):i;return m.createElement(a_,{...u,"aria-current":T,className:O,ref:c,style:A,to:o,viewTransition:a},typeof l=="function"?l(k):l)});hO.displayName="NavLink";var fO=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:i,method:o=lu,action:a,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:h,...f},y)=>{let{useTransitions:g}=m.useContext(Rt),b=vO(),w=wO(a,{relative:u}),v=o.toLowerCase()==="get"?"get":"post",x=typeof a=="string"&&jm.test(a),S=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let E=_.nativeEvent.submitter,k=(E==null?void 0:E.getAttribute("formmethod"))||o,T=()=>b(E||_.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:s,state:i,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:h});g&&n!==!1?m.startTransition(()=>T()):T()};return m.createElement("form",{ref:y,method:v,action:w,onSubmit:r?l:S,...f,"data-discover":!x&&e==="render"?"true":void 0})});
52fO.displayName="Form";function pO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l_(e){let t=m.useContext(so);return ve(t,pO(e)),t}function mO(e,{target:t,replace:n,mask:r,state:s,preventScrollReset:i,relative:o,viewTransition:a,defaultShouldRevalidate:l,useTransitions:u}={}){let c=Mm(),d=Me(),h=Xa(e,{relative:o});return m.useCallback(f=>{if(WP(f,t)){f.preventDefault();let y=n!==void 0?n:js(d)===js(h),g=()=>c(e,{replace:y,mask:r,state:s,preventScrollReset:i,relative:o,viewTransition:a,defaultShouldRevalidate:l});u?m.startTransition(()=>g()):g()}},[d,c,h,n,r,s,t,e,i,o,a,l,u])}function Ez(e){Vt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=m.useRef(Lf(e)),n=m.useRef(!1),r=Me(),s=m.useMemo(()=>KP(r.search,n.current?null:t.current),[r.search]),i=Mm(),o=m.useCallback((a,l)=>{const u=Lf(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,i("?"+u,l)},[i,s]);return[s,o]}var gO=0,yO=()=>`__${String(++gO)}__`;function vO(){let{router:e}=l_("useSubmit"),{basename:t}=m.useContext(Rt),n=LP(),r=e.fetch,s=e.navigate;return m.useCallback(async(i,o={})=>{let{action:a,method:l,encType:u,formData:c,body:d}=YP(i,t);if(o.navigate===!1){let h=o.fetcherKey||yO();await r(h,n,o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await s(o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,s,t,n])}function wO(e,{relative:t}={}){let{basename:n}=m.useContext(Rt),r=m.useContext(gn);ve(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...Xa(e||".",{relative:t})},o=Me();if(e==null){i.search=o.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(c=>c==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:dn([n,i.pathname])),js(i)}function xO(e,{relative:t}={}){let n=m.useContext(ZS);ve(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=l_("useViewTransitionState"),s=Xa(e,{relative:t});if(!n.isTransitioning)return!1;let i=rr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=rr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qu(s.pathname,o)!=null||Qu(s.pathname,i)!=null}var bO=typeof Element<"u",SO=typeof Map=="function",_O=typeof Set=="function",EO=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!cu(e[r],t[r]))return!1;return!0}var i;if(SO&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!cu(r.value[1],t.get(r.value[0])))return!1;return!0}if(_O&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(EO&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(bO&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!cu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var kO=function(t,n){try{return cu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const TO=Va(kO);var CO=function(e,t,n,r,s,i,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,o,a],c=0;
52l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},AO=CO;const vv=Va(AO);var RO=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var c=o[u];if(!l(c))return!1;var d=t[c],h=n[c];if(i=r?r.call(s,d,h,c):void 0,i===!1||i===void 0&&d!==h)return!1}return!0};const PO=Va(RO);var u_=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u_||{}),Gd={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},wv=Object.values(u_),Wc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},c_=Object.entries(Wc).reduce((e,[t,n])=>(e[n]=t,e),{}),ln="data-rh",Ai={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ri=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},OO=e=>{let t=Ri(e,"title");const n=Ri(e,Ai.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ri(e,Ai.DEFAULT_TITLE);return t||r||void 0},jO=e=>Ri(e,Ai.ON_CHANGE_CLIENT_STATE)||(()=>{}),qd=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),NO=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),IO=e=>console&&typeof console.warn=="function"&&console.warn(e),Co=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&IO(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let u;const c=Object.keys(l);for(let h=0;h<c.length;h+=1){const f=c[h],y=f.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!l[u])return!1;const d=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][d]?!1:(o[u][d]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],c={...r[u],...o[u]};r[u]=c}return s},[]).reverse()},LO=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},DO=e=>({baseTag:NO(["href"],e),bodyAttributes:qd("bodyAttributes",e),defer:Ri(e,Ai.DEFER),encode:Ri(e,Ai.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:qd("htmlAttributes",e),linkTags:Co("link",["rel","href"],e),metaTags:Co("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Co("noscript",["innerHTML"],e),onChangeClientState:jO(e),scriptTags:Co("script",["src","innerHTML"],e),styleTags:Co("style",["cssText"],e),title:OO(e),titleAttributes:qd("titleAttributes",e),prioritizeSeoTags:LO(e,Ai.PRIORITIZE_SEO_TAGS)}),d_=e=>Array.isArray(e)?e.join(""):e,MO=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Yd=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(MO(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},xv=(e,t)=>({...e,[t]:void 0}),$O=["noscript","script","style"],Df=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),h_=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),FO=(e,t,n,r)=>{const s=h_(n),i=d_(t);return s?`<${e} ${ln}="true" ${s}>${Df(i,r)}</${e}>`:`<${e} ${ln}="true">${Df(i,r)}</${e}>`},UO=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof i[c]>"u"?c:`${c}="${Df(i[c],n)}"`;return u?`${u} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=$O.indexOf(e)===-1;return`${r}<${e} ${ln}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),f_=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Wc[r];return n[s||r]=e[r],n}
52,t),BO=(e,t,n)=>{const r={key:t,[ln]:!0},s=f_(n,r);return[j.createElement("title",s,t)]},du=(e,t)=>t.map((n,r)=>{const s={key:r,[ln]:!0};return Object.keys(n).forEach(i=>{const a=Wc[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),j.createElement(e,s)}),jt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>BO(e,t.title,t.titleAttributes),toString:()=>FO(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>f_(t),toString:()=>h_(t)};default:return{toComponent:()=>du(e,t),toString:()=>UO(e,t,n)}}},VO=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Yd(e,Gd.meta),i=Yd(t,Gd.link),o=Yd(n,Gd.script);return{priorityMethods:{toComponent:()=>[...du("meta",s.priority),...du("link",i.priority),...du("script",o.priority)],toString:()=>`${jt("meta",s.priority,r)} ${jt("link",i.priority,r)} ${jt("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},zO=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:h}=e,f={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:f,linkTags:c,metaTags:d,scriptTags:h}=VO(e)),{priority:f,base:jt("base",t,r),bodyAttributes:jt("bodyAttributes",n,r),htmlAttributes:jt("htmlAttributes",s,r),link:jt("link",c,r),meta:jt("meta",d,r),noscript:jt("noscript",i,r),script:jt("script",h,r),style:jt("style",o,r),title:jt("title",{title:a,titleAttributes:l},r)}},Mf=zO,Al=[],zm=!!(typeof window<"u"&&window.document&&window.document.createElement),$f=class{constructor(e,t){Fn(this,"instances",[]);Fn(this,"canUseDOM",zm);Fn(this,"context");Fn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Al:this.instances,add:e=>{(this.canUseDOM?Al:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Al:this.instances).indexOf(e);(this.canUseDOM?Al:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Mf({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},HO=parseInt(j.version.split(".")[0],10),Ff=HO>=19,WO={},p_=j.createContext(WO),bs,m_=(bs=class extends m.Component{constructor(n){super(n);Fn(this,"helmetData");Ff?this.helmetData=null:this.helmetData=new $f(this.props.context||{},bs.canUseDOM)}render(){return Ff?j.createElement(j.Fragment,null,this.props.children):j.createElement(p_.Provider,{value:this.helmetData.value},this.props.children)}},Fn(bs,"canUseDOM",zm),bs),Gs=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ln}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const c=a.cssText;l.appendChild(document.createTextNode(c))}else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(ln,"true"),s.some((u,c)=>(o=c,l.isEqualNode(u)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}
52),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},Uf=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ln),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(ln):n.getAttribute(ln)!==o.join(",")&&n.setAttribute(ln,o.join(","))},KO=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=d_(e)),Uf("title",t)},bv=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:h}=e;Uf("body",r),Uf("html",s),KO(d,h);const f={baseTag:Gs("base",n),linkTags:Gs("link",i),metaTags:Gs("meta",o),noscriptTags:Gs("noscript",a),scriptTags:Gs("script",u),styleTags:Gs("style",c)},y={},g={};Object.keys(f).forEach(b=>{const{newTags:w,oldTags:v}=f[b];w.length&&(y[b]=w),v.length&&(g[b]=f[b].oldTags)}),t&&t(),l(e,y,g)},Ao=null,GO=e=>{Ao&&cancelAnimationFrame(Ao),e.defer?Ao=requestAnimationFrame(()=>{bv(e,()=>{Ao=null})}):(bv(e),Ao=null)},qO=GO,Sv=class extends m.Component{constructor(){super(...arguments);Fn(this,"rendered",!1)}shouldComponentUpdate(t){return!PO(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=DO(t.get().map(i=>{const{context:o,...a}=i.props;return a}));m_.canUseDOM?qO(s):Mf&&(r=Mf(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},hu=[],_v=e=>{const t={};for(const n of Object.keys(e))t[c_[n]||n]=e[n];return t},ts=e=>{const t={};for(const n of Object.keys(e)){const r=Wc[n];t[r||n]=e[n]}return t},Ev=(e,t)=>{if(!zm)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},Xd=()=>{const e={},t={};for(const n of hu){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,_v(r)),s&&Object.assign(t,_v(s))}Ev("html",e),Ev("body",t)},YO=class extends m.Component{componentDidMount(){hu.push(this),Xd()}componentDidUpdate(){Xd()}componentWillUnmount(){const e=hu.indexOf(this);e!==-1&&hu.splice(e,1),Xd()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return j.createElement("title",ts(t),e)}renderBase(){const{base:e}=this.props;return e?j.createElement("base",ts(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>j.createElement("meta",{key:n,...ts(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>j.createElement("link",{key:n,...ts(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=ts(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=ts(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=ts(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("noscript",{key:n,...i})})}render(){return j.createElement(j.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Mh,Hm=(Mh=class extends m.Component{shouldComponentUpdate(e){return!TO(xv(this.props,"helmetData"),xv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
52warnOnInvalidChildren(e,t){return vv(wv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${wv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),vv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return j.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,u)=>(l[c_[u]||u]=i[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof $f)){const s=r;r=new $f(s.context,!0),delete n.helmetData}return Ff?j.createElement(YO,{...n}):r?j.createElement(Sv,{...n,context:r.value}):j.createElement(p_.Consumer,null,s=>j.createElement(Sv,{...n,context:s}))}},Fn(Mh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Mh),kv=["light","dark"],XO="(prefers-color-scheme: dark)",JO=m.createContext(void 0),QO={setTheme:e=>{},themes:[]},ZO=()=>{var e;return(e=m.useContext(JO))!=null?e:QO};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?kv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(y,g=!1,b=!0)=>{let w=o?o[y]:y,v=g?y+"|| ''":`'${w}'`,x="";return s&&b&&!g&&kv.includes(y)&&(x+=`d.style.colorScheme = '${y}';`),n==="class"?g||w?x+=`c.add(${v})`:x+="null":w&&(x+=`d[s](n,${v})`),x},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${XO}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return m.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var ej=e=>{switch(e){case"success":return rj;case"info":return ij;case"warning":return sj;case"error":return oj;default:return null}},tj=Array(12).fill(0),nj=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},tj.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rj=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),sj=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),ij=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),oj=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),aj=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lj=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};
52return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Bf=1,uj=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Bf++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
52this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(dj(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Bf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ft=new uj,cj=(e,t)=>{let n=(t==null?void 0:t.id)||Bf++;return ft.addToast({title:e,...t,id:n}),n},dj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hj=cj,fj=()=>ft.toasts,pj=()=>ft.getActiveToasts(),kz=Object.assign(hj,{success:ft.success,info:ft.info,warning:ft.warning,error:ft.error,custom:ft.custom,message:ft.message,promise:ft.promise,dismiss:ft.dismiss,loading:ft.loading},{getHistory:fj,getToasts:pj});function mj(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}mj(`: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;
52left: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}
52: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%);
52--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%)} 53`);function Rl(e){return e.label!==void 0}var gj=3,yj="32px",vj="16px",Tv=4e3,wj=356,xj=14,bj=20,Sj=200;function qt(...e){return e.filter(Boolean).join(" ")}function _j(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Ej=e=>{var t,n,r,s,i,o,a,l,u,c,d;let{invert:h,toast:f,unstyled:y,interacting:g,setHeights:b,visibleToasts:w,heights:v,index:x,toasts:S,expanded:_,removeToast:E,defaultRichColors:k,closeButton:T,style:O,cancelButtonStyle:A,actionButtonStyle:$,className:I="",descriptionClassName:W="",duration:L,position:H,gap:z,loadingIcon:X,expandByDefault:C,classNames:R,icons:D,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:K}=e,[ee,ne]=j.useState(null),[Re,Ge]=j.useState(null),[ie,Us]=j.useState(!1),[lr,Qr]=j.useState(!1),[ur,Bs]=j.useState(!1),[cr,il]=j.useState(!1),[dd,ol]=j.useState(!1),[hd,go]=j.useState(0),[Vs,Bg]=j.useState(0),yo=j.useRef(f.duration||L||Tv),Vg=j.useRef(null),Zr=j.useRef(null),OT=x===0,jT=x+1<=w,Pt
53=f.type,zs=f.dismissible!==!1,NT=f.className||"",IT=f.descriptionClassName||"",al=j.useMemo(()=>v.findIndex(J=>J.toastId===f.id)||0,[v,f.id]),LT=j.useMemo(()=>{var J;return(J=f.closeButton)!=null?J:T},[f.closeButton,T]),zg=j.useMemo(()=>f.duration||L||Tv,[f.duration,L]),fd=j.useRef(0),Hs=j.useRef(0),Hg=j.useRef(0),Ws=j.useRef(null),[DT,MT]=H.split("-"),Wg=j.useMemo(()=>v.reduce((J,ae,me)=>me>=al?J:J+ae.height,0),[v,al]),Kg=lj(),$T=f.invert||h,pd=Pt==="loading";Hs.current=j.useMemo(()=>al*z+Wg,[al,Wg]),j.useEffect(()=>{yo.current=zg},[zg]),j.useEffect(()=>{Us(!0)},[]),j.useEffect(()=>{let J=Zr.current;if(J){let ae=J.getBoundingClientRect().height;return Bg(ae),b(me=>[{toastId:f.id,height:ae,position:f.position},...me]),()=>b(me=>me.filter(Ht=>Ht.toastId!==f.id))}},[b,f.id]),j.useLayoutEffect(()=>{if(!ie)return;let J=Zr.current,ae=J.style.height;J.style.height="auto";let me=J.getBoundingClientRect().height;J.style.height=ae,Bg(me),b(Ht=>Ht.find(Wt=>Wt.toastId===f.id)?Ht.map(Wt=>Wt.toastId===f.id?{...Wt,height:me}:Wt):[{toastId:f.id,height:me,position:f.position},...Ht])},[ie,f.title,f.description,b,f.id]);let dr=j.useCallback(()=>{Qr(!0),go(Hs.current),b(J=>J.filter(ae=>ae.toastId!==f.id)),setTimeout(()=>{E(f)},Sj)},[f,E,b,Hs]);j.useEffect(()=>{if(f.promise&&Pt==="loading"||f.duration===1/0||f.type==="loading")return;let J;return _||g||K&&Kg?(()=>{if(Hg.current<fd.current){let ae=new Date().getTime()-fd.current;yo.current=yo.current-ae}Hg.current=new Date().getTime()})():yo.current!==1/0&&(fd.current=new Date().getTime(),J=setTimeout(()=>{var ae;(ae=f.onAutoClose)==null||ae.call(f,f),dr()},yo.current)),()=>clearTimeout(J)},[_,g,f,Pt,K,Kg,dr]),j.useEffect(()=>{f.delete&&dr()},[dr,f.delete]);function FT(){var J,ae,me;return D!=null&&D.loading?j.createElement("div",{className:qt(R==null?void 0:R.loader,(J=f==null?void 0:f.classNames)==null?void 0:J.loader,"sonner-loader"),"data-visible":Pt==="loading"},D.loading):X?j.createElement("div",{className:qt(R==null?void 0:R.loader,(ae=f==null?void 0:f.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":Pt==="loading"},X):j.createElement(nj,{className:qt(R==null?void 0:R.loader,(me=f==null?void 0:f.classNames)==null?void 0:me.loader),visible:Pt==="loading"})}return j.createElement("li",{tabIndex:0,ref:Zr,className:qt(I,NT,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Pt],(n=f==null?void 0:f.classNames)==null?void 0:n[Pt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":ie,"data-promise":!!f.promise,"data-swiped":dd,"data-removed":lr,"data-visible":jT,"data-y-position":DT,"data-x-position":MT,"data-index":x,"data-front":OT,"data-swiping":ur,"data-dismissible":zs,"data-type":Pt,"data-invert":$T,"data-swipe-out":cr,"data-swipe-direction":Re,"data-expanded":!!(_||C&&ie),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${lr?hd:Hs.current}px`,"--initial-height":C?"auto":`${Vs}px`,...O,...f.style},onDragEnd:()=>{Bs(!1),ne(null),Ws.current=null},onPointerDown:J=>{pd||!zs||(Vg.current=new Date,go(Hs.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&(Bs(!0),Ws.current={x:J.clientX,y:J.clientY}))},onPointerUp:()=>{var J,ae,me,Ht;if(cr||!zs)return;Ws.current=null;let Wt=Number(((J=Zr.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),hr=Number(((ae=Zr.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),es=new Date().getTime()-((me=Vg.current)==null?void 0:me.getTime()),Kt=ee==="x"?Wt:hr,fr=Math.abs(Kt)/es;if(Math.abs(Kt)>=bj||fr>.11){go(Hs.current),(Ht=f.onDismiss)==null||Ht.call(f,f),Ge(ee==="x"?Wt>0?"right":"left":hr>0?"down":"up"),dr(),il(!0),ol(!1);return}Bs(!1),ne(null)},onPointerMove:J=>{var ae,me,Ht,Wt;if(!Ws.current||!zs||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;let hr=J.clientY-Ws.current.y,es=J.clientX-Ws.current.x,Kt=(me=e.swipeDirections)!=null?me:_j(H);!ee&&(Math.abs(es)>1||Math.abs(hr)>1)&&ne(Math.abs(es)>Math.abs(hr)?"x":"y");let fr={x:0,y:0};ee==="y"?(Kt.includes("top")||Kt.includes("bottom"))&&(Kt.includes("top")&&hr<0||Kt.includes("bottom")&&hr>0)&&(fr.y=hr):ee==="x"&&(Kt.includes("left")||Kt.includes("right"))&&(Kt.includes("left")&&es<0||Kt.includes("right")&&es>0)&&(fr.x=es),(Math.abs(fr.x)>0||Math.abs(fr.y)>0)&&ol(!0),(Ht=Zr.current)==null||Ht.style.setProperty("--swipe-amount-x",`${fr.x}px`),(Wt=Zr.current)==null||Wt.style.setProperty("--swipe-amount-y",`${fr.y}px`)}},LT&&!f.jsx?j.createElement("button",{"aria-label":Y,"data-disabled":pd,"data-close-button":!0,onClick:pd||!zs?()=>{}:()=>{var J;dr(),(J=f.onDismiss)==null||J.call(f,f)},className:qt(R==null?void 0:R.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:aj):null,f.jsx||m.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:j.createElement(j.Fragment,null,Pt||f.icon||f.promise?j.createElement("div",{"data-icon":"",className:qt(R==null?void 0:R.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||FT():null,f.type!=="loading"?f.icon||(D==null?void 0:D[Pt])||ej(Pt):null):null,j.createElement("div",{"data-content":"",className:qt(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:qt(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?j.createElement("div",{"data-description":"",className:qt(W,IT,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),m.isValidElement(f.cancel)?f.cancel:f.cancel&&Rl(f.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:J=>{var ae,me;Rl(f.cancel)&&zs&&((me=(ae=f.cancel).onClick)==null||me.call(ae,J),dr())},className:qt(R==null?void 0:R.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,m.isValidElement(f.action)?f.action:f.action&&Rl(f.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:J=>{var ae,me;Rl(f.action)&&((me=(ae=f.action).onClick)==null||me.call(ae,J),!J.defaultPrevented&&dr())},className:qt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};
53function Cv(){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 kj(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?vj:yj;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Tj=m.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:y=gj,toastOptions:g,dir:b=Cv(),gap:w=xj,loadingIcon:v,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=e,[E,k]=j.useState([]),T=j.useMemo(()=>Array.from(new Set([r].concat(E.filter(K=>K.position).map(K=>K.position)))),[E,r]),[O,A]=j.useState([]),[$,I]=j.useState(!1),[W,L]=j.useState(!1),[H,z]=j.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=j.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),D=j.useRef(!1),Y=j.useCallback(K=>{k(ee=>{var ne;return(ne=ee.find(Re=>Re.id===K.id))!=null&&ne.delete||ft.dismiss(K.id),ee.filter(({id:Re})=>Re!==K.id)})},[]);return j.useEffect(()=>ft.subscribe(K=>{if(K.dismiss){k(ee=>ee.map(ne=>ne.id===K.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{jS.flushSync(()=>{k(ee=>{let ne=ee.findIndex(Re=>Re.id===K.id);return ne!==-1?[...ee.slice(0,ne),{...ee[ne],...K},...ee.slice(ne+1)]:[K,...ee]})})})}),[]),j.useEffect(()=>{if(c!=="system"){z(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:ee})=>{z(ee?"dark":"light")})}catch{K.addListener(({matches:ne})=>{try{z(ne?"dark":"light")}catch(Re){console.error(Re)}})}},[c]),j.useEffect(()=>{E.length<=1&&I(!1)},[E]),j.useEffect(()=>{let K=ee=>{var ne,Re;s.every(Ge=>ee[Ge]||ee.code===Ge)&&(I(!0),(ne=X.current)==null||ne.focus()),ee.code==="Escape"&&(document.activeElement===X.current||(Re=X.current)!=null&&Re.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[s]),j.useEffect(()=>{if(X.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[X.current]),j.createElement("section",{ref:t,"aria-label":`${S} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((K,ee)=>{var ne;let[Re,Ge]=K.split("-");return E.length?j.createElement("ol",{key:K,dir:b==="auto"?Cv():b,tabIndex:-1,ref:X,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":Re,"data-lifted":$&&E.length>1&&!i,"data-x-position":Ge,style:{"--front-toast-height":`${((ne=O[0])==null?void 0:ne.height)||0}px`,"--width":`${wj}px`,"--gap":`${w}px`,...f,...kj(l,u)},onBlur:ie=>{D.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=ie.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{W||I(!1)},onDragEnd:()=>I(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},E.filter(ie=>!ie.position&&ee===0||ie.position===K).map((ie,Us)=>{var lr,Qr;return j.createElement(Ej,{key:ie.id,icons:x,index:Us,toast:ie,defaultRichColors:d,duration:(lr=g==null?void 0:g.duration)!=null?lr:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:y,closeButton:(Qr=g==null?void 0:g.closeButton)!=null?Qr:o,interacting:W,position:K,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:E.filter(ur=>ur.position==ie.position),heights:O.filter(ur=>ur.position==ie.position),setHeights:A,expandByDefault:i,gap:w,loadingIcon:v,expanded:$,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const Cj=({...e})=>{const{theme:t="system"}=ZO();return p.jsx(Tj,{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})},Aj=1,Rj=1e6;let Jd=0;function Pj(){return Jd=(Jd+1)%Number.MAX_SAFE_INTEGER,Jd.toString()}const Qd=new Map,Av=e=>{if(Qd.has(e))return;const t=setTimeout(()=>{Qd.delete(e),Jo({type:"REMOVE_TOAST",toastId:e})},Rj);Qd.set(e,t)},Oj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Aj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
53return n?Av(n):e.toasts.forEach(r=>{Av(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},fu=[];let pu={toasts:[]};function Jo(e){pu=Oj(pu,e),fu.forEach(t=>{t(pu)})}function jj({...e}){const t=Pj(),n=s=>Jo({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Jo({type:"DISMISS_TOAST",toastId:t});return Jo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Nj(){const[e,t]=m.useState(pu);return m.useEffect(()=>(fu.push(t),()=>{const n=fu.indexOf(t);n>-1&&fu.splice(n,1)}),[e]),{...e,toast:jj,dismiss:n=>Jo({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Rv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function g_(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Rv(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Rv(e[s],null)}}}}function ut(...e){return m.useCallback(g_(...e),e)}function Ij(e,t){const n=m.createContext(t),r=i=>{const{children:o,...a}=i,l=m.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Ja(e,t=[]){let n=[];function r(i,o){const a=m.createContext(o),l=n.length;n=[...n,o];const u=d=>{var w;const{scope:h,children:f,...y}=d,g=((w=h==null?void 0:h[e])==null?void 0:w[l])||a,b=m.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:b,children:f})};u.displayName=i+"Provider";function c(d,h){var g;const f=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=m.useContext(f);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Lj(s,...t)]}function Lj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ea(e){const t=Mj(e),n=m.forwardRef((r,s)=>{const{children:i,...o}=r,a=m.Children.toArray(i),l=a.find(Fj);if(l){const u=l.props.children,c=a.map(d=>d===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...o,ref:s,children:m.isValidElement(u)?m.cloneElement(u,void 0,c):null})}return p.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var Dj=Ea("Slot");function Mj(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=Bj(s),a=Uj(i,s.props);return s.type!==m.Fragment&&(a.ref=r?g_(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y_=Symbol("radix.slottable");function $j(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=y_,t}function Fj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y_}function Uj(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Bj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vj(e){const t=e+"CollectionProvider",[n,r]=Ja(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:w}=g,v=j.useRef(null),x=j.useRef(new Map).current;return p.jsx(s,{scope:b,itemMap:x,collectionRef:v,children:w})};o.displayName=t;const a=e+"CollectionSlot",l=Ea(a),u=j.forwardRef((g,b)=>{const{scope:w,children:v}=g,x=i(a,w),S=ut(b,x.collectionRef);return p.jsx(l,{ref:S,children:v})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ea(c),f=j.forwardRef((g,b)=>{const{scope:w,children:v,...x}=g,S=j.useRef(null),_=ut(b,S),E=i(c,w);return j.useEffect(()=>(E.itemMap.set(S,{ref:S,...x}
vendor: 9,049 bytes, line 53
53),()=>void E.itemMap.delete(S))),p.jsx(h,{[d]:"",ref:_,children:v})});f.displayName=c;function y(g){const b=i(e+"CollectionConsumer",g);return j.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((E,k)=>x.indexOf(E.ref.current)-x.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:f},y,r]}var zj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=zj.reduce((e,t)=>{const n=Ea(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function v_(e,t){e&&qa.flushSync(()=>e.dispatchEvent(t))}function In(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Hj(e,t=globalThis==null?void 0:globalThis.document){const n=In(e);m.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wj="DismissableLayer",Vf="dismissableLayer.update",Kj="dismissableLayer.pointerDownOutside",Gj="dismissableLayer.focusOutside",Pv,w_=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kc=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=m.useContext(w_),[c,d]=m.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=m.useState({}),y=ut(t,k=>d(k)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),v=c?g.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=v>=w,_=Yj(k=>{const T=k.target,O=[...u.branches].some(A=>A.contains(T));!S||O||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},h),E=Xj(k=>{const T=k.target;[...u.branches].some(A=>A.contains(T))||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},h);return Hj(k=>{v===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),m.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Ov(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Pv)}},[c,h,n,u]),m.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Ov())},[c,u]),m.useEffect(()=>{const k=()=>f({});return document.addEventListener(Vf,k),()=>document.removeEventListener(Vf,k)},[]),p.jsx(Ne.div,{...l,ref:y,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,_.onPointerDownCapture)})});Kc.displayName=Wj;var qj="DismissableLayerBranch",x_=m.forwardRef((e,t)=>{const n=m.useContext(w_),r=m.useRef(null),s=ut(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(Ne.div,{...e,ref:s})});x_.displayName=qj;function Yj(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){b_(Kj,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xj(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&b_(Gj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ov(){const e=new CustomEvent(Vf);document.dispatchEvent(e)}function b_(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?v_(s,i):s.dispatchEvent(i)}var Jj=Kc,Qj=x_,sr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Zj="Portal",Wm=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=m.useState(!1);sr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?jS.createPortal(p.jsx(Ne.div,{...r,ref:t}),o):null});Wm.displayName=Zj;function eN(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var oo=e=>{const{present:t,children:n}=e,r=tN(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=ut(r.ref,nN(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};oo.displayName="Presence";function tN(e){const[t,n]=m.useState(),r=m.useRef(null),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=eN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Pl(r.current);i.current=a==="mounted"?u:"none"},[a]),sr(()=>{const u=r.current,c=s.current;if(c!==e){const h=i.current,f=Pl(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),sr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const g=Pl(r.current).includes(f.animationName);if(f.target===t&&g&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=f=>{f.target===t&&(i.current=Pl(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Pl(e){return(e==null?void 0:e.animationName)||"none"}function nN(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rN=Rx[" useInsertionEffect ".trim().toString()]||sr;function S_({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=sN({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const c=m.useRef(e!==void 0);m.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=m.useCallback(c=>{var d;if(a){const h=iN(c)?c(e):c;h!==e&&((d=o.current)==null||d.call(o,h))}else i(c)},[a,e,i,o]);return[l,u]}function sN({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),s=m.useRef(n),i=m.useRef(t);return rN(()=>{i.current=t},[t]),m.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function iN(e){return typeof e=="function"}var oN=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"}),aN="VisuallyHidden",Gc=m.forwardRef((e,t)=>p.jsx(Ne.span,{...e,ref:t,style:{...oN,...e.style}}));Gc.displayName=aN;var lN=Gc,Km="ToastProvider",[Gm,uN,cN]=Vj("Toast"),[__,Tz]=Ja("Toast",[cN]),[dN,qc]=__(Km),E_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=m.useState(null),[u,c]=m.useState(0),d=m.useRef(!1),h=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Km}\`. Expected non-empty \`string\`.`),p.jsx(Gm.Provider,{scope:t,children:p.jsx(dN,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:m.useCallback(()=>c(f=>f+1),[]),onToastRemove:m.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};
53E_.displayName=Km;var k_="ToastViewport",hN=["F8"],zf="toast.viewportPause",Hf="toast.viewportResume",T_=m.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hN,label:s="Notifications ({hotkey})",...i}=e,o=qc(k_,n),a=uN(n),l=m.useRef(null),u=m.useRef(null),c=m.useRef(null),d=m.useRef(null),h=ut(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=w=>{var x;r.length!==0&&r.every(S=>w[S]||w.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),m.useEffect(()=>{const b=l.current,w=d.current;if(y&&b&&w){const v=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(zf);w.dispatchEvent(E),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Hf);w.dispatchEvent(E),o.isClosePausedRef.current=!1}},S=E=>{!b.contains(E.relatedTarget)&&x()},_=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",v),b.addEventListener("focusout",S),b.addEventListener("pointermove",v),b.addEventListener("pointerleave",_),window.addEventListener("blur",v),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",v),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",v),b.removeEventListener("pointerleave",_),window.removeEventListener("blur",v),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const g=m.useCallback(({tabbingDirection:b})=>{const v=a().map(x=>{const S=x.ref.current,_=[S,...kN(S)];return b==="forwards"?_:_.reverse()});return(b==="forwards"?v.reverse():v).flat()},[a]);return m.useEffect(()=>{const b=d.current;if(b){const w=v=>{var _,E,k;const x=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!x){const T=document.activeElement,O=v.shiftKey;if(v.target===b&&O){(_=u.current)==null||_.focus();return}const I=g({tabbingDirection:O?"backwards":"forwards"}),W=I.findIndex(L=>L===T);Zd(I.slice(W+1))?v.preventDefault():O?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return b.addEventListener("keydown",w),()=>b.removeEventListener("keydown",w)}},[a,g]),p.jsxs(Qj,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&p.jsx(Wf,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Zd(b)}}),p.jsx(Gm.Slot,{scope:n,children:p.jsx(Ne.ol,{tabIndex:-1,...i,ref:h})}),y&&p.jsx(Wf,{ref:c,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Zd(b)}})]})});T_.displayName=k_;var C_="ToastFocusProxy",Wf=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=qc(C_,n);return p.jsx(Gc,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Wf.displayName=C_;var Qa="Toast",fN="toast.swipeStart",pN="toast.swipeMove",mN="toast.swipeCancel",gN="toast.swipeEnd",A_=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=S_({prop:r,defaultProp:s??!0,onChange:i,caller:Qa});return p.jsx(oo,{present:n||a,children:p.jsx(wN,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:In(e.onPause),onResume:In(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});A_.displayName=Qa;var[yN,vN]=__(Qa,{onClose(){}}),wN=m.forwardRef((e,t)=>
53{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...y}=e,g=qc(Qa,n),[b,w]=m.useState(null),v=ut(t,L=>w(L)),x=m.useRef(null),S=m.useRef(null),_=s||g.duration,E=m.useRef(0),k=m.useRef(_),T=m.useRef(0),{onToastAdd:O,onToastRemove:A}=g,$=In(()=>{var H;(b==null?void 0:b.contains(document.activeElement))&&((H=g.viewport)==null||H.focus()),o()}),I=m.useCallback(L=>{!L||L===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout($,L))},[$]);m.useEffect(()=>{const L=g.viewport;if(L){const H=()=>{I(k.current),u==null||u()},z=()=>{const X=new Date().getTime()-E.current;k.current=k.current-X,window.clearTimeout(T.current),l==null||l()};return L.addEventListener(zf,z),L.addEventListener(Hf,H),()=>{L.removeEventListener(zf,z),L.removeEventListener(Hf,H)}}},[g.viewport,_,l,u,I]),m.useEffect(()=>{i&&!g.isClosePausedRef.current&&I(_)},[i,_,g.isClosePausedRef,I]),m.useEffect(()=>(O(),()=>A()),[O,A]);const W=m.useMemo(()=>b?L_(b):null,[b]);return g.viewport?p.jsxs(p.Fragment,{children:[W&&p.jsx(xN,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),p.jsx(yN,{scope:n,onClose:$,children:qa.createPortal(p.jsx(Gm.ItemSlot,{scope:n,children:p.jsx(Jj,{asChild:!0,onEscapeKeyDown:ye(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||$(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(Ne.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ye(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:ye(e.onPointerMove,L=>{if(!x.current)return;const H=L.clientX-x.current.x,z=L.clientY-x.current.y,X=!!S.current,C=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=C?R(0,H):0,Y=C?0:R(0,z),K=L.pointerType==="touch"?10:2,ee={x:D,y:Y},ne={originalEvent:L,delta:ee};X?(S.current=ee,Ol(pN,d,ne,{discrete:!1})):jv(ee,g.swipeDirection,K)?(S.current=ee,Ol(fN,c,ne,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(H)>K||Math.abs(z)>K)&&(x.current=null)}),onPointerUp:ye(e.onPointerUp,L=>{const H=S.current,z=L.target;if(z.hasPointerCapture(L.pointerId)&&z.releasePointerCapture(L.pointerId),S.current=null,x.current=null,H){const X=L.currentTarget,C={originalEvent:L,delta:H};jv(H,g.swipeDirection,g.swipeThreshold)?Ol(gN,f,C,{discrete:!0}):Ol(mN,h,C,{discrete:!0}),X.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),xN=e=>{const{__scopeToast:t,children:n,...r}
53=e,s=qc(Qa,t),[i,o]=m.useState(!1),[a,l]=m.useState(!1);return _N(()=>o(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:p.jsx(Wm,{asChild:!0,children:p.jsx(Gc,{...r,children:i&&p.jsxs(p.Fragment,{children:[s.label," ",n]})})})},bN="ToastTitle",R_=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Ne.div,{...r,ref:t})});R_.displayName=bN;var SN="ToastDescription",P_=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Ne.div,{...r,ref:t})});P_.displayName=SN;var O_="ToastAction",j_=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(I_,{altText:n,asChild:!0,children:p.jsx(qm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${O_}\`. Expected non-empty \`string\`.`),null)});j_.displayName=O_;var N_="ToastClose",qm=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=vN(N_,n);return p.jsx(I_,{asChild:!0,children:p.jsx(Ne.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,s.onClose)})})});qm.displayName=N_;var I_=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return p.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function L_(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),EN(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...L_(r))}}),t}function Ol(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?v_(s,i):s.dispatchEvent(i)}var jv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function _N(e=()=>{}){const t=In(e);sr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function EN(e){return e.nodeType===e.ELEMENT_NODE}function kN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var TN=E_,D_=T_,M_=A_,$_=R_,F_=P_,U_=j_,B_=qm;function V_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=V_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z_(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=V_(e))&&(r&&(r+=" "),r+=t);return r}const Nv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Iv=z_,Ym=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Iv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const h=Nv(c)||Nv(d);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...u,d,h]:u},[]);return Iv(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 54 * @license lucide-react v0.462.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */const CN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H_=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 59 * @license lucide-react v0.462.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */var AN={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"};/** 64 * @license lucide-react v0.462.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const RN=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>m.createElement("svg",{ref:l,...AN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:H_("lucide",s),...a},[...o.map(([u,c])=>m.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const _e=(e,t)=>
73{const n=m.forwardRef(({className:r,...s},i)=>m.createElement(RN,{ref:i,iconNode:t,className:H_(`lucide-${CN(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const W_=_e("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const PN=_e("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"}]]);/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const ON=_e("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const eh=_e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const K_=_e("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const jN=_e("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const NN=_e("CircleArrowRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const IN=_e("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const LN=_e("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const Lv=_e("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Dv=_e("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"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const DN=_e("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const MN=_e("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree.
143 */const G_=_e("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const $N=_e("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const FN=_e("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"}]]);/** 154 * @license lucide-react v0.462.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const Mv=_e("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 159 * @license lucide-react v0.462.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const UN=_e("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** 164 * @license lucide-react v0.462.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const BN=_e("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 169 * @license lucide-react v0.462.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const q_=_e("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 174 * @license lucide-react v0.462.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const $v=_e("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 179 * @license lucide-react v0.462.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const ka=_e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 184 * @license lucide-react v0.462.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const Y_=_e("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Xm="-",VN=e=>{const t=HN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Xm);return a[0]===""&&a.length!==1&&a.shift(),X_(a,t)||zN(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},X_=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?X_(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Xm);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Fv=/^\[(.+)\]$/,zN=e=>{if(Fv.test(e)){const t=Fv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},HN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,113 bytes, line 188
188return KN(Object.entries(e.classGroups),n).forEach(([i,o])=>{Kf(o,r,i,t)}),r},Kf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Uv(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(WN(s)){Kf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Kf(o,Uv(t,i),n,r)})})},Uv=(e,t)=>{let n=e;return t.split(Xm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},WN=e=>e.isThemeGetter,KN=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,GN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},J_="!",qN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let b=0;b<a.length;b++){let w=a[b];if(u===0){if(w===s&&(r||a.slice(b,b+i)===t)){l.push(a.slice(c,b)),c=b+i;continue}if(w==="/"){d=b;continue}}w==="["?u++:w==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(J_),y=f?h.substring(1):h,g=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},YN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},XN=e=>({cache:GN(e.cacheSize),parseClassName:qN(e),...VN(e)}),JN=/\s+/,QN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(JN);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let y=!!f,g=r(y?h.substring(0,f):h);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const b=YN(c).join(":"),w=d?b+J_:b,v=w+g;if(i.includes(v))continue;i.push(v);const x=s(g,y);for(let S=0;S<x.length;++S){const _=x[S];i.push(w+_)}a=u+(a.length>0?" "+a:a)}return a};function ZN(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Q_(t))&&(r&&(r+=" "),r+=n);return r}const Q_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Q_(e[r]))&&(n&&(n+=" "),n+=t);return n};function eI(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=XN(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=QN(l,n);return s(l,c),c}return function(){return i(ZN.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Z_=/^\[(?:([a-z-]+):)?(.+)\]$/i,tI=/^\d+\/\d+$/,nI=new Set(["px","full","screen"]),rI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sI=/\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$/,iI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>Pi(e)||nI.has(e)||tI.test(e),mr=e=>ao(e,"length",mI),Pi=e=>!!e&&!Number.isNaN(Number(e)),th=e=>ao(e,"number",Pi),Ro=e=>!!e&&Number.isInteger(Number(e)),lI=e=>e.endsWith("%")&&Pi(e.slice(0,-1)),Z=e=>Z_.test(e),gr=e=>rI.test(e),uI=new Set(["length","size","percentage"]),cI=e=>ao(e,uI,eE),dI=e=>ao(e,"position",eE),hI=new Set(["image","url"]),fI=e=>ao(e,hI,yI),pI=e=>ao(e,"",gI),Po=()=>!0,ao=(e,t,n)=>{const r=Z_.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mI=e=>sI.test(e)&&!iI.test(e),eE=()=>!1,gI=e=>oI.test(e),yI=e=>aI.test(e),vI=()=>{const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),s=he("borderColor"),i=he("borderRadius"),o=he("borderSpacing"),a=he("borderWidth"),l=he("contrast"),u=he("grayscale"),c=he("hueRotate"),d=he("invert"),h=he("gap"),f=he("gradientColorStops"),y=he("gradientColorStopPositions"),g=he("inset"),b=he("margin"),w=he("opacity"),v=he("padding"),x=he("saturate"),S=he("scale"),_=he("sepia"),E=he("skew"),k=he("space"),T=he("translate"),O=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",Z,t],I=()=>[Z,t],W=()=>["",Un,mr],L=()=>["auto",Pi,Z],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["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"],R=()=>["","0",Z],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Pi,Z];return{cacheSize:500,separator:":",theme:{colors:[Po],spacing:[Un,mr],blur:["none","",gr,Z],brightness:Y(),borderColor:[e],borderRadius:["n
188one","","full",gr,Z],borderSpacing:I(),borderWidth:W(),contrast:Y(),grayscale:R(),hueRotate:Y(),invert:R(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[lI,mr],inset:$(),margin:$(),opacity:Y(),padding:I(),saturate:Y(),scale:Y(),sepia:R(),skew:Y(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[gr]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),Z]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ro,Z]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ro,Z]}],"grid-cols":[{"grid-cols":[Po]}],"col-start-end":[{col:["auto",{span:["full",Ro,Z]},Z]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Po]}],"row-start-end":[{row:["auto",{span:[Ro,Z]},Z]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[gr]},gr]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gr,mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",th]}],"font-family":[{font:[Po]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",Pi,th]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Un,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Un,mr]}],"underline-offset":[{"underline-offset":["auto",Un,Z]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),dI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,172 bytes, line 188
188],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:z()}],"border-color":[{border:[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:["",...z()]}],"outline-offset":[{"outline-offset":[Un,Z]}],"outline-w":[{outline:[Un,mr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Un,mr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gr,pI]}],"shadow-color":[{shadow:[Po]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",gr,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ro,Z]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],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",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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 188
188],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",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Un,mr,th]}],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"]}}},wI=eI(vI);function zt(...e){return wI(z_(e))}const xI=TN,tE=m.forwardRef(({className:e,...t},n)=>p.jsx(D_,{ref:n,className:zt("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}));tE.displayName=D_.displayName;const bI=Ym("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"}}),nE=m.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(M_,{ref:r,className:zt(bI({variant:t}),e),...n}));nE.displayName=M_.displayName;const SI=m.forwardRef(({className:e,...t},n)=>p.jsx(U_,{ref:n,className:zt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));SI.displayName=U_.displayName;const rE=m.forwardRef(({className:e,...t},n)=>p.jsx(B_,{ref:n,className:zt("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 12,647 bytes, line 188
188/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:p.jsx(ka,{className:"h-4 w-4"})}));rE.displayName=B_.displayName;const sE=m.forwardRef(({className:e,...t},n)=>p.jsx($_,{ref:n,className:zt("text-sm font-semibold",e),...t}));sE.displayName=$_.displayName;const iE=m.forwardRef(({className:e,...t},n)=>p.jsx(F_,{ref:n,className:zt("text-sm opacity-90",e),...t}));iE.displayName=F_.displayName;function _I(){const{toasts:e}=Nj();return p.jsxs(xI,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return p.jsxs(nE,{...i,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(sE,{children:n}),r&&p.jsx(iE,{children:r})]}),s,p.jsx(rE,{})]},t)}),p.jsx(tE,{})]})}var EI=Rx[" useId ".trim().toString()]||(()=>{}),kI=0;function nh(e){const[t,n]=m.useState(EI());return sr(()=>{n(r=>r??String(kI++))},[e]),t?`radix-${t}`:""}const TI=["top","right","bottom","left"],Hr=Math.min,bt=Math.max,ec=Math.round,jl=Math.floor,jn=e=>({x:e,y:e}),CI={left:"right",right:"left",bottom:"top",top:"bottom"},AI={start:"end",end:"start"};function Gf(e,t,n){return bt(e,Hr(t,n))}function ir(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function Jm(e){return e==="x"?"y":"x"}function Qm(e){return e==="y"?"height":"width"}const RI=new Set(["top","bottom"]);function Rn(e){return RI.has(or(e))?"y":"x"}function Zm(e){return Jm(Rn(e))}function PI(e,t,n){n===void 0&&(n=!1);const r=lo(e),s=Zm(e),i=Qm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=tc(o)),[o,tc(o)]}function OI(e){const t=tc(e);return[qf(e),t,qf(t)]}function qf(e){return e.replace(/start|end/g,t=>AI[t])}const Bv=["left","right"],Vv=["right","left"],jI=["top","bottom"],NI=["bottom","top"];function II(e,t,n){switch(e){case"top":case"bottom":return n?t?Vv:Bv:t?Bv:Vv;case"left":case"right":return t?jI:NI;default:return[]}}function LI(e,t,n,r){const s=lo(e);let i=II(or(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(qf)))),i}function tc(e){return e.replace(/left|right|bottom|top/g,t=>CI[t])}function DI(e){return{top:0,right:0,bottom:0,left:0,...e}}function oE(e){return typeof e!="number"?DI(e):{top:e,right:e,bottom:e,left:e}}function nc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function zv(e,t,n){let{reference:r,floating:s}=e;const i=Rn(t),o=Zm(t),a=Qm(o),l=or(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-s.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(lo(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const MI=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=zv(u,r,l),h=r,f={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:w}=a[g],{x:v,y:x,data:S,reset:_}=await w({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,d=x??d,f={...f,[b]:{...f[b],...S}},_&&y<=50&&(y++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:c,y:d}=zv(u,h,l)),g=-1)}return{x:c,y:d,placement:h,strategy:s,middlewareData:f}};async function Ta(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=ir(t,e),y=oE(f),b=a[h?d==="floating"?"reference":"floating":d],w=nc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},_=nc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(w.top-_.top+y.top)/S.y,bottom:(_.bottom-w.bottom+y.bottom)/S.y,left:(w.left-_.left+y.left)/S.x,right:(_.right-w.right+y.right)/S.x}}const $I=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=ir(e,t)||{};if(u==null)return{};const d=oE(c),h={x:n,y:r},f=Zm(s),y=Qm(f),g=await o.getDimensions(u),b=f==="y",w=b?"top":"left",v=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[f]-h[f]-i.floating[y],_=h[f]-i.reference[f],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=E?E[x]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=a.floating[x]||i.floating[y]);const T=S/2-_/2,O=k/2-g[y]/2-1,A=Hr(d[w],O),$=Hr(d[v],O),I=A,W=k-g[y]-$,L=k/2-g[y]/2+T,H=Gf(I,L,W),z=!l.arrow&&lo(s)!=null&&L!==H&&i.reference[y]/2-(L<I?A:$)-g[y]/2<0,X=z?L<I?L-I:L-W:0;return{[f]:h[f]+X,data:{[f]:H,centerOffset:L-H-X,...z&&{alignmentOffset:X}},reset:z}}}),FI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=ir(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=or(s),v=Rn(a),x=or(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(x||!g?[tc(a)]:OI(a)),E=y!=="none";!h&&E&&_.push(...LI(a,g,y,S));const k=[a,..._],T=await Ta(t,b),O=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&O.push(T[w]),d){const L=PI(s,o,S);O.push(T[L[0]],T[L[1]])}if(A=[...A,{placement:s,overflows:O}],!O.every(L=>L<=0)){var $,I;const L=((($=i.flip)==null?void 0:$.index)||0)+1,H=k[L];if(H&&(!(d==="alignment"?v!==Rn(H):!1)||A.every(C=>C.overflows[0]>0&&Rn(C.placement)===v)))return{data:{index:L,overflows:A},reset:{placement:H}};let z=(I=A.filter(X=>X.overflows[0]<=0).sort((X,C)=>X.overflows[1]-C.overflows[1])[0])==null?void 0:I.placement;if(!z)switch(f){case"bestFit":{var W;const X=(W=A.filter(C=>{if(E){const R=Rn(C.placement);return R===v||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:W[0];X&&(z=X);break}case"initialPlacement":z=a;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function Hv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wv(e){return TI.some(t=>e[t]>=0)}const UI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ir(e,t);switch(r){case"referenceHidden":{const i=await Ta(t,{...s,elementContext:"reference"}),o=Hv(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Wv(o)}}}case"escaped":{const i=await Ta(t,{...s,altBoundary:!0}),o=Hv(i,n.floating);return{data:{escapedOffsets:o,escaped:Wv(o)}}}default:return{}}}}},aE=new Set(["left","top"]);async function BI(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=or(n),a=lo(n),l=Rn(n)==="y",u=aE.has(o)?-1:1,c=i&&l?-1:1,d=ir(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const VI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await BI(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},zI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:w,y:v}=b;return{x:w,y:v}}},...l}=ir(e,t),u={x:n,y:r},c=await Ta(t,l),d=Rn(or(s)),h=Jm(d);let f=u[h],y=u[d];if(i){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",v=f+c[b],x=f-c[w];f=Gf(v,f,x)}if(o){const b=d==="y"?"top":"left",w=d==="y"?"bottom":"right",v=y+c[b],x=y-c[w];y=Gf(v,y,x)}const g=a.fn({...t,[h]:f,[d]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:o}}}}}},HI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ir(e,t),c={x:n,y:r},d=Rn(s),h=Jm(d);let f=c[h],y=c[d];const g=ir(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",S=i.reference[h]-i.floating[x]+b.mainAxis,_=i.reference[h]+i.reference[x]-b.mainAxis;f<S?f=S:f>_&&(f=_)}if(u){var w,v;const x=h==="y"?"width":"height",S=aE.has(or(s)),_=i.reference[d]-i.floating[x]+(S&&((w=o.offset)==null?void 0:w[d])||0)+(S?0:b.crossAxis),E=i.reference[d]+i.reference[x]+(S?0:((v=o.offset)==null?void 0:v[d])||0)-(S?b.crossAxis:0);y<_?y=_:y>E&&(y=E)}return{[h]:f,[d]:y}}}},WI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=ir(e,t),c=await Ta(t,u),d=or(s),h=lo(s),f=Rn(s)==="y",{width:y,height:g}=i.floating;let b,w;d==="top"||d==="bottom"?(b=d,w=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(w=d,b=h==="end"?"top":"bottom");const v=g-c.top-c.bottom,x=y-c.left-c.right,S=Hr(g-c[b],v),_=Hr(y-c[w],x),E=!t.middlewareData.shift;let k=S,T=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=v),E&&!h){const A=bt(c.left,0),$=bt(c.right,0),I=bt(c.top,0),W=bt(c.bottom,0);f?T=y-2*(A!==0||$!==0?A+$:bt(c.left,c.right)):k=g-2*(I!==0||W!==0?I+W:bt(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:k});const O=await o.getDimensions(a.floating);return y!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}};function Yc(){return typeof window<"u"}function uo(e){return lE(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(lE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lE(e){return Yc()?e instanceof Node||e instanceof kt(e).Node:!1}function pn(e){return Yc()?e instanceof Element||e instanceof kt(e).Element:!1}function Ln(e){return Yc()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Kv(e){return!Yc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const KI=new Set(["inline","contents"]);function Za(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!KI.has(s)}const GI=new Set(["table","td","th"]);function qI(e){return GI.has(uo(e))}const YI=[":popover-open",":modal"];function Xc(e){return YI.some(t=>{try{return e.matches(t)}catch{return!1}})}const XI=["transform","translate","scale","rotate","perspective"],JI=["transform","translate","scale","rotate","perspective","filter"],QI=["paint","layout","strict","content"];function eg(e){const t=tg(),n=pn(e)?mn(e):e;return XI.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||JI.some(r=>(n.willChange||"").includes(r))||QI.some(r=>(n.contain||"").includes(r))}function ZI(e){let t=Wr(e);for(;Ln(t)&&!Xi(t);){if(eg(t))return t;if(Xc(t))return null;t=Wr(t)}return null}function tg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eL=new Set(["html","body","#document"]);function Xi(e){return eL.has(uo(e))}function mn(e){return kt(e).getComputedStyle(e)}
vendor: 4,364 bytes, line 188
188function Jc(e){return pn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wr(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kv(e)&&e.host||Mn(e);return Kv(t)?t.host:t}function uE(e){const t=Wr(e);return Xi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ln(t)&&Za(t)?t:uE(t)}function Ca(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=uE(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=kt(s);if(i){const a=Yf(o);return t.concat(o,o.visualViewport||[],Za(s)?s:[],a&&n?Ca(a):[])}return t.concat(s,Ca(s,[],n))}function Yf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cE(e){const t=mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ln(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ec(n)!==i||ec(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function ng(e){return pn(e)?e:e.contextElement}function Oi(e){const t=ng(e);if(!Ln(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=cE(t);let o=(i?ec(n.width):n.width)/r,a=(i?ec(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const tL=jn(0);function dE(e){const t=kt(e);return!tg()||!t.visualViewport?tL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function Ns(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=ng(e);let o=jn(1);t&&(r?pn(r)&&(o=Oi(r)):o=Oi(e));const a=nL(i,n,r)?dE(i):jn(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=kt(i),f=r&&pn(r)?kt(r):r;let y=h,g=Yf(y);for(;g&&r&&f!==y;){const b=Oi(g),w=g.getBoundingClientRect(),v=mn(g),x=w.left+(g.clientLeft+parseFloat(v.paddingLeft))*b.x,S=w.top+(g.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=S,y=kt(g),g=Yf(y)}}return nc({width:c,height:d,x:l,y:u})}function rg(e,t){const n=Jc(e).scrollLeft;return t?t.left+n:Ns(Mn(e)).left+n}function hE(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:rg(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function rL(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Mn(r),a=t?Xc(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=jn(1);const c=jn(0),d=Ln(r);if((d||!d&&!i)&&((uo(r)!=="body"||Za(o))&&(l=Jc(r)),Ln(r))){const f=Ns(r);u=Oi(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=o&&!d&&!i?hE(o,l,!0):jn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function sL(e){return Array.from(e.getClientRects())}function iL(e){const t=Mn(e),n=Jc(e),r=e.ownerDocument.body,s=bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rg(e);const a=-n.scrollTop;return mn(r).direction==="rtl"&&(o+=bt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function oL(e,t){const n=kt(e),r=Mn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=tg();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const aL=new Set(["absolute","fixed"]);function lL(e,t){const n=Ns(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Ln(e)?Oi(e):jn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function Gv(e,t,n){let r;if(t==="viewport")r=oL(e,n);else if(t==="document")r=iL(Mn(e));else if(pn(t))r=lL(t,n);else{const s=dE(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return nc(r)}function fE(e,t){const n=Wr(e);return n===t||!pn(n)||Xi(n)?!1:mn(n).position==="fixed"||fE(n,t)}function uL(e,t){const n=t.get(e);if(n)return n;let r=Ca(e,[],!1).filter(a=>pn(a)&&uo(a)!=="body"),s=null;const i=mn(e).position==="fixed";let o=i?Wr(e):e;for(;pn(o)&&!Xi(o);){const a=mn(o),l=eg(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&aL.has(s.position)||Za(o)&&!l&&fE(e,o))?r=r.filter(c=>c!==o):s=a,o=Wr(o)}return t.set(e,r),r}function cL(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Xc(t)?[]:uL(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=Gv(t,c,s);
vendor: 8,931 bytes, line 188
188return u.top=bt(d.top,u.top),u.right=Hr(d.right,u.right),u.bottom=Hr(d.bottom,u.bottom),u.left=bt(d.left,u.left),u},Gv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dL(e){const{width:t,height:n}=cE(e);return{width:t,height:n}}function hL(e,t,n){const r=Ln(t),s=Mn(t),i=n==="fixed",o=Ns(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=jn(0);function u(){l.x=rg(s)}if(r||!r&&!i)if((uo(t)!=="body"||Za(s))&&(a=Jc(t)),r){const f=Ns(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&u();i&&!r&&s&&u();const c=s&&!r&&!i?hE(s,a):jn(0),d=o.left+a.scrollLeft-l.x-c.x,h=o.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:o.width,height:o.height}}function rh(e){return mn(e).position==="static"}function qv(e,t){if(!Ln(e)||mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mn(e)===n&&(n=n.ownerDocument.body),n}function pE(e,t){const n=kt(e);if(Xc(e))return n;if(!Ln(e)){let s=Wr(e);for(;s&&!Xi(s);){if(pn(s)&&!rh(s))return s;s=Wr(s)}return n}let r=qv(e,t);for(;r&&qI(r)&&rh(r);)r=qv(r,t);return r&&Xi(r)&&rh(r)&&!eg(r)?n:r||ZI(e)||n}const fL=async function(e){const t=this.getOffsetParent||pE,n=this.getDimensions,r=await n(e.floating);return{reference:hL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pL(e){return mn(e).direction==="rtl"}const mL={convertOffsetParentRelativeRectToViewportRelativeRect:rL,getDocumentElement:Mn,getClippingRect:cL,getOffsetParent:pE,getElementRects:fL,getClientRects:sL,getDimensions:dL,getScale:Oi,isElement:pn,isRTL:pL};function mE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gL(e,t){let n=null,r;const s=Mn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||t(),!h||!f)return;const y=jl(d),g=jl(s.clientWidth-(c+h)),b=jl(s.clientHeight-(d+f)),w=jl(c),x={rootMargin:-y+"px "+-g+"px "+-b+"px "+-w+"px",threshold:bt(0,Hr(1,l))||1};let S=!0;function _(E){const k=E[0].intersectionRatio;if(k!==l){if(!S)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!mE(u,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(_,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return o(!0),i}function yL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ng(e),c=s||i?[...u?Ca(u):[],...Ca(t)]:[];c.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=u&&a?gL(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(w=>{let[v]=w;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let y,g=l?Ns(e):null;l&&b();function b(){const w=Ns(e);g&&!mE(g,w)&&n(),g=w,y=requestAnimationFrame(b)}return n(),()=>{var w;c.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),d==null||d(),(w=f)==null||w.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const vL=VI,wL=zI,xL=FI,bL=WI,SL=UI,Yv=$I,_L=HI,EL=(e,t,n)=>{const r=new Map,s={platform:mL,...n},i={...s.platform,_c:r};return MI(e,t,{...s,platform:i})};var kL=typeof document<"u",TL=function(){},mu=kL?m.useLayoutEffect:TL;function rc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!rc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function gE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xv(e,t){const n=gE(e);return Math.round(t*n)/n}function sh(e){const t=m.useRef(e);return mu(()=>{t.current=e}),t}function CL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=m.useState(r);rc(h,r)||f(r);const[y,g]=m.useState(null),[b,w]=m.useState(null),v=m.useCallback(C=>{C!==E.current&&(E.current=C,g(C))},[]),x=m.useCallback(C=>{C!==k.current&&(k.current=C,w(C))},[]),S=i||y,_=o||b,E=m.useRef(null),k=m.useRef(null),T=m.useRef(c),O=l!=null,A=sh(l),$=sh(s),I=sh(u),W=m.useCallback(()=>{if(!E.current||!k.current)return;const C={placement:t,strategy:n,middleware:h};$.current&&(C.platform=$.current),EL(E.current,k.current,C).then(R=>{const D={...R,isPositioned:I.current!==!1};L.current&&!rc(T.current,D)&&(T.current=D,qa.flushSync(()=>{d(D)}))})},[h,t,n,$,I]);mu(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const L=m.useRef(!1);mu(()=>(L.current=!0,()=>{L.current=!1}),[]),mu(()=>{if(S&&(E.current=S),_&&(k.current=_),S&&_){if(A.current)return A.current(S,_,W);W()}},[S,_,W,A,O]);const H=m.useMemo(()=>({reference:E,floating:k,setReference:v,setFloating:x}),[v,x]),z=m.useMemo(()=>({reference:S,floating:_}),[S,_]),X=m.useMemo(()=>{const C={position:n,left:0,top:0};if(!z.floating)return C;const R=Xv(z.floating,c.x),D=Xv(z.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+D+"px)",...gE(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,a,z.floating,c.x,c.y]);return m.useMemo(()=>({...c,update:W,refs:H,elements:z,floatingStyles:X}),[c,W,H,z,X])}const AL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yv({element:r.current,padding:s}).fn(n):{}:r?Yv({element:r,padding:s}).fn(n):{}}}},RL=(e,t)=>({...vL(e),options:[e,t]}),PL=(e,t)=>({...wL(e),options:[e,t]}),OL=(e,t)=>({..._L(e),options:[e,t]}),jL=(e,t)=>({...xL(e),options:[e,t]}),NL=(e,t)=>({...bL(e),options:[e,t]}),IL=(e,t)=>({...SL(e),options:[e,t]}),LL=(e,t)=>({...AL(e),options:[e,t]});var DL="Arrow",yE=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(Ne.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});yE.displayName=DL;var ML=yE;function $L(e){const[t,n]=m.useState(void 0);return sr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var sg="Popper",[vE,wE]=Ja(sg),[FL,xE]=vE(sg),bE=e=>{const{__scopePopper:t,children:n}=e,[r,s]=m.useState(null);return p.jsx(FL,{scope:t,anchor:r,onAnchorChange:s,children:n})};bE.displayName=sg;var SE="PopperAnchor",_E=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=xE(SE,n),o=m.useRef(null),a=ut(t,o);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(Ne.div,{...s,ref:a})});_E.displayName=SE;var ig="PopperContent",[UL,BL]=vE(ig),EE=m.forwardRef((e,t)=>{var ie,Us,lr,Qr,ur,Bs;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:y,...g}=e,b=xE(ig,n),[w,v]=m.useState(null),x=ut(t,cr=>v(cr)),[S,_]=m.useState(null),E=$L(S),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,O=r+(i!=="center"?"-"+i:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(u)?u:[u],I=$.length>0,W={padding:A,boundary:$.filter(zL),altBoundary:I},{refs:L,floatingStyles:H,placement:z,isPositioned:X,middlewareData:C}=CL({strategy:"fixed",placement:O,whileElementsMounted:(...cr)=>yL(...cr,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[RL({mainAxis:s+T,alignmentAxis:o}),l&&PL({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?OL():void 0,...W}),l&&jL({...W}),NL({...W,apply:({elements:cr,rects:il,availableWidth:dd,availableHeight:ol})=>{const{width:hd,height:go}=il.reference,Vs=cr.floating.style;Vs.setProperty("--radix-popper-available-width",`${dd}px`),Vs.setProperty("--radix-popper-available-height",`${ol}px`),Vs.setProperty("--radix-popper-anchor-width",`${hd}
188px`),Vs.setProperty("--radix-popper-anchor-height",`${go}px`)}}),S&&LL({element:S,padding:a}),HL({arrowWidth:k,arrowHeight:T}),h&&IL({strategy:"referenceHidden",...W})]}),[R,D]=CE(z),Y=In(y);sr(()=>{X&&(Y==null||Y())},[X,Y]);const K=(ie=C.arrow)==null?void 0:ie.x,ee=(Us=C.arrow)==null?void 0:Us.y,ne=((lr=C.arrow)==null?void 0:lr.centerOffset)!==0,[Re,Ge]=m.useState();return sr(()=>{w&&Ge(window.getComputedStyle(w).zIndex)},[w]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:X?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Qr=C.transformOrigin)==null?void 0:Qr.x,(ur=C.transformOrigin)==null?void 0:ur.y].join(" "),...((Bs=C.hide)==null?void 0:Bs.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(UL,{scope:n,placedSide:R,onArrowChange:_,arrowX:K,arrowY:ee,shouldHideArrow:ne,children:p.jsx(Ne.div,{"data-side":R,"data-align":D,...g,ref:x,style:{...g.style,animation:X?void 0:"none"}})})})});EE.displayName=ig;var kE="PopperArrow",VL={top:"bottom",right:"left",bottom:"top",left:"right"},TE=m.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=BL(kE,r),o=VL[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(ML,{...s,ref:n,style:{...s.style,display:"block"}})})});TE.displayName=kE;function zL(e){return e!==null}var HL=e=>({name:"transformOrigin",options:e,fn(t){var b,w,v;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=CE(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((w=s.arrow)==null?void 0:w.x)??0)+a/2,f=(((v=s.arrow)==null?void 0:v.y)??0)+l/2;let y="",g="";return u==="bottom"?(y=o?d:`${h}px`,g=`${-l}px`):u==="top"?(y=o?d:`${h}px`,g=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,g=o?d:`${f}px`):u==="left"&&(y=`${r.floating.width+l}px`,g=o?d:`${f}px`),{data:{x:y,y:g}}}});function CE(e){const[t,n="center"]=e.split("-");return[t,n]}var Cz=bE,WL=_E,KL=EE,GL=TE,[Qc,Az]=Ja("Tooltip",[wE]),og=wE(),AE="TooltipProvider",qL=700,Jv="tooltip.open",[YL,RE]=Qc(AE),PE=e=>{const{__scopeTooltip:t,delayDuration:n=qL,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(YL,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};PE.displayName=AE;var OE="Tooltip",[Rz,Zc]=Qc(OE),Xf="TooltipTrigger",XL=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Zc(Xf,n),i=RE(Xf,n),o=og(n),a=m.useRef(null),l=ut(t,a,s.onTriggerChange),u=m.useRef(!1),c=m.useRef(!1),d=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(WL,{asChild:!0,...o,children:p.jsx(Ne.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:ye(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ye(e.onBlur,s.onClose),onClick:ye(e.onClick,s.onClose)})})});XL.displayName=Xf;var JL="TooltipPortal",[Pz,QL]=Qc(JL,{forceMount:void 0}),Ji="TooltipContent",jE=m.forwardRef((e,t)=>
vendor: 4,632 bytes, line 188
188{const n=QL(Ji,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Zc(Ji,e.__scopeTooltip);return p.jsx(oo,{present:r||o.open,children:o.disableHoverableContent?p.jsx(NE,{side:s,...i,ref:t}):p.jsx(ZL,{side:s,...i,ref:t})})}),ZL=m.forwardRef((e,t)=>{const n=Zc(Ji,e.__scopeTooltip),r=RE(Ji,e.__scopeTooltip),s=m.useRef(null),i=ut(t,s),[o,a]=m.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:d}=r,h=m.useCallback(()=>{a(null),d(!1)},[d]),f=m.useCallback((y,g)=>{const b=y.currentTarget,w={x:y.clientX,y:y.clientY},v=sD(w,b.getBoundingClientRect()),x=iD(w,v),S=oD(g.getBoundingClientRect()),_=lD([...x,...S]);a(_),d(!0)},[d]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(l&&c){const y=b=>f(b,c),g=b=>f(b,l);return l.addEventListener("pointerleave",y),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",g)}}},[l,c,f,h]),m.useEffect(()=>{if(o){const y=g=>{const b=g.target,w={x:g.clientX,y:g.clientY},v=(l==null?void 0:l.contains(b))||(c==null?void 0:c.contains(b)),x=!aD(w,o);v?h():x&&(h(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,c,o,u,h]),p.jsx(NE,{...e,ref:i})}),[eD,tD]=Qc(OE,{isInside:!1}),nD=$j("TooltipContent"),NE=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Zc(Ji,n),u=og(n),{onClose:c}=l;return m.useEffect(()=>(document.addEventListener(Jv,c),()=>document.removeEventListener(Jv,c)),[c]),m.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),p.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:p.jsxs(KL,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(nD,{children:r}),p.jsx(eD,{scope:n,isInside:!0,children:p.jsx(lN,{id:l.contentId,role:"tooltip",children:s||r})})]})})});jE.displayName=Ji;var IE="TooltipArrow",rD=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=og(n);return tD(IE,n).isInside?null:p.jsx(GL,{...s,...r,ref:t})});rD.displayName=IE;function sD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function oD(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function aD(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(s=!s)}return s}function lD(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),uD(t)}function uD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cD=PE,LE=jE;const dD=cD,hD=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(LE,{ref:r,sideOffset:t,className:zt("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
188de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));hD.displayName=LE.displayName;const fD=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Is={FIRST_TOUCH:"gieniabx_first_touch",SESSION:"gieniabx_session_attribution",SESSION_ID:"gieniabx_session_id"};function pD(){const e=new URLSearchParams(window.location.search),t={};return fD.forEach(n=>{const r=e.get(n);r&&(t[n]=decodeURIComponent(r))}),t}function mD(e){return Object.values(e).some(t=>t!==void 0&&t!=="")}function gD(){return`${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function DE(){let e=sessionStorage.getItem(Is.SESSION_ID);return e||(e=gD(),sessionStorage.setItem(Is.SESSION_ID,e)),e}function yD(e){localStorage.getItem(Is.FIRST_TOUCH)||localStorage.setItem(Is.FIRST_TOUCH,JSON.stringify(e))}function vD(e){sessionStorage.setItem(Is.SESSION,JSON.stringify(e))}function wD(){const e=localStorage.getItem(Is.FIRST_TOUCH);return e?JSON.parse(e):null}function ag(){const e=sessionStorage.getItem(Is.SESSION);return e?JSON.parse(e):null}function xD(){const e=ag();return(e==null?void 0:e.utms)??{}}function bD(){const e=pD(),t=document.referrer||"(direct)",n=window.location.pathname+window.location.search,r=new Date().toISOString(),s={utms:e,referrer:t,landingPage:n,timestamp:r};yD(s),(!ag()||mD(e))&&vD(s),DE()}function lg(){return{session_id:DE(),first_touch:wD(),session:ag(),current_utms:xD()}}const ME="gieniabx_consent";function ug(){const e=localStorage.getItem(ME);return e?JSON.parse(e):{analytics:"pending",marketing:"pending",necessary:"granted",timestamp:""}}function ed(e){return ug()[e]==="granted"}function SD(){return ug().analytics==="pending"}function $E(e,t){const n={analytics:e?"granted":"denied",marketing:t?"granted":"denied",necessary:"granted",timestamp:new Date().toISOString()};localStorage.setItem(ME,JSON.stringify(n)),kD(n),window.dispatchEvent(new CustomEvent("consent_update",{detail:n})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cookie_consent_update",analytics_consent:n.analytics,marketing_consent:n.marketing})}function _D(){$E(!0,!0)}function ED(){$E(!1,!1)}function kD(e){typeof window<"u"&&window.gtag&&window.gtag("consent","update",{analytics_storage:e.analytics==="granted"?"granted":"denied",ad_storage:e.marketing==="granted"?"granted":"denied",ad_user_data:e.marketing==="granted"?"granted":"denied",ad_personalization:e.marketing==="granted"?"granted":"denied"})}function TD(){if(typeof window<"u"){window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||function(...t){window.dataLayer.push(t)};const e=ug();if(e.analytics==="pending")return;window.gtag("consent","update",{analytics_storage:e.analytics==="granted"?"granted":"denied",ad_storage:e.marketing==="granted"?"granted":"denied",ad_user_data:e.marketing==="granted"?"granted":"denied",ad_personalization:e.marketing==="granted"?"granted":"denied"})}}var An=function(){return An=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},An.apply(this,arguments)};function co(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function CD(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function AD(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}const RD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class cg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class PD extends cg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Qv extends cg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Zv extends cg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Jf;(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"})(Jf||(Jf={}));class OD{constructor(t,{headers:n={},customFetch:r,region:s=Jf.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=RD(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return CD(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:u,signal:c,timeout:d}=r;let h={},{region:f}=r;f||(f=this.region);const y=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,y.searchParams.set("forceFunctionRegion",f));let g;const b=!!a&&Object.keys(a).some(E=>E.toLowerCase()==="content-type");u&&!b?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(h["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(h["Content-Type"]="application/json",g=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?g=JSON.stringify(u):g=u;let w=c;d&&(o=new AbortController,i=setTimeout(()=>
188o.abort(),d),c?(w=o.signal,c.addEventListener("abort",()=>o.abort())):w=o.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:g,signal:w}).catch(E=>{throw new PD(E)}),x=v.headers.get("x-relay-error");if(x&&x==="true")throw new Qv(v);if(!v.ok)throw new Zv(v);let S=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return S==="application/json"?_=yield v.json():S==="application/octet-stream"||S==="application/pdf"?_=yield v.blob():S==="text/event-stream"?_=v:S==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Zv||a instanceof Qv?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const FE=3,e0=e=>Math.min(1e3*2**e,3e4),jD=[520,503],UE=["GET","HEAD","OPTIONS"];var t0=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function n0(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function ND(e,t,n,r){return!(!r||n>=FE||!UE.includes(e)||!jD.includes(t))}var ID=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const u={};n.headers.forEach((d,h)=>{u[h]=d}),o>0&&(u["X-Retry-Count"]=String(o));let c;try{c=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(d,h)=>typeof h=="bigint"?h.toString():h),signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!UE.includes(n.method))throw d;if(n.retryEnabled&&o<FE){const h=e0(o);o++,await n0(h,n.signal);continue}throw d}if(ND(n.method,c.status,o,n.retryEnabled)){var a,l;const d=(a=(l=c.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,h=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:e0(o);await c.text(),o++,await n0(h,n.signal);continue}return await n.processResponse(c)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",u="",c="";const d=o==null?void 0:o.cause;if(d){var h,f,y,g;const v=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",x=(f=d==null?void 0:d.code)!==null&&f!==void 0?f:"";l=`${(y=o==null?void 0:o.name)!==null&&y!==void 0?y:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 189 190Caused by: ${(g=d==null?void 0:d.name)!==null&&g!==void 0?g:"Error"}: ${v}`,x&&(l+=` (${x})`),d!=null&&d.stack&&(l+=` 191${d.stack}`)}else{var b;l=(b=o==null?void 0:o.stack)!==null&&b!==void 0?b:""}const w=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(c="",u="Request was aborted (timeout or manual cancellation)",w>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${w} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",u="HTTP headers exceeded server limits (typically 16KB)",w>this.urlLengthLimit&&(u+=`. Your request URL is ${w} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:u,code:c},data:null,count:null,status:0,statusText:""}}
191)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var a,l;if(t.method!=="HEAD"){var u;const h=await e.text();if(h!=="")if(t.headers.get("Accept")==="text/csv")r=h;else if(t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text")))r=h;else try{r=JSON.parse(h)}catch{if(n={message:h},r=null,t.shouldThrowOnError)throw new t0({message:h,details:"",hint:"",code:""})}}const c=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");c&&d&&d.length>1&&(s=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const c=await e.text();try{n=JSON.parse(c),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&c===""?(i=204,o="No Content"):n={message:c}}if(n&&t.shouldThrowOnError)throw new t0(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},LD=class extends ID{throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const r0=new RegExp("[,()]");var ni=class extends LD{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&r0.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&r0.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
191n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},DD=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new ni({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1910){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new ni({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(u.length>0){const c=[...new Set(u)].map(d=>`"${d}"`);a.searchParams.set("columns",c.join(","))}}return new ni({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ni({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ni({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aa(e)}function MD(e,t){if(Aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $D(e){var t=MD(e,"string");return Aa(t)=="symbol"?t:t+""}function FD(e,t,n){return(t=$D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){FD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UD=class BE{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,c)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),i),f=c==null?void 0:c.signal;if(f){if(f.aborted)return clearTimeout(h),l(u,c);const y=()=>{clearTimeout(h),d.abort()};return f.addEventListener("abort",y,{once:!0}),l(u,Nl(Nl({},c),{},{signal:d.signal})).finally(()=>{clearTimeout(h),f.removeEventListener("abort",y)})}return l(u,Nl(Nl({},c),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=l,this.retry=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new DD(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new BE(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(c)),d=r&&Object.values(n).some(c);d?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,y])=>y!==void 0).map(([f,y])=>[f,Array.isArray(y)?`{${y.join(",")}}`:`${y}
191`]).forEach(([f,y])=>{l.searchParams.append(f,y)})):(a="POST",u=n);const h=new Headers(this.headers);return d?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new ni({method:a,url:l,headers:h,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class BD{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const s=globalThis.process;if(s){const i=s.versions;if(i&&i.node){const o=i.node,a=parseInt(o.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 192import ws from "ws" 193new 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.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 194 195Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const VD="2.109.0",zD=`realtime-js/${VD}`,HD="1.0.0",VE="2.0.0",WD=VE,KD=1e4,GD=100,Er={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},zE={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Qf={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class qD{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let y=new DataView(f),g=0;y.setUint8(g++,this.KINDS.userBroadcastPush),y.setUint8(g++,l.length),y.setUint8(g++,a.length),y.setUint8(g++,o.length),y.setUint8(g++,u.length),y.setUint8(g++,d.length),y.setUint8(g++,n),Array.from(l,w=>
195y.setUint8(g++,w.charCodeAt(0))),Array.from(a,w=>y.setUint8(g++,w.charCodeAt(0))),Array.from(o,w=>y.setUint8(g++,w.charCodeAt(0))),Array.from(u,w=>y.setUint8(g++,w.charCodeAt(0))),Array.from(d,w=>y.setUint8(g++,w.charCodeAt(0)));var b=new Uint8Array(f.byteLength+r.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(r),f.byteLength),b.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+s));l=l+s;const c=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,y={type:this.BROADCAST_EVENT,event:c,payload:f};return o>0&&(y.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var ce;(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"})(ce||(ce={}));const i0=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=YD(o,e,t,s),i),{}):{}},YD=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?HE(i,o):Zf(o)},HE=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return ZD(t,n)}switch(e){case ce.bool:return XD(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return JD(t);case ce.json:case ce.jsonb:return QD(t);case ce.timestamp:return e2(t);case ce.abstime:case ce.date:case ce.daterange:case ce.int4range:case ce.int8range:case ce.money:case ce.reltime:case ce.text:case ce.time:case ce.timestamptz:case ce.timetz:case ce.tsrange:case ce.tstzrange:return Zf(t);default:return Zf(t)}},Zf=e=>e,XD=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},JD=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},QD=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ZD=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>HE(t,a))}return e},e2=e=>typeof e=="string"?e.replace(" ","T"):e,WE=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Qo=e=>typeof e=="function"?e:function(){return e},t2=typeof self<"u"?self:null,ri=typeof window<"u"?window:null,bn=t2||ri||globalThis,n2="2.0.0",r2=1e4,s2=1e3,kn={connecting:0,open:1,closing:2,closed:3},ht={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Wn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ep={longpoll:"longpoll",websocket:"websocket"},i2={complete:4},tp="base64url.bearer.phx.",Il=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 195
195oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},KE=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},o2=class{constructor(e,t,n){this.state=ht.closed,this.topic=e,this.params=Qo(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Il(this,Wn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new KE(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=ht.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=ht.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=ht.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=ht.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Il(this,Wn.leave,Qo({}),this.timeout).send(),this.state=ht.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Wn.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ht.closed,this.bindings=[]}onClose(e){this.on(Wn.close,e)}onError(e){return this.on(Wn.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Il(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ht.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Wn.close,"leave")},n=new Il(this,Wn.leave,Qo({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ht.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===ht.closed}isErrored(){return this.state===ht.errored}isJoined(){return this.state===ht.joined}isJoining(){return this.state===ht.joining}isLeaving(){return this.state===ht.leaving}},sc=class{static request(e,t,n,r,s,i,o){if(bn.XDomainRequest){let a=new bn.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(bn.XMLHttpRequest){let a=new bn.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(bn.fetch&&bn.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let a={method:e,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),bn.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,a){e.open(t,n,!0),e.timeout=i;for(let[l,u]of Object.entries(r))e.setRequestHeader(l,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===i2.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},a2=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},qs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(tp)&&(this.authToken=atob(t[1].slice(tp.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=kn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ep.websocket),"$1/"+ep.longpoll)}endpointURL(){return sc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=kn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===kn.open||this.readyState===kn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=kn.open,this.onopen({}),this.poll();break;
195case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=a2(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 196`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=kn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=sc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},l2=class $o{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=$o.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=$o.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=$o.syncDiff(this.state,s,i,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return $o.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),o={},a={};return this.map(i,(l,u)=>{n[l]||(a[l]=u)}),this.map(n,(l,u)=>{let c=i[l];if(c){let d=u.metas.map(g=>g.phx_ref),h=c.metas.map(g=>g.phx_ref),f=u.metas.filter(g=>h.indexOf(g.phx_ref)<0),y=c.metas.filter(g=>d.indexOf(g.phx_ref)<0);f.length>0&&(o[l]=u,o[l].metas=f),y.length>0&&(a[l]=this.clone(c),a[l].metas=y)}else o[l]=u}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let u=t[a];if(t[a]=this.clone(l),u){let c=t[a].metas.map(h=>h.phx_ref),d=u.metas.filter(h=>c.indexOf(h.phx_ref)<0);t[a].metas.unshift(...d)}r(a,u,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;let c=l.metas.map(d=>d.phx_ref);u.metas=u.metas.filter(d=>c.indexOf(d.phx_ref)<0),s(a,u,l),u.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Ll={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+n.length+s.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,t.length),l.setUint8(u++,n.length),l.setUint8(u++,s.length),l.setUint8(u++,r.length),Array.from(t,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(s,d=>l.setUint8(u++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(u++,d.charCodeAt(0)));var c=new Uint8Array(a.byteLength+i.byteLength);return c.set(new Uint8Array(a),0),c.set(new Uint8Array(i),a.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,485 bytes, line 196
196,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+s));o=o+s;let u=n.decode(e.slice(o,o+i));o=o+i;let c=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:u,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let u=n.decode(e.slice(a,a+s));a=a+s;let c=n.decode(e.slice(a,a+i));a=a+i;let d=n.decode(e.slice(a,a+o));a=a+o;let h=e.slice(a,e.byteLength),f={status:d,response:h};return{join_ref:l,ref:u,topic:c,event:Wn.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let a=n.decode(e.slice(i,i+s));i=i+s;let l=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},u2=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||r2,this.transport=t.transport||bn.WebSocket||qs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=bn&&bn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Ll.encode.bind(Ll),this.defaultDecoder=Ll.decode.bind(Ll),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==qs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;ri&&ri.addEventListener&&(ri.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),ri.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),ri.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Qo(t.params||{}),this.endPoint=`${e}/${ep.websocket}`,this.vsn=t.vsn||n2,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new KE(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return qs}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=sc.appendParams(sc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Qo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==qs?this.connectWithFallback(qs,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case qs:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${tp}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),i=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),s2,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===kn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 196
196triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Wn.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case kn.connecting:return"connecting";case kn.open:return"open";case kn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new o2(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,s,o)&&l.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Zo{constructor(t,n){const r=d2(n);this.presence=new l2(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Zo.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Zo.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Zo.transformState(this.presence.state)}static transformState(t){return t=c2(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=gu(s),n},{})}static onJoinPayload(t,n,r){const s=o0(n),i=gu(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=o0(n),i=gu(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function gu(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function c2(e){return JSON.parse(JSON.stringify(e))}function d2(e){return(e==null?void 0:e.events)&&{events:e.events}}function o0(e){return e!=null&&e.metas?gu(e):[]}var a0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(a0||(a0={}));class h2{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Zo(this.channel.channelAdapter,n)}}function f2(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
196if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class p2{constructor(t,n,r){const s=m2(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>GD){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Er.joined}isJoined(){return this.state===Er.joined}isJoining(){return this.state===Er.joining}isClosed(){return this.state===Er.closed}isLeaving(){return this.state===Er.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function m2(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const g2=/[,()"\\]/,y2=e=>g2.test(e)||e!==e.trim(),v2=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,l0=e=>{const t=e===null?"null":String(e);return y2(t)?v2(t):t},w2=e=>e===null?"null":String(e),x2=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>l0(s)).join(",")})`}return e==="is"?`is.${w2(t)}`:`${e}.${l0(t)}`};class b2{constructor(){this.filters=[]}add(t,n,r,s=!1){const i=s?"not.":"";return this.filters.push(`${t}=${i}${x2(n,r)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,r){return this.add(t,n,r,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var u0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(u0||(u0={}));var vi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(vi||(vi={}));var Kn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Kn||(Kn={}));class ea{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new p2(this.socket.socketAdapter,t,this.params),this.presence=new h2(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=WE(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[vi.PRESENCE]&&this.bindings[vi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(Kn.CHANNEL_ERROR,f2(f))}),this._onClose(()=>t==null?void 0:t(Kn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Kn.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=Er.errored;const y=Object.values(f).join(", ")||"error";t==null||t(Kn.CHANNEL_ERROR,new Error(y,{cause:f}))}).receive("timeout",()=>{t==null||t(Kn.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<i;a++){const l=s[a],{filter:{event:u,schema:c,table:d,filter:h}}=l,f=t&&t[a];if(f&&f.event===u&&ea.isFilterValueEqual(f.schema,c)&&ea.isFilterValueEqual(f.table,d)&&ea.isFilterValueEqual(f.filter,h))o.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=Er.errored,n==null||n(Kn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Er.errored&&n&&n(Kn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===vi.PRESENCE||t===vi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a=new URL(this.broadcastEndpointURL);a.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&a.searchParams.set("private","true");const l={method:"POST",headers:o,body:i?n:JSON.stringify(n)},u=await this._fetchWithTimeout(a.toString(),l,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(u.status===202)return{success:!0};if(u.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
196ime-js/migrations/httpsend-server-version.md"));let c=u.statusText;try{const d=await u.json();c=d.error||d.message||c}catch{}return Promise.reject(new Error(c))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(t,n,r){const s=t.toLocaleLowerCase(),i=n==null?void 0:n.filter;(i instanceof b2||typeof i=="object"&&i!==null&&typeof i.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:i.build()}));const o=this.channelAdapter.on(t,r),a={type:s,filter:n,callback:r,ref:o};return this.bindings[s]?this.bindings[s].push(a):this.bindings[s]=[a],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,a,l,u,c;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const h=(s=this.bindings[d])===null||s===void 0?void 0:s.find(f=>f.ref===t.ref);if(!h)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in h){const f=h.id,y=(i=h.filter)===null||i===void 0?void 0:i.event;return f&&((o=n.ids)===null||o===void 0?void 0:o.includes(f))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const f=(u=(l=h==null?void 0:h.filter)===null||l===void 0?void 0:l.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return f==="*"||f===((c=n==null?void 0:n.event)===null||c===void 0?void 0:c.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=zE;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=i0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=i0(t.columns,t.old_record)),n}}class S2{constructor(t,n){this.socket=new u2(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Qf.connecting}isDisconnecting(){return this.socket.connectionState()==Qf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const c0={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},_2=[1e3,2e3,5e3,1e4],E2=1e4;function k2(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function T2(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return k2()}const C2=` 197 addEventListener("message", (e) => { 198 if (e.data.event === "start") { 199 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 200 } 201 });`;class A2{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
201,this.ref=0,this.serializer=new qD,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new S2(t,s),this.httpEndpoint=WE(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 202 203To use Realtime in Node.js, you need to provide a WebSocket implementation: 204 205Option 1: Use Node.js 22+ which has native WebSocket support 206Option 2: Install and provide the "ws" package: 207 208 npm install ws 209 210 import ws from "ws" 211 const client = new RealtimeClient(url, { 212 ...options, 213 transport: ws 214 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Qf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new ea(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
214this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:zD};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(zE.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([C2],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,u,c,d,h,f;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const y={};y.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:KD,y.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:c0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:c0.HEARTBEAT_INTERVAL),y.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:BD.getWebSocketConstructor(),y.params=t==null?void 0:t.params,y.logger=t==null?void 0:t.logger,y.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),y.sessionStorage=(u=t==null?void 0:t.sessionStorage)!==null&&u!==void 0?u:T2(),y.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:v=>_2[v-1]||E2;let g,b;const w=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:WD;switch(w){case HD:g=(v,x)=>x(JSON.stringify(v)),b=(v,x)=>x(JSON.parse(v));break;case VE:g=this.serializer.encode.bind(this.serializer),b=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${y.vsn}`)}if(y.vsn=w,y.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:g,y.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:b,y.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,y.params=Object.assign(Object.assign({},y.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,y.autoSendHeartbeat=!this.worker}return y}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
214var Ra=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function R2(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function P2(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 O2(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=R2(e.baseUrl,r,s),l=await P2(e.auth),u=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),h=d&&c?JSON.parse(c):c;if(!u.ok){const f=d?h:void 0,y=f==null?void 0:f.error;throw new Ra((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:f})}return{status:u.status,headers:u.headers,data:h}}}}function Dl(e){return e.join("�")}var j2=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Dl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Dl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Dl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Dl(e.namespace)}`}),!0}catch(t){if(t instanceof Ra&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ra&&n.status===409)return;throw n}}};function Ys(e){return e.join("�")}var N2=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ys(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ys(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ys(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ys(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/${Ys(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/${Ys(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ra&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ra&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},I2=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=O2({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new j2(this.client,t),this.tableOps=new N2(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)}
214async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function L2(e,t){if(Pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D2(e){var t=L2(e,"string");return Pa(t)=="symbol"?t:t+""}function M2(e,t,n){return(t=D2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){M2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var td=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function nd(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var np=class extends td{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return G({},super.toJSON())}},GE=class extends td{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function ic(e,t,n){const r=G({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function $2(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const F2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),U2=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)},rp=e=>{if(Array.isArray(e))return e.map(n=>rp(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=rp(r)}),t},B2=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),h0=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},V2=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new np(h0(o),i,a,r))}).catch(()=>{const o=i+"";t(new np(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new GE(h0(e),e,r))},z2=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return G(G({},s),n);if(U2(r)){var i;const o=(t==null?void 0:t.headers)||{};let a;for(const[l,u]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=u);s.headers=ic(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),G(G({},s),n)};async function Oo(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,z2(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>V2(u,l,r,o))})}function qE(e="storage"){return{get:async(t,n,r,s)=>Oo(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>Oo(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>Oo(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>Oo(t,"HEAD",n,G(G({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>Oo(t,"DELETE",n,s,i,r,e)}}const H2=qE("storage"),{get:Oa,post:tn,put:sp,head:W2,remove:ja}=H2,St=qE("vectors");var ho=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=$2(t),this.fetch=F2(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=ic(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(nd(n))return{data:null,error:n};throw n}}};let YE;YE=Symbol.toStringTag;var K2=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[YE]="StreamDownloadBuilder",this.promise=null}
214then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(nd(t))return{data:null,error:t};throw t}}};let XE;XE=Symbol.toStringTag;var G2=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[XE]="BlobDownloadBuilder",this.promise=null}asStream(){return new K2(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(nd(t))return{data:null,error:t};throw t}}};const ih={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},f0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var q2=class extends ho{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=G(G({},f0),r);let a=G(G({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers)for(const[h,f]of Object.entries(r.headers))a=ic(a,h,f);const u=s._removeEmptyFolders(t),c=s._getFinalPath(u),d=await(e=="PUT"?sp:tn)(s.fetch,`${s.url}/object/${c}`,i,G({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=G(G({},f0),r);let c=G(G({},s.headers),{"x-upsert":String(u.upsert)});const d=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),d&&l.append("metadata",s.encodeMetadata(d)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),d&&!l.has("metadata")&&l.append("metadata",s.encodeMetadata(d))):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType,d&&(c["x-metadata"]=s.toBase64(s.encodeMetadata(d))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),r!=null&&r.headers)for(const[h,f]of Object.entries(r.headers))c=ic(c,h,f);return{path:i,fullPath:(await sp(s.fetch,a.toString(),l,G({headers:c},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=G({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await tn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new td("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await tn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
214stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await tn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await tn(r.fetch,`${r.url}/object/sign/${s}`,G({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await tn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(a=>G(G({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),a=()=>Oa(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new G2(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>rp(await Oa(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await W2(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(nd(s)){var r;const i=s instanceof np?s.status:s instanceof GE?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await ja(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=r._getFinalPath(e),i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const o=i.toString();return await ja(r.fetch,`${r.url}/cdn/${s}${o?`?${o}`:""}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=t!=null&&t.sortBy?G(G({},ih.sortBy),t.sortBy):ih.sortBy,i=G(G(G({},ih),t),{},{sortBy:s,prefix:e||""});return await tn(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=G({},e);return await tn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
214ity",t.quality.toString()),e}};const Y2="2.109.0",el={"X-Client-Info":`storage-js/${Y2}`};var X2=class extends ho{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=G(G({},el),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Oa(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Oa(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await tn(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await sp(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await tn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ja(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=new URLSearchParams;t!=null&&t.transformations&&s.set("transformations","true");const i=s.toString();return await ja(r.fetch,`${r.url}/cdn/${e}${i?`?${i}`:""}`,{},{headers:r.headers},n)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},J2=class extends ho{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=G(G({},el),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await tn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Oa(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ja(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!B2(e))throw new td("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new I2({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},Q2=class extends ho{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=G(G({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await St.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await St.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},Z2=class extends ho{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=G(G({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
214if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},eM=class extends ho{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=G(G({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await St.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},tM=class extends eM{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new nM(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},nM=class extends Q2{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new rM(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},rM=class extends Z2{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},sM=class extends X2{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new q2(this.url,this.headers,e,this.fetch)}get vectors(){return new tM(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new J2(this.url+"/iceberg",this.headers,this.fetch)}};const JE="2.109.0",Gn=30*1e3,Fo=3,oh=Fo*Gn,iM=2*Gn,oM="http://localhost:9999",aM="supabase.auth.token",lM={"X-Client-Info":`gotrue-js/${JE}`},ip="X-Supabase-Api-Version",QE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},uM=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,cM=10*60*1e3;class Na extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function M(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class dM extends Na{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function hM(e){return M(e)&&e.name==="AuthApiError"}class an extends Na{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class $n extends Na{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class $e extends $n{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ml(e){return M(e)&&e.name==="AuthSessionMissingError"}class Xs extends $n{constructor(){super("Auth session or user missing","AuthInvalidToken
214ResponseError",500,void 0)}}class $l extends $n{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Fl extends $n{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function fM(e){return M(e)&&e.name==="AuthImplicitGrantRedirectError"}class p0 extends $n{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class pM extends $n{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 op extends $n{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function m0(e){return M(e)&&e.name==="AuthRetryableFetchError"}class g0 extends $n{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function mM(e){return M(e)&&e.name==="AuthRefreshDiscardedError"}class y0 extends $n{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class oc extends $n{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ac="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),v0=` 215\r=`.split(""),gM=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<v0.length;t+=1)e[v0[t].charCodeAt(0)]=-2;for(let t=0;t<ac.length;t+=1)e[ac[t].charCodeAt(0)]=t;return e})();function w0(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ac[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ac[r]),t.queuedBits-=6}}function ZE(e,t,n){const r=gM[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function x0(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{wM(o,r,n)};for(let o=0;o<e.length;o+=1)ZE(e.charCodeAt(o),s,i);return t.join("")}function yM(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 vM(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}yM(r,t)}}function wM(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function ji(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)ZE(e.charCodeAt(s),n,r);return new Uint8Array(t)}function xM(e){const t=[];return vM(e,n=>t.push(n)),new Uint8Array(t)}function hs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>w0(s,n,r)),w0(null,n,r),t.join("")}function bM(e){return Math.round(Date.now()/1e3)+e}function SM(){return Symbol("auth-callback")}const Qe=()=>typeof window<"u"&&typeof document<"u",ns={tested:!1,writable:!1},e1=()=>
215{if(!Qe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ns.tested)return ns.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ns.tested=!0,ns.writable=!0}catch{ns.tested=!0,ns.writable=!1}return ns.writable};function _M(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const t1=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),EM=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",si=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Yt=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Ce=async(e,t)=>{await e.removeItem(t)};class rd{constructor(){this.promise=new rd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}rd.promiseConstructor=Promise;function Ul(e){const t=e.split(".");if(t.length!==3)throw new oc("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!uM.test(t[r]))throw new oc("JWT not in base64url format");return{header:JSON.parse(x0(t[0])),payload:JSON.parse(x0(t[1])),signature:ji(t[2]),raw:{header:t[0],payload:t[1]}}}async function kM(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function TM(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function CM(e){return("0"+e.toString(16)).substr(-2)}function AM(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,CM).join("")}async function RM(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function PM(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await RM(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function rs(e,t,n=!1){const r=AM();let s=r;n&&(s+="/recovery"),await si(e,`${t}-code-verifier`,s);const i=await PM(r);return[i,r===i?"plain":"s256"]}const OM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function jM(e){const t=e.headers.get(ip);if(!t||!t.match(OM))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function NM(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 IM(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 LM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Bn(e){if(!LM.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Jt(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ah(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function DM(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
215if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function b0(e){return JSON.parse(JSON.stringify(e))}const as=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},MM=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function S0(e){var t;if(!EM(e))throw new op(as(e),0);if(MM.includes(e.status))throw new op(as(e),e.status);let n;try{n=await e.json()}catch(i){throw new an(as(i),i)}let r;const s=jM(e);if(s&&s.getTime()>=QE["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new y0(as(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new $e}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new y0(as(n),e.status,n.weak_password.reasons);throw new dM(as(n),e.status||500,r)}const $M=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function B(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[ip]||(i[ip]=QE["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await FM(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function FM(e,t,n,r,s,i){const o=$M(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new op(as(l),0)}if(a.ok||await S0(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await S0(l)}}function Ot(e){var t;let n=null;VM(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=bM(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:n,user:r},error:null}}function _0(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((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function kr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function UM(e){return{data:e,error:null}}function BM(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=co(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function E0(e){return e}function VM(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const lh=["global","local","others"];class zM{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=t1(r),this.experimental=s??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=lh[0]){if(lh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${lh.join(", ")}`);try{return await B(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await B(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:kr})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=co(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await B(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:BM,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(M(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await B(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:kr})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:E0});if(c.error)throw c.error;const d=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const g=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(M(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Bn(t);try{return await B(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:kr})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Bn(t);try{return await B(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:kr})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Bn(t);
215try{return await B(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:kr})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Bn(t.userId);try{const{data:n,error:r}=await B(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Bn(t.userId),Bn(t.id);try{return{data:await B(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:E0});if(c.error)throw c.error;const d=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const g=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(M(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await B(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await B(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await B(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await B(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(M(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await B(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await B(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await B(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await B(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){Jt(this.experimental),Bn(t.userId);try{return await B(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){Jt(this.experimental),Bn(t.userId),Bn(t.passkeyId);
215try{return await B(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}}function k0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&e1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class HM extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function WM(){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 n1(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function KM(e){return parseInt(e,16)}function GM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function qM(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:h}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 216`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=n1(e.address),y=c?`${c}://${r}
216`:r,g=e.statement?`${e.statement} 217`:"",b=`${y} wants you to sign in with your Ethereum account: 218${f} 219 220${g}`;let w=`URI: ${d} 221Version: ${h} 222Chain ID: ${n}${o?` 223Nonce: ${o}`:""} 224Issued At: ${i.toISOString()}`;if(s&&(w+=` 225Expiration Time: ${s.toISOString()}`),a&&(w+=` 226Not Before: ${a.toISOString()}`),l&&(w+=` 227Request ID: ${l}`),u){let v=` 228Resources:`;for(const x of u){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);v+=` 229- ${x}`}w+=v}return`${b} 230${w}`}class Pe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class lc extends Pe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function YM({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Pe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Pe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Pe({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 Pe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Pe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Pe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Pe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(r1(o)){if(i.rp.id!==o)return new Pe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Pe({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 Pe({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 Pe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function XM({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Pe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(r1(r)){if(n.rpId!==r)return new Pe({message:`The RP ID "${n.rpId}
230" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Pe({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 Pe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class JM{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const ap=new JM;function T0(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=co(e,["challenge","user","excludeCredentials"]),i=ji(t).buffer,o=Object.assign(Object.assign({},n),{id:ji(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:ji(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function C0(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=co(e,["challenge","allowCredentials"]),s=ji(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:ji(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function A0(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:hs(new Uint8Array(e.response.attestationObject)),clientDataJSON:hs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function R0(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:hs(new Uint8Array(s.authenticatorData)),clientDataJSON:hs(new Uint8Array(s.clientDataJSON)),signature:hs(new Uint8Array(s.signature)),userHandle:s.userHandle?hs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function r1(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function uc(){var e,t;return!!(Qe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function s1(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new lc("Browser returned unexpected credential type",t)}:{data:null,error:new lc("Empty credential response",t)}}catch(t){return{data:null,error:YM({error:t,options:e})}}}async function i1(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new lc("Browser returned unexpected credential type",t)}:{data:null,error:new lc("Empty credential response",t)}}
230catch(t){return{data:null,error:XM({error:t,options:e})}}}const QM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},ZM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function cc(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=cc(a,o):r[i]=cc(o)}else r[i]=o}return r}function e$(e,t){return cc(QM,e,t||{})}function t$(e,t){return cc(ZM,e,t||{})}class n${constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=s??ap.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const d=r;if(d)c.name=`${c.id}:${d}`;else{const f=(await this.client.getUser()).data.user,y=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";c.name=`${c.id}:${y}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=e$(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await s1({publicKey:c,signal:u});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=t$(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await i1(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return M(a)?{data:null,error:a}:{data:null,error:new an("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Na("rpId is required for WebAuthn authentication")};try{if(!uc())return{data:null,error:new an("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new an("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Na("rpId is required for WebAuthn registration")};try{if(!uc())return{data:null,error:new an("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new an("Unexpected error in register",o)}}}}WM();const r$={url:oM,storageKey:aM,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:lM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Js={};class Ia{get jwks(){var t,n;return(n=(t=Js[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Js[this.storageKey]=Object.assign(Object.assign({},Js[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Js[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Js[this.storageKey]=Object.assign(Object.assign({},Js[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},r$),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ia.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ia.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Qe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new zM({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=t1(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new n$(this)}
230,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:e1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=k0(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=k0(this.memoryStorage)),Qe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),(o.data.event==="TOKEN_REFRESHED"||o.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${JE}) ${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()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Qe()&&(n=_M(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Qe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),fM(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return M(n)?this._returnResult({error:n}):this._returnResult({error:new an("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Ot}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:c,password:d,options:h}=t;let f=null,y=null;this.flowType==="pkce"&&([f,y]=await rs(this.storage,this.storageKey)),i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:y},xform:Ot})}else if("phone"in t){const{phone:c,password:d,options:h}=t;i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Ot})}else throw new $l("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ce(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_0})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_0})}else throw new $l("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Xs;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,u,c,d,h;let f,y;if("message"in t)f=t.message,y=t.signature;else{const{chain:g,wallet:b,statement:w,options:v}=t;let x;if(Qe())if(typeof b=="object")x=b;else{const O=window;if("ethereum"in O&&typeof O.ethereum=="object"&&"request"in O.ethereum&&typeof O.ethereum.request=="function")x=O.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=b}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),_=await x.request({method:"eth_requestAccounts"}).then(O=>O).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=n1(_[0]);let k=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!k){const O=await x.request({method:"eth_chainId"});k=KM(O)}const T={domain:S.host,address:E,statement:w,uri:S.href,version:"1",chainId:k,nonce:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.resources};f=qM(T),y=await x.request({method:"personal_sign",params:[GM(f),E]})}try{const{data:g,error:b}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:y},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ot});if(b)throw b;if(!g||!g.session||!g.user){const w=new Xs;return this._returnResult({data:{user:null,session:null},error:w})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:b})}catch(g){if(M(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var n,r,s,i,o,a,l,u,c,d,h,f;let y,g;if("message"in t)y=t.message,g=t.signature;else{const{chain:b,wallet:w,statement:v,options:x}=t;let S;if(Qe())if(typeof w=="object")S=w;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))S=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=w}const _=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const E=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),v?{statement:v}: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)y=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),g=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${_.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=x==null?void 0:x.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(c=x==null?void 0:x.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 231`);const E=await S.signMessage(new TextEncoder().encode(y),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:b,error:w}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:hs(g)}
231,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ot});if(w)throw w;if(!b||!b.session||!b.user){const v=new Xs;return this._returnResult({data:{user:null,session:null},error:v})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:w})}catch(b){if(M(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await Yt(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new pM;const{data:i,error:o}=await B(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Ot});if(await Ce(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Xs;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ot}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Xs;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await rs(this.storage,this.storageKey));const{error:d}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new $l("You must provide either an email or phone number.")}catch(a){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await B(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Ot});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await rs(this.storage,this.storageKey));const u=await B(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:UM});return!((i=u.data)===null||i===void 0)&&i.url&&Qe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new $e;const{error:s}=await B(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(M(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t;let o=null,a=null;this.flowType==="pkce"&&([o,a]=await rs(this.storage,this.storageKey));const{error:l}=await B(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}
231,code_challenge:o,code_challenge_method:a},redirectTo:i==null?void 0:i.emailRedirectTo});return l&&await Ce(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await B(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new $l("You must provide either an email or phone number and a type")}catch(n){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Yt(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<oh:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Yt(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ah()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=DM(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const a=await Yt(this.storage,this.storageKey);if(a&&a.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:kr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $e}:await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:kr})})}catch(n){if(M(n))return Ml(n)&&(await this._removeSession(),await Ce(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new $e;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await rs(this.storage,this.storageKey));const{data:u,error:c}=await B(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:kr});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new $e;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ul(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(M(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;
231if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new $e;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!Qe())throw new Fl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Fl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new p0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Fl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new p0("No code detected.");const{data:x,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:(r=x.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:a,expires_in:l,expires_at:u,token_type:c}=t;if(!o||!l||!a||!c)throw new Fl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;u&&(f=parseInt(u));const y=f-d;y*1e3<=Gn&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${h}s`);const g=f-h;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,f,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,f,d);const{data:b,error:w}=await this._getUser(o);if(w)throw w;const v={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:h,expires_at:f,refresh_token:a,token_type:c,user:b.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(s){if(M(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await Yt(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!Ml(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(hM(a)&&(a.status===404||a.status===401||a.status===403)||Ml(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ce(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=SM(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;
231if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),Ml(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await rs(this.storage,this.storageKey,!0));try{return await B(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:d,error:h}=i;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await B(this.fetch,"GET",f,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return Qe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(M(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,d=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Ot}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Xs}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await Ce(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await B(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await TM(async s=>(s>
2310&&await kM(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await B(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ot})),(s,i)=>{const o=200*Math.pow(2,s);return i&&m0(i)&&Date.now()+o-r<Gn})}catch(r){if(this._debug(n,"error",r),M(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Qe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Yt(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Yt(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await si(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ah()}else if(s&&!s.user&&!s.user){const o=await Yt(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ce(this.storage,this.storageKey+"-user"),await si(this.storage,this.storageKey,s)):s.user=ah()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<oh;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${oh}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(mM(o)?this._debug(r,"refresh discarded by commit guard",o):this._debug(r,"refresh failed",o))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new $e;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new rd;const i=await Yt(this.storage,this.storageKey),{data:o,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!o.session)throw new $e;const l=await Yt(this.storage,this.storageKey);if(i!==null&&(l===null||l.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:l?"replaced":"cleared"});const h={data:null,error:new g0};return this.refreshingDeferred.resolve(h),h}const c=this._sessionRemovalEpoch;if(await this._saveSession(o.session),this._sessionRemovalEpoch!==c){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await Ce(this.storage,this.storageKey),this.userStorage&&await Ce(this.userStorage,this.storageKey+"-user");const h={data:null,error:new g0};return this.refreshingDeferred.resolve(h),h}await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const d={data:o.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(d),d}catch(i){if(this._debug(s,"error",i),M(i)){const o={data:null,error:i};if(!m0(i)){const a=await Yt(this.storage,this.storageKey);!!(a!=null&&a.expires_at&&a.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:o,expiresAt:Date.now()+iM},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ce(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await si(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=b0(s);await si(this.storage,this.storageKey,i)}else{const s=b0(n);await si(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Ce(this.storage,this.storageKey),await Ce(this.storage,this.storageKey+"-code-verifier"),await Ce(this.storage,this.storageKey+"-user"),this.userStorage&&await Ce(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Qe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
231catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Gn);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Gn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Gn}ms, refresh threshold is ${Fo} ticks`),s<=Fo&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof HM)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Gn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Gn}ms, refresh threshold is ${Fo} ticks`),s<=Fo&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Qe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await rs(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}
231):await B(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await B(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&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(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?A0(t.webauthn.credential_response):R0(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:u}=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:u}))})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(a.error)return a;const{data:l}=a;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:T0(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:C0(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=Ul(t);let y=null;f.aal&&(y=f.aal);let g=y;const{data:{user:b},error:w}=await this.getUser(t);if(w)return this._returnResult({data:null,error:w});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(g="aal2");const x=f.amr||[];return{data:{currentLevel:y,nextLevel:g,currentAuthenticationMethods:x},error:null}}catch(f){if(M(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
231=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Ul(o.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(c="aal2");const h=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await B(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new $e})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new $e});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new $e});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await B(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new $e})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await B(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new $e})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+cM>s)return r;const{data:i,error:o}=await B(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:y}
231=await this.getSession();if(y||!f.session)return this._returnResult({data:null,error:y});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ul(r);if(!(n!=null&&n.allowExpired))try{NM(i.exp)}catch(f){throw new oc(f instanceof Error?f.message:"JWT validation failed")}const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const c=IM(s.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,xM(`${a}.${l}`)))throw new oc("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;Jt(this.experimental);try{if(!uc())return this._returnResult({data:null,error:new an("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const a=C0(i.options),l=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:ap.createNewAbortSignal(),{data:u,error:c}=await i1({publicKey:a,signal:l});if(c||!u)return this._returnResult({data:null,error:c??new an("WebAuthn ceremony failed",null)});const d=R0(u);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:d})}catch(i){if(M(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;Jt(this.experimental);try{if(!uc())return this._returnResult({data:null,error:new an("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const o=T0(s.options),a=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:ap.createNewAbortSignal(),{data:l,error:u}=await s1({publicKey:o,signal:a});if(u||!l)return this._returnResult({data:null,error:u??new an("WebAuthn ceremony failed",null)});const c=A0(l);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:c})}catch(s){if(M(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){Jt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new $e});const{data:s,error:i}=await B(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $e});const{data:i,error:o}=await B(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;Jt(this.experimental);try{const{data:r,error:s}=await B(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){Jt(this.experimental);try{const{data:n,error:r}=await B(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:Ot});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Jt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new $e});const{data:s,error:i}=await B(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $e});const{data:i,error:o}=await B(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $e});const{error:i}
231=await B(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}}Ia.nextInstanceID={};const s$=Ia,i$="2.109.0";let Uo="",dc;if(typeof Deno<"u"){var uh;Uo="deno",dc=(uh=Deno.version)===null||uh===void 0?void 0:uh.deno}else if(typeof document<"u")Uo="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Uo="react-native";else{var ch;Uo="node",dc=typeof process<"u"?(ch=process.version)===null||ch===void 0?void 0:ch.replace(/^v/,""):void 0}const o1=[`runtime=${Uo}`];dc&&o1.push(`runtime-version=${dc}`);const o$={"X-Client-Info":`supabase-js/${i$}; ${o1.join("; ")}`},a$={headers:o$},l$={schema:"public"},u$={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},c$={},d$={enabled:!1,respectSamplingDecision:!0};function h$(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,[])).next())})}let dh=null;const f$="@opentelemetry/api";function p$(){return dh===null&&(dh=import(f$).catch(()=>null)),dh}function m$(){return h$(this,void 0,void 0,function*(){try{const e=yield p$();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function g$(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(s)||!o.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function y$(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(v$(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function v$(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function w$(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function La(e){"@babel/helpers - typeof";return La=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},La(e)}function x$(e,t){if(La(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(La(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e){var t=x$(e,"string");return La(t)=="symbol"?t:t+""}function S$(e,t,n){return(t=b$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P0(Object(n),!0).forEach(function(r){S$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const _$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),E$=()=>Headers,k$=(e,t,n,r,s)=>{const i=_$(r),o=E$(),a=(s==null?void 0:s.enabled)===!0,l=(s==null?void 0:s.respectSamplingDecision)!==!1,u=a?w$(t):null;return async(c,d)=>{var h;const f=(h=await n())!==null&&h!==void 0?h:e;let y=new o(d==null?void 0:d.headers);if(y.has("apikey")||y.set("apikey",e),y.has("Authorization")||y.set("Authorization",`Bearer ${f}`),u){const g=await T$(c,u,l);g&&(g.traceparent&&!y.has("traceparent")&&y.set("traceparent",g.traceparent),g.tracestate&&!y.has("tracestate")&&y.set("tracestate",g.tracestate),g.baggage&&!y.has("baggage")&&y.set("baggage",g.baggage))}return i(c,ke(ke({},d),{},{headers:y}))}};async function T$(e,t,n){if(!y$(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await m$();if(!r||!r.traceparent)return null;if(n){const s=g$(r.traceparent);if(s&&!s.isSampled)return null}return r}function O0(e){return typeof e=="boolean"?{enabled:e}:e}function C$(e){return e.endsWith("/")?e:e+"/"}function A$(e,t){var n,r,s,i,o,a;const{db:l,auth:u,realtime:c,global:d}=e,{db:h,auth:f,realtime:y,global:g}=t,b=O0(e.tracePropagation),w=O0(t.tracePropagation),v={db:ke(ke({},h),l),auth:ke(ke({},f),u),realtime:ke(ke({},y),c),storage:{},global:ke(ke(ke({},g),d),{},{headers:ke(ke({},(n=g==null?void 0:g.headers)!==null&&n!==void 0?n:{}),(r=d==null?void 0:d.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=b==null?void 0:b.enabled)!==null&&i!==void 0?i:w==null?void 0:w.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(o=(a=b==null?void 0:b.respectSamplingDecision)!==null&&a!==void 0?a:w==null?void 0:w.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?v.accessToken=e.accessToken:delete v.accessToken,v}function R$(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
231if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(C$(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var P$=class extends s${constructor(e){super(e)}},O$=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=R$(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:l$,realtime:c$,auth:ke(ke({},u$),{},{storageKey:o}),global:a$,tracePropagation:d$},l=A$(n??{},a);if(this.settings=l,this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=k$(t,e,this._getAccessToken.bind(this),l.global.fetch,l.tracePropagation),this.realtime=this._initRealtimeClient(ke({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new UD(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new sM(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new OD(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u,experimental:c,lockAcquireTimeout:d,skipAutoInitialize:h},f,y){const g={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new P$({url:this.authUrl.href,headers:ke(ke({},g),f),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,experimental:c,fetch:y,lockAcquireTimeout:d,skipAutoInitialize:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new A2(this.realtimeUrl.href,ke(ke({},e),{},{params:ke(ke({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const j$=(e,t,n)=>new O$(e,t,n);function N$(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}N$()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
231ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function I$(){var b,w;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(v=>e===v||e.endsWith("."+v)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((w=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:w[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^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:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],c="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(v,x,S)=>new Promise(_=>{const E=h();let k=!1,T;const O=I=>{k||(k=!0,clearTimeout(T),window.removeEventListener("message",A),_(I))},A=I=>{if(u.indexOf(I.origin)<0)return;const W=I.data;W&&W.type===c&&W.requestId===E&&O(W)};window.addEventListener("message",A);const $={type:v,requestId:E,projectId:s,key:x};S!==void 0&&($.value=S);for(const I of u)window.parent.postMessage($,I);T=setTimeout(()=>O(null),d)});let y=!0;const g=250;return{getItem:async v=>{let x=await f("lovable-preview-auth:get",v);return!x&&y&&(await new Promise(S=>setTimeout(S,g)),x=await f("lovable-preview-auth:get",v)),y=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(v),null):x.value:localStorage.getItem(v)},setItem:(v,x)=>(localStorage.setItem(v,x),f("lovable-preview-auth:set",v,x).then(S=>{S&&S.ok&&typeof S.value=="string"&&localStorage.getItem(v)===x&&(S.value===""?localStorage.removeItem(v):localStorage.setItem(v,S.value))})),removeItem:v=>(localStorage.removeItem(v),f("lovable-preview-auth:remove",v).then(()=>{}))}}const L$="https://nqswlwzfdtstcouvpaqu.supabase.co",D$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5xc3dsd3pmZHRzdGNvdXZwYXF1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ0NDYyNDAsImV4cCI6MjA5MDAyMjI0MH0.SarNGGxN0skOHgycKY4SdL5aUMfpC9ROVNEDwu3Kask",a1=j$(L$,D$,{auth:{storage:I$(),persistSession:!0,autoRefreshToken:!0}}),M$=["gieniabx.com","www.gieniabx.com","gieniabx.lovable.app"],dg=()=>typeof window<"u"&&M$.includes(window.location.hostname);let Es=[],lp=null;const $$=3e3,l1=10;function u1(){lp||(lp=setTimeout(c1,$$))}async function c1(){if(lp=null,Es.length===0)return;const e=Es.splice(0,l1);try{const{error:t}=await a1.from("analytics_events").insert(e.map(n=>({event_name:n.event_name,session_id:n.session_id,page_url:n.page_url,page_path:n.page_path,page_title:n.page_title,referrer:n.referrer,device_type:n.device_type,utm_source:n.utm_source||null,utm_medium:n.utm_medium||null,utm_campaign:n.utm_campaign||null,utm_content:n.utm_content||null,utm_term:n.utm_term||null,event_data:n.event_data||{}})));t&&console.warn("[Analytics DB] Insert error:",t.message)}catch(t){console.warn("[Analytics DB] Network error:",t)}Es.length>0&&u1()}function F$(e,t){if(!dg()||!e.startsWith("consent_")&&!ed("analytics"))return;const r=lg(),s=r.current_utms,i={event_name:e,session_id:r.session_id,page_url:window.location.href,page_path:window.location.pathname,page_title:document.title,referrer:document.referrer||"(direct)",device_type:d1(),utm_source:s.utm_source,utm_medium:s.utm_medium,utm_campaign:s.utm_campaign,utm_content:s.utm_content,utm_term:s.utm_term,event_data:t};Es.push(i),Es.length>=l1?c1():u1()}async function U$(){var s,i;if(!dg()||!ed("analytics"))return;const e=lg(),t=e.current_utms,r=(((s=e.session)==null?void 0:s.landingPage)||window.location.pathname+window.location.search).replace(/[?&]__lovable_token=[^&]*/,"").replace(/\?$/,"")||"/";try{const{error:o}=await a1.from("analytics_sessions").insert({session_id:e.session_id,landing_page:r,referrer:((i=e.session)==null?void 0:i.referrer)||document.referrer||"(direct)",device_type:d1(),utm_source:t.utm_source||null,utm_medium:t.utm_medium||null,utm_campaign:t.utm_campaign||null,utm_content:t.utm_content||null,utm_term:t.utm_term||null});o&&!o.message.includes("duplicate key")&&console.warn("[Analytics DB] Session insert error:",o.message)}catch(o){console.warn("[Analytics DB] Session network error:",o)}}function d1(){const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"}typeof window<"u"&&window.addEventListener("beforeunload",()=>{if(Es.length>0){const e=Es.splice(0),n=`https://nqswlwzfdtstcouvpaqu.supabase.co/rest/v1/analytics_events?apikey=${encodeURIComponent("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5xc3dsd3pmZHRzdGNvdXZwYXF1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ0NDYyNDAsImV4cCI6MjA5MDAyMjI0MH0.SarNGGxN0skOHgycKY4SdL5aUMfpC9ROVNEDwu3Kask")}`,r=JSON.stringify(e.map(s=>({event_name:s.event_name,session_id:s.session_id,page_url:s.page_url,page_path:s.page_path,page_title:s.page_title,referrer:s.referrer,device_type:s.device_type,utm_source:s.utm_source||null,utm_medium:s.utm_medium||null,utm_campaign:s.utm_campaign||null,utm_content:s.utm_content||null,utm_term:s.utm_term||null,event_data:s.event_data||{}})));navigator.sendBeacon(n,new Blob([r],{type:"application/json"}))}});
231const Je={PAGE_VIEW:"page_view",CTA_CLICK:"cta_click",FORM_START:"form_start",FORM_SUBMIT:"form_submit",DEMO_REQUEST:"demo_request",CONTACT_SUBMIT:"contact_submit",SCROLL_DEPTH:"scroll_depth",OUTBOUND_CLICK:"outbound_click",FILE_DOWNLOAD:"file_download",VIDEO_PLAY:"video_play",CALENDLY_CLICK:"calendly_click",NAVBAR_CLICK:"navbar_click",FOOTER_CLICK:"footer_click",SIDEBAR_CLICK:"sidebar_click",CONSENT_GRANTED:"consent_granted",CONSENT_DENIED:"consent_denied"};function B$(){const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"}function V$(){const e=lg(),t=e.current_utms;return{page_url:window.location.href,page_path:window.location.pathname,page_title:document.title,referrer:document.referrer||"(direct)",timestamp:new Date().toISOString(),session_id:e.session_id,device_type:B$(),...t.utm_source&&{utm_source:t.utm_source},...t.utm_medium&&{utm_medium:t.utm_medium},...t.utm_campaign&&{utm_campaign:t.utm_campaign},...t.utm_content&&{utm_content:t.utm_content},...t.utm_term&&{utm_term:t.utm_term}}}const up=[];function nt(e,t){const n={...V$(),...t};up.push({event:e,params:n,timestamp:new Date().toISOString()}),ed("analytics")&&typeof window.gtag=="function"&&window.gtag("event",e,n),window.dispatchEvent(new CustomEvent("gieniabx_analytics",{detail:{event:e,params:n}})),F$(e,t)}const Ue={pageView(){nt(Je.PAGE_VIEW,{})},ctaClick(e){nt(Je.CTA_CLICK,e)},formStart(e){nt(Je.FORM_START,e)},formSubmit(e){nt(Je.FORM_SUBMIT,e),e.form_type==="demo"&&(nt(Je.DEMO_REQUEST,e),this.gadsConversion("demo_request",50)),e.form_type==="contact"&&(nt(Je.CONTACT_SUBMIT,e),this.gadsConversion("contact_submit",25))},scrollDepth(e){nt(Je.SCROLL_DEPTH,e)},outboundClick(e){nt(Je.OUTBOUND_CLICK,e)},fileDownload(e,t){nt(Je.FILE_DOWNLOAD,{file_name:e,file_type:t})},videoPlay(e){nt(Je.VIDEO_PLAY,e)},calendlyClick(e){nt(Je.CALENDLY_CLICK,{click_source:e})},navbarClick(e){nt(Je.NAVBAR_CLICK,e)},footerClick(e){nt(Je.FOOTER_CLICK,e)},sidebarClick(e){nt(Je.SIDEBAR_CLICK,{nav_item:e,nav_location:"sidebar"})},gadsConversion(e,t){typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ads_conversion",conversion_label:e,...t!=null&&{conversion_value:t,conversion_currency:"USD"}}))},consentDecision(e){nt(e?Je.CONSENT_GRANTED:Je.CONSENT_DENIED,{consent_type:e?"all":"necessary_only"})},getEventLog(){return[...up]},debugPrint(){console.table(up.map(e=>({event:e.event,timestamp:e.timestamp,page:e.params.page_path,utm_source:e.params.utm_source||"â",utm_campaign:e.params.utm_campaign||"â"})))}};const z$=[25,50,75,90,100];function H$(){const e=m.useRef(new Set);m.useEffect(()=>{e.current=new Set;const t=()=>{const n=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight;if(r<=0)return;const s=Math.round(n/r*100);z$.forEach(i=>{s>=i&&!e.current.has(i)&&(e.current.add(i),Ue.scrollDepth({depth_percentage:i,depth_pixels:n}))})};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[])}function W$(){m.useEffect(()=>{const e=t=>{var s;const n=t.target.closest("a");if(!n)return;const r=n.getAttribute("href");if(r)try{new URL(r,window.location.origin).hostname!==window.location.hostname&&Ue.outboundClick({link_url:r,link_text:((s=n.textContent)==null?void 0:s.trim())||""})}catch{}};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[])}function K$({children:e}){const t=Me();return m.useEffect(()=>{TD(),bD(),U$()},[]),m.useEffect(()=>{Ue.pageView(),typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pageview",page_path:t.pathname+t.search,page_location:window.location.href,page_title:document.title}))},[t.pathname,t.search]),H$(),W$(),p.jsx(p.Fragment,{children:e})}const G$="https://www.gieniabx.com";function j0(e){const t=(e||"/").split("?")[0].split("#")[0]||"/",n=t.startsWith("/")?t:`/${t}`,r=n.length>1&&n.endsWith("/")?n.replace(/\/+$/,""):n;return`${G$}${r===""?"/":r}`}function q$(e){const t=Me();if(e)return/^https?:\/\//i.test(e)?e:j0(e);const n=(t==null?void 0:t.pathname)??(typeof window<"u"?window.location.pathname:"/");return j0(n)}const Y$=({canonical:e})=>{const t=q$(e);return p.jsx(Hm,{children:p.jsx("link",{rel:"canonical",href:t})})},X$=Ym("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg 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-[hsl(var(--primary-button))] text-primary-foreground hover:bg-[hsl(var(--primary-button-hover))]",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"}}),Ls=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?Dj:"button";return p.jsx(o,{className:zt(X$({variant:t,size:n,className:e})),ref:i,...s})});Ls.displayName="Button";const J$=()=>{const[e,t]=m.useState(!1);if(m.useEffect(()=>{const s=setTimeout(()=>{SD()&&t(!0)},1e3);return()=>clearTimeout(s)},[]),m.useEffect(()=>{const s=()=>t(!0);
231return window.addEventListener("open_cookie_settings",s),()=>window.removeEventListener("open_cookie_settings",s)},[]),m.useEffect(()=>{const s=()=>{e&&window.innerWidth<768?document.body.style.paddingBottom="120px":document.body.style.paddingBottom=""};return s(),window.addEventListener("resize",s),()=>{document.body.style.paddingBottom="",window.removeEventListener("resize",s)}},[e]),!e)return p.jsx("div",{className:"hidden"});const n=()=>{_D(),Ue.consentDecision(!0),t(!1)},r=()=>{ED(),Ue.consentDecision(!1),t(!1)};return p.jsx("div",{role:"region","aria-label":"Cookie consent","aria-live":"polite",className:"fixed bottom-0 left-0 right-0 z-[100] p-1 min-[375px]:p-2 sm:p-4 max-[374px]:pointer-events-none",children:p.jsxs("div",{className:"max-w-3xl mx-auto max-[374px]:mx-0 max-[374px]:ml-auto max-[374px]:max-w-[60px] bg-foreground text-primary-foreground rounded-lg sm:rounded-2xl p-1 min-[375px]:p-3 sm:p-5 shadow-2xl flex flex-row max-[374px]:flex-col min-[375px]:flex-col sm:flex-row items-center min-[375px]:items-start sm:items-center gap-1 min-[375px]:gap-2 sm:gap-4 max-[374px]:pointer-events-auto",children:[p.jsxs("div",{className:"flex-1 max-[374px]:sr-only",children:[p.jsx("p",{className:"text-xs sm:text-sm font-medium mb-0 min-[375px]:mb-0.5 sm:mb-1 leading-tight",children:"We value your privacy"}),p.jsx("p",{className:"text-xs text-primary-foreground/60 leading-snug sm:leading-relaxed max-[374px]:sr-only",children:"We use cookies for analytics and marketing, including to measure and personalise advertising with partners. You can accept all, choose essential only, or manage your choices in Cookie Settings."})]}),p.jsxs("div",{className:"flex max-[374px]:flex-col gap-1.5 min-[375px]:gap-2 shrink-0 w-auto min-[375px]:w-full sm:w-auto",children:[p.jsxs(Ls,{size:"sm",onClick:r,"aria-label":"Essential only",className:"h-7 min-[375px]:h-8 flex-none min-[375px]:flex-1 sm:flex-none px-2.5 text-xs bg-primary-foreground text-foreground hover:bg-primary-foreground/90",children:[p.jsx("span",{className:"max-[374px]:hidden",children:"Essential only"}),p.jsx("span",{className:"hidden max-[374px]:inline",children:"No"})]}),p.jsxs(Ls,{size:"sm",onClick:n,"aria-label":"Accept all",className:"h-7 min-[375px]:h-8 flex-none min-[375px]:flex-1 sm:flex-none px-2.5 text-xs",children:[p.jsx("span",{className:"max-[374px]:hidden",children:"Accept all"}),p.jsx("span",{className:"hidden max-[374px]:inline",children:"OK"})]})]})]})})},Q$=()=>{const{pathname:e}=Me();return m.useEffect(()=>{window.scrollTo(0,0)},[e]),null},N0={portrait:{top:47,bottom:34,left:0,right:0},landscape:{top:0,bottom:21,left:47,right:47}},Z$=()=>{const{search:e}=Me(),[t,n]=m.useState("off");if(m.useEffect(()=>{const i=new URLSearchParams(e).get("safe-area");i==="portrait"||i==="landscape"?n(i):(i==="off"||i===null)&&n("off")},[e]),m.useEffect(()=>{const s=document.documentElement;if(t==="off"){s.style.removeProperty("--safe-area-inset-top"),s.style.removeProperty("--safe-area-inset-bottom"),s.style.removeProperty("--safe-area-inset-left"),s.style.removeProperty("--safe-area-inset-right");return}const i=N0[t];s.style.setProperty("--safe-area-inset-top",`${i.top}px`),s.style.setProperty("--safe-area-inset-bottom",`${i.bottom}px`),s.style.setProperty("--safe-area-inset-left",`${i.left}px`),s.style.setProperty("--safe-area-inset-right",`${i.right}px`)},[t]),t==="off")return p.jsx("div",{className:"hidden"});const r=N0[t];return p.jsxs("div",{className:"pointer-events-none fixed inset-0 z-[100]",children:[r.top>0&&p.jsx("div",{className:"absolute left-0 right-0 top-0 bg-red-500/20 border-b border-red-500/60",style:{height:r.top}}),r.bottom>0&&p.jsx("div",{className:"absolute left-0 right-0 bottom-0 bg-red-500/20 border-t border-red-500/60",style:{height:r.bottom}}),r.left>0&&p.jsx("div",{className:"absolute top-0 bottom-0 left-0 bg-red-500/20 border-r border-red-500/60",style:{width:r.left}}),r.right>0&&p.jsx("div",{className:"absolute top-0 bottom-0 right-0 bg-red-500/20 border-l border-red-500/60",style:{width:r.right}}),p.jsxs("div",{className:"absolute top-2 left-1/2 -translate-x-1/2 roun
231ded-md bg-foreground/80 px-2 py-1 text-xs font-medium text-background",children:["Safe-area preview: ",t]})]})},eF=[{label:"1280Ã720",w:1280,h:720},{label:"1440Ã900",w:1440,h:900},{label:"1680Ã1050",w:1680,h:1050},{label:"1920Ã1080",w:1920,h:1080},{label:"2560Ã1440",w:2560,h:1440}],tF=()=>{const{pathname:e,search:t}=Me(),[n,r]=m.useState(!1),[s,i]=m.useState(.35);if(m.useEffect(()=>{const u=new URLSearchParams(t);r(u.get("viewport-test")==="1")},[t]),!n)return p.jsx("div",{className:"hidden"});const o=new URLSearchParams(t);o.delete("viewport-test");const a=o.toString(),l=`${e}${a?`?${a}`:""}`;return p.jsxs("div",{className:"fixed inset-0 z-[200] bg-background overflow-auto",children:[p.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between gap-4 border-b border-border bg-background/95 px-4 py-2 backdrop-blur",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-sm font-medium",children:"Viewport test"}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["Route: ",e]})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("label",{className:"flex items-center gap-2 text-xs",children:["Scale",p.jsx("input",{type:"range",min:.15,max:.6,step:.05,value:s,onChange:u=>i(parseFloat(u.target.value))}),p.jsxs("span",{className:"tabular-nums w-10 text-right",children:[Math.round(s*100),"%"]})]}),p.jsx("a",{href:l,className:"rounded-lg border border-border px-3 py-1 text-xs hover:bg-muted",children:"Exit"})]})]}),p.jsx("div",{className:"flex flex-wrap gap-6 p-6",children:eF.map(u=>p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsxs("div",{className:"text-xs font-medium text-muted-foreground",children:[u.label," ",p.jsxs("span",{className:"opacity-60",children:["· scaled ",Math.round(s*100),"%"]})]}),p.jsx("div",{className:"rounded-lg border border-border overflow-hidden bg-card shadow-sm",style:{width:u.w*s,height:u.h*s},children:p.jsx("iframe",{src:l,title:`Preview ${u.label}`,style:{width:u.w,height:u.h,border:0,transform:`scale(${s})`,transformOrigin:"top left"}})})]},u.label))})]})},nF="/assets/microsoft-logo-FPwiu5e9.png",I0="announcement-banner-dismissed",rF=()=>{const[e,t]=m.useState(!0);m.useEffect(()=>{sessionStorage.getItem(I0)||t(!1)},[]);const n=()=>{t(!0),sessionStorage.setItem(I0,"1")};return e?p.jsx("div",{className:"hidden"}):p.jsx("div",{className:"w-full bg-sidebar border-b border-border",children:p.jsxs("div",{className:"w-full py-2 px-2 grid grid-cols-[2rem_1fr_2rem] items-center",children:[p.jsx("div",{"aria-hidden":"true"}),p.jsxs("p",{className:"text-xs sm:text-[13px] text-foreground text-center leading-snug",children:[p.jsx("img",{src:nF,alt:"Microsoft logo",className:"w-4 h-4 inline-block align-middle mr-1.5 -mt-px hidden sm:inline-block"}),"Featured on"," ",p.jsx("a",{href:"https://news.microsoft.com/source/emea/2026/03/orderfox-schweiz-ag-introduces-gieni-abx-in-collaboration-with-microsoft-a-frontier-ai-solution-that-executes-work-to-completion/",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 font-medium hover:text-primary transition-colors",children:"Microsoft News"}),p.jsxs("span",{className:"hidden sm:inline",children:[" ","â A Frontier AI Solution That Executes Work to Completion"]}),p.jsx("span",{className:"sm:hidden",children:" â"})]}),p.jsx("button",{onClick:n,"aria-label":"Dismiss announcement",className:"justify-self-end p-1 rounded-md text-muted-foreground hover:text-foreground transition-colors",children:p.jsx(ka,{className:"w-3.5 h-3.5"})})]})})};var hh="focusScope.autoFocusOnMount",fh="focusScope.autoFocusOnUnmount",L0={bubbles:!1,cancelable:!0},sF="FocusScope",h1=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=m.useState(null),u=In(s),c=In(i),d=m.useRef(null),h=ut(t,g=>l(g)),f=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let g=function(x){if(f.paused||!a)return;const S=x.target;a.contains(S)?d.current=S:vr(d.current,{select:!0})},b=function(x){if(f.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||vr(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&vr(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const v=new MutationObserver(w);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),v.disconnect()}}},[r,a,f.paused]),m.useEffect(()=>{if(a){M0.add(f);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(hh,L0);a.addEventListener(hh,u),a.dispatchEvent(w),w.defaultPrevented||(iF(cF(f1(a)),{select:!0}
vendor: 4,387 bytes, line 231
231),document.activeElement===g&&vr(a))}return()=>{a.removeEventListener(hh,u),setTimeout(()=>{const w=new CustomEvent(fh,L0);a.addEventListener(fh,c),a.dispatchEvent(w),w.defaultPrevented||vr(g??document.body,{select:!0}),a.removeEventListener(fh,c),M0.remove(f)},0)}}},[a,u,c,f]);const y=m.useCallback(g=>{if(!n&&!r||f.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(b&&w){const v=g.currentTarget,[x,S]=oF(v);x&&S?!g.shiftKey&&w===S?(g.preventDefault(),n&&vr(x,{select:!0})):g.shiftKey&&w===x&&(g.preventDefault(),n&&vr(S,{select:!0})):w===v&&g.preventDefault()}},[n,r,f.paused]);return p.jsx(Ne.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})});h1.displayName=sF;function iF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vr(r,{select:t}),document.activeElement!==n)return}function oF(e){const t=f1(e),n=D0(t,e),r=D0(t.reverse(),e);return[n,r]}function f1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function D0(e,t){for(const n of e)if(!aF(n,{upTo:t}))return n}function aF(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 lF(e){return e instanceof HTMLInputElement&&"select"in e}function vr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lF(e)&&t&&e.select()}}var M0=uF();function uF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$0(e,t),e.unshift(t)},remove(t){var n;e=$0(e,t),(n=e[0])==null||n.resume()}}}function $0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cF(e){return e.filter(t=>t.tagName!=="A")}var ph=0;function dF(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??F0()),document.body.insertAdjacentElement("beforeend",e[1]??F0()),ph++,()=>{ph===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ph--}},[])}function F0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var yu="right-scroll-bar-position",vu="width-before-scroll-bar",hF="with-scroll-bars-hidden",fF="--removed-body-scroll-bar-size";function mh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pF(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var mF=typeof window<"u"?m.useLayoutEffect:m.useEffect,U0=new WeakMap;function gF(e,t){var n=pF(null,function(r){return e.forEach(function(s){return mh(s,r)})});return mF(function(){var r=U0.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||mh(a,null)}),i.forEach(function(a){s.has(a)||mh(a,o)})}U0.set(n,e)},[e]),n}function yF(e){return e}function vF(e,t){t===void 0&&(t=yF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var c=o;o=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),n}}}};return s}function wF(e){e===void 0&&(e={});var t=vF(null);return t.options=An({async:!0,ssr:!1},e),t}var p1=function(e){var t=e.sideCar,n=co(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,An({},n))};
vendor: 4,936 bytes, lines 231-268
231p1.isSideCarExport=!0;function xF(e,t){return e.useMedium(t),p1}var m1=wF(),gh=function(){},sd=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:gh,onWheelCapture:gh,onTouchMoveCapture:gh}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,v=w===void 0?"div":w,x=e.gapMode,S=co(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,E=gF([n,t]),k=An(An({},S),s);return m.createElement(m.Fragment,null,c&&m.createElement(_,{sideCar:m1,removeScrollBar:u,shards:d,noRelative:f,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:x}),o?m.cloneElement(m.Children.only(a),An(An({},k),{ref:E})):m.createElement(v,An({},k,{className:l,ref:E}),a))});sd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sd.classNames={fullWidth:vu,zeroRight:yu};var bF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bF();return t&&e.setAttribute("nonce",t),e}function _F(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SF())&&(_F(t,n),EF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TF=function(){var e=kF();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},g1=function(){var e=TF(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},CF={left:0,top:0,right:0,gap:0},yh=function(e){return parseInt(e||"",10)||0},AF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[yh(n),yh(r),yh(s)]},RF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CF;var t=AF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},PF=g1(),Ni="data-scroll-locked",OF=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 232 .`.concat(hF,` { 233 overflow: hidden `).concat(r,`; 234 padding-right: `).concat(a,"px ").concat(r,`; 235 } 236 body[`).concat(Ni,`] { 237 overflow: hidden `).concat(r,`; 238 overscroll-behavior: contain; 239 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 240 padding-left: `.concat(s,`px; 241 padding-top: `).concat(i,`px; 242 padding-right: `).concat(o,`px; 243 margin-left:0; 244 margin-top:0; 245 margin-right: `).concat(a,"px ").concat(r,`; 246 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 247 } 248 249 .`).concat(yu,` { 250 right: `).concat(a,"px ").concat(r,`; 251 } 252 253 .`).concat(vu,` { 254 margin-right: `).concat(a,"px ").concat(r,`; 255 } 256 257 .`).concat(yu," .").concat(yu,` { 258 right: 0 `).concat(r,`; 259 } 260 261 .`).concat(vu," .").concat(vu,` { 262 margin-right: 0 `).concat(r,`; 263 } 264 265 body[`).concat(Ni,`] { 266 `).concat(fF,": ").concat(a,`px; 267 } 268`)},B0=function(){var e=parseInt(document.body.getAttribute(Ni)||"0",10);return isFinite(e)?e:0},jF=function(){m.useEffect(function(){return document.body.setAttribute(Ni,(B0()+1).toString()),function(){var e=B0()-1;e<=0?document.body.removeAttribute(Ni):document.body.setAttribute(Ni,e.toString())}},[])},NF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;jF();var i=m.useMemo(function(){return RF(s)},[s]);return m.createElement(PF,{styles:OF(i,!t,s,n?"":"!important")})},cp=!1;if(typeof window<"u")try{var Bl=Object.defineProperty({},"passive",{get:function(){return cp=!0,!0}});window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl)}catch{cp=!1}var Qs=cp?{passive:!1}:!1,IF=function(e){return e.tagName==="TEXTAREA"},y1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!IF(e)&&n[t]==="visible")},LF=function(e){return y1(e,"overflowY")},DF=function(e){return y1(e,"overflowX")},V0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=v1(e,r);if(s){var i=w1(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},MF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$F=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},v1=function(e,t){return e==="v"?LF(t):DF(t)},w1=function(e,t){return e==="v"?MF(t):$F(t)},FF=function(e,t){return e==="h"&&t==="rtl"?-1:1}
vendor: 4,364 bytes, lines 268-271
268,UF=function(e,t,n,r,s){var i=FF(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),u=!1,c=o>0,d=0,h=0;do{if(!a)break;var f=w1(e,a),y=f[0],g=f[1],b=f[2],w=g-b-i*y;(y||w)&&v1(e,a)&&(d+=w,h+=y);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!s)||!c&&(Math.abs(h)<1||!s))&&(u=!0),u},Vl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z0=function(e){return[e.deltaX,e.deltaY]},H0=function(e){return e&&"current"in e?e.current:e},BF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VF=function(e){return` 269 .block-interactivity-`.concat(e,` {pointer-events: none;} 270 .allow-interactivity-`).concat(e,` {pointer-events: all;} 271`)},zF=0,Zs=[];function HF(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),s=m.useState(zF++)[0],i=m.useState(g1)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=AD([e.lockRef.current],(e.shards||[]).map(H0),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var w=Vl(g),v=n.current,x="deltaX"in g?g.deltaX:v[0]-w[0],S="deltaY"in g?g.deltaY:v[1]-w[1],_,E=g.target,k=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&k==="h"&&E.type==="range")return!1;var T=V0(k,E);if(!T)return!0;if(T?_=k:(_=k==="v"?"h":"v",T=V0(k,E)),!T)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=_),!_)return!0;var O=r.current||_;return UF(O,b,g,O==="h"?x:S,!0)},[]),l=m.useCallback(function(g){var b=g;if(!(!Zs.length||Zs[Zs.length-1]!==i)){var w="deltaY"in b?z0(b):Vl(b),v=t.current.filter(function(_){return _.name===b.type&&(_.target===b.target||b.target===_.shadowParent)&&BF(_.delta,w)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var x=(o.current.shards||[]).map(H0).filter(Boolean).filter(function(_){return _.contains(b.target)}),S=x.length>0?a(b,x[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(g,b,w,v){var x={name:g,delta:b,target:w,should:v,shadowParent:WF(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),c=m.useCallback(function(g){n.current=Vl(g),r.current=void 0},[]),d=m.useCallback(function(g){u(g.type,z0(g),g.target,a(g,e.lockRef.current))},[]),h=m.useCallback(function(g){u(g.type,Vl(g),g.target,a(g,e.lockRef.current))},[]);m.useEffect(function(){return Zs.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Qs),document.addEventListener("touchmove",l,Qs),document.addEventListener("touchstart",c,Qs),function(){Zs=Zs.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Qs),document.removeEventListener("touchmove",l,Qs),document.removeEventListener("touchstart",c,Qs)}},[]);var f=e.removeScrollBar,y=e.inert;return m.createElement(m.Fragment,null,y?m.createElement(i,{styles:VF(s)}):null,f?m.createElement(NF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function WF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KF=xF(m1,HF);var x1=m.forwardRef(function(e,t){return m.createElement(sd,An({},e,{ref:t,sideCar:KF}))});x1.classNames=sd.classNames;var GF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ei=new WeakMap,zl=new WeakMap,Hl={},vh=0,b1=function(e){return e&&(e.host||b1(e.parentNode))},qF=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=b1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},YF=function(e,t,n,r){var s=qF(t,Array.isArray(e)?e:[e]);Hl[n]||(Hl[n]=new WeakMap);var i=Hl[n],o=[],a=new Set,l=new Set(s),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};
vendor: 4,541 bytes, line 271
271s.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))c(h);else try{var f=h.getAttribute(r),y=f!==null&&f!=="false",g=(ei.get(h)||0)+1,b=(i.get(h)||0)+1;ei.set(h,g),i.set(h,b),o.push(h),g===1&&y&&zl.set(h,!0),b===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return c(t),a.clear(),vh++,function(){o.forEach(function(d){var h=ei.get(d)-1,f=i.get(d)-1;ei.set(d,h),i.set(d,f),h||(zl.has(d)||d.removeAttribute(r),zl.delete(d)),f||d.removeAttribute(n)}),vh--,vh||(ei=new WeakMap,ei=new WeakMap,zl=new WeakMap,Hl={})}},XF=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=GF(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),YF(r,s,n,"aria-hidden")):function(){return null}},id="Dialog",[S1,Oz]=Ja(id),[JF,yn]=S1(id),_1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=m.useRef(null),l=m.useRef(null),[u,c]=S_({prop:r,defaultProp:s??!1,onChange:i,caller:id});return p.jsx(JF,{scope:t,triggerRef:a,contentRef:l,contentId:nh(),titleId:nh(),descriptionId:nh(),open:u,onOpenChange:c,onOpenToggle:m.useCallback(()=>c(d=>!d),[c]),modal:o,children:n})};_1.displayName=id;var E1="DialogTrigger",k1=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(E1,n),i=ut(t,s.triggerRef);return p.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":pg(s.open),...r,ref:i,onClick:ye(e.onClick,s.onOpenToggle)})});k1.displayName=E1;var hg="DialogPortal",[QF,T1]=S1(hg,{forceMount:void 0}),C1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=yn(hg,t);return p.jsx(QF,{scope:t,forceMount:n,children:m.Children.map(r,o=>p.jsx(oo,{present:n||i.open,children:p.jsx(Wm,{asChild:!0,container:s,children:o})}))})};C1.displayName=hg;var hc="DialogOverlay",A1=m.forwardRef((e,t)=>{const n=T1(hc,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=yn(hc,e.__scopeDialog);return i.modal?p.jsx(oo,{present:r||i.open,children:p.jsx(e4,{...s,ref:t})}):null});A1.displayName=hc;var ZF=Ea("DialogOverlay.RemoveScroll"),e4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(hc,n);return p.jsx(x1,{as:ZF,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(Ne.div,{"data-state":pg(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ds="DialogContent",R1=m.forwardRef((e,t)=>{const n=T1(Ds,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=yn(Ds,e.__scopeDialog);return p.jsx(oo,{present:r||i.open,children:i.modal?p.jsx(t4,{...s,ref:t}):p.jsx(n4,{...s,ref:t})})});R1.displayName=Ds;var t4=m.forwardRef((e,t)=>{const n=yn(Ds,e.__scopeDialog),r=m.useRef(null),s=ut(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return XF(i)},[]),p.jsx(P1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault())})}),n4=m.forwardRef((e,t)=>{const n=yn(Ds,e.__scopeDialog),r=m.useRef(!1),s=m.useRef(!1);return p.jsx(P1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),P1=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=yn(Ds,n),l=m.useRef(null),u=ut(t,l);return dF(),p.jsxs(p.Fragment,{children:[p.jsx(h1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(Kc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":pg(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(r4,{titleId:a.titleId}),p.jsx(i4,{contentRef:l,descriptionId:a.descriptionId})]})]})}),fg="DialogTitle",O1=m.forwardRef((e,t)=>
271{const{__scopeDialog:n,...r}=e,s=yn(fg,n);return p.jsx(Ne.h2,{id:s.titleId,...r,ref:t})});O1.displayName=fg;var j1="DialogDescription",N1=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(j1,n);return p.jsx(Ne.p,{id:s.descriptionId,...r,ref:t})});N1.displayName=j1;var I1="DialogClose",L1=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=yn(I1,n);return p.jsx(Ne.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,()=>s.onOpenChange(!1))})});L1.displayName=I1;function pg(e){return e?"open":"closed"}var D1="DialogTitleWarning",[jz,M1]=Ij(D1,{contentName:Ds,titleName:fg,docsSlug:"dialog"}),r4=({titleId:e})=>{const t=M1(D1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 272 273If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 274 275For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},s4="DialogDescriptionWarning",i4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${M1(s4).contentName}}.`;return m.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},o4=_1,a4=k1,l4=C1,$1=A1,F1=R1,U1=O1,B1=N1,u4=L1;const c4=o4,d4=a4,h4=l4,V1=m.forwardRef(({className:e,...t},n)=>p.jsx($1,{className:zt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));V1.displayName=$1.displayName;const f4=Ym("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),z1=m.forwardRef(({side:e="right",className:t,children:n,...r},s)=>p.jsxs(h4,{children:[p.jsx(V1,{}),p.jsxs(F1,{ref:s,className:zt(f4({side:e}),t),...r,children:[n,p.jsxs(u4,{className:"absolute right-4 top-4 roun
275ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[p.jsx(ka,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));z1.displayName=F1.displayName;const H1=m.forwardRef(({className:e,...t},n)=>p.jsx(U1,{ref:n,className:zt("text-lg font-semibold text-foreground",e),...t}));H1.displayName=U1.displayName;const p4=m.forwardRef(({className:e,...t},n)=>p.jsx(B1,{ref:n,className:zt("text-sm text-muted-foreground",e),...t}));p4.displayName=B1.displayName;const m4="/assets/logo-DulMaKUV.png",W0=[{icon:IN,title:"How it works",subtitle:"From intent. To finished outcome.",featured:!0,href:"/how-it-works"},{icon:ON,title:"Competitive Intelligence",subtitle:"Outpace competitors. Without the manual digging.",href:"/use-cases/competitive-intelligence"},{icon:Lv,title:"CRM Enrichment",subtitle:"Clean data. Before every QBR.",href:"/use-cases/crm-enrichment"},{icon:$v,title:"Sales Outreach",subtitle:"Researched. Staged. Launched.",href:"/use-cases/sales-outreach"},{icon:DN,title:"Board Material Prep",subtitle:"Board-ready decks. Delivered overnight.",href:"/use-cases/board-material-prep"},{icon:$v,title:"Market Signal Monitoring",subtitle:"See the market move. In real time.",href:"/use-cases/market-signal-monitoring"},{icon:Lv,title:"Salesforce: How It Works",subtitle:"How ABX executes inside Salesforce.",href:"/use-cases/abx-for-salesforce"}],K0=[{icon:Dv,title:"Blog",subtitle:"The Execution Era â insights",href:"/blog"},{icon:Dv,title:"Press & Media",subtitle:"News and media coverage",href:"/press"},{icon:q_,title:"Trust Center",subtitle:"Security, governance, auditability",href:"/trust-center"},{icon:Y_,title:"Skills",subtitle:"Execution capabilities of ABX",href:"/skills"},{icon:MN,title:"Execution Templates",subtitle:"Community execution templates",badge:"Soon",href:"/inspiration-library"},{icon:PN,title:"Expertise Library",subtitle:"In-depth resources on autonomous execution",href:"/expertise-library"},{icon:NN,title:"Changelog & Updates",subtitle:"What's new in Gieni ABX",href:"/changelog"}],G0=[{icon:BN,title:"Security Overview",subtitle:"Governed AI you can trust",href:"/trust-center"},{icon:jN,title:"Governance & HITL",subtitle:"The two-logic model",href:"/governance"},{icon:UN,title:"Connectors, governed",subtitle:"How ABX reaches into your stack",href:"/resources/security/connectors"},{icon:G_,title:"Data Processing Agreement",subtitle:"EU data residency · GDPR · DPA",href:"/data-processing-agreement"}],wh=({label:e,items:t,footerLink:n,onNavClick:r})=>{const[s,i]=m.useState(!1),o=m.useRef(),a=()=>{clearTimeout(o.current),i(!0)},l=()=>{o.current=setTimeout(()=>i(!1),150)};return m.useEffect(()=>()=>clearTimeout(o.current),[]),p.jsxs("div",{className:"relative",onMouseEnter:a,onMouseLeave:l,children:[p.jsxs("button",{onClick:()=>{r(e),i(!s)},className:"flex items-center gap-1 hover:text-foreground transition-colors",children:[e," ",p.jsx(K_,{className:`w-3.5 h-3.5 transition-transform ${s?"rotate-180":""}`})]}),s&&p.jsxs("div",{className:"absolute top-full left-0 mt-2 w-72 bg-background rounded-xl shadow-lg border border-border p-2 z-50",children:[p.jsx("div",{className:"space-y-1",children:t.map(u=>p.jsxs("a",{href:u.href||"#",onClick:()=>r(u.title),className:"flex items-center gap-3 px-3 py-3 rounded-lg transition-colors hover:bg-[#F9FAFB]",children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center shrink-0 bg-muted/60",children:p.jsx(u.icon,{className:"w-5 h-5 text-muted-foreground"})}),p.jsxs("div",{children:[p.jsxs("p",{className:"text-sm font-medium flex items-center gap-2 text-foreground",children:[u.title,u.badge&&p.jsx("span",{className:"text-[10px] bg-muted text-muted-foreground rounded-full px-1.5 py-0.5 font-medium",children:u.badge})]}),p.jsx("p",{className:"text-xs text-muted-foreground",children:u.subtitle})]})]},u.title))}),n&&p.jsx("div",{className:"mt-2 pt-2 border-t border-border",children:p.jsxs("a",{href:n.href,onClick:()=>r(n.text),className:"flex items-center gap-1 text-sm text-primary font-medium px-3 py-2 hover:underline",children:[n.text," ",p.jsx(W_,{className:"w-4 h-4"})]})})]})]})},xh=({label:e,items:t,footerLink:n,onNavClick:r})=>{const[s,i]=m.useState(!1);return p.jsxs("div",{className:"border-b border-border",children:[p.jsxs("button",{onClick:()=>i(!s),className:"flex items-center justify-between w-full py-3 text-sm font-medium text-foreground",children:[e,p.jsx(K_,{className:`w-4 h-4 transition-transform ${s?"rotate-180":""}`})]}),s&&p.jsxs("div",{className:"pb-3 space-y-1",children:[t.map(o=>p.jsxs("a",{href:o.href||"#",onClick:()=>r(o.title),className:"flex items-center gap-3 px-2 py-2.5 rounded-lg hover:bg-[#F9FAFB]",children:[p.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0 bg-muted/60",children:p.jsx(o.icon,{className:"w-4 h-4 text-muted-foreground"})}),p.jsxs("div",{children:[p.jsxs("p",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[o.title,o.badge&&p.jsx("span",{className:"text-[10px] bg-muted text-muted-foreground rounded-full px-1.5 py-0.5 font-medium",children:o.badge})]}),p.jsx("p",{className:"text-xs text-muted-foreground",children:o.subtitle})]})]},o.title)),n&&p.jsxs("a",{href:n.href,onClick:()=>r(n.text),className:"flex items-center gap-1 text-sm text-primary font-medium px-2 py-2 hover:underline",children:[n.text," ",p.jsx(W_,{className:"w-4 h-4"})]})]})]})},g4=()=>{const[e,t]=m.useState(!1),n=s=>{Ue.navbarClick({nav_item:s,nav_location:"navbar"}),t(!1)},r=s=>{Ue.ctaClick({cta_text:s,cta_location:"navbar",destination_url:"https://app.gieniabx.com/login"}),Ue.gadsConversion("cta_click",5)};return p.jsxs(p.Fragment,{children:[p.jsx(rF,{}),p.jsx("nav",{className:"sticky top-0 z-50 bg-background border-b border-border","aria-label":"Main navigation",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-12 flex items-center",children:[p.jsx("a",{href:"/","aria-label":"Gieni ABX Home",className:"lg:w-52 shrink-0",children:p.jsx("img",{src:m4,alt:"Gieni ABX â Autonomous Business Execution",className:"h-5 w-auto"})}),p.jsxs("div",{className:"hidden lg:flex items-center gap-6 text-sm text-muted-foreground flex-1 justify-center",children:[p.jsx(wh,{label:"Use Cases",
275items:W0,footerLink:{text:"See all 8 use cases",href:"/use-cases"},onNavClick:n}),p.jsx(wh,{label:"Resources",items:K0,onNavClick:n}),p.jsx(wh,{label:"Security",items:G0,onNavClick:n}),p.jsx("a",{href:"/pricing",onClick:()=>n("Pricing"),className:"hover:text-foreground transition-colors",children:"Pricing"}),p.jsxs("a",{href:"/enterprise",onClick:()=>n("Enterprise"),className:"hover:text-foreground transition-colors flex items-center gap-1.5",children:["Enterprise",p.jsx("span",{className:"text-[10px] bg-[#F9FAFB] text-muted-foreground rounded-full px-1.5 py-0.5 font-medium",children:"Soon"})]})]}),p.jsxs("div",{className:"flex items-center gap-3 ml-auto",children:[p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",onClick:()=>n("Sign in"),className:"text-sm text-muted-foreground hover:text-foreground transition-colors hidden sm:block",children:"Sign in"}),p.jsxs("div",{className:"relative group",children:[p.jsx(Ls,{size:"sm",className:"text-sm px-3 sm:px-5",asChild:!0,onClick:()=>r("Try for free"),children:p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",children:"Try for free"})}),p.jsx("span",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-2 whitespace-nowrap text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:"No credit card required"})]}),p.jsxs(c4,{open:e,onOpenChange:t,children:[p.jsx(d4,{asChild:!0,children:p.jsx("button",{className:"lg:hidden p-2 -mr-2","aria-label":"Open menu",children:p.jsx(FN,{className:"w-5 h-5"})})}),p.jsxs(z1,{side:"right",className:"w-[300px] p-0 overflow-y-auto",children:[p.jsx(H1,{className:"sr-only",children:"Navigation menu"}),p.jsxs("div",{className:"p-6",children:[p.jsx("div",{className:"mb-6",children:p.jsx("span",{className:"text-xl font-bold tracking-tight",children:"GieniABX"})}),p.jsx(xh,{label:"Use Cases",items:W0,footerLink:{text:"See all 8 use cases",href:"/use-cases"},onNavClick:n}),p.jsx(xh,{label:"Resources",items:K0,onNavClick:n}),p.jsx(xh,{label:"Security",items:G0,onNavClick:n}),p.jsx("div",{className:"border-b border-border",children:p.jsx("a",{href:"/pricing",onClick:()=>n("Pricing"),className:"block py-3 text-sm font-medium text-foreground",children:"Pricing"})}),p.jsx("div",{className:"border-b border-border",children:p.jsxs("a",{href:"/enterprise",onClick:()=>n("Enterprise"),className:"flex items-center gap-1.5 py-3 text-sm font-medium text-foreground",children:["Enterprise",p.jsx("span",{className:"text-[10px] bg-[#F9FAFB] text-muted-foreground rounded-full px-1.5 py-0.5 font-medium",children:"Soon"})]})}),p.jsxs("div",{className:"mt-6 space-y-3",children:[p.jsx(Ls,{className:"w-full",asChild:!0,onClick:()=>r("Try for free"),children:p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",children:"Try for free"})}),p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",onClick:()=>n("Sign in"),className:"block text-center text-sm text-muted-foreground hover:text-foreground transition-colors py-2",children:"Sign in"})]})]})]})]})]})]})})]})},y4="/assets/logo-white-C9KS77f5.png",v4=({hideCTA:e=!1,minimal:t=!1,className:n="",style:r})=>{const s=t?{target:"_blank",rel:"noopener"}:{},i=a=>{Ue.footerClick({nav_item:a,nav_location:"footer"})},o=()=>{Ue.ctaClick({cta_text:"Start executing",cta_location:"footer_cta_bar",destination_url:"https://app.gieniabx.com/login"}),Ue.gadsConversion("cta_click",5)};return p.jsxs(p.Fragment,{children:[!e&&!t&&p.jsx("aside",{className:"max-w-7xl mx-auto px-6 lg:pl-[16.5rem] pb-12","aria-label":"Call to action",children:p.jsxs("div",{className:"bg-foreground rounded-2xl px-8 py-6 flex flex-col sm:flex-row items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-primary-foreground text-sm font-medium",children:"Ready to hand off your first task?"}),p.jsx("p",{className:"text-primary-foreground/50 text-xs",children:"Free plan · No credit card · First execution in 5 minutes"})]}),p.jsx(Ls,{className:"px-8 shrink-0",asChild:!0,onClick:o,children:p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",children:"Start executing â"})})]})}),p.jsx("footer",{className:`bg-foreground text-muted py-10 ${n}`,style:r,children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("div",{className:"mb-6",children:p.jsx("a",{href:"/","aria-label":"Gieni ABX Home",children:p.jsx("img",{src:y4,alt:"Gieni ABX - Autonomous Execution for Professional Work",className:"h-5 w-auto",loading:"lazy"})})}),p.jsxs("div",{className:t?"":"grid grid-cols-2 md:grid-cols-5 ga
275p-8 md:gap-10",children:[p.jsxs("address",{className:"col-span-2 md:col-span-1 space-y-1 text-sm not-italic text-primary-foreground",children:[p.jsx("p",{children:"Orderfox Schweiz AG,"}),p.jsx("p",{children:"Bellerivestrasse 10,"}),p.jsx("p",{children:"Zürich, Switzerland"}),p.jsx("p",{className:"pt-4",children:"General Contact:"}),p.jsx("p",{children:p.jsx("a",{href:"tel:+41435881433",className:"hover:text-primary-foreground transition-colors",children:"+41 (0)43 588 14 33"})}),p.jsx("p",{className:"pt-4",children:"Press/Investor Relations:"}),p.jsx("p",{children:p.jsx("a",{href:"tel:+41435080940",className:"hover:text-primary-foreground transition-colors",children:"+41 (0)43 508 09 40"})})]}),!t&&p.jsxs(p.Fragment,{children:[p.jsxs("nav",{"aria-label":"Product links",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-primary-foreground mb-4",children:"Product"}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("a",{href:"/use-cases",onClick:()=>i("Use Cases"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Use Cases"}),p.jsx("a",{href:"/skills",onClick:()=>i("Skills"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Skills"}),p.jsx("a",{href:"/pricing",onClick:()=>i("Pricing"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Pricing"}),p.jsx("a",{href:"/changelog",onClick:()=>i("Changelog"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Changelog"})]})]}),p.jsxs("nav",{"aria-label":"Resources links",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-primary-foreground mb-4",children:"Resources"}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("a",{href:"/blog",onClick:()=>i("Blog"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Blog"}),p.jsx("a",{href:"/expertise-library",onClick:()=>i("Expertise Library"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Expertise Library"}),p.jsx("a",{href:"/expertise-library/whitepapers",onClick:()=>i("Whitepapers"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Whitepapers"}),p.jsx("a",{href:"/expertise-library/interview-series",onClick:()=>i("Interview series"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Interview series"}),p.jsx("a",{href:"/trust-center",onClick:()=>i("Trust Center"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Trust Center"}),p.jsx("a",{href:"/governance",onClick:()=>i("Governance"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Governance"}),p.jsx("a",{href:"/data-processing-agreement",onClick:()=>i("DPA"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"DPA"})]})]}),p.jsxs("nav",{"aria-label":"Company links",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-primary-foreground mb-4",children:"Company"}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("a",{href:"https://www.orderfox.com/about-us#career",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("Career"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Career"}),p.jsx("a",{href:"/press",onClick:()=>i("Press & Media"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Press & Media"}),p.jsx("a",{href:"/events",onClick:()=>i("Events"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Events"}),p.jsx("a",{href:"/contact",onClick:()=>i("Contact Us"),className:"block text-sm text-primary-foreground hover:text-primary transition-colors",children:"Contact Us"})]})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-primary-foreground mb-4",children:"Follow Us"}),p.jsxs("div",{className:"flex flex-wrap items-center gap-5 text-primary-foreground",children:[p.jsx("a",{href:"https://www.linkedin.com/company/gieni-abx/",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("LinkedIn"),className:"transition-colors hover:text-primary-foreground","aria-label":"Follow Gieni ABX on LinkedIn",children:p.jsx("svg",{className:"w-5 h-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}),p.jsx("a",{href:"https://www.youtube.com/@GieniABXOfficial",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("YouTube"),className:"transition-colors hover:text-primary-foreground","aria-label":"Subscribe to Gieni ABX on YouTube",children:p.jsx("svg",{className:"w-5 h-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}),p.jsx("a",{href:"https://x.com/GieniABX",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("X"),className:"transition-colors hover:text-primary-foreground","aria-label":"Follow Gieni ABX on X",children:p.jsx("svg",{className:"w-5 h-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),p.jsx("a",{href:"https://www.instagram.com/gieniabx/?hl=en",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("Instagram"),className:"transition-colors hover:text-primary-foreground","aria-label":"Follow Gieni ABX on Instagram",children:p.jsx("svg",{className:"w-5 h-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})}),p.jsx("a",{href:"https://www.facebook.com/people/Gieni-ABX/61575769566578/",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("Facebook"),className:"transition-colors hover:text-primary-foreground","aria-label":"Follow Gieni ABX on Facebook",children:p.jsx("svg",{className:"w-5 h-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})})]})]})]})]}),p.jsxs("div",{className:"border-t border-border/20 mt-10 pt-5 pb-16 sm:pb-0 flex flex-col sm:flex-row items-center justify-between gap-6 text-primary-foreground",children:[p.jsx("span",{className:"text-xs",children:"© 2026 Gieni ABX. All rights reserved."}),p.jsxs("div",{className:"flex flex-wrap items-center gap-8 text-xs",children:[p.jsx("a",{href:"https://www.orderfox.com/legal",...s,onClick:()=>i("Legal Notice"),className:"hover:text-primary-foreground transition-colors",children:"Legal Notice"}),p.jsx("a",{href:t?"https://www.gieniabx.com/terms-and-conditions":"/terms-and-conditions",...s,onClick:()=>i("Terms and Conditions"),className:"hover:text-primary-foreground transition-colors",children:"Terms and Conditions"}),p.jsx("a",{href:t?"https://www.gieniabx.com/privacy-policy":"/privacy-policy",...s,onClick:()=>i("Privacy"),className:"hover:text-primary-foreground transition-colors",children:"Privacy"}),p.jsx("button",{type:"button","aria-label":"Cookie Settings",onClick:()=>{i("Cookie Settings"),window.dispatchEvent(new CustomEvent("open_co
275okie_settings"))},className:"bg-transparent border-0 p-0 text-xs hover:text-primary-foreground transition-colors",children:"Cookie Settings"})]})]})]})})]})},W1="/assets/how-it-works-thumbnail-DBOwdyXr.png",Nz=Object.freeze(Object.defineProperty({__proto__:null,default:W1},Symbol.toStringTag,{value:"Module"})),K1="PC5sj-pu4yM",w4=`https://www.youtube-nocookie.com/embed/${K1}?autoplay=1&mute=1&rel=0&playsinline=1`,jo=`https://www.youtube.com/watch?v=${K1}`,x4="Watch ABX Execute",b4=768,S4=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[s,i]=m.useState(!1),[o,a]=m.useState(!1),l=m.useRef(!1),u=m.useRef(null);m.useEffect(()=>{const f=()=>r(window.innerWidth<b4);return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),m.useEffect(()=>{const f=()=>{if(!ed("marketing")){t(!1);return}t(!0),l.current||(i(!0),a(!0),l.current=!0)};return f(),window.addEventListener("consent_update",f),window.addEventListener("resize",f),()=>{window.removeEventListener("consent_update",f),window.removeEventListener("resize",f)}},[]),m.useEffect(()=>{if(!e||n||l.current)return;const f=()=>{l.current||window.scrollY>600&&(l.current=!0,i(!0),Ue.ctaClick({cta_text:"Auto-expand floating video (scroll)",cta_location:"floating_video_scroll_trigger",destination_url:jo}),window.removeEventListener("scroll",f))};return window.addEventListener("scroll",f,{passive:!0}),f(),()=>window.removeEventListener("scroll",f)},[e,n]);const c=()=>{i(f=>{const y=!f;return Ue.ctaClick({cta_text:y?"Open floating video":"Close floating video",cta_location:"floating_video_button",destination_url:jo}),y})},d=()=>{l.current=!0,i(!1),a(!1),requestAnimationFrame(()=>{var f;return(f=u.current)==null?void 0:f.focus()}),Ue.ctaClick({cta_text:"Close floating video",cta_location:"floating_video_header"})},h=()=>{a(!0),Ue.videoPlay({video_title:x4,video_url:jo})};return e?p.jsxs("div",{className:"fixed z-50 flex flex-col items-end gap-2 sm:gap-3 [--floating-edge:1.25rem] sm:[--floating-edge:1.25rem] lg:[--floating-edge:2rem] xl:[--floating-edge:2.5rem] 2xl:[--floating-edge:3rem]",style:{bottom:"max(var(--floating-edge), var(--safe-area-inset-bottom, env(safe-area-inset-bottom)))",right:"max(var(--floating-edge), var(--safe-area-inset-right, env(safe-area-inset-right)))",maxWidth:"calc(100vw - max(calc(var(--floating-edge) * 2), var(--safe-area-inset-left, env(safe-area-inset-left)) + var(--safe-area-inset-right, env(safe-area-inset-right))))"},children:[s&&p.jsxs("div",{className:"w-[300px] md:w-[320px] lg:w-[340px] xl:w-[400px] 2xl:w-[480px] rounded-xl sm:rounded-2xl overflow-hidden shadow-2xl border border-border bg-foreground",children:[p.jsxs("div",{className:"flex items-center justify-between px-3 sm:px-4 py-2 sm:py-2.5 bg-foreground",children:[p.jsx("span",{className:"text-xs sm:text-sm font-medium text-background truncate",children:"Watch ABX Execute"}),p.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[p.jsx("a",{href:jo,target:"_blank",rel:"noopener noreferrer","aria-label":"Open in YouTube",onClick:()=>Ue.outboundClick({link_url:jo,link_text:"Open floating video in YouTube"}),className:"text-background/60 hover:text-background transition-colors",children:p.jsx($N,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})}),p.jsx("button",{onClick:d,"aria-label":"Close video",className:"text-background/60 hover:text-background transition-colors",children:p.jsx(ka,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})})]})]}),p.jsx("div",{className:"aspect-video relative bg-black",children:o?p.jsx("iframe",{src:w4,title:"Gieni ABX Demo",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"}):p.jsxs("button",{type:"button",onClick:h,"aria-label":"Play video",className:"group w-full h-full relative block",children:[p.jsx("img",{src:W1,alt:"The 5 Part Execution Framework",className:"w-full h-full object-cover"}),p.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/10 group-hover:bg-black/20 transition-colors",children:p.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-primary flex items-center justify-center shadow-lg group-hover:scale-110 transition-transform",children:p.jsx(Mv,{className:"w-4 h-4 sm:w-5 sm:h-5 text-primary-foreground ml-0.5",fill:"currentColor"})})})]})})]}),p.jsx("button",{ref:u,onClick:c,"aria-label":s?"Close video":"Watch demo",className:s?"w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center shadow-lg hover:bg-primary/90 transition-all":"rounded-full bg-primary text-white flex items-center justify-center gap-2 px-5 py-3 shadow-lg hover:bg-primary/90 transition-all",children:s?p.jsx(ka,{className:"w-5 h-5"}):p.jsxs(p.Fragment,{children:[p.jsx(Mv,{className:"w-4 h-4",fill:"
275currentColor"}),p.jsx("span",{className:"text-sm font-medium",children:"Watch ABX Execute"})]})})]}):null},G1=m.createContext({});function _4(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const E4=typeof window<"u",k4=E4?m.useLayoutEffect:m.useEffect,mg=m.createContext(null);function gg(e,t){e.indexOf(t)===-1&&e.push(t)}function fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Dn=(e,t,n)=>n>t?t:n<e?e:n;let od=()=>{},Ms=()=>{};const Kr={},q1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y1=e=>typeof e=="object"&&e!==null,X1=e=>/^0[^.\s]+$/u.test(e);function J1(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ft=e=>e,tl=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Da=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class yg{constructor(){this.subscriptions=[]}add(t){return gg(this.subscriptions,t),()=>fc(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const wt=e=>e*1e3,Mt=e=>e/1e3,Q1=(e,t)=>t?e*(1e3/t):0,Z1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,T4=1e-7,C4=12;function A4(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Z1(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>T4&&++a<C4);return o}function nl(e,t,n,r){if(e===t&&n===r)return Ft;const s=i=>A4(i,0,1,e,n);return i=>i===0||i===1?i:Z1(s(i),t,r)}const ek=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tk=e=>t=>1-e(1-t),nk=nl(.33,1.53,.69,.99),vg=tk(nk),rk=ek(vg),sk=e=>e>=1?1:(e*=2)<1?.5*vg(e):.5*(2-Math.pow(2,-10*(e-1))),wg=e=>1-Math.sin(Math.acos(e)),ik=tk(wg),ok=ek(wg),R4=nl(.42,0,1,1),P4=nl(0,0,.58,1),ak=nl(.42,0,.58,1),O4=e=>Array.isArray(e)&&typeof e[0]!="number",lk=e=>Array.isArray(e)&&typeof e[0]=="number",q0={linear:Ft,easeIn:R4,easeInOut:ak,easeOut:P4,circIn:wg,circInOut:ok,circOut:ik,backIn:vg,backInOut:rk,backOut:nk,anticipate:sk},j4=e=>typeof e=="string",Y0=e=>{if(lk(e)){Ms(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return nl(t,n,r,s)}else if(j4(e))return Ms(q0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),q0[e];return e},Wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function N4(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const f=d&&r?t:n;return c&&i.add(u),f.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,r){s=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(u))}};return l}const I4=40;function uk(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Wl.reduce((x,S)=>(x[S]=N4(i),x),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:y}=o,g=()=>{const x=Kr.useManualTiming,S=x?s.timestamp:performance.now();n=!1,x||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,I4),1)),s.timestamp=S,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(g))},b=()=>{n=!0,r=!0,s.isProcessing||e(g)};return{schedule:Wl.reduce((x,S)=>{const _=o[S];return x[S]=(E,k=!1,T=!1)=>(n||b(),_.schedule(E,k,T)),x},{}),cancel:x=>{for(let S=0;S<Wl.length;S++)o[Wl[S]].cancel(x)},state:s,steps:o}}const{schedule:ue,cancel:Gr,state:ze,steps:bh}=uk(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ft,!0);let wu;function L4(){wu=void 0}const ot={now:()=>(wu===void 0&&ot.set(ze.isProcessing||Kr.useManualTiming?ze.timestamp:performance.now()),wu),set:e=>{wu=e,queueMicrotask(L4)}},ck=e=>t=>typeof t=="string"&&t.startsWith(e),dk=ck("--"),D4=ck("var(--"),xg=e=>D4(e)?M4.test(e.split("/*")[0].trim()):!1,M4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function X0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ma={...fo,transform:e=>Dn(0,1,e)},Kl={...fo,default:1},ta=e=>Math.round(e*1e5)/1e5,bg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $4(e){return e==null}const F4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sg=(e,t)=>
vendor: 5,161 bytes, line 275
275n=>!!(typeof n=="string"&&F4.test(n)&&n.startsWith(e)||t&&!$4(n)&&Object.prototype.hasOwnProperty.call(n,t)),hk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(bg);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},U4=e=>Dn(0,255,e),Sh={...fo,transform:e=>Math.round(U4(e))},fs={test:Sg("rgb","red"),parse:hk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sh.transform(e)+", "+Sh.transform(t)+", "+Sh.transform(n)+", "+ta(Ma.transform(r))+")"};function B4(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const dp={test:Sg("#"),parse:B4,transform:fs.transform},rl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=rl("deg"),Nn=rl("%"),U=rl("px"),V4=rl("vh"),z4=rl("vw"),J0={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},wi={test:Sg("hsl","hue"),parse:hk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(ta(t))+", "+Nn.transform(ta(n))+", "+ta(Ma.transform(r))+")"},Oe={test:e=>fs.test(e)||dp.test(e)||wi.test(e),parse:e=>fs.test(e)?fs.parse(e):wi.test(e)?wi.parse(e):dp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fs.transform(e):wi.transform(e),getAnimatableNone:e=>{const t=Oe.parse(e);return t.alpha=0,Oe.transform(t)}},H4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function W4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(bg))==null?void 0:t.length)||0)+(((n=e.match(H4))==null?void 0:n.length)||0)>0}const fk="number",pk="color",K4="var",G4="var(",Q0="${}",q4=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(q4,l=>(Oe.test(l)?(r.color.push(i),s.push(pk),n.push(Oe.parse(l))):l.startsWith(G4)?(r.var.push(i),s.push(K4),n.push(l)):(r.number.push(i),s.push(fk),n.push(parseFloat(l))),++i,Q0)).split(Q0);return{values:n,split:a,indexes:r,types:s}}function Y4(e){return Qi(e).values}function mk({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===fk?s+=ta(r[i]):o===pk?s+=Oe.transform(r[i]):s+=r[i]}return s}}function X4(e){return mk(Qi(e))}const J4=e=>typeof e=="number"?0:Oe.test(e)?Oe.getAnimatableNone(e):e,Q4=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:J4(e);function Z4(e){const t=Qi(e);return mk(t)(t.values.map((r,s)=>Q4(r,t.split[s])))}const hn={test:W4,parse:Y4,createTransformer:X4,getAnimatableNone:Z4};function _h(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=_h(l,a,e+1/3),i=_h(l,a,e),o=_h(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function pc(e,t){return n=>n>0?t:e}const le=(e,t,n)=>e+(t-e)*n,Eh=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},tU=[dp,fs,wi],nU=e=>tU.find(t=>t.test(e));function Z0(e){const t=nU(e);if(od(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===wi&&(n=eU(n)),n}const ew=(e,t)=>{const n=Z0(e),r=Z0(t);if(!n||!r)return pc(e,t);const s={...n};return i=>(s.red=Eh(n.red,r.red,i),s.green=Eh(n.green,r.green,i),s.blue=Eh(n.blue,r.blue,i),s.alpha=le(n.alpha,r.alpha,i),fs.transform(s))},hp=new Set(["none","hidden"]);function rU(e,t){return hp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sU(e,t){return n=>le(e,t,n)}function _g(e){return typeof e=="number"?sU:typeof e=="string"?xg(e)?pc:Oe.test(e)?ew:aU:Array.isArray(e)?gk:typeof e=="object"?Oe.test(e)?ew:iU:pc}function gk(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>_g(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function iU(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=_g(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function oU(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const aU=(e,t)=>{const n=hn.createTransformer(t),r=Qi(e),s=Qi(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?hp.has(e)&&!s.values.length||hp.has(t)&&!r.values.length?rU(e,t):tl(gk(oU(r,s),s.values),n):(od(!0,`Complex values '${e}' and '${t}
275' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pc(e,t))};function yk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):_g(e)(e,t)}const lU=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ue.update(t,n),stop:()=>Gr(t),now:()=>ze.isProcessing?ze.timestamp:ot.now()}},vk=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mc=2e4;function Eg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mc;)t+=n,r=e.next(t);return t>=mc?1/0:t}function uU(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Eg(r),mc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Mt(s)}}const we={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function fp(e,t){return e*Math.sqrt(1-t*t)}const cU=12;function dU(e,t,n){let r=n;for(let s=1;s<cU;s++)r=r-e(r)/t(r);return r}const kh=.001;function hU({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let s,i;od(e<=wt(we.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Dn(we.minDamping,we.maxDamping,o),e=Dn(we.minDuration,we.maxDuration,Mt(e)),o<1?(s=u=>{const c=u*o,d=c*e,h=c-n,f=fp(u,o),y=Math.exp(-d);return kh-h/f*y},i=u=>{const d=u*o*e,h=d*n+n,f=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-d),g=fp(Math.pow(u,2),o);return(-s(u)+kh>0?-1:1)*((h-f)*y)/g}):(s=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-kh+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=dU(s,i,a);if(e=wt(e),isNaN(l))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const fU=["duration","bounce"],pU=["stiffness","damping","mass"];function tw(e,t){return t.some(n=>e[n]!==void 0)}function mU(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!tw(e,pU)&&tw(e,fU))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Dn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:we.mass,stiffness:s,damping:i}}else{const n=hU({...e,velocity:0});t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function gc(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=mU({...n,velocity:-Mt(n.velocity||0)}),y=h||0,g=u/(2*Math.sqrt(l*c)),b=o-i,w=Mt(Math.sqrt(l/c)),v=Math.abs(b)<5;r||(r=v?we.restSpeed.granular:we.restSpeed.default),s||(s=v?we.restDelta.granular:we.restDelta.default);let x,S,_,E,k,T;if(g<1)_=fp(w,g),E=(y+g*w*b)/_,x=A=>{const $=Math.exp(-g*w*A);return o-$*(E*Math.sin(_*A)+b*Math.cos(_*A))},k=g*w*E+b*_,T=g*w*b-E*_,S=A=>Math.exp(-g*w*A)*(k*Math.sin(_*A)+T*Math.cos(_*A));else if(g===1){x=$=>o-Math.exp(-w*$)*(b+(y+w*b)*$);const A=y+w*b;S=$=>Math.exp(-w*$)*(w*A*$-y)}else{const A=w*Math.sqrt(g*g-1);x=L=>{const H=Math.exp(-g*w*L),z=Math.min(A*L,300);return o-H*((y+g*w*b)*Math.sinh(z)+A*b*Math.cosh(z))/A};const $=(y+g*w*b)/A,I=g*w*$-b*A,W=g*w*b-$*A;S=L=>{const H=Math.exp(-g*w*L),z=Math.min(A*L,300);return H*(I*Math.sinh(z)+W*Math.cosh(z))}}const O={calculatedDuration:f&&d||null,velocity:A=>wt(S(A)),next:A=>{if(!f&&g<1){const I=Math.exp(-g*w*A),W=Math.sin(_*A),L=Math.cos(_*A),H=o-I*(E*W+b*L),z=wt(I*(k*W+T*L));return a.done=Math.abs(z)<=r&&Math.abs(o-H)<=s,a.value=a.done?o:H,a}const $=x(A);if(f)a.done=A>=d;else{const I=wt(S(A));a.done=Math.abs(I)<=r&&Math.abs(o-$)<=s}return a.value=a.done?o:$,a},toString:()=>{const A=Math.min(Eg(O),mc),$=vk(I=>O.next(A*I).value,A,30);return A+"ms "+$},toTransition:()=>{}};return O}gc.applyToOptions=e=>{const t=uU(e,100,gc);return e.ease=t.ease,e.duration=wt(t.duration),e.type="keyframes",e};const gU=5;function wk(e,t,n){const r=Math.max(t-gU,0);return Q1(n-e(r),t-r)}function pp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},f=T=>a!==void 0&&T<a||l!==void 0&&T>l,y=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let g=n*t;const b=d+g,w=o===void 0?b:o(b);w!==b&&(g=w-d);const v=T=>-g*Math.exp(-T/r),x=T=>w+v(T),S=T=>{const O=v(T),A=x(T);h.done=Math.abs(O)<=u,h.value=h.done?w:A};let _,E;const k=T=>{f(h.value)&&(_=T,E=gc({keyframes:[h.value,y(h.value)],velocity:wk(x,T,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:T=>{let O=!1;return!E&&_===void 0&&(O=!0,S(T),k(T)),_!==void 0&&T>=_?E.next(T-_):(!O&&S(T),h)}}}function yU(e,t,n){const r=[],s=n||Kr.mix||yk,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ft:t;a=tl(l,a)}r.push(a)}return r}function vU(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Ms(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=yU(t,r,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=Da(e[d],e[d+1],c);return a[d](h)};return n?c=>u(Dn(e[0],e[i-1],c)):u}function wU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Da(0,t,r);e.push(le(n,1,s))}}function xU(e){const t=[0];return wU(t,e.length-1),t}function bU(e,t){return e.map(n=>n*t)}function SU(e,t){return e.map(()=>t||ak).splice(0,e.length-1)}function na({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=O4(r)?r.map(Y0):Y0(r),i={done:!1,value:t[0]},o=bU(n&&n.length===t.length?n:xU(t),e),a=vU(o,t,{ease:Array.isArray(s)?s:SU(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const _U=e=>e!==null;function ad(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(_U),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const EU={decay:pp,inertia:pp,tween:na,keyframes:na,spring:gc};function xk(e){typeof e.type=="string"&&(e.type=EU[e.type])}class kg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const kU=e=>e/100;class yc extends kg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==ot.now()&&this.tick(ot.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xk(t);const{type:n=na,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||na;l!==na&&typeof a[0]!="number"&&(this.mixKeyframes=tl(kU,yk(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Eg(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:y,onUpdate:g,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?w<0:w>s;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,s)/a;let O=Math.floor(T),A=T%1;!A&&T>=1&&(A=1),A===1&&O--,O=Math.min(O,d+1),!!(O%2)&&(h==="reverse"?(A=1-A,f&&(A-=f/a)):h==="mirror"&&(S=o)),x=Dn(0,1,A)*a}let _;v?(this.delayState.value=c[0],_=this.delayState):_=S.next(x),i&&!v&&(_.value=i(_.value));let{done:E}=_;!v&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return k&&y!==pp&&(_.value=ad(c,this.options,b,this.speed)),g&&g(_.value),k&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Mt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Mt(t)}get time(){return Mt(this.currentTime)}set time(t){t=wt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;
vendor: 10,622 bytes, line 275
275if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return wk(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(ot.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Mt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=lU,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ot.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function TU(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ps=e=>e*180/Math.PI,mp=e=>{const t=ps(Math.atan2(e[1],e[0]));return gp(t)},CU={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:mp,rotateZ:mp,skewX:e=>ps(Math.atan(e[1])),skewY:e=>ps(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gp=e=>(e=e%360,e<0&&(e+=360),e),nw=mp,rw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AU={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:rw,scaleY:sw,scale:e=>(rw(e)+sw(e))/2,rotateX:e=>gp(ps(Math.atan2(e[6],e[5]))),rotateY:e=>gp(ps(Math.atan2(-e[2],e[0]))),rotateZ:nw,rotate:nw,skewX:e=>ps(Math.atan(e[4])),skewY:e=>ps(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yp(e){return e.includes("scale")?1:0}function vp(e,t){if(!e||e==="none")return yp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=AU,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CU,s=a}if(!s)return yp(t);const i=r[t],o=s[1].split(",").map(PU);return typeof i=="function"?i(o):o[i]}const RU=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return vp(n,t)};function PU(e){return parseFloat(e.trim())}const po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mo=new Set([...po,"pathRotation"]),iw=e=>e===fo||e===U,OU=new Set(["x","y","z"]),jU=po.filter(e=>!OU.has(e));function NU(e){const t=[];return jU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Nr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>vp(t,"x"),y:(e,{transform:t})=>vp(t,"y")};Nr.translateX=Nr.x;Nr.translateY=Nr.y;const ks=new Set;let wp=!1,xp=!1,bp=!1;function bk(){if(xp){const e=Array.from(ks).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=NU(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xp=!1,wp=!1,ks.forEach(e=>e.complete(bp)),ks.clear()}function Sk(){ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xp=!0)})}function IU(){bp=!0,Sk(),bk(),bp=!1}class Tg{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ks.add(this),wp||(wp=!0,ue.read(Sk),ue.resolveKeyframes(bk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}TU(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ks.delete(this)}cancel(){this.state==="scheduled"&&(ks.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const LU=e=>e.startsWith("--");function _k(e,t,n){LU(t)?e.style.setProperty(t,n):e.style[t]=n}const DU={};function Ek(e,t){const n=J1(e);return()=>DU[t]??n()}const MU=Ek(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kk=Ek(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ow={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bo([0,.65,.55,1]),circOut:Bo([.55,0,1,.45]),backIn:Bo([.31,.01,.66,-.59]),backOut:Bo([.33,1.53,.69,.99])};function Tk(e,t){if(e)return typeof e=="function"?kk()?vk(e,t):"ease-out":lk(e)?Bo(e):Array.isArray(e)?e.map(n=>Tk(n,t)||ow.easeOut):ow[e]}function $U(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Tk(a,s);Array.isArray(d)&&(c.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function Ck(e){return typeof e=="function"&&"applyToOptions"in e}function FU({type:e,...t}){return Ck(e)&&kk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ak extends kg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Ms(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=FU(t);this.animation=$U(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=ad(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),_k(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Mt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Mt(t)}get time(){return Mt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=wt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&MU()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ft):s(this)}}const Rk={anticipate:sk,backInOut:rk,circInOut:ok};function UU(e){return e in Rk}function BU(e){typeof e.ease=="string"&&UU(e.ease)&&(e.ease=Rk[e.ease])}const Th=10;class VU extends Ak{constructor(t){BU(t),xk(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new yc({...o,autoplay:!1}),l=Math.max(Th,ot.now()-this.startTime),u=Dn(0,Th,l-Th),c=a.sample(l).value,{name:d}=this.options;i&&d&&_k(i,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(hn.test(e)||e==="0")&&!e.startsWith("url("));function zU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function HU(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=aw(s,t),a=aw(i,t);return od(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:zU(e)||(n==="spring"||Ck(n))&&r}function Sp(e){e.duration=0,e.type="keyframes"}const Pk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),WU=/^(?:
275oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function KU(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&WU.test(e[t]))return!0;return!1}const GU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),qU=J1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function YU(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e,l=(d=t==null?void 0:t.owner)==null?void 0:d.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return qU()&&n&&(Pk.has(n)||GU.has(n)&&KU(a))&&(n!=="transform"||!c)&&!u&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const XU=40;class JU extends kg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var y;super(),this.stop=()=>{var g,b;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=ot.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:u,element:c,...d},f=(c==null?void 0:c.KeyframeResolver)||Tg;this.keyframeResolver=new f(a,(g,b,w)=>this.onKeyframesResolved(g,b,h,!w),l,u,c),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var w,v;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=ot.now();let d=!0;HU(t,i,o,a)||(d=!1,(Kr.instantAnimations||!l)&&(c==null||c(ad(t,r,n))),t[0]=t[t.length-1],Sp(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>XU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!u&&YU(f),g=(v=(w=f.motionValue)==null?void 0:w.owner)==null?void 0:v.current;let b;if(y)try{b=new VU({...f,element:g})}catch{b=new yc(f)}else b=new yc(f);b.finished.then(()=>{this.notifyFinished()}).catch(Ft),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),IU()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Ok(e,t,n,r=0,s=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const lw=30,QU=e=>!isNaN(parseFloat(e));class ZU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=ot.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yg);const r=this.events[t].add(n);return t==="change"?()=>{r(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>lw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lw);return Q1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(e,t){return new ZU(e,t)}function jk(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Cg(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?jk(n,e):n}const eB={type:"spring",stiffness:500,damping:25,restSpeed:10},tB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nB={type:"keyframes",duration:.8},rB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sB=(e,{keyframes:t})=>t.length>2?nB:mo.has(e)?e.startsWith("scale")?tB(t[1]):eB:rB,iB=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function oB(e){for(const t in e)if(!iB.has(t))return!0;return!1}const Ag=(e,t,n,r={},s,i)=>o=>{const a=Cg(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};oB(a)||Object.assign(c,sB(e,c)),c.duration&&(c.duration=wt(c.duration)),c.repeatDelay&&(c.repeatDelay=wt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Sp(c),c.delay===0&&(
275d=!0)),(Kr.instantAnimations||Kr.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Sp(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=ad(c.keyframes,a);if(h!==void 0){ue.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new yc(c):new JU(c)},aB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lB(e){const t=aB.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const uB=4;function Nk(e,t,n=1){Ms(n<=uB,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=lB(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return q1(o)?parseFloat(o):o}return xg(s)?Nk(s,t,n+1):s}function uw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rg(e,t,n,r){if(typeof t=="function"){const[s,i]=uw(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=uw(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Ts(e,t,n){const r=e.getProps();return Rg(r,t,n!==void 0?n:r.custom,e)}const Ik=new Set(["width","height","top","left","right","bottom",...po]),_p=e=>Array.isArray(e);function cB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zi(n))}function dB(e){return _p(e)?e[e.length-1]||0:e}function hB(e,t){const n=Ts(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=dB(i[o]);cB(e,o,a)}}const He=e=>!!(e&&e.getVelocity);function fB(e){return!!(He(e)&&e.add)}function Ep(e,t){const n=e.getValue("willChange");if(fB(n))return n.add(t);if(!n&&Kr.WillChange){const r=new Kr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Pg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const pB="framerAppearId",Lk="data-"+Pg(pB);function Dk(e){return e.props[Lk]}function mB({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Mk(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?jk(i,l):l;const u=i==null?void 0:i.reduceMotion,c=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s],f=i==null?void 0:i.path;f&&f.animateVisualElement(e,a,i,n,d);for(const y in a){const g=e.getValue(y,e.latestValues[y]??null),b=a[y];if(b===void 0||h&&mB(h,y))continue;const w={delay:n,...Cg(i||{},y)};c&&(w.skipAnimations=!0);const v=g.get();if(v!==void 0&&!g.isAnimating()&&!Array.isArray(b)&&b===v&&!w.velocity){ue.update(()=>g.set(b));continue}let x=!1;if(window.MotionHandoffAnimation){const E=Dk(e);if(E){const k=window.MotionHandoffAnimation(E,y,ue);k!==null&&(w.startTime=k,x=!0)}}Ep(e,y);const S=u??e.shouldReduceMotion;g.start(Ag(y,g,b,S&&Ik.has(y)?{type:!1}:w,e,x));const _=g.animation;_&&d.push(_)}if(o){const y=()=>ue.update(()=>{o&&hB(e,o)});d.length?Promise.all(d).then(y):y()}return d}function kp(e,t,n={}){var l;const r=Ts(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Mk(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=s;return gB(e,t,u,c,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[i,o]:[o,i];return u().then(()=>c())}else return Promise.all([i(),o(n.delay)])}function gB(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(kp(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Ok(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function yB(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>kp(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=kp(e,t,n);else{const s=typeof t=="function"?Ts(e,t,n.custom):t;r=Promise.all(Mk(e,s,n))}return r.then(()=>
vendor: 59,600 bytes, line 275
275{e.notify("AnimationComplete",t)})}const vB={test:e=>e==="auto",parse:e=>e},$k=e=>t=>t.test(e),Fk=[fo,U,Nn,zn,z4,V4,vB],cw=e=>Fk.find($k(e));function wB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X1(e):!0}const xB=new Set(["brightness","contrast","saturate","opacity"]);function bB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bg)||[];if(!r)return e;const s=n.replace(r,"");let i=xB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const SB=/\b([a-z-]*)\(.*?\)/gu,Tp={...hn,getAnimatableNone:e=>{const t=e.match(SB);return t?t.map(bB).join(" "):e}},Cp={...hn,getAnimatableNone:e=>{const t=hn.parse(e);return hn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},dw={...fo,transform:Math.round},_B={rotate:zn,pathRotation:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:Kl,scaleX:Kl,scaleY:Kl,scaleZ:Kl,skew:zn,skewX:zn,skewY:zn,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Ma,originX:J0,originY:J0,originZ:U},vc={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,..._B,zIndex:dw,fillOpacity:Ma,strokeOpacity:Ma,numOctaves:dw},EB={...vc,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Tp,WebkitFilter:Tp,mask:Cp,WebkitMask:Cp},Uk=e=>EB[e],kB=new Set([Tp,Cp]);function Bk(e,t){let n=Uk(e);return kB.has(n)||(n=hn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TB=new Set(["auto","none","0"]);function CB(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!TB.has(i)&&Qi(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Bk(n,s)}class AB extends Tg{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),xg(d))){const h=Nk(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ik.has(r)||t.length!==2)return;const[s,i]=t,o=cw(s),a=cw(i),l=X0(s),u=X0(i);if(l!==u&&Nr[r]){this.needsMeasurement=!0;return}if(o!==a)if(iw(o)&&iw(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else Nr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||wB(t[s]))&&r.push(s);r.length&&CB(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Nr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Og=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Vk(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const Ap=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function RB(e){return Y1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:jg,cancel:Iz}=uk(queueMicrotask,!1),Qt={x:!1,y:!1};function zk(){return Qt.x||Qt.y}function PB(e){return e==="x"||e==="y"?Qt[e]?null:(Qt[e]=!0,()=>{Qt[e]=!1}):Qt.x||Qt.y?null:(Qt.x=Qt.y=!0,()=>{Qt.x=Qt.y=!1})}function Hk(e,t){const n=Vk(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function OB(e){return!(e.pointerType==="touch"||zk())}function jB(e,t,n={}){const[r,s,i]=Hk(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",y)},d=b=>{u&&(u(b),u=void 0),c()},h=b=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(b))},f=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},y=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}d(b)}},g=b=>{if(!OB(b))return;l=!1;const w=t(o,b);typeof w=="function"&&(u=w,o.addEventListener("pointerleave",y,s))};o.addEventListener("pointerenter",g,s),o.addEventListener("pointerdown",f,s)}),i}const Wk=(e,t)=>t?e===t?!0:Wk(e,t.parentElement):!1,Ng=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,NB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function IB(e){return NB.has(e.tagName)||e.isContentEditable===!0}const LB=new Set(["INPUT","SELECT","TEXTAREA"]);function DB(e){return LB.has(e.tagName)||e.isContentEditable===!0}const xu=new WeakSet;function hw(e){return t=>{t.key==="Enter"&&e(t)}}function Ch(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hw(()=>{if(xu.has(n))return;Ch(n,"down");const s=hw(()=>{Ch(n,"up")}),i=()=>Ch(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function fw(e){return Ng(e)&&!zk()}const pw=new WeakSet;function $B(e,t,n={}){const[r,s,i]=Hk(e,n),o=a=>{const l=a.currentTarget;if(!fw(a)||pw.has(a))return;xu.add(l),n.stopPropagation&&pw.add(a);const u=t(l,a),c={...s,capture:!0},d=(y,g)=>{window.removeEventListener("pointerup",h,c),window.removeEventListener("pointercancel",f,c),xu.has(l)&&xu.delete(l),fw(y)&&typeof u=="function"&&u(y,{success:g})},h=y=>{d(y,l===window||l===document||n.useGlobalTarget||Wk(l,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",h,c),window.addEventListener("pointercancel",f,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),RB(a)&&(a.addEventListener("focus",u=>MB(u,s)),!IB(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ig(e){return Y1(e)&&"ownerSVGElement"in e}const bu=new WeakMap;let wr;const Kk=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Ig(r)&&"getBBox"in r?r.getBBox()[t]:r[n],FB=Kk("inline","width","offsetWidth"),UB=Kk("block","height","offsetHeight");function BB({target:e,borderBoxSize:t}){var n;(n=bu.get(e))==null||n.forEach(r=>{r(e,{get width(){return FB(e,t)},get height(){return UB(e,t)}})})}function VB(e){e.forEach(BB)}function zB(){typeof ResizeObserver>"u"||(wr=new ResizeObserver(VB))}function HB(e,t){wr||zB();const n=Vk(e);return n.forEach(r=>{let s=bu.get(r);s||(s=new Set,bu.set(r,s)),s.add(t),wr==null||wr.observe(r)}),()=>{n.forEach(r=>{const s=bu.get(r);s==null||s.delete(t),s!=null&&s.size||wr==null||wr.unobserve(r)})}}const Su=new Set;let xi;function WB(){xi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Su.forEach(t=>t(e))},window.addEventListener("resize",xi)}function KB(e){return Su.add(e),xi||WB(),()=>{Su.delete(e),!Su.size&&typeof xi=="function"&&(window.removeEventListener("resize",xi),xi=void 0)}}function mw(e,t){return typeof e=="function"?KB(e):HB(e,t)}function GB(e){return Ig(e)&&e.tagName==="svg"}const qB=[...Fk,Oe,hn],YB=e=>qB.find($k(e)),gw=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:gw(),y:gw()}),yw=()=>({min:0,max:0}),Ie=()=>({x:yw(),y:yw()}),XB=new WeakMap;function ld(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $a(e){return typeof e=="string"||Array.isArray(e)}const Lg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dg=["initial",...Lg];function ud(e){return ld(e.animate)||Dg.some(t=>$a(e[t]))}function Gk(e){return!!(ud(e)||e.variants)}function JB(e,t,n){for(const r in t){const s=t[r],i=n[r];if(He(s))e.addValue(r,s);else if(He(i))e.addValue(r,Zi(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Zi(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Rp={current:null},qk={current:!1},QB=typeof window<"u";function ZB(){if(qk.current=!0,!!QB)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rp.current=e.matches;e.addEventListener("change",t),t()}else Rp.current=!1}const vw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wc={};function Yk(e){wc=e}function e5(){return wc}class t5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ot.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,ue.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=ud(n),this.isVariantNode=Gk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const y=h[f];u[f]!==void 0&&He(y)&&y.set(u[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,XB.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(qk.current||ZB(),this.shouldReduceMotion=Rp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Gr(this.notifyUpdate),Gr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Pk.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new Ak({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:wt(c)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=mo.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wc){const n=wc[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vw.length;r++){const s=vw[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=JB(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Zi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(q1(r)||X1(r))?r=parseFloat(r):!YB(r)&&hn.test(n)&&(r=Bk(t,n)),this.setBaseTarget(t,He(r)?r.get():r)),He(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Rg(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!He(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){jg.render(this.render)}}class Xk extends t5{constructor(){super(...arguments),this.KeyframeResolver=AB}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;He(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Jr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Jk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function n5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function r5(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ah(e){return e===void 0||e===1}function Pp({scale:e,scaleX:t,scaleY:n}){return!Ah(e)||!Ah(t)||!Ah(n)}function ls(e){return Pp(e)||Qk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Qk(e){return ww(e.x)||ww(e.y)}function ww(e){return e&&e!=="0%"}function xc(e,t,n){const r=e-n,s=t*r;return n+s}function xw(e,t,n,r,s){return s!==void 0&&(e=xc(e,s,r)),xc(e,n,r)+t}function Op(e,t=0,n=1,r,s){e.min=xw(e.min,t,n,r,s),e.max=xw(e.max,t,n,r,s)}function Zk(e,{x:t,y:n}){Op(e.x,t.translate,t.scale,t.originPoint),Op(e.y,n.translate,n.scale,n.originPoint)}const bw=.999999999999,Sw=1.0000000000001;function s5(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Tn(e.x,-i.scroll.offset.x),Tn(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zk(e,o)),r&&ls(i.latestValues)&&_u(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<Sw&&t.x>bw&&(t.x=1),t.y<Sw&&t.y>bw&&(t.y=1)}function Tn(e,t){e.min+=t,e.max+=t}function _w(e,t,n,r,s=.5){const i=le(e.min,e.max,s);Op(e,t,n,i,r)}function Ew(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function _u(e,t,n){const r=n??e;_w(e.x,Ew(t.x,r.x),t.scaleX,t.scale,t.originX),_w(e.y,Ew(t.y,r.y),t.scaleY,t.scale,t.originY)}function eT(e,t){return Jk(r5(e.getBoundingClientRect(),t))}function i5(e,t,n){const r=eT(e,n),{scroll:s}=t;return s&&(Tn(r.x,s.offset.x),Tn(r.y,s.offset.y)),r}const o5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a5=po.length;function l5(e,t,n){let r="",s=!0;for(let o=0;o<a5;o++){const a=po[o],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Ap(l,vc[a]);if(!u){s=!1;const d=o5[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${Ap(i,vc.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Mg(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(mo.has(l)){o=!0;continue}else if(dk(l)){s[l]=u;continue}else{const c=Ap(u,vc[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=l5(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function tT(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function kw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const No={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=kw(e,t.target.x),r=kw(e,t.target.y);return`${n}% ${r}%`}},u5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=hn.parse(e);if(s.length>5)return r;const i=hn.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=le(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}},jp={borderRadius:{...No,applyTo:[...Og]},borderTopLeftRadius:No,borderTopRightRadius:No,borderBottomLeftRadius:No,borderBottomRightRadius:No,boxShadow:u5};function nT(e,{layout:t,layoutId:n}){return mo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jp[e]||e==="opacity")}function $g(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(He(r[a])||s&&He(s[a])||nT(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function c5(e){return window.getComputedStyle(e)}class d5 extends Xk{constructor(){super(...arguments),this.type="html",this.renderInstance=tT}mount(t){Ms(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,n){var r;if(mo.has(n))return(r=this.projection)!=null&&r.isProjecting?yp(n):RU(t,n);{const s=c5(t),i=(dk(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return eT(t,n)}build(t,n,r){Mg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $g(t,n,r)}}const h5={offset:"stroke-dashoffset",array:"stroke-dasharray"},f5={offset:"strokeDashoffset",array:"strokeDasharray"};function p5(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?h5:f5;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const m5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function rT(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,u,c){if(Mg(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const f of m5)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&p5(d,s,i,o,!1)}const sT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),iT=e=>typeof e=="string"&&e.toLowerCase()==="svg";function g5(e,t,n,r){tT(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(sT.has(s)?s:Pg(s),t.attrs[s])}function oT(e,t,n){const r=$g(e,t,n);for(const s in e)if(He(e[s])||He(t[s])){const i=po.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class y5 extends Xk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mo.has(n)){const r=Uk(n);return r&&r.default||0}return n=sT.has(n)?n:Pg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return oT(t,n,r)}build(t,n,r){rT(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){g5(t,n,r,s)}mount(t){this.isSVGTag=iT(t.tagName),super.mount(t)}}const v5=Dg.length;function aT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?aT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<v5;n++){const r=Dg[n],s=e.props[r];($a(s)||s===!1)&&(t[r]=s)}return t}function lT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const w5=[...Lg].reverse(),x5=Lg.length;function b5(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yB(e,n,r)))}function S5(e){let t=b5(e),n=Tw(),r=!0,s=!1;const i=u=>(c,d)=>{var f;const h=Ts(e,d,u==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:y,transitionEnd:g,...b}=h;c={...c,...b,...g}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,d=aT(e.parent)||{},h=[],f=new Set;let y={},g=1/0;for(let w=0;w<x5;w++){const v=w5[w],x=n[v],S=c[v]!==void 0?c[v]:d[v],_=$a(S),E=v===u?x.isActive:null;E===!1&&(g=w);let k=S===d[v]&&S!==c[v]&&_;if(k&&(r||s)&&e.manuallyAnimateOnMount&&(k=!1),x.protectedKeys={...y},!x.isActive&&E===null||!S&&!x.prevProp||ld(S)||typeof S=="boolean")continue;if(v==="exit"&&x.isActive&&E!==!0){x.prevResolvedValues&&(y={...y,...x.prevResolvedValues});continue}const T=_5(x.prevProp,S);let O=T||v===u&&x.isActive&&!k&&_||w>g&&_,A=!1;const $=Array.isArray(S)?S:[S];let I=$.reduce(i(v),{});E===!1&&(I={});const{prevResolvedValues:W={}}=x,L={...W,...I},H=C=>{O=!0,f.has(C)&&(A=!0,f.delete(C)),x.needsAnimating[C]=!0;const R=e.getValue(C);R&&(R.liveStyle=!1)};for(const C in L){const R=I[C],D=W[C];if(y.hasOwnProperty(C))continue;let Y=!1;_p(R)&&_p(D)?Y=!lT(R,D)||T:Y=R!==D,Y?R!=null?H(C):f.add(C):R!==void 0&&f.has(C)?H(C):x.protectedKeys[C]=!0}x.prevProp=S,x.prevResolvedValues=I,x.isActive&&(y={...y,...I}),(r||s)&&e.blockInitialAnimation&&(O=!1);const z=k&&T;O&&(!z||A)&&h.push(...$.map(C=>{const R={type:v};if(typeof C=="string"&&(r||s)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,Y=Ts(D,C);if(D.enteringChildren&&Y){const{delayChildren:K}=Y.transition||{};R.delay=Ok(D.enteringChildren,e,K)}}return{animation:C,options:R}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Ts(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),w[v]=x??null}),h.push({animation:w})}let b=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,s=!1,b?t(h):Promise.resolve()}function l(u,c){var h;if(n[u].isActive===c)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(u,c)}),n[u].isActive=c;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Tw(),s=!0}}}function _5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lT(t,e):!1}function ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tw(){return{animate:ss(!0),whileInView:ss(),whileHover:ss(),whileTap:ss(),whileDrag:ss(),whileFocus:ss(),exit:ss()}}function Np(e,t){e.min=t.min,e.max=t.max}function Xt(e,t){Np(e.x,t.x),Np(e.y,t.y)}function Cw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const uT=1e-4,E5=1-uT,k5=1+uT,cT=.01,T5=0-cT,C5=0+cT;function at(e){return e.max-e.min}function A5(e,t,n){return Math.abs(e-t)<=n}function Aw(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=at(n)/at(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=E5&&e.scale<=k5||isNaN(e.scale))&&(e.scale=1),(e.translate>=T5&&e.translate<=C5||isNaN(e.translate))&&(e.translate=0)}function ra(e,t,n,r){Aw(e.x,t.x,n.x,r?r.originX:void 0),Aw(e.y,t.y,n.y,r?r.originY:void 0)}function Rw(e,t,n,r=0){const s=r?le(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+at(t)}function R5(e,t,n,r){Rw(e.x,t.x,n.x,r==null?void 0:r.x),Rw(e.y,t.y,n.y,r==null?void 0:r.y)}function Pw(e,t,n,r=0){const s=r?le(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+at(t)}function bc(e,t,n,r){Pw(e.x,t.x,n.x,r==null?void 0:r.x),Pw(e.y,t.y,n.y,r==null?void 0:r.y)}function Ow(e,t,n,r,s){return e-=t,e=xc(e,1/n,r),s!==void 0&&(e=xc(e,1/s,r)),e}function P5(e,t=0,n=1,r=.5,s,i=e,o=e){if(Nn.test(t)&&(t=parseFloat(t),t=le(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=le(i.min,i.max,r);e===i&&(a-=t),e.min=Ow(e.min,t,n,a,s),e.max=Ow(e.max,t,n,a,s)}function jw(e,t,[n,r,s],i,o){P5(e,t[n],t[r],t[s],t.scale,i,o)}const O5=["x","scaleX","originX"],j5=["y","scaleY","originY"];function Nw(e,t,n,r){jw(e.x,t,O5,n?n.x:void 0,r?r.x:void 0),jw(e.y,t,j5,n?n.y:void 0,r?r.y:void 0)}function Iw(e){return e.translate===0&&e.scale===1}function dT(e){return Iw(e.x)&&Iw(e.y)}function Lw(e,t){return e.min===t.min&&e.max===t.max}function N5(e,t){return Lw(e.x,t.x)&&Lw(e.y,t.y)}function Dw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hT(e,t){return Dw(e.x,t.x)&&Dw(e.y,t.y)}function Mw(e){return at(e.x)/at(e.y)}function $w(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function xn(e){return[e("x"),e("y")]}function I5(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:d,rotateX:h,rotateY:f,skewX:y,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const L5=Og.length,Fw=e=>typeof e=="string"?parseFloat(e):e,Uw=e=>typeof e=="number"||U.test(e);function D5(e,t,n,r,s,i){s?(e.opacity=le(0,n.opacity??1,M5(r)),e.opacityExit=le(t.opacity??1,0,$5(r))):i&&(e.opacity=le(t.opacity??1,n.opacity??1,r));for(let o=0;o<L5;o++){const a=Og[o];let l=Bw(t,a),u=Bw(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Uw(l)===Uw(u)?(e[a]=Math.max(le(Fw(l),Fw(u),r),0),(Nn.test(u)||Nn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=le(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const M5=fT(0,.5,ik),$5=fT(.5,.95,Ft);function fT(e,t,n){return r=>r<e?0:r>t?1:n(Da(e,t,r))}function F5(e,t,n){const r=He(e)?e:Zi(e);return r.start(Ag("",r,t,n)),r.animation}function Fa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const U5=(e,t)=>e.depth-t.depth;class B5{constructor(){this.children=[],this.isDirty=!1}add(t){gg(this.children,t),this.isDirty=!0}remove(t){fc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(U5),this.isDirty=!1,this.children.forEach(t)}}function V5(e,t){const n=ot.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Gr(r),e(i-t))};return ue.setup(r,!0),()=>Gr(r)}function Eu(e){return He(e)?e.get():e}class z5{constructor(){this.members=[]}add(t){gg(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(fc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(fc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const ku={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Rh=["","X","Y","Z"],H5=1e3;let W5=0;function Ph(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Dk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pT(r)}function mT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=W5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(q5),this.nodes.forEach(eV),this.nodes.forEach(tV),this.nodes.forEach(Y5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new B5)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new yg),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Ig(o)&&!GB(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const h=()=>this.root.updateBlockedByResize=!1;ue.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=V5(h,250),ku.hasAnimatedSinceResize&&(ku.hasAnimatedSinceResize=!1,this.nodes.forEach(Hw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||oV,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=u.getProps(),w=!this.targetLayout||!hT(this.targetLayout,f),v=!d&&h;if(this.options.layoutRoot||this.resumeFrom||v||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Cg(y,"layout"),onPlay:g,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,v,x.path)}else d||Hw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Gr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nV),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(J5),this.nodes.forEach(Vw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Q5),this.nodes.forEach(Z5),this.nodes.forEach(K5),this.nodes.forEach(G5)):this.nodes.forEach(zw),this.clearAllSnapshots();const a=ot.now();ze.delta=Dn(0,1e3/60,a-ze.timestamp),ze.timestamp=a,ze.isProcessing=!0,bh.update.process(ze),bh.preRender.process(ze),bh.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(X5),this.sharedNodes.forEach(rV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!at(this.snapshot.measuredBox.x)&&!at(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ie()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!dT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||ls(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),aV(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Ie();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(lV))){const{scroll:c}=this.root;c&&(Tn(a.x,c.offset.x),Tn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Ie();if(Xt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:h}=c;c!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Xt(a,o),Tn(a.x,d.offset.x),Tn(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var c,d;const u=l||Ie();Xt(u,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Tn(u.x,-f.scroll.offset.x),Tn(u.y,-f.scroll.offset.y)),ls(f.latestValues)&&_u(u,f.latestValues,(c=f.layout)==null?void 0:c.layoutBox)}return ls(this.latestValues)&&_u(u,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),u}removeTransform(o){var l;const a=Ie();Xt(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!ls(c.latestValues))continue;let d;c.instance&&(Pp(c.latestValues)&&c.updateSnapshot(),d=Ie(),Xt(d,c.measurePageBox())),Nw(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,d)}return ls(this.latestValues)&&Nw(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=ze.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),R5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Xt(this.target,this.layout.layoutBox),Zk(this.target,this.targetDelta)):Xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Pp(this.parent.latestValues)||Qk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),bc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Xt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Xt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;s5(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ie());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cw(this.prevProjectionDelta.x,this.projectionDelta.x),Cw(this.prevProjectionDelta.y,this.projectionDelta.y)),ra(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!$w(this.projectionDelta.x,this.prevProjectionDelta.x)||!$w(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bi(),this.projectionDelta=bi(),this.projectionDeltaWithTransform=bi()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=bi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ie(),y=u?u.source:void 0,g=this.layout?this.layout.source:void 0,b=y!==g,w=this.getStack(),v=!w||w.members.length<=1,x=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(iV));this.animationProgress=0;let S;const _=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=E=>{const k=E/1e3,T=_==null?void 0:_(k);T?(h.x.translate=T.x,h.x.scale=le(o.x.scale,1,k),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=T.y,h.y.scale=le(o.y.scale,1,k),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Ww(h.x,o.x,k),Ww(h.y,o.y,k)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),sV(this.relativeTarget,this.relativeTargetOrigin,f,k),S&&N5(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ie()),Xt(S,this.relativeTarget)),b&&(this.animationValues=d,D5(d,c,this.latestValues,k,x,v)),T&&T.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=T.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Gr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{ku.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.motionValue.jump(0,!1),this.currentAnimation=F5(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(H5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&gT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();const d=at(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=at(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Xt(a,l),_u(a,c),ra(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z5),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ph("z",o,u,this.animationValues);for(let c=0;c<Rh.length;c++)Ph(`rotate${Rh[c]}`,o,u,this.animationValues),Ph(`skew${Rh[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Eu(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Eu(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ls(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=I5(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in jp){if(c[y]===void 0)continue;const{correct:g,applyTo:b,isCSSVariable:w}=jp[y],v=d==="none"?c[y]:g(c[y],u);if(b){const x=b.length;for(let S=0;S<x;S++)o[b[S]]=v}else w?this.options.visualElement.renderState.vars[y]=v:o[y]=v}this.options.layoutId&&(o.pointerEvents=u===this?Eu(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Vw),this.root.sharedNodes.clear()}}}function K5(e){e.updateLayout()}function G5(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")xn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=at(h);h.min=r[d].min,h.max=h.min+f});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";Np(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else gT(i,t.layoutBox,r)&&xn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=at(r[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=bi();ra(a,r,t.layoutBox);const l=bi();o?ra(l,e.applyTransform(s,!0),t.measuredBox):ra(l,r,t.layoutBox);const u=!dT(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const y=e.options.layoutAnchor||void 0,g=Ie();bc(g,t.layoutBox,h.layoutBox,y);const b=Ie();bc(b,r,f.layoutBox,y),hT(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function q5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Y5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function X5(e){e.clearSnapshot()}function Vw(e){e.clearMeasurements()}function J5(e){e.isLayoutDirty=!0,e.updateLayout()}function zw(e){e.isLayoutDirty=!1}function Q5(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Z5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eV(e){e.resolveTargetDelta()}function tV(e){e.calcProjection()}function nV(e){e.resetSkewAndRotation()}function rV(e){e.removeLeadSnapshot()}function Ww(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Kw(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function sV(e,t,n,r){Kw(e.x,t.x,n.x,r),Kw(e.y,t.y,n.y,r)}function iV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oV={duration:.45,ease:[.4,0,.1,1]},Gw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qw=Gw("applewebkit/")&&!Gw("chrome/")?Math.round:Ft;function Yw(e){e.min=qw(e.min),e.max=qw(e.max)}function aV(e){Yw(e.x),Yw(e.y)}function gT(e,t,n){return e==="position"||e==="preserve-aspect"&&!A5(Mw(t),Mw(n),.2)}function lV(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const uV=mT({attachResizeListener:(e,t)=>Fa(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Oh={current:void 0},yT=mT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Oh.current){const e=new uV({});e.mount(window),e.setOptions({layoutScroll:!0}),Oh.current=e}return Oh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vT=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function cV(e=!0){const t=m.useContext(mg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{if(e)return s(i)},[e]);const o=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const wT=m.createContext({strict:!1}),Xw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Jw=!1;function dV(){if(Jw)return;const e={};for(const t in Xw)e[t]={isEnabled:n=>Xw[t].some(r=>!!n[r])};Yk(e),Jw=!0}function xT(){return dV(),e5()}function hV(e){const t=xT();for(const n in e)t[n]={...t[n],...e[n]};Yk(t)}const fV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Sc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fV.has(e)}let bT=e=>!Sc(e);function pV(e){typeof e=="function"&&(bT=t=>t.startsWith("on")?!Sc(t):e(t))}try{pV(require("@emotion/is-prop-valid").default)}catch{}function mV(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||He(e[s])||(bT(s)||n===!0&&Sc(s)||!t&&!Sc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const cd=m.createContext({});function gV(e,t){if(ud(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$a(n)?n:void 0,animate:$a(r)?r:void 0}}return e.inherit!==!1?t:{}}function yV(e){const{initial:t,animate:n}=gV(e,m.useContext(cd));return m.useMemo(()=>({initial:t,animate:n}),[Qw(t),Qw(n)])}function Qw(e){return Array.isArray(e)?e.join(" "):e}const Fg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ST(e,t,n){for(const r in t)!He(t[r])&&!nT(r,n)&&(e[r]=t[r])}function vV({transformTemplate:e},t){return m.useMemo(()=>{const n=Fg();return Mg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wV(e,t){const n=e.style||{},r={};return ST(r,n,e),Object.assign(r,vV(e,t)),r}function xV(e,t){const n={},r=wV(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
275`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const _T=()=>({...Fg(),attrs:{}});function bV(e,t,n,r){const s=m.useMemo(()=>{const i=_T();return rT(i,t,iT(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ST(i,e.style,e),s.style={...i,...s.style}}return s}const SV=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ug(e){return typeof e!="string"||e.includes("-")?!1:!!(SV.indexOf(e)>-1||/[A-Z]/u.test(e))}function _V(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??Ug(e)?bV:xV)(t,r,s,e),u=mV(t,typeof e=="string",i),c=e!==m.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=m.useMemo(()=>He(d)?d.get():d,[d]);return m.createElement(e,{...c,children:h})}function EV({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:kV(n,r,s,e),renderState:t()}}function kV(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Eu(i[h]);let{initial:o,animate:a}=e;const l=ud(e),u=Gk(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!ld(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const y=Rg(e,h[f]);if(y){const{transitionEnd:g,transition:b,...w}=y;for(const v in w){let x=w[v];if(Array.isArray(x)){const S=c?x.length-1:0;x=x[S]}x!==null&&(s[v]=x)}for(const v in g)s[v]=g[v]}}}return s}const ET=e=>(t,n)=>{const r=m.useContext(cd),s=m.useContext(mg),i=()=>EV(e,t,r,s);return n?i():_4(i)},TV=ET({scrapeMotionValuesFromProps:$g,createRenderState:Fg}),CV=ET({scrapeMotionValuesFromProps:oT,createRenderState:_T}),AV=Symbol.for("motionComponentSymbol");function RV(e,t,n){const r=m.useRef(n);m.useInsertionEffect(()=>{r.current=n});const s=m.useRef(null);return m.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const kT=m.createContext({});function ii(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PV(e,t,n,r,s,i){var x,S;const{visualElement:o}=m.useContext(cd),a=m.useContext(wT),l=m.useContext(mg),u=m.useContext(vT),c=u.reducedMotion,d=u.skipAnimations,h=m.useRef(null),f=m.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,g=m.useContext(kT);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&OV(h.current,n,s,g);const b=m.useRef(!1);m.useInsertionEffect(()=>{y&&b.current&&y.update(n,l)});const w=n[Lk],v=m.useRef(!!w&&typeof window<"u"&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,w))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,w)));return k4(()=>{f.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),v.current&&y.animationState&&y.animationState.animateChanges())}),m.useEffect(()=>{y&&(!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,w)}),v.current=!1),y.enteringChildren=void 0)}),y}function OV(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:TT(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&ii(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function TT(e){if(e)return e.options.allowProjection!==!1?e.projection:TT(e.parent)}function jh(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&hV(r);const i=n?n==="svg":Ug(e),o=i?CV:TV;function a(u,c){let d;const h={...m.useContext(vT),...u,layoutId:jV(u)},{isStatic:f}=h,y=yV(u),g=o(u,f);if(!f&&typeof window<"u"){NV();const b=IV(h);d=b.MeasureLayout,y.visualElement=PV(e,g,h,s,b.ProjectionNode,i)}return p.jsxs(cd.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...h}):null,_V(e,u,RV(g,y.visualElement,c),g,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=m.forwardRef(a);return l[AV]=e,l}function jV({layoutId:e}){const t=m.useContext(G1).id;return t&&e!==void 0?t+"-"+e:e}function NV(e,t){m.useContext(wT).strict}function IV(e){const t=xT(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 21,761 bytes, line 275
275function LV(e,t){if(typeof Proxy>"u")return jh;const n=new Map,r=(i,o)=>jh(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,jh(o,void 0,e,t)),n.get(o))})}const DV=(e,t)=>t.isSVG??Ug(e)?new y5(t):new d5(t,{allowProjection:e!==m.Fragment});class MV extends Jr{constructor(t){super(t),t.animationState||(t.animationState=S5(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ld(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let $V=0;class FV extends Jr{constructor(){super(...arguments),this.id=$V++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=Ts(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...d}=l;for(const h in d)(i=this.node.getValue(h))==null||i.jump(d[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const UV={animation:{Feature:MV},exit:{Feature:FV}};function sl(e){return{point:{x:e.pageX,y:e.pageY}}}const BV=e=>t=>Ng(t)&&e(t,sl(t));function sa(e,t,n,r){return Fa(e,t,BV(n),r)}const CT=({current:e})=>e?e.ownerDocument.defaultView:null,Zw=(e,t)=>Math.abs(e-t);function VV(e,t){const n=Zw(e.x,t.x),r=Zw(e.y,t.y);return Math.sqrt(n**2+r**2)}const ex=new Set(["auto","scroll"]);class AT{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Gl(this.lastRawMoveEventInfo,this.transformPagePoint));const y=Nh(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=VV(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!b)return;const{point:w}=y,{timestamp:v}=ze;this.history.push({...w,timestamp:v});const{onStart:x,onMove:S}=this.handlers;g||(x&&x(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,g)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Gl(g,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(y,g)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Nh(y.type==="pointercancel"?this.lastMoveEventInfo:Gl(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,x),w&&w(y,x)},!Ng(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=sl(t),u=Gl(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=ze;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Nh(u,this.history));const f={passive:!0,capture:!0};this.removeListeners=tl(sa(this.contextWindow,"pointermove",this.handlePointerMove,f),sa(this.contextWindow,"pointerup",this.handlePointerUp,f),sa(this.contextWindow,"pointercancel",this.handlePointerUp,f)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ex.has(r.overflowX)||ex.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),ue.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Gr(this.updatePoint)}}function Gl(e,t){return t?{point:t(e.point)}:e}function tx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nh({point:e},t){return{point:e,delta:tx(e,RT(t)),offset:tx(e,zV(t)),velocity:HV(t,.1)}}function zV(e){return e[0]}function RT(e){return e[e.length-1]}function HV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=RT(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>wt(t)*2&&(r=e[1]);const i=Mt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function WV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?le(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function nx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function KV(e,{top:t,left:n,bottom:r,right:s}){return{x:nx(e.x,n,s),y:nx(e.y,t,r)}}function rx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function GV(e,t){return{x:rx(e.x,t.x),y:rx(e.y,t.y)}}function qV(e,t){let n=.5;const r=at(e),s=at(t);return s>r?n=Da(t.min,t.max-r,e.min):r>s&&(n=Da(e.min,e.max-s,t.min)),Dn(0,1,n)}function YV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ip=.35;function XV(e=Ip){return e===!1?e=0:e===!0&&(e=Ip),{x:sx(e,"left","right"),y:sx(e,"top","bottom")}}function sx(e,t,n){return{min:ix(e,t),max:ix(e,n)}}function ix(e,t){return typeof e=="number"?e:e[t]||0}const JV=new WeakMap;class QV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(sl(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:f,dragPropagation:y,onDragStart:g}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=PB(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xn(w=>{let v=this.getAxisMotionValue(w).get()||0;if(Nn.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[w];S&&(v=at(S)*(parseFloat(v)/100))}}this.originPoint[w]=v}),g&&ue.update(()=>g(d,h),!1,!0),Ep(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:g,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=h;if(y&&this.currentDirection===null){this.currentDirection=e3(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),b&&ue.update(()=>b(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new AT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:CT(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&ue.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!ql(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=WV(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&ii(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=KV(r.layoutBox,t):this.constraints=!1,this.elastic=XV(n),s!==this.constraints&&!ii(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&xn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=YV(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ii(t))return!1;const r=t.current;Ms(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=i5(r,s.root,this.visualElement.getTransformPagePoint());let o=GV(s.layout.layoutBox,i);if(n){const a=n(n5(o));this.hasMutatedConstraints=!!a,a&&(o=Jk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=xn(c=>{if(!ql(c,n,this.currentDirection))return;let d=l&&l[c]||{};(o===!0||o===c)&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ep(this.visualElement,t),r.start(Ag(t,r,0,n,this.visualElement,!1))}stopAnimation(){xn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){xn(n=>{const{drag:r}=this.getProps();if(!ql(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-le(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ii(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};xn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=qV({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),xn(o=>{if(!ql(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(le(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;JV.set(this.visualElement,this);const t=this.visualElement.current,n=sa(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),h=u.target,f=h!==t&&DB(h);c&&d&&!f&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();ii(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=ZV(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ue.read(s);const a=Fa(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(xn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Ip,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ox(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ZV(e,t,n){const r=mw(e,ox(n)),s=mw(t,ox(n));return()=>{r(),s()}}function ql(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t3 extends Jr{constructor(t){super(t),this.removeGroupControls=Ft,this.removeListeners=Ft,this.controls=new QV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ft}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ih=e=>(t,n)=>{e&&ue.update(()=>e(t,n),!1,!0)};class n3 extends Jr{constructor(){super(...arguments),this.removePointerDownListener=Ft}onPointerDown(t){this.session=new AT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:CT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ih(t),onStart:Ih(n),onMove:Ih(r),onEnd:(i,o)=>{delete this.session,s&&ue.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=sa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Lh=!1;class r3 extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Lh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ku.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Lh=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ue.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),jg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Lh=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PT(e){const[t,n]=cV(),r=m.useContext(G1);return p.jsx(r3,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(kT),isPresent:t,safeToRemove:n})}const s3={pan:{Feature:n3},drag:{Feature:t3,ProjectionNode:yT,MeasureLayout:PT}};function ax(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ue.postRender(()=>i(t,sl(t)))}class i3 extends Jr{mount(){const{current:t}=this.node;t&&(this.unmount=jB(t,(n,r)=>(ax(this.node,r,"Start"),s=>ax(this.node,s,"End"))))}unmount(){}}class o3 extends Jr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tl(Fa(this.node.current,"focus",()=>this.onFocus()),Fa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function lx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ue.postRender(()=>i(t,sl(t)))}class a3 extends Jr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=$B(t,(s,i)=>(lx(this.node,i,"Start"),(o,{success:a})=>lx(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Lp=new WeakMap,Dh=new WeakMap,l3=e=>{const t=Lp.get(e.target);t&&t(e)},u3=e=>{e.forEach(l3)};function c3({root:e,...t}){const n=e||document;Dh.has(n)||Dh.set(n,{});const r=Dh.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(u3,{root:e,...t})),r[s]}function d3(e,t,n){const r=c3(t);return Lp.set(e,n),r.observe(e),()=>{Lp.delete(e),r.unobserve(e)}}const h3={some:0,all:1};class f3 extends Jr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:h3[s]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=c?d:h;f&&f(u)};this.stopObserver=d3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(p3(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function p3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const m3={inView:{Feature:f3},tap:{Feature:a3},focus:{Feature:o3},hover:{Feature:i3}},g3={layout:{ProjectionNode:yT,MeasureLayout:PT}},y3={...UV,...m3,...s3,...g3},v3=LV(y3,DV),w3=[{icon:Y_,headline:"Execution, not coordination",text:"Tasks move from definition to delivered outcome, without managing tools, workflows, or handovers.",bullets:["End-to-end execution","No manual orchestration","Outcome-first system"]},{icon:LN,headline:"Outcomes without overhead",text:"No onboarding, no setup, no switching between tools, results delivered from day one.",bullets:["No learning curve","Immediate output","Time reclaimed instantly"]},{icon:q_,headline:"Built-in accountability",text:"Every action is approved, tracked, and assigned, with full transparency across execution.",bullets:["Human-in-the-loop approvals","Full audit trail","Clear ownership"]},{icon:G_,headline:"Execution without exposure",text:"Data stays protected, governed, and compliant, without slowing down execution.",bullets:["EU AI Act ready","Data sovereignty","Secure processing"]}],x3=()=>p.jsx("section",{className:"w-full bg-[#F9FAFB] border-t border-border",children:p.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-28",children:[p.jsx("h2",{className:"text-fluid-h2 not-italic mb-3",style:{fontStyle:"normal"},children:"Why ABX Works"}),p.jsxs("p",{className:"text-base text-muted-foreground max-w-2xl mb-16 leading-relaxed",children:["Most systems analyze and recommend. Very few execute.",p.jsx("br",{}
275),"ABX delivers outcomes through end-to-end execution, with human approval where it's needed."]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-px bg-border rounded-xl overflow-hidden",children:w3.map((e,t)=>p.jsxs(v3.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.5,delay:t*.1,ease:"easeOut"},className:"bg-background p-7 md:p-9 group transition-colors duration-200 hover:bg-white",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:p.jsx(e.icon,{className:"w-[18px] h-[18px] text-primary"})}),p.jsx("h3",{className:"text-fluid-h3 not-italic font-semibold",style:{fontStyle:"normal"},children:e.headline})]}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-5",children:e.text}),p.jsx("ul",{className:"space-y-2",children:e.bullets.map(n=>p.jsxs("li",{className:"text-xs text-muted-foreground flex gap-2 items-start",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary shrink-0 mt-1.5","aria-hidden":"true"}),p.jsx("span",{children:n})]},n))})]},e.headline))})]})}),b3=()=>p.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[p.jsxs(Hm,{children:[p.jsx("title",{children:"Gieni ABX | Autonomous Execution for Professional Work"}),p.jsx("meta",{name:"description",content:"Gieni ABX is an autonomous execution system for professional work. Define the result, approve the plan, and ABX delivers finished outcomes."}),p.jsx("link",{rel:"canonical",href:"https://www.gieniabx.com/"}),p.jsx("meta",{property:"og:title",content:"Gieni ABX | Autonomous Execution for Professional Work"}),p.jsx("meta",{property:"og:description",content:"Gieni ABX is an autonomous execution system for professional work. Define the result, approve the plan, and ABX delivers finished outcomes."}),p.jsx("meta",{property:"og:url",content:"https://www.gieniabx.com/"}),p.jsx("meta",{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/5cENtUFlEeYVmqOV4GR02ViWYNe2/social-images/social-1774453369091-Screenshot_2026-03-25_at_4.42.34_PM.webp"}),p.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),p.jsx("meta",{name:"twitter:title",content:"Gieni ABX | Autonomous Execution for Professional Work"}),p.jsx("meta",{name:"twitter:description",content:"Gieni ABX is an autonomous execution system for professional work. Define the result, approve the plan, and ABX delivers finished outcomes."}),p.jsx("meta",{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/5cENtUFlEeYVmqOV4GR02ViWYNe2/social-images/social-1774453369091-Screenshot_2026-03-25_at_4.42.34_PM.webp"})]}),p.jsx(g4,{}),p.jsxs("main",{className:"min-h-[calc(100vh-4rem-13rem)] md:min-h-[calc(100vh-4rem)] flex flex-col items-center relative overflow-hidden pb-6 md:pb-0",children:[p.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-full max-h-[80%] h-full homepage-dots pointer-events-none"}),p.jsx("div",{className:"flex-none h-4 md:flex-1 md:h-0"}),p.jsxs("div",{className:"relative z-10 text-center px-6 pt-6 pb-8 md:py-20",children:[p.jsxs("h1",{className:"text-fluid-hero leading-[1.1] tracking-tight mb-4 md:mb-6 font-serif not-italic",style:{fontStyle:"normal",minHeight:"calc(var(--text-hero) * 1.1 * 2)"},children:["Define the result",p.jsx("br",{}),p.jsx("span",{className:"text-primary whitespace-nowrap",children:"ABX executes"})," ",p.jsx("span",{className:"text-foreground/70 whitespace-nowrap",children:"the work"})]}),p.jsxs("p",{className:"text-base md:text-lg leading-normal md:leading-7 mb-8",children:["Gieni ABX is an autonomous execution system for professional work.",p.jsx("br",{}),"You approve. ABX delivers finished outcomes."]}),p.jsx(Ls,{size:"lg",className:"px-10 md:px-14 h-12 text-base font-medium rounded-xl shadow-md hover:shadow-lg transition-shadow",asChild:!0,children:p.jsx("a",{href:"https://app.gieniabx.com/login",target:"_blank",rel:"noopener noreferrer",onClick:()=>
275{Ue.ctaClick({cta_text:"Get Started",cta_location:"hero",destination_url:"https://app.gieniabx.com/login"}),Ue.gadsConversion("get_started_click",10)},children:"Get Started"})})]}),p.jsx("div",{className:"flex-none h-2 md:flex-1 md:h-0"}),p.jsx("div",{className:"relative z-10 pb-6 md:pb-12",children:p.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-y-2 md:gap-x-8 text-sm text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(eh,{className:"w-4 h-4 text-primary"}),"Execution with approval"]}),p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(eh,{className:"w-4 h-4 text-primary"}),"Enterprise-grade governance"]}),p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(eh,{className:"w-4 h-4 text-primary"}),"Full auditability"]})]})})]}),p.jsx(x3,{}),p.jsx(S4,{}),p.jsx(v4,{hideCTA:!0})]}),ux=()=>{const e=Me();return m.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),p.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[p.jsxs(Hm,{children:[p.jsx("title",{children:"Page Not Found | Gieni ABX"}),p.jsx("meta",{name:"description",content:"The page you're looking for doesn't exist. Return to Gieni ABX homepage."}),p.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),p.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),p.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})},Yl=()=>{const{search:e,hash:t}=Me();return p.jsx(Zu,{to:`/use-cases/abx-for-salesforce${e}${t}`,replace:!0})},S3=()=>{const{pathname:e,search:t,hash:n}=Me(),r="/blog/eu-ai-act-autonomous-business-execution";return e!==r?p.jsx(Zu,{to:`${r}${t}${n}`,replace:!0}):p.jsx(m.Suspense,{fallback:null,children:p.jsx(I3,{})})},_3=m.lazy(()=>q(()=>import("./LegalNotice-VJ8ctqZ1.js"),[])),E3=m.lazy(()=>q(()=>import("./TermsAndConditions-DVBHLk8b.js"),[])),k3=m.lazy(()=>q(()=>import("./PrivacyPolicy-CZ_Vg2Gi.js"),[])),T3=m.lazy(()=>q(()=>import("./Blog-cjPsgNtd.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),C3=m.lazy(()=>q(()=>import("./BlogGeneration3AI-__8Ej2Ol.js"),__vite__mapDeps([7,8,9,10,11,12]))),A3=m.lazy(()=>q(()=>import("./BlogExecutionAI-Bfcf4IEp.js"),__vite__mapDeps([13,8,9,10,11,14,12]))),R3=m.lazy(()=>q(()=>import("./BlogGen3Execution-D_unqxwP.js"),__vite__mapDeps([15,16,8,9,10,11,14,1,12]))),P3=m.lazy(()=>q(()=>import("./BlogAgenticEnterpriseCRM-Ck-r0O5V.js"),__vite__mapDeps([17,8,9,10,11,2,18,12]))),O3=m.lazy(()=>q(()=>import("./BlogAzureMarketplace-4QP6ZnFo.js"),__vite__mapDeps([19,8,9,10,11,14,3,12]))),j3=m.lazy(()=>q(()=>import("./BlogAgenticVsABX-BjlTc9CF.js"),__vite__mapDeps([20,16,8,9,10,18,12]))),N3=m.lazy(()=>q(()=>import("./BlogWhatIsABX-BipgRfaA.js"),__vite__mapDeps([21,16,8,9,10,11,14,4,12]))),I3=m.lazy(()=>q(()=>import("./BlogEUAIAct-IVkOjREK.js"),__vite__mapDeps([22,8,9,10,11,14,5,12]))),L3=m.lazy(()=>q(()=>import("./BlogExecutionGap-BkO37V15.js"),__vite__mapDeps([23,16,8,9,10,11,14,6,12]))),D3=m.lazy(()=>q(()=>import("./BlogCreateCapacity-5oVnb2QP.js"),__vite__mapDeps([24,8,9,10,16,11,18,12]))
275),M3=m.lazy(()=>q(()=>import("./BlogWhyAssistantsDontExecute-R0sg4Iih.js"),__vite__mapDeps([25,16,8,9,10,11,18,12]))),$3=m.lazy(()=>q(()=>import("./TrustCenter-u_eZyD0x.js"),[])),F3=m.lazy(()=>q(()=>import("./SecurityConnectors-DNmGPRbi.js"),[])),U3=m.lazy(()=>q(()=>import("./Pricing-B0-FLH-j.js"),[])),B3=m.lazy(()=>q(()=>import("./Typography-Ds-KaMhe.js"),[])),V3=m.lazy(()=>q(()=>import("./Changelog-B0cx6l0V.js"),[])),z3=m.lazy(()=>q(()=>import("./UseCases-CWmqdrZi.js"),__vite__mapDeps([26,27]))),H3=m.lazy(()=>q(()=>import("./InspirationLibrary-BKyflDdv.js"),[])),W3=m.lazy(()=>q(()=>import("./ExpertiseLibrary-34QHE_Yj.js"),__vite__mapDeps([28,29,30,31,32]))),K3=m.lazy(()=>q(()=>import("./WhitepapersPillar-ByeH6c1K.js"),__vite__mapDeps([33,29,30,31]))),G3=m.lazy(()=>q(()=>import("./InterviewSeriesPillar-CBHPuPyg.js"),__vite__mapDeps([34,29,30,32]))),q3=m.lazy(()=>q(()=>import("./WhitepaperABX-DRGJfZx4.js"),__vite__mapDeps([35,16,36,10,37,30,38]))),Y3=m.lazy(()=>q(()=>import("./InterviewEpisode01-BVlsTkRF.js"),__vite__mapDeps([39,40]))),X3=m.lazy(()=>q(()=>import("./WhitepaperABXThankYou-vR9t9ooK.js"),__vite__mapDeps([41,38]))),J3=m.lazy(()=>q(()=>import("./DataProcessingAgreement-CfsLkmun.js"),[])),Q3=m.lazy(()=>q(()=>import("./GovernanceHITL-DtyWuOsx.js"),[])),Z3=m.lazy(()=>q(()=>import("./Enterprise-BHJnKaKi.js"),[])),ez=m.lazy(()=>q(()=>import("./HowItWorks-BEtgjIvI.js"),__vite__mapDeps([42,40]))),tz=m.lazy(()=>q(()=>import("./CompetitiveIntelligence-Ca1LE9IC.js"),__vite__mapDeps([43,40,44,27,45,46]))),nz=m.lazy(()=>q(()=>import("./CRMEnrichment-DGBCvJLV.js"),__vite__mapDeps([47,40,44,27,45,46]))),rz=m.lazy(()=>q(()=>import("./SalesOutreach-Ch4r2IyZ.js"),__vite__mapDeps([48,40,44,27,45,46]))),sz=m.lazy(()=>q(()=>import("./BoardMaterialPrep-BMfBFSQ_.js"),__vite__mapDeps([49,40,44,27,45,46]))),iz=m.lazy(()=>q(()=>import("./MarketSignalMonitoring-Dv0oVN82.js"),__vite__mapDeps([50,44,27,46]))),oz=m.lazy(()=>q(()=>import("./WeeklyTeamBriefings-S4vlsyUH.js"),__vite__mapDeps([51,40,44,27,45,46]))),az=m.lazy(()=>q(()=>import("./InvestorReporting-CAS1v0UB.js"),__vite__mapDeps([52,44,27,46]))),lz=m.lazy(()=>q(()=>import("./SalesforceHowItWorks-BDJ4Lyfr.js"),__vite__mapDeps([53,27,45,40,46]))),uz=m.lazy(()=>q(()=>import("./Contact-CXrkciDv.js"),__vite__mapDeps([54,37,55,56]))),cz=m.lazy(()=>q(()=>import("./Press-COTv1pZ-.js"),__vite__mapDeps([57,58,12]))),dz=m.lazy(()=>q(()=>import("./PressRelease-gBr7guoF.js"),__vite__mapDeps([59,58,10,9,12,60]))),hz=m.lazy(()=>q(()=>import("./Events-DW_n9hth.js"),__vite__mapDeps([61,36,46,56,60,62]))),fz=m.lazy(()=>q(()=>import("./Skills-DAyEwhnn.js"),[])),pz=m.lazy(()=>q(()=>import("./ThankYou-DvEpWEsk.js"),[])),mz=m.lazy(()=>q(()=>import("./Demo-C0gu4tya.js"),[])),gz=m.lazy(()=>q(()=>import("./Analytics-DwiSII16.js"),__vite__mapDeps([63,64,65,55,62]))),yz=m.lazy(()=>q(()=>import("./VideoHealth-BRF0XROD.js"),__vite__mapDeps([66,64,65]))),vz=m.lazy(()=>q(()=>import("./AnalyticsLogin-DHsiHNlw.js"),__vite__mapDeps([67,37,65]))),wz=new $R,ti=e=>p.jsx(m.Suspense,{fallback:null,children:e}),cx=()=>p.jsx(m_,{children:p.jsx(UR,{client:wz,children:p.jsxs(dD,{children:[p.jsx(_I,{}),p.jsx(Cj,{}),p.jsx(dO,{children:p.jsxs(K$,{children:[p.jsx(Q$,{}),p.jsx(Y$,{}),p.jsxs(UP,{children:[p.jsx(V,{path:"/",element:p.jsx(b3,{})}),p.jsx(V,{path:"/how-it-works",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(ez,{})})}),p.jsx(V,{path:"/legal-notice",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(_3,{})})}),p.jsx(V,{path:"/terms-and-conditions",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(E3,{})})}),p.jsx(V,{path:"/privacy-policy",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(k3,{})})}),p.jsx(V,{path:"/blog",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(T3,{})})}),p.jsx(V,{path:"/blog/generation-3-ai",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(C3,{})})}),p.jsx(V,{path:"/blog/execution-ai-vs-copilots",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(A3,{})})}),p.jsx(V,{path:"/blog/shift-from-answers-to-execution",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(R3,{})})}),p.jsx(V,{path:"/blog/agentic-enterprise-crm-foundation",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(P3,{})})}),p.jsx(V,{path:"/blog/microsoft-azure-marketplace",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(O3,{})})}),p.jsx(V,{path:"/blog/agentic-ai-vs-autonomous-business-execution",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(j3,{})})}),p.jsx(V,{path:"/blog/what-is-autonomous-business-execution",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(N3,{})})}),p.jsx(V,{path:"/blog/eu-ai-act-autonomous-business-execution",element:p.jsx(S3,{})}),p.jsx(V,{path:"/blog/the-execution-gap-why-work-gets-stuck-in-modern-businesses",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(L3,{})})}),p.jsx(V,{path:"/blog/create-capacity-without-increasing-headcount",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(D3,{})})}),p.jsx(V,{path:"/blog/why-ai-assistants-dont-execute-business-processes",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(M3,{})})}),p.jsx(V,{path:"/blog/EU-AI-Act-Autonomous-Business-Execution",element:p.jsx(Zu,{to:"/blog/eu-ai-act-autonomous-business-execution",replace:!0})}),p.jsx(V,{path:"/trust-center",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx($3,{})})}),p.jsx(V,{path:"/resources/security/connectors",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(F3,{})})}),p.jsx(V,{path:"/pricing",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(U3,{})})}),p.jsx(V,{path:"/changelog",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(V3,{})})}),p.jsx(V,{path:"/use-cases",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(z3,{})})}
275),p.jsx(V,{path:"/use-cases/competitive-intelligence",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(tz,{})})}),p.jsx(V,{path:"/use-cases/crm-enrichment",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(nz,{})})}),p.jsx(V,{path:"/use-cases/sales-outreach",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(rz,{})})}),p.jsx(V,{path:"/use-cases/board-material-prep",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(sz,{})})}),p.jsx(V,{path:"/use-cases/market-signal-monitoring",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(iz,{})})}),p.jsx(V,{path:"/use-cases/weekly-team-briefings",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(oz,{})})}),p.jsx(V,{path:"/use-cases/investor-reporting",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(az,{})})}),p.jsx(V,{path:"/use-cases/abx-for-salesforce",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(lz,{})})}),p.jsx(V,{path:"/use-cases/salesforce-how-it-works",element:p.jsx(Yl,{})}),p.jsx(V,{path:"/use-cases/salesforce-how-it-works/",element:p.jsx(Yl,{})}),p.jsx(V,{path:"/use-cases/abxforsalesforce",element:p.jsx(Yl,{})}),p.jsx(V,{path:"/use-cases/abxforsalesforce/",element:p.jsx(Yl,{})}),p.jsx(V,{path:"/inspiration-library",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(H3,{})})}),p.jsx(V,{path:"/expertise-library",element:ti(p.jsx(W3,{}))}),p.jsx(V,{path:"/expertise-library/whitepapers",element:ti(p.jsx(K3,{}))}),p.jsx(V,{path:"/expertise-library/interview-series",element:ti(p.jsx(G3,{}))}),p.jsx(V,{path:"/expertise-library/autonomous-business-execution-interview",element:ti(p.jsx(Y3,{}))}),p.jsx(V,{path:"/expertise-library/autonomous-business-execution-whitepaper",element:ti(p.jsx(q3,{}))}),p.jsx(V,{path:"/expertise-library/autonomous-business-execution-whitepaper/thank-you",element:ti(p.jsx(X3,{}))}),p.jsx(V,{path:"/expertise-library/autonomous-business-execution",element:p.jsx(Zu,{to:"/expertise-library/autonomous-business-execution-whitepaper",replace:!0})}),p.jsx(V,{path:"/data-processing-agreement",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(J3,{})})}),p.jsx(V,{path:"/governance",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(Q3,{})})}),p.jsx(V,{path:"/enterprise",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(Z3,{})})}),p.jsx(V,{path:"/typography",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(B3,{})})}),p.jsx(V,{path:"/analytics",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(gz,{})})}),p.jsx(V,{path:"/analytics-login",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(vz,{})})}),p.jsx(V,{path:"/video-health",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(yz,{})})}),p.jsx(V,{path:"/contact",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(uz,{})})}),p.jsx(V,{path:"/press",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(cz,{})})}),p.jsx(V,{path:"/press/:slug",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(dz,{})})}),p.jsx(V,{path:"/events",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(hz,{})})}),p.jsx(V,{path:"/skills",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(fz,{})})}),p.jsx(V,{path:"/thank-you",element:p.jsx(m.Suspense,{fallback:null,children:p.jsx(pz,{})})}),p.jsx(V,{path:"/demo",element:dg()?p.jsx(ux,{}):p.jsx(m.Suspense,{fallback:null,children:p.jsx(mz,{})})}),p.jsx(V,{path:"*",element:p.jsx(ux,{})})]}),p.jsx(J$,{}),p.jsx(Z$,{}),p.jsx(tF,{})]})})]})})}),Tu=document.getElementById("root"),xz=()=>{document.head.querySelectorAll("meta[data-rh]").forEach(e=>{const t=e.hasAttribute("property")?"property":"name",n=e.getAttribute(t);n&&document.head.querySelectorAll(`meta[${t}="${CSS.escape(n)}"]:not([data-rh])`).forEach(r=>r.remove())})};new MutationObserver(xz).observe(document.head,{childList:!0});Tu.hasChildNodes()?NS(Tu,p.jsx(cx,{})):IS(Tu).render(p.jsx(cx,{}));const bz=()=>{const e=Date.now(),t=15e3,n=()=>{if((Tu.textContent??"").trim().length>200||Date.now()-e>t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.dispatchEvent(new Event("prerender-ready"))})});return}requestAnimationFrame(n)};requestAnimationFrame(n)};bz();export{In as $,W_ as A,Ls as B,LN as C,B1 as D,wE as E,v4 as F,WL as G,Hm as H,qa as I,XF as J,dF as K,a_ as L,x1 as M,g4 as N,$1 as O,Mv as P,h1 as Q,o4 as R,Dj as S,U1 as T,Kc as U,KL as V,GL as W,ka as X,oN as Y,Y_ as Z,Nz as _,K_ as a,Cz as a0,Wm as a1,Ea as a2,Mm as a3,kz as a4,_z as a5,ux as a6,y4 as a7,m4 as a8,BN as a9,IN as aa,a1 as ab,z_ as ac,Va as ad,Rx as ae,$v as af,jN as ag,eh as b,_e as c,Ue as d,G_ as e,Dv as f,Ja as g,S_ as h,nh as i,p as j,Ne as k,ye as l,oo as m,ut as n,sr as o,zt as p,Ez as q,m as r,Ym as s,F1 as t,q$ as u,u4 as v,a4 as w,l4 as x,W1 as y,Vj as z};
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.