vendor: 4,351 bytes, lines 1-9
1var Mf=e=>{throw TypeError(e)};var Ic=(e,t,r)=>t.has(e)||Mf("Cannot "+r);var N=(e,t,r)=>(Ic(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>t.has(e)?Mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),J=(e,t,r,n)=>(Ic(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ve=(e,t,r)=>(Ic(e,t,"access private method"),r);var ra=(e,t,r,n)=>({set _(i){J(e,t,i,r)},get _(){return N(e,t,n)}});function yx(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();function Eg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _g={exports:{}},Hl={},Cg={exports:{}},te={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Uo=Symbol.for("react.element"),vx=Symbol.for("react.portal"),wx=Symbol.for("react.fragment"),bx=Symbol.for("react.strict_mode"),xx=Symbol.for("react.profiler"),kx=Symbol.for("react.provider"),Sx=Symbol.for("react.context"),Ex=Symbol.for("react.forward_ref"),_x=Symbol.for("react.suspense"),Cx=Symbol.for("react.memo"),Tx=Symbol.for("react.lazy"),Lf=Symbol.iterator;function jx(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var Tg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jg=Object.assign,Ng={};function ys(e,t,r){this.props=e,this.context=t,this.refs=Ng,this.updater=r||Tg}ys.prototype.isReactComponent={};ys.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")};ys.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pg(){}Pg.prototype=ys.prototype;function rh(e,t,r){this.props=e,this.context=t,this.refs=Ng,this.updater=r||Tg}var nh=rh.prototype=new Pg;nh.constructor=rh;jg(nh,ys.prototype);nh.isPureReactComponent=!0;var $f=Array.isArray,Rg=Object.prototype.hasOwnProperty,ih={current:null},Ag={key:!0,ref:!0,__self:!0,__source:!0};function Ig(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Rg.call(t,n)&&!Ag.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Uo,type:e,key:s,ref:o,props:i,_owner:ih.current}}function Nx(e,t){return{$$typeof:Uo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uo}function Px(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Ff=/\/+/g;function Oc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Px(""+e.key):t.toString(36)}function La(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Uo:case vx:o=!0}}
vendor: 4,573 bytes, lines 9-17
9if(o)return o=e,i=i(o),e=n===""?"."+Oc(o,0):n,$f(i)?(r="",e!=null&&(r=e.replace(Ff,"$&/")+"/"),La(i,t,r,"",function(u){return u})):i!=null&&(sh(i)&&(i=Nx(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ff,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",$f(e))for(var a=0;a<e.length;a++){s=e[a];var c=n+Oc(s,a);o+=La(s,t,r,c,i)}else if(c=jx(e),typeof c=="function")for(e=c.call(e),a=0;!(s=e.next()).done;)s=s.value,c=n+Oc(s,a++),o+=La(s,t,r,c,i);else if(s==="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 na(e,t,r){if(e==null)return e;var n=[],i=0;return La(e,n,"","",function(s){return t.call(r,s,i++)}),n}function Rx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},$a={transition:null},Ax={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:$a,ReactCurrentOwner:ih};function Og(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:na,forEach:function(e,t,r){na(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return na(e,function(){t++}),t},toArray:function(e){return na(e,function(t){return t})||[]},only:function(e){if(!sh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=ys;te.Fragment=wx;te.Profiler=xx;te.PureComponent=rh;te.StrictMode=bx;te.Suspense=_x;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ax;te.act=Og;te.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=jg({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ih.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Rg.call(t,c)&&!Ag.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:Uo,type:e.type,key:i,ref:s,props:n,_owner:o}};te.createContext=function(e){return e={$$typeof:Sx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kx,_context:e},e.Consumer=e};te.createElement=Ig;te.createFactory=function(e){var t=Ig.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Ex,render:e}};te.isValidElement=sh;te.lazy=function(e){return{$$typeof:Tx,_payload:{_status:-1,_result:e},_init:Rx}};te.memo=function(e,t){return{$$typeof:Cx,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=$a.transition;$a.transition={};try{e()}finally{$a.transition=t}};te.unstable_act=Og;te.useCallback=function(e,t){return nt.current.useCallback(e,t)};te.useContext=function(e){return nt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};te.useEffect=function(e,t){return nt.current.useEffect(e,t)};te.useId=function(){return nt.current.useId()};te.useImperativeHandle=function(e,t,r){return nt.current.useImperativeHandle(e,t,r)};te.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return nt.current.useMemo(e,t)};te.useReducer=function(e,t,r){return nt.current.useReducer(e,t,r)};te.useRef=function(e){return nt.current.useRef(e)};te.useState=function(e){return nt.current.useState(e)};te.useSyncExternalStore=function(e,t,r){return nt.current.useSyncExternalStore(e,t,r)};te.useTransition=function(){return nt.current.useTransition()};te.version="18.3.1";Cg.exports=te;var w=Cg.exports;const I=Eg(w),oh=yx({__proto__:null,default:I},[w]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Ix=w,Ox=Symbol.for("react.element"),Dx=Symbol.for("react.fragment"),Mx=Object.prototype.hasOwnProperty,Lx=Ix.__SECRET_INT
vendor: 11,405 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$x={key:!0,ref:!0,__self:!0,__source:!0};function Dg(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)Mx.call(t,n)&&!$x.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:Ox,type:e,key:s,ref:o,props:i,_owner:Lx.current}}Hl.Fragment=Dx;Hl.jsx=Dg;Hl.jsxs=Dg;_g.exports=Hl;var l=_g.exports,Mg={exports:{}},kt={},Lg={exports:{}},$g={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(j,C){var O=j.length;j.push(C);e:for(;0<O;){var z=O-1>>>1,U=j[z];if(0<i(U,C))j[z]=C,j[O]=U,O=z;else break e}}function r(j){return j.length===0?null:j[0]}function n(j){if(j.length===0)return null;var C=j[0],O=j.pop();if(O!==C){j[0]=O;e:for(var z=0,U=j.length,Q=U>>>1;z<Q;){var X=2*(z+1)-1,ye=j[X],ke=X+1,ee=j[ke];if(0>i(ye,O))ke<U&&0>i(ee,ye)?(j[z]=ee,j[ke]=O,z=ke):(j[z]=ye,j[X]=O,z=X);else if(ke<U&&0>i(ee,O))j[z]=ee,j[ke]=O,z=ke;else break e}}return C}function i(j,C){var O=j.sortIndex-C.sortIndex;return O!==0?O:j.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var c=[],u=[],d=1,h=null,p=3,f=!1,g=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,y=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 b(j){for(var C=r(u);C!==null;){if(C.callback===null)n(u);else if(C.startTime<=j)n(u),C.sortIndex=C.expirationTime,t(c,C);else break;C=r(u)}}function k(j){if(m=!1,b(j),!g)if(r(c)!==null)g=!0,B(S);else{var C=r(u);C!==null&&q(k,C.startTime-j)}}function S(j,C){g=!1,m&&(m=!1,y(T),T=-1),f=!0;var O=p;try{for(b(C),h=r(c);h!==null&&(!(h.expirationTime>C)||j&&!H());){var z=h.callback;if(typeof z=="function"){h.callback=null,p=h.priorityLevel;var U=z(h.expirationTime<=C);C=e.unstable_now(),typeof U=="function"?h.callback=U:h===r(c)&&n(c),b(C)}else n(c);h=r(c)}if(h!==null)var Q=!0;else{var X=r(u);X!==null&&q(k,X.startTime-C),Q=!1}return Q}finally{h=null,p=O,f=!1}}var E=!1,_=null,T=-1,P=5,A=-1;function H(){return!(e.unstable_now()-A<P)}function L(){if(_!==null){var j=e.unstable_now();A=j;var C=!0;try{C=_(!0,j)}finally{C?G():(E=!1,_=null)}}else E=!1}var G;if(typeof v=="function")G=function(){v(L)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,Z=D.port2;D.port1.onmessage=L,G=function(){Z.postMessage(null)}}else G=function(){x(L,0)};function B(j){_=j,E||(E=!0,G())}function q(j,C){T=x(function(){j(e.unstable_now())},C)}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(j){j.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,B(S))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var C=3;break;default:C=p}var O=p;p=C;try{return j()}finally{p=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,C){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var O=p;p=j;try{return C()}finally{p=O}},e.unstable_scheduleCallback=function(j,C,O){var z=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?z+O:z):O=z,j){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=O+U,j={id:d++,callback:C,priorityLevel:j,startTime:O,expirationTime:U,sortIndex:-1},O>z?(j.sortIndex=O,t(u,j),r(c)===null&&j===r(u)&&(m?(y(T),T=-1):m=!0,q(k,O-z))):(j.sortIndex=U,t(c,j),g||f||(g=!0,B(S))),j},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(j){var C=p;return function(){var O=p;p=C;try{return j.apply(this,arguments)}finally{p=O}}}})($g);Lg.exports=$g;var Fx=Lg.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Ux=w,wt=Fx;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fg=new Set,so={};function ri(e,t){as(e,t),as(e+"Capture",t)}function as(e,t){for(so[e]=t,e=0;e<t.length;e++)Fg.add(t[e])}var Pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=Object.prototype.hasOwnProperty,Bx=/^[: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]*$/,Uf={},Bf={};function zx(e){return ju.call(Bf,e)?!0:ju.call(Uf,e)?!1:Bx.test(e)?Bf[e]=!0:(Uf[e]=!0,!1)}function Hx(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vx(e,t,r,n){if(t===null||typeof t>"u"||Hx(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new it(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){He[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var ah=/[\-:]([a-z])/g;function lh(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(ah,lh);He[t]=new it(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(ah,lh);He[t]=new it(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(ah,lh);He[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function ch(e,t,r,n){var i=He.hasOwnProperty(t)?He[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vx(t,r,i,n)&&(r=null),n||i===null?zx(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Lr=Ux.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ia=Symbol.for("react.element"),Ni=Symbol.for("react.portal"),Pi=Symbol.for("react.fragment"),uh=Symbol.for("react.strict_mode"),Nu=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),dh=Symbol.for("react.forward_ref"),Pu=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),hh=Symbol.for("react.memo"),Xr=Symbol.for("react.lazy"),zg=Symbol.for("react.offscreen"),zf=Symbol.iterator;function Ts(e){return e===null||typeof e!="object"?null:(e=zf&&e[zf]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Dc;function Fs(e){if(Dc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Dc=t&&t[1]||""}return` 34`+Dc+e}var Mc=!1;function Lc(e,t){if(!e||Mc)return"";Mc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),s=n.stack.split(` 36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var c=` 37`+i[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=a);break}}}finally{Mc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Fs(e):""}function Wx(e){switch(e.tag){case 5:return Fs(e.type);case 16:return Fs("Lazy");case 13:return Fs("Suspense");case 19:return Fs("SuspenseList");case 0:case 2:case 15:return e=Lc(e.type,!1),e;case 11:return e=Lc(e.type.render,!1),e;case 1:return e=Lc(e.type,!0),e;default:return""}}function Au(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 Pi:return"Fragment";case Ni:return"Portal";case Nu:return"Profiler";case uh:return"StrictMode";case Pu:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bg:return(e.displayName||"Context")+".Consumer";case Ug:return(e._context.displayName||"Context")+".Provider";case dh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hh:return t=e.displayName||null,t!==null?t:Au(e.type)||"Memo";case Xr:t=e._payload,e=e._init;try{return Au(e(t))}catch{}}return null}function Gx(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 Au(t);case 8:return t===uh?"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 kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qx(e){var t=Hg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sa(e){e._valueTracker||(e._valueTracker=qx(e))}function Vg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Hg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rl(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 Iu(e,t){var r=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Hf(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=kn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wg(e,t){t=t.checked,t!=null&&ch(e,"checked",t,!1)}function Ou(e,t){Wg(e,t);var r=kn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Du(e,t.type,r):t.hasOwnProperty("defaultValue")&&Du(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vf(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Du(e,t,r){(t!=="number"||rl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Us=Array.isArray;function zi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+kn(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wf(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Us(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:kn(r)}}function Gg(e,t){var r=kn(t.value),n=kn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Gf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qg(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 Lu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oa,Kg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(oa=oa||document.createElement("div"),oa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Gs={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},Kx=["Webkit","ms","Moz","O"];Object.keys(Gs).forEach(function(e){Kx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gs[t]=Gs[e]})});function Jg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Gs.hasOwnProperty(e)&&Gs[e]?(""+t).trim():t+"px"}function Qg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Jg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Jx=be({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 $u(e,t){if(t){if(Jx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Fu(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 Uu=null;function fh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bu=null,Hi=null,Vi=null;function qf(e){if(e=Ho(e)){if(typeof Bu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Kl(t),Bu(e.stateNode,e.type,t))}}function Yg(e){Hi?Vi?Vi.push(e):Vi=[e]:Hi=e}function Xg(){if(Hi){var e=Hi,t=Vi;if(Vi=Hi=null,qf(e),t)for(e=0;e<t.length;e++)qf(t[e])}}function Zg(e,t){return e(t)}function ey(){}var $c=!1;function ty(e,t,r){if($c)return e(t,r);$c=!0;try{return Zg(e,t,r)}finally{$c=!1,(Hi!==null||Vi!==null)&&(ey(),Xg())}}function ao(e,t){var r=e.stateNode;if(r===null)return null;var n=Kl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var zu=!1;if(Pr)try{var js={};Object.defineProperty(js,"passive",{get:function(){zu=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{zu=!1}function Qx(e,t,r,n,i,s,o,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var qs=!1,nl=null,il=!1,Hu=null,Yx={onError:function(e){qs=!0,nl=e}};function Xx(e,t,r,n,i,s,o,a,c){qs=!1,nl=null,Qx.apply(Yx,arguments)}function Zx(e,t,r,n,i,s,o,a,c){if(Xx.apply(this,arguments),qs){if(qs){var u=nl;qs=!1,nl=null}else throw Error(R(198));il||(il=!0,Hu=u)}}function ni(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ry(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 Kf(e){if(ni(e)!==e)throw Error(R(188))}function e1(e){var t=e.alternate;if(!t){if(t=ni(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Kf(i),e;if(s===n)return Kf(i),t;s=s.sibling}throw Error(R(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(R(189))}}if(r.alternate!==n)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function ny(e){return e=e1(e),e!==null?iy(e):null}function iy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iy(e);if(t!==null)return t;e=e.sibling}return null}var sy=wt.unstable_scheduleCallback,Jf=wt.unstable_cancelCallback,t1=wt.unstable_shouldYield,r1=wt.unstable_requestPaint,Te=wt.unstable_now,n1=wt.unstable_getCurrentPriorityLevel,ph=wt.unstable_ImmediatePriority,oy=wt.unstable_UserBlockingPriority,sl=wt.unstable_NormalPriority,i1=wt.unstable_LowPriority,ay=wt.unstable_IdlePriority,Vl=null,hr=null;function s1(e){if(hr&&typeof hr.onCommitFiberRoot=="function")try{hr.onCommitFiberRoot(Vl,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:l1,o1=Math.log,a1=Math.LN2;function l1(e){return e>>>=0,e===0?32:31-(o1(e)/a1|0)|0}var aa=64,la=4194304;function Bs(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 ol(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Bs(a):(s&=o,s!==0&&(n=Bs(s)))}else o=r&~i,o!==0?n=Bs(o):s!==0&&(n=Bs(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Qt(t),i=1<<r,n|=e[r],t&=~i;return n}function c1(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 u1(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Qt(s),a=1<<o,c=i[o];c===-1?(!(a&r)||a&n)&&(i[o]=c1(a,t)):c<=t&&(e.expiredLanes|=a),s&=~a}}function Vu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ly(){var e=aa;return aa<<=1,!(aa&4194240)&&(aa=64),e}function Fc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Bo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=r}function d1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Qt(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function mh(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Qt(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ae=0;function cy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uy,gh,dy,hy,fy,Wu=!1,ca=[],fn=null,pn=null,mn=null,lo=new Map,co=new Map,en=[],h1="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 Qf(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":lo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":co.delete(t.pointerId)}}function Ns(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ho(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function f1(e,t,r,n,i){switch(t){case"focusin":return fn=Ns(fn,e,t,r,n,i),!0;case"dragenter":return pn=Ns(pn,e,t,r,n,i),!0;case"mouseover":return mn=Ns(mn,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return lo.set(s,Ns(lo.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,co.set(s,Ns(co.get(s)||null,e,t,r,n,i)),!0}return!1}function py(e){var t=$n(e.target);if(t!==null){var r=ni(t);if(r!==null){if(t=r.tag,t===13){if(t=ry(r),t!==null){e.blockedOn=t,fy(e.priority,function(){dy(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Uu=n,r.target.dispatchEvent(n),Uu=null}else return t=Ho(r),t!==null&&gh(t),e.blockedOn=r,!1;t.shift()}return!0}function Yf(e,t,r){Fa(e)&&r.delete(t)}function p1(){Wu=!1,fn!==null&&Fa(fn)&&(fn=null),pn!==null&&Fa(pn)&&(pn=null),mn!==null&&Fa(mn)&&(mn=null),lo.forEach(Yf),co.forEach(Yf)}function Ps(e,t){e.blockedOn===t&&(e.blockedOn=null,Wu||(Wu=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,p1)))}function uo(e){function t(i){return Ps(i,e)}if(0<ca.length){Ps(ca[0],e);for(var r=1;r<ca.length;r++){var n=ca[r];n.blockedOn===e&&(n.blockedOn=null)}}for(fn!==null&&Ps(fn,e),pn!==null&&Ps(pn,e),mn!==null&&Ps(mn,e),lo.forEach(t),co.forEach(t),r=0;r<en.length;r++)n=en[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<en.length&&(r=en[0],r.blockedOn===null);)py(r),r.blockedOn===null&&en.shift()}var Wi=Lr.ReactCurrentBatchConfig,al=!0;function m1(e,t,r,n){var i=ae,s=Wi.transition;Wi.transition=null;try{ae=1,yh(e,t,r,n)}finally{ae=i,Wi.transition=s}}function g1(e,t,r,n){var i=ae,s=Wi.transition;Wi.transition=null;try{ae=4,yh(e,t,r,n)}finally{ae=i,Wi.transition=s}}function yh(e,t,r,n){if(al){var i=Gu(e,t,r,n);if(i===null)Jc(e,t,n,ll,r),Qf(e,n);else if(f1(i,e,t,r,n))n.stopPropagation();else if(Qf(e,n),t&4&&-1<h1.indexOf(e)){for(;i!==null;){var s=Ho(i);if(s!==null&&uy(s),s=Gu(e,t,r,n),s===null&&Jc(e,t,n,ll,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Jc(e,t,n,null,r)}}var ll=null;function Gu(e,t,r,n){if(ll=null,e=fh(n),e=$n(e),e!==null)if(t=ni(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ry(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ll=e,null}
vendor: 10,401 bytes, line 37
37function my(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(n1()){case ph:return 1;case oy:return 4;case sl:case i1:return 16;case ay:return 536870912;default:return 16}default:return 16}}var un=null,vh=null,Ua=null;function gy(){if(Ua)return Ua;var e,t=vh,r=t.length,n,i="value"in un?un.value:un.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return Ua=i.slice(e,1<n?1-n:void 0)}function Ba(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 ua(){return!0}function Xf(){return!1}function St(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ua:Xf,this.isPropagationStopped=Xf,this}return be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ua)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ua)},persist:function(){},isPersistent:ua}),t}var vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wh=St(vs),zo=be({},vs,{view:0,detail:0}),y1=St(zo),Uc,Bc,Rs,Wl=be({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bh,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!==Rs&&(Rs&&e.type==="mousemove"?(Uc=e.screenX-Rs.screenX,Bc=e.screenY-Rs.screenY):Bc=Uc=0,Rs=e),Uc)},movementY:function(e){return"movementY"in e?e.movementY:Bc}}),Zf=St(Wl),v1=be({},Wl,{dataTransfer:0}),w1=St(v1),b1=be({},zo,{relatedTarget:0}),zc=St(b1),x1=be({},vs,{animationName:0,elapsedTime:0,pseudoElement:0}),k1=St(x1),S1=be({},vs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),E1=St(S1),_1=be({},vs,{data:0}),ep=St(_1),C1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j1[e])?!!t[e]:!1}function bh(){return N1}var P1=be({},zo,{key:function(e){if(e.key){var t=C1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ba(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bh,charCode:function(e){return e.type==="keypress"?Ba(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ba(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R1=St(P1),A1=be({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tp=St(A1),I1=be({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bh}),O1=St(I1),D1=be({},vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),M1=St(D1),L1=be({},Wl,{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}),$1=St(L1),F1=[9,13,27,32],xh=Pr&&"CompositionEvent"in window,Ks=null;Pr&&"documentMode"in document&&(Ks=document.documentMode);var U1=Pr&&"TextEvent"in window&&!Ks,yy=Pr&&(!xh||Ks&&8<Ks&&11>=Ks),rp=" ",np=!1;function vy(e,t){switch(e){case"keyup":return F1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ri=!1;function B1(e,t){switch(e){case"compositionend":return wy(t);case"keypress":return t.which!==32?null:(np=!0,rp);case"textInput":return e=t.data,e===rp&&np?null:e;default:return null}}function z1(e,t){if(Ri)return e==="compositionend"||!xh&&vy(e,t)?(e=gy(),Ua=vh=un=null,Ri=!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 yy&&t.locale!=="ko"?null:t.data;default:return null}}var H1={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 ip(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H1[e.type]:t==="textarea"}function by(e,t,r,n){Yg(n),t=cl(t,"onChange"),0<t.length&&(r=new wh("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Js=null,ho=null;function V1(e){Ry(e,0)}function Gl(e){var t=Oi(e);if(Vg(t))return e}function W1(e,t){if(e==="change")return t}var xy=!1;if(Pr){var Hc;if(Pr){var Vc="oninput"in document;if(!Vc){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),Vc=typeof sp.oninput=="function"}Hc=Vc}else Hc=!1;xy=Hc&&(!document.documentMode||9<document.documentMode)}function op(){Js&&(Js.detachEvent("onpropertychange",ky),ho=Js=null)}function ky(e){if(e.propertyName==="value"&&Gl(ho)){var t=[];by(t,ho,e,fh(e)),ty(V1,t)}}function G1(e,t,r){e==="focusin"?(op(),Js=t,ho=r,Js.attachEvent("onpropertychange",ky)):e==="focusout"&&op()}function q1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gl(ho)}function K1(e,t){if(e==="click")return Gl(t)}function J1(e,t){if(e==="input"||e==="change")return Gl(t)}function Q1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:Q1;function fo(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!ju.call(t,i)||!Xt(e[i],t[i]))return!1}return!0}function ap(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lp(e,t){var r=ap(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ap(r)}}function Sy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ey(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=rl(e.document)}return t}function kh(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 Y1(e){var t=Ey(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Sy(r.ownerDocument.documentElement,r)){if(n!==null&&kh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=lp(r,s);var o=lp(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var X1=Pr&&"documentMode"in document&&11>=document.documentMode,Ai=null,qu=null,Qs=null,Ku=!1;function cp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ku||Ai==null||Ai!==rl(n)||(n=Ai,"selectionStart"in n&&kh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Qs&&fo(Qs,n)||(Qs=n,n=cl(qu,"onSelect"),0<n.length&&(t=new wh("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ai)))}function da(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ii={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionend:da("Transition","TransitionEnd")},Wc={},_y={};Pr&&(_y=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function ql(e){if(Wc[e])return Wc[e];if(!Ii[e])return e;var t=Ii[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in _y)return Wc[e]=t[r];return e}var Cy=ql("animationend"),Ty=ql("animationiteration"),jy=ql("animationstart"),Ny=ql("transitionend"),Py=new Map,up="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 jn(e,t){Py.set(e,t),ri(t,[e])}for(var Gc=0;Gc<up.length;Gc++){var qc=up[Gc],Z1=qc.toLowerCase(),ek=qc[0].toUpperCase()+qc.slice(1);jn(Z1,"on"+ek)}jn(Cy,"onAnimationEnd");jn(Ty,"onAnimationIteration");jn(jy,"onAnimationStart");jn("dblclick","onDoubleClick");jn("focusin","onFocus");jn("focusout","onBlur");jn(Ny,"onTransitionEnd");as("onMouseEnter",["mouseout","mouseover"]);as("onMouseLeave",["mouseout","mouseover"]);as("onPointerEnter",["pointerout","pointerover"]);as("onPointerLeave",["pointerout","pointerover"]);ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ri("onBeforeInput",["compositionend","keypress","textInput","paste"]);ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tk=new Set("cancel close invalid load scroll toggle".split(" ").concat(zs));function dp(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Zx(n,t,void 0,e),e.currentTarget=null}function Ry(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==s&&i.isPropagationStopped())break e;dp(i,a,u),s=c}else for(o=0;o<n.length;o++){if(a=n[o],c=a.instance,u=a.currentTarget,a=a.listener,c!==s&&i.isPropagationStopped())break e;dp(i,a,u),s=c}}}if(il)throw e=Hu,il=!1,Hu=null,e}function he(e,t){var r=t[Zu];r===void 0&&(r=t[Zu]=new Set);var n=e+"__bubble";r.has(n)||(Ay(t,e,2,!1),r.add(n))}function Kc(e,t,r){var n=0;t&&(n|=4),Ay(r,e,n,t)}var ha="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[ha]){e[ha]=!0,Fg.forEach(function(r){r!=="selectionchange"&&(tk.has(r)||Kc(r,!1,e),Kc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ha]||(t[ha]=!0,Kc("selectionchange",!1,t))}}function Ay(e,t,r,n){switch(my(t)){case 1:var i=m1;break;case 4:i=g1;break;default:i=yh}r=i.bind(null,t,r,e),i=void 0,!zu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}
vendor: 5,721 bytes, lines 37-38
37function Jc(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;a!==null;){if(o=$n(a),o===null)return;if(c=o.tag,c===5||c===6){n=s=o;continue e}a=a.parentNode}}n=n.return}ty(function(){var u=s,d=fh(r),h=[];e:{var p=Py.get(e);if(p!==void 0){var f=wh,g=e;switch(e){case"keypress":if(Ba(r)===0)break e;case"keydown":case"keyup":f=R1;break;case"focusin":g="focus",f=zc;break;case"focusout":g="blur",f=zc;break;case"beforeblur":case"afterblur":f=zc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=w1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=O1;break;case Cy:case Ty:case jy:f=k1;break;case Ny:f=M1;break;case"scroll":f=y1;break;case"wheel":f=$1;break;case"copy":case"cut":case"paste":f=E1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=tp}var m=(t&4)!==0,x=!m&&e==="scroll",y=m?p!==null?p+"Capture":null:p;m=[];for(var v=u,b;v!==null;){b=v;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,y!==null&&(k=ao(v,y),k!=null&&m.push(mo(v,k,b)))),x)break;v=v.return}0<m.length&&(p=new f(p,g,null,r,d),h.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==Uu&&(g=r.relatedTarget||r.fromElement)&&($n(g)||g[Rr]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(g=r.relatedTarget||r.toElement,f=u,g=g?$n(g):null,g!==null&&(x=ni(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=u),f!==g)){if(m=Zf,k="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=tp,k="onPointerLeave",y="onPointerEnter",v="pointer"),x=f==null?p:Oi(f),b=g==null?p:Oi(g),p=new m(k,v+"leave",f,r,d),p.target=x,p.relatedTarget=b,k=null,$n(d)===u&&(m=new m(y,v+"enter",g,r,d),m.target=b,m.relatedTarget=x,k=m),x=k,f&&g)t:{for(m=f,y=g,v=0,b=m;b;b=gi(b))v++;for(b=0,k=y;k;k=gi(k))b++;for(;0<v-b;)m=gi(m),v--;for(;0<b-v;)y=gi(y),b--;for(;v--;){if(m===y||y!==null&&m===y.alternate)break t;m=gi(m),y=gi(y)}m=null}else m=null;f!==null&&hp(h,p,f,m,!1),g!==null&&x!==null&&hp(h,x,g,m,!0)}}e:{if(p=u?Oi(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var S=W1;else if(ip(p))if(xy)S=J1;else{S=q1;var E=G1}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=K1);if(S&&(S=S(e,u))){by(h,S,r,d);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Du(p,"number",p.value)}switch(E=u?Oi(u):window,e){case"focusin":(ip(E)||E.contentEditable==="true")&&(Ai=E,qu=u,Qs=null);break;case"focusout":Qs=qu=Ai=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,cp(h,r,d);break;case"selectionchange":if(X1)break;case"keydown":case"keyup":cp(h,r,d)}var _;if(xh)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 Ri?vy(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(yy&&r.locale!=="ko"&&(Ri||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ri&&(_=gy()):(un=d,vh="value"in un?un.value:un.textContent,Ri=!0)),E=cl(u,T),0<E.length&&(T=new ep(T,e,null,r,d),h.push({event:T,listeners:E}),_?T.data=_:(_=wy(r),_!==null&&(T.data=_)))),(_=U1?B1(e,r):z1(e,r))&&(u=cl(u,"onBeforeInput"),0<u.length&&(d=new ep("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=_))}Ry(h,t)})}function mo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function cl(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ao(e,r),s!=null&&n.unshift(mo(e,s,i)),s=ao(e,t),s!=null&&n.push(mo(e,s,i))),e=e.return}return n}function gi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hp(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,c=a.alternate,u=a.stateNode;if(c!==null&&c===n)break;a.tag===5&&u!==null&&(a=u,i?(c=ao(r,s),c!=null&&o.unshift(mo(r,c,a))):i||(c=ao(r,s),c!=null&&o.push(mo(r,c,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var rk=/\r\n?/g,nk=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(rk,` 38`).replace(nk,"")}function fa(e,t,r){if(t=fp(t),fp(e)!==t&&r)throw Error(R(425))}function ul(){}var Ju=null,Qu=null;function Yu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout=="function"?setTimeout:void 0,ik=typeof clearTimeout=="function"?clearTimeout:void 0,pp=typeof Promise=="function"?Promise:void 0,sk=typeof queueMicrotask=="function"?queueMicrotask:typeof pp<"u"?function(e){return pp.resolve(null).then(e).catch(ok)}:Xu;function ok(e){setTimeout(function(){throw e})}function Qc(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),uo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,658 bytes, line 38
38while(r);uo(t)}function gn(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 mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ws=Math.random().toString(36).slice(2),ur="__reactFiber$"+ws,go="__reactProps$"+ws,Rr="__reactContainer$"+ws,Zu="__reactEvents$"+ws,ak="__reactListeners$"+ws,lk="__reactHandles$"+ws;function $n(e){var t=e[ur];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Rr]||r[ur]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=mp(e);e!==null;){if(r=e[ur])return r;e=mp(e)}return t}e=r,r=e.parentNode}return null}function Ho(e){return e=e[ur]||e[Rr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Oi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Kl(e){return e[go]||null}var ed=[],Di=-1;function Nn(e){return{current:e}}function fe(e){0>Di||(e.current=ed[Di],ed[Di]=null,Di--)}function ue(e,t){Di++,ed[Di]=e.current,e.current=t}var Sn={},Qe=Nn(Sn),ut=Nn(!1),Qn=Sn;function ls(e,t){var r=e.type.contextTypes;if(!r)return Sn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function dl(){fe(ut),fe(Qe)}function gp(e,t,r){if(Qe.current!==Sn)throw Error(R(168));ue(Qe,t),ue(ut,r)}function Iy(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(R(108,Gx(e)||"Unknown",i));return be({},r,n)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sn,Qn=Qe.current,ue(Qe,e),ue(ut,ut.current),!0}function yp(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=Iy(e,t,Qn),n.__reactInternalMemoizedMergedChildContext=e,fe(ut),fe(Qe),ue(Qe,e)):fe(ut),ue(ut,r)}var _r=null,Jl=!1,Yc=!1;function Oy(e){_r===null?_r=[e]:_r.push(e)}function ck(e){Jl=!0,Oy(e)}function Pn(){if(!Yc&&_r!==null){Yc=!0;var e=0,t=ae;try{var r=_r;for(ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}_r=null,Jl=!1}catch(i){throw _r!==null&&(_r=_r.slice(e+1)),sy(ph,Pn),i}finally{ae=t,Yc=!1}}return null}var Mi=[],Li=0,fl=null,pl=0,Tt=[],jt=0,Yn=null,Tr=1,jr="";function Dn(e,t){Mi[Li++]=pl,Mi[Li++]=fl,fl=e,pl=t}function Dy(e,t,r){Tt[jt++]=Tr,Tt[jt++]=jr,Tt[jt++]=Yn,Yn=e;var n=Tr;e=jr;var i=32-Qt(n)-1;n&=~(1<<i),r+=1;var s=32-Qt(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Tr=1<<32-Qt(t)+i|r<<i|n,jr=s+e}else Tr=1<<s|r<<i|n,jr=e}function Sh(e){e.return!==null&&(Dn(e,1),Dy(e,1,0))}function Eh(e){for(;e===fl;)fl=Mi[--Li],Mi[Li]=null,pl=Mi[--Li],Mi[Li]=null;for(;e===Yn;)Yn=Tt[--jt],Tt[jt]=null,jr=Tt[--jt],Tt[jt]=null,Tr=Tt[--jt],Tt[jt]=null}var yt=null,gt=null,ge=!1,Kt=null;function My(e,t){var r=Nt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function vp(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,yt=e,gt=gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Yn!==null?{id:Tr,overflow:jr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Nt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,yt=e,gt=null,!0):!1;default:return!1}}function td(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rd(e){if(ge){var t=gt;if(t){var r=t;if(!vp(e,t)){if(td(e))throw Error(R(418));t=gn(r.nextSibling);var n=yt;t&&vp(e,t)?My(n,r):(e.flags=e.flags&-4097|2,ge=!1,yt=e)}}else{if(td(e))throw Error(R(418));e.flags=e.flags&-4097|2,ge=!1,yt=e}}}function wp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function pa(e){if(e!==yt)return!1;if(!ge)return wp(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yu(e.type,e.memoizedProps)),t&&(t=gt)){if(td(e))throw Ly(),Error(R(418));for(;t;)My(e,t),t=gn(t.nextSibling)}if(wp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){gt=gn(e.nextSibling);break e}t--}
vendor: 12,387 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=yt?gn(e.stateNode.nextSibling):null;return!0}function Ly(){for(var e=gt;e;)e=gn(e.nextSibling)}function cs(){gt=yt=null,ge=!1}function _h(e){Kt===null?Kt=[e]:Kt.push(e)}var uk=Lr.ReactCurrentBatchConfig;function As(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var n=r.stateNode}if(!n)throw Error(R(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function ma(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bp(e){var t=e._init;return t(e._payload)}function $y(e){function t(y,v){if(e){var b=y.deletions;b===null?(y.deletions=[v],y.flags|=16):b.push(v)}}function r(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function n(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function i(y,v){return y=bn(y,v),y.index=0,y.sibling=null,y}function s(y,v,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<v?(y.flags|=2,v):b):(y.flags|=2,v)):(y.flags|=1048576,v)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,v,b,k){return v===null||v.tag!==6?(v=iu(b,y.mode,k),v.return=y,v):(v=i(v,b),v.return=y,v)}function c(y,v,b,k){var S=b.type;return S===Pi?d(y,v,b.props.children,k,b.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Xr&&bp(S)===v.type)?(k=i(v,b.props),k.ref=As(y,v,b),k.return=y,k):(k=Ka(b.type,b.key,b.props,null,y.mode,k),k.ref=As(y,v,b),k.return=y,k)}function u(y,v,b,k){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=su(b,y.mode,k),v.return=y,v):(v=i(v,b.children||[]),v.return=y,v)}function d(y,v,b,k,S){return v===null||v.tag!==7?(v=Jn(b,y.mode,k,S),v.return=y,v):(v=i(v,b),v.return=y,v)}function h(y,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=iu(""+v,y.mode,b),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ia:return b=Ka(v.type,v.key,v.props,null,y.mode,b),b.ref=As(y,null,v),b.return=y,b;case Ni:return v=su(v,y.mode,b),v.return=y,v;case Xr:var k=v._init;return h(y,k(v._payload),b)}if(Us(v)||Ts(v))return v=Jn(v,y.mode,b,null),v.return=y,v;ma(y,v)}return null}function p(y,v,b,k){var S=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return S!==null?null:a(y,v,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ia:return b.key===S?c(y,v,b,k):null;case Ni:return b.key===S?u(y,v,b,k):null;case Xr:return S=b._init,p(y,v,S(b._payload),k)}if(Us(b)||Ts(b))return S!==null?null:d(y,v,b,k,null);ma(y,b)}return null}function f(y,v,b,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(b)||null,a(v,y,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ia:return y=y.get(k.key===null?b:k.key)||null,c(v,y,k,S);case Ni:return y=y.get(k.key===null?b:k.key)||null,u(v,y,k,S);case Xr:var E=k._init;return f(y,v,b,E(k._payload),S)}if(Us(k)||Ts(k))return y=y.get(b)||null,d(v,y,k,S,null);ma(v,k)}return null}function g(y,v,b,k){for(var S=null,E=null,_=v,T=v=0,P=null;_!==null&&T<b.length;T++){_.index>T?(P=_,_=null):P=_.sibling;var A=p(y,_,b[T],k);if(A===null){_===null&&(_=P);break}e&&_&&A.alternate===null&&t(y,_),v=s(A,v,T),E===null?S=A:E.sibling=A,E=A,_=P}if(T===b.length)return r(y,_),ge&&Dn(y,T),S;if(_===null){for(;T<b.length;T++)_=h(y,b[T],k),_!==null&&(v=s(_,v,T),E===null?S=_:E.sibling=_,E=_);return ge&&Dn(y,T),S}for(_=n(y,_);T<b.length;T++)P=f(_,y,T,b[T],k),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?T:P.key),v=s(P,v,T),E===null?S=P:E.sibling=P,E=P);return e&&_.forEach(function(H){return t(y,H)}),ge&&Dn(y,T),S}function m(y,v,b,k){var S=Ts(b);if(typeof S!="function")throw Error(R(150));if(b=S.call(b),b==null)throw Error(R(151));for(var E=S=null,_=v,T=v=0,P=null,A=b.next();_!==null&&!A.done;T++,A=b.next()){_.index>T?(P=_,_=null):P=_.sibling;var H=p(y,_,A.value,k);if(H===null){_===null&&(_=P);break}e&&_&&H.alternate===null&&t(y,_),v=s(H,v,T),E===null?S=H:E.sibling=H,E=H,_=P}if(A.done)return r(y,_),ge&&Dn(y,T),S;if(_===null){for(;!A.done;T++,A=b.next())A=h(y,A.value,k),A!==null&&(v=s(A,v,T),E===null?S=A:E.sibling=A,E=A);return ge&&Dn(y,T),S}for(_=n(y,_);!A.done;T++,A=b.next())A=f(_,y,T,A.value,k),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?T:A.key),v=s(A,v,T),E===null?S=A:E.sibling=A,E=A);return e&&_.forEach(function(L){return t(y,L)}),ge&&Dn(y,T),S}function x(y,v,b,k){if(typeof b=="object"&&b!==null&&b.type===Pi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ia:e:{for(var S=b.key,E=v;E!==null;){if(E.key===S){if(S=b.type,S===Pi){if(E.tag===7){r(y,E.sibling),v=i(E,b.props.children),v.return=y,y=v;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Xr&&bp(S)===E.type){r(y,E.sibling),v=i(E,b.props),v.ref=As(y,E,b),v.return=y,y=v;break e}r(y,E);break}else t(y,E);E=E.sibling}b.type===Pi?(v=Jn(b.props.children,y.mode,k,b.key),v.return=y,y=v):(k=Ka(b.type,b.key,b.props,null,y.mode,k),k.ref=As(y,v,b),k.return=y,y=k)}return o(y);case Ni:e:{for(E=b.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){r(y,v.sibling),v=i(v,b.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=su(b,y.mode,k),v.return=y,y=v}return o(y);case Xr:return E=b._init,x(y,v,E(b._payload),k)}if(Us(b))return g(y,v,b,k);if(Ts(b))return m(y,v,b,k);ma(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(r(y,v.sibling),v=i(v,b),v.return=y,y=v):(r(y,v),v=iu(b,y.mode,k),v.return=y,y=v),o(y)):r(y,v)}return x}var us=$y(!0),Fy=$y(!1),ml=Nn(null),gl=null,$i=null,Ch=null;function Th(){Ch=$i=gl=null}function jh(e){var t=ml.current;fe(ml),e._currentValue=t}function nd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gi(e,t){gl=e,Ch=$i=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(Ch!==e)if(e={context:e,memoizedValue:t,next:null},$i===null){if(gl===null)throw Error(R(308));$i=e,gl.dependencies={lanes:0,firstContext:e}}else $i=$i.next=e;return t}var Fn=null;function Nh(e){Fn===null?Fn=[e]:Fn.push(e)}function Uy(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Nh(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ar(e,n)}function Ar(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zr=!1;function Ph(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function By(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 Nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ne&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ar(e,r)}return i=n.interleaved,i===null?(t.next=t,Nh(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ar(e,r)}function za(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mh(e,r)}}function xp(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function yl(e,t,r,n){var i=e.updateQueue;Zr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,u=c.next;c.next=null,o===null?s=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=i.baseState;o=0,d=u=c=null,a=s;do{var p=a.lane,f=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,m=a;switch(p=t,f=r,m.tag){case 1:if(g=m.payload,typeof g=="function"){h=g.call(f,h,p);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,p=typeof g=="function"?g.call(f,h,p):g,p==null)break e;h=be({},h,p);break e;case 2:Zr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Zn|=o,e.lanes=o,e.memoizedState=h}}function kp(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(R(191,i));i.call(n)}}}var Vo={},fr=Nn(Vo),yo=Nn(Vo),vo=Nn(Vo);function Un(e){if(e===Vo)throw Error(R(174));return e}function Rh(e,t){switch(ue(vo,t),ue(yo,e),ue(fr,Vo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lu(t,e)}fe(fr),ue(fr,t)}function ds(){fe(fr),fe(yo),fe(vo)}function zy(e){Un(vo.current);var t=Un(fr.current),r=Lu(t,e.type);t!==r&&(ue(yo,e),ue(fr,r))}function Ah(e){yo.current===e&&(fe(fr),fe(yo))}var ve=Nn(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xc=[];function Ih(){for(var e=0;e<Xc.length;e++)Xc[e]._workInProgressVersionPrimary=null;Xc.length=0}var Ha=Lr.ReactCurrentDispatcher,Zc=Lr.ReactCurrentBatchConfig,Xn=0,we=null,Re=null,Me=null,wl=!1,Ys=!1,wo=0,dk=0;function We(){throw Error(R(321))}function Oh(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Xt(e[r],t[r]))return!1;return!0}function Dh(e,t,r,n,i,s){if(Xn=s,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ha.current=e===null||e.memoizedState===null?mk:gk,e=r(n,i),Ys){s=0;do{if(Ys=!1,wo=0,25<=s)throw Error(R(301));s+=1,Me=Re=null,t.updateQueue=null,Ha.current=yk,e=r(n,i)}while(Ys)}if(Ha.current=bl,t=Re!==null&&Re.next!==null,Xn=0,Me=Re=we=null,wl=!1,t)throw Error(R(300));return e}function Mh(){var e=wo!==0;return wo=0,e}function ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?we.memoizedState=Me=e:Me=Me.next=e,Me}function It(){if(Re===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Me===null?we.memoizedState:Me.next;if(t!==null)Me=t,Re=e;else{if(e===null)throw Error(R(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Me===null?we.memoizedState=Me=e:Me=Me.next=e}return Me}function bo(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=It(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;
vendor: 5,432 bytes, line 38
38var n=Re,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,c=null,u=s;do{var d=u.lane;if((Xn&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=h,o=n):c=c.next=h,we.lanes|=d,Zn|=d}u=u.next}while(u!==null&&u!==s);c===null?o=n:c.next=a,Xt(n,t.memoizedState)||(ct=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,we.lanes|=s,Zn|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function tu(e){var t=It(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Xt(s,t.memoizedState)||(ct=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Hy(){}function Vy(e,t){var r=we,n=It(),i=t(),s=!Xt(n.memoizedState,i);if(s&&(n.memoizedState=i,ct=!0),n=n.queue,Lh(qy.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Me!==null&&Me.memoizedState.tag&1){if(r.flags|=2048,xo(9,Gy.bind(null,r,n,i,t),void 0,null),Le===null)throw Error(R(349));Xn&30||Wy(r,t,i)}return i}function Wy(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Gy(e,t,r,n){t.value=r,t.getSnapshot=n,Ky(t)&&Jy(e)}function qy(e,t,r){return r(function(){Ky(t)&&Jy(e)})}function Ky(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Xt(e,r)}catch{return!0}}function Jy(e){var t=Ar(e,1);t!==null&&Yt(t,e,1,-1)}function Sp(e){var t=ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:e},t.queue=e,e=e.dispatch=pk.bind(null,we,e),[t.memoizedState,e]}function xo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Qy(){return It().memoizedState}function Va(e,t,r,n){var i=ir();we.flags|=e,i.memoizedState=xo(1|t,r,void 0,n===void 0?null:n)}function Ql(e,t,r,n){var i=It();n=n===void 0?null:n;var s=void 0;if(Re!==null){var o=Re.memoizedState;if(s=o.destroy,n!==null&&Oh(n,o.deps)){i.memoizedState=xo(t,r,s,n);return}}we.flags|=e,i.memoizedState=xo(1|t,r,s,n)}function Ep(e,t){return Va(8390656,8,e,t)}function Lh(e,t){return Ql(2048,8,e,t)}function Yy(e,t){return Ql(4,2,e,t)}function Xy(e,t){return Ql(4,4,e,t)}function Zy(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 ev(e,t,r){return r=r!=null?r.concat([e]):null,Ql(4,4,Zy.bind(null,t,e),r)}function $h(){}function tv(e,t){var r=It();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Oh(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function rv(e,t){var r=It();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Oh(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function nv(e,t,r){return Xn&21?(Xt(r,t)||(r=ly(),we.lanes|=r,Zn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ct=!0),e.memoizedState=r)}function hk(e,t){var r=ae;ae=r!==0&&4>r?r:4,e(!0);var n=Zc.transition;Zc.transition={};try{e(!1),t()}finally{ae=r,Zc.transition=n}}function iv(){return It().memoizedState}function fk(e,t,r){var n=wn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sv(e))ov(t,r);else if(r=Uy(e,t,r,n),r!==null){var i=rt();Yt(r,e,n,i),av(r,t,n)}}function pk(e,t,r){var n=wn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sv(e))ov(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Xt(a,o)){var c=t.interleaved;c===null?(i.next=i,Nh(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}r=Uy(e,t,i,n),r!==null&&(i=rt(),Yt(r,e,n,i),av(r,t,n))}}function sv(e){var t=e.alternate;return e===we||t!==null&&t===we}function ov(e,t){Ys=wl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function av(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mh(e,r)}}var bl={readContext:At,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},mk={readContext:At,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Ep,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Va(4194308,4,Zy.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var r=ir();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e}
vendor: 7,687 bytes, lines 38-40
38,useReducer:function(e,t,r){var n=ir();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fk.bind(null,we,e),[n.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:Sp,useDebugValue:$h,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=Sp(!1),t=e[0];return e=hk.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=we,i=ir();if(ge){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Le===null)throw Error(R(349));Xn&30||Wy(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Ep(qy.bind(null,n,s,e),[e]),n.flags|=2048,xo(9,Gy.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=ir(),t=Le.identifierPrefix;if(ge){var r=jr,n=Tr;r=(n&~(1<<32-Qt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=wo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=dk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gk={readContext:At,useCallback:tv,useContext:At,useEffect:Lh,useImperativeHandle:ev,useInsertionEffect:Yy,useLayoutEffect:Xy,useMemo:rv,useReducer:eu,useRef:Qy,useState:function(){return eu(bo)},useDebugValue:$h,useDeferredValue:function(e){var t=It();return nv(t,Re.memoizedState,e)},useTransition:function(){var e=eu(bo)[0],t=It().memoizedState;return[e,t]},useMutableSource:Hy,useSyncExternalStore:Vy,useId:iv,unstable_isNewReconciler:!1},yk={readContext:At,useCallback:tv,useContext:At,useEffect:Lh,useImperativeHandle:ev,useInsertionEffect:Yy,useLayoutEffect:Xy,useMemo:rv,useReducer:tu,useRef:Qy,useState:function(){return tu(bo)},useDebugValue:$h,useDeferredValue:function(e){var t=It();return Re===null?t.memoizedState=e:nv(t,Re.memoizedState,e)},useTransition:function(){var e=tu(bo)[0],t=It().memoizedState;return[e,t]},useMutableSource:Hy,useSyncExternalStore:Vy,useId:iv,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function id(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:be({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Yl={isMounted:function(e){return(e=e._reactInternals)?ni(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=rt(),i=wn(e),s=Nr(n,i);s.payload=t,r!=null&&(s.callback=r),t=yn(e,s,i),t!==null&&(Yt(t,e,i,n),za(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=rt(),i=wn(e),s=Nr(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=yn(e,s,i),t!==null&&(Yt(t,e,i,n),za(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=rt(),n=wn(e),i=Nr(r,n);i.tag=2,t!=null&&(i.callback=t),t=yn(e,i,n),t!==null&&(Yt(t,e,n,r),za(t,e,n))}};function _p(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!fo(r,n)||!fo(i,s):!0}function lv(e,t,r){var n=!1,i=Sn,s=t.contextType;return typeof s=="object"&&s!==null?s=At(s):(i=dt(t)?Qn:Qe.current,n=t.contextTypes,s=(n=n!=null)?ls(e,i):Sn),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Cp(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Yl.enqueueReplaceState(t,t.state,null)}function sd(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Ph(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=At(s):(s=dt(t)?Qn:Qe.current,i.context=ls(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(id(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Yl.enqueueReplaceState(i,i.state,null),yl(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hs(e,t){try{var r="",n=t;do r+=Wx(n),n=n.return;while(n);var i=r}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ru(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function od(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var vk=typeof WeakMap=="function"?WeakMap:Map;function cv(e,t,r){r=Nr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){kl||(kl=!0,gd=n),od(e,t)},r}function uv(e,t,r){r=Nr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){od(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){od(e,t),typeof n!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Tp(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new vk;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ak.bind(null,e,t,r),t.then(e,e))}function jp(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 Np(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Nr(-1,1),t.tag=2,yn(r,t,1))),r.lanes|=1),e)}var wk=Lr.ReactCurrentOwner,ct=!1;function Ze(e,t,r,n){t.child=e===null?Fy(t,null,r,n):us(t,e.child,r,n)}function Pp(e,t,r,n,i){r=r.render;var s=t.ref;return Gi(t,i),n=Dh(e,t,r,n,s,i),r=Mh(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ir(e,t,i)):(ge&&r&&Sh(t),t.flags|=1,Ze(e,t,n,i),t.child)}function Rp(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Gh(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,dv(e,t,s,n,i)):(e=Ka(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:fo,r(o,n)&&e.ref===t.ref)return Ir(e,t,i)}return t.flags|=1,e=bn(s,n),e.ref=t.ref,e.return=t,t.child=e}function dv(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(fo(s,n)&&e.ref===t.ref)if(ct=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(ct=!0);else return t.lanes=e.lanes,Ir(e,t,i)}return ad(e,t,r,n,i)}function hv(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Ui,ft),ft|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Ui,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ue(Ui,ft),ft|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ue(Ui,ft),ft|=n;return Ze(e,t,i,r),t.child}function fv(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function ad(e,t,r,n,i){var s=dt(r)?Qn:Qe.current;return s=ls(t,s),Gi(t,i),r=Dh(e,t,r,n,s,i),n=Mh(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ir(e,t,i)):(ge&&n&&Sh(t),t.flags|=1,Ze(e,t,r,i),t.child)}function Ap(e,t,r,n,i){if(dt(r)){var s=!0;hl(t)}else s=!1;if(Gi(t,i),t.stateNode===null)Wa(e,t),lv(t,r,n),sd(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var c=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=At(u):(u=dt(r)?Qn:Qe.current,u=ls(t,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||c!==u)&&Cp(t,o,n,u),Zr=!1;var p=t.memoizedState;o.state=p,yl(t,n,o,i),c=t.memoizedState,a!==n||p!==c||ut.current||Zr?(typeof d=="function"&&(id(t,r,d,n),c=t.memoizedState),(a=Zr||_p(t,r,a,n,p,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,By(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:zt(t.type,a),o.props=u,h=t.pendingProps,p=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=At(c):(c=dt(r)?Qn:Qe.current,c=ls(t,c));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||p!==c)&&Cp(t,o,n,c),Zr=!1,p=t.memoizedState,o.state=p,yl(t,n,o,i);var g=t.memoizedState;a!==h||p!==g||ut.current||Zr?(typeof f=="function"&&(id(t,r,f,n),g=t.memoizedState),(u=Zr||_p(t,r,u,n,p,g,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),o.props=n,o.state=g,o.context=c,n=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return ld(e,t,r,n,s,i)}function ld(e,t,r,n,i,s){fv(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&yp(t,r,!1),Ir(e,t,s);n=t.stateNode,wk.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=us(t,e.child,null,s),t.child=us(t,null,a,s)):Ze(e,t,a,s),t.memoizedState=n.state,i&&yp(t,r,!0),t.child}function pv(e){var t=e.stateNode;t.pendingContext?gp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gp(e,t.context,!1),Rh(e,t.containerInfo)}function Ip(e,t,r,n,i){return cs(),_h(i),t.flags|=256,Ze(e,t,r,n),t.child}var cd={dehydrated:null,treeContext:null,retryLane:0};function ud(e){return{baseLanes:e,cachePool:null,transitions:null}}function mv(e,t,r){var n=t.pendingProps,i=ve.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(ve,i&1),e===null)return rd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ec(o,n,0,null),e=Jn(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ud(r),t.memoizedState=cd,e):Fh(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return bk(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=bn(i,c),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=bn(a,s):(s=Jn(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?ud(r):{base
vendor: 7,641 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=cd,n}return s=e.child,e=s.sibling,n=bn(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Fh(e,t){return t=ec({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ga(e,t,r,n){return n!==null&&_h(n),us(t,e.child,null,r),e=Fh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bk(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=ru(Error(R(422))),ga(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=ec({mode:"visible",children:n.children},i,0,null),s=Jn(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&us(t,e.child,null,o),t.child.memoizedState=ud(o),t.memoizedState=cd,s);if(!(t.mode&1))return ga(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(R(419)),n=ru(s,n,void 0),ga(e,t,o,n)}if(a=(o&e.childLanes)!==0,ct||a){if(n=Le,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ar(e,i),Yt(n,e,i,-1))}return Wh(),n=ru(Error(R(421))),ga(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ik.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,gt=gn(i.nextSibling),yt=t,ge=!0,Kt=null,e!==null&&(Tt[jt++]=Tr,Tt[jt++]=jr,Tt[jt++]=Yn,Tr=e.id,jr=e.overflow,Yn=t),t=Fh(t,n.children),t.flags|=4096,t)}function Op(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),nd(e.return,t,r)}function nu(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function gv(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Ze(e,t,n.children,r),n=ve.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,r,t);else if(e.tag===19)Op(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ue(ve,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&vl(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),nu(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vl(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}nu(t,!0,r,null,s);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ir(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=bn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=bn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xk(e,t,r){switch(t.tag){case 3:pv(t),cs();break;case 5:zy(t);break;case 1:dt(t.type)&&hl(t);break;case 4:Rh(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ue(ml,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ue(ve,ve.current&1),t.flags|=128,null):r&t.child.childLanes?mv(e,t,r):(ue(ve,ve.current&1),e=Ir(e,t,r),e!==null?e.sibling:null);ue(ve,ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return gv(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(ve,ve.current),n)break;return null;case 22:case 23:return t.lanes=0,hv(e,t,r)}return Ir(e,t,r)}var yv,dd,vv,wv;yv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};dd=function(){};vv=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Un(fr.current);var s=null;switch(r){case"input":i=Iu(e,i),n=Iu(e,n),s=[];break;case"select":i=be({},i,{value:void 0}),n=be({},n,{value:void 0}),s=[];break;case"textarea":i=Mu(e,i),n=Mu(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ul)}$u(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(so.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var c=n[u];if(a=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&a[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(s||(s=[]),s.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(so.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&he("scroll",e),s||a===c||(s=[])):(s=s||[]).push(u,c))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};wv=function(e,t,r,n){r!==n&&(t.flags|=4)};function Is(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function kk(e,t,r){var n=t.pendingProps;switch(Eh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return dt(t.type)&&dl(),Ge(t),null;case 3:return n=t.stateNode,ds(),fe(ut),fe(Qe),Ih(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(pa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(wd(Kt),Kt=null))),dd(e,t),Ge(t),null;case 5:Ah(t);var i=Un(vo.current);if(r=t.type,e!==null&&t.stateNode!=null)vv(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(R(166));return Ge(t),null}if(e=Un(fr.current),pa(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;
vendor: 32,267 bytes, line 40
40switch(n[ur]=t,n[go]=s,e=(t.mode&1)!==0,r){case"dialog":he("cancel",n),he("close",n);break;case"iframe":case"object":case"embed":he("load",n);break;case"video":case"audio":for(i=0;i<zs.length;i++)he(zs[i],n);break;case"source":he("error",n);break;case"img":case"image":case"link":he("error",n),he("load",n);break;case"details":he("toggle",n);break;case"input":Hf(n,s),he("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},he("invalid",n);break;case"textarea":Wf(n,s),he("invalid",n)}$u(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&fa(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&fa(n.textContent,a,e),i=["children",""+a]):so.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",n)}switch(r){case"input":sa(n),Vf(n,s,!0);break;case"textarea":sa(n),Gf(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ul)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ur]=t,e[go]=n,yv(e,t,!1,!1),t.stateNode=e;e:{switch(o=Fu(r,n),r){case"dialog":he("cancel",e),he("close",e),i=n;break;case"iframe":case"object":case"embed":he("load",e),i=n;break;case"video":case"audio":for(i=0;i<zs.length;i++)he(zs[i],e);i=n;break;case"source":he("error",e),i=n;break;case"img":case"image":case"link":he("error",e),he("load",e),i=n;break;case"details":he("toggle",e),i=n;break;case"input":Hf(e,n),i=Iu(e,n),he("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=be({},n,{value:void 0}),he("invalid",e);break;case"textarea":Wf(e,n),i=Mu(e,n),he("invalid",e);break;default:i=n}$u(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];s==="style"?Qg(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Kg(e,c)):s==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&oo(e,c):typeof c=="number"&&oo(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(so.hasOwnProperty(s)?c!=null&&s==="onScroll"&&he("scroll",e):c!=null&&ch(e,s,c,o))}switch(r){case"input":sa(e),Vf(e,n,!1);break;case"textarea":sa(e),Gf(e);break;case"option":n.value!=null&&e.setAttribute("value",""+kn(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?zi(e,!!n.multiple,s,!1):n.defaultValue!=null&&zi(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ul)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)wv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(R(166));if(r=Un(vo.current),Un(fr.current),pa(t)){if(n=t.stateNode,r=t.memoizedProps,n[ur]=t,(s=n.nodeValue!==r)&&(e=yt,e!==null))switch(e.tag){case 3:fa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fa(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ur]=t,t.stateNode=n}return Ge(t),null;case 13:if(fe(ve),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&>!==null&&t.mode&1&&!(t.flags&128))Ly(),cs(),t.flags|=98560,s=!1;else if(s=pa(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[ur]=t}else cs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),s=!1}else Kt!==null&&(wd(Kt),Kt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Ae===0&&(Ae=3):Wh())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return ds(),dd(e,t),e===null&&po(t.stateNode.containerInfo),Ge(t),null;case 10:return jh(t.type._context),Ge(t),null;case 17:return dt(t.type)&&dl(),Ge(t),null;case 19:if(fe(ve),s=t.memoizedState,s===null)return Ge(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)Is(s,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=vl(e),o!==null){for(t.flags|=128,Is(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ue(ve,ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Te()>fs&&(t.flags|=128,n=!0,Is(s,!1),t.lanes=4194304)}else{if(!n)if(e=vl(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Is(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ge)return Ge(t),null}else 2*Te()-s.renderingStartTime>fs&&r!==1073741824&&(t.flags|=128,n=!0,Is(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Te(),t.sibling=null,r=ve.current,ue(ve,n?r&1|2:r&1),t):(Ge(t),null);case 22:case 23:return Vh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ft&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Sk(e,t){switch(Eh(t),t.tag){case 1:return dt(t.type)&&dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ds(),fe(ut),fe(Qe),Ih(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ah(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return ds(),null;case 10:return jh(t.type._context),null;case 22:case 23:return Vh(),null;case 24:return null;default:return null}}var ya=!1,Ke=!1,Ek=typeof WeakSet=="function"?WeakSet:Set,$=null;function Fi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ce(e,t,n)}else r.current=null}function hd(e,t,r){try{r()}catch(n){Ce(e,t,n)}}var Dp=!1;function _k(e,t){if(Ju=al,e=Ey(),kh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||i!==0&&h.nodeType!==3||(a=o+i),h!==s||n!==0&&h.nodeType!==3||(c=o+n),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++u===i&&(a=o),p===s&&++d===n&&(c=o),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qu={focusedElem:e,selectionRange:r},al=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,x=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:zt(t.type,m),x);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(k){Ce(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return g=Dp,Dp=!1,g}function Xs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&hd(t,r,s)}i=i.next}while(i!==n)}}function Xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function fd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function bv(e){var t=e.alternate;t!==null&&(e.alternate=null,bv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[go],delete t[Zu],delete t[ak],delete t[lk])),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 xv(e){return e.tag===5||e.tag===3||e.tag===4}function Mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xv(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 pd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ul));else if(n!==4&&(e=e.child,e!==null))for(pd(e,t,r),e=e.sibling;e!==null;)pd(e,t,r),e=e.sibling}function md(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(md(e,t,r),e=e.sibling;e!==null;)md(e,t,r),e=e.sibling}var Be=null,qt=!1;function Wr(e,t,r){for(r=r.child;r!==null;)kv(e,t,r),r=r.sibling}function kv(e,t,r){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(Vl,r)}catch{}switch(r.tag){case 5:Ke||Fi(r,t);case 6:var n=Be,i=qt;Be=null,Wr(e,t,r),Be=n,qt=i,Be!==null&&(qt?(e=Be,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Be.removeChild(r.stateNode));break;case 18:Be!==null&&(qt?(e=Be,r=r.stateNode,e.nodeType===8?Qc(e.parentNode,r):e.nodeType===1&&Qc(e,r),uo(e)):Qc(Be,r.stateNode));break;case 4:n=Be,i=qt,Be=r.stateNode.containerInfo,qt=!0,Wr(e,t,r),Be=n,qt=i;break;case 0:case 11:case 14:case 15:if(!Ke&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&hd(r,t,o),i=i.next}while(i!==n)}Wr(e,t,r);break;case 1:if(!Ke&&(Fi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ce(r,t,a)}Wr(e,t,r);break;case 21:Wr(e,t,r);break;case 22:r.mode&1?(Ke=(n=Ke)||r.memoizedState!==null,Wr(e,t,r),Ke=n):Wr(e,t,r);break;default:Wr(e,t,r)}}function Lp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ek),t.forEach(function(n){var i=Ok.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ft(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Be=a.stateNode,qt=!1;break e;case 3:Be=a.stateNode.containerInfo,qt=!0;break e;case 4:Be=a.stateNode.containerInfo,qt=!0;break e}a=a.return}if(Be===null)throw Error(R(160));kv(s,o,i),Be=null,qt=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Ce(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sv(t,e),t=t.sibling}function Sv(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ft(t,e),rr(e),n&4){try{Xs(3,e,e.return),Xl(3,e)}catch(m){Ce(e,e.return,m)}try{Xs(5,e,e.return)}catch(m){Ce(e,e.return,m)}}break;case 1:Ft(t,e),rr(e),n&512&&r!==null&&Fi(r,r.return);break;case 5:if(Ft(t,e),rr(e),n&512&&r!==null&&Fi(r,r.return),e.flags&32){var i=e.stateNode;try{oo(i,"")}catch(m){Ce(e,e.return,m)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Wg(i,s),Fu(a,o);var u=Fu(a,s);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?Qg(i,h):d==="dangerouslySetInnerHTML"?Kg(i,h):d==="children"?oo(i,h):ch(i,d,h,u)}switch(a){case"input":Ou(i,s);break;case"textarea":Gg(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?zi(i,!!s.multiple,f,!1):p!==!!s.multiple&&(s.defaultValue!=null?zi(i,!!s.multiple,s.defaultValue,!0):zi(i,!!s.multiple,s.multiple?[]:"",!1))}i[go]=s}catch(m){Ce(e,e.return,m)}}break;case 6:if(Ft(t,e),rr(e),n&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(m){Ce(e,e.return,m)}}break;case 3:if(Ft(t,e),rr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{uo(t.containerInfo)}catch(m){Ce(e,e.return,m)}break;case 4:Ft(t,e),rr(e);break;case 13:Ft(t,e),rr(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(zh=Te())),n&4&&Lp(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ke=(u=Ke)||d,Ft(t,e),Ke=u):Ft(t,e),rr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(h=$=d;$!==null;){switch(p=$,f=p.child,p.tag){case 0:case 11:case 14:case 15:Xs(4,p,p.return);break;case 1:Fi(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ce(n,r,m)}}break;case 5:Fi(p,p.return);break;case 22:if(p.memoizedState!==null){Fp(h);continue}}f!==null?(f.return=p,$=f):Fp(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=Jg("display",o))}catch(m){Ce(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Ce(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ft(t,e),rr(e),n&4&&Lp(e);break;case 21:break;default:Ft(t,e),rr(e)}}function rr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(xv(r)){var n=r;break e}r=r.return}throw Error(R(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(oo(i,""),n.flags&=-33);var s=Mp(e);md(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=Mp(e);pd(e,a,o);break;default:throw Error(R(161))}}catch(c){Ce(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ck(e,t,r){$=e,Ev(e)}function Ev(e,t,r){for(var n=(e.mode&1)!==0;$!==null;){var i=$,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||ya;if(!o){var a=i.alternate,c=a!==null&&a.memoizedState!==null||Ke;a=ya;var u=Ke;if(ya=o,(Ke=c)&&!u)for($=i;$!==null;)o=$,c=o.child,o.tag===22&&o.memoizedState!==null?Up(i):c!==null?(c.return=o,$=c):Up(i);for(;s!==null;)$=s,Ev(s),s=s.sibling;$=i,ya=a,Ke=u}$p(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,$=s):$p(e)}}function $p(e){for(;$!==null;){var t=$;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||Xl(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ke)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:zt(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&kp(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}kp(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&uo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ke||t.flags&512&&fd(t)}catch(p){Ce(t,t.return,p)}}if(t===e){$=null;break}if(r=t.sibling,r!==null){r.return=t.return,$=r;break}$=t.return}}function Fp(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var r=t.sibling;if(r!==null){r.return=t.return,$=r;break}$=t.return}}function Up(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Xl(4,t)}catch(c){Ce(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(c){Ce(t,i,c)}}var s=t.return;try{fd(t)}catch(c){Ce(t,s,c)}break;case 5:var o=t.return;try{fd(t)}catch(c){Ce(t,o,c)}}}catch(c){Ce(t,t.return,c)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var Tk=Math.ceil,xl=Lr.ReactCurrentDispatcher,Uh=Lr.ReactCurrentOwner,Pt=Lr.ReactCurrentBatchConfig,ne=0,Le=null,Ne=null,ze=0,ft=0,Ui=Nn(0),Ae=0,ko=null,Zn=0,Zl=0,Bh=0,Zs=null,lt=null,zh=0,fs=1/0,kr=null,kl=!1,gd=null,vn=null,va=!1,dn=null,Sl=0,eo=0,yd=null,Ga=-1,qa=0;function rt(){return ne&6?Te():Ga!==-1?Ga:Ga=Te()}function wn(e){return e.mode&1?ne&2&&ze!==0?ze&-ze:uk.transition!==null?(qa===0&&(qa=ly()),qa):(e=ae,e!==0||(e=window.event,e=e===void 0?16:my(e.type)),e):1}function Yt(e,t,r,n){if(50<eo)throw eo=0,yd=null,Error(R(185));Bo(e,r,n),(!(ne&2)||e!==Le)&&(e===Le&&(!(ne&2)&&(Zl|=r),Ae===4&&tn(e,ze)),ht(e,n),r===1&&ne===0&&!(t.mode&1)&&(fs=Te()+500,Jl&&Pn()))}function ht(e,t){var r=e.callbackNode;u1(e,t);var n=ol(e,e===Le?ze:0);if(n===0)r!==null&&Jf(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Jf(r),t===1)e.tag===0?ck(Bp.bind(null,e)):Oy(Bp.bind(null,e)),sk(function(){!(ne&6)&&Pn()}),r=null;else{switch(cy(n)){case 1:r=ph;break;case 4:r=oy;break;case 16:r=sl;break;case 536870912:r=ay;break;default:r=sl}r=Av(r,_v.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function _v(e,t){if(Ga=-1,qa=0,ne&6)throw Error(R(327));var r=e.callbackNode;if(qi()&&e.callbackNode!==r)return null;var n=ol(e,e===Le?ze:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=El(e,n);else{t=n;var i=ne;ne|=2;var s=Tv();(Le!==e||ze!==t)&&(kr=null,fs=Te()+500,Kn(e,t));do try{Pk();break}catch(a){Cv(e,a)}while(!0);Th(),xl.current=s,ne=i,Ne!==null?t=0:(Le=null,ze=0,t=Ae)}if(t!==0){if(t===2&&(i=Vu(e),i!==0&&(n=i,t=vd(e,i))),t===1)throw r=ko,Kn(e,0),tn(e,n),ht(e,Te()),r;if(t===6)tn(e,n);else{if(i=e.current.alternate,!(n&30)&&!jk(i)&&(t=El(e,n),t===2&&(s=Vu(e),s!==0&&(n=s,t=vd(e,s))),t===1))throw r=ko,Kn(e,0),tn(e,n),ht(e,Te()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(R(345));case 2:Mn(e,lt,kr);break;case 3:if(tn(e,n),(n&130023424)===n&&(t=zh+500-Te(),10<t)){if(ol(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){rt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xu(Mn.bind(null,e,lt,kr),t);break}Mn(e,lt,kr);break;case 4:if(tn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Qt(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=Te()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Tk(n/1960))-n,10<n){e.timeoutHandle=Xu(Mn.bind(null,e,lt,kr),n);break}Mn(e,lt,kr);break;case 5:Mn(e,lt,kr);break;default:throw Error(R(329))}}}return ht(e,Te()),e.callbackNode===r?_v.bind(null,e):null}function vd(e,t){var r=Zs;return e.current.memoizedState.isDehydrated&&(Kn(e,t).flags|=256),e=El(e,t),e!==2&&(t=lt,lt=r,t!==null&&wd(t)),e}function wd(e){lt===null?lt=e:lt.push.apply(lt,e)}function jk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Xt(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tn(e,t){for(t&=~Bh,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Qt(t),n=1<<r;e[r]=-1,t&=~n}}function Bp(e){if(ne&6)throw Error(R(327));qi();var t=ol(e,0);if(!(t&1))return ht(e,Te()),null;var r=El(e,t);if(e.tag!==0&&r===2){var n=Vu(e);n!==0&&(t=n,r=vd(e,n))}if(r===1)throw r=ko,Kn(e,0),tn(e,t),ht(e,Te()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mn(e,lt,kr),ht(e,Te()),null}function Hh(e,t){var r=ne;ne|=1;try{return e(t)}finally{ne=r,ne===0&&(fs=Te()+500,Jl&&Pn())}}function ei(e){dn!==null&&dn.tag===0&&!(ne&6)&&qi();var t=ne;ne|=1;var r=Pt.transition,n=ae;try{if(Pt.transition=null,ae=1,e)return e()}finally{ae=n,Pt.transition=r,ne=t,!(ne&6)&&Pn()}}function Vh(){ft=Ui.current,fe(Ui)}function Kn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ik(r)),Ne!==null)for(r=Ne.return;r!==null;){var n=r;switch(Eh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&dl();break;case 3:ds(),fe(ut),fe(Qe),Ih();break;case 5:Ah(n);break;case 4:ds();break;case 13:fe(ve);break;case 19:fe(ve);break;case 10:jh(n.type._context);break;case 22:case 23:Vh()}r=r.return}if(Le=e,Ne=e=bn(e.current,null),ze=ft=t,Ae=0,ko=null,Bh=Zl=Zn=0,lt=Zs=null,Fn!==null){for(t=0;t<Fn.length;t++)if(r=Fn[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Fn=null}return e}function Cv(e,t){do{var r=Ne;try{if(Th(),Ha.current=bl,wl){for(var n=we.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}wl=!1}if(Xn=0,Me=Re=we=null,Ys=!1,wo=0,Uh.current=null,r===null||r.return===null){Ae=1,ko=t,Ne=null;break}e:{var s=e,o=r.return,a=r,c=t;if(t=ze,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=jp(o);if(f!==null){f.flags&=-257,Np(f,o,a,s,t),f.mode&1&&Tp(s,u,t),t=f,c=u;var g=t.updateQueue;if(g===null){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}else{if(!(t&1)){Tp(s,u,t),Wh();break e}c=Error(R(426))}}else if(ge&&a.mode&1){var x=jp(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Np(x,o,a,s,t),_h(hs(c,a));break e}}s=c=hs(c,a),Ae!==4&&(Ae=2),Zs===null?Zs=[s]:Zs.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=cv(s,c,t);xp(s,y);break e;case 1:a=c;var v=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(vn===null||!vn.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=uv(s,a,t);xp(s,k);break e}}s=s.return}while(s!==null)}Nv(r)}catch(S){t=S,Ne===r&&r!==null&&(Ne=r=r.return);continue}break}while(!0)}function Tv(){var e=xl.current;return xl.current=bl,e===null?bl:e}function Wh(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),Le===null||!(Zn&268435455)&&!(Zl&268435455)||tn(Le,ze)}function El(e,t){var r=ne;ne|=2;var n=Tv();(Le!==e||ze!==t)&&(kr=null,Kn(e,t));do try{Nk();break}catch(i){Cv(e,i)}while(!0);if(Th(),ne=r,xl.current=n,Ne!==null)throw Error(R(261));return Le=null,ze=0,Ae}function Nk(){for(;Ne!==null;)jv(Ne)}function Pk(){for(;Ne!==null&&!t1();)jv(Ne)}function jv(e){var t=Rv(e.alternate,e,ft);e.memoizedProps=e.pendingProps,t===null?Nv(e):Ne=t,Uh.current=null}function Nv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Sk(r,t),r!==null){r.flags&=32767,Ne=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,Ne=null;return}}else if(r=kk(r,t,ft),r!==null){Ne=r;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Ae===0&&(Ae=5)}function Mn(e,t,r){var n=ae,i=Pt.transition;try{Pt.transition=null,ae=1,Rk(e,t,r,n)}finally{Pt.transition=i,ae=n}return null}function Rk(e,t,r,n){do qi();while(dn!==null);if(ne&6)throw Error(R(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(d1(e,s),e===Le&&(Ne=Le=null,ze=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||va||(va=!0,Av(sl,function(){return qi(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Pt.transition,Pt.transition=null;var o=ae;ae=1;var a=ne;ne|=4,Uh.current=null,_k(e,r),Sv(r,e),Y1(Qu),al=!!Ju,Qu=Ju=null,e.current=r,Ck(r),r1(),ne=a,ae=o,Pt.transition=s}else e.current=r;if(va&&(va=!1,dn=e,Sl=i),s=e.pendingLanes,s===0&&(vn=null),s1(r.stateNode),ht(e,Te()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(kl)throw kl=!1,e=gd,gd=null,e;return Sl&1&&e.tag!==0&&qi(),s=e.pendingLanes,s&1?e===yd?eo++:(eo=0,yd=e):eo=0,Pn(),null}function qi(){if(dn!==null){var e=cy(Sl),t=Pt.transition,r=ae;try{if(Pt.transition=null,ae=16>e?16:e,dn===null)var n=!1;else{if(e=dn,dn=null,Sl=0,ne&6)throw Error(R(331));var i=ne;for(ne|=4,$=e.current;$!==null;){var s=$,o=s.child;if($.flags&16){var a=s.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for($=u;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Xs(8,d,s)}var h=d.child;if(h!==null)h.return=d,$=h;else for(;$!==null;){d=$;var p=d.sibling,f=d.return;if(bv(d),d===u){$=null;break}if(p!==null){p.return=f,$=p;break}$=f}}}var g=s.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}$=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,$=o;else e:for(;$!==null;){if(s=$,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Xs(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,$=y;break e}$=s.return}}var v=e.current;for($=v;$!==null;){o=$;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,$=b;else e:for(o=v;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xl(9,a)}}catch(S){Ce(a,a.return,S)}if(a===o){$=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,$=k;break e}$=a.return}}if(ne=i,Pn(),hr&&typeof hr.onPostCommitFiberRoot=="function")try{hr.onPostCommitFiberRoot(Vl,e)}catch{}n=!0}return n}finally{ae=r,Pt.transition=t}}return!1}function zp(e,t,r){t=hs(r,t),t=cv(e,t,1),e=yn(e,t,1),t=rt(),e!==null&&(Bo(e,1,t),ht(e,t))}function Ce(e,t,r){if(e.tag===3)zp(e,e,r);else for(;t!==null;){if(t.tag===3){zp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(vn===null||!vn.has(n))){e=hs(r,e),e=uv(t,e,1),t=yn(t,e,1),e=rt(),t!==null&&(Bo(t,1,e),ht(t,e));break}}t=t.return}}function Ak(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&r,Le===e&&(ze&r)===r&&(Ae===4||Ae===3&&(ze&130023424)===ze&&500>Te()-zh?Kn(e,0):Bh|=r),ht(e,t)}function Pv(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var r=rt();e=Ar(e,t),e!==null&&(Bo(e,t,r),ht(e,r))}function Ik(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Pv(e,r)}function Ok(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),Pv(e,r)}var Rv;Rv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ct=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ct=!1,xk(e,t,r);ct=!!(e.flags&131072)}else ct=!1,ge&&t.flags&1048576&&Dy(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Wa(e,t),e=t.pendingProps;var i=ls(t,Qe.current);Gi(t,r),i=Dh(null,t,n,e,i,r);var s=Mh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(n)?(s=!0,hl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ph(t),i.updater=Yl,t.stateNode=i,i._reactInternals=t,sd(t,n,e,r),t=ld(null,t,n,!0,s,r)):(t.tag=0,ge&&s&&Sh(t),Ze(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Mk(n),e=zt(n,e),i){case 0:t=ad(null,t,n,e,r);break e;case 1:t=Ap(null,t,n,e,r);break e;case 11:t=Pp(null,t,n,e,r);break e;case 14:t=Rp(null,t,n,zt(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:zt(n,i),ad(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:zt(n,i),Ap(e,t,n,i,r);case 3:e:{if(pv(t),e===null)throw Error(R(387));n=t.pendingProps,s=t.memoizedState,i=s.element,By(e,t),yl(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=hs(Error(R(423)),t),t=Ip(e,t,n,r,i);break e}else if(n!==i){i=hs(Error(R(424)),t),t=Ip(e,t,n,r,i);break e}else for(gt=gn(t.stateNode.containerInfo.firstChild),yt=t,ge=!0,Kt=null,r=Fy(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cs(),n===i){t=Ir(e,t,r);break e}Ze(e,t,n,r)}t=t.child}return t;case 5:return zy(t),e===null&&rd(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Yu(n,i)?o=null:s!==null&&Yu(n,s)&&(t.flags|=32),fv(e,t),Ze(e,t,o,r),t.child;case 6:return e===null&&rd(t),null;case 13:return mv(e,t,r);case 4:return Rh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=us(t,null,n,r):Ze(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:zt(n,i),Pp(e,t,n,i,r);case 7:return Ze(e,t,t.pendingProps,r),t.child;case 8:return Ze(e,t,t.pendingProps.children,r),t.child;case 12:return Ze(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ue(ml,n._currentValue),n._currentValue=o,s!==null)if(Xt(s.value,o)){if(s.children===i.children&&!ut.current){t=Ir(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(s.tag===1){c=Nr(-1,r&-r),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=r,c=s.alternate,c!==null&&(c.lanes|=r),nd(s.return,r,t),a.lanes|=r;break}c=c.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),nd(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ze(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Gi(t,r),i=At(i),n=n(i),t.flags|=1,Ze(e,t,n,r),t.child;case 14:return n=t.type,i=zt(n,t.pendingProps),i=zt(n.type,i),Rp(e,t,n,i,r);case 15:return dv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:zt(n,i),Wa(e,t),t.tag=1,dt(n)?(e=!0,hl(t)):e=!1,Gi(t,r),lv(t,n,i),sd(t,n,i,r),ld(null,t,n,!0,e,r);case 19:return gv(e,t,r);case 22:return hv(e,t,r)}throw Error(R(156,t.tag))};function Av(e,t){return sy(e,t)}function Dk(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,566 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,r,n){return new Dk(e,t,r,n)}function Gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mk(e){if(typeof e=="function")return Gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dh)return 11;if(e===hh)return 14}return 2}function bn(e,t){var r=e.alternate;return r===null?(r=Nt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ka(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Gh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pi:return Jn(r.children,i,s,t);case uh:o=8,i|=8;break;case Nu:return e=Nt(12,r,t,i|2),e.elementType=Nu,e.lanes=s,e;case Pu:return e=Nt(13,r,t,i),e.elementType=Pu,e.lanes=s,e;case Ru:return e=Nt(19,r,t,i),e.elementType=Ru,e.lanes=s,e;case zg:return ec(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ug:o=10;break e;case Bg:o=9;break e;case dh:o=11;break e;case hh:o=14;break e;case Xr:o=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Nt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Jn(e,t,r,n){return e=Nt(7,e,n,t),e.lanes=r,e}function ec(e,t,r,n){return e=Nt(22,e,n,t),e.elementType=zg,e.lanes=r,e.stateNode={isHidden:!1},e}function iu(e,t,r){return e=Nt(6,e,null,t),e.lanes=r,e}function su(e,t,r){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lk(e,t,r,n,i){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=Fc(0),this.expirationTimes=Fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qh(e,t,r,n,i,s,o,a,c){return e=new Lk(e,t,r,a,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Nt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ph(s),e}function $k(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ni,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Iv(e){if(!e)return Sn;e=e._reactInternals;e:{if(ni(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(dt(r))return Iy(e,r,t)}return t}function Ov(e,t,r,n,i,s,o,a,c){return e=qh(r,n,!0,e,i,s,o,a,c),e.context=Iv(null),r=e.current,n=rt(),i=wn(r),s=Nr(n,i),s.callback=t??null,yn(r,s,i),e.current.lanes=i,Bo(e,i,n),ht(e,n),e}function tc(e,t,r,n){var i=t.current,s=rt(),o=wn(i);return r=Iv(r),t.context===null?t.context=r:t.pendingContext=r,t=Nr(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=yn(i,t,o),e!==null&&(Yt(e,i,o,s),za(e,i,o)),o}function _l(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 Hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Kh(e,t){Hp(e,t),(e=e.alternate)&&Hp(e,t)}function Fk(){return null}var Dv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Jh(e){this._internalRoot=e}rc.prototype.render=Jh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));tc(e,t,null,null)};rc.prototype.unmount=Jh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ei(function(){tc(null,e,null,null)}),t[Rr]=null}};function rc(e){this._internalRoot=e}rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=hy();e={blockedOn:null,target:e,priority:t};for(var r=0;r<en.length&&t!==0&&t<en[r].priority;r++);en.splice(r,0,e),r===0&&py(e)}};function Qh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vp(){}function Uk(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var u=_l(o);s.call(u)}}var o=Ov(t,n,e,0,null,!1,!1,"",Vp);return e._reactRootContainer=o,e[Rr]=o.current,po(e.nodeType===8?e.parentNode:e),ei(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var u=_l(c);a.call(u)}}var c=qh(e,0,!1,null,null,!1,!1,"",Vp);return e._reactRootContainer=c,e[Rr]=c.current,po(e.nodeType===8?e.parentNode:e),ei(function(){tc(t,c,r,n)}),c}function ic(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var c=_l(o);a.call(c)}}tc(t,o,e,i)}else o=Uk(r,t,e,i,n);return _l(o)}uy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Bs(t.pendingLanes);r!==0&&(mh(t,r|1),ht(t,Te()),!(ne&6)&&(fs=Te()+500,Pn()))}break;case 13:ei(function(){var n=Ar(e,1);if(n!==null){var i=rt();Yt(n,e,1,i)}}),Kh(e,1)}};gh=function(e){if(e.tag===13){var t=Ar(e,134217728);if(t!==null){var r=rt();Yt(t,e,134217728,r)}Kh(e,134217728)}};dy=function(e){if(e.tag===13){var t=wn(e),r=Ar(e,t);if(r!==null){var n=rt();Yt(r,e,t,n)}Kh(e,t)}};hy=function(){return ae};fy=function(e,t){var r=ae;try{return ae=e,t()}finally{ae=r}};Bu=function(e,t,r){switch(t){case"input":if(Ou(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Kl(n);if(!i)throw Error(R(90));Vg(n),Ou(n,i)}}}break;case"textarea":Gg(e,r);break;case"select":t=r.value,t!=null&&zi(e,!!r.multiple,t,!1)}};Zg=Hh;ey=ei;var Bk={usingClientEntryPoint:!1,Events:[Ho,Oi,Kl,Yg,Xg,Hh]},Os={findFiberByHostInstance:$n,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zk={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ny(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||Fk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wa.isDisabled&&wa.supportsFiber)try{Vl=wa.inject(zk),hr=wa}catch{}}kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bk;kt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qh(t))throw Error(R(200));return $k(e,t,null,r)};kt.createRoot=function(e,t){if(!Qh(e))throw Error(R(299));var r=!1,n="",i=Dv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=qh(e,1,!1,null,null,r,!1,n,i),e[Rr]=t.current,po(e.nodeType===8?e.parentNode:e),new Jh(t)};kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=ny(t),e=e===null?null:e.stateNode,e};kt.flushSync=function(e){return ei(e)};kt.hydrate=function(e,t,r){if(!nc(t))throw Error(R(200));return ic(null,e,t,!0,r)};kt.hydrateRoot=function(e,t,r){if(!Qh(e))throw Error(R(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=Dv;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Ov(t,null,e,1,r??null,i,!1,s,o),e[Rr]=t.current,po(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new rc(t)};kt.render=function(e,t,r){if(!nc(t))throw Error(R(200));return ic(null,e,t,!1,r)};kt.unmountComponentAtNode=function(e){if(!nc(e))throw Error(R(40));return e._reactRootContainer?(ei(function(){ic(null,null,e,!1,function(){e._reactRootContainer=null,e[Rr]=null})}),!0):!1};kt.unstable_batchedUpdates=Hh;kt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!nc(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return ic(e,t,r,!1,n)};kt.version="18.3.1-next-f1338f8080-20240426";function Mv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mv)}catch(e){console.error(e)}}Mv(),Mg.exports=kt;var Wo=Mg.exports;const Lv=Eg(Wo);var $v,Wp=Wo;$v=Wp.createRoot,Wp.hydrateRoot;const Hk=1,Vk=1e6;let ou=0;function Wk(){return ou=(ou+1)%Number.MAX_SAFE_INTEGER,ou.toString()}const au=new Map,Gp=e=>{if(au.has(e))return;const t=setTimeout(()=>{au.delete(e),to({type:"REMOVE_TOAST",toastId:e})},Vk);au.set(e,t)},Gk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Hk)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Gp(r):e.toasts.forEach(n=>{Gp(n.id)}),{...e,toasts:e.toasts.map(n=>
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Ja=[];let Qa={toasts:[]};function to(e){Qa=Gk(Qa,e),Ja.forEach(t=>{t(Qa)})}function qk({...e}){const t=Wk(),r=i=>to({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>to({type:"DISMISS_TOAST",toastId:t});return to({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function Fv(){const[e,t]=w.useState(Qa);return w.useEffect(()=>(Ja.push(t),()=>{const r=Ja.indexOf(t);r>-1&&Ja.splice(r,1)}),[e]),{...e,toast:qk,dismiss:r=>to({type:"DISMISS_TOAST",toastId:r})}}function W(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sc(...e){return t=>{let r=!1;const n=e.map(i=>{const s=qp(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():qp(e[i],null)}}}}function $e(...e){return w.useCallback(sc(...e),e)}function ii(e,t=[]){let r=[];function n(s,o){const a=w.createContext(o),c=r.length;r=[...r,o];const u=h=>{var y;const{scope:p,children:f,...g}=h,m=((y=p==null?void 0:p[e])==null?void 0:y[c])||a,x=w.useMemo(()=>g,Object.values(g));return l.jsx(m.Provider,{value:x,children:f})};u.displayName=s+"Provider";function d(h,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[c])||a,g=w.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=r.map(o=>w.createContext(o));return function(a){const c=(a==null?void 0:a[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[n,Kk(i,...t)]}function Kk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...a,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function So(e){const t=Qk(e),r=w.forwardRef((n,i)=>{const{children:s,...o}=n,a=w.Children.toArray(s),c=a.find(Xk);if(c){const u=c.props.children,d=a.map(h=>h===c?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...o,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return l.jsx(t,{...o,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}var Jk=So("Slot");function Qk(e){const t=w.forwardRef((r,n)=>{const{children:i,...s}=r;if(w.isValidElement(i)){const o=eS(i),a=Zk(s,i.props);return i.type!==w.Fragment&&(a.ref=n?sc(n,o):o),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uv=Symbol("radix.slottable");function Yk(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Uv,t}function Xk(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uv}function Zk(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function eS(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Yh(e){const t=e+"CollectionProvider",[r,n]=ii(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:y}=m,v=I.useRef(null),b=I.useRef(new Map).current;return l.jsx(i,{scope:x,itemMap:b,collectionRef:v,children:y})};o.displayName=t;const a=e+"CollectionSlot",c=So(a),u=I.forwardRef((m,x)=>{const{scope:y,children:v}=m,b=s(a,y),k=$e(x,b.collectionRef);return l.jsx(c,{ref:k,children:v})});u.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=So(d),f=I.forwardRef((m,x)=>{const{scope:y,children:v,...b}=m,k=I.useRef(null),S=$e(x,k),E=s(d,y);return I.useEffect(()=>(E.itemMap.set(k,{ref:k,...b}),()=>
vendor: 9,165 bytes, line 40
40void E.itemMap.delete(k))),l.jsx(p,{[h]:"",ref:S,children:v})});f.displayName=d;function g(m){const x=s(e+"CollectionConsumer",m);return I.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const b=Array.from(v.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((E,_)=>b.indexOf(E.ref.current)-b.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:f},g,n]}var tS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=tS.reduce((e,t)=>{const r=So(`Primitive.${t}`),n=w.forwardRef((i,s)=>{const{asChild:o,...a}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xh(e,t){e&&Wo.flushSync(()=>e.dispatchEvent(t))}function bt(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function rS(e,t=globalThis==null?void 0:globalThis.document){const r=bt(e);w.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var nS="DismissableLayer",bd="dismissableLayer.update",iS="dismissableLayer.pointerDownOutside",sS="dismissableLayer.focusOutside",Kp,Bv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oc=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...c}=e,u=w.useContext(Bv),[d,h]=w.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),g=$e(t,_=>h(_)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),v=d?m.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,k=v>=y,S=aS(_=>{const T=_.target,P=[...u.branches].some(A=>A.contains(T));!k||P||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},p),E=lS(_=>{const T=_.target;[...u.branches].some(A=>A.contains(T))||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},p);return rS(_=>{v===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},p),w.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jp(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Kp)}},[d,p,r,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jp())},[d,u]),w.useEffect(()=>{const _=()=>f({});return document.addEventListener(bd,_),()=>document.removeEventListener(bd,_)},[]),l.jsx(xe.div,{...c,ref:g,style:{pointerEvents:b?k?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,E.onFocusCapture),onBlurCapture:W(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,S.onPointerDownCapture)})});oc.displayName=nS;var oS="DismissableLayerBranch",zv=w.forwardRef((e,t)=>{const r=w.useContext(Bv),n=w.useRef(null),i=$e(t,n);return w.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),l.jsx(xe.div,{...e,ref:i})});zv.displayName=oS;function aS(e,t=globalThis==null?void 0:globalThis.document){const r=bt(e),n=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let c=function(){Hv(iS,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function lS(e,t=globalThis==null?void 0:globalThis.document){const r=bt(e),n=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!n.current&&Hv(sS,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Jp(){const e=new CustomEvent(bd);document.dispatchEvent(e)}function Hv(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Xh(i,s):i.dispatchEvent(s)}var cS=oc,uS=zv,Or=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},dS="Portal",Zh=w.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[i,s]=w.useState(!1);Or(()=>s(!0),[]);const o=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Lv.createPortal(l.jsx(xe.div,{...n,ref:t}),o):null});Zh.displayName=dS;function hS(e,t){return w.useReducer((r,n)=>t[r][n]??r,e)}var si=e=>{const{present:t,children:r}=e,n=fS(t),i=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),s=$e(n.ref,pS(i));return typeof r=="function"||n.isPresent?w.cloneElement(i,{ref:s}):null};si.displayName="Presence";function fS(e){const[t,r]=w.useState(),n=w.useRef(null),i=w.useRef(e),s=w.useRef("none"),o=e?"mounted":"unmounted",[a,c]=hS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=ba(n.current);s.current=a==="mounted"?u:"none"},[a]),Or(()=>{const u=n.current,d=i.current;if(d!==e){const p=s.current,f=ba(u);e?c("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Or(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=f=>{const m=ba(n.current).includes(f.animationName);if(f.target===t&&m&&(c("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=f=>{f.target===t&&(s.current=ba(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function ba(e){return(e==null?void 0:e.animationName)||"none"}function pS(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mS=oh[" useInsertionEffect ".trim().toString()]||Or;function ef({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,o]=gS({defaultProp:t,onChange:r}),a=e!==void 0,c=a?e:i;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const u=w.useCallback(d=>{var h;if(a){const p=yS(d)?d(e):d;p!==e&&((h=o.current)==null||h.call(o,p))}else s(d)},[a,e,s,o]);return[c,u]}function gS({defaultProp:e,onChange:t}){const[r,n]=w.useState(e),i=w.useRef(r),s=w.useRef(t);return mS(()=>{s.current=t},[t]),w.useEffect(()=>{var o;i.current!==r&&((o=s.current)==null||o.call(s,r),i.current=r)},[r,i]),[r,n,s]}function yS(e){return typeof e=="function"}var vS=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"}),wS="VisuallyHidden",ac=w.forwardRef((e,t)=>l.jsx(xe.span,{...e,ref:t,style:{...vS,...e.style}}));ac.displayName=wS;var bS=ac,tf="ToastProvider",[rf,xS,kS]=Yh("Toast"),[Vv,_I]=ii("Toast",[kS]),[SS,lc]=Vv(tf),Wv=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,c]=w.useState(null),[u,d]=w.useState(0),h=w.useRef(!1),p=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${tf}\`. Expected non-empty \`string\`.`),l.jsx(rf.Provider,{scope:t,children:l.jsx(SS,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:c,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:o})})};Wv.displayName=tf;var Gv="ToastViewport",ES=["F8"],xd="toast.viewportPause",kd="toast.viewportResume",qv=w.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=ES,label:i="Notifications ({hotkey})",...s}=e,o=lc(Gv,r),a=xS(r),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),h=w.useRef(null),p=$e(t,h,o.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;w.useEffect(()=>{const x=y=>{var b;n.length!==0&&n.every(k=>y[k]||y.code===k)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),w.useEffect(()=>{const x=c.current,y=h.current;if(g&&x&&y){const v=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(xd);y.dispatchEvent(E),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(kd);y.dispatchEvent(E),o.isClosePausedRef.current=!1}},k=E=>{!x.contains(E.relatedTarget)&&b()},S=()=>{x.contains(document.activeElement)||b()};return x.addEventListener("focusin",v),x.addEventListener("focusout",k),x.addEventListener("pointermove",v),x.addEventListener("pointerleave",S),window.addEventListener("blur",v),window.addEventListener("focus",b),()=>{x.removeEventListener("focusin",v),x.removeEventListener("focusout",k),x.removeEventListener("pointermove",v),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",v),window.removeEventListener("focus",b)}}},[g,o.isClosePausedRef]);const m=w.useCallback(({tabbingDirection:x})=>{const v=a().map(b=>{const k=b.ref.current,S=[k,...LS(k)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?v.reverse():v).flat()},[a]);return w.useEffect(()=>{const x=h.current;if(x){const y=v=>{var S,E,_;const b=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!b){const T=document.activeElement,P=v.shiftKey;if(v.target===x&&P){(S=u.current)==null||S.focus();return}const L=m({tabbingDirection:P?"backwards":"forwards"}),G=L.findIndex(D=>D===T);lu(L.slice(G+1))?v.preventDefault():P?(E=u.current)==null||E.focus():(_=d.current)==null||_.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[a,m]),l.jsxs(uS,{ref:c,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&l.jsx(Sd,{ref:u,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});lu(x)}}),l.jsx(rf.Slot,{scope:r,children:l.jsx(xe.ol,{tabIndex:-1,...s,ref:p})}),g&&l.jsx(Sd,{ref:d,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});lu(x)}})]})});qv.displayName=Gv;var Kv="ToastFocusProxy",Sd=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,s=lc(Kv,r);return l.jsx(ac,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&n()}})});Sd.displayName=Kv;var Go="Toast",_S="toast.swipeStart",CS="toast.swipeMove",TS="toast.swipeCancel",jS="toast.swipeEnd",Jv=w.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...o}=e,[a,c]=ef({prop:n,defaultProp:i??!0,onChange:s,caller:Go});return l.jsx(si,{present:r||a,children:l.jsx(RS,{open:a,...o,ref:t,onClose:()=>c(!1),onPause:bt(e.onPause),onResume:bt(e.onResume),onSwipeStart:W(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:W(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:W(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});Jv.displayName=Go;var[NS,PS]=Vv(Go,{onClose(){}}),RS=w.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...g}=e,m=lc(Go,r),[x,y]=w.useState(null),v=$e(t,D=>y(D)),b=w.useRef(null),k=w.useRef(null),S=i||m.duration,E=w.useRef(0),_=w.useRef(S),T=w.useRef(0),{onToastAdd:P,onToastRemove:A}=m,H=bt(()=>{var Z;(x==null?void 0:x.contains(document.activeElement))&&((Z=m.viewport)==null||Z.focus()),o()}),L=w.useCallback(D=>{!D||D===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(H,D))},[H]);w.useEffect(()=>{const D=m.viewport;if(D){const Z=()=>{L(_.current),u==null||u()},B=()=>{const q=new Date().getTime()-E.current;_.current=_.current-q,window.clearTimeout(T.current),c==null||c()};return D.addEventListener(xd,B),D.addEventListener(kd,Z),()=>{D.removeEventListener(xd,B),D.removeEventListener(kd,Z)}}},[m.viewport,S,c,u,L]),w.useEffect(()=>{s&&!m.isClosePausedRef.current&&L(S)},[s,S,m.isClosePausedRef,L]),w.useEffect(()=>(P(),()=>A()),[P,A]);const G=w.useMemo(()=>x?r0(x):null,[x]);return m.viewport?l.jsxs(l.Fragment,{children:[G&&l.jsx(AS,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),l.jsx(NS,{scope:r,onClose:H,children:Wo.createPortal(l.jsx(rf.ItemSlot,{scope:r,children:l.jsx(cS,{asChild:!0,onEscapeKeyDown:W(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||H(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:W(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:W(e.onPointerDown,D=>{D.button===0&&(b.current={x:D.clientX,y:D.clientY})}),onPointerMove:W(e.onPointerMove,D=>{if(!b.current)return;const Z=D.clientX-b.current.x,B=D.clientY-b.current.y,q=!!k.current,j=["left","right"].includes(m.swipeDirection),C=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,O=j?C(0,Z):0,z=j?0:C(0,B),U=D.pointerType==="touch"?10:2,Q={x:O,y:z},X={originalEvent:D,delta:Q};q?(k.current=Q,xa(CS,h,X,{discrete:!1})):Qp(Q,m.swipeDirection,U)?(k.current=Q,xa(_S,d,X,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(Z)>U||Math.abs(B)>U)&&(b.current=null)}),onPointerUp:W(e.onPointerUp,D=>{const Z=k.current,B=D.target;if(B.hasPointerCapture(D.pointerId)&&B.releasePointerCapture(D.pointerId),k.current=null,b.current=null,Z){const q=D.currentTarget,j={originalEvent:D,delta:Z};Qp(Z,m.swipeDirection,m.swipeThreshold)?xa(jS,f,j,{discrete:!0}):xa(TS,p,j,{discrete:!0}),q.addEventListener("click",C=>C.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),AS=e=>{const{__scopeToast:t,children:r,...n}=e,i=lc(Go,t),[s,o]=w.useState(!1),[a,c]=w.useState(!1);return DS(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(Zh,{asChild:!0,children:l.jsx(ac,{...n,children:s&&l.jsxs(l.Fragment,{children:[i.label," ",r]})})})},IS="ToastTitle",Qv=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.jsx(xe.div,{...n,ref:t})});Qv.displayName=IS;var OS="ToastDescription",Yv=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.jsx(xe.div,{...n,ref:t})});Yv.displayName=OS;var Xv="ToastAction",Zv=w.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?l.jsx(t0,{altText:r,asChild:!0,children:l.jsx(nf,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Xv}\`. Expected non-empty \`string\`.`),null)});Zv.displayName=Xv;var e0="ToastClose",nf=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=PS(e0,r);return l.jsx(t0,{asChild:!0,children:l.jsx(xe.button,{type:"button",...n,ref:t,onClick:W(e.onClick,i.onClose)})})});nf.displayName=e0;var t0=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return l.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function r0(e){const t=[];
vendor: 4,279 bytes, lines 40-65
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),MS(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...r0(n))}}),t}function xa(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Xh(i,s):i.dispatchEvent(s)}var Qp=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return t==="left"||t==="right"?s&&n>r:!s&&i>r};function DS(e=()=>{}){const t=bt(e);Or(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function MS(e){return e.nodeType===e.ELEMENT_NODE}function LS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var $S=Wv,n0=qv,i0=Jv,s0=Qv,o0=Yv,a0=Zv,l0=nf;function c0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=c0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function u0(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=c0(e))&&(n&&(n+=" "),n+=t);return n}const Yp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xp=u0,sf=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Xp(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const d=r==null?void 0:r[u],h=s==null?void 0:s[u];if(d===null)return null;const p=Yp(d)||Yp(h);return i[u][p]}),a=r&&Object.entries(r).reduce((u,d)=>{let[h,p]=d;return p===void 0||(u[h]=p),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(g=>{let[m,x]=g;return Array.isArray(x)?x.includes({...s,...a}[m]):{...s,...a}[m]===x})?[...u,h,p]:u},[]);return Xp(e,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const FS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var US={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const BS=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...a},c)=>w.createElement("svg",{ref:c,...US,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:d0("lucide",i),...a},[...o.map(([u,d])=>w.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const se=(e,t)=>{const r=w.forwardRef(({className:n,...i},s)=>w.createElement(BS,{ref:s,iconNode:t,className:d0(`lucide-${FS(e)}`,n),...i}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const h0=se("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const zS=se("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const HS=se("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const VS=se("Beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const f0=se("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const WS=se("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const GS=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const Ed=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const qS=se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const Cl=se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const KS=se("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const JS=se("Dna",[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}
120],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const _d=se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const Ki=se("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Tl=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const QS=se("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const YS=se("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const XS=se("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const cc=se("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const ZS=se("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const p0=se("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const eE=se("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const tE=se("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"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const m0=se("Pill",[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const uc=se("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",ke
vendor: 8,605 bytes, lines 185-220
185y:"oel41y"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const rE=se("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const dc=se("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const g0=se("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"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const nE=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const iE=se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const y0=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const sE=se("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"}]]),of="-",oE=e=>{const t=lE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(of);return a[0]===""&&a.length!==1&&a.shift(),v0(a,t)||aE(o)},getConflictingClassGroupIds:(o,a)=>{const c=r[o]||[];return a&&n[o]?[...c,...n[o]]:c}}},v0=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?v0(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(of);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Zp=/^\[(.+)\]$/,aE=e=>{if(Zp.test(e)){const t=Zp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},lE=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return uE(Object.entries(e.classGroups),r).forEach(([s,o])=>{Cd(o,n,s,t)}),n},Cd=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:em(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(cE(i)){Cd(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{Cd(o,em(t,s),r,n)})})},em=(e,t)=>{let r=e;return t.split(of).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},cE=e=>e.isThemeGetter,uE=(e,t)=>t?e.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[r,i]}):e,dE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},w0="!",hE=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],s=t.length,o=a=>{const c=[];let u=0,d=0,h;for(let x=0;x<a.length;x++){let y=a[x];if(u===0){if(y===i&&(n||a.slice(x,x+s)===t)){c.push(a.slice(d,x)),d=x+s;continue}if(y==="/"){h=x;continue}}y==="["?u++:y==="]"&&u--}const p=c.length===0?a:a.substring(d),f=p.startsWith(w0),g=f?p.substring(1):p,m=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},fE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},pE=e=>({cache:dE(e.cacheSize),parseClassName:hE(e),...oE(e)}),mE=/\s+/,gE=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(mE);let a="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(u);let g=!!f,m=n(g?p.substring(0,f):p);if(!m){if(!g){a=u+(a.length>0?" "+a:a);continue}if(m=n(p),!m){a=u+(a.length>0?" "+a:a);continue}g=!1}const x=fE(d).join(":"),y=h?x+w0:x,v=y+m;if(s.includes(v))continue;s.push(v);const b=i(m,g);for(let k=0;k<b.length;++k){const S=b[k];s.push(y+S)}a=u+(a.length>0?" "+a:a)}return a};function yE(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=b0(t))&&(n&&(n+=" "),n+=r);return n}const b0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b0(e[n]))&&(r&&(r+=" "),r+=t);return r};function vE(e,...t){let r,n,i,s=o;function o(c){const u=t.reduce((d,h)=>h(d),e());return r=pE(u),n=r.cache.get,i=r.cache.set,s=a,a(c)}function a(c){const u=n(c);if(u)return u;const d=gE(c,r);return i(c,d),d}return function(){return s(yE.apply(null,arguments))}}const de=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},x0=/^\[(?:([a-z-]+):)?(.+)\]$/i,wE=/^\d+\/\d+$/,bE=new Set(["px","full","screen"]),xE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kE=/\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$/,SE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,EE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yr=e=>Ji(e)||bE.has(e)||wE.test(e),Gr=e=>bs(e,"length",IE),Ji=e=>!!e&&!Number.isNaN(Number(e)),cu=e=>bs(e,"number",Ji),Ds=e=>!!e&&Number.isInteger(Number(e)),CE=e=>e.endsWith("%")&&Ji(e.slice(0,-1)),Y=e=>x0.test(e),qr=e=>xE.test(e),TE=new Set(["length","size","percentage"]),jE=e=>bs(e,TE,k0),NE=e=>bs(e,"position",k0),PE=new Set(["image","url"]),RE=e=>bs(e,PE,DE),AE=e=>bs(e,"",OE),Ms=()=>!0,bs=(e,t,r)=>{const n=x0.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},IE=e=>kE.test(e)&&!SE.test(e),k0=()=>!1,OE=e=>EE.test(e),DE=e=>_E.test(e),ME=()=>{const e=de("colors"),t=de("spacing"),r=de("blur"),n=de("brightness"),i=de("borderColor"),s=de("borderRadius"),o=de("borderSpacing"),a=de("borderWidth"),c=de("contrast"),u=de("grayscale"),d=de("hueRotate"),h=de("invert"),p=de("gap"),f=de("gradientColorStops"),g=de("gradientColorStopPositions"),m=de("inset"),x=de("margin"),y=de("opacity"),v=de("padding"),b=de("saturate"),k=de("scale"),S=de("sepia"),E=de("skew"),_=de("space"),T=de("translate"),P=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",Y,t],L=()=>[Y,t],G=()=>["",yr,Gr],D=()=>["auto",Ji,Y],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",Y],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Ji,Y];return{cacheSize:500,separator:":",theme:{colors:[Ms],spacing:[yr,Gr],blur:["none","",qr,Y],brightness:z(),borderColor:[e],borderRadius:["n
220one","","full",qr,Y],borderSpacing:L(),borderWidth:G(),contrast:z(),grayscale:C(),hueRotate:z(),invert:C(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[CE,Gr],inset:H(),margin:H(),opacity:z(),padding:L(),saturate:z(),scale:z(),sepia:C(),skew:z(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[qr]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),Y]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ds,Y]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",Ds,Y]}],"grid-cols":[{"grid-cols":[Ms]}],"col-start-end":[{col:["auto",{span:["full",Ds,Y]},Y]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Ms]}],"row-start-end":[{row:["auto",{span:[Ds,Y]},Y]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[qr]},qr]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qr,Gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cu]}],"font-family":[{font:[Ms]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Ji,cu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yr,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yr,Gr]}],"underline-offset":[{"underline-offset":["auto",yr,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),NE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},RE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
220],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[y]}],"border-style":[{border:[...B(),"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":[y]}
vendor: 4,458 bytes, line 220
220],"divide-style":[{divide:B()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[yr,Y]}],"outline-w":[{outline:[yr,Gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[yr,Gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qr,AE]}],"shadow-color":[{shadow:[Ms]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qr,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ds,Y]}],"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",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yr,Gr,cu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
220none"]}]},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"]}}},LE=vE(ME);function pe(...e){return LE(u0(e))}const $E=$S,S0=w.forwardRef(({className:e,...t},r)=>l.jsx(n0,{ref:r,className:pe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));S0.displayName=n0.displayName;const FE=sf("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"}}),E0=w.forwardRef(({className:e,variant:t,...r},n)=>l.jsx(i0,{ref:n,className:pe(FE({variant:t}),e),...r}));E0.displayName=i0.displayName;const UE=w.forwardRef(({className:e,...t},r)=>l.jsx(a0,{ref:r,className:pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors 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}));UE.displayName=a0.displayName;const _0=w.forwardRef(({className:e,...t},r)=>l.jsx(l0,{ref:r,className:pe("absolute right-2 top-2 rounded-md p-1 text-foreground
220/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:l.jsx(y0,{className:"h-4 w-4"})}));_0.displayName=l0.displayName;const C0=w.forwardRef(({className:e,...t},r)=>l.jsx(s0,{ref:r,className:pe("text-sm font-semibold",e),...t}));C0.displayName=s0.displayName;const T0=w.forwardRef(({className:e,...t},r)=>l.jsx(o0,{ref:r,className:pe("text-sm opacity-90",e),...t}));T0.displayName=o0.displayName;function BE(){const{toasts:e}=Fv();return l.jsxs($E,{children:[e.map(function({id:t,title:r,description:n,action:i,...s}){return l.jsxs(E0,{...s,children:[l.jsxs("div",{className:"grid gap-1",children:[r&&l.jsx(C0,{children:r}),n&&l.jsx(T0,{children:n})]}),i,l.jsx(_0,{})]},t)}),l.jsx(S0,{})]})}var tm=["light","dark"],zE="(prefers-color-scheme: dark)",HE=w.createContext(void 0),VE={setTheme:e=>{},themes:[]},WE=()=>{var e;return(e=w.useContext(HE))!=null?e:VE};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:c})=>{let u=s==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=i?tm.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(g,m=!1,x=!0)=>{let y=o?o[g]:g,v=m?g+"|| ''":`'${y}'`,b="";return i&&x&&!m&&tm.includes(g)&&(b+=`d.style.colorScheme = '${g}';`),r==="class"?m||y?b+=`c.add(${v})`:b+="null":y&&(b+=`d[s](n,${v})`),b},f=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${zE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${u?"":"else{"+p(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:f}})});var GE=e=>{switch(e){case"success":return JE;case"info":return YE;case"warning":return QE;case"error":return XE;default:return null}},qE=Array(12).fill(0),KE=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},qE.map((r,n)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),JE=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),QE=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),YE=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),XE=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),ZE=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),e_=()=>
220{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Td=1,t_=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:r,...n}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Td++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:r}),{...a,...e,id:i,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
220this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),i=r!==void 0,s,o=n.then(async c=>{if(s=["resolve",c],I.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(n_(c)&&!c.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(s=["reject",c],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;i&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),a=()=>new Promise((c,u)=>o.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Td++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},at=new t_,r_=(e,t)=>{let r=(t==null?void 0:t.id)||Td++;return at.addToast({title:e,...t,id:r}),r},n_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",i_=r_,s_=()=>at.toasts,o_=()=>at.getActiveToasts();Object.assign(i_,{success:at.success,info:at.info,warning:at.warning,error:at.error,custom:at.custom,message:at.message,promise:at.promise,dismiss:at.dismiss,loading:at.loading},{getHistory:s_,getToasts:o_});function a_(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}a_(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
220left: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}
220: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%);
220--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%)} 221`);function ka(e){return e.label!==void 0}var l_=3,c_="32px",u_="16px",rm=4e3,d_=356,h_=14,f_=20,p_=200;function Ut(...e){return e.filter(Boolean).join(" ")}function m_(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var g_=e=>{var t,r,n,i,s,o,a,c,u,d,h;let{invert:p,toast:f,unstyled:g,interacting:m,setHeights:x,visibleToasts:y,heights:v,index:b,toasts:k,expanded:S,removeToast:E,defaultRichColors:_,closeButton:T,style:P,cancelButtonStyle:A,actionButtonStyle:H,className:L="",descriptionClassName:G="",duration:D,position:Z,gap:B,loadingIcon:q,expandByDefault:j,classNames:C,icons:O,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:U}
221=e,[Q,X]=I.useState(null),[ye,ke]=I.useState(null),[ee,gr]=I.useState(!1),[Ie,tr]=I.useState(!1),[Ur,di]=I.useState(!1),[Br,Zo]=I.useState(!1),[Nc,ea]=I.useState(!1),[Pc,_s]=I.useState(0),[hi,Pf]=I.useState(0),Cs=I.useRef(f.duration||D||rm),Rf=I.useRef(null),Rn=I.useRef(null),lx=b===0,cx=b+1<=y,Et=f.type,fi=f.dismissible!==!1,ux=f.className||"",dx=f.descriptionClassName||"",ta=I.useMemo(()=>v.findIndex(K=>K.toastId===f.id)||0,[v,f.id]),hx=I.useMemo(()=>{var K;return(K=f.closeButton)!=null?K:T},[f.closeButton,T]),Af=I.useMemo(()=>f.duration||D||rm,[f.duration,D]),Rc=I.useRef(0),pi=I.useRef(0),If=I.useRef(0),mi=I.useRef(null),[fx,px]=Z.split("-"),Of=I.useMemo(()=>v.reduce((K,le,me)=>me>=ta?K:K+le.height,0),[v,ta]),Df=e_(),mx=f.invert||p,Ac=Et==="loading";pi.current=I.useMemo(()=>ta*B+Of,[ta,Of]),I.useEffect(()=>{Cs.current=Af},[Af]),I.useEffect(()=>{gr(!0)},[]),I.useEffect(()=>{let K=Rn.current;if(K){let le=K.getBoundingClientRect().height;return Pf(le),x(me=>[{toastId:f.id,height:le,position:f.position},...me]),()=>x(me=>me.filter(Mt=>Mt.toastId!==f.id))}},[x,f.id]),I.useLayoutEffect(()=>{if(!ee)return;let K=Rn.current,le=K.style.height;K.style.height="auto";let me=K.getBoundingClientRect().height;K.style.height=le,Pf(me),x(Mt=>Mt.find(Lt=>Lt.toastId===f.id)?Mt.map(Lt=>Lt.toastId===f.id?{...Lt,height:me}:Lt):[{toastId:f.id,height:me,position:f.position},...Mt])},[ee,f.title,f.description,x,f.id]);let zr=I.useCallback(()=>{tr(!0),_s(pi.current),x(K=>K.filter(le=>le.toastId!==f.id)),setTimeout(()=>{E(f)},p_)},[f,E,x,pi]);I.useEffect(()=>{if(f.promise&&Et==="loading"||f.duration===1/0||f.type==="loading")return;let K;return S||m||U&&Df?(()=>{if(If.current<Rc.current){let le=new Date().getTime()-Rc.current;Cs.current=Cs.current-le}If.current=new Date().getTime()})():Cs.current!==1/0&&(Rc.current=new Date().getTime(),K=setTimeout(()=>{var le;(le=f.onAutoClose)==null||le.call(f,f),zr()},Cs.current)),()=>clearTimeout(K)},[S,m,f,Et,U,Df,zr]),I.useEffect(()=>{f.delete&&zr()},[zr,f.delete]);function gx(){var K,le,me;return O!=null&&O.loading?I.createElement("div",{className:Ut(C==null?void 0:C.loader,(K=f==null?void 0:f.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":Et==="loading"},O.loading):q?I.createElement("div",{className:Ut(C==null?void 0:C.loader,(le=f==null?void 0:f.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":Et==="loading"},q):I.createElement(KE,{className:Ut(C==null?void 0:C.loader,(me=f==null?void 0:f.classNames)==null?void 0:me.loader),visible:Et==="loading"})}return I.createElement("li",{tabIndex:0,ref:Rn,className:Ut(L,ux,C==null?void 0:C.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,C==null?void 0:C.default,C==null?void 0:C[Et],(r=f==null?void 0:f.classNames)==null?void 0:r[Et]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:_,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":ee,"data-promise":!!f.promise,"data-swiped":Nc,"data-removed":Ie,"data-visible":cx,"data-y-position":fx,"data-x-position":px,"data-index":b,"data-front":lx,"data-swiping":Ur,"data-dismissible":fi,"data-type":Et,"data-invert":mx,"data-swipe-out":Br,"data-swipe-direction":ye,"data-expanded":!!(S||j&&ee),style:{"--index":b,"--toasts-before":b,"--z-index":k.length-b,"--offset":`${Ie?Pc:pi.current}px`,"--initial-height":j?"auto":`${hi}px`,...P,...f.style},onDragEnd:()=>{di(!1),X(null),mi.current=null},onPointerDown:K=>{Ac||!fi||(Rf.current=new Date,_s(pi.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(di(!0),mi.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,le,me,Mt;if(Br||!fi)return;mi.current=null;let Lt=Number(((K=Rn.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Hr=Number(((le=Rn.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),An=new Date().getTime()-((me=Rf.current)==null?void 0:me.getTime()),$t=Q==="x"?Lt:Hr,Vr=Math.abs($t)/An;if(Math.abs($t)>=f_||Vr>.11){_s(pi.current),(Mt=f.onDismiss)==null||Mt.call(f,f),ke(Q==="x"?Lt>0?"right":"left":Hr>0?"down":"up"),zr(),Zo(!0),ea(!1);return}di(!1),X(null)},onPointerMove:K=>{var le,me,Mt,Lt;if(!mi.current||!fi||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let Hr=K.clientY-mi.current.y,An=K.clientX-mi.current.x,$t=(me=e.swipeDirections)!=null?me:m_(Z);!Q&&(Math.abs(An)>1||Math.abs(Hr)>1)&&X(Math.abs(An)>Math.abs(Hr)?"x":"y");let Vr={x:0,y:0};Q==="y"?($t.includes("top")||$t.includes("bottom"))&&($t.includes("top")&&Hr<0||$t.includes("bottom")&&Hr>0)&&(Vr.y=Hr):Q==="x"&&($t.includes("left")||$t.includes("right"))&&($t.includes("left")&&An<0||$t.includes("right")&&An>0)&&(Vr.x=An),(Math.abs(Vr.x)>0||Math.abs(Vr.y)>0)&&ea(!0),(Mt=Rn.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Vr.x}px`),(Lt=Rn.current)==null||Lt.style.setProperty("--swipe-amount-y",`${Vr.y}px`)}},hx&&!f.jsx?I.createElement("button",{"aria-label":z,"data-disabled":Ac,"data-close-button":!0,onClick:Ac||!fi?()=>{}:()=>{var K;zr(),(K=f.onDismiss)==null||K.call(f,f)},className:Ut(C==null?void 0:C.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(s=O==null?void 0:O.close)!=null?s:ZE):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:I.createElement(I.Fragment,null,Et||f.icon||f.promise?I.createElement("div",{"data-icon":"",className:Ut(C==null?void 0:C.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||gx():null,f.type!=="loading"?f.icon||(O==null?void 0:O[Et])||GE(Et):null):null,I.createElement("div",{"data-content":"",className:Ut(C==null?void 0:C.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},I.createElement("div",{"data-title":"",className:Ut(C==null?void 0:C.title,(c=f==null?void 0:f.classNames)==null?void 0:c.title)},typeof f.title=="function"?f.title():f.title),f.description?I.createElement("div",{"data-description":"",className:Ut(G,dx,C==null?void 0:C.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&ka(f.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:K=>{var le,me;ka(f.cancel)&&fi&&((me=(le=f.cancel).onClick)==null||me.call(le,K),zr())},className:Ut(C==null?void 0:C.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&ka(f.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||H,onClick:K=>{var le,me;ka(f.action)&&((me=(le=f.action).onClick)==null||me.call(le,K),!K.defaultPrevented&&zr())},className:Ut(C==null?void 0:C.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};
vendor: 5,186 bytes, line 221
221function nm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function y_(e,t){let r={};return[e,t].forEach((n,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?u_:c_;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=a:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(a)}),r}var v_=w.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:g=l_,toastOptions:m,dir:x=nm(),gap:y=h_,loadingIcon:v,icons:b,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[E,_]=I.useState([]),T=I.useMemo(()=>Array.from(new Set([n].concat(E.filter(U=>U.position).map(U=>U.position)))),[E,n]),[P,A]=I.useState([]),[H,L]=I.useState(!1),[G,D]=I.useState(!1),[Z,B]=I.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=I.useRef(null),j=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=I.useRef(null),O=I.useRef(!1),z=I.useCallback(U=>{_(Q=>{var X;return(X=Q.find(ye=>ye.id===U.id))!=null&&X.delete||at.dismiss(U.id),Q.filter(({id:ye})=>ye!==U.id)})},[]);return I.useEffect(()=>at.subscribe(U=>{if(U.dismiss){_(Q=>Q.map(X=>X.id===U.id?{...X,delete:!0}:X));return}setTimeout(()=>{Lv.flushSync(()=>{_(Q=>{let X=Q.findIndex(ye=>ye.id===U.id);return X!==-1?[...Q.slice(0,X),{...Q[X],...U},...Q.slice(X+1)]:[U,...Q]})})})}),[]),I.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:Q})=>{B(Q?"dark":"light")})}catch{U.addListener(({matches:X})=>{try{B(X?"dark":"light")}catch(ye){console.error(ye)}})}},[d]),I.useEffect(()=>{E.length<=1&&L(!1)},[E]),I.useEffect(()=>{let U=Q=>{var X,ye;i.every(ke=>Q[ke]||Q.code===ke)&&(L(!0),(X=q.current)==null||X.focus()),Q.code==="Escape"&&(document.activeElement===q.current||(ye=q.current)!=null&&ye.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[i]),I.useEffect(()=>{if(q.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,O.current=!1)}},[q.current]),I.createElement("section",{ref:t,"aria-label":`${k} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((U,Q)=>{var X;let[ye,ke]=U.split("-");return E.length?I.createElement("ol",{key:U,dir:x==="auto"?nm():x,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":ye,"data-lifted":H&&E.length>1&&!s,"data-x-position":ke,style:{"--front-toast-height":`${((X=P[0])==null?void 0:X.height)||0}px`,"--width":`${d_}px`,"--gap":`${y}px`,...f,...y_(c,u)},onBlur:ee=>{O.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(O.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||O.current||(O.current=!0,C.current=ee.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{G||L(!1)},onDragEnd:()=>L(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},E.filter(ee=>!ee.position&&Q===0||ee.position===U).map((ee,gr)=>{var Ie,tr;return I.createElement(g_,{key:ee.id,icons:b,index:gr,toast:ee,defaultRichColors:h,duration:(Ie=m==null?void 0:m.duration)!=null?Ie:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:g,closeButton:(tr=m==null?void 0:m.closeButton)!=null?tr:o,interacting:G,position:U,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:z,toasts:E.filter(Ur=>Ur.position==ee.position),heights:P.filter(Ur=>Ur.position==ee.position),setHeights:A,expandByDefault:s,gap:y,loadingIcon:v,expanded:H,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const w_=({...e})=>{const{theme:t="system"}=WE();return l.jsx(v_,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var b_=oh[" useId ".trim().toString()]||(()=>{}),x_=0;
vendor: 11,869 bytes, line 221
221function jd(e){const[t,r]=w.useState(b_());return Or(()=>{r(n=>n??String(x_++))},[e]),t?`radix-${t}`:""}const k_=["top","right","bottom","left"],En=Math.min,pt=Math.max,jl=Math.round,Sa=Math.floor,_n=e=>({x:e,y:e}),S_={left:"right",right:"left",bottom:"top",top:"bottom"},E_={start:"end",end:"start"};function Nd(e,t,r){return pt(e,En(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function Mr(e){return e.split("-")[0]}function xs(e){return e.split("-")[1]}function af(e){return e==="x"?"y":"x"}function lf(e){return e==="y"?"height":"width"}function Cn(e){return["top","bottom"].includes(Mr(e))?"y":"x"}function cf(e){return af(Cn(e))}function __(e,t,r){r===void 0&&(r=!1);const n=xs(e),i=cf(e),s=lf(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Nl(o)),[o,Nl(o)]}function C_(e){const t=Nl(e);return[Pd(e),t,Pd(t)]}function Pd(e){return e.replace(/start|end/g,t=>E_[t])}function T_(e,t,r){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?s:o;default:return[]}}function j_(e,t,r,n){const i=xs(e);let s=T_(Mr(e),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Pd)))),s}function Nl(e){return e.replace(/left|right|bottom|top/g,t=>S_[t])}function N_(e){return{top:0,right:0,bottom:0,left:0,...e}}function j0(e){return typeof e!="number"?N_(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function im(e,t,r){let{reference:n,floating:i}=e;const s=Cn(t),o=cf(t),a=lf(o),c=Mr(t),u=s==="y",d=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2;let f;switch(c){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-i.width,y:h};break;default:f={x:n.x,y:n.y}}switch(xs(t)){case"start":f[o]-=p*(r&&u?-1:1);break;case"end":f[o]+=p*(r&&u?-1:1);break}return f}const P_=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=im(u,n,c),p=n,f={},g=0;for(let m=0;m<a.length;m++){const{name:x,fn:y}=a[m],{x:v,y:b,data:k,reset:S}=await y({x:d,y:h,initialPlacement:n,placement:p,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});d=v??d,h=b??h,f={...f,[x]:{...f[x],...k}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:d,y:h}=im(u,p,c)),m=-1)}return{x:d,y:h,placement:p,strategy:i,middlewareData:f}};async function Eo(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Dr(t,e),g=j0(f),x=a[p?h==="floating"?"reference":"floating":h],y=Pl(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),v=h==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Pl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:c}):v);return{top:(y.top-S.top+g.top)/k.y,bottom:(S.bottom-y.bottom+g.bottom)/k.y,left:(y.left-S.left+g.left)/k.x,right:(S.right-y.right+g.right)/k.x}}const R_=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Dr(e,t)||{};if(u==null)return{};const h=j0(d),p={x:r,y:n},f=cf(i),g=lf(f),m=await o.getDimensions(u),x=f==="y",y=x?"top":"left",v=x?"bottom":"right",b=x?"clientHeight":"clientWidth",k=s.reference[g]+s.reference[f]-p[f]-s.floating[g],S=p[f]-s.reference[f],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=E?E[b]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=a.floating[b]||s.floating[g]);const T=k/2-S/2,P=_/2-m[g]/2-1,A=En(h[y],P),H=En(h[v],P),L=A,G=_-m[g]-H,D=_/2-m[g]/2+T,Z=Nd(L,D,G),B=!c.arrow&&xs(i)!=null&&D!==Z&&s.reference[g]/2-(D<L?A:H)-m[g]/2<0,q=B?D<L?D-L:D-G:0;return{[f]:p[f]+q,data:{[f]:Z,centerOffset:D-Z-q,...B&&{alignmentOffset:q}},reset:B}}}),A_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=Dr(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const y=Mr(i),v=Cn(a),b=Mr(a)===a,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=p||(b||!m?[Nl(a)]:C_(a)),E=g!=="none";!p&&E&&S.push(...j_(a,m,g,k));const _=[a,...S],T=await Eo(t,x),P=[];let A=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&P.push(T[y]),h){const D=__(i,o,k);P.push(T[D[0]],T[D[1]])}if(A=[...A,{placement:i,overflows:P}],!P.every(D=>D<=0)){var H,L;const D=(((H=s.flip)==null?void 0:H.index)||0)+1,Z=_[D];if(Z)return{data:{index:D,overflows:A},reset:{placement:Z}};let B=(L=A.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(f){case"bestFit":{var G;const q=(G=A.filter(j=>{if(E){const C=Cn(j.placement);return C===v||C==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(C=>C>0).reduce((C,O)=>C+O,0)]).sort((j,C)=>j[1]-C[1])[0])==null?void 0:G[0];q&&(B=q);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function sm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function om(e){return k_.some(t=>e[t]>=0)}const I_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=Dr(e,t);switch(n){case"referenceHidden":{const s=await Eo(t,{...i,elementContext:"reference"}),o=sm(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:om(o)}}}case"escaped":{const s=await Eo(t,{...i,altBoundary:!0}),o=sm(s,r.floating);return{data:{escapedOffsets:o,escaped:om(o)}}}default:return{}}}}};async function O_(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Mr(r),a=xs(r),c=Cn(r)==="y",u=["left","top"].includes(o)?-1:1,d=s&&c?-1:1,h=Dr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const D_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:o,middlewareData:a}=t,c=await O_(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},M_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...c}=Dr(e,t),u={x:r,y:n},d=await Eo(t,c),h=Cn(Mr(i)),p=af(h);let f=u[p],g=u[h];if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=f+d[x],b=f-d[y];f=Nd(v,f,b)}if(o){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+d[x],b=g-d[y];g=Nd(v,g,b)}const m=a.fn({...t,[p]:f,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:s,[h]:o}}}}}},L_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Dr(e,t),d={x:r,y:n},h=Cn(i),p=af(h);let f=d[p],g=d[h];const m=Dr(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const b=p==="y"?"height":"width",k=s.reference[p]-s.floating[b]+x.mainAxis,S=s.reference[p]+s.reference[b]-x.mainAxis;f<k?f=k:f>S&&(f=S)}if(u){var y,v;const b=p==="y"?"width":"height",k=["top","left"].includes(Mr(i)),S=s.reference[h]-s.floating[b]+(k&&((y=o.offset)==null?void 0:y[h])||0)+(k?0:x.crossAxis),E=s.reference[h]+s.reference[b]+(k?0:((v=o.offset)==null?void 0:v[h])||0)-(k?x.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[p]:f,[h]:g}}}},$_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:c=()=>{},...u}=Dr(e,t),d=await Eo(t,u),h=Mr(i),p=xs(i),f=Cn(i)==="y",{width:g,height:m}=s.floating;let x,y;h==="top"||h==="bottom"?(x=h,y=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,x=p==="end"?"top":"bottom");const v=m-d.top-d.bottom,b=g-d.left-d.right,k=En(m-d[x],v),S=En(g-d[y],b),E=!t.middlewareData.shift;let _=k,T=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=b),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=v),E&&!p){const A=pt(d.left,0),H=pt(d.right,0),L=pt(d.top,0),G=pt(d.bottom,0);f?T=g-2*(A!==0||H!==0?A+H:pt(d.left,d.right)):_=m-2*(L!==0||G!==0?L+G:pt(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:_});const P=await o.getDimensions(a.floating);return g!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function hc(){return typeof window<"u"}function ks(e){return N0(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mr(e){var t;return(t=(N0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function N0(e){return hc()?e instanceof Node||e instanceof vt(e).Node:!1}function Zt(e){return hc()?e instanceof Element||e instanceof vt(e).Element:!1}function pr(e){return hc()?e instanceof HTMLElement||e instanceof vt(e).HTMLElement:!1}function am(e){return!hc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function qo(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function F_(e){return["table","td","th"].includes(ks(e))}function fc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function uf(e){const t=df(),r=Zt(e)?er(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function U_(e){let t=Tn(e);for(;pr(t)&&!ps(t);){if(uf(t))return t;if(fc(t))return null;t=Tn(t)}return null}function df(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ps(e){return["html","body","#document"].includes(ks(e))}function er(e){return vt(e).getComputedStyle(e)}function pc(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tn(e){if(ks(e)==="html")return e;const t=e.assignedSlot||e.parentNode||am(e)&&e.host||mr(e);return am(t)?t.host:t}function P0(e){const t=Tn(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:pr(t)&&qo(t)?t:P0(t)}function _o(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=P0(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=vt(i);if(s){const a=Rd(o);
vendor: 7,125 bytes, line 221
221return t.concat(o,o.visualViewport||[],qo(i)?i:[],a&&r?_o(a):[])}return t.concat(i,_o(i,[],r))}function Rd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function R0(e){const t=er(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=pr(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=jl(r)!==s||jl(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function hf(e){return Zt(e)?e:e.contextElement}function Qi(e){const t=hf(e);if(!pr(t))return _n(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=R0(t);let o=(s?jl(r.width):r.width)/n,a=(s?jl(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const B_=_n(0);function A0(e){const t=vt(e);return!df()||!t.visualViewport?B_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function z_(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==vt(e)?!1:t}function ti(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=hf(e);let o=_n(1);t&&(n?Zt(n)&&(o=Qi(n)):o=Qi(e));const a=z_(s,r,n)?A0(s):_n(0);let c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,d=i.width/o.x,h=i.height/o.y;if(s){const p=vt(s),f=n&&Zt(n)?vt(n):n;let g=p,m=Rd(g);for(;m&&n&&f!==g;){const x=Qi(m),y=m.getBoundingClientRect(),v=er(m),b=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*x.x,k=y.top+(m.clientTop+parseFloat(v.paddingTop))*x.y;c*=x.x,u*=x.y,d*=x.x,h*=x.y,c+=b,u+=k,g=vt(m),m=Rd(g)}}return Pl({width:d,height:h,x:c,y:u})}function H_(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",o=mr(n),a=t?fc(t.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=_n(1);const d=_n(0),h=pr(n);if((h||!h&&!s)&&((ks(n)!=="body"||qo(o))&&(c=pc(n)),pr(n))){const p=ti(n);u=Qi(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x,y:r.y*u.y-c.scrollTop*u.y+d.y}}function V_(e){return Array.from(e.getClientRects())}function Ad(e,t){const r=pc(e).scrollLeft;return t?t.left+r:ti(mr(e)).left+r}function W_(e){const t=mr(e),r=pc(e),n=e.ownerDocument.body,i=pt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=pt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Ad(e);const a=-r.scrollTop;return er(n).direction==="rtl"&&(o+=pt(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function G_(e,t){const r=vt(e),n=mr(e),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;const u=df();(!u||u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:a,y:c}}function q_(e,t){const r=ti(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=pr(e)?Qi(e):_n(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function lm(e,t,r){let n;if(t==="viewport")n=G_(e,r);else if(t==="document")n=W_(mr(e));else if(Zt(t))n=q_(t,r);else{const i=A0(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Pl(n)}function I0(e,t){const r=Tn(e);return r===t||!Zt(r)||ps(r)?!1:er(r).position==="fixed"||I0(r,t)}function K_(e,t){const r=t.get(e);if(r)return r;let n=_o(e,[],!1).filter(a=>Zt(a)&&ks(a)!=="body"),i=null;const s=er(e).position==="fixed";let o=s?Tn(e):e;for(;Zt(o)&&!ps(o);){const a=er(o),c=uf(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qo(o)&&!c&&I0(e,o))?n=n.filter(d=>d!==o):i=a,o=Tn(o)}return t.set(e,n),n}function J_(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?fc(t)?[]:K_(t,this._c):[].concat(r),n],a=o[0],c=o.reduce((u,d)=>{const h=lm(t,d,i);return u.top=pt(h.top,u.top),u.right=En(h.right,u.right),u.bottom=En(h.bottom,u.bottom),u.left=pt(h.left,u.left),u},lm(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Q_(e){const{width:t,height:r}=R0(e);return{width:t,height:r}}function Y_(e,t,r){const n=pr(t),i=mr(t),s=r==="fixed",o=ti(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=_n(0);if(n||!n&&!s)if((ks(t)!=="body"||qo(i))&&(a=pc(t)),n){const f=ti(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else i&&(c.x=Ad(i));let u=0,d=0;if(i&&!n&&!s){const f=i.getBoundingClientRect();d=f.top+a.scrollTop,u=f.left+a.scrollLeft-Ad(i,f)}const h=o.left+a.scrollLeft-c.x-u,p=o.top+a.scrollTop-c.y-d;return{x:h,y:p,width:o.width,height:o.height}}function uu(e){return er(e).position==="static"}function cm(e,t){if(!pr(e)||er(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return mr(e)===r&&(r=r.ownerDocument.body),r}function O0(e,t){const r=vt(e);if(fc(e))return r;if(!pr(e)){let i=Tn(e);for(;i&&!ps(i);){if(Zt(i)&&!uu(i))return i;i=Tn(i)}return r}let n=cm(e,t);for(;n&&F_(n)&&uu(n);)n=cm(n,t);return n&&ps(n)&&uu(n)&&!uf(n)?r:n||U_(e)||r}const X_=async function(e){const t=this.getOffsetParent||O0,r=this.getDimensions,n=await r(e.floating);return{reference:Y_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Z_(e){return er(e).direction==="rtl"}const eC={convertOffsetParentRelativeRectToViewportRelativeRect:H_,getDocumentElement:mr,getClippingRect:J_,getOffsetParent:O0,getElementRects:X_,getClientRects:V_,getDimensions:Q_,getScale:Qi,isElement:Zt,isRTL:Z_};function tC(e,t){let r=null,n;const i=mr(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:h,height:p}=e.getBoundingClientRect();if(a||t(),!h||!p)return;const f=Sa(d),g=Sa(i.clientWidth-(u+h)),m=Sa(i.clientHeight-(d+p)),x=Sa(u),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-x+"px",threshold:pt(0,En(1,c))||1};let b=!0;function k(S){const E=S[0].intersectionRatio;if(E!==c){if(!b)return o();E?o(!1,E):n=setTimeout(()=>{o(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(k,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,v)}r.observe(e)}return o(!0),s}function rC(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=hf(e),d=i||s?[...u?_o(u):[],..._o(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const h=u&&a?tC(u,r):null;let p=-1,f=null;o&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),r()}),u&&!c&&f.observe(u),f.observe(t));let g,m=c?ti(e):null;c&&x();function x(){const y=ti(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&r(),m=y,g=requestAnimationFrame(x)}return r(),()=>{var y;d.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const nC=D_,iC=M_,sC=A_,oC=$_,aC=I_,um=R_,lC=L_,cC=(e,t,r)=>{const n=new Map,i={platform:eC,...r},s={...i.platform,_c:n};return P_(e,t,{...i,platform:s})};var Ya=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Rl(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 221
221if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Rl(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!Rl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function D0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dm(e,t){const r=D0(e);return Math.round(t*r)/r}function du(e){const t=w.useRef(e);return Ya(()=>{t.current=e}),t}function uC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,h]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=w.useState(n);Rl(p,n)||f(n);const[g,m]=w.useState(null),[x,y]=w.useState(null),v=w.useCallback(j=>{j!==E.current&&(E.current=j,m(j))},[]),b=w.useCallback(j=>{j!==_.current&&(_.current=j,y(j))},[]),k=s||g,S=o||x,E=w.useRef(null),_=w.useRef(null),T=w.useRef(d),P=c!=null,A=du(c),H=du(i),L=du(u),G=w.useCallback(()=>{if(!E.current||!_.current)return;const j={placement:t,strategy:r,middleware:p};H.current&&(j.platform=H.current),cC(E.current,_.current,j).then(C=>{const O={...C,isPositioned:L.current!==!1};D.current&&!Rl(T.current,O)&&(T.current=O,Wo.flushSync(()=>{h(O)}))})},[p,t,r,H,L]);Ya(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,h(j=>({...j,isPositioned:!1})))},[u]);const D=w.useRef(!1);Ya(()=>(D.current=!0,()=>{D.current=!1}),[]),Ya(()=>{if(k&&(E.current=k),S&&(_.current=S),k&&S){if(A.current)return A.current(k,S,G);G()}},[k,S,G,A,P]);const Z=w.useMemo(()=>({reference:E,floating:_,setReference:v,setFloating:b}),[v,b]),B=w.useMemo(()=>({reference:k,floating:S}),[k,S]),q=w.useMemo(()=>{const j={position:r,left:0,top:0};if(!B.floating)return j;const C=dm(B.floating,d.x),O=dm(B.floating,d.y);return a?{...j,transform:"translate("+C+"px, "+O+"px)",...D0(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:C,top:O}},[r,a,B.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:G,refs:Z,elements:B,floatingStyles:q}),[d,G,Z,B,q])}const dC=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?um({element:n.current,padding:i}).fn(r):{}:n?um({element:n,padding:i}).fn(r):{}}}},hC=(e,t)=>({...nC(e),options:[e,t]}),fC=(e,t)=>({...iC(e),options:[e,t]}),pC=(e,t)=>({...lC(e),options:[e,t]}),mC=(e,t)=>({...sC(e),options:[e,t]}),gC=(e,t)=>({...oC(e),options:[e,t]}),yC=(e,t)=>({...aC(e),options:[e,t]}),vC=(e,t)=>({...dC(e),options:[e,t]});var wC="Arrow",M0=w.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return l.jsx(xe.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});M0.displayName=wC;var bC=M0;function xC(e){const[t,r]=w.useState(void 0);return Or(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ff="Popper",[L0,mc]=ii(ff),[kC,$0]=L0(ff),F0=e=>{const{__scopePopper:t,children:r}=e,[n,i]=w.useState(null);return l.jsx(kC,{scope:t,anchor:n,onAnchorChange:i,children:r})};F0.displayName=ff;var U0="PopperAnchor",B0=w.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=$0(U0,r),o=w.useRef(null),a=$e(t,o);return w.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:l.jsx(xe.div,{...i,ref:a})});B0.displayName=U0;var pf="PopperContent",[SC,EC]=L0(pf),z0=w.forwardRef((e,t)=>
vendor: 4,214 bytes, line 221
221{var ee,gr,Ie,tr,Ur,di;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=e,x=$0(pf,r),[y,v]=w.useState(null),b=$e(t,Br=>v(Br)),[k,S]=w.useState(null),E=xC(k),_=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,P=n+(s!=="center"?"-"+s:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},H=Array.isArray(u)?u:[u],L=H.length>0,G={padding:A,boundary:H.filter(CC),altBoundary:L},{refs:D,floatingStyles:Z,placement:B,isPositioned:q,middlewareData:j}=uC({strategy:"fixed",placement:P,whileElementsMounted:(...Br)=>rC(...Br,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[hC({mainAxis:i+T,alignmentAxis:o}),c&&fC({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?pC():void 0,...G}),c&&mC({...G}),gC({...G,apply:({elements:Br,rects:Zo,availableWidth:Nc,availableHeight:ea})=>{const{width:Pc,height:_s}=Zo.reference,hi=Br.floating.style;hi.setProperty("--radix-popper-available-width",`${Nc}px`),hi.setProperty("--radix-popper-available-height",`${ea}px`),hi.setProperty("--radix-popper-anchor-width",`${Pc}px`),hi.setProperty("--radix-popper-anchor-height",`${_s}px`)}}),k&&vC({element:k,padding:a}),TC({arrowWidth:_,arrowHeight:T}),p&&yC({strategy:"referenceHidden",...G})]}),[C,O]=W0(B),z=bt(g);Or(()=>{q&&(z==null||z())},[q,z]);const U=(ee=j.arrow)==null?void 0:ee.x,Q=(gr=j.arrow)==null?void 0:gr.y,X=((Ie=j.arrow)==null?void 0:Ie.centerOffset)!==0,[ye,ke]=w.useState();return Or(()=>{y&&ke(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:q?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(tr=j.transformOrigin)==null?void 0:tr.x,(Ur=j.transformOrigin)==null?void 0:Ur.y].join(" "),...((di=j.hide)==null?void 0:di.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(SC,{scope:r,placedSide:C,onArrowChange:S,arrowX:U,arrowY:Q,shouldHideArrow:X,children:l.jsx(xe.div,{"data-side":C,"data-align":O,...m,ref:b,style:{...m.style,animation:q?void 0:"none"}})})})});z0.displayName=pf;var H0="PopperArrow",_C={top:"bottom",right:"left",bottom:"top",left:"right"},V0=w.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,s=EC(H0,n),o=_C[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(bC,{...i,ref:r,style:{...i.style,display:"block"}})})});V0.displayName=H0;function CC(e){return e!==null}var TC=e=>({name:"transformOrigin",options:e,fn(t){var x,y,v;const{placement:r,rects:n,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=W0(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+c/2;let g="",m="";return u==="bottom"?(g=o?h:`${p}px`,m=`${-c}px`):u==="top"?(g=o?h:`${p}px`,m=`${n.floating.height+c}px`):u==="right"?(g=`${-c}px`,m=o?h:`${f}px`):u==="left"&&(g=`${n.floating.width+c}px`,m=o?h:`${f}px`),{data:{x:g,y:m}}}});function W0(e){const[t,r="center"]=e.split("-");return[t,r]}var jC=F0,G0=B0,q0=z0,K0=V0,[gc,CI]=ii("Tooltip",[mc]),mf=mc(),J0="TooltipProvider",NC=700,hm="tooltip.open",[PC,Q0]=gc(J0),Y0=e=>{const{__scopeTooltip:t,delayDuration:r=NC,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,o=w.useRef(!0),a=w.useRef(!1),c=w.useRef(0);return w.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(PC,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,213 bytes, line 221
221o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};Y0.displayName=J0;var X0="Tooltip",[TI,yc]=gc(X0),Id="TooltipTrigger",RC=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=yc(Id,r),s=Q0(Id,r),o=mf(r),a=w.useRef(null),c=$e(t,a,i.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(G0,{asChild:!0,...o,children:l.jsx(xe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:c,onPointerMove:W(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:W(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:W(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:W(e.onBlur,i.onClose),onClick:W(e.onClick,i.onClose)})})});RC.displayName=Id;var AC="TooltipPortal",[jI,IC]=gc(AC,{forceMount:void 0}),ms="TooltipContent",Z0=w.forwardRef((e,t)=>{const r=IC(ms,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,o=yc(ms,e.__scopeTooltip);return l.jsx(si,{present:n||o.open,children:o.disableHoverableContent?l.jsx(ew,{side:i,...s,ref:t}):l.jsx(OC,{side:i,...s,ref:t})})}),OC=w.forwardRef((e,t)=>{const r=yc(ms,e.__scopeTooltip),n=Q0(ms,e.__scopeTooltip),i=w.useRef(null),s=$e(t,i),[o,a]=w.useState(null),{trigger:c,onClose:u}=r,d=i.current,{onPointerInTransitChange:h}=n,p=w.useCallback(()=>{a(null),h(!1)},[h]),f=w.useCallback((g,m)=>{const x=g.currentTarget,y={x:g.clientX,y:g.clientY},v=FC(y,x.getBoundingClientRect()),b=UC(y,v),k=BC(m.getBoundingClientRect()),S=HC([...b,...k]);a(S),h(!0)},[h]);return w.useEffect(()=>()=>p(),[p]),w.useEffect(()=>{if(c&&d){const g=x=>f(x,d),m=x=>f(x,c);return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",m)}}},[c,d,f,p]),w.useEffect(()=>{if(o){const g=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},v=(c==null?void 0:c.contains(x))||(d==null?void 0:d.contains(x)),b=!zC(y,o);v?p():b&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,o,u,p]),l.jsx(ew,{...e,ref:s})}),[DC,MC]=gc(X0,{isInside:!1}),LC=Yk("TooltipContent"),ew=w.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,c=yc(ms,r),u=mf(r),{onClose:d}=c;return w.useEffect(()=>(document.addEventListener(hm,d),()=>document.removeEventListener(hm,d)),[d]),w.useEffect(()=>{if(c.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(oc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(q0,{"data-state":c.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:[l.jsx(LC,{children:n}),l.jsx(DC,{scope:r,isInside:!0,children:l.jsx(bS,{id:c.contentId,role:"tooltip",children:i||n})})]})})});Z0.displayName=ms;var tw="TooltipArrow",$C=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=mf(r);return MC(tw,r).isInside?null:l.jsx(K0,{...i,...n,ref:t})});$C.displayName=tw;function FC(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function UC(e,t,r=5){const n=[];
221switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function BC(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function zC(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],c=t[o],u=a.x,d=a.y,h=c.x,p=c.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(i=!i)}return i}function HC(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),VC(t)}function VC(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],o=r[r.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var WC=Y0,rw=Z0;const GC=WC,qC=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>l.jsx(rw,{ref:n,sideOffset:t,className:pe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));qC.displayName=rw.displayName;var vc=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(){}},wc=typeof window>"u"||"Deno"in globalThis;function Ht(){}function KC(e,t){return typeof e=="function"?e(t):e}function JC(e){return typeof e=="number"&&e>=0&&e!==1/0}function QC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Od(e,t){return typeof e=="function"?e(t):e}function YC(e,t){return typeof e=="function"?e(t):e}function fm(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==gf(o,t.options))return!1}else if(!To(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function pm(e,t){const{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Co(t.options.mutationKey)!==Co(s))return!1}else if(!To(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function gf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Co)(e)}function Co(e){return JSON.stringify(e,(t,r)=>Dd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function To(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>To(e[r],t[r])):!1}function nw(e,t){if(e===t)return e;const r=mm(e)&&mm(t);if(r||Dd(e)&&Dd(t)){const n=r?e:Object.keys(e),i=n.length,s=r?t:Object.keys(t),o=s.length,a=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<o;d++){const h=r?d:s[d];(!r&&c.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,u++):(a[h]=nw(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&u++)}return i===o&&u===i?e:a}return t}function mm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dd(e){if(!gm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!gm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gm(e){return Object.prototype.toString.call(e)==="[object Object]"}function XC(e){return new Promise(t=>{setTimeout(t,e)})}function ZC(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?nw(e,t):t}function eT(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function tT(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var yf=Symbol();function iw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var zn,sn,Zi,gg,rT=(gg=class extends vc{constructor(){super();ie(this,zn);ie(this,sn);ie(this,Zi);J(this,Zi,t=>{if(!wc&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,sn)||this.setEventListener(N(this,Zi))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,sn))==null||t.call(this),J(this,sn,void 0))}setEventListener(t){var r;J(this,Zi,t),(r=N(this,sn))==null||r.call(this),J(this,sn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){N(this,zn)!==t&&(J(this,zn,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 13,606 bytes, line 221
221this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof N(this,zn)=="boolean"?N(this,zn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zn=new WeakMap,sn=new WeakMap,Zi=new WeakMap,gg),sw=new rT,es,on,ts,yg,nT=(yg=class extends vc{constructor(){super();ie(this,es,!0);ie(this,on);ie(this,ts);J(this,ts,t=>{if(!wc&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){N(this,on)||this.setEventListener(N(this,ts))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,on))==null||t.call(this),J(this,on,void 0))}setEventListener(t){var r;J(this,ts,t),(r=N(this,on))==null||r.call(this),J(this,on,t(this.setOnline.bind(this)))}setOnline(t){N(this,es)!==t&&(J(this,es,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return N(this,es)}},es=new WeakMap,on=new WeakMap,ts=new WeakMap,yg),Al=new nT;function iT(){let e,t;const r=new Promise((i,s)=>{e=i,t=s});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function sT(e){return Math.min(1e3*2**e,3e4)}function ow(e){return(e??"online")==="online"?Al.isOnline():!0}var aw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hu(e){return e instanceof aw}function lw(e){let t=!1,r=0,n=!1,i;const s=iT(),o=m=>{var x;n||(p(new aw(m)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>sw.isFocused()&&(e.networkMode==="always"||Al.isOnline())&&e.canRun(),d=()=>ow(e.networkMode)&&e.canRun(),h=m=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,m),i==null||i(),s.resolve(m))},p=m=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,m),i==null||i(),s.reject(m))},f=()=>new Promise(m=>{var x;i=y=>{(n||u())&&m(y)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;i=void 0,n||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(n)return;let m;const x=r===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(h).catch(y=>{var E;if(n)return;const v=e.retry??(wc?0:3),b=e.retryDelay??sT,k=typeof b=="function"?b(r,y):b,S=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,y);if(t||!S){p(y);return}r++,(E=e.onFail)==null||E.call(e,r,y),XC(k).then(()=>u()?void 0:f()).then(()=>{t?p(y):g()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?g():f().then(g),s)}}var oT=e=>setTimeout(e,0);function aT(){let e=[],t=0,r=a=>{a()},n=a=>{a()},i=oT;const s=a=>{t?e.push(a):i(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{n(()=>{a.forEach(c=>{r(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{i=a}}}var tt=aT(),Hn,vg,cw=(vg=class{constructor(){ie(this,Hn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),JC(this.gcTime)&&J(this,Hn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wc?1/0:5*60*1e3))}clearGcTimeout(){N(this,Hn)&&(clearTimeout(N(this,Hn)),J(this,Hn,void 0))}},Hn=new WeakMap,vg),rs,Vn,Ct,Wn,qe,$o,Gn,Wt,xr,wg,lT=(wg=class extends cw{constructor(t){super();ie(this,Wt);ie(this,rs);ie(this,Vn);ie(this,Ct);ie(this,Wn);ie(this,qe);ie(this,$o);ie(this,Gn);J(this,Gn,!1),J(this,$o,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,Wn,t.client),J(this,Ct,N(this,Wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,rs,uT(this.options)),this.state=t.state??N(this,rs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,qe))==null?void 0:t.promise}setOptions(t){this.options={...N(this,$o),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Ct).remove(this)}setData(t,r){const n=ZC(this.state.data,t,this.options);return Ve(this,Wt,xr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Ve(this,Wt,xr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=N(this,qe))==null?void 0:n.promise;return(i=N(this,qe))==null||i.cancel(t),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,rs))}isActive(){return this.observers.some(t=>YC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Od(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:!QC(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,qe))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,qe))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,Ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(N(this,qe)&&(N(this,Gn)?N(this,qe).cancel({revert:!0}):N(this,qe).cancelRetry()),this.scheduleGc()),N(this,Ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ve(this,Wt,xr).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,qe))return N(this,qe).continueRetry(),N(this,qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(J(this,Gn,!0),n.signal)})},s=()=>{const p=iw(this.options,r),g=(()=>{const m={client:N(this,Wn),queryKey:this.queryKey,meta:this.meta};return i(m),m})();return J(this,Gn,!1),this.options.persister?this.options.persister(p,g,this):p(g)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:N(this,Wn),state:this.state,fetchFn:s};return i(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),J(this,Vn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ve(this,Wt,xr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var f,g,m,x;hu(p)&&p.silent||Ve(this,Wt,xr).call(this,{type:"error",error:p}),hu(p)||((g=(f=N(this,Ct).config).onError)==null||g.call(f,p,this),(x=(m=N(this,Ct).config).onSettled)==null||x.call(m,this.state.data,p,this)),this.scheduleGc()};return J(this,qe,lw({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,g,m,x;if(p===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(y){c(y);return}(g=(f=N(this,Ct).config).onSuccess)==null||g.call(f,p,this),(x=(m=N(this,Ct).config).onSettled)==null||x.call(m,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,f)=>{Ve(this,Wt,xr).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Ve(this,Wt,xr).call(this,{type:"pause"})},onContinue:()=>{Ve(this,Wt,xr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,qe).start()}},rs=new WeakMap,Vn=new WeakMap,Ct=new WeakMap,Wn=new WeakMap,qe=new WeakMap,$o=new WeakMap,Gn=new WeakMap,Wt=new WeakSet,xr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...cT(n.data,this.options),fetchMeta:t.meta??null};case"success":return J(this,Vn,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return hu(i)&&i.revert&&N(this,Vn)?{...N(this,Vn),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),tt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),N(this,Ct).notify({query:this,type:"updated",action:t})})},wg);function cT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ow(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var or,bg,dT=(bg=class extends vc{constructor(t={}){super();ie(this,or);this.config=t,J(this,or,new Map)}build(t,r,n){const i=r.queryKey,s=r.queryHash??gf(i,r);let o=this.get(s);return o||(o=new lT({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){N(this,or).has(t.queryHash)||(N(this,or).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,or).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,or).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,or).get(t)}getAll(){return[...N(this,or).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>fm(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>fm(t,n)):r}notify(t){tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},or=new WeakMap,bg),ar,Xe,qn,lr,Qr,xg,hT=(xg=class extends cw{constructor(t){super();ie(this,lr);ie(this,ar);ie(this,Xe);ie(this,qn);this.mutationId=t.mutationId,J(this,Xe,t.mutationCache),J(this,ar,[]),this.state=t.state||fT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,ar).includes(t)||(N(this,ar).push(t),this.clearGcTimeout(),N(this,Xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,ar,N(this,ar).filter(r=>r!==t)),this.scheduleGc(),N(this,Xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,ar).length||(this.state.status==="pending"?this.scheduleGc():N(this,Xe).remove(this))}continue(){var t;return((t=N(this,qn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,c,u,d,h,p,f,g,m,x,y,v,b,k,S,E,_,T;const r=()=>{Ve(this,lr,Qr).call(this,{type:"continue"})};J(this,qn,lw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{Ve(this,lr,Qr).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{Ve(this,lr,Qr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Xe).canRun(this)}));const n=this.state.status==="pending",i=!N(this,qn).canStart();try{if(n)r();else{Ve(this,lr,Qr).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=N(this,Xe).config).onMutate)==null?void 0:o.call(s,t,this));const A=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));A!==this.state.context&&Ve(this,lr,Qr).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const P=await N(this,qn).start();return await((d=(u=N(this,Xe).config).onSuccess)==null?void 0:d.call(u,P,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,P,t,this.state.context)),await((g=(f=N(this,Xe).config).onSettled)==null?void 0:g.call(f,P,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,P,null,t,this.state.context)),Ve(this,lr,Qr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(y=N(this,Xe).config).onError)==null?void 0:v.call(y,P,t,this.state.context,this)),await((k=(b=this.options).onError)==null?void 0:k.call(b,P,t,this.state.context)),await((E=(S=N(this,Xe).config).onSettled)==null?void 0:E.
221call(S,void 0,P,this.state.variables,this.state.context,this)),await((T=(_=this.options).onSettled)==null?void 0:T.call(_,void 0,P,t,this.state.context)),P}finally{Ve(this,lr,Qr).call(this,{type:"error",error:P})}}finally{N(this,Xe).runNext(this)}}},ar=new WeakMap,Xe=new WeakMap,qn=new WeakMap,lr=new WeakSet,Qr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),tt.batch(()=>{N(this,ar).forEach(n=>{n.onMutationUpdate(t)}),N(this,Xe).notify({mutation:this,type:"updated",action:t})})},xg);function fT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cr,Gt,Fo,kg,pT=(kg=class extends vc{constructor(t={}){super();ie(this,Cr);ie(this,Gt);ie(this,Fo);this.config=t,J(this,Cr,new Set),J(this,Gt,new Map),J(this,Fo,0)}build(t,r,n){const i=new hT({mutationCache:this,mutationId:++ra(this,Fo)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){N(this,Cr).add(t);const r=Ea(t);if(typeof r=="string"){const n=N(this,Gt).get(r);n?n.push(t):N(this,Gt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Cr).delete(t)){const r=Ea(t);if(typeof r=="string"){const n=N(this,Gt).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&N(this,Gt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Ea(t);if(typeof r=="string"){const n=N(this,Gt).get(r),i=n==null?void 0:n.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Ea(t);if(typeof r=="string"){const i=(n=N(this,Gt).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{N(this,Cr).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Cr).clear(),N(this,Gt).clear()})}getAll(){return Array.from(N(this,Cr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pm(r,n))}findAll(t={}){return this.getAll().filter(r=>pm(t,r))}notify(t){tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 6,886 bytes, lines 221-230
221r.state.isPaused);return tt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ht))))}},Cr=new WeakMap,Gt=new WeakMap,Fo=new WeakMap,kg);function Ea(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ym(e){return{onFetch:(t,r)=>{var d,h,p,f,g;const n=t.options,i=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let m=!1;const x=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=iw(t.options,t.fetchOptions),v=async(b,k,S)=>{if(m)return Promise.reject();if(k==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return x(H),H})(),T=await y(_),{maxPages:P}=t.options,A=S?tT:eT;return{pages:A(b.pages,T,P),pageParams:A(b.pageParams,k,P)}};if(i&&s.length){const b=i==="backward",k=b?mT:vm,S={pages:s,pageParams:o},E=k(n,S);a=await v(S,E,b)}else{const b=e??s.length;do{const k=c===0?o[0]??n.initialPageParam:vm(n,a);if(c>0&&k==null)break;a=await v(a,k),c++}while(c<b)}return a};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function vm(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function mT(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Ee,an,ln,ns,is,cn,ss,os,Sg,gT=(Sg=class{constructor(e={}){ie(this,Ee);ie(this,an);ie(this,ln);ie(this,ns);ie(this,is);ie(this,cn);ie(this,ss);ie(this,os);J(this,Ee,e.queryCache||new dT),J(this,an,e.mutationCache||new pT),J(this,ln,e.defaultOptions||{}),J(this,ns,new Map),J(this,is,new Map),J(this,cn,0)}mount(){ra(this,cn)._++,N(this,cn)===1&&(J(this,ss,sw.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Ee).onFocus())})),J(this,os,Al.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Ee).onOnline())})))}unmount(){var e,t;ra(this,cn)._--,N(this,cn)===0&&((e=N(this,ss))==null||e.call(this),J(this,ss,void 0),(t=N(this,os))==null||t.call(this),J(this,os,void 0))}isFetching(e){return N(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,an).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=N(this,Ee).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=N(this,Ee).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Od(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return N(this,Ee).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=N(this,Ee).get(n.queryHash),s=i==null?void 0:i.state.data,o=KC(t,s);if(o!==void 0)return N(this,Ee).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return tt.batch(()=>N(this,Ee).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=N(this,Ee).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=N(this,Ee);tt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=N(this,Ee);return tt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=tt.batch(()=>N(this,Ee).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Ht).catch(Ht)}invalidateQueries(e,t={}){return tt.batch(()=>(N(this,Ee).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=tt.batch(()=>N(this,Ee).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ht)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=N(this,Ee).build(this,t);return r.isStaleByTime(Od(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=ym(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}ensureInfiniteQueryData(e){return e.behavior=ym(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Al.isOnline()?N(this,an).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Ee)}getMutationCache(){return N(this,an)}getDefaultOptions(){return N(this,ln)}setDefaultOptions(e){J(this,ln,e)}setQueryDefaults(e,t){N(this,ns).set(Co(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,ns).values()],r={};return t.forEach(n=>{To(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){N(this,is).set(Co(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,is).values()],r={};return t.forEach(n=>{To(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gf(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===yf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Ee).clear(),N(this,an).clear()}},Ee=new WeakMap,an=new WeakMap,ln=new WeakMap,ns=new WeakMap,is=new WeakMap,cn=new WeakMap,ss=new WeakMap,os=new WeakMap,Sg),yT=w.createContext(void 0),vT=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(yT.Provider,{value:e,children:t}));/** 222 * @remix-run/router v1.23.0 223 * 224 * Copyright (c) Remix Software Inc. 225 * 226 * This source code is licensed under the MIT license found in the 227 * LICENSE.md file in the root directory of this source tree. 228 * 229 * @license MIT 230 */function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,028 bytes, line 230
230for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jo.apply(this,arguments)}var hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hn||(hn={}));const wm="popstate";function wT(e){e===void 0&&(e={});function t(n,i){let{pathname:s,search:o,hash:a}=n.location;return Md("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Il(i)}return xT(t,r,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bT(){return Math.random().toString(36).substr(2,8)}function bm(e,t){return{usr:e.state,key:e.key,idx:t}}function Md(e,t,r,n){return r===void 0&&(r=null),jo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ss(t):t,{state:r,key:t&&t.key||n||bT()})}function Il(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ss(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function xT(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=hn.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(jo({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=hn.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:a,location:m.location,delta:y})}function p(x,y){a=hn.Push;let v=Md(m.location,x,y);u=d()+1;let b=bm(v,u),k=m.createHref(v);try{o.pushState(b,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(k)}s&&c&&c({action:a,location:m.location,delta:1})}function f(x,y){a=hn.Replace;let v=Md(m.location,x,y);u=d();let b=bm(v,u),k=m.createHref(v);o.replaceState(b,"",k),s&&c&&c({action:a,location:m.location,delta:0})}function g(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof x=="string"?x:Il(x);return v=v.replace(/ $/,"%20"),Pe(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let m={get action(){return a},get location(){return e(i,o)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(wm,h),c=x,()=>{i.removeEventListener(wm,h),c=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let y=g(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:f,go(x){return o.go(x)}};return m}var xm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xm||(xm={}));function kT(e,t,r){return r===void 0&&(r="/"),ST(e,t,r,!1)}function ST(e,t,r,n){let i=typeof t=="string"?Ss(t):t,s=vf(i.pathname||"/",r);if(s==null)return null;let o=dw(e);ET(o);let a=null;for(let c=0;a==null&&c<o.length;++c){let u=DT(s);a=IT(o[c],u,n)}return a}function dw(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(s,o,a)=>{let c={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(Pe(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=xn([n,c.relativePath]),d=r.concat(c);s.children&&s.children.length>0&&(Pe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),dw(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:RT(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let c of hw(s.path))i(s,o,c)}),t}function hw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=hw(n.join("/")),a=[];return a.push(...o.map(c=>c===""?s:[s,c].join("/"))),i&&a.push(...o),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function ET(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:AT(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const _T=/^:[\w-]+$/,CT=3,TT=2,jT=1,NT=10,PT=-2,km=e=>e==="*";function RT(e,t){let r=e.split("/"),n=r.length;return r.some(km)&&(n+=PT),t&&(n+=TT),r.filter(i=>!km(i)).reduce((i,s)=>i+(_T.test(s)?CT:s===""?jT:NT),n)}function AT(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function IT(e,t,r){let{routesMeta:n}=e,i={},s="/",o=[];for(let a=0;a<n.length;++a){let c=n[a],u=a===n.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=Sm({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=Sm({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,180 bytes, lines 230-239
230Object.assign(i,h.params),o.push({params:i,pathname:xn([s,h.pathname]),pathnameBase:FT(xn([s,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(s=xn([s,h.pathnameBase]))}return o}function Sm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=OT(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let m=a[h]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const g=a[h];return f&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function OT(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),uw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,c)=>(n.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function DT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return uw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function MT(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ss(e):e;return{pathname:r?r.startsWith("/")?r:LT(r,t):t,search:UT(n),hash:BT(i)}}function LT(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function fu(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $T(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function fw(e,t){let r=$T(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function pw(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ss(e):(i=jo({},e),Pe(!i.pathname||!i.pathname.includes("?"),fu("?","pathname","search",i)),Pe(!i.pathname||!i.pathname.includes("#"),fu("#","pathname","hash",i)),Pe(!i.search||!i.search.includes("#"),fu("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let c=MT(i,a),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const xn=e=>e.join("/").replace(/\/\/+/g,"/"),FT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,BT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mw=["post","put","patch","delete"];new Set(mw);const HT=["get",...mw];new Set(HT);/** 231 * React Router v6.30.1 232 * 233 * Copyright (c) Remix Software Inc. 234 * 235 * This source code is licensed under the MIT license found in the 236 * LICENSE.md file in the root directory of this source tree. 237 * 238 * @license MIT 239 */function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},No.apply(this,arguments)}const wf=w.createContext(null),VT=w.createContext(null),oi=w.createContext(null),bc=w.createContext(null),ai=w.createContext({outlet:null,matches:[],isDataRoute:!1}),gw=w.createContext(null);function WT(e,t){let{relative:r}=t===void 0?{}:t;Ko()||Pe(!1);let{basename:n,navigator:i}=w.useContext(oi),{hash:s,pathname:o,search:a}=vw(e,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:xn([n,o])),i.createHref({pathname:c,search:a,hash:s})}function Ko(){return w.useContext(bc)!=null}function li(){return Ko()||Pe(!1),w.useContext(bc).location}function yw(e){w.useContext(oi).static||w.useLayoutEffect(e)}function bf(){let{isDataRoute:e}=w.useContext(ai);return e?i2():GT()}function GT(){Ko()||Pe(!1);let e=w.useContext(wf),{basename:t,future:r,navigator:n}=w.useContext(oi),{matches:i}=w.useContext(ai),{pathname:s}=li(),o=JSON.stringify(fw(i,r.v7_relativeSplatPath)),a=w.useRef(!1);return yw(()=>{a.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let h=pw(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xn([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,o,s,e])}function vw(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(oi),{matches:i}=w.useContext(ai),{pathname:s}=li(),o=JSON.stringify(fw(i,n.v7_relativeSplatPath));return w.useMemo(()=>pw(e,JSON.parse(o),s,r==="path"),[e,o,s,r])}function qT(e,t){return KT(e,t)}function KT(e,t,r,n){Ko()||Pe(!1);let{navigator:i}=w.useContext(oi),{matches:s}=w.useContext(ai),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=li(),d;if(t){var h;let x=typeof t=="string"?Ss(t):t;c==="/"||(h=x.pathname)!=null&&h.startsWith(c)||Pe(!1),d=x}else d=u;let p=d.pathname||"/",f=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=kT(e,{pathname:f}),m=ZT(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:xn([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:xn([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,r,n);return t&&m?w.createElement(bc.Provider,{value:{location:No({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:hn.Pop}},m):m}function JT(){let e=n2(),t=zT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:i},r):null,null)}const QT=w.createElement(JT,null);class YT extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(ai.Provider,{value:this.props.routeContext},w.createElement(gw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function XT(e){let{routeContext:t,match:r,children:n}=e,i=w.useContext(wf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(ai.Provider,{value:t},n)}function ZT(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(i=r)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Pe(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:p,errors:f}=r,g=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||g){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,p)=>{let f,g=!1,m=null,x=null;r&&(f=a&&h.route.id?a[h.route.id]:void 0,m=h.route.errorElement||QT,c&&(u<0&&p===0?(g=!0,x=null):u===p&&(g=!0,x=h.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),v=()=>{let b;return f?b=m:g?b=x:h.route.Component?b=w.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=d,w.createElement(XT,{match:h,routeC
239ontext:{outlet:d,matches:y,isDataRoute:r!=null},children:b})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?w.createElement(YT,{location:r.location,revalidation:r.revalidation,component:m,error:f,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var ww=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ww||{}),Ol=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ol||{});function e2(e){let t=w.useContext(wf);return t||Pe(!1),t}function t2(e){let t=w.useContext(VT);return t||Pe(!1),t}function r2(e){let t=w.useContext(ai);return t||Pe(!1),t}function bw(e){let t=r2(),r=t.matches[t.matches.length-1];return r.route.id||Pe(!1),r.route.id}function n2(){var e;let t=w.useContext(gw),r=t2(Ol.UseRouteError),n=bw(Ol.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function i2(){let{router:e}=e2(ww.UseNavigateStable),t=bw(Ol.UseNavigateStable),r=w.useRef(!1);return yw(()=>{r.current=!0}),w.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,No({fromRouteId:t},s)))},[e,t])}function s2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ye(e){Pe(!1)}function o2(e){let{basename:t="/",children:r=null,location:n,navigationType:i=hn.Pop,navigator:s,static:o=!1,future:a}=e;Ko()&&Pe(!1);let c=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:c,navigator:s,static:o,future:No({v7_relativeSplatPath:!1},a)}),[c,a,s,o]);typeof n=="string"&&(n=Ss(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:g="default"}=n,m=w.useMemo(()=>{let x=vf(d,c);return x==null?null:{location:{pathname:x,search:h,hash:p,state:f,key:g},navigationType:i}},[c,d,h,p,f,g,i]);return m==null?null:w.createElement(oi.Provider,{value:u},w.createElement(bc.Provider,{children:r,value:m}))}function a2(e){let{children:t,location:r}=e;return qT(Ld(t),r)}new Promise(()=>{});function Ld(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,i)=>{if(!w.isValidElement(n))return;let s=[...t,i];if(n.type===w.Fragment){r.push.apply(r,Ld(n.props.children,s));return}n.type!==Ye&&Pe(!1),!n.props.index||!n.props.children||Pe(!1);let o={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Ld(n.props.children,s)),r.push(o)}),r}/** 240 * React Router DOM v6.30.1 241 * 242 * Copyright (c) Remix Software Inc. 243 * 244 * This source code is licensed under the MIT license found in the 245 * LICENSE.md file in the root directory of this source tree. 246 * 247 * @license MIT 248 */function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d.apply(this,arguments)}function l2(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u2(e,t){return e.button===0&&(!t||t==="_self")&&!c2(e)}function Fd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function d2(e,t){let r=Fd(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(s=>{r.append(i,s)})}),r}const h2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],f2="6";try{window.__reactRouterVersion=f2}catch{}const p2="startTransition",Em=oh[p2];function m2(e){let{basename:t,children:r,future:n,window:i}=e,s=w.useRef();s.current==null&&(s.current=wT({window:i,v5Compat:!0}));let o=s.current,[a,c]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=w.useCallback(h=>{u&&Em?Em(()=>c(h)):c(h)},[c,u]);return w.useLayoutEffect(()=>o.listen(d),[o,d]),w.useEffect(()=>s2(n),[n]),w.createElement(o2,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const g2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=w.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:o,state:a,target:c,to:u,preventScrollReset:d,viewTransition:h}
248=t,p=l2(t,h2),{basename:f}=w.useContext(oi),g,m=!1;if(typeof u=="string"&&y2.test(u)&&(g=u,g2))try{let b=new URL(window.location.href),k=u.startsWith("//")?new URL(b.protocol+u):new URL(u),S=vf(k.pathname,f);k.origin===b.origin&&S!=null?u=S+k.search+k.hash:m=!0}catch{}let x=WT(u,{relative:i}),y=v2(u,{replace:o,state:a,target:c,preventScrollReset:d,relative:i,viewTransition:h});function v(b){n&&n(b),b.defaultPrevented||y(b)}return w.createElement("a",$d({},p,{href:g||x,onClick:m||s?n:v,ref:r,target:c}))});var _m;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_m||(_m={}));var Cm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cm||(Cm={}));function v2(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,c=bf(),u=li(),d=vw(e,{relative:o});return w.useCallback(h=>{if(u2(h,r)){h.preventDefault();let p=n!==void 0?n:Il(u)===Il(d);c(e,{replace:p,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,c,d,n,i,r,e,s,o,a])}function w2(e){let t=w.useRef(Fd(e)),r=w.useRef(!1),n=li(),i=w.useMemo(()=>d2(n.search,r.current?null:t.current),[n.search]),s=bf(),o=w.useCallback((a,c)=>{const u=Fd(typeof a=="function"?a(i):a);r.current=!0,s("?"+u,c)},[s,i]);return[i,o]}const b2=()=>{const{pathname:e}=li();return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null},x2=sf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Je=w.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},s)=>{const o=n?Jk:"button";return l.jsx(o,{className:pe(x2({variant:t,size:r,className:e})),ref:s,...i})});Je.displayName="Button";var k2=w.createContext(void 0);function xw(e){const t=w.useContext(k2);return e||t||"ltr"}var pu=0;function S2(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tm()),document.body.insertAdjacentElement("beforeend",e[1]??Tm()),pu++,()=>{pu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pu--}},[])}function Tm(){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 mu="focusScope.autoFocusOnMount",gu="focusScope.autoFocusOnUnmount",jm={bubbles:!1,cancelable:!0},E2="FocusScope",kw=w.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,c]=w.useState(null),u=bt(i),d=bt(s),h=w.useRef(null),p=$e(t,m=>c(m)),f=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(n){let m=function(b){if(f.paused||!a)return;const k=b.target;a.contains(k)?h.current=k:Yr(h.current,{select:!0})},x=function(b){if(f.paused||!a)return;const k=b.relatedTarget;k!==null&&(a.contains(k)||Yr(h.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&Yr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const v=new MutationObserver(y);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),v.disconnect()}}},[n,a,f.paused]),w.useEffect(()=>{if(a){Pm.add(f);
vendor: 4,061 bytes, line 248
248const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(mu,jm);a.addEventListener(mu,u),a.dispatchEvent(y),y.defaultPrevented||(_2(P2(Sw(a)),{select:!0}),document.activeElement===m&&Yr(a))}return()=>{a.removeEventListener(mu,u),setTimeout(()=>{const y=new CustomEvent(gu,jm);a.addEventListener(gu,d),a.dispatchEvent(y),y.defaultPrevented||Yr(m??document.body,{select:!0}),a.removeEventListener(gu,d),Pm.remove(f)},0)}}},[a,u,d,f]);const g=w.useCallback(m=>{if(!r&&!n||f.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const v=m.currentTarget,[b,k]=C2(v);b&&k?!m.shiftKey&&y===k?(m.preventDefault(),r&&Yr(b,{select:!0})):m.shiftKey&&y===b&&(m.preventDefault(),r&&Yr(k,{select:!0})):y===v&&m.preventDefault()}},[r,n,f.paused]);return l.jsx(xe.div,{tabIndex:-1,...o,ref:p,onKeyDown:g})});kw.displayName=E2;function _2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Yr(n,{select:t}),document.activeElement!==r)return}function C2(e){const t=Sw(e),r=Nm(t,e),n=Nm(t.reverse(),e);return[r,n]}function Sw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Nm(e,t){for(const r of e)if(!T2(r,{upTo:t}))return r}function T2(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 j2(e){return e instanceof HTMLInputElement&&"select"in e}function Yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&j2(e)&&t&&e.select()}}var Pm=N2();function N2(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rm(e,t),e.unshift(t)},remove(t){var r;e=Rm(e,t),(r=e[0])==null||r.resume()}}}function Rm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function P2(e){return e.filter(t=>t.tagName!=="A")}var yu="rovingFocusGroup.onEntryFocus",R2={bubbles:!1,cancelable:!0},Jo="RovingFocusGroup",[Ud,Ew,A2]=Yh(Jo),[I2,_w]=ii(Jo,[A2]),[O2,D2]=I2(Jo),Cw=w.forwardRef((e,t)=>l.jsx(Ud.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Ud.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(M2,{...e,ref:t})})}));Cw.displayName=Jo;var M2=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,p=w.useRef(null),f=$e(t,p),g=xw(s),[m,x]=ef({prop:o,defaultProp:a??null,onChange:c,caller:Jo}),[y,v]=w.useState(!1),b=bt(u),k=Ew(r),S=w.useRef(!1),[E,_]=w.useState(0);return w.useEffect(()=>{const T=p.current;if(T)return T.addEventListener(yu,b),()=>T.removeEventListener(yu,b)},[b]),l.jsx(O2,{scope:r,orientation:n,dir:g,loop:i,currentTabStopId:m,onItemFocus:w.useCallback(T=>x(T),[x]),onItemShiftTab:w.useCallback(()=>v(!0),[]),onFocusableItemAdd:w.useCallback(()=>_(T=>T+1),[]),onFocusableItemRemove:w.useCallback(()=>_(T=>T-1),[]),children:l.jsx(xe.div,{tabIndex:y||E===0?-1:0,"data-orientation":n,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{S.current=!0}),onFocus:W(e.onFocus,T=>{const P=!S.current;if(T.target===T.currentTarget&&P&&!y){const A=new CustomEvent(yu,R2);if(T.currentTarget.dispatchEvent(A),!A.defaultPrevented){const H=k().filter(B=>B.focusable),L=H.find(B=>B.active),G=H.find(B=>B.id===m),Z=[L,G,...H].filter(Boolean).map(B=>B.ref.current);Nw(Z,d)}}S.current=!1}),onBlur:W(e.onBlur,()=>v(!1))})})}),Tw="RovingFocusGroupItem",jw=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,children:o,...a}=e,c=jd(),u=s||c,d=D2(Tw,r),h=d.currentTabStopId===u,p=Ew(r),{onFocusableItemAdd:f,onFocusableItemRemove:g,currentTabStopId:m}=d;return w.useEffect(()=>{if(n)return f(),()=>g()}
vendor: 3,025 bytes, line 248
248,[n,f,g]),l.jsx(Ud.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:l.jsx(xe.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:W(e.onMouseDown,x=>{n?d.onItemFocus(u):x.preventDefault()}),onFocus:W(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:W(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=F2(x,d.orientation,d.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=p().filter(k=>k.focusable).map(k=>k.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const k=b.indexOf(x.currentTarget);b=d.loop?U2(b,k+1):b.slice(k+1)}setTimeout(()=>Nw(b))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:m!=null}):o})})});jw.displayName=Tw;var L2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function F2(e,t,r){const n=$2(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return L2[n]}function Nw(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function U2(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var B2=Cw,z2=jw,H2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yi=new WeakMap,_a=new WeakMap,Ca={},vu=0,Pw=function(e){return e&&(e.host||Pw(e.parentNode))},V2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Pw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},W2=function(e,t,r,n){var i=V2(t,Array.isArray(e)?e:[e]);Ca[r]||(Ca[r]=new WeakMap);var s=Ca[r],o=[],a=new Set,c=new Set(i),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};i.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var f=p.getAttribute(n),g=f!==null&&f!=="false",m=(yi.get(p)||0)+1,x=(s.get(p)||0)+1;yi.set(p,m),s.set(p,x),o.push(p),m===1&&g&&_a.set(p,!0),x===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),a.clear(),vu++,function(){o.forEach(function(h){var p=yi.get(h)-1,f=s.get(h)-1;yi.set(h,p),s.set(h,f),p||(_a.has(h)||h.removeAttribute(n),_a.delete(h)),f||h.removeAttribute(r)}),vu--,vu||(yi=new WeakMap,yi=new WeakMap,_a=new WeakMap,Ca={})}},G2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=H2(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),W2(n,i,r,"aria-hidden")):function(){return null}},dr=function(){return dr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];
vendor: 5,485 bytes, lines 248-263
248for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},dr.apply(this,arguments)};function Rw(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function q2(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Xa="right-scroll-bar-position",Za="width-before-scroll-bar",K2="with-scroll-bars-hidden",J2="--removed-body-scroll-bar-size";function wu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Q2(e,t){var r=w.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Y2=typeof window<"u"?w.useLayoutEffect:w.useEffect,Am=new WeakMap;function X2(e,t){var r=Q2(null,function(n){return e.forEach(function(i){return wu(i,n)})});return Y2(function(){var n=Am.get(r);if(n){var i=new Set(n),s=new Set(e),o=r.current;i.forEach(function(a){s.has(a)||wu(a,null)}),s.forEach(function(a){i.has(a)||wu(a,o)})}Am.set(r,e)},[e]),r}function Z2(e){return e}function ej(e,t){t===void 0&&(t=Z2);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var o=t(s,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(n=!0;r.length;){var o=r;r=[],o.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(s),o=r}var c=function(){var d=o;o=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return i}function tj(e){e===void 0&&(e={});var t=ej(null);return t.options=dr({async:!0,ssr:!1},e),t}var Aw=function(e){var t=e.sideCar,r=Rw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return w.createElement(n,dr({},r))};Aw.isSideCarExport=!0;function rj(e,t){return e.useMedium(t),Aw}var Iw=tj(),bu=function(){},xc=w.forwardRef(function(e,t){var r=w.useRef(null),n=w.useState({onScrollCapture:bu,onWheelCapture:bu,onTouchMoveCapture:bu}),i=n[0],s=n[1],o=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,b=e.gapMode,k=Rw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,E=X2([r,t]),_=dr(dr({},k),i);return w.createElement(w.Fragment,null,d&&w.createElement(S,{sideCar:Iw,removeScrollBar:u,shards:h,noRelative:f,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:r,gapMode:b}),o?w.cloneElement(w.Children.only(a),dr(dr({},_),{ref:E})):w.createElement(v,dr({},_,{className:c,ref:E}),a))});xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xc.classNames={fullWidth:Za,zeroRight:Xa};var nj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ij(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nj();return t&&e.setAttribute("nonce",t),e}function sj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aj=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ij())&&(sj(t,r),oj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lj=function(){var e=aj();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ow=function(){var e=lj(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},cj={left:0,top:0,right:0,gap:0},xu=function(e){return parseInt(e||"",10)||0},uj=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[xu(r),xu(n),xu(i)]},dj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cj;var t=uj(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},hj=Ow(),Yi="data-scroll-locked",fj=function(e,t,r,n){var i=e.left,s=e.top,o=e.right,a=e.gap;return r===void 0&&(r="margin"),` 249 .`.concat(K2,` { 250 overflow: hidden `).concat(n,`; 251 padding-right: `).concat(a,"px ").concat(n,`; 252 } 253 body[`).concat(Yi,`] { 254 overflow: hidden `).concat(n,`; 255 overscroll-behavior: contain; 256 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 257 padding-left: `.concat(i,`px; 258 padding-top: `).concat(s,`px; 259 padding-right: `).concat(o,`px; 260 margin-left:0; 261 margin-top:0; 262 margin-right: `).concat(a,"px ").concat(n,`; 263 `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
263")].filter(Boolean).join(""),` 264 } 265 266 .`).concat(Xa,` { 267 right: `).concat(a,"px ").concat(n,`; 268 } 269 270 .`).concat(Za,` { 271 margin-right: `).concat(a,"px ").concat(n,`; 272 } 273 274 .`).concat(Xa," .").concat(Xa,` { 275 right: 0 `).concat(n,`; 276 } 277 278 .`).concat(Za," .").concat(Za,` { 279 margin-right: 0 `).concat(n,`; 280 } 281 282 body[`).concat(Yi,`] { 283 `).concat(J2,": ").concat(a,`px; 284 } 285`)},Im=function(){var e=parseInt(document.body.getAttribute(Yi)||"0",10);return isFinite(e)?e:0},pj=function(){w.useEffect(function(){return document.body.setAttribute(Yi,(Im()+1).toString()),function(){var e=Im()-1;e<=0?document.body.removeAttribute(Yi):document.body.setAttribute(Yi,e.toString())}},[])},mj=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;pj();var s=w.useMemo(function(){return dj(i)},[i]);return w.createElement(hj,{styles:fj(s,!t,i,r?"":"!important")})},Bd=!1;if(typeof window<"u")try{var Ta=Object.defineProperty({},"passive",{get:function(){return Bd=!0,!0}});window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{Bd=!1}var vi=Bd?{passive:!1}:!1,gj=function(e){return e.tagName==="TEXTAREA"},Dw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!gj(e)&&r[t]==="visible")},yj=function(e){return Dw(e,"overflowY")},vj=function(e){return Dw(e,"overflowX")},Om=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Mw(e,n);if(i){var s=Lw(e,n),o=s[1],a=s[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wj=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},bj=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mw=function(e,t){return e==="v"?yj(t):vj(t)},Lw=function(e,t){return e==="v"?wj(t):bj(t)},xj=function(e,t){return e==="h"&&t==="rtl"?-1:1},kj=function(e,t,r,n,i){var s=xj(e,window.getComputedStyle(t).direction),o=s*n,a=r.target,c=t.contains(a),u=!1,d=o>0,h=0,p=0;do{if(!a)break;var f=Lw(e,a),g=f[0],m=f[1],x=f[2],y=m-x-s*g;(g||y)&&Mw(e,a)&&(h+=y,p+=g);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!i)||!d&&(Math.abs(p)<1||!i))&&(u=!0),u},ja=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dm=function(e){return[e.deltaX,e.deltaY]},Mm=function(e){return e&&"current"in e?e.current:e},Sj=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ej=function(e){return` 286 .block-interactivity-`.concat(e,` {pointer-events: none;} 287 .allow-interactivity-`).concat(e,` {pointer-events: all;} 288`)},_j=0,wi=[];function Cj(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(_j++)[0],s=w.useState(Ow)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=q2([e.lockRef.current],(e.shards||[]).map(Mm),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var y=ja(m),v=r.current,b="deltaX"in m?m.deltaX:v[0]-y[0],k="deltaY"in m?m.deltaY:v[1]-y[1],S,E=m.target,_=Math.abs(b)>Math.abs(k)?"h":"v";if("touches"in m&&_==="h"&&E.type==="range")return!1;var T=Om(_,E);if(!T)return!0;if(T?S=_:(S=_==="v"?"h":"v",T=Om(_,E)),!T)return!1;if(!n.current&&"changedTouches"in m&&(b||k)&&(n.current=S),!S)return!0;var P=n.current||S;return kj(P,x,m,P==="h"?b:k,!0)},[]),c=w.useCallback(function(m){var x=m;if(!(!wi.length||wi[wi.length-1]!==s)){var y="deltaY"in x?Dm(x):ja(x),v=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Sj(S.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}
vendor: 15,530 bytes, line 288
288if(!v){var b=(o.current.shards||[]).map(Mm).filter(Boolean).filter(function(S){return S.contains(x.target)}),k=b.length>0?a(x,b[0]):!o.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),u=w.useCallback(function(m,x,y,v){var b={name:m,delta:x,target:y,should:v,shadowParent:Tj(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(k){return k!==b})},1)},[]),d=w.useCallback(function(m){r.current=ja(m),n.current=void 0},[]),h=w.useCallback(function(m){u(m.type,Dm(m),m.target,a(m,e.lockRef.current))},[]),p=w.useCallback(function(m){u(m.type,ja(m),m.target,a(m,e.lockRef.current))},[]);w.useEffect(function(){return wi.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,vi),document.addEventListener("touchmove",c,vi),document.addEventListener("touchstart",d,vi),function(){wi=wi.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,vi),document.removeEventListener("touchmove",c,vi),document.removeEventListener("touchstart",d,vi)}},[]);var f=e.removeScrollBar,g=e.inert;return w.createElement(w.Fragment,null,g?w.createElement(s,{styles:Ej(i)}):null,f?w.createElement(mj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tj(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jj=rj(Iw,Cj);var $w=w.forwardRef(function(e,t){return w.createElement(xc,dr({},e,{ref:t,sideCar:jj}))});$w.classNames=xc.classNames;var zd=["Enter"," "],Nj=["ArrowDown","PageUp","Home"],Fw=["ArrowUp","PageDown","End"],Pj=[...Nj,...Fw],Rj={ltr:[...zd,"ArrowRight"],rtl:[...zd,"ArrowLeft"]},Aj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qo="Menu",[Po,Ij,Oj]=Yh(Qo),[ci,Uw]=ii(Qo,[Oj,mc,_w]),kc=mc(),Bw=_w(),[Dj,ui]=ci(Qo),[Mj,Yo]=ci(Qo),zw=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:s,modal:o=!0}=e,a=kc(t),[c,u]=w.useState(null),d=w.useRef(!1),h=bt(s),p=xw(i);return w.useEffect(()=>{const f=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),l.jsx(jC,{...a,children:l.jsx(Dj,{scope:t,open:r,onOpenChange:h,content:c,onContentChange:u,children:l.jsx(Mj,{scope:t,onClose:w.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:p,modal:o,children:n})})})};zw.displayName=Qo;var Lj="MenuAnchor",xf=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=kc(r);return l.jsx(G0,{...i,...n,ref:t})});xf.displayName=Lj;var kf="MenuPortal",[$j,Hw]=ci(kf,{forceMount:void 0}),Vw=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,s=ui(kf,t);return l.jsx($j,{scope:t,forceMount:r,children:l.jsx(si,{present:r||s.open,children:l.jsx(Zh,{asChild:!0,container:i,children:n})})})};Vw.displayName=kf;var Rt="MenuContent",[Fj,Sf]=ci(Rt),Ww=w.forwardRef((e,t)=>{const r=Hw(Rt,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,s=ui(Rt,e.__scopeMenu),o=Yo(Rt,e.__scopeMenu);return l.jsx(Po.Provider,{scope:e.__scopeMenu,children:l.jsx(si,{present:n||s.open,children:l.jsx(Po.Slot,{scope:e.__scopeMenu,children:o.modal?l.jsx(Uj,{...i,ref:t}):l.jsx(Bj,{...i,ref:t})})})})}),Uj=w.forwardRef((e,t)=>{const r=ui(Rt,e.__scopeMenu),n=w.useRef(null),i=$e(t,n);return w.useEffect(()=>{const s=n.current;if(s)return G2(s)},[]),l.jsx(Ef,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Bj=w.forwardRef((e,t)=>{const r=ui(Rt,e.__scopeMenu);return l.jsx(Ef,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),zj=So("MenuContent.ScrollLock"),Ef=w.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:f,disableOutsideScroll:g,...m}=e,x=ui(Rt,r),y=Yo(Rt,r),v=kc(r),b=Bw(r),k=Ij(r),[S,E]=w.useState(null),_=w.useRef(null),T=$e(t,_,x.onContentChange),P=w.useRef(0),A=w.useRef(""),H=w.useRef(0),L=w.useRef(null),G=w.useRef("right"),D=w.useRef(0),Z=g?$w:w.Fragment,B=g?{as:zj,allowPinchZoom:!0}:void 0,q=C=>{var ee,gr;const O=A.current+C,z=k().filter(Ie=>!Ie.disabled),U=document.activeElement,Q=(ee=z.find(Ie=>Ie.ref.current===U))==null?void 0:ee.textValue,X=z.map(Ie=>Ie.textValue),ye=eN(X,O,Q),ke=(gr=z.find(Ie=>Ie.textValue===ye))==null?void 0:gr.ref.current;(function Ie(tr){A.current=tr,window.clearTimeout(P.current),tr!==""&&(P.current=window.setTimeout(()=>Ie(""),1e3))})(O),ke&&setTimeout(()=>ke.focus())};w.useEffect(()=>()=>window.clearTimeout(P.current),[]),S2();const j=w.useCallback(C=>{var z,U;return G.current===((z=L.current)==null?void 0:z.side)&&rN(C,(U=L.current)==null?void 0:U.area)},[]);return l.jsx(Fj,{scope:r,searchRef:A,onItemEnter:w.useCallback(C=>{j(C)&&C.preventDefault()},[j]),onItemLeave:w.useCallback(C=>{var O;j(C)||((O=_.current)==null||O.focus(),E(null))},[j]),onTriggerLeave:w.useCallback(C=>{j(C)&&C.preventDefault()},[j]),pointerGraceTimerRef:H,onPointerGraceIntentChange:w.useCallback(C=>{L.current=C},[]),children:l.jsx(Z,{...B,children:l.jsx(kw,{asChild:!0,trapped:i,onMountAutoFocus:W(s,C=>{var O;C.preventDefault(),(O=_.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:l.jsx(oc,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:f,children:l.jsx(B2,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:W(c,C=>{y.isUsingKeyboardRef.current||C.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(q0,{role:"menu","aria-orientation":"vertical","data-state":ab(x.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:T,style:{outline:"none",...m.style},onKeyDown:W(m.onKeyDown,C=>{const z=C.target.closest("[data-radix-menu-content]")===C.currentTarget,U=C.ctrlKey||C.altKey||C.metaKey,Q=C.key.length===1;z&&(C.key==="Tab"&&C.preventDefault(),!U&&Q&&q(C.key));const X=_.current;if(C.target!==X||!Pj.includes(C.key))return;C.preventDefault();const ke=k().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);Fw.includes(C.key)&&ke.reverse(),Xj(ke)}),onBlur:W(e.onBlur,C=>{C.currentTarget.contains(C.target)||(window.clearTimeout(P.current),A.current="")}),onPointerMove:W(e.onPointerMove,Ro(C=>{const O=C.target,z=D.current!==C.clientX;if(C.currentTarget.contains(O)&&z){const U=C.clientX>D.current?"right":"left";G.current=U,D.current=C.clientX}}))})})})})})})});Ww.displayName=Rt;var Hj="MenuGroup",_f=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(xe.div,{role:"group",...n,ref:t})});_f.displayName=Hj;var Vj="MenuLabel",Gw=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(xe.div,{...n,ref:t})});Gw.displayName=Vj;var Dl="MenuItem",Lm="menu.itemSelect",Sc=w.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,s=w.useRef(null),o=Yo(Dl,e.__scopeMenu),a=Sf(Dl,e.__scopeMenu),c=$e(t,s),u=w.useRef(!1),d=()=>{const h=s.current;if(!r&&h){const p=new CustomEvent(Lm,{bubbles:!0,cancelable:!0});h.addEventListener(Lm,f=>n==null?void 0:n(f),{once:!0}),Xh(h,p),p.defaultPrevented?u.current=!1:o.onClose()}};return l.jsx(qw,{...i,ref:c,disabled:r,onClick:W(e.onClick,d),onPointerDown:h=>{var p;(p=e.onPointerDown)==null||p.call(e,h),u.current=!0},onPointerUp:W(e.onPointerUp,h=>{var p;u.current||(p=h.currentTarget)==null||p.click()}),onKeyDown:W(e.onKeyDown,h=>{const p=a.searchRef.current!=="";r||p&&h.key===" "||zd.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Sc.displayName=Dl;var qw=w.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=e,o=Sf(Dl,r),a=Bw(r),c=w.useRef(null),u=$e(t,c),[d,h]=w.useState(!1),[p,f]=w.useState("");return w.useEffect(()=>{const g=c.current;g&&f((g.textContent??"").trim())},[s.children]),l.jsx(Po.ItemSlot,{scope:r,disabled:n,textValue:i??p,children:l.jsx(z2,{asChild:!0,...a,focusable:!n,children:l.jsx(xe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...s,ref:u,onPointerMove:W(e.onPointerMove,Ro(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Ro(g=>o.onItemLeave(g))),onFocus:W(e.onFocus,()=>h(!0)),onBlur:W(e.onBlur,()=>h(!1))})})})}),Wj="MenuCheckboxItem",Kw=w.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...i}=e;return l.jsx(Zw,{scope:e.__scopeMenu,checked:r,children:l.jsx(Sc,{role:"menuitemcheckbox","aria-checked":Ml(r)?"mixed":r,...i,ref:t,"data-state":Tf(r),onSelect:W(i.onSelect,()=>n==null?void 0:n(Ml(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Kw.displayName=Wj;var Jw="MenuRadioGroup",[Gj,qj]=ci(Jw,{value:void 0,onValueChange:()=>{}}),Qw=w.forwardRef((e,t)=>{const{value:r,onValueChange:n,...i}=e,s=bt(n);return l.jsx(Gj,{scope:e.__scopeMenu,value:r,onValueChange:s,children:l.jsx(_f,{...i,ref:t})})});Qw.displayName=Jw;var Yw="MenuRadioItem",Xw=w.forwardRef((e,t)=>{const{value:r,...n}=e,i=qj(Yw,e.__scopeMenu),s=r===i.value;return l.jsx(Zw,{scope:e.__scopeMenu,checked:s,children:l.jsx(Sc,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":Tf(s),onSelect:W(n.onSelect,()=>{var o;return(o=i.onValueChange)==null?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})})});Xw.displayName=Yw;var Cf="MenuItemIndicator",[Zw,Kj]=ci(Cf,{checked:!1}),eb=w.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...i}=e,s=Kj(Cf,r);return l.jsx(si,{present:n||Ml(s.checked)||s.checked===!0,children:l.jsx(xe.span,{...i,ref:t,"data-state":Tf(s.checked)})})});eb.displayName=Cf;var Jj="MenuSeparator",tb=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(xe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});tb.displayName=Jj;var Qj="MenuArrow",rb=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=kc(r);return l.jsx(K0,{...i,...n,ref:t})});rb.displayName=Qj;var Yj="MenuSub",[NI,nb]=ci(Yj),Hs="MenuSubTrigger",ib=w.forwardRef((e,t)=>{const r=ui(Hs,e.__scopeMenu),n=Yo(Hs,e.__scopeMenu),i=nb(Hs,e.__scopeMenu),s=Sf(Hs,e.__scopeMenu),o=w.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},d=w.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return w.useEffect(()=>d,[d]),w.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),c(null)}},[a,c]),l.jsx(xf,{asChild:!0,...u,children:l.jsx(qw,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":ab(r.open),...e,ref:sc(t,i.onTriggerChange),onClick:h=>{var p;(p=e.onClick)==null||p.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Ro(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!r.open&&!o.current&&(s.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:W(e.onPointerLeave,Ro(h=>{var f,g;d();const p=(f=r.content)==null?void 0:f.getBoundingClientRect();if(p){const m=(g=r.content)==null?void 0:g.dataset.side,x=m==="right",y=x?-5:5,v=p[x?"left":"right"],b=p[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+y,y:h.clientY},{x:v,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x:v,y:p.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,h=>{var f;const p=s.searchRef.current!=="";e.disabled||p&&h.key===" "||Rj[n.dir].includes(h.key)&&(r.onOpenChange(!0),(f=r.content)==null||f.focus(),h.preventDefault())})})})});ib.displayName=Hs;var sb="MenuSubContent",ob=w.forwardRef((e,t)=>{const r=Hw(Rt,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,s=ui(Rt,e.__scopeMenu),o=Yo(Rt,e.__scopeMenu),a=nb(sb,e.__scopeMenu),c=w.useRef(null),u=$e(t,c);return l.jsx(Po.Provider,{scope:e.__scopeMenu,children:l.jsx(si,{present:n||s.open,children:l.jsx(Po.Slot,{scope:e.__scopeMenu,children:l.jsx(Ef,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:W(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:W(e.onKeyDown,d=>{var f;const h=d.currentTarget.contains(d.target),p=Aj[o.dir].includes(d.key);h&&p&&(s.onOpenChange(!1),(f=a.trigger)==null||f.focus(),d.preventDefault())})})})})})});ob.displayName=sb;function ab(e){return e?"open":"closed"}function Ml(e){return e==="indeterminate"}function Tf(e){return Ml(e)?"indeterminate":e?"checked":"unchecked"}function Xj(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Zj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function eN(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let o=Zj(e,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function tN(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],c=t[o],u=a.x,d=a.y,h=c.x,p=c.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(i=!i)}return i}function rN(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return tN(r,t)}function Ro(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nN=zw,iN=xf,sN=Vw,oN=Ww,aN=_f,lN=Gw,cN=Sc,uN=Kw,dN=Qw,hN=Xw,fN=eb,pN=tb,mN=rb,gN=ib,yN=ob,Ec="DropdownMenu",[vN,PI]=ii(Ec,[Uw]),st=Uw(),[wN,lb]=vN(Ec),cb=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:s,onOpenChange:o,modal:a=!0}=e,c=st(t),u=w.useRef(null),[d,h]=ef({prop:i,defaultProp:s??!1,onChange:o,caller:Ec});return l.jsx(wN,{scope:t,triggerId:jd(),triggerRef:u,contentId:jd(),open:d,onOpenChange:h,onOpenToggle:w.useCallback(()=>h(p=>!p),[h]),modal:a,children:l.jsx(nN,{...c,open:d,onOpenChange:h,dir:n,modal:a,children:r})})};cb.displayName=Ec;var ub="DropdownMenuTrigger",db=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,s=lb(ub,r),o=st(r);return l.jsx(iN,{asChild:!0,...o,children:l.jsx(xe.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:sc(t,s.triggerRef),onPointerDown:W(e.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:W(e.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});db.displayName=ub;var bN="DropdownMenuPortal",hb=e=>{const{__scopeDropdownMenu:t,...r}=e,n=st(t);return l.jsx(sN,{...n,...r})};hb.displayName=bN;var fb="DropdownMenuContent",pb=w.forwardRef((e,t)=>
288{const{__scopeDropdownMenu:r,...n}=e,i=lb(fb,r),s=st(r),o=w.useRef(!1);return l.jsx(oN,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...n,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{var c;o.current||(c=i.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:W(e.onInteractOutside,a=>{const c=a.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!i.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});pb.displayName=fb;var xN="DropdownMenuGroup",kN=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(aN,{...i,...n,ref:t})});kN.displayName=xN;var SN="DropdownMenuLabel",mb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(lN,{...i,...n,ref:t})});mb.displayName=SN;var EN="DropdownMenuItem",gb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(cN,{...i,...n,ref:t})});gb.displayName=EN;var _N="DropdownMenuCheckboxItem",yb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(uN,{...i,...n,ref:t})});yb.displayName=_N;var CN="DropdownMenuRadioGroup",TN=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(dN,{...i,...n,ref:t})});TN.displayName=CN;var jN="DropdownMenuRadioItem",vb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(hN,{...i,...n,ref:t})});vb.displayName=jN;var NN="DropdownMenuItemIndicator",wb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(fN,{...i,...n,ref:t})});wb.displayName=NN;var PN="DropdownMenuSeparator",bb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(pN,{...i,...n,ref:t})});bb.displayName=PN;var RN="DropdownMenuArrow",AN=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(mN,{...i,...n,ref:t})});AN.displayName=RN;var IN="DropdownMenuSubTrigger",xb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(gN,{...i,...n,ref:t})});xb.displayName=IN;var ON="DropdownMenuSubContent",kb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=st(r);return l.jsx(yN,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});kb.displayName=ON;var DN=cb,MN=db,LN=hb,Sb=pb,Eb=mb,_b=gb,Cb=yb,Tb=vb,jb=wb,Nb=bb,Pb=xb,Rb=kb;const $N=DN,FN=MN,UN=w.forwardRef(({className:e,inset:t,children:r,...n},i)=>l.jsxs(Pb,{ref:i,className:pe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,l.jsx(qS,{className:"ml-auto h-4 w-4"})]}));UN.displayName=Pb.displayName;const BN=w.forwardRef(({className:e,...t},r)=>l.jsx(Rb,{ref:r,className:pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));BN.displayName=Rb.displayName;const Ab=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>l.jsx(LN,{children:l.jsx(Sb,{ref:n,sideOffset:t,className:pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
288de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ab.displayName=Sb.displayName;const Ib=w.forwardRef(({className:e,inset:t,...r},n)=>l.jsx(_b,{ref:n,className:pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));Ib.displayName=_b.displayName;const zN=w.forwardRef(({className:e,children:t,checked:r,...n},i)=>l.jsxs(Cb,{ref:i,className:pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(jb,{children:l.jsx(GS,{className:"h-4 w-4"})})}),t]}));zN.displayName=Cb.displayName;const HN=w.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(Tb,{ref:n,className:pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(jb,{children:l.jsx(KS,{className:"h-2 w-2 fill-current"})})}),t]}));HN.displayName=Tb.displayName;const VN=w.forwardRef(({className:e,inset:t,...r},n)=>l.jsx(Eb,{ref:n,className:pe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));VN.displayName=Eb.displayName;const WN=w.forwardRef(({className:e,...t},r)=>l.jsx(Nb,{ref:r,className:pe("-mx-1 my-1 h-px bg-muted",e),...t}));WN.displayName=Nb.displayName;const Ob="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.2.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%201366%20325'%20style='enable-background:new%200%200%201366%20325;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23595A5A;}%20.st1{fill:%23BF2026;}%20.st2{fill:%23ED2525;}%20%3c/style%3e%3cpath%20class='st0'%20d='M413.8,104.6l47-27.3v54.5L413.8,104.6z%20M413.8,222.9l47,27.3v-54.5L413.8,222.9z'/%3e%3cpath%20class='st1'%20d='M515.8,77.4v172.8l-27.9-16.7V180l27.9-16.2l-27.9-16.2V93L515.8,77.4z%20M266.8,77.4l-24.5,17.9v26.3l24.5-18%20v146.6h24.8V77.4H266.8z%20M56.1,95.3v26.3l24.5-18v146.6h24.8V77.4H80.7L56.1,95.3z%20M215.6,88.8c-9.4-8.5-20.8-12.8-34.3-12.8%20c-13,0-24.3,4.3-33.7,12.8c-10,8.6-15.1,20.9-15.3,36.9v76.2c0.2,15.9,5.3,28.1,15.3,36.7c9.4,8.5,20.6,12.9,33.7,13%20c13.4-0.2,24.8-4.5,34.3-13c9.6-8.6,14.5-20.9,14.8-36.7v-76.2C230.1,109.7,225.1,97.4,215.6,88.8z%20M205.6,200.4%20c-0.5,17.5-8.6,26.3-24.3,26.4c-15.8-0.2-23.9-9-24.2-26.4v-73.2c0.3-17.3,8.4-26.1,24.2-26.4c15.7,0.3,23.8,9.1,24.3,26.4V200.4z%20M407.4,163.8l-94.8,86.4l149-86.4l-149-86.4l0,0L407.4,163.8z'/%3e%3cpolygon%20class='st2'%20points='367.1,163.8%20312.6,250.2%20407.4,163.8%20312.6,77.4%20312.6,77.4%20'/%3e%3cpath%20class='st0'%20d='M610.5,148.1h28.9v-12.5h-71.7v12.5h28.7v102h14.1V148.1z%20M646.8,250.1h13.5v-59.4c0-12.5,9.8-17.3,17-17.3%20c12.2,0,12.7,10.7,12.7,17.3v59.4h13.5v-61c0-10.1,0-27.3-22.1-27.3c-7.7,0-17.2,5-20.7,12h-0.3v-38.3h-13.5V250.1z%20M774.8,208.7%20v-5.5c0-18.4-2.4-41.4-28.7-41.4c-26.5,0-30.6,24.9-30.6,46.4c0,29.5,8.8,44.1,29.8,44.1c23.4,0,28.9-21.3,28.9-30.5h-13.5%20c0,6.4-1.8,19.9-14.6,19.9c-16.5,0-16.5-19.9-16.5-33H774.8z%20M730,198.1v-3.2c0-5.1,1.6-22.5,15.7-22.5c11.9,0,14.9,11.4,14.9,21%20v4.6H730z%20M786.8,250.1h13.5v-54.4c0-14.3,10.9-20.4,17.6-20.4c4.3,0,5.9,0.5,7.2,0.6v-13.2c-1.3-0.6-3.2-1-5.9-1%20c-9.6,0-14.8,6.9-18.6,15.1h-0.3v-12.8h-13.5V250.1z%20M843.9,190.1v-0.8c0-3,0-16.8,14.8-16.8c9,0,13.8,4.6,13.8,12.7%20c0,7.2,0,9.9-9.8,13l-18.1,5.5c-11.1,3.4-16.2,11.7-16.2,23.7c0,15.4,7.4,25,23.4,25c8,0,16.4-4.7,20.7-12.4h0.3%20c0.6,11.1,7.1,11.1,12.2,11.1c3.4,0,6.9-0.6,7.9-0.8v-9.6c-0.6,0.5-1.4,0.8-3.2,0.8c-4.2,0-4.2-3.4-4.2-6.9v-48%20c0-9,0-24.7-26.1-24.7c-20.5,0-28.9,8.7-28.9,28.2H843.9z%20M872,225.4c0,8.8-8.5,16.4-17.3,16.4c-9.1,0-12.2-6.1-12.2-14.8%20c0-7.5,2.2-10.9,6.6-13.6c6.1-3.7,18-4.8,22.9-10.1V225.4z%20M901,278.3h13.5v-38h0.3c3,7.4,10.3,12,18,12c22.3,0,28.1-27.3,28.1-46.8%20c0-25.5-7.7-43.6-28.1-43.6c-9.3,0-16.8,6.4-18.6,12.8h-0.3v-10.6H901V278.3z%20M913.7,207.1c0-19.6,2.4-33.7,17.3-33.7%20c12.5,0,15.7,13.2,15.7,32.1c0,22.1-3.2,35.3-15.7,35.3C916.6,240.8,913.7,223.8,913.7,207.1z%20M1031.8,208.7v-5.5%20c0-18.4-2.4-41.4-28.7-41.4c-26.5,0-30.6,24.9-30.6,46.4c0,29.5,8.8,44.1,29.8,44.1c23.4,0,28.9-21.3,28.9-30.5h-13.5%20c0,6.4-1.8,19.9-14.6,19.9c-16.5,0-16.5-19.9-16.5-33H1031.8z%20M987,198.1v-3.2c0-5.1,1.6-22.5,15.7-22.5c11.9,0,14.9,11.4,14.9,21%20v4.6H987z%20M1103.2,164.1h-13.5v59.4c0,12.5-9.8,17.3-17,17.3c-12.2,0-12.7-10.7-12.7-17.3v-59.4h-13.5v61c0,10.1,0,27.3,22.6,27.3%20c8.3,0,17.3-4.5,20.9-12.4h0.3v10.1h12.8V164.1z%20M1124.8,164.1h-12.5v10.6h12.5v59.4c0,11.2,3.4,17,17.3,17c5.6,0,9.1-0.6,10.9-1%20V239c-1.4,0.2-3,0.5-5.9,0.5c-7.1,0-8.8-2.7-8.8-9.6v-55.2h14.9v-10.6h-14.9v-25h-13.5V164.1z%20M1163.1,151h13.5v-15.4h-13.5V151z%20M1163.1,250.1h13.5v-86h-13.5V250.1z%20M1249.4,190.3c0-9.9-4-28.4-27.4-28.4c-26.5,0-30.6,24.9-30.6,46.4c0,29.5,8.8,44.1,29.8,44.1%20c21.5,0,28.2-18.4,28.2-32.1H1236c0,9.3-2.6,21.5-14.1,21.5c-16.2,0-16.4-22.5-16.4-33.7c0-31.4,8.5-35.6,16.8-35.6%20c10.3,0,13.6,9.5,13.6,17.8H1249.4z%20M1313.8,189.3c-0.2-10.1-1.1-27.4-26.1-27.4c-14.9,0-27.4,7.7-27.4,23.7%20c0,17.8,10.7,20.9,21.2,24.4c10.4,3.5,21,5.9,21,17.5c0,12.2-9.9,14.3-14.3,14.3c-13.2,0-16-9.5-16-19.9h-13.5%20c0,8.8,0.3,30.5,29.5,30.5c16,0,27.8-8.8,27.8-26.9c0-17-10.6-20.7-21-24.2c-10.6-3.5-21.2-5.5-21.2-15.6c0-12,9.6-13.2,14-13.2%20c9.8,0,12.7,5.9,12.7,16.8H1313.8z'/%3e%3c/svg%3e",xt=()=>{const[e,t]=w.useState(!1),[r,n]=w.useState(!1),i=bf(),o=li().pathname==="/",a=d=>{if(!o)i("/"),setTimeout(()=>{const h=document.getElementById(d);h==null||h.scrollIntoView({behavior:"smooth"})},100);else{const h=document.getElementById(d);h==null||h.scrollIntoView({behavior:"smooth"})}t(!1)},c=()=>{i("/"),t(!1)},u=[{name:"Rare Diseases",path:"/rare-diseases"},{name:"Autoimmune & Chronic Inflammatory",path:"/autoimmune"},{name:"Neuroinflammation",path:"/neuroinflammation"},{name:"Metabolic Diseases",path:"/metabolic-diseases"},{name:"Infectious Disease",path:"/infectious-disease"},{name:"Oncology & TAMs",path:"/oncology"}];return l.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-card/80 backdrop-blur-md border-b border-border/50",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-5",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("button",{onClick:c,className:"hover:opacity-80 transition-opacity",children:l.jsx("img",{src:Ob,alt:"101 Therapeutics",className:"h-8 md:h-9"})}),l.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[l.jsx("button",{onClick:()=>
288a("scientific-approach"),className:"text-sm text-foreground/80 hover:text-foreground transition-colors font-medium",children:"Scientific Approach"}),l.jsxs($N,{children:[l.jsxs(FN,{className:"flex items-center gap-1 text-sm text-foreground/80 hover:text-foreground transition-colors font-medium outline-none",children:["Disease Areas ",l.jsx(Ed,{className:"h-4 w-4"})]}),l.jsx(Ab,{align:"end",className:"w-64",children:u.map(d=>l.jsx(Ib,{asChild:!0,children:l.jsx(et,{to:d.path,className:"cursor-pointer text-sm",children:d.name})},d.path))})]}),l.jsx(et,{to:"/manuscripts",className:"text-sm text-foreground/80 hover:text-foreground transition-colors font-medium",children:"Manuscripts"}),l.jsx(et,{to:"/whitepapers",className:"text-sm text-foreground/80 hover:text-foreground transition-colors font-medium",children:"Whitepapers"}),l.jsx(et,{to:"/investors",className:"text-sm text-foreground/80 hover:text-foreground transition-colors font-medium",children:"Investors"}),l.jsx(Je,{onClick:()=>a("contact"),variant:"outline",size:"sm",className:"h-9 border-2",children:"Contact Us"})]}),l.jsx("button",{onClick:()=>t(!e),className:"md:hidden text-foreground","aria-label":"Toggle menu",children:e?l.jsx(y0,{className:"w-6 h-6"}):l.jsx(tE,{className:"w-6 h-6"})})]}),e&&l.jsxs("div",{className:"md:hidden pt-4 pb-2 space-y-3",children:[l.jsx("button",{onClick:()=>a("scientific-approach"),className:"block w-full text-left py-2 text-foreground hover:text-primary transition-colors font-medium",children:"Scientific Approach"}),l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>n(!r),className:"flex items-center justify-between w-full text-left py-2 text-foreground hover:text-primary transition-colors font-medium",children:["Disease Areas",l.jsx(Ed,{className:`h-4 w-4 transition-transform ${r?"rotate-180":""}`})]}),r&&l.jsx("div",{className:"pl-4 space-y-2 mt-2",children:u.map(d=>l.jsx(et,{to:d.path,onClick:()=>t(!1),className:"block py-2 text-sm text-muted-foreground hover:text-primary transition-colors",children:d.name},d.path))})]}),l.jsx(et,{to:"/manuscripts",onClick:()=>t(!1),className:"block w-full text-left py-2 text-foreground hover:text-primary transition-colors font-medium",children:"Manuscripts"}),l.jsx(et,{to:"/whitepapers",onClick:()=>t(!1),className:"block w-full text-left py-2 text-foreground hover:text-primary transition-colors font-medium",children:"Whitepapers"}),l.jsx(et,{to:"/investors",onClick:()=>t(!1),className:"block w-full text-left py-2 text-foreground hover:text-primary transition-colors font-medium",children:"Investors"}),l.jsx(Je,{onClick:()=>a("contact"),variant:"default",className:"w-full",children:"Contact"})]})]})})},GN="/assets/hero-lab-C6xtKx1A.jpg",Ot=({variant:e="dark",className:t=""})=>{const r=w.useRef(null);return w.useEffect(()=>{const n=r.current;if(!n)return;const i=n.getContext("2d");if(!i)return;let s,o=[];const a=()=>{const g=n.parentElement;g&&(n.width=g.offsetWidth,n.height=g.offsetHeight)},c=()=>{o=[];const g=Math.floor(n.width*n.height/3e3);for(let m=0;m<g;m++)o.push({x:Math.random()*n.width,y:Math.random()*n.height,size:Math.random()*1.5+.5,speedX:(Math.random()-.5)*.2,speedY:(Math.random()-.5)*.2,opacity:Math.random()*.2+.05})},u=g=>e==="light"?`rgba(100, 116, 139, ${g*1.2})`:`rgba(255, 255, 255, ${g})`,d=g=>{i.beginPath(),i.arc(g.x,g.y,g.size,0,Math.PI*2),i.fillStyle=u(g.opacity),i.fill()},h=()=>{for(let g=0;g<o.length;g++)for(let m=g+1;m<o.length;m++){const x=o[g].x-o[m].x,y=o[g].y-o[m].y,v=Math.sqrt(x*x+y*y);v<150&&(i.beginPath(),i.strokeStyle=u(.08*(1-v/150)),i.lineWidth=.5,i.moveTo(o[g].x,o[g].y),i.lineTo(o[m].x,o[m].y),i.stroke())}},p=()=>{o.forEach(g=>{g.x+=g.speedX,g.y+=g.speedY,(g.x<0||g.x>n.width)&&(g.speedX*=-1),(g.y<0||g.y>n.height)&&(g.speedY*=-1)})},f=()=>{i.clearRect(0,0,n.width,n.height),h(),o.forEach(d),p(),s=requestAnimationFrame(f)};return a(),c(),f(),window.addEventListener("resize",()=>{a(),c()}),()=>{cancelAnimationFrame(s),window.removeEventListener("resize",a)}},[e]),l.jsx("canvas",{ref:r,className:`absolute inset-0 pointer-events-none ${t}`,"aria-hidden":"true"})},qN=()=>{const e=t=>{const r=document.getElementById(t);r==null||r.scrollIntoView({behavior:"smooth"})};return l.jsxs("section",{className:"relative min-h-screen flex items-center justify-center bg-gradient-to-br from-primary via-primary/95 to-primary/90 pt-20 overflow-hidden",children:[l.jsx(Ot,{}),l.jsx("div",{className:"max-w-7xl mx-auto px-6 py-16",children:l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[l.jsxs("div",{className:"text-white",children:[l.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:"Discovering and Developing Novel Therapeutics"}),l.jsx("p",{className:"text-lg md:text-xl text-white/90 mb-10 leading-relaxed",children:"At 101 Therapeutics, we focus on big health challenges that matter to patients and families. We aim to discover and develop effective, easy to use, and well-tolerated agents addressing multiple disease areas."}),l.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:l.jsx(Je,{size:"lg",onClick:()=>e("contact"),className:"bg-white text-primary hover:bg-white/95 font-medium text-base shadow-lg hover:shadow-xl transition-all",children:"Get in Touch"})}),l.jsxs("button",{onClick:()=>e("scientific-approach"),className:"mt-12 text-white/80 hover:text-white transition-colors flex items-center gap-2","aria-label":"Scroll to learn more",children:[l.jsx("span",{className:"text-sm",children:"Scroll to learn more"}),l.jsx(Ed,{className:"w-5 h-5 animate-bounce"})]})]}),l.jsx("div",{className:"hidden lg:block relative z-10",children:l.jsx("div",{className:"aspect-square rounded-[3rem] overflow-hidden shadow-2xl",children:l.jsx("img",{src:GN,alt:"Laboratory research with test tubes and pipette",className:"w-full h-full object-cover"})})})]})})]})},re=w.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:pe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
288re.displayName="Card";const Db=w.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:pe("flex flex-col space-y-1.5 p-6",e),...t}));Db.displayName="CardHeader";const Mb=w.forwardRef(({className:e,...t},r)=>l.jsx("h3",{ref:r,className:pe("text-2xl font-semibold leading-none tracking-tight",e),...t}));Mb.displayName="CardTitle";const KN=w.forwardRef(({className:e,...t},r)=>l.jsx("p",{ref:r,className:pe("text-sm text-muted-foreground",e),...t}));KN.displayName="CardDescription";const oe=w.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:pe("p-6 pt-0",e),...t}));oe.displayName="CardContent";const JN=w.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:pe("flex items-center p-6 pt-0",e),...t}));JN.displayName="CardFooter";const QN=()=>l.jsx("section",{id:"scientific-approach",className:"py-16 bg-muted/30",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[l.jsx("div",{className:"text-center mb-12",children:l.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-foreground mb-5 tracking-tight",children:"Scientific Approach"})}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[l.jsx(re,{className:"border border-border rounded-2xl",children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-2xl bg-primary/10",children:l.jsx(dc,{className:"h-7 w-7 text-primary"})}),l.jsx("h3",{className:"text-xl font-semibold",children:"Our Target"})]}),l.jsxs("div",{className:"space-y-4 text-sm text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"Macrophages are central orchestrators of inflammation, immunity, and tissue repair. In chronic inflammatory, infectious, and fibrotic diseases, macrophages transition into pathogenic activated states, including both pro-inflammatory M1 and alternatively activated M2 phenotypes, driving cytokine dysregulation, tissue damage, viral or parasitic persistence, and fibrosis."}),l.jsx("p",{children:"Across this spectrum of activation, CD206 (the mannose receptor) is upregulated on disease-associated macrophages, serving as a characteristic marker of macrophage activation and providing a selective gateway for targeted therapeutic delivery. Targeting CD206 enables precise engagement of the macrophages most responsible for sustaining inflammation and tissue pathology, while minimizing effects on resting immune cells."}),l.jsx("p",{className:"font-medium text-foreground",children:"Working in conjunction with the HPA system rather than against it enables maximal effect, repair of the HPA system, reduces GC resistance, and allows natural just-in-time cortisol release to treat ongoing inflammation."})]})]})}),l.jsx(re,{className:"border border-border rounded-2xl",children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-2xl bg-primary/10",children:l.jsx(VS,{className:"h-7 w-7 text-primary"})}),l.jsx("h3",{className:"text-xl font-semibold",children:"Our Platform"})]}),l.jsxs("div",{className:"space-y-4 text-sm text-muted-foreground leading-relaxed",children:[l.jsx("p",{className:"font-medium text-foreground",children:"101-PGC-005, a mannose-linked, pH-sensitive dexamethasone prodrug designed to:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2",children:[l.jsx("li",{children:"Release active dexamethasone in the low-pH lysosomal environment"}),l.jsx("li",{children:"Induce apoptosis of pathogenic macrophages"}),l.jsx("li",{children:"Eliminate systemic steroid exposure, enabling higher anti-inflammatory dosing with reduced off-target effects"})]}),l.jsx("p",{className:"mt-4 font-medium text-foreground",children:"Disease Targets"}),l.jsx("p",{children:"Our platform is disease-agnostic and applicable to any condition driven by a dysregulated HPA axis. We are initially prioritizing high-value therapeutic areas including rare diseases, autoimmune conditions, neuroinflammation, infectious disease, metabolic diseases, and oncology."})]})]})})]})]})}),YN=()=>{const e=[{title:"Rare Diseases",description:"Targeting macrophage-driven rare diseases with RPDD granted for sJIA. Applicable to both genetic and acquired macrophage-driven conditions.",icon:JS,path:"/rare-diseases"},{title:"Autoimmune & Chronic Inflammatory",description:"Addressing joint destruction, tissue inflammation, and chronic pain. Works alongside biologics to improve efficacy and restore HPA axis control.",icon:h0,path:"/autoimmune"},{title:"Neuroinflammation",description:"Targeting CD206⺠microglia and perivascular macrophages to restore BBB integrity and reduce CNS inflammation.",icon:f0,path:"/neuroinflammation"},{title:"Metabolic Diseases",description:"Reducing macrophage-driven inflammation in obesity, insulin resistance, and NAFLD/NASH. Complementary to GLP-1 therapies.",icon:cc,path:"/metabolic-diseases"},{title:"Infectious Disease",description:"Efficacy demonstrated in COVID-19, Dengue, and Leishmaniasis models. A platform for pandemic preparedness.",icon:uc,path:"/infectious-disease"},{title:"Oncology & TAMs",description:"Depleting immunosuppressive tumor-associated macrophages to reprogram the tumor microenvironment and enhance checkpoint inhibitor efficacy.",icon:m0,path:"/oncology"}];return l.jsx("section",{id:"disease-areas",className:"py-16 bg-background",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-foreground mb-5 tracking-tight",children:"Areas of Focus"}),l.jsx("p",{className:"text-base text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Our platform is disease-agnostic and applicable to any condition driven by pathogenic macrophage populations."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto",children:e.map((t,r)=>{const n=t.icon;return l.jsx(et,{to:t.path,children:l.jsx(re,{className:"p-6 hover:shadow-lg transition-all duration-300 border border-border/50 bg-card group rounded-2xl h-full",children:l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsx("div",{className:"p-3 rounded-2xl bg-primary/10 group-hover:bg-primary/15 transition-colors w-fit",children:l.jsx(n,{className:"w-7 h-7 text-primary"})}),l.jsxs("div",{className:"flex-1 space-y-3",children:[l.jsx("h3",{className:"text-xl font-semibold text-foreground leading-tight",children:t.title}),l.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]})]})})},r)})})]})})},el=w.forwardRef(({className:e,type:t,...r},n)=>l.jsx("input",{type:t,className:pe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));el.displayName="Input";const Lb=w.forwardRef(({className:e,...t},r)=>l.jsx("textarea",{className:pe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
288ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));Lb.displayName="Textarea";function XN(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((n=n.apply(e,t||[])).next())})}const ZN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class jf extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class eP extends jf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class $m extends jf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Fm extends jf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Hd;(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"})(Hd||(Hd={}));class tP{constructor(t,{headers:r={},customFetch:n,region:i=Hd.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=ZN(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return XN(this,arguments,void 0,function*(r,n={}){var i;let s,o;try{const{headers:a,method:c,body:u,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const g=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,g.searchParams.set("forceFunctionRegion",f));let m;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(p["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(p["Content-Type"]="application/json",m=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?m=JSON.stringify(u):m=u;let x=d;h&&(o=new AbortController,s=setTimeout(()=>o.abort(),h),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const y=yield this.fetch(g.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:m,signal:x}).catch(S=>{throw new eP(S)}),v=y.headers.get("x-relay-error");if(v&&v==="true")throw new $m(y);if(!y.ok)throw new Fm(y);let b=((i=y.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),k;return b==="application/json"?k=yield y.json():b==="application/octet-stream"||b==="application/pdf"?k=yield y.blob():b==="text/event-stream"?k=y:b==="multipart/form-data"?k=yield y.formData():k=yield y.text(),{data:k,error:null,response:y}}catch(a){return{data:null,error:a,response:a instanceof Fm||a instanceof $m?a.context:void 0}}finally{s&&clearTimeout(s)}})}}const $b=3,Um=e=>Math.min(1e3*2**e,3e4),rP=[520,503],Fb=["GET","HEAD","OPTIONS"];var nP=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
288de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Bm(e,t){return new Promise(r=>{if(t!=null&&t.aborted){r();return}const n=setTimeout(()=>{t==null||t.removeEventListener("abort",i),r()},e);function i(){clearTimeout(n),r()}t==null||t.addEventListener("abort",i)})}function iP(e,t,r,n){return!(!n||r>=$b||!Fb.includes(e)||!rP.includes(t))}var sP=class{constructor(e){var t,r,n,i,s;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=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.shouldStripNulls=(n=e.shouldStripNulls)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(i=e.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(s=e.retry)!==null&&s!==void 0?s:!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 r=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 n=this.fetch;let s=(async()=>{let o=0;for(;;){const u=new Headers(r.headers);o>0&&u.set("X-Retry-Count",String(o));let d;try{d=await n(r.url.toString(),{method:r.method,headers:u,body:JSON.stringify(r.body,(h,p)=>typeof p=="bigint"?p.toString():p),signal:r.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!Fb.includes(r.method))throw h;if(r.retryEnabled&&o<$b){const p=Um(o);o++,await Bm(p,r.signal);continue}throw h}if(iP(r.method,d.status,o,r.retryEnabled)){var a,c;const h=(a=(c=d.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&a!==void 0?a:null,p=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:Um(o);await d.text(),o++,await Bm(p,r.signal);continue}return await r.processResponse(d)}})();return this.shouldThrowOnError||(s=s.catch(o=>{var a;let c="",u="",d="";const h=o==null?void 0:o.cause;if(h){var p,f,g,m;const v=(p=h==null?void 0:h.message)!==null&&p!==void 0?p:"",b=(f=h==null?void 0:h.code)!==null&&f!==void 0?f:"";c=`${(g=o==null?void 0:o.name)!==null&&g!==void 0?g:"FetchError"}: ${o==null?void 0:o.message}`,c+=` 289 290Caused by: ${(m=h==null?void 0:h.name)!==null&&m!==void 0?m:"Error"}: ${v}`,b&&(c+=` (${b})`),h!=null&&h.stack&&(c+=` 291${h.stack}`)}else{var x;c=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const y=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",y>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${y} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",y>this.urlLengthLimit&&(u+=`. Your request URL is ${y} 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:c,hint:u,code:d},data:null,count:null,status:0,statusText:""}}
291)),s.then(e,t)}async processResponse(e){var t=this;let r=null,n=null,i=null,s=e.status,o=e.statusText;if(e.ok){var a,c;if(t.method!=="HEAD"){var u;const p=await e.text();p===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text"))?n=p:n=JSON.parse(p))}const d=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),h=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");d&&h&&h.length>1&&(i=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(n)&&(n.length>1?(r={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,i=null,s=406,o="Not Acceptable"):n.length===1?n=n[0]:n=null)}else{const d=await e.text();try{r=JSON.parse(d),Array.isArray(r)&&e.status===404&&(n=[],r=null,s=200,o="OK")}catch{e.status===404&&d===""?(s=204,o="No Content"):r={message:d}}if(r&&t.shouldThrowOnError)throw new nP(r)}return{success:r===null,error:r,data:n,count:i,status:s,statusText:o}}returns(){return this}overrideTypes(){return this}},oP=class extends sP{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"offset":`${n}.offset`,s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${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:r=!1,buffers:n=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${c}"; options=${a};`),s==="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 zm=new RegExp("[,()]");var _i=class extends oP{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&zm.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&zm.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";n==="plain"?i="pl":n==="phrase"?i="ph":n==="websearch"&&(i="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
291r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},aP=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3,retry:s}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i,this.retry=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},i=r?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join(""),{url:a,headers:c}=this.cloneRequestState();return a.searchParams.set("select",o),n&&c.append("Prefer",`count=${n}`),new _i({method:i,url:a,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(a.length>
2910){const c=[...new Set(a)].map(u=>`"${u}"`);s.searchParams.set("columns",c.join(","))}}return new _i({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var s;const o="POST",{url:a,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),n&&c.append("Prefer",`count=${n}`),i||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);a.searchParams.set("columns",d.join(","))}}return new _i({method:o,url:a,headers:c,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const n="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new _i({method:n,url:i,headers:s,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new _i({method:r,url:n,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Ao(e){"@babel/helpers - typeof";return Ao=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},Ao(e)}function lP(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cP(e){var t=lP(e,"string");return Ao(t)=="symbol"?t:t+""}function uP(e,t,r){return(t=cP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(r),!0).forEach(function(n){uP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var dP=class Ub{constructor(t,{headers:r={},schema:n,fetch:i,timeout:s,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const c=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(u,d)=>{const h=new AbortController,p=setTimeout(()=>h.abort(),s),f=d==null?void 0:d.signal;if(f){if(f.aborted)return clearTimeout(p),c(u,d);const g=()=>{clearTimeout(p),h.abort()};return f.addEventListener("abort",g,{once:!0}),c(u,Na(Na({},d),{},{signal:h.signal})).finally(()=>{clearTimeout(p),f.removeEventListener("abort",g)})}return c(u,Na(Na({},d),{},{signal:h.signal})).finally(()=>clearTimeout(p))}:this.fetch=c,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 aP(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 Ub(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,r={},{head:n=!1,get:i=!1,count:s}={}){var o;let a;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=n&&Object.values(r).some(d);h?(a="POST",u=r):n||i?(a=n?"HEAD":"GET",Object.entries(r).filter(([f,g])=>g!==void 0).map(([f,g])=>[f,Array.isArray(g)?`{${g.join(",")}}`:`${g}
291`]).forEach(([f,g])=>{c.searchParams.append(f,g)})):(a="POST",u=r);const p=new Headers(this.headers);return h?p.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&p.set("Prefer",`count=${s}`),new _i({method:a,url:c,headers:p,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class hP{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const r=globalThis;if(typeof globalThis<"u"&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};const n=typeof global<"u"?global:void 0;if(n&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};if(typeof globalThis<"u"&&typeof r.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"&&r.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 i=globalThis.process;if(i){const s=i.versions;if(s&&s.node){const o=s.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: 292import ws from "ws" 293new 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 r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 294 295Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const fP="2.106.2",pP=`realtime-js/${fP}`,mP="1.0.0",Bb="2.0.0",gP=Bb,yP=1e4,vP=100,rn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},zb={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Vd={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class wP{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",c=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(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(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+a.length+o.length+u.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let g=new DataView(f),m=0;g.setUint8(m++,this.KINDS.userBroadcastPush),g.setUint8(m++,c.length),g.setUint8(m++,a.length),g.setUint8(m++,o.length),g.setUint8(m++,u.length),g.setUint8(m++,h.length),g.setUint8(m++,r),Array.from(c,y=>
295g.setUint8(m++,y.charCodeAt(0))),Array.from(a,y=>g.setUint8(m++,y.charCodeAt(0))),Array.from(o,y=>g.setUint8(m++,y.charCodeAt(0))),Array.from(u,y=>g.setUint8(m++,y.charCodeAt(0))),Array.from(h,y=>g.setUint8(m++,y.charCodeAt(0)));var x=new Uint8Array(f.byteLength+n.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(n),f.byteLength),x.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,s,o,a,c]=n;return r({join_ref:i,ref:s,topic:o,event:a,payload:c})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),s=r.getUint8(2),o=r.getUint8(3),a=r.getUint8(4);let c=this.HEADER_LENGTH+4;const u=n.decode(t.slice(c,c+i));c=c+i;const d=n.decode(t.slice(c,c+s));c=c+s;const h=n.decode(t.slice(c,c+o));c=c+o;const p=t.slice(c,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,g={type:this.BROADCAST_EVENT,event:d,payload:f};return o>0&&(g.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:g}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}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 Vm=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=bP(o,e,t,i),s),{}):{}},bP=(e,t,r,n)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=r[e];return s&&!n.includes(s)?Hb(s,o):Wd(o)},Hb=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return EP(t,r)}switch(e){case ce.bool:return xP(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return kP(t);case ce.json:case ce.jsonb:return SP(t);case ce.timestamp:return _P(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 Wd(t);default:return Wd(t)}},Wd=e=>e,xP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},kP=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},SP=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},EP=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let s;const o=e.slice(1,r);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>Hb(t,a))}return e},_P=e=>typeof e=="string"?e.replace(" ","T"):e,Vb=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 ro=e=>typeof e=="function"?e:function(){return e},CP=typeof self<"u"?self:null,Ci=typeof window<"u"?window:null,sr=CP||Ci||globalThis,TP="2.0.0",jP=1e4,NP=1e3,cr={connecting:0,open:1,closing:2,closed:3},ot={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Sr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Gd={longpoll:"longpoll",websocket:"websocket"},PP={complete:4},qd="base64url.bearer.phx.",Pa=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 295
295oks=[],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:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.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})}},Wb=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))}},RP=class{constructor(e,t,r){this.state=ot.closed,this.topic=e,this.params=ro(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Pa(this,Sr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Wb(()=>{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=ot.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=ot.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=ot.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=ot.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 Pa(this,Sr.leave,ro({}),this.timeout).send(),this.state=ot.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Sr.reply,(n,i)=>{this.trigger(this.replyEventName(i),n)})}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=ot.closed,this.bindings=[]}onClose(e){this.on(Sr.close,e)}onError(e){return this.on(Sr.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=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 n=new Pa(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ot.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Sr.close,"leave")},r=new Pa(this,Sr.leave,ro({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return this.topic!==e?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ot.joining,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,r));for(let o=0;o<s.length;o++)s[o].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===ot.closed}isErrored(){return this.state===ot.errored}isJoined(){return this.state===ot.joined}isJoining(){return this.state===ot.joining}isLeaving(){return this.state===ot.leaving}},Ll=class{static request(e,t,r,n,i,s,o){if(sr.XDomainRequest){let a=new sr.XDomainRequest;return this.xdomainRequest(a,e,t,n,i,s,o)}else if(sr.XMLHttpRequest){let a=new sr.XMLHttpRequest;return this.xhrRequest(a,e,t,r,n,i,s,o)}else{if(sr.fetch&&sr.AbortController)return this.fetchRequest(e,t,r,n,i,s,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,n,i,s,o){let a={method:e,headers:r,body:n},c=null;return i&&(c=new AbortController,setTimeout(()=>c.abort(),i),a.signal=c.signal),sr.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&s?s():o&&o(null)}),c}static xdomainRequest(e,t,r,n,i,s,o){return e.timeout=i,e.open(t,r),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,s,o,a){e.open(t,r,!0),e.timeout=s;for(let[c,u]of Object.entries(n))e.setRequestHeader(c,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===PP.complete&&a){let c=this.parseJSON(e.responseText);a(c)}},o&&(e.ontimeout=o),e.send(i),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 r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,s=e[n];typeof s=="object"?r.push(this.serialize(s,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},AP=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)},bi=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(qd)&&(this.authToken=atob(t[1].slice(qd.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=cr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Gd.websocket),"$1/"+Gd.longpoll)}endpointURL(){return Ll.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=cr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===cr.open||this.readyState===cr.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:r,token:n,messages:i}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else r=0;switch(r){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=cr.open,this.onopen({}),this.poll();break;
295case 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 ${r}`)}})}send(e){typeof e!="string"&&(e=AP(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(` 296`),()=>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,r){for(let i of this.reqs)i.abort();this.readyState=cr.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,i){let s,o=()=>{this.reqs.delete(s),n()};s=Ll.request(e,this.endpointURL(),t,r,this.timeout,o,a=>{this.reqs.delete(s),this.isActive()&&i(a)}),this.reqs.add(s)}},IP=class Vs{constructor(t,r={}){let n=r.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(n.state,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Vs.syncState(this.state,i,s,o),this.pendingDiffs.forEach(c=>{this.state=Vs.syncDiff(this.state,c,s,o)}),this.pendingDiffs=[],a()}),this.channel.on(n.diff,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Vs.syncDiff(this.state,i,s,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Vs.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,n,i){let s=this.clone(t),o={},a={};return this.map(s,(c,u)=>{r[c]||(a[c]=u)}),this.map(r,(c,u)=>{let d=s[c];if(d){let h=u.metas.map(m=>m.phx_ref),p=d.metas.map(m=>m.phx_ref),f=u.metas.filter(m=>p.indexOf(m.phx_ref)<0),g=d.metas.filter(m=>h.indexOf(m.phx_ref)<0);f.length>0&&(o[c]=u,o[c].metas=f),g.length>0&&(a[c]=this.clone(d),a[c].metas=g)}else o[c]=u}),this.syncDiff(s,{joins:o,leaves:a},n,i)}static syncDiff(t,r,n,i){let{joins:s,leaves:o}=this.clone(r);return n||(n=function(){}),i||(i=function(){}),this.map(s,(a,c)=>{let u=t[a];if(t[a]=this.clone(c),u){let d=t[a].metas.map(p=>p.phx_ref),h=u.metas.filter(p=>d.indexOf(p.phx_ref)<0);t[a].metas.unshift(...h)}n(a,u,c)}),this.map(o,(a,c)=>{let u=t[a];if(!u)return;let d=c.metas.map(h=>h.phx_ref);u.metas=u.metas.filter(h=>d.indexOf(h.phx_ref)<0),i(a,u,c),u.metas.length===0&&delete t[a]}),t}static list(t,r){return r||(r=function(n,i){return i}),this.map(t,(n,i)=>r(n,i))}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Ra={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 r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,s,o]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:s,payload:o})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:s}=e,o=this.META_LENGTH+t.length+r.length+i.length+n.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),c=new DataView(a),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,t.length),c.setUint8(u++,r.length),c.setUint8(u++,i.length),c.setUint8(u++,n.length),Array.from(t,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(i,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(a.byteLength+s.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(s),a.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;
vendor: 8,661 bytes, line 296
296switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=r.decode(e.slice(o,o+n));o=o+n;let c=r.decode(e.slice(o,o+i));o=o+i;let u=r.decode(e.slice(o,o+s));o=o+s;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:c,event:u,payload:d}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,c=r.decode(e.slice(a,a+n));a=a+n;let u=r.decode(e.slice(a,a+i));a=a+i;let d=r.decode(e.slice(a,a+s));a=a+s;let h=r.decode(e.slice(a,a+o));a=a+o;let p=e.slice(a,e.byteLength),f={status:h,response:p};return{join_ref:c,ref:u,topic:d,event:Sr.reply,payload:f}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,o=r.decode(e.slice(s,s+n));s=s+n;let a=r.decode(e.slice(s,s+i));s=s+i;let c=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:c}}},OP=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||jP,this.transport=t.transport||sr.WebSocket||bi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let r=null;try{r=sr&&sr.sessionStorage}catch{}this.sessionStore=t.sessionStorage||r,this.establishedConnections=0,this.defaultEncoder=Ra.encode.bind(Ra),this.defaultDecoder=Ra.decode.bind(Ra),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!==bi?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Ci&&Ci.addEventListener&&(Ci.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Ci.addEventListener("pageshow",i=>{n===this.connectClock&&(n=null,this.connect())}),Ci.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=i=>t.rejoinAfterMs?t.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>t.reconnectAfterMs?t.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(i,s,o)=>{console.log(`${i}: ${s}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ro(t.params||{}),this.endPoint=`${e}/${Gd.websocket}`,this.vsn=t.vsn||TP,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Wb(()=>{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 bi}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=Ll.appendParams(Ll.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,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ro(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==bi?this.connectWithFallback(bi,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}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(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){switch(e){case bi:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${qd}${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 r=!1,n=!0,i,s,o=this.transportName(e),a=c=>{this.log("transport",`falling back to ${o}...`,c),this.off([i,s]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),s=this.onError(c=>{this.log("transport","error",c),n&&!r&&(clearTimeout(this.fallbackTimer),a(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!n){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),NP,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===cr.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}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,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 296
296triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Sr.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case cr.connecting:return"connecting";case cr.open:return"open";case cr.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(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new RP(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:s}=e;this.log("push",`${t} ${r} (${s}, ${i})`,n)}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:r,event:n,payload:i,ref:s,join_ref:o}=t;if(s&&s===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",a)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${r} ${n} ${s&&"("+s+")"||""}`.trim(),i);for(let a=0;a<this.channels.length;a++){const c=this.channels[a];c.isMember(r,n,i,o)&&c.trigger(n,i,s,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class no{constructor(t,r){const n=MP(r);this.presence=new IP(t.getChannel(),n),this.presence.onJoin((i,s,o)=>{const a=no.onJoinPayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((i,s,o)=>{const a=no.onLeavePayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return no.transformState(this.presence.state)}static transformState(t){return t=DP(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return r[n]=tl(i),r},{})}static onJoinPayload(t,r,n){const i=Wm(r),s=tl(n);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,r,n){const i=Wm(r),s=tl(n);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function tl(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function DP(e){return JSON.parse(JSON.stringify(e))}function MP(e){return(e==null?void 0:e.events)&&{events:e.events}}function Wm(e){return e!=null&&e.metas?tl(e):[]}var Gm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Gm||(Gm={}));class LP{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new no(this.channel.channelAdapter,r)}}function $P(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
296if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const r=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${r}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class FP{constructor(t,r,n){const i=UP(n);this.channel=t.getSocket().channel(r,i),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,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}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,r,n){let i;try{i=this.channel.push(t,r,n)}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>vP){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===rn.joined}isJoined(){return this.state===rn.joined}isJoining(){return this.state===rn.joining}isClosed(){return this.state===rn.closed}isLeaving(){return this.state===rn.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function UP(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var qm;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(qm||(qm={}));var Bi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Bi||(Bi={}));var Er;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Er||(Er={}));class io{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,r={config:{}},n){var i,s;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.channelAdapter=new FP(this.socket.socketAdapter,t,this.params),this.presence=new LP(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Vb(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,r=this.timeout){var n,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:c}}=this.params,u=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Bi.PRESENCE]&&this.bindings[Bi.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,h={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(Er.CHANNEL_ERROR,$P(f))}),this._onClose(()=>t==null?void 0:t(Er.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Er.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=rn.errored;const g=Object.values(f).join(", ")||"error";t==null||t(Er.CHANNEL_ERROR,new Error(g,{cause:f}))}).receive("timeout",()=>{t==null||t(Er.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var n;const i=this.bindings.postgres_changes,s=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0,o=[];for(let a=0;a<s;a++){const c=i[a],{filter:{event:u,schema:d,table:h,filter:p}}=c,f=t&&t[a];if(f&&f.event===u&&io.isFilterValueEqual(f.schema,d)&&io.isFilterValueEqual(f.table,h)&&io.isFilterValueEqual(f.filter,p))o.push(Object.assign(Object.assign({},c),{id:f.id}));else{this.unsubscribe(),this.state=rn.errored,r==null||r(Er.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=rn.errored&&r&&r(Er.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=t===Bi.PRESENCE||t===Bi.POSTGRES_CHANGES;if(i&&s)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,r,n)}async httpSend(t,r,n={}){var i;if(r==null)return Promise.reject(new Error("Payload is required for httpSend()"));const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let c=a.statusText;
296try{const u=await a.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(t,r={}){var n,i;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:s,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 c={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,c;const u=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,n){const i=new AbortController,s=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(s),o}_on(t,r,n){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,n),o={type:i,filter:r,callback:n,ref:s};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,n)=>{var i,s,o,a,c,u,d;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,n))return!1;const p=(i=this.bindings[h])===null||i===void 0?void 0:i.find(f=>f.ref===t.ref);if(!p)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in p){const f=p.id,g=(s=p.filter)===null||s===void 0?void 0:s.event;return f&&((o=r.ids)===null||o===void 0?void 0:o.includes(f))&&(g==="*"||(g==null?void 0:g.toLocaleLowerCase())===((a=r.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const f=(u=(c=p==null?void 0:p.filter)===null||c===void 0?void 0:c.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return f==="*"||f===((d=r==null?void 0:r.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,r){const{close:n,error:i,leave:s,join:o}=zb;return r&&[n,i,s,o].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,n)=>{if(typeof r=="object"&&"ids"in r){const i=r.data,{schema:s,table:o,commit_timestamp:a,type:c,errors:u}=i;return Object.assign(Object.assign({},{schema:s,table:o,commit_timestamp:a,eventType:c,new:{},old:{},errors:u}),this._getPayloadRecords(i))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const n of t.bindings[r])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Vm(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Vm(t.columns,t.old_record)),r}}class BP{constructor(t,r){this.socket=new OP(t,r)}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,r,n,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("ok")},r,n)})}push(t){this.socket.push(t)}log(t,r,n){this.socket.log(t,r,n)}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()==Vd.connecting}isDisconnecting(){return this.socket.connectionState()==Vd.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Km={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},zP=[1e3,2e3,5e3,1e4],HP=1e4;function VP(){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 r;return(r=Array.from(e.keys())[t])!==null&&r!==void 0?r:null},removeItem(t){e.delete(t)},setItem(t,r){e.set(t,String(r))}}}function WP(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return VP()}const GP=` 297 addEventListener("message", (e) => { 298 if (e.data.event === "start") { 299 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 300 } 301 });`;class qP{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,r){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
301,this.ref=0,this.serializer=new wP,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey;const i=this._initializeOptions(r);this.socketAdapter=new BP(t,i),this.httpEndpoint=Vb(t),this.fetch=this._resolveFetch(r==null?void 0:r.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 r=t.message;throw r.includes("Node.js")?new Error(`${r} 302 303To use Realtime in Node.js, you need to provide a WebSocket implementation: 304 305Option 1: Use Node.js 22+ which has native WebSocket support 306Option 2: Install and provide the "ws" package: 307 308 npm install ws 309 310 import ws from "ws" 311 const client = new RealtimeClient(url, { 312 ...options, 313 transport: ws 314 })`):new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),r}async removeAllChannels(){const t=this.channels.map(async n=>{const i=await n.unsubscribe();return n.teardown(),i}),r=await Promise.all(t);return await this.disconnect(),r}log(t,r,n){this.socketAdapter.log(t,r,n)}connectionState(){return this.socketAdapter.connectionState()||Vd.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===n);if(i)return i;{const s=new io(`realtime:${t}`,r,this);return this._cancelPendingDisconnect(),this.channels.push(s),s}}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(r=>r.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}
314this._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 r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(i=>{const s={access_token:r,version:pP};r&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(zb.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),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(r,n)=>{r=="sent"&&this._setAuthSafely(),t&&t(r,n)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([GP],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_initializeOptions(t){var r,n,i,s,o,a,c,u,d,h,p,f;this.worker=(r=t==null?void 0:t.worker)!==null&&r!==void 0?r:!1,this.accessToken=(n=t==null?void 0:t.accessToken)!==null&&n!==void 0?n:null;const g={};g.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:yP,g.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Km.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:Km.HEARTBEAT_INTERVAL),g.transport=(c=t==null?void 0:t.transport)!==null&&c!==void 0?c:hP.getWebSocketConstructor(),g.params=t==null?void 0:t.params,g.logger=t==null?void 0:t.logger,g.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),g.sessionStorage=(u=t==null?void 0:t.sessionStorage)!==null&&u!==void 0?u:WP(),g.reconnectAfterMs=(d=t==null?void 0:t.reconnectAfterMs)!==null&&d!==void 0?d:v=>zP[v-1]||HP;let m,x;const y=(h=t==null?void 0:t.vsn)!==null&&h!==void 0?h:gP;switch(y){case mP:m=(v,b)=>b(JSON.stringify(v)),x=(v,b)=>b(JSON.parse(v));break;case Bb:m=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${g.vsn}`)}if(g.vsn=y,g.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:m,g.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:x,g.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,g.params=Object.assign(Object.assign({},g.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,g.autoSendHeartbeat=!this.worker}return g}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
314var Io=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function KP(e,t,r){const n=new URL(t,e);if(r)for(const[i,s]of Object.entries(r))s!==void 0&&n.searchParams.set(i,s);return n.toString()}async function JP(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 QP(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:s,headers:o}){const a=KP(e.baseUrl,n,i),c=await JP(e.auth),u=await t(a,{method:r,headers:{...s?{"Content-Type":"application/json"}:{},...c,...o},body:s?JSON.stringify(s):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!u.ok){const f=h?p:void 0,g=f==null?void 0:f.error;throw new Io((g==null?void 0:g.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:g==null?void 0:g.type,icebergCode:g==null?void 0:g.code,details:f})}return{status:u.status,headers:u.headers,data:p}}}}function Aa(e){return e.join("�")}var YP=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Aa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Aa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Aa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Aa(e.namespace)}`}),!0}catch(t){if(t instanceof Io&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Io&&r.status===409)return;throw r}}};function xi(e){return e.join("�")}var XP=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${xi(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${xi(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${xi(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${xi(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/${xi(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/${xi(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Io&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Io&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},ZP=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=QP({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new YP(this.client,t),this.tableOps=new XP(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
314async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Oo(e){"@babel/helpers - typeof";return Oo=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},Oo(e)}function eR(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tR(e){var t=eR(e,"string");return Oo(t)=="symbol"?t:t+""}function rR(e,t,r){return(t=tR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(r),!0).forEach(function(n){rR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _c=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Cc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Kd=class extends _c{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return V({},super.toJSON())}},Gb=class extends _c{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function $l(e,t,r){const n=V({},e),i=t.toLowerCase();for(const s of Object.keys(n))s.toLowerCase()===i&&delete n[s];return n[i]=r,n}function nR(e){const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}const iR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),sR=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)},Jd=e=>{if(Array.isArray(e))return e.map(r=>Jd(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Jd(n)}),t},oR=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Qm=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 r=t.error;if(typeof r.message=="string")return r.message}}return JSON.stringify(e)},aR=async(e,t,r,n)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const i=e;let s=parseInt(String(i.status),10);Number.isFinite(s)||(s=500),i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new Kd(Qm(o),s,a,n))}).catch(()=>{const o=s+"";t(new Kd(i.statusText||`HTTP ${s} error`,s,o,n))})}else t(new Gb(Qm(e),e,n))},lR=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!n)return V(V({},i),r);if(sR(n)){var s;const o=(t==null?void 0:t.headers)||{};let a;for(const[c,u]of Object.entries(o))c.toLowerCase()==="content-type"&&(a=u);i.headers=$l(o,"Content-Type",(s=a)!==null&&s!==void 0?s:"application/json"),i.body=JSON.stringify(n)}else i.body=n;return t!=null&&t.duplex&&(i.duplex=t.duplex),V(V({},i),r)};async function Ls(e,t,r,n,i,s,o){return new Promise((a,c)=>
314{e(r,lR(t,n,i,s)).then(u=>{if(!u.ok)throw u;if(n!=null&&n.noResolveJson)return u;if(o==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>aR(u,c,n,o))})}function qb(e="storage"){return{get:async(t,r,n,i)=>Ls(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,s)=>Ls(t,"POST",r,i,s,n,e),put:async(t,r,n,i,s)=>Ls(t,"PUT",r,i,s,n,e),head:async(t,r,n,i)=>Ls(t,"HEAD",r,V(V({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,s)=>Ls(t,"DELETE",r,i,s,n,e)}}const cR=qb("storage"),{get:Do,post:Vt,put:Qd,head:uR,remove:Nf}=cR,mt=qb("vectors");var Es=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=nR(t),this.fetch=iR(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=$l(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Cc(r))return{data:null,error:r};throw r}}};let Kb;Kb=Symbol.toStringTag;var dR=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Kb]="StreamDownloadBuilder",this.promise=null}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 e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Cc(t))return{data:null,error:t};throw t}}};let Jb;Jb=Symbol.toStringTag;var hR=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Jb]="BlobDownloadBuilder",this.promise=null}asStream(){return new dR(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(Cc(t))return{data:null,error:t};throw t}}};const fR={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ym={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var pR=class extends Es{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let s;const o=V(V({},Ym),n);let a=V(V({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;if(typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",i.encodeMetadata(c)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),c&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(c))):(s=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,c&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers)for(const[p,f]of Object.entries(n.headers))a=$l(a,p,f);const u=i._removeEmptyFolders(t),d=i._getFinalPath(u),h=await(e=="PUT"?Qd:Vt)(i.fetch,`${i.url}/object/${d}`,s,V({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let c;const u=V(V({},Ym),n);let d=V(V({},i.headers),{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),h&&c.append("metadata",i.encodeMetadata(h)),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),h&&!c.has("metadata")&&c.append("metadata",i.encodeMetadata(h))):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=i.toBase64(i.encodeMetadata(h))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),n!=null&&n.headers)for(const[p,f]of Object.entries(n.headers))d=$l(d,p,f);return{path:s,fullPath:(await Qd(i.fetch,a.toString(),c,V({headers:d},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=V({},r.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Vt(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(r.url+s.url),a=o.searchParams.get("token");if(!a)throw new _c("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Vt(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
314stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Vt(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e);const s=typeof(r==null?void 0:r.transform)=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let o=await Vt(n.fetch,`${n.url}/object/sign/${i}`,V({expiresIn:t},s?{transform:r.transform}:{}),{headers:n.headers});const a=new URLSearchParams;r!=null&&r.download&&a.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&a.set("cacheNonce",String(r.cacheNonce));const c=a.toString();return{signedUrl:encodeURI(`${n.url}${o.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await Vt(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),s=new URLSearchParams;r!=null&&r.download&&s.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&s.set("cacheNonce",String(r.cacheNonce));const o=s.toString();return i.map(a=>V(V({},a),{},{signedUrl:a.signedURL?encodeURI(`${n.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(i,t.transform),(t==null?void 0:t.cacheNonce)!=null&&i.set("cacheNonce",String(t.cacheNonce));const s=i.toString(),o=this._getFinalPath(e),a=()=>Do(this.fetch,`${this.url}/${n}/${o}${s?`?${s}`:""}`,{headers:this.headers,noResolveJson:!0},r);return new hR(a,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Jd(await Do(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await uR(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(Cc(i)){var n;const s=i instanceof Kd?i.status:i instanceof Gb?(n=i.originalError)===null||n===void 0?void 0:n.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=new URLSearchParams;t!=null&&t.download&&n.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(n,t.transform),(t==null?void 0:t.cacheNonce)!=null&&n.set("cacheNonce",String(t.cacheNonce));const i=n.toString(),s=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}/${s}/public/${r}`)+(i?`?${i}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Nf(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=V(V(V({},fR),t),{},{prefix:e||""});return await Vt(n.fetch,`${n.url}/object/list/${n.bucketId}`,i,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=V({},e);return await Vt(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}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("quality",t.quality.toString()),e}};const mR="2.106.2",Xo={"X-Client-Info":`storage-js/${mR}`};var gR=class extends Es{constructor(e,t={},r,n){const i=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=V(V({},Xo),t);super(s,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await Do(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Do(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Vt(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Qd(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Vt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Nf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}}
314,yR=class extends Es{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=V(V({},Xo),t);super(n,i,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Vt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await Do(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Nf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!oR(e))throw new _c("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new ZP({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}},vR=class extends Es{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=V(V({},Xo),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await mt.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await mt.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},wR=class extends Es{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=V(V({},Xo),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await mt.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");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await mt.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 mt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},bR=class extends Es{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=V(V({},Xo),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await mt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},xR=class extends bR{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new kR(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},kR=class extends vR{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName}))}
314async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new SR(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},SR=class extends wR{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},ER=class extends gR{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new pR(this.url,this.headers,e,this.fetch)}get vectors(){return new xR(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new yR(this.url+"/iceberg",this.headers,this.fetch)}};function Tc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}const Qb="2.106.2",Ti=30*1e3,Yd=3,ku=Yd*Ti,_R="http://localhost:9999",CR="supabase.auth.token",TR={"X-Client-Info":`gotrue-js/${Qb}`},Xd="X-Supabase-Api-Version",Yb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},jR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,NR=10*60*1e3;class gs extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}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 PR extends gs{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function RR(e){return M(e)&&e.name==="AuthApiError"}class Jt extends gs{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class $r extends gs{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class De extends $r{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ia(e){return M(e)&&e.name==="AuthSessionMissingError"}class ki extends $r{constructor(){super("Auth session or user missing","AuthInvalidToken
314ResponseError",500,void 0)}}class Oa extends $r{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Da extends $r{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function AR(e){return M(e)&&e.name==="AuthImplicitGrantRedirectError"}class Xm extends $r{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class IR extends $r{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 Zd extends $r{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Su(e){return M(e)&&e.name==="AuthRetryableFetchError"}class Zm extends $r{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class eh extends $r{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),eg=` 315\r=`.split(""),OR=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<eg.length;t+=1)e[eg[t].charCodeAt(0)]=-2;for(let t=0;t<Fl.length;t+=1)e[Fl[t].charCodeAt(0)]=t;return e})();function tg(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Fl[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Fl[n]),t.queuedBits-=6}}function Xb(e,t,r){const n=OR[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function rg(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{LR(o,n,r)};for(let o=0;o<e.length;o+=1)Xb(e.charCodeAt(o),i,s);return t.join("")}function DR(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 MR(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}DR(n,t)}}function LR(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Xi(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)Xb(e.charCodeAt(i),r,n);return new Uint8Array(t)}function $R(e){const t=[];return MR(e,r=>t.push(r)),new Uint8Array(t)}function Bn(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>tg(i,r,n)),tg(null,r,n),t.join("")}function FR(e){return Math.round(Date.now()/1e3)+e}function UR(){return Symbol("auth-callback")}const Ue=()=>typeof window<"u"&&typeof document<"u",In={tested:!1,writable:!1},Zb=()=>{if(!Ue())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(In.tested)return In.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),In.tested=!0,In.writable=!0}catch{In.tested=!0,In.writable=!1}return In.writable};function BR(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
315h((i,s)=>{t[s]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const ex=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zR=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ji=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},On=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return null}},Fe=async(e,t)=>{await e.removeItem(t)};class jc{constructor(){this.promise=new jc.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}jc.promiseConstructor=Promise;function Ma(e){const t=e.split(".");if(t.length!==3)throw new eh("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!jR.test(t[n]))throw new eh("JWT not in base64url format");return{header:JSON.parse(rg(t[0])),payload:JSON.parse(rg(t[1])),signature:Xi(t[2]),raw:{header:t[0],payload:t[1]}}}async function HR(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function VR(e,t){return new Promise((n,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){n(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function WR(e){return("0"+e.toString(16)).substr(-2)}function GR(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let s=0;s<56;s++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,WR).join("")}async function qR(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function KR(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await qR(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Si(e,t,r=!1){const n=GR();let i=n;r&&(i+="/recovery"),await ji(e,`${t}-code-verifier`,i);const s=await KR(n);return[s,n===s?"plain":"s256"]}const JR=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function QR(e){const t=e.headers.get(Xd);if(!t||!t.match(JR))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function YR(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 XR(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 ZR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function vr(e){if(!ZR.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Bt(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 Eu(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function eA(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;
315if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,i)}})}function ng(e){return JSON.parse(JSON.stringify(e))}const Ln=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)},tA=[502,503,504,520,521,522,523,524,530];async function ig(e){var t;if(!zR(e))throw new Zd(Ln(e),0);if(tA.includes(e.status))throw new Zd(Ln(e),e.status);let r;try{r=await e.json()}catch(s){throw new Jt(Ln(s),s)}let n;const i=QR(e);if(i&&i.getTime()>=Yb["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Zm(Ln(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new De}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new Zm(Ln(r),e.status,r.weak_password.reasons);throw new PR(Ln(r),e.status||500,n)}const rA=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function F(e,t,r,n){var i;const s=Object.assign({},n==null?void 0:n.headers);s[Xd]||(s[Xd]=Yb["2024-01-01"].name),n!=null&&n.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const o=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await nA(e,t,r+a,{headers:s,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function nA(e,t,r,n,i,s){const o=rA(t,n,i,s);let a;try{a=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new Zd(Ln(c),0)}if(a.ok||await ig(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(c){await ig(c)}}function _t(e){var t;let r=null;oA(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=FR(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:r,user:n},error:null}}function sg(e){const t=_t(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function nn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function iA(e){return{data:e,error:null}}function sA(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s}=e,o=Tc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s},c=Object.assign({},o);return{data:{properties:a,user:c},error:null}}function og(e){return e}function oA(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const _u=["global","local","others"];class aA{_encodePathSegment(t){if(t==="."||t==="..")throw new gs("Invalid path segment");return encodeURIComponent(t)}constructor({url:t="",headers:r={},fetch:n,experimental:i}){this.url=t,this.headers=r,this.fetch=ex(n),this.experimental=i??{},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,r=_u[0]){if(_u.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${_u.join(", ")}`);try{return await F(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await F(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:nn})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Tc(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await F(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:sA,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(M(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await F(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:nn})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,s,o,a,c;try{const u={nextPage:null,lastPage:0,total:0},d=await F(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:og});if(d.error)throw d.error;const h=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(c=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(M(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){vr(t);try{return await F(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:nn})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){vr(t);try{return await F(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:nn})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){vr(t);
315try{return await F(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:nn})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){vr(t.userId);try{const{data:r,error:n}=await F(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _deleteFactor(t){vr(t.userId),vr(t.id);try{return{data:await F(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,s,o,a,c;try{const u={nextPage:null,lastPage:0,total:0},d=await F(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:og});if(d.error)throw d.error;const h=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(c=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(M(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await F(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{const r=this._encodePathSegment(t);return await F(this.fetch,"GET",`${this.url}/admin/oauth/clients/${r}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{const n=this._encodePathSegment(t);return await F(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${n}`,{body:r,headers:this.headers,xform:i=>({data:i,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{const r=this._encodePathSegment(t);return await F(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${r}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{const r=this._encodePathSegment(t);return await F(this.fetch,"POST",`${this.url}/admin/oauth/clients/${r}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t!=null&&t.type&&(r.type=t.type),await F(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:n=>{var i;return{data:{providers:(i=n==null?void 0:n.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(r){if(M(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await F(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{const r=this._encodePathSegment(t);return await F(this.fetch,"GET",`${this.url}/admin/custom-providers/${r}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{const n=this._encodePathSegment(t);return await F(this.fetch,"PUT",`${this.url}/admin/custom-providers/${n}`,{body:r,headers:this.headers,xform:i=>({data:i,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(t){try{const r=this._encodePathSegment(t);return await F(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${r}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _adminListPasskeys(t){Bt(this.experimental),vr(t.userId);try{return await F(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _adminDeletePasskey(t){Bt(this.experimental),vr(t.userId),vr(t.passkeyId);
315try{return await F(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}}function ag(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const nr={debug:!!(globalThis&&Zb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class tx extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class lg extends tx{}async function lA(e,t,r){nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{n.abort(),nr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){clearTimeout(i),nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new lg(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(nr.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await r()}})}catch(s){if(t>0&&clearTimeout(i),s!==null&&typeof s=="object"&&"name"in s&&s.name==="AbortError"&&t>0){if(n.signal.aborted)return nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await r()}finally{nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await r()}));throw nr.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new lg(`Lock "${e}" was released because another request stole it`)}throw s}}function cA(){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 rx(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function uA(e){return parseInt(e,16)}function dA(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function hA(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:c,resources:u,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);
315if(!((t=e.statement)===null||t===void 0)&&t.includes(` 316`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=rx(e.address),g=d?`${d}://${n}`:n,m=e.statement?`${e.statement} 317`:"",x=`${g} wants you to sign in with your Ethereum account: 318${f} 319 320${m}`;let y=`URI: ${h} 321Version: ${p} 322Chain ID: ${r}${o?` 323Nonce: ${o}`:""} 324Issued At: ${s.toISOString()}`;if(i&&(y+=` 325Expiration Time: ${i.toISOString()}`),a&&(y+=` 326Not Before: ${a.toISOString()}`),c&&(y+=` 327Request ID: ${c}`),u){let v=` 328Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);v+=` 329- ${b}`}y+=v}return`${x} 330${y}`}class je extends Error{constructor({message:t,code:r,cause:n,name:i}){var s;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(s=i??(n instanceof Error?n.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=r}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Ul extends je{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function fA({error:e,options:t}){var r,n,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new je({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=s.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new je({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=s.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new je({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new je({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 je({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new je({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new je({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new je({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(nx(o)){if(s.rp.id!==o)return new je({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new je({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 je({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 je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function pA({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new je({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new je({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(nx(n)){if(r.rpId!==n)return new je({message:`The RP ID "${r.rpId}
330" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new je({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 je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class mA{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const th=new mA;function cg(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=Tc(e,["challenge","user","excludeCredentials"]),s=Xi(t).buffer,o=Object.assign(Object.assign({},r),{id:Xi(r.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];a.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Xi(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function ug(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=Tc(e,["challenge","allowCredentials"]),i=Xi(t).buffer,s=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){s.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const a=r[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Xi(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function dg(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Bn(new Uint8Array(e.response.attestationObject)),clientDataJSON:Bn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function hg(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Bn(new Uint8Array(i.authenticatorData)),clientDataJSON:Bn(new Uint8Array(i.clientDataJSON)),signature:Bn(new Uint8Array(i.signature)),userHandle:i.userHandle?Bn(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function nx(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Bl(){var e,t;return!!(Ue()&&"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 ix(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ul("Browser returned unexpected credential type",t)}:{data:null,error:new Ul("Empty credential response",t)}}catch(t){return{data:null,error:fA({error:t,options:e})}}}async function sx(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ul("Browser returned unexpected credential type",t)}:{data:null,error:new Ul("Empty credential response",t)}}
330catch(t){return{data:null,error:pA({error:t,options:e})}}}const gA={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},yA={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function zl(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))n[s]=o;else if(r(o))n[s]=o;else if(t(o)){const a=n[s];t(a)?n[s]=zl(a,o):n[s]=zl(o)}else n[s]=o}return n}function vA(e,t){return zl(gA,e,t||{})}function wA(e,t){return zl(yA,e,t||{})}class bA{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},s){var o;try{const{data:a,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!a)return{data:null,error:c};const u=i??th.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const h=n;if(h)d.name=`${d.id}:${h}`;else{const f=(await this.client.getUser()).data.user,g=((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";d.name=`${d.id}:${g}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=vA(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:h,error:p}=await ix({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}case"request":{const d=wA(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:h,error:p}=await sx(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}}}catch(a){return M(a)?{data:null,error:a}:{data:null,error:new Jt("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new gs("rpId is required for WebAuthn authentication")};try{if(!Bl())return{data:null,error:new Jt("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:s});if(!o)return{data:null,error:a};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new Jt("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new gs("rpId is required for WebAuthn registration")};try{if(!Bl())return{data:null,error:new Jt("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(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:s});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new Jt("Unexpected error in register",o)}}}}cA();const xA={url:_R,storageKey:CR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:TR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function fg(e,t,r){return await r()}const Ei={};class Mo{get jwks(){var t,r;return(r=(t=Ei[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Ei[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},xA),t);if(this.storageKey=o.storageKey,this.instanceID=(r=Mo.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Mo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Ue()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.experimental=(n=o.experimental)!==null&&n!==void 0?n:{},this.admin=new aA({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=ex(o.fetch),this.lock=o.lock||fg,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&Ue()&&(!((i=globalThis==null?void 0:globalThis.navigator)===null||i===void 0)&&i.locks)?this.lock=lA:this.lock=fg,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 bA(this)}
330,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?(o.storage?this.storage=o.storage:Zb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=ag(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=ag(this.memoryStorage)),Ue()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(c){this._debug("#broadcastChannel","error",c)}})}o.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Qb}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Ue()&&(r=BR(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Ue()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),AR(s)){const c=(t=s.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return M(r)?this._returnResult({error:r}):this._returnResult({error:new Jt("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const s=await F(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:_t}),{data:o,error:a}=s;
330if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var r,n,i;try{let s;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,g=null;this.flowType==="pkce"&&([f,g]=await Si(this.storage,this.storageKey)),s=await F(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:g},xform:_t})}else if("phone"in t){const{phone:d,password:h,options:p}=t;s=await F(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(i=p==null?void 0:p.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:_t})}else throw new Oa("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
330if(a||!o)return await Fe(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let r;if("email"in t){const{email:s,password:o,options:a}=t;r=await F(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sg})}else if("phone"in t){const{phone:s,password:o,options:a}=t;r=await F(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sg})}else throw new Oa("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const s=new ki;return this._returnResult({data:{user:null,session:null},error:s})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,s,o,a,c,u,d,h,p;let f,g;if("message"in t)f=t.message,g=t.signature;else{const{chain:m,wallet:x,statement:y,options:v}=t;let b;if(Ue())if(typeof x=="object")b=x;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")b=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=x}const k=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href),S=await b.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=rx(S[0]);let _=(n=v==null?void 0:v.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!_){const P=await b.request({method:"eth_chainId"});_=uA(P)}const T={domain:k.host,address:E,statement:y,uri:k.href,version:"1",chainId:_,nonce:(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.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:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=v==null?void 0:v.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=hA(T),g=await b.request({method:"personal_sign",params:[dA(f),E]})}try{const{data:m,error:x}=await F(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:g}
330,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:_t});if(x)throw x;if(!m||!m.session||!m.user){const y=new ki;return this._returnResult({data:{user:null,session:null},error:y})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:x})}catch(m){if(M(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,i,s,o,a,c,u,d,h,p,f;let g,m;if("message"in t)g=t.message,m=t.signature;else{const{chain:x,wallet:y,statement:v,options:b}=t;let k;if(Ue())if(typeof y=="object")k=y;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"))k=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 y!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=y}const S=new URL((r=b==null?void 0:b.url)!==null&&r!==void 0?r:window.location.href);
330if("signIn"in k&&k.signIn){const E=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),v?{statement:v}:null));let _;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")_=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)_=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(i=(n=b==null?void 0:b.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=b==null?void 0:b.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 331`);const E=await k.signMessage(new TextEncoder().encode(g),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=E}}try{const{data:x,error:y}=await F(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:Bn(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:_t});if(y)throw y;if(!x||!x.session||!x.user){const v=new ki;return this._returnResult({data:{user:null,session:null},error:v})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:y})}catch(x){if(M(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const r=await On(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new IR;const{data:s,error:o}=await F(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:_t});if(await Fe(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new ki;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers(i==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:s,nonce:o}=t,a=await F(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:_t}),{data:c,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new ki;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,s,o;try{if("email"in t){const{email:a,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Si(this.storage,this.storageKey));const{error:h}=await F(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:c}=t,{data:u,error:d}=await F(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Oa("You must provide either an email or phone number.")}catch(a){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let i,s;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,s=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await F(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:_t});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,s,o;try{let a=null,c=null;this.flowType==="pkce"&&([a,c]=await Si(this.storage,this.storageKey));const u=await F(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:c}),headers:this.headers,xform:iA});return!((s=u.data)===null||s===void 0)&&s.url&&Ue()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new De;const{error:i}=await F(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(M(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:s}=t,{error:o}=await F(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:i,options:s}=t,{data:o,error:a}=await F(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Oa("You must provide either an email or phone number and a type")}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await On(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
331id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<ku:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await On(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Eu()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=eA(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await F(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:nn}):await this._useSession(async r=>{var n,i,s;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new De}:await F(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:nn})})}catch(r){if(M(r))return Ia(r)&&(await this._removeSession(),await Fe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:s}=n;if(s)throw s;if(!i.session)throw new De;const o=i.session;let a=null,c=null;this.flowType==="pkce"&&t.email!=null&&([a,c]=await Si(this.storage,this.storageKey));const{data:u,error:d}=await F(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:c}),jwt:o.access_token,xform:nn});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new De;const r=Date.now()/1e3;let n=r,i=!0,s=null;const{payload:o}=Ma(t.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){const{data:a,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(r){if(M(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new De;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){var n;try{if(!Ue())throw new Da("No browser detected.");
331if(t.error||t.error_description||t.error_code)throw new Da(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Xm("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Da("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Xm("No code detected.");const{data:b,error:k}=await this._exchangeCodeForSession(t.code);if(k)throw k;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:b.session,redirectType:(n=b.redirectType)!==null&&n!==void 0?n:null},error:null}}const{provider_token:i,provider_refresh_token:s,access_token:o,refresh_token:a,expires_in:c,expires_at:u,token_type:d}=t;if(!o||!c||!a||!d)throw new Da("No session defined in URL");const h=Math.round(Date.now()/1e3),p=parseInt(c);let f=h+p;u&&(f=parseInt(u));const g=f-h;g*1e3<=Ti&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${g}s, should have been closer to ${p}s`);const m=f-p;h-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,h):h-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,f,h);const{data:x,error:y}=await this._getUser(o);if(y)throw y;const v={provider_token:i,provider_refresh_token:s,access_token:o,expires_in:p,expires_at:f,refresh_token:a,token_type:d,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(i){if(M(i))return this._returnResult({data:{session:null,redirectType:null},error:i});throw i}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await On(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s&&!Ia(s))return this._returnResult({error:s});const o=(n=i.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(RR(a)&&(a.status===404||a.status===401||a.status===403)||Ia(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Fe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=UR(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:s},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),Ia(s)?console.warn(s):console.error(s)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await Si(this.storage,this.storageKey,!0));try{return await F(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async s=>{var o,a,c,u,d;const{data:h,error:p}=s;if(p)throw p;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:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await F(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return Ue()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(M(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:s}}=r;if(i)throw i;const{options:o,provider:a,token:c,access_token:u,nonce:d}=t,h=await F(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=s==null?void 0:s.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:_t}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new ki}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(i){if(await Fe(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)throw o;
331return await F(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await VR(async i=>(i>0&&await HR(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await F(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:_t})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Su(s)&&Date.now()+o-n<Ti})}catch(n){if(this._debug(r,"error",n),M(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Ue()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await On(this.storage,this.storageKey);if(i&&this.userStorage){let o=await On(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await ji(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Eu()}else if(i&&!i.user&&!i.user){const o=await On(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await Fe(this.storage,this.storageKey+"-user"),await ji(this.storage,this.storageKey,i)):i.user=Eu()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const s=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<ku;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${ku}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Su(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new De;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new jc;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new De;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),M(s)){const o={data:null,error:s};return Su(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(c){s.push(c)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Fe(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await ji(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const s=ng(i);await ji(this.storage,this.storageKey,s)}else{const i=ng(r);await ji(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Fe(this.storage,this.storageKey),await Fe(this.storage,this.storageKey+"-code-verifier"),await Fe(this.storage,this.storageKey+"-user"),this.userStorage&&await Fe(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ue()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
331catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ti);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/Ti);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Ti}ms, refresh threshold is ${Yd} ticks`),i<=Yd&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof tx)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ue()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,o]=await Si(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(n!=null&&n.queryParams){const s=new URLSearchParams(n.queryParams);i.push(s.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?this._returnResult({data:null,error:s}):await F(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await F(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?dg(t.webauthn.credential_response):hg(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:c}=await F(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:c}))})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const o=await F(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:cg(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:ug(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,i,s;if(t)try{const{payload:f}=Ma(t);let g=null;f.aal&&(g=f.aal);let m=g;const{data:{user:x},error:y}=await this.getUser(t);if(y)return this._returnResult({data:null,error:y});((n=(r=x==null?void 0:x.factors)===null||r===void 0?void 0:r.filter(k=>k.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(m="aal2");const b=f.amr||[];return{data:{currentLevel:g,nextLevel:m,currentAuthenticationMethods:b},error:null}}catch(f){if(M(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
331=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:c}=Ma(o.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(f=>f.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(d="aal2");const p=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await F(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new De})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new De});const o=await F(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Ue()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new De});const o=await F(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Ue()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await F(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new De})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await F(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new De})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+NR>i)return n;const{data:s,error:o}=await F(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,n=s.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:g}
331=await this.getSession();if(g||!f.session)return this._returnResult({data:null,error:g});n=f.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:c}}=Ma(n);r!=null&&r.allowExpired||YR(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:s,header:i,signature:o},error:null}}const d=XR(i.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,$R(`${a}.${c}`)))throw new eh("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async signInWithPasskey(t){var r,n,i;Bt(this.experimental);try{if(!Bl())return this._returnResult({data:null,error:new Jt("Browser does not support WebAuthn",null)});const{data:s,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}});if(o||!s)return this._returnResult({data:null,error:o});const a=ug(s.options),c=(i=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&i!==void 0?i:th.createNewAbortSignal(),{data:u,error:d}=await sx({publicKey:a,signal:c});if(d||!u)return this._returnResult({data:null,error:d??new Jt("WebAuthn ceremony failed",null)});const h=hg(u);return this._verifyPasskeyAuthentication({challengeId:s.challenge_id,credential:h})}catch(s){if(M(s))return this._returnResult({data:null,error:s});throw s}}async registerPasskey(t){var r,n;Bt(this.experimental);try{if(!Bl())return this._returnResult({data:null,error:new Jt("Browser does not support WebAuthn",null)});const{data:i,error:s}=await this._startPasskeyRegistration();if(s||!i)return this._returnResult({data:null,error:s});const o=cg(i.options),a=(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&n!==void 0?n:th.createNewAbortSignal(),{data:c,error:u}=await ix({publicKey:o,signal:a});if(u||!c)return this._returnResult({data:null,error:u??new Jt("WebAuthn ceremony failed",null)});const d=dg(c);return this._verifyPasskeyRegistration({challengeId:i.challenge_id,credential:d})}catch(i){if(M(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyRegistration(){Bt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new De});const{data:i,error:s}=await F(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:r.access_token,body:{}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:i,error:null})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){Bt(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new De});const{data:s,error:o}=await F(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _startPasskeyAuthentication(t){var r;Bt(this.experimental);try{const{data:n,error:i}=await F(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:n,error:null})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _verifyPasskeyAuthentication(t){Bt(this.experimental);try{const{data:r,error:n}=await F(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:_t});return n?this._returnResult({data:null,error:n}):(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:r,error:null}))}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _listPasskeys(){Bt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new De});const{data:i,error:s}=await F(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})});return s?this._returnResult({data:null,error:s}):this._returnResult({data:i,error:null})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){Bt(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new De});const{data:s,error:o}=await F(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _deletePasskey(t){Bt(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new De});const{error:s}
331=await F(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return s?this._returnResult({data:null,error:s}):this._returnResult({data:null,error:null})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}}Mo.nextInstanceID={};const kA=Mo,SA="2.106.2";let Ws="";typeof Deno<"u"?Ws="deno":typeof document<"u"?Ws="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ws="react-native":Ws="node";const EA={"X-Client-Info":`supabase-js-${Ws}/${SA}`},_A={headers:EA},CA={schema:"public"},TA={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},jA={},NA={enabled:!1,respectSamplingDecision:!0};function PA(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((n=n.apply(e,[])).next())})}let Cu=null;const RA="@opentelemetry/api";function AA(){return Cu===null&&(Cu=import(RA).catch(()=>null)),Cu}function IA(){return PA(this,void 0,void 0,function*(){try{const e=yield AA();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const r=t.traceparent;return r?{traceparent:r,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function OA(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[r,n,i,s]=t;if(r.length!==2||n.length!==32||i.length!==16||s.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(r)||!o.test(n)||!o.test(i)||!o.test(s)||n==="00000000000000000000000000000000"||i==="0000000000000000"?null:{version:r,traceId:n,parentId:i,traceFlags:s,isSampled:(parseInt(s,16)&1)===1}}function DA(e,t){if(!e||!t||t.length===0)return!1;let r;if(e instanceof URL)r=e;else try{r=new URL(e)}catch{return!1}for(const n of t)try{if(typeof n=="string"){if(MA(r.hostname,n))return!0}else if(n instanceof RegExp){if(n.test(r.hostname))return!0}else if(typeof n=="function"&&n(r))return!0}catch{continue}return!1}function MA(e,t){if(t===e)return!0;if(t.startsWith("*.")){const r=t.slice(2);if(e.endsWith(r)&&(e===r||e.endsWith("."+r)))return!0}return!1}function LA(e){const t=[];try{const r=new URL(e);t.push(r.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Lo(e){"@babel/helpers - typeof";return Lo=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},Lo(e)}function $A(e,t){if(Lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FA(e){var t=$A(e,"string");return Lo(t)=="symbol"?t:t+""}function UA(e,t,r){return(t=FA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){UA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const BA=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zA=()=>Headers,HA=(e,t,r,n,i)=>{const s=BA(n),o=zA(),a=(i==null?void 0:i.enabled)===!0,c=(i==null?void 0:i.respectSamplingDecision)!==!1,u=a?LA(t):null;return async(d,h)=>{var p;const f=(p=await r())!==null&&p!==void 0?p:e;let g=new o(h==null?void 0:h.headers);if(g.has("apikey")||g.set("apikey",e),g.has("Authorization")||g.set("Authorization",`Bearer ${f}`),u){const m=await VA(d,u,c);m&&(m.traceparent&&!g.has("traceparent")&&g.set("traceparent",m.traceparent),m.tracestate&&!g.has("tracestate")&&g.set("tracestate",m.tracestate),m.baggage&&!g.has("baggage")&&g.set("baggage",m.baggage))}return s(d,_e(_e({},h),{},{headers:g}))}};async function VA(e,t,r){if(!DA(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const n=await IA();if(!n||!n.traceparent)return null;if(r){const i=OA(n.traceparent);if(i&&!i.isSampled)return null}return n}function mg(e){return typeof e=="boolean"?{enabled:e}:e}function WA(e){return e.endsWith("/")?e:e+"/"}function GA(e,t){var r,n,i,s,o,a;const{db:c,auth:u,realtime:d,global:h}=e,{db:p,auth:f,realtime:g,global:m}=t,x=mg(e.tracePropagation),y=mg(t.tracePropagation),v={db:_e(_e({},p),c),auth:_e(_e({},f),u),realtime:_e(_e({},g),d),storage:{},global:_e(_e(_e({},m),h),{},{headers:_e(_e({},(r=m==null?void 0:m.headers)!==null&&r!==void 0?r:{}),(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{})}),tracePropagation:{enabled:(i=(s=x==null?void 0:x.enabled)!==null&&s!==void 0?s:y==null?void 0:y.enabled)!==null&&i!==void 0?i:!1,respectSamplingDecision:(o=(a=x==null?void 0:x.respectSamplingDecision)!==null&&a!==void 0?a:y==null?void 0:y.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?v.accessToken=e.accessToken:delete v.accessToken,v}function qA(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
331if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(WA(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var KA=class extends kA{constructor(e){super(e)}},JA=class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const s=qA(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:CA,realtime:jA,auth:_e(_e({},TA),{},{storageKey:o}),global:_A,tracePropagation:NA},c=GA(r??{},a);if(this.settings=c,this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=HA(t,e,this._getAccessToken.bind(this),c.global.fetch,c.tracePropagation),this.realtime=this._initRealtimeClient(_e({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new dP(new URL("rest/v1",s).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new ER(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new tP(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:s,flowType:o,lock:a,debug:c,throwOnError:u,experimental:d,lockAcquireTimeout:h,skipAutoInitialize:p},f,g){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new KA({url:this.authUrl.href,headers:_e(_e({},m),f),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:o,lock:a,debug:c,throwOnError:u,experimental:d,fetch:g,lockAcquireTimeout:h,skipAutoInitialize:p,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new qP(this.realtimeUrl.href,_e(_e({},e),{},{params:_e(_e({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const QA=(e,t,r)=>new JA(e,t,r);function YA(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}YA()&&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
331ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const XA="https://fbzpcziykqzctrmfoqyg.supabase.co",ZA="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZienBjeml5a3F6Y3RybWZvcXlnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjUyMTIzNTYsImV4cCI6MjA4MDc4ODM1Nn0.DgbKiwmnhxJu6N7sj_SeLFbUEhAAwj3pYLda4sx2NQI",eI=QA(XA,ZA,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),tI=()=>{const{toast:e}=Fv(),[t,r]=w.useState(!1),[n,i]=w.useState({name:"",email:"",subject:"",message:""}),[s,o]=w.useState(""),[a]=w.useState(Date.now()),c=async d=>{d.preventDefault(),r(!0);try{const{error:h}=await eI.functions.invoke("send-contact-email",{body:{...n,_hp:s,_ts:a}});if(h)throw h;e({title:"Message sent!",description:"We'll get back to you as soon as possible."}),i({name:"",email:"",subject:"",message:""})}catch(h){console.error("Error sending message:",h),e({title:"Error",description:"Failed to send message. Please try again or email us directly.",variant:"destructive"})}finally{r(!1)}},u=d=>{i({...n,[d.target.name]:d.target.value})};return l.jsx("section",{id:"contact",className:"py-16 bg-muted/30",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-foreground mb-5 tracking-tight",children:"Get In Touch"}),l.jsx("p",{className:"text-base text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Contact us to learn more about our research, partnership opportunities, or career openings."})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8 max-w-3xl mx-auto",children:[l.jsxs(re,{className:"p-5 text-center border border-border/50 bg-card hover:shadow-md transition-all",children:[l.jsx("div",{className:"inline-flex p-3 rounded-2xl bg-primary/10 mb-4",children:l.jsx(p0,{className:"w-5 h-5 text-primary"})}),l.jsx("h3",{className:"font-semibold text-sm mb-2 text-foreground",children:"Email"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"[email protected]"})]}),l.jsxs(re,{className:"p-5 text-center border border-border/50 bg-card hover:shadow-md transition-all",children:[l.jsx("div",{className:"inline-flex p-3 rounded-2xl bg-primary/10 mb-4",children:l.jsx(eE,{className:"w-5 h-5 text-primary"})}),l.jsx("h3",{className:"font-semibold text-sm mb-2 text-foreground",children:"Location"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"Tel-Aviv and NYC"})]})]}),l.jsx(re,{className:"max-w-2xl mx-auto p-6 border border-border/50 bg-card",children:l.jsxs("form",{onSubmit:c,className:"space-y-5",children:[l.jsxs("div",{className:"absolute opacity-0 -z-10","aria-hidden":"true",tabIndex:-1,children:[l.jsx("label",{htmlFor:"website",children:"Website"}),l.jsx("input",{type:"text",id:"website",name:"website",value:s,onChange:d=>o(d.target.value),tabIndex:-1,autoComplete:"off"})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[l.jsxs("div",{children:[l.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-foreground mb-2",children:"Name"}),l.jsx(el,{id:"name",name:"name",value:n.name,onChange:u,required:!0,className:"bg-background border-border"})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),l.jsx(el,{id:"email",name:"email",type:"email",value:n.email,onChange:u,required:!0,className:"bg-background border-border"})]})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium text-foreground mb-2",children:"Subject"}),l.jsx(el,{id:"subject",name:"subject",value:n.subject,onChange:u,required:!0,className:"bg-background border-border"})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-foreground mb-2",children:"Message"}),l.jsx(Lb,{id:"message",name:"message",value:n.message,onChange:u,required:!0,rows:6,className:"bg-background border-border"})]}),l.jsx(Je,{type:"submit",size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",disabled:t,children:t?"Sending...":"Send Message"})]})})]})})},Dt=()=>l.jsx("footer",{className:"bg-muted border-t border-border py-16 relative z-20",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[l.jsxs("div",{className:"grid md:grid-cols-3 gap-12 mb-12",children:[l.jsxs("div",{children:[l.jsx("img",{src:Ob,alt:"101 Therapeutics",className:"h-8 mb-4"}),l.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Advancing precision medicine through innovative research and patient-centered therapeutic development."})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-3 text-foreground text-sm",children:"Qu
331ick Links"}),l.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[l.jsx("li",{children:l.jsx("a",{href:"#pipeline",className:"hover:text-foreground transition-colors",children:"Pipeline"})}),l.jsx("li",{children:l.jsx("a",{href:"#disease-areas",className:"hover:text-foreground transition-colors",children:"Disease Areas"})}),l.jsx("li",{children:l.jsx("a",{href:"#contact",className:"hover:text-foreground transition-colors",children:"Contact"})})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-3 text-foreground text-sm",children:"Contact"}),l.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[l.jsx("li",{children:"[email protected]"}),l.jsx("li",{children:"+1 (201) 931-5711"}),l.jsx("li",{children:"Tel-Aviv and NYC               "})]})]})]}),l.jsx("div",{className:"pt-8 border-t border-border text-center text-xs text-muted-foreground",children:l.jsxs("p",{children:["© ",new Date().getFullYear()," 101 Therapeutics. All rights reserved."]})})]})}),rI=()=>l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsxs("main",{className:"pt-16 relative z-10",children:[l.jsx(qN,{}),l.jsx(QN,{}),l.jsx(YN,{}),l.jsx(tI,{})]}),l.jsx(Dt,{})]}),nI=()=>l.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),l.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),l.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})}),iI=sf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Fr({className:e,variant:t,...r}){return l.jsx("div",{className:pe(iI({variant:t}),e),...r})}const sI=()=>{const e=["Systemic Juvenile Idiopathic Arthritis (sJIA) â RPDD granted","Hemophagocytic Lymphohistiocytosis (HLH) â macrophage hyperactivation and cytokine storm","Sarcoidosis â granulomatous inflammation with CD206⺠macrophage dominance","Chronic Granulomatous Disease (CGD)âassociated inflammation","Idiopathic Pulmonary Fibrosis & other fibrotic rare ILDs â supported by bleomycin PF model data","Visceral & Cutaneous Leishmaniasis â validated in multiple in vivo models","Rare viral and post-viral inflammatory syndromes including neuroinflammatory sequelae","Atypical autoimmune and autoinflammatory syndromes with macrophage dysregulation"];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Rare Diseases"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-12",children:"Targeting Macrophage-Driven Rare Diseases"}),l.jsx("div",{className:"prose prose-lg max-w-none mb-12",children:l.jsx("p",{children:"Many rare diseases are characterized by dysregulated macrophage activity, chronic inflammation, or intracellular pathogens that rely on macrophages for replication and persistence. Because CD206 is highly expressed on pathogenic M2-like macrophages across these conditions, 101-PGC-005 offers a uniquely targeted approach for rare inflammatory and immunologic disorders where therapeutic options are limited."})}),l.jsx(re,{className:"mb-12 bg-primary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(HS,{className:"h-8 w-8 text-primary"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Regulatory Milestone: RPDD Granted for sJIA"}),l.jsxs("p",{className:"text-muted-foreground",children:["101 Therapeutics has been granted ",l.jsx("strong",{children:"Rare Pediatric Disease Designation (RPDD)"})," by the U.S. FDA for systemic Juvenile Idiopathic Arthritis (sJIA)âa severe autoinflammatory disorder characterized by macrophage hyperactivation, cytokine storm, and life-threatening complications such as macrophage activation syndrome (MAS)."]}),l.jsx("p",{className:"text-muted-foreground mt-4",children:"This designation underscores the significant unmet need in sJIA and validates the potential of 101-PGC-005 as a differentiated macrophage-targeted therapy for pediatric rare inflammatory diseases."})]})]})})}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(dc,{className:"h-6 w-6 text-primary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Therapeutic Rationale"})]}),l.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[l.jsx("li",{children:"⢠Selective depletion of pathogenic macrophages without broad immunosuppression"}),l.jsx("li",{children:"⢠High potency with minimal systemic steroid exposure, critical for fragile rare disease populations"}),l.jsx("li",{children:"⢠Potential applicability in both genetic and acquired macrophage-driven diseases"}),l.jsx("li",{children:"⢠Human CSF PK and cortisol-sparing data enabling exploration of neuroinflammatory rare diseases"})]})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(ZS,{className:"h-6 w-6 text-secondary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Strategic Positioning"})]}),l.jsx("p",{className:"text-muted-foreground",children:"By targeting the innate immune cells that drive disease pathology, 101 Therapeutics aims to deliver disease-modifying benefit in rare conditions where existing therapies are toxic, ineffective, or entirely absent."})]})})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-3xl font-semibold mb-6",children:"Potential Rare Disease Indications"}),l.jsx("div",{className:"space-y-3",children:e.map((t,r)=>l.jsx(re,{children:l.jsx(oe,{className:"p-4",children:l.jsx("p",{className:"text-foreground",children:t})})},r))})]})]})})}),l.jsx(Dt,{})]})},oI=()=>l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Autoimmune & Chronic Inflammatory Diseases"}),l.jsxs("div",{className:"prose prose-lg max-w-none mb-12",children:[l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Persistent activation of macrophages contributes to joint destruction, tissue inflammation, and chronic pain."}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"In collagen-induced arthritis models, 101-PGC-005 lowers clinical arthritis scores, paw swelling, and histopathologic damage with better tolerability than systemic steroids."}),l.jsx("p",{className:"text-muted-foreground",children:"It can work alongside current biologics to improve efficacy and speed recovery during flares. It also helps restore HPA axis control more quickly, which supports homeostasis and lowers the risk of future flares and injury to organs outside the target tissue."})]}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(h0,{className:"h-8 w-8 text-primary"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Whole-Body Disease Approach"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Critically important, 101-PGC-005 addresses the significant unmet medical need to treat autoimmune and inflammatory diseases as whole body diseases and not merely an affected organ. Chronic inflammatory conditions result in many long term consequences including CV and CNS pathologies that can only be addressed by rapidly reducing inflammation and reestablishing the well controlled cortisol release by a repaired HPA system."})]})]})})}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(dc,{className:"h-6 w-6 text-primary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Therapeutic Approach"})]}),l.jsx("p",{className:"text-muted-foreground",children:"Our CD206-targeted delivery system enables selective modulation of pathogenic macrophage populations that drive autoimmune tissue damage. By depleting these disease-promoting cells while sparing healthy immune function, 101-PGC-005 offers a differentiated approach to managing chronic inflammatory conditions."})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(cc,{className:"h-6 w-6 text-secondary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Cortisol-Sparing Profile"})]}),l.jsx("p",{className:"text-muted-foreground",children:"The platform's cortisol-sparing profile and reduced systemic exposure make it particularly attractive for long-term management of autoimmune diseases where traditional corticosteroid therapy is limited by toxicity."})]})})]})]})})}),l.jsx(Dt,{})]}),aI=()=>l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Neuroinflammation"}),l.jsxs("div",{className:"prose prose-lg max-w-none mb-12",children:[l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Chronic activation of microglia, infiltrating monocytes, and CNS-resident macrophages is a defining feature of a broad class of neurological disorders, including post-viral neuroinflammation, neurodegenerative diseases, autoimmune CNS syndromes, and neuroinflammatory rare diseases."}),l.jsx("p",{className:"text-muted-foreground",children:"In these settings, macrophages transition into pathogenic activated states, spanning both pro-inflammatory M1-like and dysregulated M2-like phenotypes. Across this continuum of activation, CD206 is upregulated, providing a common entry point for targeted macrophage modulation."})]}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(uc,{className:"h-8 w-8 text-primary"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Targeting CD206⺠Perivascular Macrophages to Restore BBB Integrity"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"CD206 is also expressed on perivascular macrophages, a specialized macrophage subset that plays a central role in maintaining and repairing bloodâbrain barrier (BBB) integrity. During neuroinflammatory episodes, these cells become dysfunctional, contributing to barrier leakage, cytokine trafficking into the CNS, and escalation of neuronal injury."}
331),l.jsx("p",{className:"text-muted-foreground",children:"By selectively engaging CD206⺠macrophages, including perivascular populations, 101-PGC-005 has the potential to reduce macrophage-driven inflammatory signaling while supporting restoration of BBB structure and function."})]})]})})}),l.jsx(re,{className:"mb-12",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"p-3 rounded-lg bg-secondary/10",children:l.jsx(cc,{className:"h-8 w-8 text-secondary"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:'"Just-in-Time" Cortisol and HPA Axis Recovery'}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlike systemic steroids, which blunt the hypothalamicâpituitaryâadrenal (HPA) axis, 101-PGC-005 produces minimal suppression of morning cortisol and allows the endocrine system to reset rapidly. This preservation of physiologic cortisol rhythms is critical in neuroinflammation, where dysregulated cortisol contributes to persistent microglial activation, impaired BBB repair, and recurrent flare cycles."}),l.jsx("p",{className:"text-muted-foreground",children:"By restoring macrophage balance and enabling timely return of endogenous cortisol homeostasis, 101-PGC-005 may help break the inflammatory feedback loops that sustain CNS pathology."})]})]})})}),l.jsx("h2",{className:"text-3xl font-semibold mb-6",children:"Clinical Evidence Supporting CNS Targeting"}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(QS,{className:"h-6 w-6 text-primary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"CSF Penetration Study"})]}),l.jsx("p",{className:"text-muted-foreground",children:"In a dedicated pharmacokinetic study, 101-PGC-005 demonstrated measurable dexamethasone levels in cerebrospinal fluid (CSF), confirming that the active drug reaches the CNS compartment following targeted macrophage uptake and intracellular release. This provides strong mechanistic validation for the use of 101-PGC-005 in CNS-driven inflammatory diseases."})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(f0,{className:"h-6 w-6 text-secondary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Cortisol-Sparing Profile"})]}),l.jsx("p",{className:"text-muted-foreground",children:"Unlike systemic dexamethasone, which suppresses the hypothalamicâpituitaryâadrenal (HPA) axis and elevates steroid-related risks, 101-PGC-005 shows minimal suppression of morning cortisol and ACTH levels in human subjectsâeven after multiple doses."})]})})]})]})})}),l.jsx(Dt,{})]}),lI=()=>{const e=["Improved metabolic flexibility","Slowed progression to NASH","Reduced risk of weight regain","Enhanced safety and long-term efficacy of GLP-1âbased regimens"],t=["Reduce adipose inflammation and fibrosis","Preserve lean mass and metabolic rate","Support HPA-axis and cortisol homeostasis","Improve durability of weight loss during and after incretin taper"];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Metabolic Diseases"}),l.jsxs("div",{className:"prose prose-lg max-w-none mb-12",children:[l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Chronic metabolic disordersâincluding obesity, insulin resistance, and NAFLD/NASHâare driven by inflammation from activated macrophages in adipose tissue, liver, muscle, and pancreas."}),l.jsx("p",{className:"text-muted-foreground",children:"Across both M1 and M2 activated states, these macrophages upregulate CD206, making them a direct and addressable target. 101-PGC-005 reduces macrophage-driven inflammation at its source while avoiding the metabolic
331side effects of systemic steroids."})]}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(m0,{className:"h-8 w-8 text-primary"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Relevance to Incretins & GLP-1 Therapies"}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"Long-acting incretins (GLP-1, GIP, and dual/tri-agonists) induce rapid weight loss but can also create prolonged metabolic stressâleading to adipose fibrosis, lean-mass loss, HPA-axis disruption, and CNS inflammation."}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"By selectively modulating CD206⺠macrophages, 101-PGC-005 can serve as an adjunct to incretin therapy to:"}),l.jsx("div",{className:"space-y-3",children:t.map((r,n)=>l.jsxs("div",{className:"flex gap-3",children:[l.jsx(Cl,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-muted-foreground",children:r})]},n))})]})]})})}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(g0,{className:"h-6 w-6 text-primary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Therapeutic Potential"})]}),l.jsx("ul",{className:"space-y-3",children:e.map((r,n)=>l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-primary mt-1",children:"â¢"}),l.jsx("span",{className:"text-muted-foreground",children:r})]},n))})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(cc,{className:"h-6 w-6 text-secondary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"ImmuneâMetabolic Approach"})]}),l.jsx("p",{className:"text-muted-foreground",children:"101-PGC-005 offers a targeted immuneâmetabolic approach that complements incretin therapies and promotes durable metabolic health. By addressing the inflammatory component of metabolic disease, we aim to improve long-term outcomes beyond weight loss alone."})]})})]})]})})}),l.jsx(Dt,{})]})},cI=()=>{const e=[{disease:"COVID-19",result:"Phase II results show improvement in clinical recovery versus dexamethasone with an excellent safety profile."},{disease:"Dengue (ADE model)",result:"Significant survival benefit, improved clinical scores, and reduced viral loads."},{disease:"Leishmaniasis",result:"Clear reductions in parasite burden across cutaneous and visceral models."}],t=["Rapid shutdown of macrophage-driven inflammatory cascades","Prevention of cytokine storm","Reduction of pathogen persistence within macrophage reservoirs","Protection of tissues from collateral damage","Faster restoration of HPA axis control and immune homeostasis"],r=["Early infection of macrophages","Hijacking of macrophage signaling to suppress antiviral immunity","Induction of hyperinflammation and cytokine storm","Seeding of reservoirs that perpetuate tissue damage"];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Infectious Disease"}),l.jsxs("div",{className:"prose prose-lg max-w-none mb-12",children:[l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Many pathogens, including viruses, bacteria, parasites, and emerging zoonotic threats, replicate within or exploit macrophages to evade immune detection."}),l.jsx("p",{className:"text-muted-foreground",children:"By exploiting macrophage trafficking and immune signaling, these pathogens establish reservoirs, drive cytokine amplification, and cause severe inflammatory injury."})]}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsxs(oe,{className:"p-8",children:[l.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(uc,{className:"h-8 w-8 text-primary"})}),l.jsx("h2",{className:"text-2xl font-semibold",children:"101-PGC-005: Efficacy in Infectious Disease Models"})]}),l.jsx("div",{className:"space-y-6",children:e.map((n,i)=>l.jsxs("div",{className:"flex gap-4",children:[l.jsx(Cl,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-semibold mb-2",children:n.disease}),l.jsx("p",{className:"text-muted-foreground",children:n.result})]})]},i))})]})}),l.jsx(re,{className:"mb-12",children:l.jsxs(oe,{className:"p-8",children:[l.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-lg bg-secondary/10",children:l.jsx(nE,{className:"h-8 w-8 text-secondary"})}),l.jsx("h2",{className:"text-2xl font-semibold",children:"Pandemic Preparedness: A Platform for the Next Pathogen"})]}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"Many pandemic-capable pathogensâincluding coronaviruses, flaviviruses, arenaviruses, filoviruses, and intracellular bacteriaâuse macrophages either directly for replication or indirectly to drive immune dysregulation."}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Across these pathogens, a common theme emerges:"}),l.jsx("ul",{className:"space-y-2 mb-6",children:r.map((n,i)=>l.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[l.jsx("span",{className:"text-secondary mt-1",children:"â¢"}),n]},i))}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Because CD206 is broadly upregulated across the spectrum of activated macrophages during infectious stress, 101-PGC-005 has the potential to provide a pathogen-agnostic countermeasure:"}),l.jsx("ul",{className:"space-y-2",children:t.map((n,i)=>l.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[l.jsx(Cl,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),n]},i))})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-8",children:[l.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Strategic Positioning"}),l.jsx("p",{className:"text-muted-foreground",children:"By targeting the innate immune cells that many pathogens rely on, 101 Therapeutics is developing a broadly responsive, mechanism-driven approach that is relevant not only to existing infectious diseases, but also to future pandemic threats. This positions 101-PGC-005 as both a therapeutic for current infectious diseases and a strategic preparedness asset for future outbreaks where macrophage dysfunction plays a central role."})]})})]})})}),l.jsx(Dt,{})]})},uI=()=>{const e=["Reprogramming the tumor microenvironment toward a pro-immune, pro-inflammatory, anti-tumor state","Enhancing responsiveness to checkpoint inhibitors, including difficult-to-treat 'cold' tumors","Reducing toxicity of CPIs, especially ipilimumab/nivolumab and other dual-CPI regimens","Lowering treatment-limiting immune-related adverse events","Mitigating tumor-associated fibrosis to improve drug and immune cell penetration","Slowing tumor progression through targeted removal of macrophage-mediated support signals"],t=["Improve safety and tolerability when CPIs are used in combination","Reduce CPI-associated inflammatory toxicity, especially dermatitis, colitis, pneumonitis, and hepatitis","Permit more patients to initiate or remain on dual CPI therapy","Enhance anti-tumor efficacy at lower CPI doses, reducing treatment burden and toxicity"];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Disease Area"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Oncology & Tumor-Associated Macrophages (TAMs)"}),l.jsxs("div",{className:"prose prose-lg max-w-none mb-12",children:[l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Tumor microenvironments rely heavily on activated, immunosuppressive macrophagesâoften described as M2-likeâto silence anti-tumor immunity, promote angiogenesis, remodel stroma, and facilitate tumor growth and metastasis."}),l.jsx("p",{className:"text-muted-foreground",children:"These tumor-associated macrophages (TAMs) create a hostile environment for T-cell function and significantly limit the effectiveness of immunotherapies. CD206 is highly expressed on TAMs, making it an ideal entry point for selective macrophage depletion and microenvironmental reprogramming."})]}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsxs(oe,{className:"p-8",children:[l.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:l.jsx(uc,{className:"h-8 w-8 text-primary"})}),l.jsx("h2",{className:"text-2xl font-semibold",children:"Reducing Toxicity of Combination Checkpoint Inhibition"})]}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"Checkpoint inhibitors have transformed oncology, but their useâparticularly dual-CPI regimens (e.g., anti-PD-1 + anti-CTLA-4)âis constrained by dose-limiting immune-related toxicities that stem from systemic immune activation and dysregulated inflammatory responses."}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"By precisely eliminating CD206⺠immunosuppressive macrophages without broadly activating or suppressing systemic immunity, 101-PGC-005 has the potential to:"}),l.jsx("div",{className:"space-y-3",children:t.map((r,n)=>l.jsxs("div",{className:"flex gap-3",children:[l.jsx(Cl,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-muted-foreground",children:r})]},n))})]})}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(dc,{className:"h-6 w-6 text-primary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"TAM Targeting Strategy"})]}),l.jsx("p",{className:"text-muted-foreground",children:"Tumor-associated macrophages (TAMs) are key orchestrators of immune suppression within the tumor microenvironment. By expressing high levels of CD206, these M2-polarized macrophages become ideal targets for our selective delivery platform."}),l.jsx("p",{className:"text-muted-foreground mt-4",children:"101-PGC-005 enables precise depletion of immunosuppressive TAMs while preserving beneficial anti-tumor immune cells, offering a differentiated approach to cancer immunotherapy."})]})}),l.jsx(re,{children:l.jsxs(oe,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx(sE,{className:"h-6 w-6 text-secondary"}),l.jsx("h3",{className:"text-xl font-semibold",children:"Therapeutic Potential"})]}),l.jsx("ul",{className:"space-y-3",children:e.slice(0,4).map((r,n)=>l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-secondary mt-1",children:"â¢"}),l.jsx("span",{className:"text-muted-foreground text-sm",children:r})]},n))})]})})]})]})})}),l.jsx(Dt,{})]})}
331,dI={"Metabolic Diseases":[{title:"Enhancing MASH Outcomes: 101-PGC-005 with Rezdiffra",category:"Metabolic Diseases",pdfUrl:"/whitepapers/enhancing-mash-outcomes.pdf"},{title:"Long-Term Consequences of Chronic Incretin Exposure",category:"Metabolic Diseases",pdfUrl:"/whitepapers/chronic-incretin-exposure-consequences.pdf"},{title:"Mitigating Long-Term Risks of Synthetic Incretin Therapy",category:"Metabolic Diseases",pdfUrl:"/whitepapers/mitigating-incretin-risks.pdf"},{title:"Restoring the GutâBrainâImmune Axis: HPA and Mineralocorticoid Repair",category:"Metabolic Diseases",pdfUrl:"/whitepapers/gut-brain-immune-axis.pdf"}],Autoimmune:[{title:"The Efficacy Ceiling Problem in Autoimmune Disease and the Case for Targeted Glucocorticoid Delivery",category:"Autoimmune",articleUrl:"/whitepapers/efficacy-ceiling-autoimmune"},{title:"Macrophage-Targeted Corticosteroid Therapy for IBD",category:"Autoimmune",pdfUrl:"/whitepapers/corticosteroid-therapy-ibd.pdf"},{title:"Macrophage-Targeted Corticosteroid Therapy for Periodontal Disease",category:"Autoimmune",pdfUrl:"/whitepapers/corticosteroid-therapy-periodontal.pdf"},{title:"Macrophage-Targeted Corticosteroid Therapy for Rheumatoid Arthritis",category:"Autoimmune",pdfUrl:"/whitepapers/corticosteroid-therapy-ra.pdf"},{title:"Expanding the Reach and Value of FcRn Inhibitors",category:"Autoimmune",pdfUrl:"/whitepapers/fcrn-inhibitors.pdf"}],"Infectious Disease":[{title:"101-PGC-005 as a Host-Directed Adjunct Therapy in Ebola Virus Disease",category:"Infectious Disease",articleUrl:"/whitepapers/ebola-bundibugyo-cytokine-storm"}],Neuroinflammation:[{title:"Macrophage-Targeted Corticosteroid Therapy for Multiple Sclerosis",category:"Neuroinflammation",pdfUrl:"/whitepapers/corticosteroid-therapy-ms.pdf"},{title:"Re-Defining PTSD: Pathobiology and the Role of 101-PGC-005",category:"Neuroinflammation",pdfUrl:"/whitepapers/ptsd-pathobiology-treatment.pdf"},{title:"Precision Modulation of Neuroinflammation: Macrophage Targeting, HPAâMR Restoration and BBB Repair",category:"Neuroinflammation",pdfUrl:"/whitepapers/neuroinflammation-precision-modulation.pdf"}],Oncology:[{title:"101-PGC-005 for Checkpoint Inhibitor Toxicities",category:"Oncology",pdfUrl:"/whitepapers/checkpoint-inhibitor-toxicities.pdf"},{title:"101-PGC-005 for Selective TAM Depletion in Cancer Immunotherapy",category:"Oncology",pdfUrl:"/whitepapers/tam-depletion-immunotherapy.pdf"}],"Rare Diseases":[{title:"Deploying 101-PGC-005 in Duchenne Muscular Dystrophy",category:"Rare Diseases",pdfUrl:"/whitepapers/duchenne-muscular-dystrophy.pdf"}]}
331,hI=["Metabolic Diseases","Autoimmune","Neuroinflammation","Oncology","Infectious Disease","Rare Diseases"],fI=()=>l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Scientific Whitepapers"}),l.jsx("p",{className:"text-lg text-muted-foreground mb-10",children:"Technical whitepapers from our scientific team. Featured papers are available as full-text articles for in-depth reading; others can be downloaded as PDFs."}),l.jsx("div",{className:"space-y-8",children:hI.map(e=>{const t=dI[e];return t.length===0?null:l.jsxs("div",{children:[l.jsx("h2",{className:"text-xl font-semibold mb-4 text-primary",children:e}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:t.map((r,n)=>l.jsxs(re,{className:"p-4 hover:shadow-lg transition-shadow flex flex-col justify-between",children:[l.jsx("h3",{className:"font-medium text-sm leading-tight mb-3",children:r.title}),r.articleUrl?l.jsx(et,{to:r.articleUrl,children:l.jsxs(Je,{variant:"default",size:"sm",className:"gap-2 w-full",children:[l.jsx(Tl,{className:"h-3 w-3"}),"Read Article"]})}):r.pdfUrl?l.jsx(et,{to:`/view-pdf?file=${encodeURIComponent(r.pdfUrl)}&title=${encodeURIComponent(r.title)}`,children:l.jsxs(Je,{variant:"outline",size:"sm",className:"gap-2 w-full",children:[l.jsx(Ki,{className:"h-3 w-3"}),"View PDF"]})}):null]},n))})]},e)})}),l.jsx(re,{className:"mt-10 bg-muted/50 p-6",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(rE,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-1",children:"About These Whitepapers"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"These technical documents have been generated using advanced AI tools and carefully reviewed by our scientific team to ensure accuracy and scientific rigor."})]})]})})]})})}),l.jsx(Dt,{})]}),pI=()=>{const e=[{title:"Macrophage-targeted glucocorticoid prodrug resolves acute inflammation while preserving HPA axis function: mechanistic, preclinical, and Phase II/III clinical evidence",description:"A macrophage-targeted dexamethasone prodrug ('005) achieves superiority over standard-of-care dexamethasone across two replicate randomized controlled trials totaling 309 patients, without suppressing the HPA axis. Includes mechanistic, preclinical, and Phase II/III clinical evidence.",category:"Preprint · medRxiv",pdfUrl:"/manuscripts/macrophage-targeted-glucocorticoid-prodrug-phase2.pdf",externalUrl:"https://www.medrxiv.org/content/10.64898/2026.06.05.26354839v1"},{title:"Macrophage-targeted glucocorticoid prodrug resolves acute inflammation while preserving HPA axis function",description:"A novel anti-inflammatory drug retains the rapid and broad efficacy of glucocorticoids without suppressing the natural immune system. Phase 2 clinical trial data and preclinical evidence.",category:"Clinical Research",pdfUrl:"/whitepapers/macrophage-targeted-glucocorticoid-prodrug.pdf"}];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Manuscripts"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-12",children:"Peer-reviewed publications and scientific manuscripts from our research."}),l.jsx("div",{className:"grid gap-6",children:e.map((t,r)=>l.jsxs(re,{className:"hover:shadow-lg transition-shadow",children:[l.jsx(Db,{children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex-1",children:[l.jsx(Fr,{variant:"secondary",className:"mb-3",children:t.category}),l.jsx(Mb,{className:"text-2xl mb-2",children:t.title}),l.jsx("p",{className:"text-muted-foreground",children:t.description})]}),l.jsx(Tl,{className:"h-12 w-12 text-primary/50 flex-shrink-0 ml-4"})]})}),l.jsx(oe,{children:l.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.pdfUrl?l.jsx(et,{to:`/view-pdf?file=${encodeURIComponent(t.pdfUrl)}&title=${encodeURIComponent(t.title)}`,children:l.jsxs(Je,{variant:"outline",className:"gap-2",children:[l.jsx(Ki,{className:"h-4 w-4"}),"View PDF"]})}):l.jsxs(Je,{variant:"outline",className:"gap-2",disabled:!0,children:[l.jsx(Ki,{className:"h-4 w-4"}),"Coming Soon"]}),t.externalUrl&&l.jsx("a",{href:t.externalUrl,target:"_blank",rel:"noopener noreferrer",children:l.jsxs(Je,{variant:"outline",className:"gap-2",children:[l.jsx(Ki,{className:"h-4 w-4"}),"View on medRxiv"]})})]})})]},r))})]})})}),l.jsx(Dt,{})]})},mI=()=>{const e=[{title:"Strategic Venture Investment",description:"Partner with mission-aligned life science investors to advance 101-PGC-005 through IND-enabling studies and expansion into new indications.",icon:g0},{title:"Co-Development Partnerships",description:"Joint development programs in autoimmune disease, infectious disease, neuroinflammation, and oncology to leverage our macrophage-targeted delivery technology.",icon:XS},{title:"Asset-Level and Platform Licensing Deals",description:"Opportunities for global or regional licensing of 101-PGC-005 or broader platform applications, including disease-specific partnerships.",icon:WS},{title:"Commercialization and Late-Stage Partnerships",description:"Engagements with pharma partners to accelerate late-stage development, regulatory pathways, and market access strategies.",icon:iE},{title:"Clinical & Translational Collaborations",description:"Partnerships with leading academic centers and clinicians to expand mechanistic understanding, biomarker development, and new disease applications.",icon:YS}];return l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsx(Fr,{className:"mb-4",children:"Business Development"}),l.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Investors & Partnering"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-12",children:"Partnering with 101 Therapeutics"}),l.jsx(re,{className:"mb-6 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-6",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx(Tl,{className:"h-10 w-10 text-primary flex-shrink-0"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-semibold mb-1",children:"Investor Presentation"}),l.jsx("p",{className:"text-muted-foreground",children:"A next-generation platform to target inflammatory diseases"})]})]}),l.jsx(et,{to:`/view-pdf?file=${encodeURIComponent("/presentations/101-investor-presentation.pdf?v=20260618")}&title=${encodeURIComponent("Investor Presentation")}`,children:l.jsxs(Je,{variant:"outline",className:"gap-2 flex-shrink-0",children:[l.jsx(_d,{className:"h-4 w-4"}),"View Presentation"]})})]})})}),l.jsx(re,{className:"mb-12 bg-gradient-to-br from-primary/5 to-secondary/5 border-primary/20",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-6",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx(Tl,{className:"h-10 w-10 text-primary flex-shrink-0"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-semibold mb-1",children:"Ebola Presentation"}),l.jsx("p",{className:"text-muted-foreground",children:"101-PGC-005 as a host-directed adjunct therapy in Ebola virus disease"})]})]}),l.jsx(et,{to:`/view-pdf?file=${encodeURIComponent("/presentations/101-ebola-presentation.pdf?v=20260618")}&title=${encodeURIComponent("Ebola Presentation")}`,children:l.jsxs(Je,{variant:"outline",className:"gap-2 flex-shrink-0",children:[l.jsx(_d,{className:"h-4 w-4"}),"View Presentation"]})})]})})}),l.jsx(re,{className:"mb-12 bg-muted/30",children:l.jsx(oe,{className:"p-8",children:l.jsx("p",{className:"text-lg text-foreground",children:"We are actively seeking partnerships across biotech, pharma, venture, and academic organizations to accelerate development of our CD206-targeted macrophage platform."})})}),l.jsx("h2",{className:"text-3xl font-semibold mb-8",children:"Business Development Priorities"}),l.jsx("div",{className:"space-y-6 mb-12",children:e.map((t,r)=>{const n=t.icon;return l.jsx(re,{className:"hover:shadow-lg transition-shadow",children:l.jsx(oe,{className:"p-6",children:l.jsxs("div",{className:"flex gap-4",children:[l.jsx("div",{className:"p-3 rounded-lg bg-primary/10 flex-shrink-0 h-fit",children:l.jsx(n,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-semibold mb-2",children:t.title}),l.jsx("p",{className:"text-muted-foreground",children:t.description})]})]})})},r)})}),l.jsx(re,{className:"bg-primary text-primary-foreground",children:l.jsx(oe,{className:"p-8",children:l.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-2xl font-semibold mb-2",children:"Ready to Partner?"}),l.jsx("p",{className:"opacity-90",children:"Contact our business development team to explore collaboration opportunities."})]}),l.jsxs(Je,{size:"lg",variant:"secondary",className:"gap-2 flex-shrink-0",onClick:()=>window.location.href="mailto:[email protected]",children:[l.jsx(p0,{className:"h-5 w-5"}),"[email protected]"]})]})})})]})})}),l.jsx(Dt,{})]})},gI=()=>typeof navigator>"u"?!1:/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),yI=()=>{const[e]=w2(),t=e.get("file"),r=e.get("title")||"Document",[n,i]=w.useState(!1),s=w.useMemo(()=>
331{if(!t)return"";const o=Date.now().toString();try{const a=new URL(t,window.location.origin);return a.searchParams.set("v",o),`${a.pathname}${a.search}${a.hash}`}catch{const a=t.includes("?")?"&":"?";return`${t}${a}v=${o}`}},[t]);return w.useEffect(()=>{i(gI())},[]),t?l.jsxs("div",{className:"min-h-screen flex flex-col relative",children:[l.jsx(xt,{}),l.jsxs("main",{className:"pt-16 flex-1 flex flex-col",children:[l.jsxs("div",{className:"bg-muted border-b border-border px-6 py-3 flex items-center justify-between gap-4 max-w-6xl mx-auto w-full",children:[l.jsx("h1",{className:"text-sm font-medium text-foreground truncate",children:r}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[l.jsx(Je,{asChild:!0,size:"sm",variant:"outline",children:l.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Ki,{className:"h-4 w-4 mr-1"}),"Open"]})}),l.jsx(Je,{asChild:!0,size:"sm",variant:"outline",children:l.jsxs("a",{href:s,download:!0,children:[l.jsx(_d,{className:"h-4 w-4 mr-1"}),"Download"]})})]})]}),l.jsx("div",{className:"flex-1",children:n?l.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-6 py-16 gap-4",children:[l.jsx("p",{className:"text-muted-foreground max-w-md",children:"Mobile browsers can't display multi-page PDFs inline. Tap below to open the full document."}),l.jsx(Je,{asChild:!0,children:l.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Ki,{className:"h-4 w-4 mr-2"}),"Open PDF"]})})]}):l.jsx("iframe",{src:s,title:r,className:"w-full h-[calc(100vh-8rem)] border-0"})})]})]}):l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 flex items-center justify-center",children:l.jsx("p",{className:"text-muted-foreground",children:"No document specified."})}),l.jsx(Dt,{})]})},vI="https://101therapeutics.com",wr=(e,t,r)=>{var i,s,o;let n=document.head.querySelector(e);if(!n){if(e.startsWith("link")){n=document.createElement("link");const a=(i=e.match(/rel="([^"]+)"/))==null?void 0:i[1];a&&(n.rel=a)}else{n=document.createElement("meta");const a=(s=e.match(/name="([^"]+)"/))==null?void 0:s[1],c=(o=e.match(/property="([^"]+)"/))==null?void 0:o[1];a&&(n.name=a),c&&n.setAttribute("property",c)}document.head.appendChild(n)}n.setAttribute(t,r)},Tu="article-jsonld",ox=({title:e,description:t,path:r,datePublished:n})=>(w.useEffect(()=>{const i=`${vI}${r}`,s=`${e} | 101 Therapeutics`;document.title=s.length>70?e:s,wr('meta[name="description"]',"content",t),wr('link[rel="canonical"]',"href",i),wr('meta[property="og:title"]',"content",e),wr('meta[property="og:description"]',"content",t),wr('meta[property="og:url"]',"content",i),wr('meta[property="og:type"]',"content","article"),wr('meta[name="twitter:title"]',"content",e),wr('meta[name="twitter:description"]',"content",t);let o=document.getElementById(Tu);return o||(o=document.createElement("script"),o.type="application/ld+json",o.id=Tu,document.head.appendChild(o)),o.text=JSON.stringify({"@context":"https://schema.org","@type":"ScholarlyArticle",headline:e,description:t,datePublished:n,author:{"@type":"Organization",name:"101 Therapeutics"},publisher:{"@type":"Organization",name:"101 Therapeutics"},mainEntityOfPage:i}),()=>{wr('meta[property="og:type"]',"content","website");const a=document.getElementById(Tu);a&&a.remove()}},[e,t,r,n]),null),ax=({category:e,title:t,dek:r,datePublished:n,children:i})=>l.jsxs("div",{className:"min-h-screen relative",children:[l.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:l.jsx(Ot,{variant:"light"})}),l.jsx(xt,{}),l.jsx("main",{className:"pt-24 pb-20 relative z-10",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-3xl mx-auto",children:[l.jsxs(et,{to:"/whitepapers",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary mb-6",children:[l.jsx(zS,{className:"h-4 w-4"})," All Whitepapers"]}),l.jsxs("article",{className:"space-y-6",children:[l.jsxs("header",{className:"space-y-4 border-b pb-6",children:[l.jsx(Fr,{variant:"secondary",children:e}),l.jsx("h1",{className:"text-3xl md:text-4xl font-bold leading-tight",children:t}),l.jsx("p",{className:"text-lg text-muted-foreground",children:r}),l.jsxs("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:["101 Therapeutics · White Paper · ",n]})]}),l.jsx("div",{className:"whitepaper-prose space-y-5 text-[15px] leading-relaxed text-foreground
331/90",children:i})]})]})})}),l.jsx(Dt,{})]}),Kr=({children:e,id:t})=>l.jsx("h2",{id:t,className:"text-2xl font-semibold mt-10 mb-3 text-primary scroll-mt-24",children:e}),wI=({children:e})=>l.jsx("h3",{className:"text-lg font-semibold mt-6 mb-2",children:e}),Jr=({children:e,label:t})=>l.jsxs("blockquote",{className:"border-l-4 border-primary/60 bg-muted/40 pl-4 pr-3 py-3 my-4 text-foreground/80",children:[t&&l.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-primary mb-1",children:t}),l.jsx("div",{className:"italic",children:e})]}),Oe=({label:e,title:t,children:r,accent:n})=>l.jsxs("div",{className:`border rounded-lg p-4 ${n?"bg-primary/5":"bg-muted/30"}`,children:[e&&l.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-primary mb-1",children:e}),t&&l.jsx("h4",{className:"font-semibold mb-2",children:t}),l.jsx("div",{className:"text-sm space-y-2",children:r})]}),bI=()=>{const e="The Efficacy Ceiling Problem in Autoimmune Disease and the Case for Targeted Glucocorticoid Delivery";return l.jsxs(l.Fragment,{children:[l.jsx(ox,{title:e,description:"Why leading autoimmune biologics leave most patients short of complete remission, and how 101-PGC-005 â a CD206-targeted dexamethasone prodrug â addresses the efficacy ceiling, residual cytokine burden, and glucocorticoid toxicity.",path:"/whitepapers/efficacy-ceiling-autoimmune",datePublished:"2026-06-01"}),l.jsxs(ax,{category:"Autoimmune",title:e,dek:"Despite $80 billion in annual global spending, no leading immunotherapy achieves complete remission in most patients. We examine the structural reasons for this ceiling, the persistent fear limiting an entire therapeutic class, and why CD206-targeted delivery of glucocorticoids offers a fundamentally different path.",datePublished:"June 2026",children:[l.jsx(Kr,{id:"abstract",children:"Abstract"}),l.jsx("p",{children:"The modern immunotherapy era has delivered remarkable advances, but also a persistent, underappreciated problem: even the best-approved biologic agents fail to achieve complete, sustained remission in the majority of patients they treat. Approval endpoints are heterogeneous: primary response rates range from approximately 28% in glucocorticoid-dependent polymyalgia rheumatica to over 80% for skin clearance in plaque psoriasis, yet even the best-performing agents leave a clinically meaningful residual non-responder population, and many disease indications remain far below complete-remission rates. The residual disease burden falls to glucocorticoids (GCs), and clinicians are increasingly and justifiably reluctant to use them."}),l.jsx("p",{children:"A second, equally underappreciated problem compounds the first: even patients classified as biologic responders carry a persistent burden of residual cytokine-driven inflammation. Single-pathway blockade, whether TNF inhibition, IL-17 neutralization, or JAK1 suppression, leaves dozens of other pro-inflammatory cytokines uninhibited and continues to drive chronic low-grade systemic inflammation. This subclinical inflammatory state is now firmly linked to accelerated biological aging, premature cardiovascular disease, progressive neurodegeneration, and excess all-cause mortality in patients with treated autoimmune disease."}),l.jsx("p",{children:"This white paper argues that the systemic toxicity of conventional GC use has created a false dichotomy between targeted biologics and feared steroids, and that a second structural failure of partial cytokine control has gone largely unaddressed."}),l.jsx(Jr,{children:"The solution to both problems is the same: deliver glucocorticoids with sufficient precision to substantially reduce their systemic toxicity burden while restoring their capacity for broad-spectrum, multi-cytokine suppression at the cellular source."}),l.jsx("p",{children:"101-PGC-005, a Type 1a CD206-targeted dexamethasone prodrug with low receptor affinity to avoid soluble CD206 sequestration and high specificity to the membrane-bound C-type lectin CD206, has already achieved proof-of-concept in COVID-19-related hyperinflammation, demonstrating that it can replace high-dose systemic glucocorticoids acutely with equivalent or superior speed of remission and a substantially reduced GC-related safety signal. The first regulatory approval will be sought in systemic juvenile idiopathic arthritis (sJIA), a technically meaningful demonstration of the full platform utility: â005 added to a failing biologic, in a setting where the macrophage-activation biology is unamb
331iguous, patient numbers are small, endpoints are rapid, and the unmet need is life-threatening."}),l.jsx(Kr,{id:"ceiling",children:"01 The Efficacy Ceiling: An $80 Billion Incomplete Solution"}),l.jsx("p",{children:"The immunotherapy revolution that began with the approval of infliximab in 1998 has transformed the treatment of autoimmune disease. Rheumatoid arthritis patients who would once have faced progressive joint destruction now achieve meaningful remission. Patients with plaque psoriasis, inflammatory bowel disease, and asthma have access to targeted agents that outperform anything available to the previous generation. By 2025, the global autoimmune biologic market exceeds $80 billion annually, anchored by eight therapeutic mechanisms spanning TNF inhibition, IL-17 blockade, IL-23 suppression, IL-4/13 receptor antagonism, JAK inhibition, and IL-6 pathway targeting."}),l.jsx("p",{children:"Against this backdrop of genuine progress sits an uncomfortable and rarely confronted reality: in every pivotal trial for every leading drug in every indication, the majority of treated patients do not achieve the primary endpoint. Not a bare majority. In many cases, approaching two-thirds of patients on the best available therapy fail to reach the clinical definition of success."}),l.jsx(Jr,{label:"Core Observation",children:"Approval endpoints are heterogeneous across indications, but even in the most responsive settings, clinically meaningful non-responder populations remain. In rheumatological and gastrointestinal indications, non-response rates at best-approved doses frequently approach or exceed 50â70% by the primary trial endpoint."}),l.jsx("p",{children:"This is not a failure of the drugs themselves. It is an intrinsic property of single-pathway blockade in diseases driven by multiple, redundant, and adaptive inflammatory mechanisms. When one cytokine pathway is silenced, compensatory pathways emerge. When one population of inflammatory cells is suppressed, others expand. The immune system, shaped by millions of years of selection pressure, is extraordinarily resistant to single-node disruption."}),l.jsx(wI,{children:"Best published efficacy for the eight leading autoimmune biologics by 2025 revenue"}),l.jsx("div",{className:"overflow-x-auto my-4",children:l.jsxs("table",{className:"w-full text-sm border-collapse",children:[l.jsx("thead",{className:"bg-primary/10",children:l.jsxs("tr",{children:[l.jsx("th",{className:"border p-2 text-left",children:"Drug (mechanism)"}),l.jsx("th",{className:"border p-2 text-left",children:"Primary indication"}),l.jsx("th",{className:"border p-2 text-left",children:"Best endpoint"}),l.jsx("th",{className:"border p-2 text-left",children:"Rate"}),l.jsx("th",{className:"border p-2 text-left",children:"GC co-admin?"}),l.jsx("th",{className:"border p-2 text-left",children:"2025 rev."})]})}),l.jsx("tbody",{children:[["Skyrizi (risankizumab · IL-23 p19)","Plaque psoriasis","PASI 90 wk 16","75%","No","~$16â17B"],["Dupixent (dupilumab · IL-4Rα)","Atopic dermatitis","IGA 0/1 wk 16","52%","No","~$17â18B"],["Rinvoq (upadacitinib · JAK1)","Rheumatoid arthritis","ACR50 wk 12","52%","No","~$8â9B"],["Cosentyx (secukinumab · IL-17A)","PMR (REPLENISH, 2026)","Sustained remission wk 52","41%","Yes â taper","~$6.7B"],["Tremfya (guselkumab · IL-23 p19)","Plaque psoriasis","PASI 90 wk 28","73%","No","~$5.2B"],["Bimzelx (bimekizumab · IL-17A/F)","Plaque psoriasis","PASI 90 wk 16","88%","No","~$1.5â2B"],["Kevzara (sarilumab · IL-6Rα)","PMR (SAPHYR, 2023)","Sustained remission wk 52","28%","Yes â taper","~$345M"],["Humira (adalimumab · TNF-α)","Plaque psoriasis","PASI 90 wk 16","47%","No","~$4B â"]].map(r=>l.jsx("tr",{className:"even:bg-muted/30",children:r.map((n,i)=>l.jsx("td",{className:"border p-2 align-top",children:n},i))},r[0]))})]})}),l.jsx(Kr,{id:"resistance",children:"02 Secondary Resistance: When Initial Responders Stop Responding"}),l.jsx("p",{children:"The efficacy ceiling is not static. Even patients who achieve initial remission on biologic therapy face a second challenge: progressive loss of response. Secondary resistance, distinct from primary non-response, affects a substantial fraction of patients over treatment durations of two to five years and represents a significant and growing unmet need in the management of chronic autoimmune disease."}),l.jsxs("div",{className:"grid sm:grid-cols-3 gap-4 my-6",children:[l.jsxs(Oe,{title:"43%",children:[l.jsx("p",{className:"font-medium",children:"PMR relapse rate"}),l.jsx("p",{children:"within the first year of glucocorticoid treatment, even at optimal dosing"})]}),l.jsxs(Oe,{title:"~30%",children:[l.jsx("p",{className:"font-medium",children:"TNF inhibitor secondary failure"}),l.jsx("p",{children:"per year in RA, the most-studied biologic resistance pattern"})]}),l.jsxs(Oe,{title:"25%",children:[l.jsx("p",{className:"font-medium",children:"PMR patients still on GCs"}),l.jsx("p",{children:"five years after initial diagnosis, reflecting chronic GC dependence"})]})]}),l.jsx("p",{children:"The mechanisms underlying secondary resistance are multiple and well-characterised. In TNF inhibitor therapy, the dominant pathway involves development of anti-drug antibodies (ADAs) that neutralise the therapeutic molecule, an immunologically predictable consequence of administering large, foreign-protein biologics to patients with hyperreactive immune systems. JAK inhibitor resistance involves upregulation of alternative signalling pathways; cytokine receptor downregulation and pathway rewiring emerge over months to years of continuous kinase suppression."}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-4 my-6",children:[l.jsx(Oe,{label:"Mechanism 1",title:"Anti-Drug Antibodies",children:"Neutralizing antibodies against biologic agents develop in 10â40% of patients on TNF inhibitors; immunogenicity reduces drug exposure and clinical efficacy over time."}),l.jsx(Oe,{label:"Mechanism 2",title:"Pathway Compensation",children:"Blockade of a single cytokine induces upregulation of redundant inflammatory pathways. IL-17A inhibition can be partially circumvented by IL-17F or IL-17C upregulation."}),l.jsx(Oe,{label:"Mechanism 3",title:"Cellular Plasticity",children:"Macrophage and T-cell populations adapt phenotypically to sustained single-target suppression. M1/M2 balance shifts; Th17/Treg ratios recalibrate around the therapeutic pressure point."})]}),l.jsx(Jr,{label:"Key Mechanistic Point",children:"Glucocorticoids, acting intracellularly via the glucocorticoid receptor, suppress inflammatory gene transcription across multiple cytokine pathways simultaneously. They do not create single-pathway resistance because they do not block a single pathway. The GC transcriptional mechanism operates upstream of the cytokine nodes targeted by all current biologics, making them inherently complementary, not redundant."}),l.jsx("p",{children:"This mechanistic reality explains why glucocorticoids remain essential rescue agents in virtually every indication where biologic therapy is used. When a TNF inhibitor fails, the patient is typically placed on a course of systemic steroids while the next biologic is initiated. When a JAK inhibitor loses efficacy, GC bridging is standard practice. The pharmaceutical industry has invested billions to reduce dependence on glucocorticoids, and achieved significant, genuine progress, but has not eliminated the clinical need for broad-spectrum transcriptional suppression of inflammation."}),l.jsx(Kr,{id:"phobia",children:"03 Glucocorticoid Phobia: The Fear That Became Clinical Practice"}),l.jsx("p",{children:`Ask any practising rheumatologist, dermatologist, or pulmonologist about glucocorticoid use in their patients and you will hear, almost universally, some variant of the same phrase: "I try to keep steroids as low as possible for as short a time as possible." This instinct is clinically well-founded. Systemic glucocorticoids administered chronically cause a well-documented spectrum of serious adverse effects: hypothalamic-pituitary-adrenal (HPA) axis suppression, iatrogenic Cushing's syndrome, new-onset or worsening diabetes mellitus, hypertension, osteoporosis and pathologic fracture, cataracts, avascular necrosis, increased susceptibility to opportunistic infection, and neuropsychiatric effects including depression, anxiety, and psychosis.`}),l.jsx("p",{children:"These risks are not theoretical. In polymyalgia rheumatica, the disease for which glucocorticoids are most centrally indicated, population studies consistently show that the adverse event burden of long-term GC therapy exceeds the morbidity of the inflammatory disease itself in many patients. The patients most at risk for GC toxicity are older adults and women: precisely the demographic comprising 70â85% of PMR patients. In the REPLENISH trial, published in the New England Journal of Medicine in June 2026, the placebo group received a 24-week prednisone taper and generated a mean Glucocorticoid Toxicity Index Cumulative Worsening Score of 123.5, even over that short duration."}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-4 my-6",children:[l.jsx(Oe,{label:"Conventional GC use",title:"Systemic Prednisone: The Problem",children:l.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[l.jsx("li",{children:"HPA axis suppression: adrenal insufficiency risk"}),l.jsx("li",{children:"Glucose dysregulation in diabetic and pre-diabetic patients"}),l.jsx("li",{children:"Progressive bone mineral density loss: fracture risk"}),l.jsx("li",{children:"T and B cell suppression: infection susceptibility"}),l.jsx("li",{children:"Cardiovascular risk: hypertension, fluid retention"}),l.jsx("li",{children:"Neuropsychiatric: insomnia, anxiety, psychosis"}),l.jsx("li",{children:"Cataracts, glaucoma with extended use"}),l.jsx("li",{children:"25% of PMR patients still on GCs at 5 years"})]})}),l.jsx(Oe,{label:"101-PGC-005 architecture",title:"Targeted Delivery: The Difference",accent:!0,children:l.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[l.jsx("li",{children:"Type 1a prodrug: low affinity to C-type lectin avoids soluble CD206 sequestration"}),l.jsx("li",{children:"High specificity to membrane-bound CD206 on long-lived tissue macrophages"}),l.jsx("li",{children:"Receptor-mediated endocytosis; pH-dependent intracellular release post-endosome"}),l.jsx("li",{children:"Rapid on, rapid off: minimised systemic dexamethasone exposure"}),l.jsx("li",{children:"Episodic dosing: newly recruited macrophages remain activatable between doses"}),l.jsx("li",{children:"HPA axis and cortisol rhythms maintained in clinical programme to date"}),l.jsx("li",{children:"No glucose signal observed in completed clinical studies"}),l.jsx("li",{children:"No T or B cell effects observed: systemic immune competence maintained"}),l.jsx("li",{children:"CNS compartment PK study in human subjects ongoing; data in preparation"})]})})]}),l.jsx("p",{children:"The clinical consequence of glucocorticoid phobia is not simply suboptimal dosing. It is a structural distortion of how inflammatory disease is managed. Physicians underdose GCs out of fear, prescribe them for shorter durations than the disease biology requires, and preferentially add biologics at significant cost rather than use the cheapest and most broadly effective anti-inflammatory agent available, because that agent, at systemic doses, causes unacceptable harm. The pharmaceutical industry has responded by developing targeted biologics as GC alternatives. But these biologics are not fully effective, their cost is orders of magnitude higher than prednisone, and they are not available at all in many healthcare systems globally."}),l.jsx(Jr,{label:"The Unasked Question",children:"What if the problem was never glucocorticoids themselves, but the route of delivery that made them systemic when the disease is local? The anti-inflammatory potency of dexamethasone is unmatched by any approved biologic. The issue is not efficacy. The issue is delivery precision, and that is now a solvable problem."}),l.jsx(Kr,{id:"cd206",children:"04 CD206-Targeted Delivery: Precision Where It Was Always Needed"}),l.jsx("p",{children:"CD206 marks multiple tissue-resident and disease-associated macrophage populations with pathogenic roles in chronic inflammatory, fibrotic, infectious, and tumour-microenvironment c
331ontexts. CD206-positive tissue macrophages are found at elevated density in the synovium, bursae, skin, gut lamina propria, and lung interstitium â every tissue targeted by current biologic therapy â and contribute substantially to the local cytokine milieu driving chronic disease."}),l.jsx("p",{children:"101-PGC-005 is a Type 1a dexamethasone prodrug conjugated to a glycan ligand with engineered low affinity to the C-type lectin domain of CD206. Low receptor affinity prevents sequestration by soluble CD206 circulating in plasma, ensuring the prodrug reaches membrane-bound CD206 on tissue macrophages. Upon binding, the conjugate is internalised via receptor-mediated endocytosis and releases active dexamethasone intracellularly in response to the low pH of the endosome â confining glucocorticoid receptor activation to the macrophage itself."}),l.jsx("p",{children:"The clinical programme to date supports the predicted toxicity reduction: preserved morning cortisol and ACTH after repeat dosing, no clinically significant glucose signal, and no observed GC-related safety findings under tested exposure conditions. Unlike CSF1R inhibitors â which deplete and maintain depletion of all activated macrophages and microglial cells for weeks â 101-PGC-005 episodically depletes pathogenic activated macrophages while leaving newly recruited macrophages fully capable of normal activation between doses."}),l.jsx("p",{children:"Clinical proof-of-concept was established in COVID-19-related hyperinflammation across Phase 2 and Phase 3 studies conducted in India. Remission was achieved in 100% of patients in both arms, with the 101-PGC-005 arm achieving remission significantly faster. Across the treatment cohort, no GC-related adverse events were detected despite a high-risk, elderly, comorbid patient population."}),l.jsx(Kr,{id:"combination",children:"05 The Combination Thesis: Solving the Efficacy Ceiling Together"}),l.jsxs(Jr,{label:"Note on Evidence Hierarchy",children:["The claims in this document span three levels of support. ",l.jsx("strong",{children:"Direct human evidence:"})," ","the COVID-19 clinical programme demonstrates the safety signal, speed of remission, and absence of GC-related toxicity under the studied conditions. ",l.jsx("strong",{children:"Mechanistic support:"})," ","CD206-mediated macrophage targeting, prodrug intracellular release, and downstream GR activation are supported by in vitro and preclinical data. ",l.jsx("strong",{children:"Mechanistic inference:"})," ","the proposed benefits in autoimmune disease, combination strategies, inflammaging, fibrosis prevention, and CNS access represent the rationale for the planned clinical programme, not demonstrated outcomes. Statements framed as proposals or expectations should be understood accordingly. The full evidence base is detailed in the companion manuscript."]}),l.jsx("p",{children:"Understanding the efficacy ceiling and its mechanistic basis leads directly to a combination strategy. Current biologics achieve their highest response rates by blocking one node in the inflammatory network. The residual non-responders (30â70% of patients depending on indication) represent patients in whom that specific node is not the dominant driver, or in whom compensatory pathways have already engaged. Neither problem is solved by dose escalation or by switching to a different single-node agent."}),l.jsx("p",{children:"101-PGC-005 operates at a different and upstream level: macrophage transcriptional reprogramming. By suppressing NF-κB-driven gene transcription across the full cytokine repertoire (TNF-α, IL-6, IL-12, IL-23, and the upstream signals that drive Th17 polarisation), targeted GC delivery addresses the pre-cytokine inflammatory environment that biologic therapy cannot reach. This creates a mechanistically additive, non-redundant combination with every major biologic class currently approved."}),l.jsx("p",{children:"Consider the REPLENISH trial as a concrete model. Secukinumab plus a 24-week prednisone taper achieved sustained remission in 41.2% of patients with relapsed PMR. Approximately 59% failed. The prednisone taper was not designed to maximise anti-inflammatory effect: it was designed to minimise GC exposure. Replacing that taper with 101-PGC-005, delivering equivalent or greater macrophage suppression without systemic GC toxicity, could logically push the combination response rate substantially higher while eliminating the toxicity burden that defines the current therapeutic calculus."}),l.jsx(Jr,{label:"Combination Logic",children:"A biologic that neutralises secreted cytokine + a targeted GC that reprograms the macrophage producing it. Downstream blockade plus upstream suppression. This is not redundancy: it is complementarity."}),l.jsx("p",{children:"The same combination logic extends across indications. In RA, where TNF inhibitors and JAK inhibitors achieve ACR50 rates of approximately 50%, the residual disease is driven in significant part by synovial macrophage activity (a CD206-positive population directly targetable by 101-PGC-005). In IBD, where IL-23 inhibitors achieve clinical remission in ~56% of Crohn's patients, intestinal macrophage hyperactivation drives the remaining disease. In GVHD, where conventional GC therapy is first-line and remains the treatment backbone, targeted delivery could preserve efficacy while eliminating the immunosuppression that makes GC-treated GVHD patients so vulnerable to infection."}),l.jsx(Kr,{id:"hidden-burden",children:"06 The Hidden Burden: Residual Cytokine Inflammation and Its Systemic Consequences"}),l.jsx("p",{children:"The efficacy ceiling and the resistance problem share a common feature: both are defined by what is measured in clinical trials. Sustained remission rates, ACR50 responses, PASI 90 scores: these endpoints quantify clinical disease activity against a defined threshold. What they do not capture is the inflammatory biology that persists below that threshold in patients who are, by trial criteria, classified as treatment successes."}),l.jsx("p",{children:"This subclinical residual inflammation is not a rounding error. It is a structural consequence of single-pathway blockade. A patient on a TNF inhibitor who achieves ACR50 response has had one cytokine network meaningfully suppressed. The remaining inflammatory milieu (IL-6, IL-17A, IL-17F, IL-23, IL-1β, IFN-γ, CXCL10, GM-CSF, IL-18, IL-33, and dozens of additional pro-inflammatory mediators produced by partially suppressed macrophages, activated fibroblasts, and tissue-resident immune cells) continues circulating at levels that are pathological even when they no longer produce overt joint symptoms. A JAK1 inhibitor achieves broader pathway coverage than a biologic; JAK-independent inflammatory pathways persist, and the cytokines that signal through JAK2, TYK2, and non-JAK mechanisms remain active."}),l.jsxs("div",{className:"border rounded-lg p-4 bg-muted/30 my-6 space-y-3 text-sm",children:[l.jsx("p",{className:"italic font-medium",children:"Single-pathway blockade leaves the inflammatory network largely intact"}),l.jsxs("p",{children:[l.jsx("span",{className:"font-semibold",children:"TNF-α"})," â blocked"]}),l.jsxs("p",{children:[l.jsx("span",{className:"font-semibold",children:"Unblocked â persists:"})," IL-6 · IL-17A · IL-17F · IL-1β · IL-23 · IFN-γ · GM-CSF · CXCL10 · IL-18 · IL-33 · MCP-1 · IL-8 · RANTES · IL-15 · BAFF · APRIL · TGF-β"]}),l.jsx("p",{className:"font-semibold text-primary pt-2",children:"With 101-PGC-005 (CD206-targeted macrophage GR activation)"}),l.jsx("p",{children:"TNF-α ââ · IL-6 ââ · IL-17A ââ · IL-1β ââ · IL-23 ââ · IFN-γ ââ · GM-CSF ââ · CXCL10 ââ · IL-18 ââ · MCP-1 ââ · IL-8 ââ · IL-33 ââ · IL-15 ââ · BAFF ââ · APRIL ââ"}),l.jsx("p",{className:"text-xs text-muted-foreground pt-2",children:"Legend: blocked by agent · unblocked, persists · suppressed by targeted GC (macrophage source)."})]}),l.jsx("p",{children:"The biological consequences of this persistent, low-grade multi-cytokine burden extend far beyond the target organ of the autoimmune disease itself. A growing and now robust body of evidence establishes that chronic inflammatory signalling, even at subclinical levels and in treated and clinically stable patients, drives systemic pathology across every major organ system. This phenomenon, increasingly termed
331inflammaging when it contributes to accelerated biological ageing, represents one of the most important and most poorly addressed challenges in the long-term management of autoimmune disease."}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-4 my-6",children:[l.jsxs(Oe,{title:"Cardiovascular Disease",children:[l.jsx("p",{children:"Persistent TNF-α, IL-6, and CRP elevation drives endothelial dysfunction, promotes atherosclerotic plaque formation, and increases arterial stiffness. Autoimmune patients on biologics maintain markedly elevated cardiovascular risk even in clinical remission."}),l.jsx("p",{className:"font-medium",children:"RA patients: 2à excess CV mortality vs. matched controls despite treatment."})]}),l.jsxs(Oe,{title:"Neurodegeneration, Cognitive Decline & Neurodevelopment",children:[l.jsx("p",{children:"Circulating IL-1β, TNF-α, and IL-6 cross the blood-brain barrier and activate perivascular macrophages (PVMs), which do express CD206, and microglial cells. In pediatric autoimmune conditions (sJIA, JIA, lupus, IBD), chronic cytokine exposure during critical windows of brain development causes measurable deficits in cognition, learning, and neurodevelopment that persist into adulthood."}),l.jsx("p",{className:"font-medium",children:"50% higher dementia risk in RA; developmental delay documented in pediatric autoimmune cohorts."})]}),l.jsxs(Oe,{title:"Accelerated Biological Aging",children:[l.jsx("p",{children:"Chronic cytokine exposure accelerates telomere shortening, drives cellular senescence, impairs mitochondrial function, and promotes the senescence-associated secretory phenotype (SASP), a self-amplifying inflammatory loop. Epigenetic age clocks consistently show autoimmune patients aging 3â8 years faster biologically than their chronological age."}),l.jsx("p",{className:"font-medium",children:"3â8 year epigenetic age acceleration in active autoimmune disease."})]}),l.jsxs(Oe,{title:"Metabolic & Multi-Organ Sequelae",children:[l.jsx("p",{children:"Residual IL-6 drives hepatic acute-phase protein synthesis, insulin resistance, and dyslipidemia. Persistent IFN-γ impairs pancreatic β-cell function. Chronic BAFF/APRIL elevation drives dysregulated B-cell activity contributing to secondary autoimmune phenomena. Cumulative organ burden exceeds that attributable to the primary inflammatory disease in many long-term patients."}),l.jsx("p",{className:"font-medium",children:"Metabolic syndrome 2â3à more prevalent in treated autoimmune disease."})]})]}),l.jsx(Jr,{label:"The Evidence Gap",children:"Achieving remission by clinical trial criteria is not the same as resolving inflammation. The patients we call treatment successes are still inflamed, just less visibly so. And that residual inflammation is shortening their lives. The relevant comparison is not biologic-treated patients versus untreated patients. It is biologic-treated patients versus true inflammatory resolution, a state that single-cytokine blockade cannot reliably achieve and that broad-spectrum macrophage reprogramming is uniquely positioned to provide."}),l.jsx("p",{children:"The answer, for single-pathway biologics, is sobering. A patient on secukinumab who achieves PASI 90 has had IL-17A neutralised in the skin. Their circulating IL-6, TNF-α, IFN-γ, IL-1β, and the full macrophage-derived cytokine repertoire remain active. Their cardiovascular risk, neuroinflammatory burden, and epigenetic ageing trajectory are shaped by that residual milieu, not by their PASI score. The clinical trial captured the right endpoint for drug approval. It did not capture the endpoint that determines how long the patient lives and how well they function over decades of managed chronic disease."}),l.jsx("p",{children:"To our knowledge, 101-PGC-005 is the only therapeutic approach currently in development that specifically targets the upstream tissue macrophage source of this multi-cytokine burden while being designed to minimise systemic toxicity. By activating the glucocorticoid receptor inside the CD206+ macrophage, targeted GC delivery suppresses not one cytokine but the transcriptional programmes driving the inflammatory secretome of that cell population. Critically, because 101-PGC-005 is designed to preserve the HPA axis and natural cortisol rhythms, it is proposed to support the body's own resolution machinery between episodic doses. In contrast to single-cytokine biologics, which do not directly target the macrophage-resolution programme described here, the preservation of physiological cortisol cycling may support M2 macrophage apoptosis on schedule, potentially limiting the pathological M2 macrophage accumulation that drives fibrosis â a consequence of chronic inflammation that is not directly addressed by any currently approved biologic. 101-PGC-005 is therefore proposed to work on both inflammatory initiation and resolution, though this dual function remains to be formally demonstrated in the planned clinical studies."}),l.jsx("p",{children:"The CNS access of 101-PGC-005 has a precise mechanistic basis. Microglial cells, the parenchymal resident macrophages of the brain, do not constitutively express CD206 at meaningful levels. However, perivascular macrophages (PVMs), which line the Virchow-Robin perivascular space and are distinct from microglia, constitutively express CD206 and are direct targets of 101-PGC-005. In patients with chronic systemic autoimmune disease and cytokine-driven blood-brain barrier compromise, blood-derived macrophages infiltrate the CNS and are also targetable. This architecture is mechanistically distinct from CSF1R inhibitors, which deplete and maintain depletion of all activated macrophages and microglial cells for weeks, creating broad and prolonged neuroimmunosuppression. 101-PGC-005 is designed to clear pathogenic CD206+ macrophages episodically while sparing microglia and permitting normal activation of newly recruited macrophages between doses. CNS compartment PK data from a human clinical study are in preparation. Whether CSF exposure translates into pharmacologically meaningful perivascular macrophage targeting will be evaluated in the clinical development programme."}),l.jsx(Jr,{label:"The Longevity Case",children:"The goal of treating autoimmune disease should not be remission by a composite score. It should be the restoration of a normal life expectancy. That requires addressing the full inflammatory burden, not just its primary clinical manifestation. Broad-spectrum macrophage GR activation via 101-PGC-005 is the mechanism best positioned to translate clinical remission into genuine systemic inflammatory resolution, and to close the mortality gap that targeted biologics have narrowed but not eliminated."}),l.jsx(Kr,{id:"market",children:"07 Strategic Implication & Market Opportunity"}),l.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 my-6",children:[l.jsx(Oe,{label:"Market Opportunity",title:"A Platform Applicable Across Every Indication Biologics Serve",children:"CD206-positive macrophages are present in elevated density in every tissue targeted by current biologic therapy. The platform is not indication-specific: it is cell-specific, and that cell is the upstream driver of the entire $80B autoimmune market."}),l.jsx(Oe,{label:"Clinical Differentiation",title:"GC Potency Without GC Toxicity",children:"Every current biologic avoids GCs. 101-PGC-005 rehabilitates them. The most potent anti-inflammatory agent known to medicine, delivered with the precision of a targeted biologic. This is a category of one."}),l.jsx(Oe,{label:"Combination Strategy",title:"Upstream + Downstream Suppression",children:"Biologic therapy + 101-PGC-005 = downstream cytokine neutralization + upstream macrophage transcriptional reprogramming. Neither approach alone solves the efficacy ceiling. Together, they address it from both ends."}),l.jsx(Oe,{label:"Systemic Inflammation",title:"Closing the Mortality Gap",children:"Biologics act only on inflammatory initiation: they do not address resolution. By preserving the HPA axis and natural cortisol rhythms, 101-PGC-005 enables the body's own resolution machinery to operate between episodic doses. Natural cortisol drives M2 macrophage apoptosis on schedule, preventing fibrosis. â005 works on both initiation and resolution."}),l.jsx(Oe,{label:"CNS Access",title:"Confirmed CNS Perivascular Macrophage Targeting",children:"CD206-expressing perivascular macrophages (PVMs) are distinct from microglia and are the primary CNS target of 101-PGC-005. CSF penetration is confirmed in human clinical study. Unlike CSF1R inhibitors, â005 clears pathogenic macrophages episodically while sparing microglia."}),l.jsx(Oe,{label:"Development Pathway",title:"sJIA as Proof-of-Concept",accent:!0,children:"Systemic JIA patients with residual systemic disease on IL-1 and IL-6 biologics: planned placebo-controlled study of 18â24 patients total (2:1 randomisation, â005 vs. placebo), well-validated endpoints (ferritin, CRP, fever, arthritis score), life-threatening refractory disease creating ethical imperative, clear CD206+ macrophage-driven pathology. Clinical success in sJIA de-risks the platform for PMR, RA, IBD, GVHD, GCA, and beyond."})]}
331),l.jsxs("div",{className:"border-t mt-10 pt-6 text-xs text-muted-foreground space-y-2",children:[l.jsx("p",{children:"© 2026 101 Therapeutics"}),l.jsxs("p",{children:["This white paper accompanies the preprint: ",l.jsx("em",{children:"CD206-Targeted Glucocorticoid Delivery in Autoimmune Disease"})," â MedRxiv, June 2026."]}),l.jsx("p",{children:"Contact: [email protected]"}),l.jsx("p",{children:"This document contains forward-looking statements and is intended for informational purposes only. 101-PGC-005 is an investigational drug and has not been approved by any regulatory authority."})]})]})]})},br=({children:e,id:t})=>l.jsx("h2",{id:t,className:"text-2xl font-semibold mt-10 mb-3 text-primary scroll-mt-24",children:e}),Se=({children:e})=>l.jsx("h3",{className:"text-lg font-semibold mt-6 mb-2",children:e}),$s=({children:e})=>l.jsx("blockquote",{className:"border-l-4 border-primary/60 bg-muted/40 pl-4 pr-3 py-3 my-4 italic text-foreground/80",children:e}),xI=()=>{const e="101-PGC-005 as a Host-Directed Adjunct Therapy in Ebola Virus Disease";return l.jsxs(l.Fragment,{children:[l.jsx(ox,{title:e,description:"101 Therapeutics whitepaper on 101-PGC-005 as host-directed therapy for Ebola virus disease, addressing the macrophage-driven cytokine storm during the 2026 Bundibugyo PHEIC.",path:"/whitepapers/ebola-bundibugyo-cytokine-storm",datePublished:"2026-05-30"}),l.jsxs(ax,{category:"Infectious Disease",title:e,dek:"Rationale for macrophage-targeted cytokine control in a disease with no approved treatment â applied to the active 2026 Bundibugyo PHEIC in DRC and Uganda.",datePublished:"May 2026",children:[l.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"101 Therapeutics | May 2026 | For Scientific and Regulatory Engagement"}),l.jsxs($s,{children:[l.jsx("strong",{children:"Key message:"})," The active 2026 Ebola PHEIC in DRC and Uganda is caused by Bundibugyo virus, a species for which there is no approved vaccine, no approved specific treatment, and no licensed antiviral. The only available intervention is optimized supportive care. '005, a macrophage-targeted dexamethasone prodrug, is mechanistically positioned to be the first pharmacological intervention specific to the pathological driver of Bundibugyo fatality: the macrophage-driven cytokine storm that causes multiorgan failure. It targets the source of cytokine release at the cellular level, preserves antiviral immune competence, maintains full HPA axis function, and can be administered as a simple IV push or subcutaneous injection, with no approved treatment to displace, no drug interactions to manage, and a field-deployable cold chain profile."]}),l.jsx(br,{children:"1. The Unresolved Problem in Ebola Virus Disease"}),l.jsx(Se,{children:"1.1 The Active 2026 PHEIC: Bundibugyo Virus, No Approved Treatment"}),l.jsx("p",{children:"On 15 May 2026, the DRC Ministry of Health declared the country's 17th Ebola outbreak, caused by Bundibugyo ebolavirus (BDBV) in Ituri Province. On 17 May 2026, WHO declared the outbreak a Public Health Emergency of International Concern (PHEIC). As of 29 May 2026, 125 confirmed cases and 906 suspected cases have been reported across Ituri, North Kivu, and South Kivu provinces in DRC, with nine confirmed cases in Uganda. Case fatality rates in the two prior Bundibugyo outbreaks (Uganda 2007â2008 and DRC 2012) ranged from 25â50%."}),l.jsx("p",{children:"Bundibugyo virus is one of three Ebola species known to cause human outbreaks. Unlike Ebola Zaire, for which two monoclonal antibodies (mAb114, REGN-EB3) and a vaccine (Ervebo) are licensed, Bundibugyo has no approved vaccine, no approved specific treatment, and no licensed antiviral. The only available intervention is optimized supportive care: fluid replacement, symptom management, and infection prevention and control. This is the therapeutic void into which '005 is being proposed."}),l.jsx($s,{children:"The 2026 Bundibugyo PHEIC presents a distinctive opportunity for host-directed therapy: there is no approved treatment to displace, no antiviral to compete with, and no combination drug interaction to manage. '005 would be the first and only pharmacological intervention targeting the pathological driver of Bundibugyo fatality: the macrophage-driven cytokine storm."}),l.jsx(Se,{children:"1.2 Lessons from Zaire: Antivirals Alone Are Not Enough"}),l.jsx("p",{children:"The broader EVD therapeutic record, established through Zaire ebolavirus outbreaks where antivirals do exist, demonstrates why host-directed cytokine control matters even alongside antiviral therapy. In the PALM randomized controlled trial (n = 681, Zaire ebolavirus), mAb114 and REGN-EB3 reduced 28-day mortality from approximately 51% to 34â35%, a landmark advance yet one that left substantial mortality unaddressed. In patients with high viral load at presentation (Ct â¤22), mortality remained 63â70% with the best available monoclonal antibody therapy. The most recent NHP study (Nature Communications, April 2025) found approximately 40% survival with each individual therapy in a uniformly lethal model, with investigators explicitly concluding these results 'support further clinical investigation of therapeutic combinations.'"}),l.jsx("p",{children:"The lesson for Bundibugyo is direct: the macrophage-driven cytokine cascade that kills EVD patients is not neutralized by antiviral therapy. For Bundibugyo, where there is no antiviral at all, that cascade is entirely untreated by any licensed intervention currently deployable in the DRC outbreak."}),l.jsx(Se,{children:"1.3 What Kills EVD Patients: The Cytokine Storm Mechanism"}),l.jsx("p",{children:"The pathophysiology of fatal EVD is now well characterized. EBOV primarily infects macrophages and dendritic cells as its earliest and most productive replication sites. This is mechanistically central, not incidental: infected macrophages become the primary amplifier of systemic inflammation, releasing TNF-α, IL-1β, IL-6, IL-8, MCP-1, MIP-1α, and MIP-1β in quantities that over
331whelm homeostatic control. A parallel 'chemokine storm' recruits additional immune cells to infected tissues, extending the inflammatory cascade."}),l.jsx("p",{children:"The severity of this cytokine storm correlates directly with mortality. Survivors of EVD consistently demonstrate lower cytokine burden and earlier normalization of inflammatory markers than fatalities. Lymphopenia, a hallmark of fatal EVD, occurs despite the inability of EBOV to directly infect lymphocytes; instead, lymphocyte death is driven by the cytokine environment generated by infected macrophages. Disseminated intravascular coagulation, the vascular collapse, and the multi-organ dysfunction that define the terminal phase of EVD are downstream consequences of macrophage-driven immune amplification, not direct viral cytopathic effects."}),l.jsx("p",{children:"Critically, EBOV viral proteins VP24 and VP35 actively suppress interferon signaling, disabling the innate antiviral response and allowing unchecked macrophage activation and viral replication to proceed in parallel. The result is a pathophysiologic cycle: more virus â more infected macrophages â more cytokines â more organ damage â higher viral loads â deeper immunosuppression."}),l.jsx(br,{children:"2. Why Current Approaches Do Not Solve the Cytokine Problem"}),l.jsx(Se,{children:"2.1 The Bundibugyo Gap: No Antiviral, No Approved Specific Therapy"}),l.jsx("p",{children:"For the current 2026 outbreak, the antiviral question is moot: mAb114 and REGN-EB3 are approved only for Zaire ebolavirus and have not been evaluated for Bundibugyo. WHO guidelines do not recommend their use for Bundibugyo. There is no licensed antiviral, no licensed monoclonal antibody, and no approved immunomodulatory therapy for the species currently causing the PHEIC. Optimized supportive care (aggressive fluid replacement, electrolyte management, and symptom control) remains the only evidence-based intervention."}),l.jsx("p",{children:"This is not simply a gap to be filled by repurposing Zaire-specific antivirals. Bundibugyo's surface glycoprotein differs sufficiently from Zaire that the GP-targeting antibodies developed for Zaire do not cross-neutralize Bundibugyo. The therapeutic need is therefore not for a Zaire antiviral deployed off-label; it is for an intervention that works at the level of the host response, one that works regardless of which Ebola species is involved. This is precisely what host-directed macrophage-targeted therapy provides."}),l.jsx(Se,{children:"2.2 Why the Host Response Mechanism Is Species-Agnostic"}),l.jsxs("p",{children:["'005 does not target the virus. It targets the CD206",l.jsx("sup",{children:"+"})," macrophage, the cell that all Ebola species infect first and in which all Ebola species amplify. The macrophage-driven cytokine cascade (TNF-α, IL-1β, IL-6, IL-8, MCP-1, chemokines) that drives lymphopenia, vascular collapse, DIC, and multiorgan failure is a shared pathological feature of Zaire, Sudan, and Bundibugyo ebolavirus disease. A therapy that targets the macrophage response rather than the viral surface protein is inherently species-agnostic. This is a structural advantage that no antiviral can replicate."]}),l.jsx(Se,{children:"2.3 Systemic Corticosteroids: Contraindicated in Active Infection"}),l.jsx("p",{children:"The standard approach to cytokine storm in non-infectious settings, such as systemic corticosteroids, carries substantial risk in active EVD. Systemic dexamethasone and related agents suppress the HPA axis, broadly impair adaptive immune function, reduce viral clearance capacity, and impair the very monocyte-to-macrophage transition that is required for immune recovery. WHO guidelines for EVD do not recommend systemic GC use. The concern is well-founded: in a patient already suffering EBOV-mediated immune dysfunction, adding broad immunosuppression risks the same catastrophic secondary infection risk that limits GC use in bacterial sepsis."}),l.jsx(Se,{children:"2.4 Cytokine Pathway Inhibitors: Mismatch to EVD Kinetics"}),l.jsx("p",{children:"Biologic agents targeting specific cytokines (anti-IL-6, anti-TNF, tocilizumab) or JAK/STAT signaling are used in other cytokine storm contexts but are poorly matched to EVD for several reasons. First, EVD cytokine release is multi-pathway: IL-6, TNF, IL-1β, and chemokines are released simultaneously by infected macrophages, and single-pathway blockade is unlikely to adequately control the aggregate inflammatory burden. Second, these agents take days to manifest full effect, a timeline incompatible with the rapid progression of fatal EVD. Third, none are designed for the extreme resource constraints of field outbreak settings."}),l.jsx($s,{children:"For the active 2026 Bundibugyo PHEIC, there is no approved pharmacological therapy of any kind. '005 targets the macrophage, the cell that Bundibugyo infects first and uses to amplify its pathological effects, through a host-directed mechanism that is entirely independent of viral species. It is the only agent in development with human clinical data demonstrating cytokine reduction, preserved antiviral immunity, and HPA axis preservation in a macrophage-driven infectious cytokine storm."}),l.jsx(br,{children:"3. '005: Mechanistic Case for EVD Adjunct Therapy"}),l.jsx(Se,{children:"3.1 The Target Is the Same Cell That Drives EVD Pathology"}),l.jsxs("p",{children:["'005 (101-PGC-005) is a type 1a dexamethasone prodrug engineered for selective uptake by CD206",l.jsx("sup",{children:"+"})," macrophages via mannose receptor-mediated endocytosis, with intracellular release of active dexamethasone triggered by acidic endosomal pH. CD206 (the mannose receptor) is expressed on macrophages and is dynamically upregulated during macrophage activation, precisely the cellular state that characterizes EVD pathology. The macrophage-selective targeting of '005 means it acts on the primary cellular amplifier of the EVD cytokine cascade at its source."]}),l.jsxs("p",{children:["This alignment is not coincidental. The CD206",l.jsx("sup",{children:"+"})," activated macrophage is simultaneously the primary replication site for EBOV in early infection, the primary source of IL-6, TNF, IL-1β, and chemokines during the cytokine storm, and the cell that '005 is specifically designed to reprogram and deplete. No other therapeutic in development targets this
331specific cellular population in the EVD context."]}),l.jsx(Se,{children:"3.2 Dual Mechanism: Acute Debulking and Chronic Reset"}),l.jsx("p",{children:"'005 delivers a dual macrophage action that is particularly relevant to EVD. First, acute debulking: intracellular dexamethasone delivery reprograms activated macrophages, reducing their cytokine output within hours of internalization. Second, selective apoptosis induction: at the concentrations achieved by targeted intracellular delivery, '005 drives chronically activated, pathogenic macrophages to apoptosis, an effect not observed with equimolar free dexamethasone, which does not penetrate macrophages in sufficient concentrations to trigger programmed cell death. In the EVD context, this means the heavily loaded, cytokine-producing macrophage population can be rapidly reduced in absolute number, not merely suppressed."}),l.jsx("p",{children:"Critically, '005 does not block the differentiation of new macrophages from the circulating monocyte pool. As pathogenic, virus-laden macrophages are depleted by apoptosis, the monocyte pool, inexhaustible under physiologic conditions, can supply naïve, HPA-responsive macrophage precursors to replace them. These new cells, uninfected and under normal cortisol regulation, adopt homeostatic rather than pathogenic phenotypes, enabling the tissue resolution and repair that characterizes EVD survival."}),l.jsx(Se,{children:"3.3 Preservation of Antiviral Immunity: The CXCL10 Finding"}),l.jsx("p",{children:"The fundamental concern about any immunomodulatory intervention in active viral infection is immunosuppression: the risk of impairing the very antiviral response needed for viral clearance. This concern is directly addressed by the mechanistic data for '005. In SARS-CoV-2âinfected human macrophages, '005 suppressed IL-6 and TNF to dexamethasone-equivalent levels but uniquely preserved CXCL10 induction. CXCL10 (IP-10) is an interferon-inducible chemokine that is essential for antiviral host defense, mediating recruitment of antiviral T cells and NK cells. Free dexamethasone suppresses CXCL10; '005 does not. This selective cytokine profile (inflammatory suppression without antiviral suppression) is the mechanistic basis for the claim that '005 can reduce cytokine burden without compromising viral clearance."}),l.jsxs("p",{children:["In EVD specifically, antiviral T-cell responses are critical to survival. Survivors consistently maintain CD3",l.jsx("sup",{children:"+"})," T-lymphocyte populations through the illness; fatalities do not. An intervention that reduces macrophage-driven cytokine burden while preserving the CXCL10-mediated recruitment of antiviral lymphocytes is precisely what is needed in the EVD setting, and it is what the mechanistic profile of '005 predicts."]}),l.jsx(Se,{children:"3.4 HPA Axis Preservation: An Efficacy Advantage, Not Just a Safety Feature"}),l.jsx("p",{children:"The standard objection to corticosteroid use in active EVD is HPA suppression, the very objection that has led WHO and all major guideline bodies to avoid recommending systemic GCs for infectious disease cytokine storms. '005 eliminates this objection. In three independent human pharmacokinetic studies, no free dexamethasone was detectable in systemic plasma, urine, or CSF following intravenous '005 administration. Morning cortisol and ACTH were fully preserved at 1.5à the therapeutic dose for three consecutive days."}),l.jsx("p",{children:"But HPA preservation is not merely an absence of harm; it is an active efficacy mechanism that '005 exploits. Endogenous cortisol is released in real-time pulsatile bursts calibrated to the actual inflammatory signal. It crosses the blood-brain barrier efficiently, acts on GR-expressing cells across every tissue compartment, including lymphocytes, endothelial cells, neurons, and newly differentiating macrophages from the monocyte pool, and governs the systemic coordination of immune resolution, neuroinflammation prevention, and vascular stability that no exogenous pharmaceutical can replicate. In EVD specifically, the HPA axis governs the immune recovery that distinguishes survivors from non-survivors: cortisol-mediated lymphocyte regulation and vascular tone are critical to the resolution phase."}),l.jsxs("p",{children:["Systemic dexamethasone destroys this precision biology by overriding the HPA axis with a flat exogenous signal, triggering GR downregulation and the cycle of cortisol resistance that makes systemic GCs counterproductive in established infection. '005 instead depletes the chronically activated, cytokine-producing CD206",l.jsx("sup",{children:"+"})," macrophages that were overwhelming HPA regulatory capacity, reducing the inflammatory burden to a level where endogenous cortisol can resume its physiologic resolving function across all non-macrophage cell types. '005 performs the cellular heavy lifting; cortisol completes the resolution. In a patient with EVD, whose HPA axis is already under severe inflammatory stress, this distinction is not minor. Preserving pulsatile cortisol release while clearing the pathogenic macrophage burden provides a therapeutic completeness that neither approach achieves alone."]}
331),l.jsx(Se,{children:"3.5 Pathogen-Agnostic Efficacy: Directly Relevant to EVD"}),l.jsxs("p",{children:["'005 has demonstrated efficacy in pathogen-diverse preclinical models including bacterial sepsis (",l.jsx("em",{children:"Streptococcus pneumoniae"}),"), visceral leishmaniasis (",l.jsx("em",{children:"Leishmania donovani"}),"), cutaneous leishmaniasis (",l.jsx("em",{children:"L. major"}),"), dengue virus, and SARS-CoV-2. This breadth is mechanistically expected: '005 acts on the macrophage, not the pathogen, and the macrophage-driven cytokine response is the common pathological endpoint across bacterial, viral, and parasitic infection. Ebola's pathophysiology, characterized by primary macrophage tropism, cytokine storm, T-cell depletion, and multi-organ failure, is a more extreme version of the same fundamental process that '005 has been shown to interrupt across multiple pathogen contexts."]}),l.jsx(br,{children:"4. Why '005: The EVD Treatment Landscape Has No Answer for Cytokine Storm"}),l.jsx("p",{children:"For the active 2026 Bundibugyo PHEIC there is no approved pharmacological treatment of any kind. But even for Ebola Zaire, the species where two monoclonal antibodies are licensed, and the treatment record reveals a disease that antivirals alone cannot solve. The table below maps the full landscape across both species and makes clear why host-directed macrophage-targeted therapy is not a complement to existing options: for Bundibugyo, it is the only option; for Zaire, it addresses the component of mortality that antivirals demonstrably fail to prevent."}),l.jsxs("div",{className:"overflow-x-auto my-6",children:[l.jsxs("table",{className:"w-full text-sm border-collapse",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"bg-muted/60",children:[l.jsx("th",{className:"border border-border p-2 text-left",children:"Therapeutic Approach"}),l.jsx("th",{className:"border border-border p-2 text-left",children:"Target"}),l.jsx("th",{className:"border border-border p-2 text-left",children:"Bundibugyo applicable?"}),l.jsx("th",{className:"border border-border p-2 text-left",children:"Cytokine reduction"}),l.jsx("th",{className:"border border-border p-2 text-left",children:"Immune preservation"}),l.jsx("th",{className:"border border-border p-2 text-left",children:"HPA axis"})]})}),l.jsxs("tbody",{children:[l.jsxs("tr",{children:[l.jsx("td",{className:"border border-border p-2",children:"Supportive care only"}),l.jsx("td",{className:"border border-border p-2",children:"Symptoms / fluids"}),l.jsx("td",{className:"border border-border p-2",children:"â Yes (only option)"}),l.jsx("td",{className:"border border-border p-2",children:"â Not addressed"}),l.jsx("td",{className:"border border-border p-2",children:"â Preserved"}),l.jsx("td",{className:"border border-border p-2",children:"â Unaffected"})]}),l.jsxs("tr",{children:[l.jsx("td",{className:"border border-border p-2",children:"mAb114 / REGN-EB3 (Zaire only)"}),l.jsx("td",{className:"border border-border p-2",children:"EBOV Zaire glycoprotein"}),l.jsx("td",{className:"border border-border p-2",children:"â Not applicable"}),l.jsx("td",{className:"border border-border p-2",children:"â Not addressed"}),l.jsx("td",{className:"border border-border p-2",children:"â Preserved"}),l.jsx("td",{className:"border border-border p-2",children:"â Unaffected"})]}),l.jsxs("tr",{children:[l.jsx("td",{className:"border border-border p-2",children:"Systemic dexamethasone"}),l.jsx("td",{className:"border border-border p-2",children:"GC receptor (systemic)"}),l.jsx("td",{className:"border border-border p-2",children:"~ Possible but harmful"}),l.jsx("td",{className:"border border-border p-2",children:"â Broad suppression"}),l.jsx("td",{className:"border border-border p-2",children:"â Suppressed"}),l.jsx("td",{className:"border border-border p-2",children:"â Suppressed"})]}),l.jsxs("tr",{className:"bg-primary/5",children:[l.jsx("td",{className:"border border-border p-2",children:l.jsx("strong",{children:"'005, host-directed (all Ebola species)"})}),l.jsx("td",{className:"border border-border p-2",children:"CD206⺠macrophages (species-agnostic)"}),l.jsx("td",{className:"border border-border p-2",children:"â YES (mechanism independent of viral species)"}),l.jsx("td",{className:"border border-border p-2",children:"â Broad multi-pathway"}),l.jsx("td",{className:"border border-border p-2",children:"â T cells / NK cells spared; CXCL10 preserved"}),l.jsx("td",{className:"border border-border p-2",children:"â Fully preserved"})]})]})]}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[l.jsx("strong",{children:"Table 1"})," | Treatment landscape comparison for EVD by species. mAb114 and REGN-EB3 are not approved or applicable for Bundibugyo. '005's host-directed mechanism targets the macrophage response that is shared across all Ebola species, making it the only investigational agent with a species-agnostic rationale applicable to the active 2026 PHEIC."]})]}),l.jsx(br,{children:"5. The Clinical and Epidemiological Case for '005 in
331EVD"}),l.jsx(Se,{children:"5.1 The Bundibugyo Case: '005 as the Only Pharmacological Option"}),l.jsxs("p",{children:["For the current PHEIC, the clinical case for '005 is straightforward. There is no approved treatment, no antiviral to add to, and no combination to design. '005 administered as a three-day course alongside optimized supportive care would represent the first and only pharmacological attempt to target the pathological driver of Bundibugyo mortality. The target, the CD206",l.jsx("sup",{children:"+"})," activated macrophage, is the primary BDBV replication site and the primary source of cytokine release. The mechanism is species-agnostic. The administration is simple: IV push or subcutaneous, 20 mg once daily for three days. The safety profile in 309 patients across unrestricted comorbidities and concomitant medications is clean. There is no threshold of preclinical Bundibugyo-specific data required before a compassionate use or emergency IND application could be justified; the WHO PHEIC declaration itself creates the regulatory pathway for emergency clinical evaluation."]}),l.jsx(Se,{children:"5.2 The Zaire Record: Antivirals Reduce Mortality But Cannot Control the Cytokine Storm"}),l.jsx("p",{children:"The best available evidence for Ebola Zaire, where two licensed monoclonal antibodies do exist, illustrates that antiviral therapy alone is a partial solution at best. In the PALM trial, mAb114 and REGN-EB3 reduced 28-day mortality from approximately 51% to 34â35%. That residual 34â35% mortality is not a failure of antiviral potency; both agents are highly effective at neutralizing Zaire glycoprotein. It is a failure to address what kills patients after the virus is established: the macrophage-driven cytokine cascade. In patients with high viral load at presentation (Ct â¤22), mortality was 63â70% even with the best available monoclonal antibody. The most recent NHP data found approximately 40% survival with each individual agent in a uniformly lethal model, with investigators explicitly recommending therapeutic combinations. The antivirals do what they are designed to do. What they cannot do, by design, because they target the virus not the host, is debulk the pathogenic macrophage population already sustaining the inflammatory cascade that kills the patient."}),l.jsx("p",{children:"For Bundibugyo, this analysis is academic: there are no antivirals. For Zaire, it defines the gap that '005 fills. In either case, the cytokine storm is the untreated problem; '005 is the only investigational agent with human clinical data specifically addressing it."}),l.jsx(Se,{children:"5.3 The COVID-19 Proof of Concept: Macrophage-Targeted Therapy in Infectious Cytokine Storm"}),l.jsx("p",{children:"The most directly relevant clinical evidence for this hypothesis comes from the 101 Therapeutics Phase II/III study of '005 in moderate COVID-19 (Protocol ICS/LAX/2022-005). In 309 hospitalized patients randomized to '005 plus standard of care versus dexamethasone plus standard of care, '005 was superior on time to clinical improvement (HR 2.31; 95% CI 1.83â2.93; p < 0.0001), viral clearance (HR 1.47; 95% CI 1.17â1.84; p = 0.0001), and hospital discharge rate (48 percentage-point difference at Day 5). Critically, viral clearance was faster in the '005 arm, not slower, consistent with CXCL10-mediated preservation of antiviral immunity. These results were reproduced exactly in an adaptive design spanning different COVID variants and vaccination backgrounds, with zero dropouts and equivalent safety profiles."}),l.jsx("p",{children:"COVID-19 and EVD are different pathogens causing different diseases. However, at the level of the macrophage response, including primary macrophage tropism, cytokine storm as the driver of severe outcomes, relationship between cytokine burden and mortality, preservation of antiviral T-cell responses as essential to recovery, the parallels are mechanistically direct. The clinical proof that a macrophage-targeted cytokine intervention can accelerate viral clearance and clinical improvement in an infectious cytokine storm provides the most compelling translational rationale available for EVD investigation."}),l.jsx(Se,{children:"5.4 Practical Feasibility for the Current Outbreak"}),l.jsx("p",{children:"A fixed-dose course of '005 requires no modification of any existing therapy; for Bundibugyo, where there is no existing therapy, the administration is simply three doses over three days alongside optimized supportive care."}),l.jsxs("p",{children:[l.jsx("strong",{children:"Formulation and administration:"})," '005 is a lyophilized small molecule reconstituted in 2 mL of normal saline (yielding a clear solution for immediate use) and administered as a simple IV push, requiring no infusion pump, no extended infusion time, and no complex preparation. Subcutaneous administration also works, further reducing the procedural complexity in field settings where IV access may be limited. The dose is 20 mg once daily for three consecutive days, totaling three administrations per patient course."]}
331),l.jsxs("p",{children:[l.jsx("strong",{children:"Field practicality:"})," The reconstituted solution is stable for at least 24 hours at room temperature post-reconstitution, meaning it can be prepared once and administered through the treatment day without cold chain continuity at the point of care. The lyophilized product stores under standard refrigerated conditions, with no ultra-cold chain and no specialized storage infrastructure beyond what is already available at Ebola Treatment Units in the DRC and West Africa. This profile is materially simpler to deploy in active African outbreak settings than biological therapies requiring controlled-rate infusion. For a disease where treatment access and speed of administration are determinants of survival, the logistical profile of '005 matters as much as its pharmacology."]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Safety and tolerability:"})," In 309 patients enrolled in the Phase II/III COVID-19 trial, no significant drug-related adverse effects were observed. Drug-related TEAEs were equivalent between '005 and the comparator arm (17 vs. 16 events; p = 0.687), all Grade 1 or 2. Zero Grade 3+ events, zero SAEs, zero discontinuations. The safety profile in a broad real-world population with unrestricted comorbidities and diverse background medications showed no clinically meaningful signal."]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Drug interactions:"})," No exclusion criteria were applied based on concomitant medications in the Phase II/III trial (the sole exclusion was prior systemic corticosteroids or immunosuppressants, which was an efficacy signal isolation requirement, not a drug interaction concern). The pharmacokinetic profile of '005, featuring rapid systemic clearance (t",l.jsx("sub",{children:"½"})," â 1.9 hours), intact renal excretion of unchanged prodrug, no hepatic CYP450 metabolism, no detectable free dexamethasone in plasma, eliminates the principal mechanisms by which clinically significant drug interactions arise. Patients on any existing therapy for pre-existing conditions can receive '005 without dose adjustment or interruption of background treatment. For Bundibugyo patients, where no EVD-specific pharmacological therapy exists, this means '005 can be introduced into any supportive care regimen without interaction concerns. For Zaire patients where monoclonal antibody therapy is available, '005 can similarly be added without modifying the antiviral regimen; the mechanistic and pharmacokinetic profiles of the two drug classes do not intersect."]}),l.jsx(br,{children:"6. Proposed Development Pathway"}),l.jsx(Se,{children:"6.1 Immediate: Emergency Clinical Evaluation in the Active PHEIC"}),l.jsx("p",{children:"The active 2026 Bundibugyo PHEIC creates an immediate regulatory pathway that does not require prior species-specific preclinical data. WHO's R&D Blueprint and the IHR PHEIC framework both enable emergency compassionate use and expedited clinical investigation of promising candidates during declared emergencies. The existing human safety database for '005, comprising 155 patients with no significant drug-related adverse effects, zero Grade 3+ events, and broad concomitant medication exposure, is sufficient foundation for an emergency IND application to FDA or a WHO Emergency Use Listing request."}),l.jsx("p",{children:"The proposed study design is a randomized three-arm trial at one or two ETU sites in Ituri Province, with 28-day all-cause mortality and cytokine kinetics (IL-6, TNF, CXCL10) as co-primary endpoints:"}),l.jsxs("p",{children:[l.jsx("strong",{children:"Arm 1: Optimized Supportive Care (SOC) alone:"})," the current standard of care at all DRC ETUs, including fluid resuscitation, electrolyte management, antipyretics, nutritional support, and infection control. This arm is the control and represents the only currently available intervention for all enrolled patients regardless of randomization. It establishes the mortality baseline against which both active arms are measured."]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Arm 2: '005 plus SOC:"})," '005 20 mg IV push or subcutaneous injection once daily for three consecutive days, administered on Days 1â3 of ETU admission, alongside the full SOC protocol. This arm tests the acute treatment hypothesis: that macrophage-targeted cytokine reduction during the acute inflammatory phase reduces 28-day mortality and attenuates the cytokine storm signature. Three total injections per patient, each requiring no infusion pump and less than one minute for administration."]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Arm 3: Investigational antiviral plus SOC"})," (if a candidate antiviral is available under the TAG process, e.g., obeldesivir or remdesivir if WHO TAG approves its use in Bundibugyo within a clinical trial framework): this arm tests the antiviral-only hypothesis and, in conjunction with Arm 2, enables assessment of whether the host-directed and antiviral mechanisms are additive. If no TAG-approved antiviral is available at the time of protocol activation, this arm may be replaced by a '005 plus investigational antiviral combination arm, or the study may proceed as a two-arm SOC versus '005 design. The three-arm structure is preferred because it directly addresses the mechanistic question that the WHO TAG and regulatory agencies will require: does host-directed cytokine control provide benefit independent of, and potentially additive to, antiviral activity?"]}),l.jsx("p",{children:"Enrolment of 30â40 patients per arm (90â120 total) would provide 80% power to detect a 40% reduction in 28-day mortality from a baseline of approximately 35â50%, consistent with historical Bundibugyo CFR. The study could be initiated within weeks of regulatory clearance given that '005 requires no complex preparation at point of care."}
331),l.jsx(Se,{children:"6.2 Parallel: Preclinical Bundibugyo NHP Model"}),l.jsx("p",{children:"Simultaneously, an NHP study in rhesus or cynomolgus macaques challenged with BDBV would provide species-specific proof of concept. CD206 expression and mannose receptor biology are conserved across primate species. Primary endpoints, including survival at Day 28, viral load kinetics, and cytokine profiles (IL-6, TNF, IL-1β, CXCL10), directly map to clinical endpoints. An appropriately powered study (n = 6â8 per arm, '005 versus vehicle versus supportive care) could be completed within 12â18 months and would strengthen the evidence base for emergency use and full clinical development."}),l.jsx(Se,{children:"6.3 BARDA / DOD Engagement"}),l.jsx("p",{children:"The Bundibugyo PHEIC, combined with the existing 309-patient GCP clinical dataset and the host-directed mechanism applicable across Ebola species and other viral hemorrhagic fevers, creates a compelling case for engagement with BARDA's DRIVe program and the DOD's JPEO-CBRND. BARDA's April 2026 RFI for host-directed therapeutics in severe viral respiratory infection, and the DHS Master Question List for Ebolaviruses explicitly identifying host-directed interventions as a capability gap, provide direct entry points. BARDA can fund NHP studies, emergency IND preparation, and CMC scale-up under Other Transaction Authority without requiring a US IND at the time of initial engagement. The existing MAFAT (Israeli Defense R&D) co-funding history creates a US-Israel bilateral channel through DTRA for parallel engagement."}),l.jsx(br,{children:"7. Beyond Acute Mortality: '005 and Post-Ebola Virus Disease Syndrome"}),l.jsx(Se,{children:"7.1 The Hidden Burden: 85â90% of Survivors Face Years of Disability"}),l.jsx("p",{children:"Reducing acute mortality is the most visible goal of EVD therapeutics. But the scope of the therapeutic problem extends far beyond survival. Up to 85â90% of EVD survivors develop Post-Ebola Virus Disease Syndrome (PEVDS), a debilitating cluster of neurological, musculoskeletal, ocular, and psychological complications that persist for years after blood clearance. Among 750 survivors of DRC's 2020 outbreak who received advanced monoclonal antibody therapies, 86.7% experienced long-term health effects including neurologic conditions (61.7%), musculoskeletal symptoms (49.7%), and general complications for at least 38 months [1]. A 2024 cross-sectional survey of West African survivors found that more than six years after the epidemic, EVD survivors were 2.65 times more likely to report physical symptoms (p<0.001) and 11.95 times more likely to report psychological symptoms (p<0.001) than community members who had not contracted EVD, with joint pain (75.5%), headaches (67.3%), and vision problems (44.5%) as the most prevalent physical sequelae [2]. The median symptom duration was six years. PEVDS is, by any measure, a silent second epidemic among survivors."}),l.jsx("p",{children:"Critically, severity of the acute inflammatory phase directly predicts PEVDS burden. Viral persistence in the semen, one measurable marker of immune-privileged reservoir establishment, was 75.4% at six months post-discharge and significantly associated with severe acute disease: probability of persistence at one year was 10.1% in patients with severe acute EVD, compared to approaching zero in those with mild acute disease [3]. This creates a direct therapeutic logic: interventions that reduce the severity and duration of the acute inflammatory phase should reduce the probability of establishing the persistent viral reservoirs that drive PEVDS."}),l.jsx(Se,{children:"7.2 The Macrophage Is the Reservoir; '005 Targets It"}),l.jsxs("p",{children:["The emerging mechanistic picture of PEVDS directly implicates the CD206",l.jsx("sup",{children:"+"})," macrophage as the primary driver of long-term pathology. Recent data from EVD survivor cohorts show persistently elevated soluble CD163, a specific marker of monocyte/macrophage activation, along with markers of chronic systemic inflammation and gut barrier disruption, in survivors years after discharge [4]. EBOV is now understood to persist in immune-privileged niches, including the CNS, eyes, and male reproductive tract, in tissue-resident macrophages that are not cleared by normal adaptive immune surveillance [5,6]. The dysregulation specifically in the upregulation of macrophages in post-acute EVD has been described as analogous to what is observed in HIV treated with antiretroviral therapy and in Long COVID, where macrophage-driven chronic inflammation sustains multi-system sequelae long after pathogen clearance [3]."]}),l.jsxs("p",{children:["This creates the most mechanistically direct argument for '005 in the EVD context. The drug depletes chronically activated CD206",l.jsx("sup",{children:"+"})," macrophages through targeted intracellular apoptosis, an effect unique to '005 and not achievable with any antiviral, monoclonal antibody, or systemic corticosteroid. By depleting the cellular population that harbours persistent EBOV RNA and sustains the chronic inflammatory signature of PEVDS, early treatment with '005 during the acute phase may not only reduce acute mortality but also reduce the establishment of the macrophage reservoir that drives long-term disability. This has not been demonstrated prospectively; it is a mechanistic hypothesis that requires dedicated study, but the biological logic is tight, the supporting literature is consistent, and the therapeutic target is the same cell the drug is already designed to reach."]}),l.jsx(Se,{children:"7.3 A Novel Hypothesis: Treating Survivors to Clear the Reservoir"}),l.jsx("p",{children:"The persistence of EBOV RNA in immune-privileged macrophage compartments, detectable in semen, CSF, and ocular fluid years after blood clearance, represents not only a source of PEVDS pathology but also a vector of transmission: sexual transmission of EBOV from survivors has been confirmed and is now recognised as a source of outbreak reseeding [5]. There is currently no pharmacological approach to accelerate clearance of these immune-privileged viral reservoirs."}),l.jsxs("p",{children:["We propose a novel study concept: administration of '005 as a
331single-session IV infusion to EBOV survivors with confirmed viral RNA persistence, specifically to test whether targeted CD206",l.jsx("sup",{children:"+"})," macrophage apoptosis can deplete the reservoir compartments that sustain both PEVDS and transmission risk. The pharmacokinetic properties of '005 make this feasible in a way that would not be possible with systemic dexamethasone. In three independent human PK studies, '005 reached CSF-adjacent compartments at approximately 1.4 ng/mL peak concentration within 60 minutes, confirming penetration of CNS-adjacent spaces without release of free dexamethasone. CD206",l.jsx("sup",{children:"+"})," perivascular macrophages and microglia in CNS tissue would be expected to accumulate '005 intracellularly via mannose receptor-mediated endocytosis, potentially achieving apoptosis-inducing intracellular concentrations in the very cell populations that harbour persistent EBOV RNA."]}),l.jsxs("p",{children:["Critically, the systemic safety profile remains entirely manageable under this scenario. The plasma half-life of '005 is approximately 1.9 hours, with near-complete elimination by 24 hours. A controlled IV infusion, rather than the IV push used in the acute treatment protocol, allows plasma peak concentration to be titrated in real time by adjusting the infusion rate relative to the 1.9-hour half-life. This means the clinician can maintain systemic '005 exposure below the 30 mg threshold established as the NOAEL in Phase 1, while allowing CD206",l.jsx("sup",{children:"+"})," macrophages in tissue reservoirs to accumulate drug intracellularly through sustained receptor-mediated uptake. Unlike systemic dexamethasone, which would cause HPA suppression, metabolic toxicity, and broad immunosuppression at the doses required for CNS penetration, '005 delivers its therapeutic action inside the macrophage without systemic GC exposure, confirmed by the absence of free dexamethasone in plasma or CSF in human PK studies. There is therefore no mechanism by which a controlled single-session infusion would cause the systemic toxicities that preclude corticosteroid use in survivors."]}),l.jsx("p",{children:"Proposed study design: a proof-of-concept open-label study in EVD survivors with confirmed viral RNA persistence (semen PCR positive, or CSF PCR positive, or uveitis with confirmed EBOV RNA in ocular fluid). Primary endpoint: quantitative viral RNA copy reduction in the relevant compartment at 30 and 90 days post-infusion. Secondary endpoints: soluble CD163, CXCL10, IL-6, D-dimer, and PEVDS symptom scores at 30, 90, and 180 days. A sample size of 20â30 participants would be sufficient for proof-of-concept. The study could be conducted through MSF's survivor follow-up programme infrastructure or through the PREVAIL III / PALM survivor cohort networks in Liberia, Sierra Leone, or DRC. No new regulatory framework is required; an IND amendment or compassionate use application covering survivor treatment would fall within existing regulatory categories for drugs with established safety data in the target population."}),l.jsx($s,{children:"If '005 can deplete the macrophage reservoir that harbours persistent EBOV RNA in immune-privileged compartments, it would be the first pharmacological approach capable of treating both the acute disease and its long-term sequelae and the first agent capable of reducing the viral reservoir that enables outbreak reseeding through sexual transmission years after apparent recovery."}),l.jsx(br,{children:"Conclusion"}),l.jsx("p",{children:"The active 2026 Bundibugyo ebolavirus PHEIC in DRC and Uganda has no approved specific treatment. The only available intervention is optimized supportive care. The macrophage-driven cytokine storm that kills Bundibugyo patients, a pathological mechanism shared across all Ebola species, is entirely untreated by any licensed pharmacological agent currently deployable in the field."}),l.jsxs("p",{children:["'005 targets precisely this mechanism. It depletes activated CD206",l.jsx("sup",{children:"+"})," macrophages, the primary BDBV replication site and cytokine source, while preserving monocyte renewal, antiviral T-cell and NK-cell responses via CXCL10 preservation, and full HPA axis function. Its host-directed mechanism is entirely independent of viral species. Its administration profile (IV push or subcutaneous, 2 mL reconstituted solution, three doses over three days, 24-hour room temperature stability, standard refrigerated storage) is designed for deployment in active African outbreak settings. Its safety profile in 309 patients across unrestricted comorbidities and concomitant medications is clean. There is no approved treatment to displace and no drug interaction to manage."]}),l.jsx("p",{children:"The COVID-19 Phase II/III clinical dataset (309 patients, replicate superiority across four endpoints, viral clearance accelerated rather than
331impaired) provides the strongest available translational evidence that macrophage-targeted cytokine control improves outcomes in infectious cytokine storms. For Bundibugyo, where the cytokine storm is the entire therapeutic target, this data package is directly relevant."}),l.jsxs("p",{children:["Beyond acute mortality, 85â90% of survivors develop Post-Ebola Virus Disease Syndrome, including neurological, musculoskeletal, and ocular sequelae persisting for a median of six years, driven by persistent EBOV RNA in CD206",l.jsx("sup",{children:"+"})," macrophage reservoirs in immune-privileged compartments including the CNS, eyes, and male reproductive tract. Severity of the acute inflammatory phase directly predicts reservoir establishment and PEVDS burden. '005 is the only investigational agent mechanistically positioned to address this: by depleting the chronically activated CD206",l.jsx("sup",{children:"+"})," macrophages that harbour persistent viral RNA during the acute phase, it may reduce both PEVDS incidence and the viral persistence that enables outbreak reseeding through sexual transmission. The proposal for a controlled single-session infusion study in survivors with confirmed EBOV RNA persistence, using the 1.9-hour plasma half-life to titrate systemic exposure safely below the NOAEL while allowing sustained macrophage-level drug accumulation, represents a genuinely novel therapeutic concept without precedent in EVD management."]}),l.jsxs($s,{children:["For the 2026 Bundibugyo PHEIC: '005 is field-deployable, mechanistically matched, and the only investigational agent with human clinical data in an analogous macrophage-driven cytokine storm. Its potential extends beyond acute treatment: it may be the first pharmacological approach capable of clearing the macrophage viral reservoir that causes Post-Ebola Syndrome and enables continued transmission from survivors. 101 Therapeutics welcomes direct contact from WHO, MSF, BARDA, DRC Ministry of Health, and outbreak response coordinators. Contact: ",l.jsx("a",{className:"text-primary underline not-italic",href:"mailto:[email protected]",children:"[email protected]"})]}),l.jsx(br,{children:"8. Selected References"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-1 text-sm text-foreground/80",children:[l.jsx("li",{children:"WHO. Ebola disease caused by Bundibugyo virus: DRC & Uganda. Disease Outbreak News DON602. 15 May 2026. PHEIC declared 17 May 2026."}),l.jsx("li",{children:"ECDC. Ebola disease outbreak in DRC and Uganda: Epidemiological update. 29 May 2026."}),l.jsx("li",{children:"MSF. Ebola disease outbreak 2026: How MSF is responding. 30 May 2026."}),l.jsx("li",{children:"WHO AFRO. Ongoing outbreak in DRC: Bundibugyo ebolavirus. May 2026."}),l.jsx("li",{children:"Mulangu S et al. A randomized, controlled trial of Ebola virus disease therapeutics (PALM). N Engl J Med. 2019;381:2293â2303."}),l.jsx("li",{children:"Prasad AN et al. Remdesivir, mAb114, REGN-EB3, and ZMapp partially rescue NHP in uniformly lethal Ebola model. Nat Commun. 2025;16:3824."}),l.jsx("li",{children:"Agnandji ST et al. Insights on FDA-approved monoclonal antibodies against Ebola virus infection. Front Immunol. 2021;12:721328."}),l.jsx("li",{children:"WHO. First guideline for Ebola virus disease therapeutics. August 2022."}),l.jsx("li",{children:"DHS Science and Technology. Master Question List for Ebolaviruses. March 2025."}),l.jsx("li",{children:"Olejnik J et al. Molecular mechanisms of Ebola virus pathogenesis: focus on cell death. Cell Death Differ. 2015;22:1491â1500."}),l.jsx("li",{children:"Jin H et al. Ebola virus binding to Tim-1 on T lymphocytes induces a cytokine storm. mBio. 2018;9(1):e00845-17."}),l.jsx("li",{children:"Baize S et al. Immune parameters and outcomes during Ebola virus disease. JCI Insight. 2019;4(1):e125106."}),l.jsx("li",{children:"Goldberg MM, Goldberg AM, Weinreb O, Goldberg JI. Macrophage-targeted glucocorticoid prodrug resolves acute inflammation while preserving HPA axis function: mechanistic, preclinical, and Phase II/III clinical evidence. medRxiv. 2026. doi:10.64898/2026.06.05.26354839"}),l.jsx("li",{children:"Protocol ICS/LAX/2022-005. Phase II/III adaptive RCT of 101-PGC-005 vs. dexamethasone in moderate COVID-19. ClinicalTr
331ials.gov NCT05656521. 2023â2025."}),l.jsx("li",{children:"Van Beusekom M. Almost 90% of treated Ebola survivors have long-term health effects. CIDRAP. 2025; citing: Open Forum Infect Dis. 2025;ofaf436. (86.7% of 750 survivors; neurologic 61.7%, musculoskeletal 49.7%; median follow-up 38 months.)"}),l.jsx("li",{children:"Anglewicz P et al. Long-term physical and mental health outcomes of EVD survivors in Kenema District, Sierra Leone. PLOS Global Public Health. 2024;4(11):e0003421."}),l.jsx("li",{children:"Fallah MP et al. Associations of inflammatory markers with post-acute clinical findings among EVD survivors. Lancet Microbe. 2025;101033."}),l.jsx("li",{children:"Fischer WA et al. Long-term complications of Ebola virus disease: prevalence and predictors. Clin Infect Dis. 2021;71(7):1749â1755."}),l.jsx("li",{children:"Mate SE et al. Persistence of Ebola virus in semen among survivors in Sierra Leone. PLoS Med. 2015;12(1):e1001775."}),l.jsx("li",{children:"Meek O, Fornace K, Carroll MW. Ebola virus persistence: implications for human-to-human transmission and new outbreaks. Explor Med. 2025;6:1001333."})]}),l.jsx("p",{className:"text-xs text-muted-foreground italic mt-6",children:"This white paper is provided for scientific and regulatory engagement purposes only. It does not constitute a clinical claim, regulatory submission, or therapeutic recommendation. All clinical data cited are from completed GCP studies; EVD-specific data presented here are preclinical and mechanistic in nature."}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["© 2026 101 Therapeutics Ltd. All rights reserved. | Contact: ",l.jsx("a",{className:"text-primary underline",href:"mailto:[email protected]",children:"[email protected]"})]})]})]})},kI=new gT,SI=()=>l.jsx(vT,{client:kI,children:l.jsxs(GC,{children:[l.jsx(BE,{}),l.jsx(w_,{}),l.jsxs(m2,{children:[l.jsx(b2,{}),l.jsxs(a2,{children:[l.jsx(Ye,{path:"/",element:l.jsx(rI,{})}),l.jsx(Ye,{path:"/rare-diseases",element:l.jsx(sI,{})}),l.jsx(Ye,{path:"/autoimmune",element:l.jsx(oI,{})}),l.jsx(Ye,{path:"/neuroinflammation",element:l.jsx(aI,{})}),l.jsx(Ye,{path:"/metabolic-diseases",element:l.jsx(lI,{})}),l.jsx(Ye,{path:"/infectious-disease",element:l.jsx(cI,{})}),l.jsx(Ye,{path:"/oncology",element:l.jsx(uI,{})}),l.jsx(Ye,{path:"/whitepapers",element:l.jsx(fI,{})}),l.jsx(Ye,{path:"/whitepapers/efficacy-ceiling-autoimmune",element:l.jsx(bI,{})}),l.jsx(Ye,{path:"/whitepapers/ebola-bundibugyo-cytokine-storm",element:l.jsx(xI,{})}),l.jsx(Ye,{path:"/manuscripts",element:l.jsx(pI,{})}),l.jsx(Ye,{path:"/view-pdf",element:l.jsx(yI,{})}),l.jsx(Ye,{path:"/investors",element:l.jsx(mI,{})}),l.jsx(Ye,{path:"*",element:l.jsx(nI,{})})]})]})]})});$v(document.getElementById("root")).render(l.jsx(SI,{}));
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.