PageSourceSearch

https://medicalcouriers.com/assets/index-Dk9UVfm_.js

js medicalcouriers.com collected 2026-10-06 05:22:50 UTC 848,343 bytes, 1,068 lines download raw bytes

vendor: 6,287 bytes, lines 1-9
1var Lk=Object.defineProperty;var rm=t=>{throw TypeError(t)};var Dk=(t,e,r)=>e in t?Lk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Dr=(t,e,r)=>Dk(t,typeof e!="symbol"?e+"":e,r),mu=(t,e,r)=>e.has(t)||rm("Cannot "+r);var E=(t,e,r)=>(mu(t,e,"read from private field"),r?r.call(t):e.get(t)),ye=(t,e,r)=>e.has(t)?rm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),se=(t,e,r,n)=>(mu(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),lt=(t,e,r)=>(mu(t,e,"access private method"),r);var Do=(t,e,r,n)=>({set _(s){se(t,e,s,r)},get _(){return E(t,e,n)}});function $k(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function ko(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pv={exports:{}},jc={},mv={exports:{}},ce={};/**
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 So=Symbol.for("react.element"),Uk=Symbol.for("react.portal"),Fk=Symbol.for("react.fragment"),Bk=Symbol.for("react.strict_mode"),zk=Symbol.for("react.profiler"),Hk=Symbol.for("react.provider"),Wk=Symbol.for("react.context"),Vk=Symbol.for("react.forward_ref"),qk=Symbol.for("react.suspense"),Kk=Symbol.for("react.memo"),Gk=Symbol.for("react.lazy"),nm=Symbol.iterator;function Jk(t){return t===null||typeof t!="object"?null:(t=nm&&t[nm]||t["@@iterator"],typeof t=="function"?t:null)}var gv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yv=Object.assign,vv={};function Gi(t,e,r){this.props=t,this.context=e,this.refs=vv,this.updater=r||gv}Gi.prototype.isReactComponent={};Gi.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Gi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function xv(){}xv.prototype=Gi.prototype;function hf(t,e,r){this.props=t,this.context=e,this.refs=vv,this.updater=r||gv}var ff=hf.prototype=new xv;ff.constructor=hf;yv(ff,Gi.prototype);ff.isPureReactComponent=!0;var sm=Array.isArray,wv=Object.prototype.hasOwnProperty,pf={current:null},bv={key:!0,ref:!0,__self:!0,__source:!0};function kv(t,e,r){var n,s={},i=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)wv.call(e,n)&&!bv.hasOwnProperty(n)&&(s[n]=e[n]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(t&&t.defaultProps)for(n in l=t.defaultProps,l)s[n]===void 0&&(s[n]=l[n]);return{$$typeof:So,type:t,key:i,ref:a,props:s,_owner:pf.current}}function Zk(t,e){return{$$typeof:So,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function mf(t){return typeof t=="object"&&t!==null&&t.$$typeof===So}function Qk(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var im=/\/+/g;function gu(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Qk(""+t.key):e.toString(36)}function gl(t,e,r,n,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case So:case Uk:a=!0}}if(a)return a=t,s=s(a),t=n===""?"."+gu(a,0):n,sm(s)?(r="",t!=null&&(r=t.replace(im,"$&/")+"/"),gl(s,e,r,"",function(u){return u})):s!=null&&(mf(s)&&(s=Zk(s,r+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(im,"$&/")+"/")+t)),e.push(s)),1;if(a=0,n=n===""?".":n+":",sm(t))for(var l=0;l<t.length;l++){i=t[l];var c=n+gu(i,l);a+=gl(i,e,r,c,s)}else if(c=Jk(t),typeof c=="function")for(t=c.call(t),l=0;!(i=t.next()).done;)i=i.value,c=n+gu(i,l++),a+=gl(i,e,r,c,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function $o(t,e,r){if(t==null)return t;var n=[],s=0;return gl(t,n,"","",function(i){return e.call(r,i,s++)}),n}function Yk(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var vt={current:null},yl={transition:null},Xk={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:yl,ReactCurrentOwner:pf};function Sv(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:$o,forEach:function(t,e,r){$o(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return $o(t,function(){e++}),e},toArray:function(t){return $o(t,function(e){return e})||[]},only:function(t){if(!mf(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ce.Component=Gi;ce.Fragment=Fk;ce.Profiler=zk;ce.PureComponent=hf;ce.StrictMode=Bk;ce.Suspense=qk;
vendor: 5,276 bytes, lines 9-25
9ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xk;ce.act=Sv;ce.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=yv({},t.props),s=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=pf.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)wv.call(e,c)&&!bv.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:So,type:t.type,key:s,ref:i,props:n,_owner:a}};ce.createContext=function(t){return t={$$typeof:Wk,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Hk,_context:t},t.Consumer=t};ce.createElement=kv;ce.createFactory=function(t){var e=kv.bind(null,t);return e.type=t,e};ce.createRef=function(){return{current:null}};ce.forwardRef=function(t){return{$$typeof:Vk,render:t}};ce.isValidElement=mf;ce.lazy=function(t){return{$$typeof:Gk,_payload:{_status:-1,_result:t},_init:Yk}};ce.memo=function(t,e){return{$$typeof:Kk,type:t,compare:e===void 0?null:e}};ce.startTransition=function(t){var e=yl.transition;yl.transition={};try{t()}finally{yl.transition=e}};ce.unstable_act=Sv;ce.useCallback=function(t,e){return vt.current.useCallback(t,e)};ce.useContext=function(t){return vt.current.useContext(t)};ce.useDebugValue=function(){};ce.useDeferredValue=function(t){return vt.current.useDeferredValue(t)};ce.useEffect=function(t,e){return vt.current.useEffect(t,e)};ce.useId=function(){return vt.current.useId()};ce.useImperativeHandle=function(t,e,r){return vt.current.useImperativeHandle(t,e,r)};ce.useInsertionEffect=function(t,e){return vt.current.useInsertionEffect(t,e)};ce.useLayoutEffect=function(t,e){return vt.current.useLayoutEffect(t,e)};ce.useMemo=function(t,e){return vt.current.useMemo(t,e)};ce.useReducer=function(t,e,r){return vt.current.useReducer(t,e,r)};ce.useRef=function(t){return vt.current.useRef(t)};ce.useState=function(t){return vt.current.useState(t)};ce.useSyncExternalStore=function(t,e,r){return vt.current.useSyncExternalStore(t,e,r)};ce.useTransition=function(){return vt.current.useTransition()};ce.version="18.3.1";mv.exports=ce;var x=mv.exports;const P=ko(x),gf=$k({__proto__:null,default:P},[x]);/**
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 eS=x,tS=Symbol.for("react.element"),rS=Symbol.for("react.fragment"),nS=Object.prototype.hasOwnProperty,sS=eS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iS={key:!0,ref:!0,__self:!0,__source:!0};function _v(t,e,r){var n,s={},i=null,a=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)nS.call(e,n)&&!iS.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:tS,type:t,key:i,ref:a,props:s,_owner:sS.current}}jc.Fragment=rS;jc.jsx=_v;jc.jsxs=_v;pv.exports=jc;var o=pv.exports,Cv={exports:{}},Dt={},jv={exports:{}},Tv={};/**
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(t){function e(T,N){var D=T.length;T.push(N);e:for(;0<D;){var Y=D-1>>>1,q=T[Y];if(0<s(q,N))T[Y]=N,T[D]=q,D=Y;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var N=T[0],D=T.pop();if(D!==N){T[0]=D;e:for(var Y=0,q=T.length,ie=q>>>1;Y<ie;){var re=2*(Y+1)-1,Te=T[re],De=re+1,$=T[De];if(0>s(Te,D))De<q&&0>s($,Te)?(T[Y]=$,T[De]=D,Y=De):(T[Y]=Te,T[re]=D,Y=re);else if(De<q&&0>s($,D))T[Y]=$,T[De]=D,Y=De;else break e}}return N}function s(T,N){var D=T.sortIndex-N.sortIndex;return D!==0?D:T.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,w=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var N=r(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=T)n(u),N.sortIndex=N.expirationTime,e(c,N);else break;N=r(u)}}function k(T){if(g=!1,v(T),!w)if(r(c)!==null)w=!0,H(S);else{var N=r(u);N!==null&&G(k,N.startTime-T)}}function S(T,N){w=!1,g&&(g=!1,y(j),j=-1),f=!0;var D=p;try{for(v(N),h=r(c);h!==null&&(!(h.expirationTime>N)||T&&!z());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,p=h.priorityLevel;var q=Y(h.expirationTime<=N);N=t.unstable_now(),typeof q=="function"?h.callback=q:h===r(c)&&n(c),v(N)}else n(c);h=r(c)}if(h!==null)var ie=!0;else{var re=r(u);
vendor: 8,941 bytes, lines 25-34
25re!==null&&G(k,re.startTime-N),ie=!1}return ie}finally{h=null,p=D,f=!1}}var C=!1,_=null,j=-1,A=5,R=-1;function z(){return!(t.unstable_now()-R<A)}function M(){if(_!==null){var T=t.unstable_now();R=T;var N=!0;try{N=_(!0,T)}finally{N?J():(C=!1,_=null)}}else C=!1}var J;if(typeof m=="function")J=function(){m(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,X=L.port2;L.port1.onmessage=M,J=function(){X.postMessage(null)}}else J=function(){b(M,0)};function H(T){_=T,C||(C=!0,J())}function G(T,N){j=b(function(){T(t.unstable_now())},N)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(T){T.callback=null},t.unstable_continueExecution=function(){w||f||(w=!0,H(S))},t.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(T){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var D=p;p=N;try{return T()}finally{p=D}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(T,N){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var D=p;p=T;try{return N()}finally{p=D}},t.unstable_scheduleCallback=function(T,N,D){var Y=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Y+D:Y):D=Y,T){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=D+q,T={id:d++,callback:N,priorityLevel:T,startTime:D,expirationTime:q,sortIndex:-1},D>Y?(T.sortIndex=D,e(u,T),r(c)===null&&T===r(u)&&(g?(y(j),j=-1):g=!0,G(k,D-Y))):(T.sortIndex=q,e(c,T),w||f||(w=!0,H(S))),T},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(T){var N=p;return function(){var D=p;p=N;try{return T.apply(this,arguments)}finally{p=D}}}})(Tv);jv.exports=Tv;var aS=jv.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 oS=x,Mt=aS;function O(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ev=new Set,Ua={};function Os(t,e){Mi(t,e),Mi(t+"Capture",e)}function Mi(t,e){for(Ua[t]=e,t=0;t<e.length;t++)Ev.add(e[t])}var Gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xd=Object.prototype.hasOwnProperty,lS=/^[: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]*$/,am={},om={};function cS(t){return xd.call(om,t)?!0:xd.call(am,t)?!1:lS.test(t)?om[t]=!0:(am[t]=!0,!1)}function uS(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function dS(t,e,r,n){if(e===null||typeof e>"u"||uS(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xt(t,e,r,n,s,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){at[t]=new xt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];at[e]=new xt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){at[t]=new xt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){at[t]=new xt(t,2,!1,t,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(t){at[t]=new xt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){at[t]=new xt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){at[t]=new xt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){at[t]=new xt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){at[t]=new xt(t,5,!1,t.toLowerCase(),null,!1,!1)});var yf=/[\-:]([a-z])/g;function vf(t){return t[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(t){var e=t.replace(yf,vf);at[e]=new xt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(yf,vf);at[e]=new xt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(yf,vf);at[e]=new xt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){at[t]=new xt(t,1,!1,t.toLowerCase(),null,!1,!1)});at.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){at[t]=new xt(t,1,!1,t.toLowerCase(),null,!0,!0)});function xf(t,e,r,n){var s=at.hasOwnProperty(e)?at[e]:null;(s!==null?s.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(dS(e,r,s,n)&&(r=null),n||s===null?cS(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):s.mustUseProperty?t[s.propertyName]=r===null?s.type===3?!1:"":r:(e=s.attributeName,n=s.attributeNamespace,r===null?t.removeAttribute(e):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var en=oS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Uo=Symbol.for("react.element"),ri=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),wf=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),Nv=Symbol.for("react.provider"),Av=Symbol.for("react.context"),bf=Symbol.for("react.forward_ref"),bd=Symbol.for("react.suspense"),kd=Symbol.for("react.suspense_list"),kf=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),Pv=Symbol.for("react.offscreen"),lm=Symbol.iterator;function ia(t){return t===null||typeof t!="object"?null:(t=lm&&t[lm]||t["@@iterator"],typeof t=="function"?t:null)}var Le=Object.assign,yu;function ya(t){if(yu===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);yu=e&&e[1]||""}return`
34`+yu+t}var vu=!1;function xu(t,e){if(!t||vu)return"";vu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){n=u}t.call(e.prototype)}else{try{throw Error()}catch(u){n=u}t()}}
vendor: 4,643 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=n.stack.split(`
36`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=`
37`+s[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{vu=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?ya(t):""}function hS(t){switch(t.tag){case 5:return ya(t.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 2:case 15:return t=xu(t.type,!1),t;case 11:return t=xu(t.type.render,!1),t;case 1:return t=xu(t.type,!0),t;default:return""}}function Sd(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ni:return"Fragment";case ri:return"Portal";case wd:return"Profiler";case wf:return"StrictMode";case bd:return"Suspense";case kd:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Av:return(t.displayName||"Context")+".Consumer";case Nv:return(t._context.displayName||"Context")+".Provider";case bf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kf:return e=t.displayName||null,e!==null?e:Sd(t.type)||"Memo";case hn:e=t._payload,t=t._init;try{return Sd(t(e))}catch{}}return null}function fS(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sd(e);case 8:return e===wf?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Un(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Rv(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function pS(t){var e=Rv(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fo(t){t._valueTracker||(t._valueTracker=pS(t))}function Ov(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Rv(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function $l(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _d(t,e){var r=e.checked;return Le({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function cm(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Un(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Iv(t,e){e=e.checked,e!=null&&xf(t,"checked",e,!1)}function Cd(t,e){Iv(t,e);var r=Un(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?jd(t,e.type,r):e.hasOwnProperty("defaultValue")&&jd(t,e.type,Un(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function um(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}
vendor: 11,209 bytes, line 37
37function jd(t,e,r){(e!=="number"||$l(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var va=Array.isArray;function mi(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s<r.length;s++)e["$"+r[s]]=!0;for(r=0;r<t.length;r++)s=e.hasOwnProperty("$"+t[r].value),t[r].selected!==s&&(t[r].selected=s),s&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Un(r),e=null,s=0;s<t.length;s++){if(t[s].value===r){t[s].selected=!0,n&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Td(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(O(91));return Le({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function dm(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(O(92));if(va(r)){if(1<r.length)throw Error(O(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Un(r)}}function Mv(t,e){var r=Un(e.value),n=Un(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function hm(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Lv(t){switch(t){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 Ed(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Lv(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Bo,Dv=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,s){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Bo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Fa(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var _a={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},mS=["Webkit","ms","Moz","O"];Object.keys(_a).forEach(function(t){mS.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_a[e]=_a[t]})});function $v(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||_a.hasOwnProperty(t)&&_a[t]?(""+e).trim():e+"px"}function Uv(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=$v(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var gS=Le({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 Nd(t,e){if(e){if(gS[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(O(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(O(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(O(61))}if(e.style!=null&&typeof e.style!="object")throw Error(O(62))}}function Ad(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Pd=null;function Sf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rd=null,gi=null,yi=null;function fm(t){if(t=jo(t)){if(typeof Rd!="function")throw Error(O(280));var e=t.stateNode;e&&(e=Pc(e),Rd(t.stateNode,t.type,e))}}function Fv(t){gi?yi?yi.push(t):yi=[t]:gi=t}function Bv(){if(gi){var t=gi,e=yi;if(yi=gi=null,fm(t),e)for(t=0;t<e.length;t++)fm(e[t])}}function zv(t,e){return t(e)}function Hv(){}var wu=!1;function Wv(t,e,r){if(wu)return t(e,r);wu=!0;try{return zv(t,e,r)}finally{wu=!1,(gi!==null||yi!==null)&&(Hv(),Bv())}}function Ba(t,e){var r=t.stateNode;if(r===null)return null;var n=Pc(r);if(n===null)return null;r=n[e];e:switch(e){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)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(O(231,e,typeof r));return r}var Od=!1;if(Gr)try{var aa={};Object.defineProperty(aa,"passive",{get:function(){Od=!0}}),window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{Od=!1}function yS(t,e,r,n,s,i,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{e.apply(r,u)}catch(d){this.onError(d)}}var Ca=!1,Ul=null,Fl=!1,Id=null,vS={onError:function(t){Ca=!0,Ul=t}};function xS(t,e,r,n,s,i,a,l,c){Ca=!1,Ul=null,yS.apply(vS,arguments)}function wS(t,e,r,n,s,i,a,l,c){if(xS.apply(this,arguments),Ca){if(Ca){var u=Ul;Ca=!1,Ul=null}else throw Error(O(198));Fl||(Fl=!0,Id=u)}}function Is(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function Vv(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pm(t){if(Is(t)!==t)throw Error(O(188))}function bS(t){var e=t.alternate;if(!e){if(e=Is(t),e===null)throw Error(O(188));return e!==t?null:t}for(var r=t,n=e;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return pm(s),t;if(i===n)return pm(s),e;i=i.sibling}throw Error(O(188))}if(r.return!==n.return)r=s,n=i;else{for(var a=!1,l=s.child;l;){if(l===r){a=!0,r=s,n=i;break}if(l===n){a=!0,n=s,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,n=s;break}if(l===n){a=!0,n=i,r=s;break}l=l.sibling}if(!a)throw Error(O(189))}}if(r.alternate!==n)throw Error(O(190))}if(r.tag!==3)throw Error(O(188));return r.stateNode.current===r?t:e}function qv(t){return t=bS(t),t!==null?Kv(t):null}function Kv(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Kv(t);if(e!==null)return e;t=t.sibling}return null}var Gv=Mt.unstable_scheduleCallback,mm=Mt.unstable_cancelCallback,kS=Mt.unstable_shouldYield,SS=Mt.unstable_requestPaint,He=Mt.unstable_now,_S=Mt.unstable_getCurrentPriorityLevel,_f=Mt.unstable_ImmediatePriority,Jv=Mt.unstable_UserBlockingPriority,Bl=Mt.unstable_NormalPriority,CS=Mt.unstable_LowPriority,Zv=Mt.unstable_IdlePriority,Tc=null,Ar=null;function jS(t){if(Ar&&typeof Ar.onCommitFiberRoot=="function")try{Ar.onCommitFiberRoot(Tc,t,void 0,(t.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:NS,TS=Math.log,ES=Math.LN2;function NS(t){return t>>>=0,t===0?32:31-(TS(t)/ES|0)|0}var zo=64,Ho=4194304;function xa(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function zl(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var l=a&~s;l!==0?n=xa(l):(i&=a,i!==0&&(n=xa(i)))}else a=r&~s,a!==0?n=xa(a):i!==0&&(n=xa(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-mr(e),s=1<<r,n|=t[r],e&=~s;return n}function AS(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 PS(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-mr(i),l=1<<a,c=s[a];c===-1?(!(l&r)||l&n)&&(s[a]=AS(l,e)):c<=e&&(t.expiredLanes|=l),i&=~l}}function Md(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Qv(){var t=zo;return zo<<=1,!(zo&4194240)&&(zo=64),t}function bu(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function _o(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-mr(e),t[e]=r}function RS(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var s=31-mr(r),i=1<<s;e[s]=0,n[s]=-1,t[s]=-1,r&=~i}}function Cf(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-mr(r),s=1<<n;s&e|t[n]&e&&(t[n]|=e),r&=~s}}var be=0;function Yv(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Xv,jf,ex,tx,rx,Ld=!1,Wo=[],En=null,Nn=null,An=null,za=new Map,Ha=new Map,gn=[],OS="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 gm(t,e){switch(t){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":za.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ha.delete(e.pointerId)}}function oa(t,e,r,n,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},e!==null&&(e=jo(e),e!==null&&jf(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function IS(t,e,r,n,s){switch(e){case"focusin":return En=oa(En,t,e,r,n,s),!0;case"dragenter":return Nn=oa(Nn,t,e,r,n,s),!0;case"mouseover":return An=oa(An,t,e,r,n,s),!0;case"pointerover":var i=s.pointerId;return za.set(i,oa(za.get(i)||null,t,e,r,n,s)),!0;
vendor: 1,268 bytes, line 37
37case"gotpointercapture":return i=s.pointerId,Ha.set(i,oa(Ha.get(i)||null,t,e,r,n,s)),!0}return!1}function nx(t){var e=us(t.target);if(e!==null){var r=Is(e);if(r!==null){if(e=r.tag,e===13){if(e=Vv(r),e!==null){t.blockedOn=e,rx(t.priority,function(){ex(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vl(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Dd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Pd=n,r.target.dispatchEvent(n),Pd=null}else return e=jo(r),e!==null&&jf(e),t.blockedOn=r,!1;e.shift()}return!0}function ym(t,e,r){vl(t)&&r.delete(e)}function MS(){Ld=!1,En!==null&&vl(En)&&(En=null),Nn!==null&&vl(Nn)&&(Nn=null),An!==null&&vl(An)&&(An=null),za.forEach(ym),Ha.forEach(ym)}function la(t,e){t.blockedOn===e&&(t.blockedOn=null,Ld||(Ld=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,MS)))}function Wa(t){function e(s){return la(s,t)}if(0<Wo.length){la(Wo[0],t);for(var r=1;r<Wo.length;r++){var n=Wo[r];n.blockedOn===t&&(n.blockedOn=null)}}for(En!==null&&la(En,t),Nn!==null&&la(Nn,t),An!==null&&la(An,t),za.forEach(e),Ha.forEac
vendor: 8,908 bytes, line 37
37h(e),r=0;r<gn.length;r++)n=gn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<gn.length&&(r=gn[0],r.blockedOn===null);)nx(r),r.blockedOn===null&&gn.shift()}var vi=en.ReactCurrentBatchConfig,Hl=!0;function LS(t,e,r,n){var s=be,i=vi.transition;vi.transition=null;try{be=1,Tf(t,e,r,n)}finally{be=s,vi.transition=i}}function DS(t,e,r,n){var s=be,i=vi.transition;vi.transition=null;try{be=4,Tf(t,e,r,n)}finally{be=s,vi.transition=i}}function Tf(t,e,r,n){if(Hl){var s=Dd(t,e,r,n);if(s===null)Pu(t,e,n,Wl,r),gm(t,n);else if(IS(s,t,e,r,n))n.stopPropagation();else if(gm(t,n),e&4&&-1<OS.indexOf(t)){for(;s!==null;){var i=jo(s);if(i!==null&&Xv(i),i=Dd(t,e,r,n),i===null&&Pu(t,e,n,Wl,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else Pu(t,e,n,null,r)}}var Wl=null;function Dd(t,e,r,n){if(Wl=null,t=Sf(n),t=us(t),t!==null)if(e=Is(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Vv(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Wl=t,null}function sx(t){switch(t){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(_S()){case _f:return 1;case Jv:return 4;case Bl:case CS:return 16;case Zv:return 536870912;default:return 16}default:return 16}}var _n=null,Ef=null,xl=null;function ix(){if(xl)return xl;var t,e=Ef,r=e.length,n,s="value"in _n?_n.value:_n.textContent,i=s.length;for(t=0;t<r&&e[t]===s[t];t++);var a=r-t;for(n=1;n<=a&&e[r-n]===s[i-n];n++);return xl=s.slice(t,1<n?1-n:void 0)}function wl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Vo(){return!0}function vm(){return!1}function $t(t){function e(r,n,s,i,a){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(r=t[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vo:vm,this.isPropagationStopped=vm,this}return Le(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Vo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vo)},persist:function(){},isPersistent:Vo}),e}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nf=$t(Ji),Co=Le({},Ji,{view:0,detail:0}),$S=$t(Co),ku,Su,ca,Ec=Le({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Af,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ca&&(ca&&t.type==="mousemove"?(ku=t.screenX-ca.screenX,Su=t.screenY-ca.screenY):Su=ku=0,ca=t),ku)},movementY:function(t){return"movementY"in t?t.movementY:Su}}),xm=$t(Ec),US=Le({},Ec,{dataTransfer:0}),FS=$t(US),BS=Le({},Co,{relatedTarget:0}),_u=$t(BS),zS=Le({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),HS=$t(zS),WS=Le({},Ji,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),VS=$t(WS),qS=Le({},Ji,{data:0}),wm=$t(qS),KS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GS={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"},JS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=JS[t])?!!e[t]:!1}function Af(){return ZS}var QS=Le({},Co,{key:function(t){if(t.key){var e=KS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=wl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?GS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Af,charCode:function(t){return t.type==="keypress"?wl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?wl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),YS=$t(QS),XS=Le({},Ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bm=$t(XS),e_=Le({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Af}),t_=$t(e_),r_=Le({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),n_=$t(r_),s_=Le({},Ec,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i_=$t(s_),a_=[9,13,27,32],Pf=Gr&&"CompositionEvent"in window,ja=null;Gr&&"documentMode"in document&&(ja=document.documentMode);var o_=Gr&&"TextEvent"in window&&!ja,ax=Gr&&(!Pf||ja&&8<ja&&11>=ja),km=" ",Sm=!1;function ox(t,e){switch(t){case"keyup":return a_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lx(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var si=!1;function l_(t,e){switch(t){case"compositionend":return lx(e);case"keypress":return e.which!==32?null:(Sm=!0,km);case"textInput":return t=e.data,t===km&&Sm?null:t;default:return null}}function c_(t,e){if(si)return t==="compositionend"||!Pf&&ox(t,e)?(t=ix(),xl=Ef=_n=null,si=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ax&&e.locale!=="ko"?null:e.data;default:return null}}var u_={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 _m(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!u_[t.type]:e==="textarea"}function cx(t,e,r,n){Fv(n),e=Vl(e,"onChange"),0<e.length&&(r=new Nf("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Ta=null,Va=null;function d_(t){wx(t,0)}function Nc(t){var e=oi(t);if(Ov(e))return t}function h_(t,e){if(t==="change")return e}var ux=!1;if(Gr){var Cu;if(Gr){var ju="oninput"in document;if(!ju){var Cm=document.createElement("div");Cm.setAttribute("oninput","return;"),ju=typeof Cm.oninput=="function"}Cu=ju}else Cu=!1;ux=Cu&&(!document.documentMode||9<document.documentMode)}function jm(){Ta&&(Ta.detachEvent("onpropertychange",dx),Va=Ta=null)}function dx(t){if(t.propertyName==="value"&&Nc(Va)){var e=[];cx(e,Va,t,Sf(t)),Wv(d_,e)}}function f_(t,e,r){t==="focusin"?(jm(),Ta=e,Va=r,Ta.attachEvent("onpropertychange",dx)):t==="focusout"&&jm()}function p_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Nc(Va)}function m_(t,e){if(t==="click")return Nc(e)}function g_(t,e){if(t==="input"||t==="change")return Nc(e)}function y_(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var yr=typeof Object.is=="function"?Object.is:y_;function qa(t,e){if(yr(t,e))return!0;
vendor: 4,808 bytes, line 37
37if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!xd.call(e,s)||!yr(t[s],e[s]))return!1}return!0}function Tm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Em(t,e){var r=Tm(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Tm(r)}}function hx(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?hx(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fx(){for(var t=window,e=$l();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=$l(t.document)}return e}function Rf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function v_(t){var e=fx(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&hx(r.ownerDocument.documentElement,r)){if(n!==null&&Rf(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=Em(r,i);var a=Em(r,n);s&&a&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var x_=Gr&&"documentMode"in document&&11>=document.documentMode,ii=null,$d=null,Ea=null,Ud=!1;function Nm(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ud||ii==null||ii!==$l(n)||(n=ii,"selectionStart"in n&&Rf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ea&&qa(Ea,n)||(Ea=n,n=Vl($d,"onSelect"),0<n.length&&(e=new Nf("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=ii)))}function qo(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var ai={animationend:qo("Animation","AnimationEnd"),animationiteration:qo("Animation","AnimationIteration"),animationstart:qo("Animation","AnimationStart"),transitionend:qo("Transition","TransitionEnd")},Tu={},px={};Gr&&(px=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function Ac(t){if(Tu[t])return Tu[t];if(!ai[t])return t;var e=ai[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in px)return Tu[t]=e[r];return t}var mx=Ac("animationend"),gx=Ac("animationiteration"),yx=Ac("animationstart"),vx=Ac("transitionend"),xx=new Map,Am="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 Vn(t,e){xx.set(t,e),Os(e,[t])}for(var Eu=0;Eu<Am.length;Eu++){var Nu=Am[Eu],w_=Nu.toLowerCase(),b_=Nu[0].toUpperCase()+Nu.slice(1);Vn(w_,"on"+b_)}Vn(mx,"onAnimationEnd");Vn(gx,"onAnimationIteration");Vn(yx,"onAnimationStart");Vn("dblclick","onDoubleClick");Vn("focusin","onFocus");Vn("focusout","onBlur");Vn(vx,"onTransitionEnd");Mi("onMouseEnter",["mouseout","mouseover"]);Mi("onMouseLeave",["mouseout","mouseover"]);Mi("onPointerEnter",["pointerout","pointerover"]);Mi("onPointerLeave",["pointerout","pointerover"]);Os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,227 bytes, line 37
37Os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Os("onBeforeInput",["compositionend","keypress","textInput","paste"]);Os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wa="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(" "),k_=new Set("cancel close invalid load scroll toggle".split(" ").concat(wa));function Pm(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,wS(n,e,void 0,t),t.currentTarget=null}function wx(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],s=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var a=n.length-1;0<=a;a--){var l=n[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;Pm(s,l,u),i=c}else for(a=0;a<n.length;a++){if(l=n[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;Pm(s,l,u),i=c}}}if(Fl)throw t=Id,Fl=!1,Id=null,t}function Ne(t,e){var r=e[Wd];r===void 0&&(r=e[Wd]=new Set);var n=t+"__bubble";r.has(n)||(bx(e,t,2,!1),r.add(n))}function Au(t,e,r){var n=0;e&&(n|=4),bx(r,t,n,e)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function Ka(t){if(!t[Ko]){t[Ko]=!0,Ev.forEach(function(r){r!=="selectionchange"&&(k_.has(r)||Au(r,!1,t),Au(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ko]||(e[Ko]=!0,Au("selectionchange",!1,e))}}function bx(t,e,r,n){switch(sx(e)){case 1:var s=LS;break;case 4:s=DS;break;default:s=Tf}r=s.bind(null,e,r,t),s=void 0,!Od||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),n?s!==void 0?t.addEventListener(e,r,{capture:!0,passive:s}):t.addEventListener(e,r,!0):s!==void 0?t.addEventListener(e,r,{passive:s}):t.addEventListener(e,r,!1)}function Pu(t,e,r,n,s){var i=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var l=n.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=n.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=us(l),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}l=l.parentNode}}n=n.return}Wv(function(){var u=i,d=Sf(r),h=[];e:{var p=xx.get(t);if(p!==void 0){var f=Nf,w=t;switch(t){case"keypress":if(wl(r)===0)break e;case"keydown":case"keyup":f=YS;break;case"focusin":w="focus",f=_u;break;case"focusout":w="blur",f=_u;break;case"beforeblur":case"afterblur":f=_u;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=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=FS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=t_;break;case mx:case gx:case yx:f=HS;break;case vx:f=n_;break;case"scroll":f=$S;break;case"wheel":f=i_;break;case"copy":case"cut":case"paste":f=VS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=bm}var g=(e&4)!==0,b=!g&&t==="scroll",y=g?p!==null?p+"Capture":null:p;g=[];for(var m=u,v;m!==null;){v=m;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,y!==null&&(k=Ba(m,y),k!=null&&g.push(Ga(m,k,v)))),b)break;m=m.return}0<g.length&&(p=new f(p,w,null,r,d),h.push({event:p,listeners:g}))}}if(!(e&7)){e:{if(p=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",p&&r!==Pd&&(w=r.relatedTarget||r.fromElement)&&(us(w)||w[Jr]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(w=r.relatedTarget||r.toElement,f=u,w=w?us(w):null,w!==null&&(b=Is(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(f=null,w=u),f!==w)){if(g=xm,k="onMouseLeave",y="onMouseEnter",m="mou
37se",(t==="pointerout"||t==="pointerover")&&(g=bm,k="onPointerLeave",y="onPointerEnter",m="pointer"),b=f==null?p:oi(f),v=w==null?p:oi(w),p=new g(k,m+"leave",f,r,d),p.target=b,p.relatedTarget=v,k=null,us(d)===u&&(g=new g(y,m+"enter",w,r,d),g.target=v,g.relatedTarget=b,k=g),b=k,f&&w)t:{for(g=f,y=w,m=0,v=g;v;v=Bs(v))m++;for(v=0,k=y;k;k=Bs(k))v++;for(;0<m-v;)g=Bs(g),m--;for(;0<v-m;)y=Bs(y),v--;for(;m--;){if(g===y||y!==null&&g===y.alternate)break t;g=Bs(g),y=Bs(y)}g=null}else g=null;f!==null&&Rm(h,p,f,g,!1),w!==null&&b!==null&&Rm(h,b,w,g,!0)}}e:{if(p=u?oi(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var S=h_;else if(_m(p))if(ux)S=g_;else{S=p_;var C=f_}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=m_);if(S&&(S=S(t,u))){cx(h,S,r,d);break e}C&&C(t,p,u),t==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&jd(p,"number",p.value)}switch(C=u?oi(u):window,t){case"focusin":(_m(C)||C.contentEditable==="true")&&(ii=C,$d=u,Ea=null);break;case"focusout":Ea=$d=ii=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Nm(h,r,d);break;case"selectionchange":if(x_)break;case"keydown":case"keyup":Nm(h,r,d)}var _;if(Pf)e:{switch(t){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else si?ox(t,r)&&(j="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(ax&&r.locale!=="ko"&&(si||j!=="onCompositionStart"?j==="onCompositionEnd"&&si&&(_=ix()):(_n=d,Ef="value"in _n?_n.value:_n.textContent,si=!0)),C=Vl(u,j),0<C.length&&(j=new wm(j,t,null,r,d),h.push({event:j,listeners:C}),_?j.data=_:(_=lx(r),_!==null&&(j.data=_)))),(_=o_?l_(t,r):c_(t,r))&&(u=Vl(u,"onBeforeInput"),0<u.length&&(d=new wm("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=_))}wx(h,e)})}function Ga(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Vl(t,e){for(var r=e+"Capture",n=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ba(t,r),i!=null&&n.unshift(Ga(t,i,s)),i=Ba(t,e),i!=null&&n.push(Ga(t,i,s))),t=t.return}return n}function Bs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Rm(t,e,r,n,s){for(var i=e._reactName,a=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,s?(c=Ba(r,i),c!=null&&a.unshift(Ga(r,c,l))):s||(c=Ba(r,i),c!=null&&a.push(Ga(r,c,l)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var S_=/\r\n?/g,__=/\u0000|\uFFFD/g;function Om(t){return(typeof t=="string"?t:""+t).replace(S_,`
38`).replace(__,"")}function Go(t,e,r){if(e=Om(e),Om(t)!==e&&r)throw Error(O(425))}function ql(){}var Fd=null,Bd=null;function zd(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hd=typeof setTimeout=="function"?setTimeout:void 0,C_=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,j_=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(t){return Im.resolve(null).then(t).catch(T_)}:Hd;function T_(t){setTimeout(function(){throw t})}function Ru(t,e){var r=e,n=0;do{var s=r.nextSibling;if(t.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){t.removeChild(s),Wa(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Wa(e)}function Pn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Mm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Zi=Math.random().toString(36).slice(2),Tr="__reactFiber$"+Zi,Ja="__reactProps$"+Zi,Jr="__reactContainer$"+Zi,Wd="__reactEvents$"+Zi,E_="__reactListeners$"+Zi,N_="__reactHandles$"+Zi;function us(t){var e=t[Tr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Jr]||r[Tr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Mm(t);t!==null;){if(r=t[Tr])return r;t=Mm(t)}return e}t=r,r=t.parentNode}return null}function jo(t){return t=t[Tr]||t[Jr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function oi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(O(33))}function Pc(t){return t[Ja]||null}var Vd=[],li=-1;function qn(t){return{current:t}}function Ae(t){0>li||(t.current=Vd[li],Vd[li]=null,li--)}function _e(t,e){li++,Vd[li]=t.current,t.current=e}var Fn={},ft=qn(Fn),St=qn(!1),Ss=Fn;function Li(t,e){var r=t.type.contextTypes;if(!r)return Fn;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function _t(t){return t=t.childContextTypes,t!=null}function Kl(){Ae(St),Ae(ft)}function Lm(t,e,r){if(ft.current!==Fn)throw Error(O(168));_e(ft,e),_e(St,r)}function kx(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(O(108,fS(t)||"Unknown",s));return Le({},r,n)}function Gl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fn,Ss=ft.current,_e(ft,t),_e(St,St.current),!0}function Dm(t,e,r){var n=t.stateNode;if(!n)throw Error(O(169));r?(t=kx(t,e,Ss),n.__reactInternalMemoizedMergedChildContext=t,Ae(St),Ae(ft),_e(ft,t)):Ae(St),_e(St,r)}var zr=null,Rc=!1,Ou=!1;function Sx(t){zr===null?zr=[t]:zr.push(t)}function A_(t){Rc=!0,Sx(t)}function Kn(){if(!Ou&&zr!==null){Ou=!0;var t=0,e=be;try{var r=zr;for(be=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}zr=null,Rc=!1}catch(s){throw zr!==null&&(zr=zr.slice(t+1)),Gv(_f,Kn),s}finally{be=e,Ou=!1}}return null}var ci=[],ui=0,Jl=null,Zl=0,Wt=[],Vt=0,_s=null,Vr=1,qr="";function is(t,e){ci[ui++]=Zl,ci[ui++]=Jl,Jl=t,Zl=e}function _x(t,e,r){Wt[Vt++]=Vr,Wt[Vt++]=qr,Wt[Vt++]=_s,_s=t;var n=Vr;t=qr;var s=32-mr(n)-1;n&=~(1<<s),r+=1;var i=32-mr(e)+s;if(30<i){var a=s-s%5;i=(n&(1<<a)-1).toString(32),n>>=a,s-=a,Vr=1<<32-mr(e)+s|r<<s|n,qr=i+t}else Vr=1<<i|r<<s|n,qr=t}function Of(t){t.return!==null&&(is(t,1),_x(t,1,0))}function If(t){for(;t===Jl;)Jl=ci[--ui],ci[ui]=null,Zl=ci[--ui],ci[ui]=null;for(;t===_s;)_s=Wt[--Vt],Wt[Vt]=null,qr=Wt[--Vt],Wt[Vt]=null,Vr=Wt[--Vt],Wt[Vt]=null}var Ot=null,Rt=null,Re=!1,fr=null;function Cx(t,e){var r=qt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function $m(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ot=t,Rt=Pn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ot=t,Rt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=_s!==null?{id:Vr,overflow:qr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=qt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Ot=t,Rt=null,!0):!1;default:return!1}}function qd(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Kd(t){if(Re){var e=Rt;if(e){var r=e;if(!$m(t,e)){if(qd(t))throw Error(O(418));e=Pn(r.nextSibling);var n=Ot;e&&$m(t,e)?Cx(n,r):(t.flags=t.flags&-4097|2,Re=!1,Ot=t)}}else{if(qd(t))throw Error(O(418));t.flags=t.flags&-4097|2,Re=!1,Ot=t}}}function Um(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ot=t}function Jo(t){if(t!==Ot)return!1;if(!Re)return Um(t),Re=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!zd(t.type,t.memoizedProps)),e&&(e=Rt)){if(qd(t))throw jx(),Error(O(418));for(;e;)Cx(t,e),e=Pn(e.nextSibling)}if(Um(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 10,279 bytes, line 38
38){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Rt=Pn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Rt=null}}else Rt=Ot?Pn(t.stateNode.nextSibling):null;return!0}function jx(){for(var t=Rt;t;)t=Pn(t.nextSibling)}function Di(){Rt=Ot=null,Re=!1}function Mf(t){fr===null?fr=[t]:fr.push(t)}var P_=en.ReactCurrentBatchConfig;function ua(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(O(309));var n=r.stateNode}if(!n)throw Error(O(147,t));var s=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(O(284));if(!r._owner)throw Error(O(290,t))}return t}function Zo(t,e){throw t=Object.prototype.toString.call(e),Error(O(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Fm(t){var e=t._init;return e(t._payload)}function Tx(t){function e(y,m){if(t){var v=y.deletions;v===null?(y.deletions=[m],y.flags|=16):v.push(m)}}function r(y,m){if(!t)return null;for(;m!==null;)e(y,m),m=m.sibling;return null}function n(y,m){for(y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function s(y,m){return y=Mn(y,m),y.index=0,y.sibling=null,y}function i(y,m,v){return y.index=v,t?(v=y.alternate,v!==null?(v=v.index,v<m?(y.flags|=2,m):v):(y.flags|=2,m)):(y.flags|=1048576,m)}function a(y){return t&&y.alternate===null&&(y.flags|=2),y}function l(y,m,v,k){return m===null||m.tag!==6?(m=Fu(v,y.mode,k),m.return=y,m):(m=s(m,v),m.return=y,m)}function c(y,m,v,k){var S=v.type;return S===ni?d(y,m,v.props.children,k,v.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&Fm(S)===m.type)?(k=s(m,v.props),k.ref=ua(y,m,v),k.return=y,k):(k=Tl(v.type,v.key,v.props,null,y.mode,k),k.ref=ua(y,m,v),k.return=y,k)}function u(y,m,v,k){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Bu(v,y.mode,k),m.return=y,m):(m=s(m,v.children||[]),m.return=y,m)}function d(y,m,v,k,S){return m===null||m.tag!==7?(m=ks(v,y.mode,k,S),m.return=y,m):(m=s(m,v),m.return=y,m)}function h(y,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Fu(""+m,y.mode,v),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Uo:return v=Tl(m.type,m.key,m.props,null,y.mode,v),v.ref=ua(y,null,m),v.return=y,v;case ri:return m=Bu(m,y.mode,v),m.return=y,m;case hn:var k=m._init;return h(y,k(m._payload),v)}if(va(m)||ia(m))return m=ks(m,y.mode,v,null),m.return=y,m;Zo(y,m)}return null}function p(y,m,v,k){var S=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:l(y,m,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Uo:return v.key===S?c(y,m,v,k):null;case ri:return v.key===S?u(y,m,v,k):null;case hn:return S=v._init,p(y,m,S(v._payload),k)}if(va(v)||ia(v))return S!==null?null:d(y,m,v,k,null);Zo(y,v)}return null}function f(y,m,v,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(v)||null,l(m,y,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Uo:return y=y.get(k.key===null?v:k.key)||null,c(m,y,k,S);case ri:return y=y.get(k.key===null?v:k.key)||null,u(m,y,k,S);case hn:var C=k._init;return f(y,m,v,C(k._payload),S)}if(va(k)||ia(k))return y=y.get(v)||null,d(m,y,k,S,null);Zo(m,k)}return null}function w(y,m,v,k){for(var S=null,C=null,_=m,j=m=0,A=null;_!==null&&j<v.length;j++){_.index>j?(A=_,_=null):A=_.sibling;var R=p(y,_,v[j],k);if(R===null){_===null&&(_=A);break}t&&_&&R.alternate===null&&e(y,_),m=i(R,m,j),C===null?S=R:C.sibling=R,C=R,_=A}if(j===v.length)return r(y,_),Re&&is(y,j),S;if(_===null){for(;j<v.length;j++)_=h(y,v[j],k),_!==null&&(m=i(_,m,j),C===null?S=_:C.sibling=_,C=_);return Re&&is(y,j),S}for(_=n(y,_);j<v.length;j++)A=f(_,y,j,v[j],k),A!==null&&(t&&A.alternate!==null&&_.delete(A.key===null?j:A.key),m=i(A,m,j),C===null?S=A:C.sibling=A,C=A);return t&&_.forEach(function(z){return e(y,z)}),Re&&is(y,j),S}function g(y,m,v,k){var S=ia(v);if(typeof S!="function")throw Error(O(150));if(v=S.call(v),v==null)throw Error(O(151));for(var C=S=null,_=m,j=m=0,A=null,R=v.next();_!==null&&!R.done;j++,R=v.next()){_.index>j?(A=_,_=null):A=_.sibling;var z=p(y,_,R.value,k);if(z===null){_===null&&(_=A);break}t&&_&&z.alternate===null&&e(y,_),m=i(z,m,j),C===null?S=z:C.sibling=z,C=z,_=A}if(R.done)return r(y,_),Re&&is(y,j),S;if(_===null){for(;!R.done;j++,R=v.next())R=h(y,R.value,k),R!==null&&(m=i(R,m,j),C===null?S=R:C.sibling=R,C=R);return Re&&is(y,j),S}for(_=n(y,_);!R.done;j++,R=v.next())R=f(_,y,j,R.value,k),R!==null&&(t&&R.alternate!==null&&_.delete(R.key===null?j:R.key),m=i(R,m,j),C===null?S=R:C.sibling=R,C=R);return t&&_.forEach(function(M){return e(y,M)}),Re&&is(y,j),S}function b(y,m,v,k){if(typeof v=="object"&&v!==null&&v.type===ni&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Uo:e:{for(var S=v.key,C=m;C!==null;){if(C.key===S){if(S=v.type,S===ni){if(C.tag===7){r(y,C.sibling),m=s(C,v.props.children),m.return=y,y=m;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&Fm(S)===C.type){r(y,C.sibling),m=s(C,v.props),m.ref=ua(y,C,v),m.return=y,y=m;break e}r(y,C);break}else e(y,C);C=C.sibling}v.type===ni?(m=ks(v.props.children,y.mode,k,v.key),m.return=y,y=m):(k=Tl(v.type,v.key,v.props,null,y.mode,k),k.ref=ua(y,m,v),k.return=y,y=k)}return a(y);case ri:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){r(y,m.sibling),m=s(m,v.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else e(y,m);m=m.sibling}m=Bu(v,y.mode,k),m.return=y,y=m}return a(y);case hn:return C=v._init,b(y,m,C(v._payload),k)}if(va(v))return w(y,m,v,k);if(ia(v))return g(y,m,v,k);Zo(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(r(y,m.sibling),m=s(m,v),m.return=y,y=m):(r(y,m),m=Fu(v,y.mode,k),m.return=y,y=m),a(y)):r(y,m)}return b}var $i=Tx(!0),Ex=Tx(!1),Ql=qn(null),Yl=null,di=null,Lf=null;function Df(){Lf=di=Yl=null}function $f(t){var e=Ql.current;Ae(Ql),t._currentValue=e}function Gd(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function xi(t,e){Yl=t,Lf=di=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(kt=!0),t.firstContext=null)}function Gt(t){var e=t._currentValue;if(Lf!==t)if(t={context:t,memoizedValue:e,next:null},di===null){if(Yl===null)throw Error(O(308));di=t,Yl.dependencies={lanes:0,firstContext:t}}else di=di.next=t;return e}var ds=null;function Uf(t){ds===null?ds=[t]:ds.push(t)}function Nx(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,Uf(e)):(r.next=s.next,s.next=r),e.interleaved=r,Zr(t,n)}function Zr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var fn=!1;function Ff(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ax(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Rn(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,fe&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,Zr(t,r)}return s=n.interleaved,s===null?(e.next=e,Uf(n)):(e.next=s.next,s.next=e),n.interleaved=e,Zr(t,r)}function bl(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Cf(t,r)}}function Bm(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Xl(t,e,r,n){var s=t.updateQueue;fn=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=t.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,d=u=c=null,l=i;do{var p=l.lane,f=l.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=t,g=l;switch(p=e,f=r,g.tag){case 1:if(w=g.payload,typeof w=="function"){h=w.call(f,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,p=typeof w=="function"?w.call(f,h,p):w,p==null)break e;h=Le({},h,p);break e;case 2:fn=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,a|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,e=s.shared.interleaved,e!==null){s=e;do a|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);js|=a,t.lanes=a,t.memoizedState=h}}function zm(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(O(191,s));s.call(n)}}}var To={},Pr=qn(To),Za=qn(To),Qa=qn(To);function hs(t){if(t===To)throw Error(O(174));return t}function Bf(t,e){switch(_e(Qa,e),_e(Za,t),_e(Pr,To),t=e.nodeType,t){case 9:case 11:e=(e
vendor: 6,847 bytes, line 38
38=e.documentElement)?e.namespaceURI:Ed(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ed(e,t)}Ae(Pr),_e(Pr,e)}function Ui(){Ae(Pr),Ae(Za),Ae(Qa)}function Px(t){hs(Qa.current);var e=hs(Pr.current),r=Ed(e,t.type);e!==r&&(_e(Za,t),_e(Pr,r))}function zf(t){Za.current===t&&(Ae(Pr),Ae(Za))}var Ie=qn(0);function ec(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Iu=[];function Hf(){for(var t=0;t<Iu.length;t++)Iu[t]._workInProgressVersionPrimary=null;Iu.length=0}var kl=en.ReactCurrentDispatcher,Mu=en.ReactCurrentBatchConfig,Cs=0,Me=null,Ge=null,Ye=null,tc=!1,Na=!1,Ya=0,R_=0;function ct(){throw Error(O(321))}function Wf(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!yr(t[r],e[r]))return!1;return!0}function Vf(t,e,r,n,s,i){if(Cs=i,Me=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,kl.current=t===null||t.memoizedState===null?L_:D_,t=r(n,s),Na){i=0;do{if(Na=!1,Ya=0,25<=i)throw Error(O(301));i+=1,Ye=Ge=null,e.updateQueue=null,kl.current=$_,t=r(n,s)}while(Na)}if(kl.current=rc,e=Ge!==null&&Ge.next!==null,Cs=0,Ye=Ge=Me=null,tc=!1,e)throw Error(O(300));return t}function qf(){var t=Ya!==0;return Ya=0,t}function Sr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Me.memoizedState=Ye=t:Ye=Ye.next=t,Ye}function Jt(){if(Ge===null){var t=Me.alternate;t=t!==null?t.memoizedState:null}else t=Ge.next;var e=Ye===null?Me.memoizedState:Ye.next;if(e!==null)Ye=e,Ge=t;else{if(t===null)throw Error(O(310));Ge=t,t={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Ye===null?Me.memoizedState=Ye=t:Ye=Ye.next=t}return Ye}function Xa(t,e){return typeof e=="function"?e(t):e}function Lu(t){var e=Jt(),r=e.queue;if(r===null)throw Error(O(311));r.lastRenderedReducer=t;var n=Ge,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var l=a=null,c=null,u=i;do{var d=u.lane;if((Cs&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:t(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=n):c=c.next=h,Me.lanes|=d,js|=d}u=u.next}while(u!==null&&u!==i);c===null?a=n:c.next=l,yr(n,e.memoizedState)||(kt=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){s=t;do i=s.lane,Me.lanes|=i,js|=i,s=s.next;while(s!==t)}else s===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Du(t){var e=Jt(),r=e.queue;if(r===null)throw Error(O(311));r.lastRenderedReducer=t;var n=r.dispatch,s=r.pending,i=e.memoizedState;if(s!==null){r.pending=null;var a=s=s.next;do i=t(i,a.action),a=a.next;while(a!==s);yr(i,e.memoizedState)||(kt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function Rx(){}function Ox(t,e){var r=Me,n=Jt(),s=e(),i=!yr(n.memoizedState,s);if(i&&(n.memoizedState=s,kt=!0),n=n.queue,Kf(Lx.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||Ye!==null&&Ye.memoizedState.tag&1){if(r.flags|=2048,eo(9,Mx.bind(null,r,n,s,e),void 0,null),Xe===null)throw Error(O(349));Cs&30||Ix(r,e,s)}return s}function Ix(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Me.updateQueue,e===null?(e={lastEffect:null,stores:null},Me.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Mx(t,e,r,n){e.value=r,e.getSnapshot=n,Dx(e)&&$x(t)}function Lx(t,e,r){return r(function(){Dx(e)&&$x(t)})}function Dx(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!yr(t,r)}catch{return!0}}function $x(t){var e=Zr(t,1);e!==null&&gr(e,t,1,-1)}function Hm(t){var e=Sr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:t},e.queue=t,t=t.dispatch=M_.bind(null,Me,t),[e.memoizedState,t]}function eo(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Me.updateQueue,e===null?(e={lastEffect:null,stores:null},Me.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function Ux(){return Jt().memoizedState}function Sl(t,e,r,n){var s=Sr();Me.flags|=t,s.memoizedState=eo(1|e,r,void 0,n===void 0?null:n)}function Oc(t,e,r,n){var s=Jt();n=n===void 0?null:n;var i=void 0;if(Ge!==null){var a=Ge.memoizedState;if(i=a.destroy,n!==null&&Wf(n,a.deps)){s.memoizedState=eo(e,r,i,n);return}}Me.flags|=t,s.memoizedState=eo(1|e,r,i,n)}function Wm(t,e){return Sl(8390656,8,t,e)}function Kf(t,e){return Oc(2048,8,t,e)}function Fx(t,e){return Oc(4,2,t,e)}function Bx(t,e){return Oc(4,4,t,e)}function zx(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Hx(t,e,r){return r=r!=null?r.concat([t]):null,Oc(4,4,zx.bind(null,e,t),r)}function Gf(){}function Wx(t,e){var r=Jt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Wf(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Vx(t,e){var r=Jt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Wf(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function qx(t,e,r){return Cs&21?(yr(r,e)||(r=Qv(),Me.lanes|=r,js|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,kt=!0),t.memoizedState=r)}function O_(t,e){var r=be;be=r!==0&&4>r?r:4,t(!0);var n=Mu.transition;Mu.transition={};try{t(!1),e()}finally{be=r,Mu.transition=n}}function Kx(){return Jt().memoizedState}function I_(t,e,r){var n=In(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Gx(t))Jx(e,r);else if(r=Nx(t,e,r,n),r!==null){var s=yt();gr(r,t,n,s),Zx(r,e,n)}}function M_(t,e,r){var n=In(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Gx(t))Jx(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,l=i(a,r);if(s.hasEagerState=!0,s.eagerState=l,yr(l,a)){var c=e.interleaved;c===null?(s.next=s,Uf(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=Nx(t,e,s,n),r!==null&&(s=yt(),gr(r,t,n,s),Zx(r,e,n))}}function Gx(t){var e=t.alternate;return t===Me||e!==null&&e===Me}function Jx(t,e){Na=tc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Zx(t,e,r){if(r&4194240){var n=e.lanes;
vendor: 8,470 bytes, lines 38-40
38n&=t.pendingLanes,r|=n,e.lanes=r,Cf(t,r)}}var rc={readContext:Gt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},L_={readContext:Gt,useCallback:function(t,e){return Sr().memoizedState=[t,e===void 0?null:e],t},useContext:Gt,useEffect:Wm,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Sl(4194308,4,zx.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Sl(4194308,4,t,e)},useInsertionEffect:function(t,e){return Sl(4,2,t,e)},useMemo:function(t,e){var r=Sr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Sr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=I_.bind(null,Me,t),[n.memoizedState,t]},useRef:function(t){var e=Sr();return t={current:t},e.memoizedState=t},useState:Hm,useDebugValue:Gf,useDeferredValue:function(t){return Sr().memoizedState=t},useTransition:function(){var t=Hm(!1),e=t[0];return t=O_.bind(null,t[1]),Sr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Me,s=Sr();if(Re){if(r===void 0)throw Error(O(407));r=r()}else{if(r=e(),Xe===null)throw Error(O(349));Cs&30||Ix(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,Wm(Lx.bind(null,n,i,t),[t]),n.flags|=2048,eo(9,Mx.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Sr(),e=Xe.identifierPrefix;if(Re){var r=qr,n=Vr;r=(n&~(1<<32-mr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ya++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=R_++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},D_={readContext:Gt,useCallback:Wx,useContext:Gt,useEffect:Kf,useImperativeHandle:Hx,useInsertionEffect:Fx,useLayoutEffect:Bx,useMemo:Vx,useReducer:Lu,useRef:Ux,useState:function(){return Lu(Xa)},useDebugValue:Gf,useDeferredValue:function(t){var e=Jt();return qx(e,Ge.memoizedState,t)},useTransition:function(){var t=Lu(Xa)[0],e=Jt().memoizedState;return[t,e]},useMutableSource:Rx,useSyncExternalStore:Ox,useId:Kx,unstable_isNewReconciler:!1},$_={readContext:Gt,useCallback:Wx,useContext:Gt,useEffect:Kf,useImperativeHandle:Hx,useInsertionEffect:Fx,useLayoutEffect:Bx,useMemo:Vx,useReducer:Du,useRef:Ux,useState:function(){return Du(Xa)},useDebugValue:Gf,useDeferredValue:function(t){var e=Jt();return Ge===null?e.memoizedState=t:qx(e,Ge.memoizedState,t)},useTransition:function(){var t=Du(Xa)[0],e=Jt().memoizedState;return[t,e]},useMutableSource:Rx,useSyncExternalStore:Ox,useId:Kx,unstable_isNewReconciler:!1};function ar(t,e){if(t&&t.defaultProps){e=Le({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function Jd(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Le({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Ic={isMounted:function(t){return(t=t._reactInternals)?Is(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=yt(),s=In(t),i=Kr(n,s);i.payload=e,r!=null&&(i.callback=r),e=Rn(t,i,s),e!==null&&(gr(e,t,s,n),bl(e,t,s))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=yt(),s=In(t),i=Kr(n,s);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Rn(t,i,s),e!==null&&(gr(e,t,s,n),bl(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=yt(),n=In(t),s=Kr(r,n);s.tag=2,e!=null&&(s.callback=e),e=Rn(t,s,n),e!==null&&(gr(e,t,n,r),bl(e,t,n))}};function Vm(t,e,r,n,s,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,a):e.prototype&&e.prototype.isPureReactComponent?!qa(r,n)||!qa(s,i):!0}function Qx(t,e,r){var n=!1,s=Fn,i=e.contextType;return typeof i=="object"&&i!==null?i=Gt(i):(s=_t(e)?Ss:ft.current,n=e.contextTypes,i=(n=n!=null)?Li(t,s):Fn),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ic,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function qm(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Ic.enqueueReplaceState(e,e.state,null)}function Zd(t,e,r,n){var s=t.stateNode;s.props=r,s.state=t.memoizedState,s.refs={},Ff(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=Gt(i):(i=_t(e)?Ss:ft.current,s.context=Li(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Jd(t,e,i,r),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&Ic.enqueueReplaceState(s,s.state,null),Xl(t,r,s,n),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Fi(t,e){try{var r="",n=e;do r+=hS(n),n=n.return;while(n);var s=r}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function $u(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Qd(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var U_=typeof WeakMap=="function"?WeakMap:Map;function Yx(t,e,r){r=Kr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){sc||(sc=!0,oh=n),Qd(t,e)},r}function Xx(t,e,r){r=Kr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var s=e.value;r.payload=function(){return n(s)},r.callback=function(){Qd(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Qd(t,e),typeof n!="function"&&(On===null?On=new Set([this]):On.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Km(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new U_;var s=new Set;n.set(e,s)}else s=n.get(e),s===void 0&&(s=new Set,n.set(e,s));s.has(r)||(s.add(r),t=X_.bind(null,t,e,r),e.then(t,t))}function Gm(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Jm(t,e,r,n,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Kr(-1,1),e.tag=2,Rn(r,e,1))),r.lanes|=1),t)}var F_=en.ReactCurrentOwner,kt=!1;function mt(t,e,r,n){e.child=t===null?Ex(e,null,r,n):$i(e,t.child,r,n)}function Zm(t,e,r,n,s){r=r.render;var i=e.ref;return xi(e,s),n=Vf(t,e,r,n,i,s),r=qf(),t!==null&&!kt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Qr(t,e,s)):(Re&&r&&Of(e),e.flags|=1,mt(t,e,n,s),e.child)}function Qm(t,e,r,n,s){if(t===null){var i=r.type;return typeof i=="function"&&!rp(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,ew(t,e,i,n,s)):(t=Tl(r.type,null,n,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:qa,r(a,n)&&t.ref===e.ref)return Qr(t,e,s)}return e.flags|=1,t=Mn(i,n),t.ref=e.ref,t.return=e,e.child=t}function ew(t,e,r,n,s){if(t!==null){var i=t.memoizedProps;if(qa(i,n)&&t.ref===e.ref)if(kt=!1,e.pendingProps=n=i,(t.lanes&s)!==0)t.flags&131072&&(kt=!0);else return e.lanes=t.lanes,Qr(t,e,s)}return Yd(t,e,r,n,s)}function tw(t,e,r){var n=e.pendingProps,s=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(fi,Et),Et|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,_e(fi,Et),Et|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,_e(fi,Et),Et|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,_e(fi,Et),Et|=n;return mt(t,e,s,r),e.child}function rw(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function Yd(t,e,r,n,s){var i=_t(r)?Ss:ft.current;return i=Li(e,i),xi(e,s),r=Vf(t,e,r,n,i,s),n=qf(),t!==null&&!kt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Qr(t,e,s)):(Re&&n&&Of(e),e.flags|=1,mt(t,e,r,s),e.child)}function Ym(t,e,r,n,s){if(_t(r)){var i=!0;Gl(e)}else i=!1;if(xi(e,s),e.stateNode===null)_l(t,e),Qx(e,r,n),Zd(e,r,n,s),n=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=Gt(u):(u=_t(r)?Ss:ft.current,u=Li(e,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||c!==u)&&qm(e,a,n,u),fn=!1;var p=e.memoizedState;a.state=p,Xl(e,n,a,s),c=e.memoizedState,l!==n||p!==c||St.current||fn?(typeof d=="function"&&(Jd(e,r,d,n),c=e.memoizedState),(l=fn||Vm(e,r,l,n,p,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=u,n=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,Ax(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:ar(e.type,l),a.props=u,h=e.pendingProps,p=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Gt(c):(c=_t(r)?Ss:ft.current,c=Li(e,c));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||p!==c)&&qm(e,a,n,c),fn=!1,p=e.memoizedState,a.state=p,Xl(e,n,a,s);var w=e.memoizedState;l!==h||p!==w||St.current||fn?(typeof f=="function"&&(Jd(e,r,f,n),w=e.memoizedState),(u=fn||Vm(e,r,u,n,p,w,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,w,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,w,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=w),a.props=n,a.state=w,a.context=c,n=u):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return Xd(t,e,r,n,i,s)}function Xd(t,e,r,n,s,i){rw(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return s&&Dm(e,r,!1),Qr(t,e,i);n=e.stateNode,F_.current=e;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=$i(e,t.child,null,i),e.child=$i(e,null,l,i)):mt(t,e,l,i),e.memoizedState=n.state,s&&Dm(e,r,!0),e.child}function nw(t){var e=t.stateNode;e.pendingContext?Lm(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Lm(t,e.context,!1),Bf(t,e.containerInfo)}function Xm(t,e,r,n,s){return Di(),Mf(s),e.flags|=256,mt(t,e,r,n),e.child}var eh={dehydrated:null,treeContext:null,retryLane:0};function th(t){return{baseLanes:t,cachePool:null,transitions:null}}function sw(t,e,r){var n=e.pendingProps,s=Ie.current,i=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(s&2)!==0),l?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),_e(Ie,s&1),t===null)return Kd(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,t=n.fallback,i?(n=e.mode,i=e.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Dc(a,n,0,null),t=ks(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=th(r),e.memoizedState=eh,t):Jf(e,a));if(s=t.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return B_(t,e,a,n,l,s,r);if(i){i=n.fallback,a=e.mode,s=t.child,l=s.sibling;var c={mode:"hidden",children:n.children};return!(a&1)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Mn(s,c),n.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Mn(l,i):(i=ks(i,a,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,a=t.child.memoizedState,a=a===null?th(r):{base
vendor: 5,062 bytes, line 40
40Lanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=eh,n}return i=t.child,t=i.sibling,n=Mn(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Jf(t,e){return e=Dc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Qo(t,e,r,n){return n!==null&&Mf(n),$i(e,t.child,null,r),t=Jf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function B_(t,e,r,n,s,i,a){if(r)return e.flags&256?(e.flags&=-257,n=$u(Error(O(422))),Qo(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,s=e.mode,n=Dc({mode:"visible",children:n.children},s,0,null),i=ks(i,s,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&$i(e,t.child,null,a),e.child.memoizedState=th(a),e.memoizedState=eh,i);if(!(e.mode&1))return Qo(t,e,a,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(O(419)),n=$u(i,n,void 0),Qo(t,e,a,n)}if(l=(a&t.childLanes)!==0,kt||l){if(n=Xe,n!==null){switch(a&-a){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Zr(t,s),gr(n,t,s,-1))}return tp(),n=$u(Error(O(421))),Qo(t,e,a,n)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=eC.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,Rt=Pn(s.nextSibling),Ot=e,Re=!0,fr=null,t!==null&&(Wt[Vt++]=Vr,Wt[Vt++]=qr,Wt[Vt++]=_s,Vr=t.id,qr=t.overflow,_s=e),e=Jf(e,n.children),e.flags|=4096,e)}function eg(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Gd(t.return,e,r)}function Uu(t,e,r,n,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function iw(t,e,r){var n=e.pendingProps,s=n.revealOrder,i=n.tail;if(mt(t,e,n.children,r),n=Ie.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&eg(t,r,e);else if(t.tag===19)eg(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(_e(Ie,n),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(r=e.child,s=null;r!==null;)t=r.alternate,t!==null&&ec(t)===null&&(s=r),r=r.sibling;r=s,r===null?(s=e.child,e.child=null):(s=r.sibling,r.sibling=null),Uu(e,!1,s,r,i);break;case"backwards":for(r=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ec(t)===null){e.child=s;break}t=s.sibling,s.sibling=r,r=s,s=t}Uu(e,!0,r,null,i);break;case"together":Uu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function _l(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Qr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),js|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(O(153));if(e.child!==null){for(t=e.child,r=Mn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Mn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function z_(t,e,r){switch(e.tag){case 3:nw(e),Di();break;case 5:Px(e);break;case 1:_t(e.type)&&Gl(e);break;case 4:Bf(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,s=e.memoizedProps.value;_e(Ql,n._currentValue),n._currentValue=s;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(_e(Ie,Ie.current&1),e.flags|=128,null):r&e.child.childLanes?sw(t,e,r):(_e(Ie,Ie.current&1),t=Qr(t,e,r),t!==null?t.sibling:null);_e(Ie,Ie.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return iw(t,e,r);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),_e(Ie,Ie.current),n)break;return null;case 22:case 23:return e.lanes=0,tw(t,e,r)}return Qr(t,e,r)}var aw,rh,ow,lw;aw=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};rh=function(){};ow=function(t,e,r,n){var s=t.memoizedProps;if(s!==n){t=e.stateNode,hs(Pr.current);var i=null;switch(r){case"input":s=_d(t,s),n=_d(t,n),i=[];break;case"select":s=Le({},s,{value:void 0}),n=Le({},n,{value:void 0}),i=[];break;case"textarea":s=Td(t,s),n=Td(t,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=ql)}
vendor: 5,466 bytes, line 40
40Nd(r,n);var a;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ua.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ua.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ne("scroll",t),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};lw=function(t,e,r,n){r!==n&&(e.flags|=4)};function da(t,e){if(!Re)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function H_(t,e,r){var n=e.pendingProps;switch(If(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(e),null;case 1:return _t(e.type)&&Kl(),ut(e),null;case 3:return n=e.stateNode,Ui(),Ae(St),Ae(ft),Hf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Jo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,fr!==null&&(uh(fr),fr=null))),rh(t,e),ut(e),null;case 5:zf(e);var s=hs(Qa.current);if(r=e.type,t!==null&&e.stateNode!=null)ow(t,e,r,n,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(O(166));return ut(e),null}if(t=hs(Pr.current),Jo(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Tr]=e,n[Ja]=i,t=(e.mode&1)!==0,r){case"dialog":Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":case"embed":Ne("load",n);break;case"video":case"audio":for(s=0;s<wa.length;s++)Ne(wa[s],n);break;case"source":Ne("error",n);break;case"img":case"image":case"link":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"input":cm(n,i),Ne("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Ne("invalid",n);break;case"textarea":dm(n,i),Ne("invalid",n)}Nd(r,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&Go(n.textContent,l,t),s=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Go(n.textContent,l,t),s=["children",""+l]):Ua.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ne("scroll",n)}switch(r){case"input":Fo(n),um(n,i,!0);break;case"textarea":Fo(n),hm(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=ql)}n=s,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Lv(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[Tr]=e,t[Ja]=n,aw(t,e,!1,!1),e.stateNode=t;e:{switch(a=Ad(r,n),r){case"dialog":Ne("cancel",t),Ne("close",t),s=n;break;case"iframe":case"object":case"embed":Ne("load",t),s=n;break;case"video":case"audio":for(s=0;s<wa.length;s++)Ne(wa[s],t);s=n;break;case"source":Ne("error",t),s=n;break;case"img":case"image":case"link":Ne("error",t),Ne("load",t),s=n;break;case"details":Ne("toggle",t),s=n;break;case"input":cm(t,n),s=_d(t,n),Ne("invalid",t);break;case"option":s=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},s=Le({},n,{value:void 0}),Ne("invalid",t);break;case"textarea":dm(t,n),s=Td(t,n),Ne("invalid",t);break;default:s=n}Nd(r,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?Uv(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Dv(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Fa(t,c):typeof c=="number"&&Fa(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ua.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Ne("scroll",t):c!=null&&xf(t,i,c,a))}switch(r){case"input":Fo(t),um(t,n,!1);break;case"textarea":Fo(t),hm(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Un(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?mi(t,!!n.multiple,i,!1):n.defaultValue!=null&&mi(t,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=ql)}
vendor: 27,806 bytes, line 40
40switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return ut(e),null;case 6:if(t&&e.stateNode!=null)lw(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(O(166));if(r=hs(Qa.current),hs(Pr.current),Jo(e)){if(n=e.stateNode,r=e.memoizedProps,n[Tr]=e,(i=n.nodeValue!==r)&&(t=Ot,t!==null))switch(t.tag){case 3:Go(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Go(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Tr]=e,e.stateNode=n}return ut(e),null;case 13:if(Ae(Ie),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Re&&Rt!==null&&e.mode&1&&!(e.flags&128))jx(),Di(),e.flags|=98560,i=!1;else if(i=Jo(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(O(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Tr]=e}else Di(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ut(e),i=!1}else fr!==null&&(uh(fr),fr=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Ie.current&1?Ze===0&&(Ze=3):tp())),e.updateQueue!==null&&(e.flags|=4),ut(e),null);case 4:return Ui(),rh(t,e),t===null&&Ka(e.stateNode.containerInfo),ut(e),null;case 10:return $f(e.type._context),ut(e),null;case 17:return _t(e.type)&&Kl(),ut(e),null;case 19:if(Ae(Ie),i=e.memoizedState,i===null)return ut(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)da(i,!1);else{if(Ze!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=ec(t),a!==null){for(e.flags|=128,da(i,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return _e(Ie,Ie.current&1|2),e.child}t=t.sibling}i.tail!==null&&He()>Bi&&(e.flags|=128,n=!0,da(i,!1),e.lanes=4194304)}else{if(!n)if(t=ec(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),da(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Re)return ut(e),null}else 2*He()-i.renderingStartTime>Bi&&r!==1073741824&&(e.flags|=128,n=!0,da(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=He(),e.sibling=null,r=Ie.current,_e(Ie,n?r&1|2:r&1),e):(ut(e),null);case 22:case 23:return ep(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Et&1073741824&&(ut(e),e.subtreeFlags&6&&(e.flags|=8192)):ut(e),null;case 24:return null;case 25:return null}throw Error(O(156,e.tag))}function W_(t,e){switch(If(e),e.tag){case 1:return _t(e.type)&&Kl(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ui(),Ae(St),Ae(ft),Hf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return zf(e),null;case 13:if(Ae(Ie),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(O(340));Di()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ae(Ie),null;case 4:return Ui(),null;case 10:return $f(e.type._context),null;case 22:case 23:return ep(),null;case 24:return null;default:return null}}var Yo=!1,ht=!1,V_=typeof WeakSet=="function"?WeakSet:Set,F=null;function hi(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ze(t,e,n)}else r.current=null}function nh(t,e,r){try{r()}catch(n){ze(t,e,n)}}var tg=!1;function q_(t,e){if(Fd=Hl,t=fx(),Rf(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=t,p=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(l=a+s),h!==i||n!==0&&h.nodeType!==3||(c=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===t)break t;if(p===r&&++u===s&&(l=a),p===i&&++d===n&&(c=a),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bd={focusedElem:t,selectionRange:r},Hl=!1,F=e;F!==null;)if(e=F,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,F=t;else for(;F!==null;){e=F;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,b=w.memoizedState,y=e.stateNode,m=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:ar(e.type,g),b);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(k){ze(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,F=t;break}F=e.return}return w=tg,tg=!1,w}function Aa(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&nh(e,r,i)}s=s.next}while(s!==n)}}function Mc(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function sh(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function cw(t){var e=t.alternate;e!==null&&(t.alternate=null,cw(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Tr],delete e[Ja],delete e[Wd],delete e[E_],delete e[N_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function uw(t){return t.tag===5||t.tag===3||t.tag===4}function rg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||uw(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ih(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=ql));else if(n!==4&&(t=t.child,t!==null))for(ih(t,e,r),t=t.sibling;t!==null;)ih(t,e,r),t=t.sibling}function ah(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(ah(t,e,r),t=t.sibling;t!==null;)ah(t,e,r),t=t.sibling}var nt=null,dr=!1;function on(t,e,r){for(r=r.child;r!==null;)dw(t,e,r),r=r.sibling}function dw(t,e,r){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Tc,r)}catch{}switch(r.tag){case 5:ht||hi(r,e);case 6:var n=nt,s=dr;nt=null,on(t,e,r),nt=n,dr=s,nt!==null&&(dr?(t=nt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):nt.removeChild(r.stateNode));break;case 18:nt!==null&&(dr?(t=nt,r=r.stateNode,t.nodeType===8?Ru(t.parentNode,r):t.nodeType===1&&Ru(t,r),Wa(t)):Ru(nt,r.stateNode));break;case 4:n=nt,s=dr,nt=r.stateNode.containerInfo,dr=!0,on(t,e,r),nt=n,dr=s;break;case 0:case 11:case 14:case 15:if(!ht&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&nh(r,e,a),s=s.next}while(s!==n)}on(t,e,r);break;case 1:if(!ht&&(hi(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ze(r,e,l)}on(t,e,r);break;case 21:on(t,e,r);break;case 22:r.mode&1?(ht=(n=ht)||r.memoizedState!==null,on(t,e,r),ht=n):on(t,e,r);break;default:on(t,e,r)}}function ng(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new V_),e.forEach(function(n){var s=tC.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function rr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:nt=l.stateNode,dr=!1;break e;case 3:nt=l.stateNode.containerInfo,dr=!0;break e;case 4:nt=l.stateNode.containerInfo,dr=!0;break e}l=l.return}if(nt===null)throw Error(O(160));dw(i,a,s),nt=null,dr=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){ze(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)hw(e,t),e=e.sibling}function hw(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(rr(e,t),kr(t),n&4){try{Aa(3,t,t.return),Mc(3,t)}catch(g){ze(t,t.return,g)}try{Aa(5,t,t.return)}catch(g){ze(t,t.return,g)}}break;case 1:rr(e,t),kr(t),n&512&&r!==null&&hi(r,r.return);break;case 5:if(rr(e,t),kr(t),n&512&&r!==null&&hi(r,r.return),t.flags&32){var s=t.stateNode;try{Fa(s,"")}catch(g){ze(t,t.return,g)}}if(n&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,a=r!==null?r.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Iv(s,i),Ad(l,a);var u=Ad(l,i);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?Uv(s,h):d==="dangerouslySetInnerHTML"?Dv(s,h):d==="children"?Fa(s,h):xf(s,d,h,u)}switch(l){case"input":Cd(s,i);break;case"textarea":Mv(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?mi(s,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?mi(s,!!i.multiple,i.defaultValue,!0):mi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ja]=i}catch(g){ze(t,t.return,g)}}break;case 6:if(rr(e,t),kr(t),n&4){if(t.stateNode===null)throw Error(O(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(g){ze(t,t.return,g)}}break;case 3:if(rr(e,t),kr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Wa(e.containerInfo)}catch(g){ze(t,t.return,g)}break;case 4:rr(e,t),kr(t);break;case 13:rr(e,t),kr(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Yf=He())),n&4&&ng(t);break;case 22:if(d=r!==null&&r.memoizedState!==null,t.mode&1?(ht=(u=ht)||d,rr(e,t),ht=u):rr(e,t),kr(t),n&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(F=t,d=t.child;d!==null;){for(h=F=d;F!==null;){switch(p=F,f=p.child,p.tag){case 0:case 11:case 14:case 15:Aa(4,p,p.return);break;case 1:hi(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){n=p,r=p.return;try{e=n,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(g){ze(n,r,g)}}break;case 5:hi(p,p.return);break;case 22:if(p.memoizedState!==null){ig(h);continue}}f!==null?(f.return=p,F=f):ig(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=$v("display",a))}catch(g){ze(t,t.return,g)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){ze(t,t.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:rr(e,t),kr(t),n&4&&ng(t);break;case 21:break;default:rr(e,t),kr(t)}}function kr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(uw(r)){var n=r;break e}r=r.return}throw Error(O(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Fa(s,""),n.flags&=-33);var i=rg(t);ah(t,i,s);break;case 3:case 4:var a=n.stateNode.containerInfo,l=rg(t);ih(t,l,a);break;default:throw Error(O(161))}}catch(c){ze(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function K_(t,e,r){F=t,fw(t)}function fw(t,e,r){for(var n=(t.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&n){var a=s.memoizedState!==null||Yo;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||ht;l=Yo;var u=ht;if(Yo=a,(ht=c)&&!u)for(F=s;F!==null;)a=F,c=a.child,a.tag===22&&a.memoizedState!==null?ag(s):c!==null?(c.return=a,F=c):ag(s);for(;i!==null;)F=i,fw(i),i=i.sibling;F=s,Yo=l,ht=u}sg(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):sg(t)}}function sg(t){for(;F!==null;){var e=F;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ht||Mc(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!ht)if(r===null)n.componentDidMount();else{var s=e.elementType===e.type?r.memoizedProps:ar(e.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&zm(e,i,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}zm(e,a,r)}break;case 5:var l=e.stateNode;if(r===null&&e.flags&4){r=l;var c=e.memoizedProps;switch(e.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(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Wa(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}ht||e.flags&512&&sh(e)}catch(p){ze(e,e.return,p)}}if(e===t){F=null;break}if(r=e.sibling,r!==null){r.return=e.return,F=r;break}F=e.return}}function ig(t){for(;F!==null;){var e=F;if(e===t){F=null;break}var r=e.sibling;if(r!==null){r.return=e.return,F=r;break}F=e.return}}function ag(t){for(;F!==null;){var e=F;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Mc(4,e)}catch(c){ze(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var s=e.return;try{n.componentDidMount()}catch(c){ze(e,s,c)}}var i=e.return;try{sh(e)}catch(c){ze(e,i,c)}break;case 5:var a=e.return;try{sh(e)}catch(c){ze(e,a,c)}}}catch(c){ze(e,e.return,c)}if(e===t){F=null;break}var l=e.sibling;if(l!==null){l.return=e.return,F=l;break}F=e.return}}var G_=Math.ceil,nc=en.ReactCurrentDispatcher,Zf=en.ReactCurrentOwner,Kt=en.ReactCurrentBatchConfig,fe=0,Xe=null,Ve=null,st=0,Et=0,fi=qn(0),Ze=0,to=null,js=0,Lc=0,Qf=0,Pa=null,bt=null,Yf=0,Bi=1/0,Fr=null,sc=!1,oh=null,On=null,Xo=!1,Cn=null,ic=0,Ra=0,lh=null,Cl=-1,jl=0;function yt(){return fe&6?He():Cl!==-1?Cl:Cl=He()}function In(t){return t.mode&1?fe&2&&st!==0?st&-st:P_.transition!==null?(jl===0&&(jl=Qv()),jl):(t=be,t!==0||(t=window.event,t=t===void 0?16:sx(t.type)),t):1}function gr(t,e,r,n){if(50<Ra)throw Ra=0,lh=null,Error(O(185));_o(t,r,n),(!(fe&2)||t!==Xe)&&(t===Xe&&(!(fe&2)&&(Lc|=r),Ze===4&&yn(t,st)),Ct(t,n),r===1&&fe===0&&!(e.mode&1)&&(Bi=He()+500,Rc&&Kn()))}function Ct(t,e){var r=t.callbackNode;PS(t,e);var n=zl(t,t===Xe?st:0);if(n===0)r!==null&&mm(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&mm(r),e===1)t.tag===0?A_(og.bind(null,t)):Sx(og.bind(null,t)),j_(function(){!(fe&6)&&Kn()}),r=null;else{switch(Yv(n)){case 1:r=_f;break;case 4:r=Jv;break;case 16:r=Bl;break;case 536870912:r=Zv;break;default:r=Bl}r=bw(r,pw.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function pw(t,e){if(Cl=-1,jl=0,fe&6)throw Error(O(327));var r=t.callbackNode;if(wi()&&t.callbackNode!==r)return null;var n=zl(t,t===Xe?st:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=ac(t,n);else{e=n;var s=fe;fe|=2;var i=gw();(Xe!==t||st!==e)&&(Fr=null,Bi=He()+500,bs(t,e));do try{Q_();break}catch(l){mw(t,l)}while(!0);Df(),nc.current=i,fe=s,Ve!==null?e=0:(Xe=null,st=0,e=Ze)}if(e!==0){if(e===2&&(s=Md(t),s!==0&&(n=s,e=ch(t,s))),e===1)throw r=to,bs(t,0),yn(t,n),Ct(t,He()),r;if(e===6)yn(t,n);else{if(s=t.current.alternate,!(n&30)&&!J_(s)&&(e=ac(t,n),e===2&&(i=Md(t),i!==0&&(n=i,e=ch(t,i))),e===1))throw r=to,bs(t,0),yn(t,n),Ct(t,He()),r;switch(t.finishedWork=s,t.finishedLanes=n,e){case 0:case 1:throw Error(O(345));case 2:as(t,bt,Fr);break;case 3:if(yn(t,n),(n&130023424)===n&&(e=Yf+500-He(),10<e)){if(zl(t,0)!==0)break;if(s=t.suspendedLanes,(s&n)!==n){yt(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Hd(as.bind(null,t,bt,Fr),e);break}as(t,bt,Fr);break;case 4:if(yn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,s=-1;0<n;){var a=31-mr(n);i=1<<a,a=e[a],a>s&&(s=a),n&=~i}if(n=s,n=He()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*G_(n/1960))-n,10<n){t.timeoutHandle=Hd(as.bind(null,t,bt,Fr),n);break}as(t,bt,Fr);break;case 5:as(t,bt,Fr);break;default:throw Error(O(329))}}}return Ct(t,He()),t.callbackNode===r?pw.bind(null,t):null}function ch(t,e){var r=Pa;return t.current.memoizedState.isDehydrated&&(bs(t,e).flags|=256),t=ac(t,e),t!==2&&(e=bt,bt=r,e!==null&&uh(e)),t}function uh(t){bt===null?bt=t:bt.push.apply(bt,t)}function J_(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!yr(i(),s))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e){for(e&=~Qf,e&=~Lc,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-mr(e),n=1<<r;t[r]=-1,e&=~n}}function og(t){if(fe&6)throw Error(O(327));wi();var e=zl(t,0);if(!(e&1))return Ct(t,He()),null;var r=ac(t,e);if(t.tag!==0&&r===2){var n=Md(t);n!==0&&(e=n,r=ch(t,n))}if(r===1)throw r=to,bs(t,0),yn(t,e),Ct(t,He()),r;if(r===6)throw Error(O(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,as(t,bt,Fr),Ct(t,He()),null}function Xf(t,e){var r=fe;fe|=1;try{return t(e)}finally{fe=r,fe===0&&(Bi=He()+500,Rc&&Kn())}}function Ts(t){Cn!==null&&Cn.tag===0&&!(fe&6)&&wi();var e=fe;fe|=1;var r=Kt.transition,n=be;try{if(Kt.transition=null,be=1,t)return t()}finally{be=n,Kt.transition=r,fe=e,!(fe&6)&&Kn()}}function ep(){Et=fi.current,Ae(fi)}function bs(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,C_(r)),Ve!==null)for(r=Ve.return;r!==null;){var n=r;switch(If(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Kl();break;case 3:Ui(),Ae(St),Ae(ft),Hf();break;case 5:zf(n);break;case 4:Ui();break;case 13:Ae(Ie);break;case 19:Ae(Ie);break;case 10:$f(n.type._context);break;case 22:case 23:ep()}r=r.return}if(Xe=t,Ve=t=Mn(t.current,null),st=Et=e,Ze=0,to=null,Qf=Lc=js=0,bt=Pa=null,ds!==null){for(e=0;e<ds.length;e++)if(r=ds[e],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=s,n.next=a}r.pending=n}ds=null}return t}function mw(t,e){do{var r=Ve;try{if(Df(),kl.current=rc,tc){for(var n=Me.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}tc=!1}if(Cs=0,Ye=Ge=Me=null,Na=!1,Ya=0,Zf.current=null,r===null||r.return===null){Ze=1,to=e,Ve=null;break}e:{var i=t,a=r.return,l=r,c=e;if(e=st,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Gm(a);if(f!==null){f.flags&=-257,Jm(f,a,l,i,e),f.mode&1&&Km(i,u,e),e=f,c=u;var w=e.updateQueue;if(w===null){var g=new Set;g.add(c),e.updateQueue=g}else w.add(c);break e}else{if(!(e&1)){Km(i,u,e),tp();break e}c=Error(O(426))}}else if(Re&&l.mode&1){var b=Gm(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Jm(b,a,l,i,e),Mf(Fi(c,l));break e}}i=c=Fi(c,l),Ze!==4&&(Ze=2),Pa===null?Pa=[i]:Pa.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var y=Yx(i,c,e);Bm(i,y);break e;case 1:l=c;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(On===null||!On.has(v)))){i.flags|=65536,e&=-e,i.lanes|=e;var k=Xx(i,l,e);Bm(i,k);break e}}i=i.return}while(i!==null)}vw(r)}catch(S){e=S,Ve===r&&r!==null&&(Ve=r=r.return);continue}break}while(!0)}function gw(){var t=nc.current;return nc.current=rc,t===null?rc:t}function tp(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),Xe===null||!(js&268435455)&&!(Lc&268435455)||yn(Xe,st)}function ac(t,e){var r=fe;fe|=2;var n=gw();(Xe!==t||st!==e)&&(Fr=null,bs(t,e));do try{Z_();break}catch(s){mw(t,s)}while(!0);if(Df(),fe=r,nc.current=n,Ve!==null)throw Error(O(261));return Xe=null,st=0,Ze}function Z_(){for(;Ve!==null;)yw(Ve)}function Q_(){for(;Ve!==null&&!kS();)yw(Ve)}function yw(t){var e=ww(t.alternate,t,Et);t.memoizedProps=t.pendingProps,e===null?vw(t):Ve=e,Zf.current=null}function vw(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=W_(r,e),r!==null){r.flags&=32767,Ve=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,Ve=null;return}}else if(r=H_(r,e,Et),r!==null){Ve=r;return}if(e=e.sibling,e!==null){Ve=e;return}Ve=e=t}while(e!==null);Ze===0&&(Ze=5)}function as(t,e,r){var n=be,s=Kt.transition;try{Kt.transition=null,be=1,Y_(t,e,r,n)}finally{Kt.transition=s,be=n}return null}function Y_(t,e,r,n){do wi();while(Cn!==null);if(fe&6)throw Error(O(327));r=t.finishedWork;var s=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(O(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(RS(t,i),t===Xe&&(Ve=Xe=null,st=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xo||(Xo=!0,bw(Bl,function(){return wi(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Kt.transition,Kt.transition=null;var a=be;be=1;var l=fe;fe|=4,Zf.current=null,q_(t,r),hw(r,t),v_(Bd),Hl=!!Fd,Bd=Fd=null,t.current=r,K_(r),SS(),fe=l,be=a,Kt.transition=i}else t.current=r;if(Xo&&(Xo=!1,Cn=t,ic=s),i=t.pendingLanes,i===0&&(On=null),jS(r.stateNode),Ct(t,He()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)s=e[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(sc)throw sc=!1,t=oh,oh=null,t;return ic&1&&t.tag!==0&&wi(),i=t.pendingLanes,i&1?t===lh?Ra++:(Ra=0,lh=t):Ra=0,Kn(),null}function wi(){if(Cn!==null){var t=Yv(ic),e=Kt.transition,r=be;try{if(Kt.transition=null,be=16>t?16:t,Cn===null)var n=!1;else{if(t=Cn,Cn=null,ic=0,fe&6)throw Error(O(331));var s=fe;for(fe|=4,F=t.current;F!==null;){var i=F,a=i.child;if(F.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Aa(8,d,i)}var h=d.child;if(h!==null)h.return=d,F=h;else for(;F!==null;){d=F;var p=d.sibling,f=d.return;if(cw(d),d===u){F=null;break}if(p!==null){p.return=f,F=p;break}F=f}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}F=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,F=a;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Aa(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,F=y;break e}F=i.return}}var m=t.current;for(F=m;F!==null;){a=F;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,F=v;else e:for(a=m;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Mc(9,l)}}catch(S){ze(l,l.return,S)}if(l===a){F=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,F=k;break e}F=l.return}}if(fe=s,Kn(),Ar&&typeof Ar.onPostCommitFiberRoot=="function")try{Ar.onPostCommitFiberRoot(Tc,t)}catch{}n=!0}return n}finally{be=r,Kt.transition=e}}return!1}function lg(t,e,r){e=Fi(r,e),e=Yx(t,e,1),t=Rn(t,e,1),e=yt(),t!==null&&(_o(t,1,e),Ct(t,e))}function ze(t,e,r){if(t.tag===3)lg(t,t,r);else for(;e!==null;){if(e.tag===3){lg(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(On===null||!On.has(n))){t=Fi(r,t),t=Xx(e,t,1),e=Rn(e,t,1),t=yt(),e!==null&&(_o(e,1,t),Ct(e,t));break}}e=e.return}}function X_(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=yt(),t.pingedLanes|=t.suspendedLanes&r,Xe===t&&(st&r)===r&&(Ze===4||Ze===3&&(st&130023424)===st&&500>He()-Yf?bs(t,0):Qf|=r),Ct(t,e)}function xw(t,e){e===0&&(t.mode&1?(e=Ho,Ho<<=1,!(Ho&130023424)&&(Ho=4194304)):e=1);var r=yt();t=Zr(t,e),t!==null&&(_o(t,e,r),Ct(t,r))}function eC(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),xw(t,r)}function tC(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(O(314))}n!==null&&n.delete(e),xw(t,r)}var ww;ww=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||St.current)kt=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return kt=!1,z_(t,e,r);kt=!!(t.flags&131072)}else kt=!1,Re&&e.flags&1048576&&_x(e,Zl,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;_l(t,e),t=e.pendingProps;var s=Li(e,ft.current);xi(e,r),s=Vf(null,e,n,t,s,r);var i=qf();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,_t(n)?(i=!0,Gl(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ff(e),s.updater=Ic,e.stateNode=s,s._reactInternals=e,Zd(e,n,t,r),e=Xd(null,e,n,!0,i,r)):(e.tag=0,Re&&i&&Of(e),mt(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(_l(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=nC(n),t=ar(n,t),s){case 0:e=Yd(null,e,n,t,r);break e;case 1:e=Ym(null,e,n,t,r);break e;case 11:e=Zm(null,e,n,t,r);break e;case 14:e=Qm(null,e,n,ar(n.type,t),r);break e}throw Error(O(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ar(n,s),Yd(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ar(n,s),Ym(t,e,n,s,r);case 3:e:{if(nw(e),t===null)throw Error(O(387));n=e.pendingProps,i=e.memoizedState,s=i.element,Ax(t,e),Xl(e,n,null,r);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Fi(Error(O(423)),e),e=Xm(t,e,n,r,s);break e}else if(n!==s){s=Fi(Error(O(424)),e),e=Xm(t,e,n,r,s);break e}else for(Rt=Pn(e.stateNode.containerInfo.firstChild),Ot=e,Re=!0,fr=null,r=Ex(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Di(),n===s){e=Qr(t,e,r);break e}mt(t,e,n,r)}e=e.child}return e;case 5:return Px(e),t===null&&Kd(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,a=s.children,zd(n,s)?a=null:i!==null&&zd(n,i)&&(e.flags|=32),rw(t,e),mt(t,e,a,r),e.child;case 6:return t===null&&Kd(e),null;case 13:return sw(t,e,r);case 4:return Bf(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=$i(e,null,n,r):mt(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ar(n,s),Zm(t,e,n,s,r);case 7:return mt(t,e,e.pendingProps,r),e.child;case 8:return mt(t,e,e.pendingProps.children,r),e.child;case 12:return mt(t,e,e.pendingProps.children,r),e.child;
vendor: 4,549 bytes, line 40
40case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,a=s.value,_e(Ql,n._currentValue),n._currentValue=a,i!==null)if(yr(i.value,a)){if(i.children===s.children&&!St.current){e=Qr(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Kr(-1,r&-r),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Gd(i.return,r,e),l.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(O(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Gd(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}mt(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,xi(e,r),s=Gt(s),n=n(s),e.flags|=1,mt(t,e,n,r),e.child;case 14:return n=e.type,s=ar(n,e.pendingProps),s=ar(n.type,s),Qm(t,e,n,s,r);case 15:return ew(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ar(n,s),_l(t,e),e.tag=1,_t(n)?(t=!0,Gl(e)):t=!1,xi(e,r),Qx(e,n,s),Zd(e,n,s,r),Xd(null,e,n,!0,t,r);case 19:return iw(t,e,r);case 22:return tw(t,e,r)}throw Error(O(156,e.tag))};function bw(t,e){return Gv(t,e)}function rC(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 qt(t,e,r,n){return new rC(t,e,r,n)}function rp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nC(t){if(typeof t=="function")return rp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===bf)return 11;if(t===kf)return 14}return 2}function Mn(t,e){var r=t.alternate;return r===null?(r=qt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Tl(t,e,r,n,s,i){var a=2;if(n=t,typeof t=="function")rp(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case ni:return ks(r.children,s,i,e);case wf:a=8,s|=8;break;case wd:return t=qt(12,r,e,s|2),t.elementType=wd,t.lanes=i,t;case bd:return t=qt(13,r,e,s),t.elementType=bd,t.lanes=i,t;case kd:return t=qt(19,r,e,s),t.elementType=kd,t.lanes=i,t;case Pv:return Dc(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Nv:a=10;break e;case Av:a=9;break e;case bf:a=11;break e;case kf:a=14;break e;case hn:a=16,n=null;break e}throw Error(O(130,t==null?t:typeof t,""))}return e=qt(a,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function ks(t,e,r,n){return t=qt(7,t,n,e),t.lanes=r,t}function Dc(t,e,r,n){return t=qt(22,t,n,e),t.elementType=Pv,t.lanes=r,t.stateNode={isHidden:!1},t}function Fu(t,e,r){return t=qt(6,t,null,e),t.lanes=r,t}function Bu(t,e,r){return e=qt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function sC(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bu(0),this.expirationTimes=bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function np(t,e,r,n,s,i,a,l,c){return t=new sC(t,e,r,l,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=qt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ff(i),t}function iC(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,591 bytes, line 40
40return{$$typeof:ri,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function kw(t){if(!t)return Fn;t=t._reactInternals;e:{if(Is(t)!==t||t.tag!==1)throw Error(O(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(_t(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(O(171))}if(t.tag===1){var r=t.type;if(_t(r))return kx(t,r,e)}return e}function Sw(t,e,r,n,s,i,a,l,c){return t=np(r,n,!0,t,s,i,a,l,c),t.context=kw(null),r=t.current,n=yt(),s=In(r),i=Kr(n,s),i.callback=e??null,Rn(r,i,s),t.current.lanes=s,_o(t,s,n),Ct(t,n),t}function $c(t,e,r,n){var s=e.current,i=yt(),a=In(s);return r=kw(r),e.context===null?e.context=r:e.pendingContext=r,e=Kr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Rn(s,e,a),t!==null&&(gr(t,s,a,i),bl(t,s,a)),a}function oc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function cg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function sp(t,e){cg(t,e),(t=t.alternate)&&cg(t,e)}function aC(){return null}var _w=typeof reportError=="function"?reportError:function(t){console.error(t)};function ip(t){this._internalRoot=t}Uc.prototype.render=ip.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(O(409));$c(t,e,null,null)};Uc.prototype.unmount=ip.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ts(function(){$c(null,t,null,null)}),e[Jr]=null}};function Uc(t){this._internalRoot=t}Uc.prototype.unstable_scheduleHydration=function(t){if(t){var e=tx();t={blockedOn:null,target:t,priority:e};for(var r=0;r<gn.length&&e!==0&&e<gn[r].priority;r++);gn.splice(r,0,t),r===0&&nx(t)}};function ap(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Fc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function ug(){}function oC(t,e,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var u=oc(a);i.call(u)}}var a=Sw(e,n,t,0,null,!1,!1,"",ug);return t._reactRootContainer=a,t[Jr]=a.current,Ka(t.nodeType===8?t.parentNode:t),Ts(),a}for(;s=t.lastChild;)t.removeChild(s);if(typeof n=="function"){var l=n;n=function(){var u=oc(c);l.call(u)}}var c=np(t,0,!1,null,null,!1,!1,"",ug);return t._reactRootContainer=c,t[Jr]=c.current,Ka(t.nodeType===8?t.parentNode:t),Ts(function(){$c(e,c,r,n)}),c}function Bc(t,e,r,n,s){var i=r._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=oc(a);l.call(c)}}$c(e,a,t,s)}else a=oC(r,e,t,s,n);return oc(a)}Xv=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=xa(e.pendingLanes);r!==0&&(Cf(e,r|1),Ct(e,He()),!(fe&6)&&(Bi=He()+500,Kn()))}break;case 13:Ts(function(){var n=Zr(t,1);if(n!==null){var s=yt();gr(n,t,1,s)}}),sp(t,1)}};jf=function(t){if(t.tag===13){var e=Zr(t,134217728);if(e!==null){var r=yt();gr(e,t,134217728,r)}sp(t,134217728)}};ex=function(t){if(t.tag===13){var e=In(t),r=Zr(t,e);if(r!==null){var n=yt();gr(r,t,e,n)}sp(t,e)}};tx=function(){return be};rx=function(t,e){var r=be;try{return be=t,e()}finally{be=r}};Rd=function(t,e,r){switch(e){case"input":if(Cd(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var s=Pc(n);if(!s)throw Error(O(90));Ov(n),Cd(n,s)}}}break;case"textarea":Mv(t,r);break;case"select":e=r.value,e!=null&&mi(t,!!r.multiple,e,!1)}};zv=Xf;Hv=Ts;var lC={usingClientEntryPoint:!1,Events:[jo,oi,Pc,Fv,Bv,Xf]},ha={findFiberByHostInstance:us,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cC={bundleType:ha.bundleType,version:ha.version,rendererPackageName:ha.rendererPackageName,rendererConfig:ha.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:en.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=qv(t),t===null?null:t.stateNode},findFiberByHostInstance:ha.findFiberByHostInstance||aC,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 el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{Tc=el.inject(cC),Ar=el}catch{}}Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lC;Dt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ap(e))throw Error(O(200));return iC(t,e,null,r)};Dt.createRoot=function(t,e){if(!ap(t))throw Error(O(299));var r=!1,n="",s=_w;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=np(t,1,!1,null,null,r,!1,n,s),t[Jr]=e.current,Ka(t.nodeType===8?t.parentNode:t),new ip(e)};Dt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(O(188)):(t=Object.keys(t).join(","),Error(O(268,t)));return t=qv(e),t=t===null?null:t.stateNode,t};Dt.flushSync=function(t){return Ts(t)};Dt.hydrate=function(t,e,r){if(!Fc(e))throw Error(O(200));return Bc(null,t,e,!0,r)};Dt.hydrateRoot=function(t,e,r){if(!ap(t))throw Error(O(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",a=_w;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=Sw(e,null,t,1,r??null,s,!1,i,a),t[Jr]=e.current,Ka(t),n)for(t=0;t<n.length;t++)r=n[t],s=r._getVersion,s=s(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,s]:e.mutableSourceEagerHydrationData.push(r,s);return new Uc(e)};Dt.render=function(t,e,r){if(!Fc(e))throw Error(O(200));return Bc(null,t,e,!1,r)};Dt.unmountComponentAtNode=function(t){if(!Fc(t))throw Error(O(40));return t._reactRootContainer?(Ts(function(){Bc(null,null,t,!1,function(){t._reactRootContainer=null,t[Jr]=null})}),!0):!1};Dt.unstable_batchedUpdates=Xf;Dt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Fc(r))throw Error(O(200));if(t==null||t._reactInternals===void 0)throw Error(O(38));return Bc(t,e,r,!1,n)};Dt.version="18.3.1-next-f1338f8080-20240426";function Cw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cw)}catch(t){console.error(t)}}Cw(),Cv.exports=Dt;var Ms=Cv.exports;const jw=ko(Ms);var Tw,dg=Ms;Tw=dg.createRoot,dg.hydrateRoot;var uC=typeof Element<"u",dC=typeof Map=="function",hC=typeof Set=="function",fC=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function El(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,s;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!El(t[n],e[n]))return!1;return!0}var i;if(dC&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!El(n.value[1],e.get(n.value[0])))return!1;return!0}if(hC&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(fC&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;if(uC&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&t.$$typeof)&&!El(t[s[n]],e[s[n]]))return!1;return!0}return t!==t&&e!==e}var pC=function(e,r){try{return El(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const mC=ko(pC);var gC=function(t,e,r,n,s,i,a,l){if(!t){var c;if(e===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,s,i,a,l],d=0;c=new Error(e.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},yC=gC;const hg=ko(yC);var vC=function(e,r,n,s){var i=n?n.call(s,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;
40if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),l=Object.keys(r);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(r),u=0;u<a.length;u++){var d=a[u];if(!c(d))return!1;var h=e[d],p=r[d];if(i=n?n.call(s,h,p,d):void 0,i===!1||i===void 0&&h!==p)return!1}return!0};const xC=ko(vC);var Ew=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Ew||{}),zu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},fg=Object.values(Ew),op={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},wC=Object.entries(op).reduce((t,[e,r])=>(t[r]=e,t),{}),pr="data-rh",bi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ki=(t,e)=>{for(let r=t.length-1;r>=0;r-=1){const n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},bC=t=>{let e=ki(t,"title");const r=ki(t,bi.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,()=>e);const n=ki(t,bi.DEFAULT_TITLE);return e||n||void 0},kC=t=>ki(t,bi.ON_CHANGE_CLIENT_STATE)||(()=>{}),Hu=(t,e)=>e.filter(r=>typeof r[t]<"u").map(r=>r[t]).reduce((r,n)=>({...r,...n}),{}),SC=(t,e)=>e.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(t.indexOf(l)!==-1&&n[l])return r.concat(n)}}return r},[]),_C=t=>console&&typeof console.warn=="function"&&console.warn(t),fa=(t,e,r)=>{const n={};return r.filter(s=>Array.isArray(s[t])?!0:(typeof s[t]<"u"&&_C(`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`),!1)).map(s=>s[t]).reverse().reduce((s,i)=>{const a={};i.filter(c=>{let u;const d=Object.keys(c);for(let p=0;p<d.length;p+=1){const f=d[p],w=f.toLowerCase();e.indexOf(w)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(w==="rel"&&c[w].toLowerCase()==="stylesheet")&&(u=w),e.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return n[u]||(n[u]={}),a[u]||(a[u]={}),n[u][h]?!1:(a[u][h]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const u=l[c],d={...n[u],...a[u]};n[u]=d}return s},[]).reverse()},CC=(t,e)=>{if(Array.isArray(t)&&t.length){for(let r=0;r<t.length;r+=1)if(t[r][e])return!0}return!1},jC=t=>({baseTag:SC(["href"],t),bodyAttributes:Hu("bodyAttributes",t),defer:ki(t,bi.DEFER),encode:ki(t,bi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Hu("htmlAttributes",t),linkTags:fa("link",["rel","href"],t),metaTags:fa("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:fa("noscript",["innerHTML"],t),onChangeClientState:kC(t),scriptTags:fa("script",["src","innerHTML"],t),styleTags:fa("style",["cssText"],t),title:bC(t),titleAttributes:Hu("titleAttributes",t),prioritizeSeoTags:CC(t,bi.PRIORITIZE_SEO_TAGS)}),Nw=t=>Array.isArray(t)?t.join(""):t,TC=(t,e)=>{const r=Object.keys(t);for(let n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1},Wu=(t,e)=>Array.isArray(t)?t.reduce((r,n)=>(TC(n,e)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:t,priority:[]},pg=(t,e)=>({...t,[e]:void 0}),EC=["noscript","script","style"],dh=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Aw=t=>Object.keys(t).reduce((e,r)=>{const n=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${n}`:n},""),NC=(t,e,r,n)=>{const s=Aw(r),i=Nw(e);return s?`<${t} ${pr}="true" ${s}>${dh(i,n)}</${t}>`:`<${t} ${pr}="true">${dh(i,n)}</${t}>`},AC=(t,e,r=!0)=>e.reduce((n,s)=>{const i=s,a=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof i[d]>"u"?d:`${d}="${dh(i[d],r)}"`;return u?`${u} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=EC.indexOf(t)===-1;return`${n}<${t} ${pr}="true" ${a}${c?"/>":`>${l}</${t}>`}`},""),Pw=(t,e={})=>Object.keys(t).reduce((r,n)=>{const s=op[n];return r[s||n]=t[n],r},e),PC=(t,e,r)=>{const n={key:e,[pr]:!0},s=Pw(r,n);return[P.createElement("title",s,e)]},Nl=(t,e)=>e.map((r,n)=>{const s={key:n,[pr]:!0};return Object.keys(r).forEach(i=>
40{const l=op[i]||i;if(l==="innerHTML"||l==="cssText"){const c=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=r[i]}),P.createElement(t,s)}),zt=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>PC(t,e.title,e.titleAttributes),toString:()=>NC(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Pw(e),toString:()=>Aw(e)};default:return{toComponent:()=>Nl(t,e),toString:()=>AC(t,e,r)}}},RC=({metaTags:t,linkTags:e,scriptTags:r,encode:n})=>{const s=Wu(t,zu.meta),i=Wu(e,zu.link),a=Wu(r,zu.script);return{priorityMethods:{toComponent:()=>[...Nl("meta",s.priority),...Nl("link",i.priority),...Nl("script",a.priority)],toString:()=>`${zt("meta",s.priority,n)} ${zt("link",i.priority,n)} ${zt("script",a.priority,n)}`},metaTags:s.default,linkTags:i.default,scriptTags:a.default}},OC=t=>{const{baseTag:e,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:i,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:u}=t;let{linkTags:d,metaTags:h,scriptTags:p}=t,f={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:f,linkTags:d,metaTags:h,scriptTags:p}=RC(t)),{priority:f,base:zt("base",e,n),bodyAttributes:zt("bodyAttributes",r,n),htmlAttributes:zt("htmlAttributes",s,n),link:zt("link",d,n),meta:zt("meta",h,n),noscript:zt("noscript",i,n),script:zt("script",p,n),style:zt("style",a,n),title:zt("title",{title:l,titleAttributes:c},n)}},hh=OC,tl=[],Rw=!!(typeof window<"u"&&window.document&&window.document.createElement),fh=class{constructor(t,e){Dr(this,"instances",[]);Dr(this,"canUseDOM",Rw);Dr(this,"context");Dr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?tl:this.instances,add:t=>{(this.canUseDOM?tl:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?tl:this.instances).indexOf(t);(this.canUseDOM?tl:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=hh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},IC={},Ow=P.createContext(IC),ps,Iw=(ps=class extends x.Component{constructor(r){super(r);Dr(this,"helmetData");this.helmetData=new fh(this.props.context||{},ps.canUseDOM)}render(){return P.createElement(Ow.Provider,{value:this.helmetData.value},this.props.children)}},Dr(ps,"canUseDOM",Rw),ps),zs=(t,e)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${t}[${pr}]`),s=[].slice.call(n),i=[];let a;return e&&e.length&&e.forEach(l=>{const c=document.createElement(t);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,h=typeof l[d]>"u"?"":l[d];c.setAttribute(u,h)}c.setAttribute(pr,"true"),s.some((u,d)=>(a=d,c.isEqualNode(u)))?s.splice(a,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>r.appendChild(l)),{oldTags:s,newTags:i}},ph=(t,e)=>{const r=document.getElementsByTagName(t)[0];if(!r)return;const n=r.getAttribute(pr),s=n?n.split(","):[],i=[...s],a=Object.keys(e);for(const l of a){const c=e[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)r.removeAttribute(i[l]);s.length===i.length?r.removeAttribute(pr):r.getAttribute(pr)!==a.join(",")&&r.setAttribute(pr,a.join(","))},MC=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=Nw(t)),ph("title",e)},mg=(t,e)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:i,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:h,titleAttributes:p}=t;ph("body",n),ph("html",s),MC(h,p);const f={baseTag:zs("base",r),linkTags:zs("link",i),metaTags:zs("meta",a),noscriptTags:zs("noscript",l),scriptTags:zs("script",u),styleTags:zs("style",d)},w={},g={};Object.keys(f).forEach(b=>{const{newTags:y,oldTags:m}=f[b];y.length&&(w[b]=y),m.length&&(g[b]=f[b].oldTags)}),e&&e(),c(t,w,g)},pa=null,LC=t=>{pa&&cancelAnimationFrame(pa),t.defer?pa=requestAnimationFrame(()=>{mg(t,()=>{pa=null})}):(mg(t),pa=null)},DC=LC,gg=class extends x.Component{constructor(){super(...arguments);Dr(this,"rendered",!1)}shouldComponentUpdate(e){return!xC(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:r}=this.props.context;let n=null;const s=jC(e.get().map(i=>{const a={...i.props};return delete a.context,a}));Iw.canUseDOM?DC(s):hh&&(n=hh(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},vd,$C=(vd=class extends x.Component{shouldComponentUpdate(t){return!mC(pg(this.props,"helmetData"),pg(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,r,n){return{...e,[t.type]:[...e[t.type]||[],{...r,...this.mapNestedChildrenToProps(t,n)}]}}mapObjectTypeChildren(t,e,r,n){switch(t.type){case"title":return{...e,[t.type]:n,titleAttributes:{...r}};case"body":return{...e,bodyAttributes:{...r}};case"html":return{...e,htmlAttributes:{...r}};default:return{...e,[t.type]:{...r}}}}mapArrayTypeChildrenToProps(t,e){let r={...e};return Object.keys(t).forEach(n=>{r={...r,[n]:t[n]}}),r}
40warnOnInvalidChildren(t,e){return hg(fg.some(r=>t.type===r),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${fg.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),hg(!e||typeof e=="string"||Array.isArray(e)&&!e.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let r={};return P.Children.forEach(t,n=>{if(!n||!n.props)return;const{children:s,...i}=n.props,a=Object.keys(i).reduce((c,u)=>(c[wC[u]||u]=i[u],c),{});let{type:l}=n;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(n,s),l){case"Symbol(react.fragment)":e=this.mapChildrenToProps(s,e);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,a,s);break;default:e=this.mapObjectTypeChildren(n,e,a,s);break}}),this.mapArrayTypeChildrenToProps(r,e)}render(){const{children:t,...e}=this.props;let r={...e},{helmetData:n}=e;if(t&&(r=this.mapChildrenToProps(t,r)),n&&!(n instanceof fh)){const s=n;n=new fh(s.context,!0),delete r.helmetData}return n?P.createElement(gg,{...r,context:n.value}):P.createElement(Ow.Consumer,null,s=>P.createElement(gg,{...r,context:s}))}},Dr(vd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),vd);const UC=1,FC=1e6;let Vu=0;function BC(){return Vu=(Vu+1)%Number.MAX_SAFE_INTEGER,Vu.toString()}const qu=new Map,yg=t=>{if(qu.has(t))return;const e=setTimeout(()=>{qu.delete(t),Oa({type:"REMOVE_TOAST",toastId:t})},FC);qu.set(t,e)},zC=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,UC)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?yg(r):t.toasts.forEach(n=>{yg(n.id)}),{...t,toasts:t.toasts.map(n=>
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Al=[];let Pl={toasts:[]};function Oa(t){Pl=zC(Pl,t),Al.forEach(e=>{e(Pl)})}function HC({...t}){const e=BC(),r=s=>Oa({type:"UPDATE_TOAST",toast:{...s,id:e}}),n=()=>Oa({type:"DISMISS_TOAST",toastId:e});return Oa({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||n()}}}),{id:e,dismiss:n,update:r}}function Eo(){const[t,e]=x.useState(Pl);return x.useEffect(()=>(Al.push(e),()=>{const r=Al.indexOf(e);r>-1&&Al.splice(r,1)}),[t]),{...t,toast:HC,dismiss:r=>Oa({type:"DISMISS_TOAST",toastId:r})}}function oe(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function vg(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Mw(...t){return e=>{let r=!1;const n=t.map(s=>{const i=vg(s,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():vg(t[s],null)}}}}function je(...t){return x.useCallback(Mw(...t),t)}function Gn(t,e=[]){let r=[];function n(i,a){const l=x.createContext(a),c=r.length;r=[...r,a];const u=h=>{var y;const{scope:p,children:f,...w}=h,g=((y=p==null?void 0:p[t])==null?void 0:y[c])||l,b=x.useMemo(()=>w,Object.values(w));return o.jsx(g.Provider,{value:b,children:f})};u.displayName=i+"Provider";function d(h,p){var g;const f=((g=p==null?void 0:p[t])==null?void 0:g[c])||l,w=x.useContext(f);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=r.map(a=>x.createContext(a));return function(l){const c=(l==null?void 0:l[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return s.scopeName=t,[n,WC(s,...e)]}function WC(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=n.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}function ro(t){const e=qC(t),r=x.forwardRef((n,s)=>{const{children:i,...a}=n,l=x.Children.toArray(i),c=l.find(GC);if(c){const u=c.props.children,d=l.map(h=>h===c?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:h);return o.jsx(e,{...a,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return o.jsx(e,{...a,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}var VC=ro("Slot");function qC(t){const e=x.forwardRef((r,n)=>{const{children:s,...i}=r;if(x.isValidElement(s)){const a=ZC(s),l=JC(i,s.props);return s.type!==x.Fragment&&(l.ref=n?Mw(n,a):a),x.cloneElement(s,l)}return x.Children.count(s)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Lw=Symbol("radix.slottable");function KC(t){const e=({children:r})=>o.jsx(o.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=Lw,e}function GC(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Lw}function JC(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function ZC(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function lp(t){const e=t+"CollectionProvider",[r,n]=Gn(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:y}=g,m=P.useRef(null),v=P.useRef(new Map).current;return o.jsx(s,{scope:b,itemMap:v,collectionRef:m,children:y})};a.displayName=e;const l=t+"CollectionSlot",c=ro(l),u=P.forwardRef((g,b)=>{const{scope:y,children:m}=g,v=i(l,y),k=je(b,v.collectionRef);return o.jsx(c,{ref:k,children:m})});u.displayName=l;const d=t+"CollectionItemSlot",h="data-radix-collection-item",p=ro(d),f=P.forwardRef((g,b)=>{const{scope:y,children:m,...v}=g,k=P.useRef(null),S=je(b,k),C=i(d,y);return P.useEffect(()=>(C.itemMap.set(k,{ref:k,...v}),()=>
vendor: 5,309 bytes, line 40
40void C.itemMap.delete(k))),o.jsx(p,{[h]:"",ref:S,children:m})});f.displayName=d;function w(g){const b=i(t+"CollectionConsumer",g);return P.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((C,_)=>v.indexOf(C.ref.current)-v.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:f},w,n]}var QC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=QC.reduce((t,e)=>{const r=ro(`Primitive.${e}`),n=x.forwardRef((s,i)=>{const{asChild:a,...l}=s,c=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Dw(t,e){t&&Ms.flushSync(()=>t.dispatchEvent(e))}function vr(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function YC(t,e=globalThis==null?void 0:globalThis.document){const r=vr(t);x.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var XC="DismissableLayer",mh="dismissableLayer.update",ej="dismissableLayer.pointerDownOutside",tj="dismissableLayer.focusOutside",xg,$w=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zc=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=t,u=x.useContext($w),[d,h]=x.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),w=je(e,_=>h(_)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),m=d?g.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,k=m>=y,S=nj(_=>{const j=_.target,A=[...u.branches].some(R=>R.contains(j));!k||A||(s==null||s(_),a==null||a(_),_.defaultPrevented||l==null||l())},p),C=sj(_=>{const j=_.target;[...u.branches].some(R=>R.contains(j))||(i==null||i(_),a==null||a(_),_.defaultPrevented||l==null||l())},p);return YC(_=>{m===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},p),x.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xg=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),wg(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xg)}},[d,p,r,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),wg())},[d,u]),x.useEffect(()=>{const _=()=>f({});return document.addEventListener(mh,_),()=>document.removeEventListener(mh,_)},[]),o.jsx(ue.div,{...c,ref:w,style:{pointerEvents:v?k?"auto":"none":void 0,...t.style},onFocusCapture:oe(t.onFocusCapture,C.onFocusCapture),onBlurCapture:oe(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:oe(t.onPointerDownCapture,S.onPointerDownCapture)})});zc.displayName=XC;var rj="DismissableLayerBranch",Uw=x.forwardRef((t,e)=>{const r=x.useContext($w),n=x.useRef(null),s=je(e,n);return x.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),o.jsx(ue.div,{...t,ref:s})});Uw.displayName=rj;function nj(t,e=globalThis==null?void 0:globalThis.document){const r=vr(t),n=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){Fw(ej,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function sj(t,e=globalThis==null?void 0:globalThis.document){const r=vr(t),n=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!n.current&&Fw(tj,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wg(){const t=new CustomEvent(mh);document.dispatchEvent(t)}function Fw(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Dw(s,i):s.dispatchEvent(i)}var ij=zc,aj=Uw,et=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},oj="Portal",cp=x.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[s,i]=x.useState(!1);et(()=>i(!0),[]);const a=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?jw.createPortal(o.jsx(ue.div,{...n,ref:e}),a):null});cp.displayName=oj;function lj(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var No=t=>{const{present:e,children:r}=t,n=cj(e),s=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),i=je(n.ref,uj(s));return typeof r=="function"||n.isPresent?x.cloneElement(s,{ref:i}
40):null};No.displayName="Presence";function cj(t){const[e,r]=x.useState(),n=x.useRef(null),s=x.useRef(t),i=x.useRef("none"),a=t?"mounted":"unmounted",[l,c]=lj(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=rl(n.current);i.current=l==="mounted"?u:"none"},[l]),et(()=>{const u=n.current,d=s.current;if(d!==t){const p=i.current,f=rl(u);t?c("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),et(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=f=>{const g=rl(n.current).includes(f.animationName);if(f.target===e&&g&&(c("ANIMATION_END"),!s.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},p=f=>{f.target===e&&(i.current=rl(n.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function rl(t){return(t==null?void 0:t.animationName)||"none"}function uj(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var dj=gf[" useInsertionEffect ".trim().toString()]||et;function Es({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[s,i,a]=hj({defaultProp:e,onChange:r}),l=t!==void 0,c=l?t:s;{const d=x.useRef(t!==void 0);x.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}const u=x.useCallback(d=>{var h;if(l){const p=fj(d)?d(t):d;p!==t&&((h=a.current)==null||h.call(a,p))}else i(d)},[l,t,i,a]);return[c,u]}function hj({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),s=x.useRef(r),i=x.useRef(e);return dj(()=>{i.current=e},[e]),x.useEffect(()=>{var a;s.current!==r&&((a=i.current)==null||a.call(i,r),s.current=r)},[r,s]),[r,n,i]}function fj(t){return typeof t=="function"}var Bw=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"}),pj="VisuallyHidden",Hc=x.forwardRef((t,e)=>o.jsx(ue.span,{...t,ref:e,style:{...Bw,...t.style}}));Hc.displayName=pj;var mj=Hc,up="ToastProvider",[dp,gj,yj]=lp("Toast"),[zw,e5]=Gn("Toast",[yj]),[vj,Wc]=zw(up),Hw=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=t,[l,c]=x.useState(null),[u,d]=x.useState(0),h=x.useRef(!1),p=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${up}\`. Expected non-empty \`string\`.`),o.jsx(dp.Provider,{scope:e,children:o.jsx(vj,{scope:e,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:a})})};Hw.displayName=up;var Ww="ToastViewport",xj=["F8"],gh="toast.viewportPause",yh="toast.viewportResume",Vw=x.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=xj,label:s="Notifications ({hotkey})",...i}=t,a=Wc(Ww,r),l=gj(r),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=x.useRef(null),p=je(e,h,a.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;x.useEffect(()=>{const b=y=>{var v;n.length!==0&&n.every(k=>y[k]||y.code===k)&&((v=h.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),x.useEffect(()=>{const b=c.current,y=h.current;if(w&&b&&y){const m=()=>{if(!a.isClosePausedRef.current){const C=new CustomEvent(gh);y.dispatchEvent(C),a.isClosePausedRef.current=!0}},v=()=>{if(a.isClosePausedRef.current){const C=new CustomEvent(yh);y.dispatchEvent(C),a.isClosePausedRef.current=!1}},k=C=>{!b.contains(C.relatedTarget)&&v()},S=()=>{b.contains(document.activeElement)||v()};return b.addEventListener("focusin",m),b.addEventListener("focusout",k),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[w,a.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:b})=>{const m=l().map(v=>{const k=v.ref.current,S=[k,...Rj(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?m.reverse():m).flat()},[l]);return x.useEffect(()=>{const b=h.current;if(b){const y=m=>{var S,C,_;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const j=document.activeElement,A=m.shiftKey;if(m.target===b&&A){(S=u.current)==null||S.focus();return}const M=g({tabbingDirection:A?"backwards":"forwards"}),J=M.findIndex(L=>L===j);Ku(M.slice(J+1))?m.preventDefault():A?(C=u.current)==null||C.focus():(_=d.current)==null||_.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[l,g]),o.jsxs(aj,{ref:c,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&o.jsx(vh,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Ku(b)}}),o.jsx(dp.Slot,{scope:r,children:o.jsx(ue.ol,{tabIndex:-1,...i,ref:p})}),w&&o.jsx(vh,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Ku(b)}})]})});Vw.displayName=Ww;var qw="ToastFocusProxy",vh=x.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=Wc(qw,r);return o.jsx(Hc,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&n()}})});vh.displayName=qw;var Ao="Toast",wj="toast.swipeStart",bj="toast.swipeMove",kj="toast.swipeCancel",Sj="toast.swipeEnd",Kw=x.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...a}=t,[l,c]=Es({prop:n,defaultProp:s??!0,onChange:i,caller:Ao});return o.jsx(No,{present:r||l,children:o.jsx(jj,{open:l,...a,ref:e,onClose:()=>c(!1),onPause:vr(t.onPause),onResume:vr(t.onResume),onSwipeStart:oe(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:oe(t.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:oe(t.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:oe(t.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)})})})});Kw.displayName=Ao;var[_j,Cj]=zw(Ao,{onClose(){}}),jj=x.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...w}=t,g=Wc(Ao,r),[b,y]=x.useState(null),m=je(e,L=>y(L)),v=x.useRef(null),k=x.useRef(null),S=s||g.duration,C=x.useRef(0),_=x.useRef(S),j=x.useRef(0),{onToastAdd:A,onToastRemove:R}=g,z=vr(()=>{var X;(b==null?void 0:b.contains(document.activeElement))&&((X=g.viewport)==null||X.focus()),a()}),M=x.useCallback(L=>
40{!L||L===1/0||(window.clearTimeout(j.current),C.current=new Date().getTime(),j.current=window.setTimeout(z,L))},[z]);x.useEffect(()=>{const L=g.viewport;if(L){const X=()=>{M(_.current),u==null||u()},H=()=>{const G=new Date().getTime()-C.current;_.current=_.current-G,window.clearTimeout(j.current),c==null||c()};return L.addEventListener(gh,H),L.addEventListener(yh,X),()=>{L.removeEventListener(gh,H),L.removeEventListener(yh,X)}}},[g.viewport,S,c,u,M]),x.useEffect(()=>{i&&!g.isClosePausedRef.current&&M(S)},[i,S,g.isClosePausedRef,M]),x.useEffect(()=>(A(),()=>R()),[A,R]);const J=x.useMemo(()=>b?e0(b):null,[b]);return g.viewport?o.jsxs(o.Fragment,{children:[J&&o.jsx(Tj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),o.jsx(_j,{scope:r,onClose:z,children:Ms.createPortal(o.jsx(dp.ItemSlot,{scope:r,children:o.jsx(ij,{asChild:!0,onEscapeKeyDown:oe(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||z(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:oe(t.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:oe(t.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:oe(t.onPointerMove,L=>{if(!v.current)return;const X=L.clientX-v.current.x,H=L.clientY-v.current.y,G=!!k.current,T=["left","right"].includes(g.swipeDirection),N=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=T?N(0,X):0,Y=T?0:N(0,H),q=L.pointerType==="touch"?10:2,ie={x:D,y:Y},re={originalEvent:L,delta:ie};G?(k.current=ie,nl(bj,h,re,{discrete:!1})):bg(ie,g.swipeDirection,q)?(k.current=ie,nl(wj,d,re,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(X)>q||Math.abs(H)>q)&&(v.current=null)}),onPointerUp:oe(t.onPointerUp,L=>{const X=k.current,H=L.target;if(H.hasPointerCapture(L.pointerId)&&H.releasePointerCapture(L.pointerId),k.current=null,v.current=null,X){const G=L.currentTarget,T={originalEvent:L,delta:X};bg(X,g.swipeDirection,g.swipeThreshold)?nl(Sj,f,T,{discrete:!0}):nl(kj,p,T,{discrete:!0}),G.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Tj=t=>{const{__scopeToast:e,children:r,...n}=t,s=Wc(Ao,e),[i,a]=x.useState(!1),[l,c]=x.useState(!1);return Aj(()=>a(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(cp,{asChild:!0,children:o.jsx(Hc,{...n,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",r]})})})},Ej="ToastTitle",Gw=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return o.jsx(ue.div,{...n,ref:e})});Gw.displayName=Ej;var Nj="ToastDescription",Jw=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return o.jsx(ue.div,{...n,ref:e})});Jw.displayName=Nj;var Zw="ToastAction",Qw=x.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?o.jsx(Xw,{altText:r,asChild:!0,children:o.jsx(hp,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Zw}\`. Expected non-empty \`string\`.`),null)});Qw.displayName=Zw;var Yw="ToastClose",hp=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=Cj(Yw,r);return o.jsx(Xw,{asChild:!0,children:o.jsx(ue.button,{type:"button",...n,ref:e,onClick:oe(t.onClick,s.onClose)})})});hp.displayName=Yw;var Xw=x.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return o.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function e0(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),Pj(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&e.push(a)}else e.push(...e0(n))}}),e}function nl(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?Dw(s,i):s.dispatchEvent(i)}var bg=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function Aj(t=()=>{}){const e=vr(t);et(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function Pj(t){return t.nodeType===t.ELEMENT_NODE}function Rj(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ku(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var Oj=Hw,t0=Vw,r0=Kw,n0=Gw,s0=Jw,i0=Qw,a0=hp;function o0(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=o0(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function l0(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=o0(t))&&(n&&(n+=" "),n+=e);return n}const kg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Sg=l0,fp=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return Sg(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=e,a=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],h=i==null?void 0:i[u];if(d===null)return null;const p=kg(d)||kg(h);return s[u][p]}),l=r&&Object.entries(r).reduce((u,d)=>{let[h,p]=d;
vendor: 4,904 bytes, lines 40-100
40return p===void 0||(u[h]=p),u},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(w=>{let[g,b]=w;return Array.isArray(b)?b.includes({...i,...l}[g]):{...i,...l}[g]===b})?[...u,h,p]:u},[]);return Sg(t,a,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 Ij=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c0=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===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 Mj={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 Lj=x.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:a,...l},c)=>x.createElement("svg",{ref:c,...Mj,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:c0("lucide",s),...l},[...a.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const K=(t,e)=>{const r=x.forwardRef(({className:n,...s},i)=>x.createElement(Lj,{ref:i,iconNode:e,className:c0(`lucide-${Ij(t)}`,n),...s}));return r.displayName=`${t}`,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 Dj=K("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const jt=K("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const $j=K("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
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 Uj=K("Atom",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]);/**
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 Fj=K("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"}]]);/**
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 Bj=K("BedDouble",[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]]);/**
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 zj=K("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
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 u0=K("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"}
100],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
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 d0=K("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
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 h0=K("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 pp=K("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 Hj=K("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Wj=K("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const lc=K("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
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 Gu=K("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Vc=K("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 Vj=K("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
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 qj=K("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"}],["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"}]]);/**
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 Kj=K("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"}]]);/**
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 Gj=K("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/**
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 Jj=K("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
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 mp=K("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 Zj=K("FileCheck",[["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:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
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 gp=K("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"}]]);/**
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 Qj=K("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
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 Yj=K("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"}]]);/**
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 Xj=K("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
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 eT=K("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
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 tT=K("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"}]]);/**
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 rT=K("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 nT=K("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
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 _g=K("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const sT=K("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const f0=K("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"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Po=K("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"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const iT=K("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"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const Cg=K("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const aT=K("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const jg=K("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const oT=K("PawPrint",[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const p0=K("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const yp=K("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"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const qc=K("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: 10,010 bytes, lines 275-330
275y:"oel41y"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const m0=K("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const lT=K("Syringe",[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const cT=K("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"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const uT=K("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const g0=K("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const dT=K("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const hT=K("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"}]]);/**
311 * @license lucide-react v0.462.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const fT=K("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
316 * @license lucide-react v0.462.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const Kc=K("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"}]]);/**
321 * @license lucide-react v0.462.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const y0=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
326 * @license lucide-react v0.462.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const v0=K("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"}]]),vp="-",pT=t=>{const e=gT(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const l=a.split(vp);return l[0]===""&&l.length!==1&&l.shift(),x0(l,e)||mT(a)},getConflictingClassGroupIds:(a,l)=>{const c=r[a]||[];return l&&n[a]?[...c,...n[a]]:c}}},x0=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),s=n?x0(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(vp);return(a=e.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},Tg=/^\[(.+)\]$/,mT=t=>{if(Tg.test(t)){const e=Tg.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},gT=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return vT(Object.entries(t.classGroups),r).forEach(([i,a])=>{xh(a,n,i,e)}),n},xh=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:Eg(e,s);i.classGroupId=r;return}if(typeof s=="function"){if(yT(s)){xh(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,a])=>{xh(a,Eg(e,i),r,n)})})},Eg=(t,e)=>{let r=t;return e.split(vp).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},yT=t=>t.isThemeGetter,vT=(t,e)=>e?t.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[e+a,l])):i);return[r,s]}):t,xT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const s=(i,a)=>{r.set(i,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return s(i,a),a},set(i,a){r.has(i)?r.set(i,a):s(i,a)}}},w0="!",wT=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],i=e.length,a=l=>{const c=[];let u=0,d=0,h;for(let b=0;b<l.length;b++){let y=l[b];if(u===0){if(y===s&&(n||l.slice(b,b+i)===e)){c.push(l.slice(d,b)),d=b+i;continue}if(y==="/"){h=b;continue}}y==="["?u++:y==="]"&&u--}const p=c.length===0?l:l.substring(d),f=p.startsWith(w0),w=f?p.substring(1):p,g=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:g}};return r?l=>r({className:l,parseClassName:a}):a},bT=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},kT=t=>({cache:xT(t.cacheSize),parseClassName:wT(t),...pT(t)}),ST=/\s+/,_T=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,i=[],a=t.trim().split(ST);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(u);let w=!!f,g=n(w?p.substring(0,f):p);if(!g){if(!w){l=u+(l.length>0?" "+l:l);continue}if(g=n(p),!g){l=u+(l.length>0?" "+l:l);continue}w=!1}const b=bT(d).join(":"),y=h?b+w0:b,m=y+g;if(i.includes(m))continue;i.push(m);const v=s(g,w);for(let k=0;k<v.length;++k){const S=v[k];i.push(y+S)}l=u+(l.length>0?" "+l:l)}return l};function CT(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=b0(e))&&(n&&(n+=" "),n+=r);return n}const b0=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=b0(t[n]))&&(r&&(r+=" "),r+=e);return r};function jT(t,...e){let r,n,s,i=a;function a(c){const u=e.reduce((d,h)=>h(d),t());return r=kT(u),n=r.cache.get,s=r.cache.set,i=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=_T(c,r);return s(c,d),d}return function(){return i(CT.apply(null,arguments))}}const Ee=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},k0=/^\[(?:([a-z-]+):)?(.+)\]$/i,TT=/^\d+\/\d+$/,ET=new Set(["px","full","screen"]),NT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AT=/\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$/,PT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,RT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=t=>Si(t)||ET.has(t)||TT.test(t),ln=t=>Qi(t,"length",BT),Si=t=>!!t&&!Number.isNaN(Number(t)),Ju=t=>Qi(t,"number",Si),ma=t=>!!t&&Number.isInteger(Number(t)),IT=t=>t.endsWith("%")&&Si(t.slice(0,-1)),ae=t=>k0.test(t),cn=t=>NT.test(t),MT=new Set(["length","size","percentage"]),LT=t=>Qi(t,MT,S0),DT=t=>Qi(t,"position",S0),$T=new Set(["image","url"]),UT=t=>Qi(t,$T,HT),FT=t=>Qi(t,"",zT),ga=()=>!0,Qi=(t,e,r)=>{const n=k0.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},BT=t=>AT.test(t)&&!PT.test(t),S0=()=>!1,zT=t=>RT.test(t),HT=t=>OT.test(t),WT=()=>{const t=Ee("colors"),e=Ee("spacing"),r=Ee("blur"),n=Ee("brightness"),s=Ee("borderColor"),i=Ee("borderRadius"),a=Ee("borderSpacing"),l=Ee("borderWidth"),c=Ee("contrast"),u=Ee("grayscale"),d=Ee("hueRotate"),h=Ee("invert"),p=Ee("gap"),f=Ee("gradientColorStops"),w=Ee("gradientColorStopPositions"),g=Ee("inset"),b=Ee("margin"),y=Ee("opacity"),m=Ee("padding"),v=Ee("saturate"),k=Ee("scale"),S=Ee("sepia"),C=Ee("skew"),_=Ee("space"),j=Ee("translate"),A=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ae,e],M=()=>[ae,e],J=()=>["",$r,ln],L=()=>["auto",Si,ae],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",ae],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Si,ae];return{cacheSize:500,separator:":",theme:{colors:[ga],spacing:[$r,ln],blur:["none","",cn,ae],brightness:Y(),borderColor:[t],borderRadius:["n
330one","","full",cn,ae],borderSpacing:M(),borderWidth:J(),contrast:Y(),grayscale:N(),hueRotate:Y(),invert:N(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[IT,ln],inset:z(),margin:z(),opacity:Y(),padding:M(),saturate:Y(),scale:Y(),sepia:N(),skew:Y(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[cn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),ae]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ma,ae]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",ma,ae]}],"grid-cols":[{"grid-cols":[ga]}],"col-start-end":[{col:["auto",{span:["full",ma,ae]},ae]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ga]}],"row-start-end":[{row:["auto",{span:[ma,ae]},ae]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"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",ae,e]}],"min-w":[{"min-w":[ae,e,"min","max","fit"]}],"max-w":[{"max-w":[ae,e,"none","full","min","max","fit","prose",{screen:[cn]},cn]}],h:[{h:[ae,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,e,"auto","min","max","fit"]}],"font-size":[{text:["base",cn,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ju]}],"font-family":[{font:[ga]}],"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",ae]}],"line-clamp":[{"line-clamp":["none",Si,Ju]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$r,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$r,ln]}],"underline-offset":[{"underline-offset":["auto",$r,ae]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],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",ae]}],"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:[...X(),DT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",LT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},UT]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}
330],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,467 bytes, line 330
330],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[$r,ae]}],"outline-w":[{outline:[$r,ln]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[$r,ln]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",cn,FT]}],"shadow-color":[{shadow:[ga]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",cn,ae]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[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":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ma,ae]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",t]}],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",ae]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",ae]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[$r,ln,Ju]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
330none"]}]},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"]}}},VT=jT(WT);function pe(...t){return VT(l0(t))}const qT=Oj,_0=x.forwardRef(({className:t,...e},r)=>o.jsx(t0,{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]",t),...e}));_0.displayName=t0.displayName;const KT=fp("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"}}),C0=x.forwardRef(({className:t,variant:e,...r},n)=>o.jsx(r0,{ref:n,className:pe(KT({variant:e}),t),...r}));C0.displayName=r0.displayName;const GT=x.forwardRef(({className:t,...e},r)=>o.jsx(i0,{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",t),...e}));GT.displayName=i0.displayName;const j0=x.forwardRef(({className:t,...e},r)=>o.jsx(a0,{ref:r,className:pe("absolute right-2 top-2 rounded-md p-1 text-foreground
330/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",t),"toast-close":"",...e,children:o.jsx(y0,{className:"h-4 w-4"})}));j0.displayName=a0.displayName;const T0=x.forwardRef(({className:t,...e},r)=>o.jsx(n0,{ref:r,className:pe("text-sm font-semibold",t),...e}));T0.displayName=n0.displayName;const E0=x.forwardRef(({className:t,...e},r)=>o.jsx(s0,{ref:r,className:pe("text-sm opacity-90",t),...e}));E0.displayName=s0.displayName;function JT(){const{toasts:t}=Eo();return o.jsxs(qT,{children:[t.map(function({id:e,title:r,description:n,action:s,...i}){return o.jsxs(C0,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[r&&o.jsx(T0,{children:r}),n&&o.jsx(E0,{children:n})]}),s,o.jsx(j0,{})]},e)}),o.jsx(_0,{})]})}var Ng=["light","dark"],ZT="(prefers-color-scheme: dark)",QT=x.createContext(void 0),YT={setTheme:t=>{},themes:[]},XT=()=>{var t;return(t=x.useContext(QT))!=null?t:YT};x.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:a,attrs:l,nonce:c})=>{let u=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?Ng.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(w,g=!1,b=!0)=>{let y=a?a[w]:w,m=g?w+"|| ''":`'${y}'`,v="";return s&&b&&!g&&Ng.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),r==="class"?g||y?v+=`c.add(${m})`:v+="null":y&&(v+=`d[s](n,${m})`),v},f=t?`!function(){${d}${p(t)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${ZT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${u?"":"else{"+p(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${h}}catch(t){}}();`;return x.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:f}})});var eE=t=>{switch(t){case"success":return nE;case"info":return iE;case"warning":return sE;case"error":return aE;default:return null}},tE=Array(12).fill(0),rE=({visible:t,className:e})=>P.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},P.createElement("div",{className:"sonner-spinner"},tE.map((r,n)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),nE=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),sE=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.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"})),iE=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),aE=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),oE=P.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"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lE=()=>{let[t,e]=P.useState(document.hidden);return P.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},wh=1,cE=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>
330{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:wh++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...n,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),s=r!==void 0,i,a=n.then(async c=>{if(i=["resolve",c],P.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(dE(c)&&!c.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:r,type:"error",message:u,description:d})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(c):e.success,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(c):e.error,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=e.finally)==null||c.call(e)}),l=()=>new Promise((c,u)=>a.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||wh++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},wt=new cE,uE=(t,e)=>{let r=(e==null?void 0:e.id)||wh++;return wt.addToast({title:t,...e,id:r}),r},dE=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",hE=uE,fE=()=>wt.toasts,pE=()=>wt.getActiveToasts();Object.assign(hE,{success:wt.success,info:wt.info,warning:wt.warning,error:wt.error,custom:wt.custom,message:wt.message,promise:wt.promise,dismiss:wt.dismiss,loading:wt.loading},{getHistory:fE,getToasts:pE});function mE(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}mE(`: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;
330left: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}
330: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%);
330--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%)}
331`);function sl(t){return t.label!==void 0}var gE=3,yE="32px",vE="16px",Ag=4e3,xE=356,wE=14,bE=20,kE=200;function nr(...t){return t.filter(Boolean).join(" ")}function SE(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var _E=t=>{var e,r,n,s,i,a,l,c,u,d,h;let{invert:p,toast:f,unstyled:w,interacting:g,setHeights:b,visibleToasts:y,heights:m,index:v,toasts:k,expanded:S,removeToast:C,defaultRichColors:_,closeButton:j,style:A,cancelButtonStyle:R,actionButtonStyle:z,className:M="",descriptionClassName:J="",duration:L,position:X,gap:H,loadingIcon:G,expandByDefault:T,classNames:N,icons:D,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:q}=t,[ie,re]=P.useState(null),[Te,De]=P.useState(null),[$,we]=P.useState(!1),[$e,xe]=P.useState(!1),[de,ge]=P.useState(!1),[ot,Ut]=P.useState(!1),[Xn,rn]=P.useState(!1),[es,na]=P.useState(0),[Ds,Zp]=P.useState(0),sa=P.useRef(f.duration||L||Ag),Qp=P.useRef(null),ts=P.useRef(null),Tk=v===0,Ek=v+1<=y,Ft=f.type,$s=f.dismissible!==!1,Nk=f.className||"",Ak=f.descriptionClassName||"",Lo=P.useMemo(()=>m.findIndex(ne=>ne.toastId===f.id)||0,[m,f.id]),Pk=P.useMemo(()=>{var ne;return(ne=f.closeButton)!=null?ne:j},[f.closeButton,j]),Yp=P.useMemo(()=>f.duration||L||Ag,[f.duration,L]),fu=P.useRef(0),Us=P.useRef(0),Xp=P.useRef(0),Fs=P.useRef(null),[Rk,Ok]=X.split("-"),em=P.useMemo(()=>m.reduce((ne,ke,Pe)=>Pe>
331=Lo?ne:ne+ke.height,0),[m,Lo]),tm=lE(),Ik=f.invert||p,pu=Ft==="loading";Us.current=P.useMemo(()=>Lo*H+em,[Lo,em]),P.useEffect(()=>{sa.current=Yp},[Yp]),P.useEffect(()=>{we(!0)},[]),P.useEffect(()=>{let ne=ts.current;if(ne){let ke=ne.getBoundingClientRect().height;return Zp(ke),b(Pe=>[{toastId:f.id,height:ke,position:f.position},...Pe]),()=>b(Pe=>Pe.filter(Xt=>Xt.toastId!==f.id))}},[b,f.id]),P.useLayoutEffect(()=>{if(!$)return;let ne=ts.current,ke=ne.style.height;ne.style.height="auto";let Pe=ne.getBoundingClientRect().height;ne.style.height=ke,Zp(Pe),b(Xt=>Xt.find(er=>er.toastId===f.id)?Xt.map(er=>er.toastId===f.id?{...er,height:Pe}:er):[{toastId:f.id,height:Pe,position:f.position},...Xt])},[$,f.title,f.description,b,f.id]);let nn=P.useCallback(()=>{xe(!0),na(Us.current),b(ne=>ne.filter(ke=>ke.toastId!==f.id)),setTimeout(()=>{C(f)},kE)},[f,C,b,Us]);P.useEffect(()=>{if(f.promise&&Ft==="loading"||f.duration===1/0||f.type==="loading")return;let ne;return S||g||q&&tm?(()=>{if(Xp.current<fu.current){let ke=new Date().getTime()-fu.current;sa.current=sa.current-ke}Xp.current=new Date().getTime()})():sa.current!==1/0&&(fu.current=new Date().getTime(),ne=setTimeout(()=>{var ke;(ke=f.onAutoClose)==null||ke.call(f,f),nn()},sa.current)),()=>clearTimeout(ne)},[S,g,f,Ft,q,tm,nn]),P.useEffect(()=>{f.delete&&nn()},[nn,f.delete]);function Mk(){var ne,ke,Pe;return D!=null&&D.loading?P.createElement("div",{className:nr(N==null?void 0:N.loader,(ne=f==null?void 0:f.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":Ft==="loading"},D.loading):G?P.createElement("div",{className:nr(N==null?void 0:N.loader,(ke=f==null?void 0:f.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":Ft==="loading"},G):P.createElement(rE,{className:nr(N==null?void 0:N.loader,(Pe=f==null?void 0:f.classNames)==null?void 0:Pe.loader),visible:Ft==="loading"})}return P.createElement("li",{tabIndex:0,ref:ts,className:nr(M,Nk,N==null?void 0:N.toast,(e=f==null?void 0:f.classNames)==null?void 0:e.toast,N==null?void 0:N.default,N==null?void 0:N[Ft],(r=f==null?void 0:f.classNames)==null?void 0:r[Ft]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:_,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":$,"data-promise":!!f.promise,"data-swiped":Xn,"data-removed":$e,"data-visible":Ek,"data-y-position":Rk,"data-x-position":Ok,"data-index":v,"data-front":Tk,"data-swiping":de,"data-dismissible":$s,"data-type":Ft,"data-invert":Ik,"data-swipe-out":ot,"data-swipe-direction":Te,"data-expanded":!!(S||T&&$),style:{"--index":v,"--toasts-before":v,"--z-index":k.length-v,"--offset":`${$e?es:Us.current}px`,"--initial-height":T?"auto":`${Ds}px`,...A,...f.style},onDragEnd:()=>{ge(!1),re(null),Fs.current=null},onPointerDown:ne=>{pu||!$s||(Qp.current=new Date,na(Us.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(ge(!0),Fs.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,ke,Pe,Xt;if(ot||!$s)return;Fs.current=null;let er=Number(((ne=ts.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sn=Number(((ke=ts.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),rs=new Date().getTime()-((Pe=Qp.current)==null?void 0:Pe.getTime()),tr=ie==="x"?er:sn,an=Math.abs(tr)/rs;if(Math.abs(tr)>=bE||an>.11){na(Us.current),(Xt=f.onDismiss)==null||Xt.call(f,f),De(ie==="x"?er>0?"right":"left":sn>0?"down":"up"),nn(),Ut(!0),rn(!1);return}ge(!1),re(null)},onPointerMove:ne=>{var ke,Pe,Xt,er;if(!Fs.current||!$s||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;let sn=ne.clientY-Fs.current.y,rs=ne.clientX-Fs.current.x,tr=(Pe=t.swipeDirections)!=null?Pe:SE(X);!ie&&(Math.abs(rs)>1||Math.abs(sn)>1)&&re(Math.abs(rs)>Math.abs(sn)?"x":"y");let an={x:0,y:0};ie==="y"?(tr.includes("top")||tr.includes("bottom"))&&(tr.includes("top")&&sn<0||tr.includes("bottom")&&sn>0)&&(an.y=sn):ie==="x"&&(tr.includes("left")||tr.includes("right"))&&(tr.includes("left")&&rs<0||tr.includes("right")&&rs>0)&&(an.x=rs),(Math.abs(an.x)>0||Math.abs(an.y)>0)&&rn(!0),(Xt=ts.current)==null||Xt.style.setProperty("--swipe-amount-x",`${an.x}px`),(er=ts.current)==null||er.style.setProperty("--swipe-amount-y",`${an.y}px`)}},Pk&&!f.jsx?P.createElement("button",{"aria-label":Y,"data-disabled":pu,"data-close-button":!0,onClick:pu||!$s?()=>{}:()=>{var ne;nn(),(ne=f.onDismiss)==null||ne.call(f,f)},className:nr(N==null?void 0:N.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:oE):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:P.createElement(P.Fragment,null,Ft||f.icon||f.promise?P.createElement("div",{"data-icon":"",className:nr(N==null?void 0:N.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Mk():null,f.type!=="loading"?f.icon||(D==null?void 0:D[Ft])||eE(Ft):null):null,P.createElement("div",{"data-content":"",className:nr(N==null?void 0:N.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},P.createElement("div",{"data-title":"",className:nr(N==null?void 0:N.title,(c=f==null?void 0:f.classNames)==null?void 0:c.title)},typeof f.title=="function"?f.title():f.title),f.description?P.createElement("div",{"data-description":"",className:nr(J,Ak,N==null?void 0:N.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&sl(f.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||R,onClick:ne=>{var ke,Pe;sl(f.cancel)&&$s&&((Pe=(ke=f.cancel).onClick)==null||Pe.call(ke,ne),nn())},className:nr(N==null?void 0:N.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&sl(f.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||z,onClick:ne=>{var ke,Pe;sl(f.action)&&((Pe=(ke=f.action).onClick)==null||Pe.call(ke,ne),!ne.defaultPrevented&&nn())},className:nr(N==null?void 0:N.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function Pg(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function CE(t,e){let r={};return[t,e].forEach((n,s)=>{let i=s===1,a=i?"--mobile-offset":"--offset",l=i?vE:yE;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${a}-${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[`${a}-${u}`]=l:r[`${a}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var jE=x.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:a,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:w=gE,toastOptions:g,dir:b=Pg(),gap:y=wE,loadingIcon:m,icons:v,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=t,[C,_]=P.useState([]),j=P.useMemo(()=>Array.from(new Set([n].concat(C.filter(q=>q.position).map(q=>q.position)))),[C,n]),[A,R]=P.useState([]),[z,M]=P.useState(!1),[J,L]=P.useState(!1),[X,H]=P.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
331k":"light"),G=P.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=P.useRef(null),D=P.useRef(!1),Y=P.useCallback(q=>{_(ie=>{var re;return(re=ie.find(Te=>Te.id===q.id))!=null&&re.delete||wt.dismiss(q.id),ie.filter(({id:Te})=>Te!==q.id)})},[]);return P.useEffect(()=>wt.subscribe(q=>{if(q.dismiss){_(ie=>ie.map(re=>re.id===q.id?{...re,delete:!0}:re));return}setTimeout(()=>{jw.flushSync(()=>{_(ie=>{let re=ie.findIndex(Te=>Te.id===q.id);return re!==-1?[...ie.slice(0,re),{...ie[re],...q},...ie.slice(re+1)]:[q,...ie]})})})}),[]),P.useEffect(()=>{if(d!=="system"){H(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:ie})=>{H(ie?"dark":"light")})}catch{q.addListener(({matches:re})=>{try{H(re?"dark":"light")}catch(Te){console.error(Te)}})}},[d]),P.useEffect(()=>{C.length<=1&&M(!1)},[C]),P.useEffect(()=>{let q=ie=>{var re,Te;s.every(De=>ie[De]||ie.code===De)&&(M(!0),(re=G.current)==null||re.focus()),ie.code==="Escape"&&(document.activeElement===G.current||(Te=G.current)!=null&&Te.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[s]),P.useEffect(()=>{if(G.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,D.current=!1)}},[G.current]),P.createElement("section",{ref:e,"aria-label":`${k} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((q,ie)=>{var re;let[Te,De]=q.split("-");return C.length?P.createElement("ol",{key:q,dir:b==="auto"?Pg():b,tabIndex:-1,ref:G,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":Te,"data-lifted":z&&C.length>1&&!i,"data-x-position":De,style:{"--front-toast-height":`${((re=A[0])==null?void 0:re.height)||0}px`,"--width":`${xE}px`,"--gap":`${y}px`,...f,...CE(c,u)},onBlur:$=>{D.current&&!$.currentTarget.contains($.relatedTarget)&&(D.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:$=>{$.target instanceof HTMLElement&&$.target.dataset.dismissible==="false"||D.current||(D.current=!0,N.current=$.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{J||M(!1)},onDragEnd:()=>M(!1),onPointerDown:$=>{$.target instanceof HTMLElement&&$.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},C.filter($=>!$.position&&ie===0||$.position===q).map(($,we)=>{var $e,xe;return P.createElement(_E,{key:$.id,icons:v,index:we,toast:$,defaultRichColors:h,duration:($e=g==null?void 0:g.duration)!=null?$e:p,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:w,closeButton:(xe=g==null?void 0:g.closeButton)!=null?xe:a,interacting:J,position:q,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:C.filter(de=>de.position==$.position),heights:A.filter(de=>de.position==$.position),setHeights:R,expandByDefault:i,gap:y,loadingIcon:m,expanded:z,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const TE=({...t})=>{const{theme:e="system"}=XT();return o.jsx(jE,{theme:e,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"}},...t})};var EE=gf[" useId ".trim().toString()]||(()=>{}),NE=0;function Ro(t){const[e,r]=x.useState(EE());return et(()=>{r(n=>n??String(NE++))},[t]),e?`radix-${e}`:""}const AE=["top","right","bottom","left"],Bn=Math.min,Nt=Math.max,cc=Math.round,il=Math.floor,Rr=t=>({x:t,y:t}
vendor: 25,073 bytes, line 331
331),PE={left:"right",right:"left",bottom:"top",top:"bottom"},RE={start:"end",end:"start"};function bh(t,e,r){return Nt(t,Bn(e,r))}function Yr(t,e){return typeof t=="function"?t(e):t}function Xr(t){return t.split("-")[0]}function Yi(t){return t.split("-")[1]}function xp(t){return t==="x"?"y":"x"}function wp(t){return t==="y"?"height":"width"}const OE=new Set(["top","bottom"]);function Nr(t){return OE.has(Xr(t))?"y":"x"}function bp(t){return xp(Nr(t))}function IE(t,e,r){r===void 0&&(r=!1);const n=Yi(t),s=bp(t),i=wp(s);let a=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=uc(a)),[a,uc(a)]}function ME(t){const e=uc(t);return[kh(t),e,kh(e)]}function kh(t){return t.replace(/start|end/g,e=>RE[e])}const Rg=["left","right"],Og=["right","left"],LE=["top","bottom"],DE=["bottom","top"];function $E(t,e,r){switch(t){case"top":case"bottom":return r?e?Og:Rg:e?Rg:Og;case"left":case"right":return e?LE:DE;default:return[]}}function UE(t,e,r,n){const s=Yi(t);let i=$E(Xr(t),r==="start",n);return s&&(i=i.map(a=>a+"-"+s),e&&(i=i.concat(i.map(kh)))),i}function uc(t){return t.replace(/left|right|bottom|top/g,e=>PE[e])}function FE(t){return{top:0,right:0,bottom:0,left:0,...t}}function N0(t){return typeof t!="number"?FE(t):{top:t,right:t,bottom:t,left:t}}function dc(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function Ig(t,e,r){let{reference:n,floating:s}=t;const i=Nr(e),a=bp(e),l=wp(a),c=Xr(e),u=i==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,p=n[l]/2-s[l]/2;let f;switch(c){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Yi(e)){case"start":f[a]-=p*(r&&u?-1:1);break;case"end":f[a]+=p*(r&&u?-1:1);break}return f}const BE=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:h}=Ig(u,n,c),p=n,f={},w=0;for(let g=0;g<l.length;g++){const{name:b,fn:y}=l[g],{x:m,y:v,data:k,reset:S}=await y({x:d,y:h,initialPlacement:n,placement:p,strategy:s,middlewareData:f,rects:u,platform:a,elements:{reference:t,floating:e}});d=m??d,h=v??h,f={...f,[b]:{...f[b],...k}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:d,y:h}=Ig(u,p,c)),g=-1)}return{x:d,y:h,placement:p,strategy:s,middlewareData:f}};async function no(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Yr(e,t),w=N0(f),b=l[p?h==="floating"?"reference":"floating":h],y=dc(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),m=h==="floating"?{x:n,y:s,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=dc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:v,strategy:c}):m);return{top:(y.top-S.top+w.top)/k.y,bottom:(S.bottom-y.bottom+w.bottom)/k.y,left:(y.left-S.left+w.left)/k.x,right:(S.right-y.right+w.right)/k.x}}const zE=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Yr(t,e)||{};if(u==null)return{};const h=N0(d),p={x:r,y:n},f=bp(s),w=wp(f),g=await a.getDimensions(u),b=f==="y",y=b?"top":"left",m=b?"bottom":"right",v=b?"clientHeight":"clientWidth",k=i.reference[w]+i.reference[f]-p[f]-i.floating[w],S=p[f]-i.reference[f],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=C?C[v]:0;(!_||!await(a.isElement==null?void 0:a.isElement(C)))&&(_=l.floating[v]||i.floating[w]);const j=k/2-S/2,A=_/2-g[w]/2-1,R=Bn(h[y],A),z=Bn(h[m],A),M=R,J=_-g[w]-z,L=_/2-g[w]/2+j,X=bh(M,L,J),H=!c.arrow&&Yi(s)!=null&&L!==X&&i.reference[w]/2-(L<M?R:z)-g[w]/2<0,G=H?L<M?L-M:L-J:0;return{[f]:p[f]+G,data:{[f]:X,centerOffset:L-X-G,...H&&{alignmentOffset:G}},reset:H}}}),HE=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...b}=Yr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=Xr(s),m=Nr(l),v=Xr(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=p||(v||!g?[uc(l)]:ME(l)),C=w!=="none";!p&&C&&S.push(...UE(l,g,w,k));const _=[l,...S],j=await no(e,b),A=[];let R=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&A.push(j[y]),h){const L=IE(s,a,k);A.push(j[L[0]],j[L[1]])}if(R=[...R,{placement:s,overflows:A}],!A.every(L=>L<=0)){var z,M;const L=(((z=i.flip)==null?void 0:z.index)||0)+1,X=_[L];if(X&&(!(h==="alignment"?m!==Nr(X):!1)||R.every(T=>T.overflows[0]>0&&Nr(T.placement)===m)))return{data:{index:L,overflows:R},reset:{placement:X}};let H=(M=R.filter(G=>G.overflows[0]<=0).sort((G,T)=>G.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!H)switch(f){case"bestFit":{var J;const G=(J=R.filter(T=>{if(C){const N=Nr(T.placement);return N===m||N==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(N=>N>0).reduce((N,D)=>N+D,0)]).sort((T,N)=>T[1]-N[1])[0])==null?void 0:J[0];G&&(H=G);break}case"initialPlacement":H=l;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Mg(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Lg(t){return AE.some(e=>t[e]>=0)}const WE=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=Yr(t,e);switch(n){case"referenceHidden":{const i=await no(e,{...s,elementContext:"reference"}),a=Mg(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Lg(a)}}}case"escaped":{const i=await no(e,{...s,altBoundary:!0}),a=Mg(i,r.floating);return{data:{escapedOffsets:a,escaped:Lg(a)}}}default:return{}}}}},A0=new Set(["left","top"]);async function VE(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),a=Xr(r),l=Yi(r),c=Nr(r)==="y",u=A0.has(a)?-1:1,d=i&&c?-1:1,h=Yr(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(f=l==="end"?w*-1:w),c?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const qE=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:a,middlewareData:l}=e,c=await VE(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:a}}}}},KE=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:m}=b;return{x:y,y:m}}},...c}=Yr(t,e),u={x:r,y:n},d=await no(e,c),h=Nr(Xr(s)),p=xp(h);let f=u[p],w=u[h];if(i){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=f+d[b],v=f-d[y];f=bh(m,f,v)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",m=w+d[b],v=w-d[y];w=bh(m,w,v)}const g=l.fn({...e,[p]:f,[h]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[p]:i,[h]:a}}}}}},GE=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Yr(t,e),d={x:r,y:n},h=Nr(s),p=xp(h);let f=d[p],w=d[h];const g=Yr(l,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const v=p==="y"?"height":"width",k=i.reference[p]-i.floating[v]+b.mainAxis,S=i.reference[p]+i.reference[v]-b.mainAxis;f<k?f=k:f>S&&(f=S)}if(u){var y,m;const v=p==="y"?"width":"height",k=A0.has(Xr(s)),S=i.reference[h]-i.floating[v]+(k&&((y=a.offset)==null?void 0:y[h])||0)+(k?0:b.crossAxis),C=i.reference[h]+i.reference[v]+(k?0:((m=a.offset)==null?void 0:m[h])||0)-(k?b.crossAxis:0);w<S?w=S:w>C&&(w=C)}return{[p]:f,[h]:w}}}},JE=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:i,platform:a,elements:l}=e,{apply:c=()=>{},...u}=Yr(t,e),d=await no(e,u),h=Xr(s),p=Yi(s),f=Nr(s)==="y",{width:w,height:g}=i.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=p===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(y=h,b=p==="end"?"top":"bottom");const m=g-d.top-d.bottom,v=w-d.left-d.right,k=Bn(g-d[b],m),S=Bn(w-d[y],v),C=!e.middlewareData.shift;let _=k,j=S;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(j=v),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=m),C&&!p){const R=Nt(d.left,0),z=Nt(d.right,0),M=Nt(d.top,0),J=Nt(d.bottom,0);f?j=w-2*(R!==0||z!==0?R+z:Nt(d.left,d.right)):_=g-2*(M!==0||J!==0?M+J:Nt(d.top,d.bottom))}await c({...e,availableWidth:j,availableHeight:_});const A=await a.getDimensions(l.floating);return w!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function Gc(){return typeof window<"u"}function Xi(t){return P0(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Lr(t){var e;return(e=(P0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function P0(t){return Gc()?t instanceof Node||t instanceof It(t).Node:!1}function xr(t){return Gc()?t instanceof Element||t instanceof It(t).Element:!1}function Ir(t){return Gc()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function Dg(t){return!Gc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}const ZE=new Set(["inline","contents"]);function Oo(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=wr(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!ZE.has(s)}const QE=new Set(["table","td","th"]);function YE(t){return QE.has(Xi(t))}const XE=[":popover-open",":modal"];function Jc(t){return XE.some(e=>{try{return t.matches(e)}catch{return!1}})}const eN=["transform","translate","scale","rotate","perspective"],tN=["transform","translate","scale","rotate","perspective","filter"],rN=["paint","layout","strict","content"];function kp(t){const e=Sp(),r=xr(t)?wr(t):t;return eN.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||tN.some(n=>(r.willChange||"").includes(n))||rN.some(n=>(r.contain||"").includes(n))}function nN(t){let e=zn(t);for(;Ir(e)&&!zi(e);){if(kp(e))return e;if(Jc(e))return null;e=zn(e)}return null}function Sp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sN=new Set(["html","body","#document"]);function zi(t){return sN.has(Xi(t))}function wr(t){return It(t).getComputedStyle(t)}function Zc(t){return xr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function zn(t){if(Xi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dg(t)&&t.host||Lr(t);return Dg(e)?e.host:e}function R0(t){const e=zn(t);return zi(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ir(e)&&Oo(e)?e:R0(e)}function so(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=R0(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),a=It(s);if(i){const l=Sh(a);return e.concat(a,a.visualViewport||[],Oo(s)?s:[],l&&r?so(l):[])}return e.concat(s,so(s,[],r))}function Sh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function O0(t){const e=wr(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=Ir(t),i=s?t.offsetWidth:r,a=s?t.offsetHeight:n,l=cc(r)!==i||cc(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function _p(t){return xr(t)?t:t.contextElement}function _i(t){const e=_p(t);if(!Ir(e))return Rr(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=O0(e);let a=(i?cc(r.width):r.width)/n,l=(i?cc(r.height):r.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const iN=Rr(0);function I0(t){const e=It(t);return!Sp()||!e.visualViewport?iN:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function aN(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==It(t)?!1:e}function Ns(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_p(t);let a=Rr(1);e&&(n?xr(n)&&(a=_i(n)):a=_i(t));const l=aN(i,r,n)?I0(i):Rr(0);let c=(s.left+l.x)/a.x,u=(s.top+l.y)/a.y,d=s.width/a.x,h=s.height/a.y;if(i){const p=It(i),f=n&&xr(n)?It(n):n;let w=p,g=Sh(w);for(;g&&n&&f!==w;){const b=_i(g),y=g.getBoundingClientRect(),m=wr(g),v=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,k=y.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=v,u+=k,w=It(g),g=Sh(w)}}return dc({width:d,height:h,x:c,y:u})}function Cp(t,e){const r=Zc(t).scrollLeft;return e?e.left+r:Ns(Lr(t)).left+r}function M0(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-(r?0:Cp(t,n)),i=n.top+e.scrollTop;return{x:s,y:i}}function oN(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",a=Lr(n),l=e?Jc(e.floating):!1;if(n===a||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=Rr(1);const d=Rr(0),h=Ir(n);if((h||!h&&!i)&&((Xi(n)!=="body"||Oo(a))&&(c=Zc(n)),Ir(n))){const f=Ns(n);u=_i(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const p=a&&!h&&!i?M0(a,c,!0):Rr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-c.scrollTop*u.y+d.y+p.y}}function lN(t){return Array.from(t.getClientRects())}function cN(t){const e=Lr(t),r=Zc(t),n=t.ownerDocument.body,s=Nt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Nt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Cp(t);const l=-r.scrollTop;return wr(n).direction==="rtl"&&(a+=Nt(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:a,y:l}}function uN(t,e){const r=It(t),n=Lr(t),s=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const u=Sp();(!u||u&&e==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}const dN=new Set(["absolute","fixed"]);function hN(t,e){const r=Ns(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=Ir(t)?_i(t):Rr(1),a=t.clientWidth*i.x,l=t.clientHeight*i.y,c=s*i.x,u=n*i.y;return{width:a,height:l,x:c,y:u}}function $g(t,e,r){let n;if(e==="viewport")n=uN(t,r);else if(e==="document")n=cN(Lr(t));else if(xr(e))n=hN(e,r);else{const s=I0(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return dc(n)}function L0(t,e){const r=zn(t);return r===e||!xr(r)||zi(r)?!1:wr(r).position==="fixed"||L0(r,e)}function fN(t,e){const r=e.get(t);if(r)return r;let n=so(t,[],!1).filter(l=>xr(l)&&Xi(l)!=="body"),s=null;const i=wr(t).position==="fixed";let a=i?zn(t):t;for(;xr(a)&&!zi(a);){const l=wr(a),c=kp(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&dN.has(s.position)||Oo(a)&&!c&&L0(t,a))?n=n.filter(d=>d!==a):s=l,a=zn(a)}return e.set(t,n),n}function pN(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const a=[...r==="clippingAncestors"?Jc(e)?[]:fN(e,this._c):[].concat(r),n],l=a[0],c=a.reduce((u,d)=>{const h=$g(e,d,s);return u.top=Nt(h.top,u.top),u.right=Bn(h.right,u.right),u.bottom=Bn(h.bottom,u.bottom),u.left=Nt(h.left,u.left),u},$g(e,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mN(t){const{width:e,height:r}=O0(t);return{width:e,height:r}}function gN(t,e,r){const n=Ir(e),s=Lr(e),i=r==="fixed",a=Ns(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Rr(0);function u(){c.x=Cp(s)}if(n||!n&&!i)if((Xi(e)!=="body"||Oo(s))&&(l=Zc(e)),n){const f=Ns(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&u();i&&!n&&s&&u();const d=s&&!n&&!i?M0(s,l):Rr(0),h=a.left+l.scrollLeft-c.x-d.x,p=a.top+l.scrollTop-c.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function Zu(t){return wr(t).position==="static"}function Ug(t,e){if(!Ir(t)||wr(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Lr(t)===r&&(r=r.ownerDocument.body),r}function D0(t,e){const r=It(t);if(Jc(t))return r;if(!Ir(t)){let s=zn(t);for(;s&&!zi(s);){if(xr(s)&&!Zu(s))return s;s=zn(s)}return r}let n=Ug(t,e);for(;n&&YE(n)&&Zu(n);)n=Ug(n,e);return n&&zi(n)&&Zu(n)&&!kp(n)?r:n||nN(t)||r}const yN=async function(t){const e=this.getOffsetParent||D0,r=this.getDimensions,n=await r(t.floating);return{reference:gN(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vN(t){return wr(t).direction==="rtl"}const xN={convertOffsetParentRelativeRectToViewportRelativeRect:oN,getDocumentElement:Lr,getClippingRect:pN,getOffsetParent:D0,getElementRects:yN,getClientRects:lN,getDimensions:mN,getScale:_i,isElement:xr,isRTL:vN};function $0(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wN(t,e){let r=null,n;const s=Lr(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=u;if(l||e(),!p||!f)return;const w=il(h),g=il(s.clientWidth-(d+p)),b=il(s.clientHeight-(h+f)),y=il(d),v={rootMargin:-w+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Nt(0,Bn(1,c))||1};let k=!0;function S(C){const _=C[0].intersectionRatio;if(_!==c){if(!k)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!$0(u,t.getBoundingClientRect())&&a(),k=!1}try{r=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,v)}r.observe(t)}return a(!0),i}function bN(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=_p(t),d=s||i?[...u?so(u):[],...so(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const h=u&&l?wN(u,r):null;let p=-1,f=null;a&&(f=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(e)})),r()}),u&&!c&&f.observe(u),f.observe(e));let w,g=c?Ns(t):null;c&&b();function b(){const y=Ns(t);g&&!$0(g,y)&&r(),g=y,w=requestAnimationFrame(b)}return r(),()=>{var y;d.forEach(m=>{s&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(w)}}const kN=qE,SN=KE,_N=HE,CN=JE,jN=WE,Fg=zE,TN=GE,EN=(t,e,r)=>{const n=new Map,s={platform:xN,...r},i={...s.platform,_c:n};return BE(t,e,{...s,platform:i})};var NN=typeof document<"u",AN=function(){},Rl=NN?x.useLayoutEffect:AN;function hc(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!hc(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!hc(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function U0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bg(t,e){const r=U0(t);return Math.round(e*r)/r}function Qu(t){const e=x.useRef(t);return Rl(()=>{e.current=t}),e}function PN(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,h]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[p,f]=x.useState(n);hc(p,n)||f(n);const[w,g]=x.useState(null),[b,y]=x.useState(null),m=x.useCallback(T=>{T!==C.current&&(C.current=T,g(T))},[]),v=x.useCallback(T=>{T!==_.current&&(_.current=T,y(T))},[]),k=i||w,S=a||b,C=x.useRef(null),_=x.useRef(null),j=x.useRef(d),A=c!=null,R=Qu(c),z=Qu(s),M=Qu(u),J=x.useCallback(()=>{if(!C.current||!_.current)return;const T={placement:e,strategy:r,middleware:p};z.current&&(T.platform=z.current),EN(C.current,_.current,T).then(N=>{const D={...N,isPositioned:M.current!==!1};L.current&&!hc(j.current,D)&&(j.current=D,Ms.flushSync(()=>{h(D)}))})},[p,e,r,z,M]);Rl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(T=>({...T,isPositioned:!1})))},[u]);const L=x.useRef(!1);Rl(()=>(L.current=!0,()=>{L.current=!1}),[]),Rl(()=>{if(k&&(C.current=k),S&&(_.current=S),k&&S){if(R.current)return R.current(k,S,J);J()}},[k,S,J,R,A]);const X=x.useMemo(()=>({reference:C,floating:_,setReference:m,setFloating:v}),[m,v]),H=x.useMemo(()=>({reference:k,floating:S}),[k,S]),G=x.useMemo(()=>{const T={position:r,left:0,top:0};if(!H.floating)return T;const N=Bg(H.floating,d.x),D=Bg(H.floating,d.y);return l?{...T,transform:"translate("+N+"px, "+D+"px)",...U0(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:D}},[r,l,H.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:J,refs:X,elements:H,floatingStyles:G}),[d,J,X,H,G])}const RN=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Fg({element:n.current,padding:s}).fn(r):{}:n?Fg({element:n,padding:s}).fn(r):{}}}},ON=(t,e)=>({...kN(t),options:[t,e]}),IN=(t,e)=>({...SN(t),options:[t,e]}),MN=(t,e)=>({...TN(t),options:[t,e]}),LN=(t,e)=>({..._N(t),options:[t,e]}),DN=(t,e)=>({...CN(t),options:[t,e]}),$N=(t,e)=>({...jN(t),options:[t,e]}),UN=(t,e)=>({...RN(t),options:[t,e]});var FN="Arrow",F0=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return o.jsx(ue.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});F0.displayName=FN;var BN=F0;function B0(t){const[e,r]=x.useState(void 0);return et(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=t.offsetWidth,l=t.offsetHeight;r({width:a,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var jp="Popper",[z0,Qc]=Gn(jp),[zN,H0]=z0(jp),W0=t=>{const{__scopePopper:e,children:r}=t,[n,s]=x.useState(null);return o.jsx(zN,{scope:e,anchor:n,onAnchorChange:s,children:r})};W0.displayName=jp;var V0="PopperAnchor",q0=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=H0(V0,r),a=x.useRef(null),l=je(e,a);return x.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:o.jsx(ue.div,{...s,ref:l})});q0.displayName=V0;var Tp="PopperContent",[HN,WN]=z0(Tp),K0=x.forwardRef((t,e)=>{var $,we,$e,xe,de,ge;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:w,...g}=t,b=H0(Tp,r),[y,m]=x.useState(null),v=je(e,ot=>m(ot)),[k,S]=x.useState(null),C=B0(k),_=(C==null?void 0:C.width)??0,j=(C==null?void 0:C.height)??0,A=n+(i!=="center"?"-"+i:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],M=z.length>0,J={padding:R,boundary:z.filter(qN),altBoundary:M},{refs:L,floatingStyles:X,placement:H,isPositioned:G,middlewareData:T}=PN({strategy:"fixed",placement:A,whileElementsMounted:(...ot)=>bN(...ot,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[ON({mainAxis:s+j,alignmentAxis:a}),c&&IN({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?MN():void 0,...J}),c&&LN({...J}),DN({...J,apply:({elements:ot,rects:Ut,availableWidth:Xn,availableHeight:rn})=>{const{width:es,height:na}=Ut.reference,Ds=ot.floating.style;Ds.setProperty("--radix-popper-available-width",`${Xn}px`),Ds.setProperty("--radix-popper-available-height",`${rn}px`),Ds.setProperty("--radix-popper-anchor-width",`${es}px`),Ds.setProperty("--radix-popper-anchor-height",`${na}px`)}}),k&&UN({element:k,padding:l}),KN({arrowWidth:_,arrowHeight:j}),p&&$N({strategy:"referenceHidden",...J})]}),[N,D]=Z0(H),Y=vr(w);et(()=>{G&&(Y==null||Y())},[G,Y]);const q=($=T.arrow)==null?void 0:$.x,ie=(we=T.arrow)==null?void 0:we.y,re=(($e=T.arrow)==null?void 0:$e.centerOffset)!==0,[Te,De]=x.use
vendor: 8,440 bytes, line 331
331State();return et(()=>{y&&De(window.getComputedStyle(y).zIndex)},[y]),o.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:G?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(xe=T.transformOrigin)==null?void 0:xe.x,(de=T.transformOrigin)==null?void 0:de.y].join(" "),...((ge=T.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:o.jsx(HN,{scope:r,placedSide:N,onArrowChange:S,arrowX:q,arrowY:ie,shouldHideArrow:re,children:o.jsx(ue.div,{"data-side":N,"data-align":D,...g,ref:v,style:{...g.style,animation:G?void 0:"none"}})})})});K0.displayName=Tp;var G0="PopperArrow",VN={top:"bottom",right:"left",bottom:"top",left:"right"},J0=x.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=WN(G0,n),a=VN[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(BN,{...s,ref:r,style:{...s.style,display:"block"}})})});J0.displayName=G0;function qN(t){return t!==null}var KN=t=>({name:"transformOrigin",options:t,fn(e){var b,y,m;const{placement:r,rects:n,middlewareData:s}=e,a=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:t.arrowWidth,c=a?0:t.arrowHeight,[u,d]=Z0(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((y=s.arrow)==null?void 0:y.x)??0)+l/2,f=(((m=s.arrow)==null?void 0:m.y)??0)+c/2;let w="",g="";return u==="bottom"?(w=a?h:`${p}px`,g=`${-c}px`):u==="top"?(w=a?h:`${p}px`,g=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,g=a?h:`${f}px`):u==="left"&&(w=`${n.floating.width+c}px`,g=a?h:`${f}px`),{data:{x:w,y:g}}}});function Z0(t){const[e,r="center"]=t.split("-");return[e,r]}var GN=W0,Q0=q0,Y0=K0,X0=J0,[Yc,t5]=Gn("Tooltip",[Qc]),Ep=Qc(),eb="TooltipProvider",JN=700,zg="tooltip.open",[ZN,tb]=Yc(eb),rb=t=>{const{__scopeTooltip:e,delayDuration:r=JN,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,a=x.useRef(!0),l=x.useRef(!1),c=x.useRef(0);return x.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(ZN,{scope:e,isOpenDelayedRef:a,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};rb.displayName=eb;var nb="Tooltip",[r5,Xc]=Yc(nb),_h="TooltipTrigger",QN=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Xc(_h,r),i=tb(_h,r),a=Ep(r),l=x.useRef(null),c=je(e,l,s.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),h=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(Q0,{asChild:!0,...a,children:o.jsx(ue.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:oe(t.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:oe(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:oe(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:oe(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:oe(t.onBlur,s.onClose),onClick:oe(t.onClick,s.onClose)})})});QN.displayName=_h;var YN="TooltipPortal",[n5,XN]=Yc(YN,{forceMount:void 0}),Hi="TooltipContent",sb=x.forwardRef((t,e)=>{const r=XN(Hi,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,a=Xc(Hi,t.__scopeTooltip);return o.jsx(No,{present:n||a.open,children:a.disableHoverableContent?o.jsx(ib,{side:s,...i,ref:e}):o.jsx(e2,{side:s,...i,ref:e})})}),e2=x.forwardRef((t,e)=>{const r=Xc(Hi,t.__scopeTooltip),n=tb(Hi,t.__scopeTooltip),s=x.useRef(null),i=je(e,s),[a,l]=x.useState(null),{trigger:c,onClose:u}=r,d=s.current,{onPointerInTransitChange:h}=n,p=x.useCallback(()=>{l(null),h(!1)},[h]),f=x.useCallback((w,g)=>{const b=w.currentTarget,y={x:w.clientX,y:w.clientY},m=i2(y,b.getBoundingClientRect()),v=a2(y,m),k=o2(g.getBoundingClientRect()),S=c2([...v,...k]);l(S),h(!0)},[h]);return x.useEffect(()=>()=>p(),[p]),x.useEffect(()=>{if(c&&d){const w=b=>f(b,d),g=b=>f(b,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",g)}}},[c,d,f,p]),x.useEffect(()=>{if(a){const w=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},m=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),v=!l2(y,a);m?p():v&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,a,u,p]),o.jsx(ib,{...t,ref:i})}),[t2,r2]=Yc(nb,{isInside:!1}),n2=KC("TooltipContent"),ib=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=t,c=Xc(Hi,r),u=Ep(r),{onClose:d}=c;return x.useEffect(()=>(document.addEventListener(zg,d),()=>document.removeEventListener(zg,d)),[d]),x.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]),o.jsx(zc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:o.jsxs(Y0,{"data-state":c.stateAttribute,...u,...l,ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(n2,{children:n}),o.jsx(t2,{scope:r,isInside:!0,children:o.jsx(mj,{id:c.contentId,role:"tooltip",children:s||n})})]})})});sb.displayName=Hi;var ab="TooltipArrow",s2=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Ep(r);return r2(ab,r).isInside?null:o.jsx(X0,{...s,...n,ref:e})});s2.displayName=ab;function i2(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function a2(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function o2(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function l2(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const l=e[i],c=e[a],u=l.x,d=l.y,h=c.x,p=c.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(s=!s)}return s}function c2(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),u2(e)}function u2(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const s=t[n];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var d2=rb,ob=sb;const h2=d2,f2=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>o.jsx(ob,{ref:n,sideOffset:e,className:pe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
331de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));f2.displayName=ob.displayName;var eu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tu=typeof window>"u"||"Deno"in globalThis;function or(){}function p2(t,e){return typeof t=="function"?t(e):t}function m2(t){return typeof t=="number"&&t>=0&&t!==1/0}function g2(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ch(t,e){return typeof t=="function"?t(e):t}function y2(t,e){return typeof t=="function"?t(e):t}function Hg(t,e){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:a,stale:l}=t;if(a){if(n){if(e.queryHash!==Np(a,e.options))return!1}else if(!ao(e.queryKey,a))return!1}if(r!=="all"){const c=e.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||s&&s!==e.state.fetchStatus||i&&!i(e))}function Wg(t,e){const{exact:r,status:n,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(io(e.options.mutationKey)!==io(i))return!1}else if(!ao(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||s&&!s(e))}function Np(t,e){return((e==null?void 0:e.queryKeyHashFn)||io)(t)}function io(t){return JSON.stringify(t,(e,r)=>jh(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function ao(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>ao(t[r],e[r])):!1}function lb(t,e){if(t===e)return t;const r=Vg(t)&&Vg(e);if(r||jh(t)&&jh(e)){const n=r?t:Object.keys(t),s=n.length,i=r?e:Object.keys(e),a=i.length,l=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<a;d++){const h=r?d:i[d];(!r&&c.has(h)||r)&&t[h]===void 0&&e[h]===void 0?(l[h]=void 0,u++):(l[h]=lb(t[h],e[h]),l[h]===t[h]&&t[h]!==void 0&&u++)}return s===a&&u===s?t:l}return e}function Vg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function jh(t){if(!qg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!qg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function qg(t){return Object.prototype.toString.call(t)==="[object Object]"}function v2(t){return new Promise(e=>{setTimeout(e,t)})}function x2(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?lb(t,e):e}function w2(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function b2(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var Ap=Symbol();function cb(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Ap?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var ms,xn,Ti,av,k2=(av=class extends eu{constructor(){super();ye(this,ms);ye(this,xn);ye(this,Ti);se(this,Ti,e=>{if(!tu&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,xn)||this.setEventListener(E(this,Ti))}onUnsubscribe(){var e;this.hasListeners()||((e=E(this,xn))==null||e.call(this),se(this,xn,void 0))}setEventListener(e){var r;se(this,Ti,e),(r=E(this,xn))==null||r.call(this),se(this,xn,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){E(this,ms)!==e&&(se(this,ms,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof E(this,ms)=="boolean"?E(this,ms):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ms=new WeakMap,xn=new WeakMap,Ti=new WeakMap,av),ub=new k2,Ei,wn,Ni,ov,S2=(ov=class extends eu{constructor(){super();ye(this,Ei,!0);ye(this,wn);ye(this,Ni);se(this,Ni,e=>{if(!tu&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 19,489 bytes, line 331
331)}}})}onSubscribe(){E(this,wn)||this.setEventListener(E(this,Ni))}onUnsubscribe(){var e;this.hasListeners()||((e=E(this,wn))==null||e.call(this),se(this,wn,void 0))}setEventListener(e){var r;se(this,Ni,e),(r=E(this,wn))==null||r.call(this),se(this,wn,e(this.setOnline.bind(this)))}setOnline(e){E(this,Ei)!==e&&(se(this,Ei,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return E(this,Ei)}},Ei=new WeakMap,wn=new WeakMap,Ni=new WeakMap,ov),fc=new S2;function _2(){let t,e;const r=new Promise((s,i)=>{t=s,e=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),t(s)},r.reject=s=>{n({status:"rejected",reason:s}),e(s)},r}function C2(t){return Math.min(1e3*2**t,3e4)}function db(t){return(t??"online")==="online"?fc.isOnline():!0}var hb=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Yu(t){return t instanceof hb}function fb(t){let e=!1,r=0,n=!1,s;const i=_2(),a=g=>{var b;n||(p(new hb(g)),(b=t.abort)==null||b.call(t))},l=()=>{e=!0},c=()=>{e=!1},u=()=>ub.isFocused()&&(t.networkMode==="always"||fc.isOnline())&&t.canRun(),d=()=>db(t.networkMode)&&t.canRun(),h=g=>{var b;n||(n=!0,(b=t.onSuccess)==null||b.call(t,g),s==null||s(),i.resolve(g))},p=g=>{var b;n||(n=!0,(b=t.onError)==null||b.call(t,g),s==null||s(),i.reject(g))},f=()=>new Promise(g=>{var b;s=y=>{(n||u())&&g(y)},(b=t.onPause)==null||b.call(t)}).then(()=>{var g;s=void 0,n||(g=t.onContinue)==null||g.call(t)}),w=()=>{if(n)return;let g;const b=r===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(h).catch(y=>{var C;if(n)return;const m=t.retry??(tu?0:3),v=t.retryDelay??C2,k=typeof v=="function"?v(r,y):v,S=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,y);if(e||!S){p(y);return}r++,(C=t.onFail)==null||C.call(t,r,y),v2(k).then(()=>u()?void 0:f()).then(()=>{e?p(y):w()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():f().then(w),i)}}var j2=t=>setTimeout(t,0);function T2(){let t=[],e=0,r=l=>{l()},n=l=>{l()},s=j2;const i=l=>{e?t.push(l):s(()=>{r(l)})},a=()=>{const l=t;t=[],l.length&&s(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var gt=T2(),gs,lv,pb=(lv=class{constructor(){ye(this,gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m2(this.gcTime)&&se(this,gs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(tu?1/0:5*60*1e3))}clearGcTimeout(){E(this,gs)&&(clearTimeout(E(this,gs)),se(this,gs,void 0))}},gs=new WeakMap,lv),Ai,ys,Ht,vs,dt,wo,xs,cr,Ur,cv,E2=(cv=class extends pb{constructor(e){super();ye(this,cr);ye(this,Ai);ye(this,ys);ye(this,Ht);ye(this,vs);ye(this,dt);ye(this,wo);ye(this,xs);se(this,xs,!1),se(this,wo,e.defaultOptions),this.setOptions(e.options),this.observers=[],se(this,vs,e.client),se(this,Ht,E(this,vs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,se(this,Ai,A2(this.options)),this.state=e.state??E(this,Ai),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=E(this,dt))==null?void 0:e.promise}setOptions(e){this.options={...E(this,wo),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Ht).remove(this)}setData(e,r){const n=x2(this.state.data,e,this.options);return lt(this,cr,Ur).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){lt(this,cr,Ur).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,s;const r=(n=E(this,dt))==null?void 0:n.promise;return(s=E(this,dt))==null||s.cancel(e),r?r.then(or).catch(or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,Ai))}isActive(){return this.observers.some(e=>y2(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ap||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ch(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!g2(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),E(this,Ht).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(E(this,dt)&&(E(this,xs)?E(this,dt).cancel({revert:!0}):E(this,dt).cancelRetry()),this.scheduleGc()),E(this,Ht).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,cr,Ur).call(this,{type:"invalidate"})}fetch(e,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(E(this,dt))return E(this,dt).continueRetry(),E(this,dt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(se(this,xs,!0),n.signal)})},i=()=>{const p=cb(this.options,r),w=(()=>{const g={client:E(this,vs),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return se(this,xs,!1),this.options.persister?this.options.persister(p,w,this):p(w)},l=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,vs),state:this.state,fetchFn:i};return s(p),p})();(u=this.options.behavior)==null||u.onFetch(l,this),se(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&lt(this,cr,Ur).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=p=>{var f,w,g,b;Yu(p)&&p.silent||lt(this,cr,Ur).call(this,{type:"error",error:p}),Yu(p)||((w=(f=E(this,Ht).config).onError)==null||w.call(f,p,this),(b=(g=E(this,Ht).config).onSettled)==null||b.call(g,this.state.data,p,this)),this.scheduleGc()};return se(this,dt,fb({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,w,g,b;if(p===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(y){c(y);return}(w=(f=E(this,Ht).config).onSuccess)==null||w.call(f,p,this),(b=(g=E(this,Ht).config).onSettled)==null||b.call(g,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,f)=>{lt(this,cr,Ur).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{lt(this,cr,Ur).call(this,{type:"pause"})},onContinue:()=>{lt(this,cr,Ur).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),E(this,dt).start()}},Ai=new WeakMap,ys=new WeakMap,Ht=new WeakMap,vs=new WeakMap,dt=new WeakMap,wo=new WeakMap,xs=new WeakMap,cr=new WeakSet,Ur=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...N2(n.data,this.options),fetchMeta:e.meta??null};case"success":return se(this,ys,void 0),{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Yu(s)&&s.revert&&E(this,ys)?{...E(this,ys),fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,Ht).notify({query:this,type:"updated",action:e})})},cv);function N2(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:db(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function A2(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 _r,uv,P2=(uv=class extends eu{constructor(e={}){super();ye(this,_r);this.config=e,se(this,_r,new Map)}build(e,r,n){const s=r.queryKey,i=r.queryHash??Np(s,r);let a=this.get(i);return a||(a=new E2({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){E(this,_r).has(e.queryHash)||(E(this,_r).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=E(this,_r).get(e.queryHash);r&&(e.destroy(),r===e&&E(this,_r).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return E(this,_r).get(e)}getAll(){return[...E(this,_r).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Hg(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>Hg(e,n)):r}notify(e){gt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_r=new WeakMap,uv),Cr,pt,ws,jr,un,dv,R2=(dv=class extends pb{constructor(e){super();ye(this,jr);ye(this,Cr);ye(this,pt);ye(this,ws);this.mutationId=e.mutationId,se(this,pt,e.mutationCache),se(this,Cr,[]),this.state=e.state||O2(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){E(this,Cr).includes(e)||(E(this,Cr).push(e),this.clearGcTimeout(),E(this,pt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){se(this,Cr,E(this,Cr).filter(r=>r!==e)),this.scheduleGc(),E(this,pt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){E(this,Cr).length||(this.state.status==="pending"?this.scheduleGc():E(this,pt).remove(this))}continue(){var e;return((e=E(this,ws))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,l,c,u,d,h,p,f,w,g,b,y,m,v,k,S,C,_,j;const r=()=>{lt(this,jr,un).call(this,{type:"continue"})};se(this,ws,fb({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(A,R)=>{lt(this,jr,un).call(this,{type:"failed",failureCount:A,error:R})},onPause:()=>{lt(this,jr,un).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,pt).canRun(this)}));const n=this.state.status==="pending",s=!E(this,ws).canStart();try{if(n)r();else{lt(this,jr,un).call(this,{type:"pending",variables:e,isPaused:s}),await((a=(i=E(this,pt).config).onMutate)==null?void 0:a.call(i,e,this));const R=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,e));R!==this.state.context&&lt(this,jr,un).call(this,{type:"pending",context:R,variables:e,isPaused:s})}const A=await E(this,ws).start();return await((d=(u=E(this,pt).config).onSuccess)==null?void 0:d.call(u,A,e,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,A,e,this.state.context)),await((w=(f=E(this,pt).config).onSettled)==null?void 0:w.call(f,A,null,this.state.variables,this.state.context,this)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,A,null,e,this.state.context)),lt(this,jr,un).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(y=E(this,pt).config).onError)==null?void 0:m.call(y,A,e,this.state.context,this)),await((k=(v=this.options).onError)==null?void 0:k.call(v,A,e,this.state.context)),await((C=(S=E(this,pt).config).onSettled)==null?void 0:C.call(S,void 0,A,this.state.variables,this.state.context,this)),await((j=(_=this.options).onSettled)==null?void 0:j.call(_,void 0,A,e,this.state.context)),A}finally{lt(this,jr,un).call(this,{type:"error",error:A})}}finally{E(this,pt).runNext(this)}}},Cr=new WeakMap,pt=new WeakMap,ws=new WeakMap,jr=new WeakSet,un=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),gt.batch(()=>{E(this,Cr).forEach(n=>{n.onMutationUpdate(e)}),E(this,pt).notify({mutation:this,type:"updated",action:e})})},dv);function O2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wr,ur,bo,hv,I2=(hv=class extends eu{constructor(e={}){super();ye(this,Wr);ye(this,ur);ye(this,bo);this.config=e,se(this,Wr,new Set),se(this,ur,new Map),se(this,bo,0)}build(e,r,n){const s=new R2({mutationCache:this,mutationId:++Do(this,bo)._,options:e.defaultMutationOptions(r),state:n});return this.add(s),s}add(e){E(this,Wr).add(e);const r=al(e);if(typeof r=="string"){const n=E(this,ur).get(r);n?n.push(e):E(this,ur).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(E(this,Wr).delete(e)){const r=al(e);if(typeof r=="string"){const n=E(this,ur).get(r);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&E(this,ur).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=al(e);if(typeof r=="string"){const n=E(this,ur).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var n;const r=al(e);if(typeof r=="string"){const s=(n=E(this,ur).get(r))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){gt.batch(()=>{E(this,Wr).forEach(e=>{this.notify({type:"removed",mutation:e})}),E(this,Wr).clear(),E(this,ur).clear()})}getAll(){return Array.from(E(this,Wr))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Wg(r,n))}findAll(e={}){return this.getAll().filter(r=>Wg(e,r))}notify(e){gt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return gt.batch(()=>Promise.all(e.map(r=>r.continue().catch(or))))}},Wr=new WeakMap,ur=new WeakMap,bo=new WeakMap,hv);function al(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Kg(t){return{onFetch:(e,r)=>{var d,h,p,f,w;const n=e.options,s=(p=(h=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((f=e.state.data)==null?void 0:f.pages)||[],a=((w=e.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},y=cb(e.options,e.fetchOptions),m=async(v,k,S)=>{if(g)return Promise.reject();if(k==null&&v.pages.length)return Promise.resolve(v);const _=(()=>{const z={client:e.client,queryKey:e.queryKey,pageParam:k,direction:S?"backward":"forward",meta:e.options.meta};return b(z),z})(),j=await y(_),{maxPages:A}=e.options,R=S?b2:w2;return{pages:R(v.pages,j,A),pageParams:R(v.pageParams,k,A)}};if(s&&i.length){const v=s==="backward",k=v?M2:Gg,S={pages:i,pageParams:a},C=k(n,S);l=await m(S,C,v)}else{const v=t??i.length;do{const k=c===0?a[0]??n.initialPageParam:Gg(n,l);if(c>0&&k==null)break;l=await m(l,k),c++}while(c<v)}return l};e.options.persister?e.fetchFn=()=>{var g,b;return(b=(g=e.options).persister)==null?void 0:b.call(g,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=u}}}function Gg(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function M2(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var Ue,bn,kn,Pi,Ri,Sn,Oi,Ii,fv,L2=(fv=class{constructor(t={}){ye(this,Ue);ye(this,bn);ye(this,kn);ye(this,Pi);ye(this,Ri);ye(this,Sn);ye(this,Oi);ye(this,Ii);se(this,Ue,t.queryCache||new P2),se(this,bn,t.mutationCache||new I2),se(this,kn,t.defaultOptions||{}),se(this,Pi,new Map),se(this,Ri,new Map),se(this,Sn,0)}mount(){Do(this,Sn)._++,E(this,Sn)===1&&(se(this,Oi,ub.subscribe(async t=>{t&&(await this.resumePausedMutations(),E(this,Ue).onFocus())})),se(this,Ii,fc.subscribe(async t=>{t&&(await this.resumePausedMutations(),E(this,Ue).onOnline())})))}unmount(){var t,e;Do(this,Sn)._--,E(this,Sn)===0&&((t=E(this,Oi))==null||t.call(this),se(this,Oi,void 0),(e=E(this,Ii))==null||e.call(this),se(this,Ii,void 0))}isFetching(t){return E(this,Ue).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return E(this,bn).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=E(this,Ue).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=E(this,Ue).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Ch(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return E(this,Ue).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),s=E(this,Ue).get(n.queryHash),i=s==null?void 0:s.state.data,a=p2(e,i);if(a!==void 0)return E(this,Ue).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(t,e,r){return gt.batch(()=>E(this,Ue).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=E(this,Ue).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=E(this,Ue);gt.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=E(this,Ue);return gt.batch(()=>(r.findAll(t).forEach(n=>
331{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=gt.batch(()=>E(this,Ue).findAll(t).map(s=>s.cancel(r)));return Promise.all(n).then(or).catch(or)}invalidateQueries(t,e={}){return gt.batch(()=>(E(this,Ue).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=gt.batch(()=>E(this,Ue).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(or)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(or)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=E(this,Ue).build(this,e);return r.isStaleByTime(Ch(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(or).catch(or)}fetchInfiniteQuery(t){return t.behavior=Kg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(or).catch(or)}ensureInfiniteQueryData(t){return t.behavior=Kg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return fc.isOnline()?E(this,bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ue)}getMutationCache(){return E(this,bn)}getDefaultOptions(){return E(this,kn)}setDefaultOptions(t){se(this,kn,t)}setQueryDefaults(t,e){E(this,Pi).set(io(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...E(this,Pi).values()],r={};return e.forEach(n=>
331{ao(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){E(this,Ri).set(io(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...E(this,Ri).values()],r={};return e.forEach(n=>{ao(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...E(this,kn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Np(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Ap&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...E(this,kn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){E(this,Ue).clear(),E(this,bn).clear()}},Ue=new WeakMap,bn=new WeakMap,kn=new WeakMap,Pi=new WeakMap,Ri=new WeakMap,Sn=new WeakMap,Oi=new WeakMap,Ii=new WeakMap,fv),D2=x.createContext(void 0),$2=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),o.jsx(D2.Provider,{value:t,children:e}));/**
332 * @remix-run/router v1.23.0
333 *
334 * Copyright (c) Remix Software Inc.
335 *
336 * This source code is licensed under the MIT license found in the
337 * LICENSE.md file in the root directory of this source tree.
338 *
339 * @license MIT
340 */function oo(){return oo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oo.apply(this,arguments)}var jn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(jn||(jn={}));const Jg="popstate";function U2(t){t===void 0&&(t={});function e(n,s){let{pathname:i,search:a,hash:l}=n.location;return Th("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:pc(s)}return B2(e,r,null,t)}function qe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function mb(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function F2(){return Math.random().toString(36).substr(2,8)}function Zg(t,e){return{usr:t.state,key:t.key,idx:e}}function Th(t,e,r,n){return r===void 0&&(r=null),oo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ea(e):e,{state:r,key:e&&e.key||n||F2()})}function pc(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ea(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function B2(t,e,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,a=s.history,l=jn.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(oo({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function h(){l=jn.Pop;let b=d(),y=b==null?null:b-u;u=b,c&&c({action:l,location:g.location,delta:y})}function p(b,y){l=jn.Push;let m=Th(g.location,b,y);u=d()+1;let v=Zg(m,u),k=g.createHref(m);try{a.pushState(v,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&c&&c({action:l,location:g.location,delta:1})}function f(b,y){l=jn.Replace;let m=Th(g.location,b,y);u=d();let v=Zg(m,u),k=g.createHref(m);a.replaceState(v,"",k),i&&c&&c({action:l,location:g.location,delta:0})}function w(b){let y=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:pc(b);return m=m.replace(/ $/,"%20"),qe(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let g={get action(){return l},get location(){return t(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Jg,h),c=b,()=>{s.removeEventListener(Jg,h),c=null}},createHref(b){return e(s,b)},createURL:w,encodeLocation(b){let y=w(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:f,go(b){return a.go(b)}};return g}var Qg;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Qg||(Qg={}));function z2(t,e,r){return r===void 0&&(r="/"),H2(t,e,r,!1)}function H2(t,e,r,n){let s=typeof e=="string"?ea(e):e,i=Pp(s.pathname||"/",r);if(i==null)return null;let a=gb(t);W2(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=tA(i);l=X2(a[c],u,n)}return l}function gb(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};
vendor: 15,760 bytes, lines 340-358
340c.relativePath.startsWith("/")&&(qe(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=Ln([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(qe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),gb(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Q2(u,i.index),routesMeta:d})};return t.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let c of yb(i.path))s(i,a,c)}),e}function yb(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let a=yb(n.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function W2(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Y2(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const V2=/^:[\w-]+$/,q2=3,K2=2,G2=1,J2=10,Z2=-2,Yg=t=>t==="*";function Q2(t,e){let r=t.split("/"),n=r.length;return r.some(Yg)&&(n+=Z2),e&&(n+=K2),r.filter(s=>!Yg(s)).reduce((s,i)=>s+(V2.test(i)?q2:i===""?G2:J2),n)}function Y2(t,e){return t.length===e.length&&t.slice(0,-1).every((n,s)=>n===e[s])?t[t.length-1]-e[e.length-1]:0}function X2(t,e,r){let{routesMeta:n}=t,s={},i="/",a=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",h=Xg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=Xg({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(s,h.params),a.push({params:s,pathname:Ln([i,h.pathname]),pathnameBase:iA(Ln([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=Ln([i,h.pathnameBase]))}return a}function Xg(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=eA(t.path,t.caseSensitive,t.end),s=e.match(r);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let g=l[h]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=l[h];return f&&!w?u[p]=void 0:u[p]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:t}}function eA(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),mb(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),n]}function tA(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return mb(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Pp(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function rA(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:s=""}=typeof t=="string"?ea(t):t;return{pathname:r?r.startsWith("/")?r:nA(r,e):e,search:aA(n),hash:oA(s)}}function nA(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Xu(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 sA(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function vb(t,e){let r=sA(t);return e?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xb(t,e,r,n){n===void 0&&(n=!1);let s;typeof t=="string"?s=ea(t):(s=oo({},t),qe(!s.pathname||!s.pathname.includes("?"),Xu("?","pathname","search",s)),qe(!s.pathname||!s.pathname.includes("#"),Xu("#","pathname","hash",s)),qe(!s.search||!s.search.includes("#"),Xu("#","search","hash",s)));let i=t===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=r;else{let h=e.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}l=h>=0?e[h]:"/"}let c=rA(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Ln=t=>t.join("/").replace(/\/\/+/g,"/"),iA=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),aA=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,oA=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function lA(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const wb=["post","put","patch","delete"];new Set(wb);const cA=["get",...wb];new Set(cA);/**
341 * React Router v6.30.1
342 *
343 * Copyright (c) Remix Software Inc.
344 *
345 * This source code is licensed under the MIT license found in the
346 * LICENSE.md file in the root directory of this source tree.
347 *
348 * @license MIT
349 */function lo(){return lo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lo.apply(this,arguments)}const Rp=x.createContext(null),uA=x.createContext(null),Ls=x.createContext(null),ru=x.createContext(null),Jn=x.createContext({outlet:null,matches:[],isDataRoute:!1}),bb=x.createContext(null);function dA(t,e){let{relative:r}=e===void 0?{}:e;Io()||qe(!1);let{basename:n,navigator:s}=x.useContext(Ls),{hash:i,pathname:a,search:l}=Sb(t,{relative:r}),c=a;return n!=="/"&&(c=a==="/"?n:Ln([n,a])),s.createHref({pathname:c,search:l,hash:i})}function Io(){return x.useContext(ru)!=null}function Zn(){return Io()||qe(!1),x.useContext(ru).location}function kb(t){x.useContext(Ls).static||x.useLayoutEffect(t)}function hA(){let{isDataRoute:t}=x.useContext(Jn);return t?jA():fA()}function fA(){Io()||qe(!1);let t=x.useContext(Rp),{basename:e,future:r,navigator:n}=x.useContext(Ls),{matches:s}=x.useContext(Jn),{pathname:i}=Zn(),a=JSON.stringify(vb(s,r.v7_relativeSplatPath)),l=x.useRef(!1);return kb(()=>{l.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let h=xb(u,JSON.parse(a),i,d.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:Ln([e,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[e,n,a,i,t])}function pA(){let{matches:t}=x.useContext(Jn),e=t[t.length-1];return e?e.params:{}}function Sb(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=x.useContext(Ls),{matches:s}=x.useContext(Jn),{pathname:i}=Zn(),a=JSON.stringify(vb(s,n.v7_relativeSplatPath));return x.useMemo(()=>xb(t,JSON.parse(a),i,r==="path"),[t,a,i,r])}function mA(t,e){return gA(t,e)}function gA(t,e,r,n){Io()||qe(!1);let{navigator:s}=x.useContext(Ls),{matches:i}=x.useContext(Jn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Zn(),d;if(e){var h;let b=typeof e=="string"?ea(e):e;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||qe(!1),d=b}else d=u;let p=d.pathname||"/",f=p;if(c!=="/"){let b=c.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=z2(t,{pathname:f}),g=bA(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Ln([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Ln([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,r,n);return e&&g?x.createElement(ru.Provider,{value:{location:lo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:jn.Pop}},g):g}function yA(){let t=CA(),e=lA(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),r?x.createElement("pre",{style:s},r):null,null)}const vA=x.createElement(yA,null);class xA extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?x.createElement(Jn.Provider,{value:this.props.routeContext},x.createElement(bb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wA(t){let{routeContext:e,match:r,children:n}=t,s=x.useContext(Rp);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(Jn.Provider,{value:e},n)}function bA(t,e,r,n){var s;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if(!r)return null;if(r.errors)t=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let a=t,l=(s=r)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||qe(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:p,errors:f}=r,w=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||w){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,h,p)=>{let f,w=!1,g=null,b=null;r&&(f=l&&h.route.id?l[h.route.id]:void 0,g=h.route.errorElement||vA,c&&(u<0&&p===0?(w=!0,b=null):u===p&&(w=!0,b=h.route.hydrateFallbackElement||null)));let y=e.concat(a.slice(0,p+1)),m=()=>{let v;return f?v=g:w?v=b:h.route.Component?v=x.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=d,x.createElement(wA,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:v})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?x.createElement(xA,{location:r.location,revalidation:r.revalidation,component:g,error:f,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var _b=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(_b||{}),mc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(mc||{});function kA(t){let e=x.useContext(Rp);return e||qe(!1),e}function SA(t){let e=x.useContext(uA);return e||qe(!1),e}function _A(t){let e=x.useContext(Jn);return e||qe(!1),e}function Cb(t){let e=_A(),r=e.matches[e.matches.length-1];return r.route.id||qe(!1),r.route.id}function CA(){var t;let e=x.useContext(bb),r=SA(mc.UseRouteError),n=Cb(mc.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function jA(){let{router:t}=kA(_b.UseNavigateStable),e=Cb(mc.UseNavigateStable),r=x.useRef(!1);return kb(()=>{r.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,lo({fromRouteId:e},i)))},[t,e])}function TA(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Qe(t){qe(!1)}function EA(t){let{basename:e="/",children:r=null,location:n,navigationType:s=jn.Pop,navigator:i,static:a=!1,future:l}=t;Io()&&qe(!1);let c=e.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:c,navigator:i,static:a,future:lo({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof n=="string"&&(n=ea(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:w="default"}=n,g=x.useMemo(()=>{let b=Pp(d,c);return b==null?null:{location:{pathname:b,search:h,hash:p,state:f,key:w},navigationType:s}},[c,d,h,p,f,w,s]);return g==null?null:x.createElement(Ls.Provider,{value:u},x.createElement(ru.Provider,{children:r,value:g}))}function NA(t){let{children:e,location:r}=t;return mA(Eh(e),r)}new Promise(()=>{});function Eh(t,e){e===void 0&&(e=[]);let r=[];return x.Children.forEach(t,(n,s)=>{if(!x.isValidElement(n))return;let i=[...e,s];if(n.type===x.Fragment){r.push.apply(r,Eh(n.props.children,i));return}n.type!==Qe&&qe(!1),!n.props.index||!n.props.children||qe(!1);let a={id:n.props.id||i.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&&(a.children=Eh(n.props.children,i)),r.push(a)}),r}/**
350 * React Router DOM v6.30.1
351 *
352 * Copyright (c) Remix Software Inc.
353 *
354 * This source code is licensed under the MIT license found in the
355 * LICENSE.md file in the root directory of this source tree.
356 *
357 * @license MIT
358 */function Nh(){return Nh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nh.apply(this,arguments)}function AA(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function PA(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function RA(t,e){return t.button===0&&(!e||e==="_self")&&!PA(t)}const OA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IA="6";try{window.__reactRouterVersion=IA}catch{}const MA="startTransition",ey=gf[MA];function LA(t){let{basename:e,children:r,future:n,window:s}=t,i=x.useRef();i.current==null&&(i.current=U2({window:s,v5Compat:!0}));let a=i.current,[l,c]=x.useState({action:a.action,location:a.location}),{v7_startTransition:u}=n||{},d=x.useCallback(h=>{u&&ey?ey(()=>c(h)):c(h)},[c,u]);return x.useLayoutEffect(()=>a.listen(d),[a,d]),x.useEffect(()=>TA(n),[n]),x.createElement(EA,{basename:e,children:r,location:l.location,navigationType:l.action,navigator:a,future:n})}const DA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,he=x.forwardRef(function(e,r){let{onClick:n,relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}
358=e,p=AA(e,OA),{basename:f}=x.useContext(Ls),w,g=!1;if(typeof u=="string"&&$A.test(u)&&(w=u,DA))try{let v=new URL(window.location.href),k=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=Pp(k.pathname,f);k.origin===v.origin&&S!=null?u=S+k.search+k.hash:g=!0}catch{}let b=dA(u,{relative:s}),y=UA(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:h});function m(v){n&&n(v),v.defaultPrevented||y(v)}return x.createElement("a",Nh({},p,{href:w||b,onClick:g||i?n:m,ref:r,target:c}))});var ty;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ty||(ty={}));var ry;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(ry||(ry={}));function UA(t,e){let{target:r,replace:n,state:s,preventScrollReset:i,relative:a,viewTransition:l}=e===void 0?{}:e,c=hA(),u=Zn(),d=Sb(t,{relative:a});return x.useCallback(h=>{if(RA(h,r)){h.preventDefault();let p=n!==void 0?n:pc(u)===pc(d);c(t,{replace:p,state:s,preventScrollReset:i,relative:a,viewTransition:l})}},[u,c,d,n,s,r,t,i,a,l])}function FA(){const{pathname:t}=Zn();return x.useEffect(()=>{window.scrollTo(0,0)},[t]),null}var ve;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function r(s){throw new Error}t.assertNever=r,t.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),a={};for(const l of i)a[l]=s[l];return t.objectValues(a)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},t.find=(s,i)=>{for(const a of s)if(i(a))return a},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}t.joinValues=n,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ve||(ve={}));var ny;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(ny||(ny={}));const B=ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pn=t=>{switch(typeof t){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(t)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":return Array.isArray(t)?B.array:t===null?B.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?B.promise:typeof Map<"u"&&t instanceof Map?B.map:typeof Set<"u"&&t instanceof Set?B.set:typeof Date<"u"&&t instanceof Date?B.date:B.object;default:return B.unknown}}
vendor: 5,705 bytes, line 358
358,I=ve.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Mr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},n={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let l=n,c=0;for(;c<a.path.length;){const u=a.path[c];c===a.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(r(a))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return s(this),n}static assert(e){if(!(e instanceof Mr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];r[i]=r[i]||[],r[i].push(e(s))}else n.push(e(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Mr.create=t=>new Mr(t);const Ah=(t,e)=>{let r;switch(t.code){case I.invalid_type:t.received===B.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case I.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ve.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:r=`Unrecognized key(s) in object: ${ve.joinValues(t.keys,", ")}`;break;case I.invalid_union:r="Invalid input";break;case I.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ve.joinValues(t.options)}`;break;case I.invalid_enum_value:r=`Invalid enum value. Expected ${ve.joinValues(t.options)}, received '${t.received}'`;break;case I.invalid_arguments:r="Invalid function arguments";break;case I.invalid_return_type:r="Invalid function return type";break;case I.invalid_date:r="Invalid date";break;case I.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ve.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case I.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case I.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case I.custom:r="Invalid input";break;case I.invalid_intersection_types:r="Intersection results could not be merged";break;case I.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case I.not_finite:r="Number must be finite";break;default:r=e.defaultError,ve.assertNever(t)}return{message:r}};let BA=Ah;function zA(){return BA}const HA=t=>{const{data:e,path:r,errorMaps:n,issueData:s}=t,i=[...r,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=n.filter(u=>!!u).slice().reverse();for(const u of c)l=u(a,{data:e,defaultError:l}).message;return{...s,path:i,message:l}};function U(t,e){const r=zA(),n=HA({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Ah?void 0:Ah].filter(s=>!!s)});t.common.issues.push(n)}class Lt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const s of r){if(s.status==="aborted")return ee;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const s of r){const i=await s.key,a=await s.value;n.push({key:i,value:a})}return Lt.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const s of r){const{key:i,value:a}=s;
vendor: 28,053 bytes, line 358
358if(i.status==="aborted"||a.status==="aborted")return ee;i.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(n[i.value]=a.value)}return{status:e.value,value:n}}}const ee=Object.freeze({status:"aborted"}),ba=t=>({status:"dirty",value:t}),Zt=t=>({status:"valid",value:t}),sy=t=>t.status==="aborted",iy=t=>t.status==="dirty",Wi=t=>t.status==="valid",gc=t=>typeof Promise<"u"&&t instanceof Promise;var W;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));class Hn{constructor(e,r,n,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ay=(t,e)=>{if(Wi(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Mr(t.common.issues);return this._error=r,this._error}}};function le(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:s}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(a,l)=>{const{message:c}=t;return a.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??n??l.defaultError}:a.code!=="invalid_type"?{message:l.defaultError}:{message:c??r??l.defaultError}},description:s}}class me{get description(){return this._def.description}_getType(e){return pn(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:pn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Lt,ctx:{common:e.parent.common,data:e.data,parsedType:pn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(gc(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pn(e)},s=this._parseSync({data:e,path:n.path,parent:n});return ay(n,s)}"~validate"(e){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pn(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return Wi(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(s=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>Wi(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pn(e)},s=this._parse({data:e,path:n.path,parent:n}),i=await(gc(s)?s:Promise.resolve(s));return ay(n,i)}refine(e,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const a=e(s),l=()=>i.addIssue({code:I.custom,...n(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(l(),!1)):a?!0:(l(),!1)})}refinement(e,r){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(e){return new qi({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Dn.create(this,this._def)}nullable(){return Ki.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Or.create(this)}promise(){return wc.create(this,this._def)}or(e){return vc.create([this,e],this._def)}and(e){return xc.create(this,e,this._def)}transform(e){return new qi({...le(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Rh({...le(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new hP({typeName:te.ZodBranded,type:this,...le(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Oh({...le(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Op.create(this,e)}readonly(){return Ih.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const WA=/^c[^\s-]{8,}$/i,VA=/^[0-9a-z]+$/,qA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,KA=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,GA=/^[a-z0-9_-]{21}$/i,JA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ZA=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,QA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ed;const XA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tP=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rP=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,jb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",iP=new RegExp(`^${jb}$`);function Tb(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function aP(t){return new RegExp(`^${Tb(t)}$`)}function oP(t){let e=`${jb}T${Tb(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function lP(t,e){return!!((e==="v4"||!e)&&XA.test(t)||(e==="v6"||!e)&&tP.test(t))}function cP(t,e){if(!JA.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function uP(t,e){return!!((e==="v4"||!e)&&eP.test(t)||(e==="v6"||!e)&&rP.test(t))}class Tn extends me{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==B.string){const i=this._getOrReturnCtx(e);return U(i,{code:I.invalid_type,expected:B.string,received:i.parsedType}),ee}const n=new Lt;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),U(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),U(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const a=e.data.length>i.value,l=e.data.length<i.value;(a||l)&&(s=this._getOrReturnCtx(e,s),a?U(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&U(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")QA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"email",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ed||(ed=new RegExp(YA,"u")),ed.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"emoji",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")KA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"uuid",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")GA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"nanoid",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")WA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"cuid",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")VA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"cuid2",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")qA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"ulid",code:I.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),U(s,{validation:"url",code:I.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"regex",code:I.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?oP(i).test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?iP.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?aP(i).test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{code:I.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?ZA.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"duration",code:I.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?lP(e.data,i.version)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"ip",code:I.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?cP(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"jwt",code:I.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?uP(e.data,i.version)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"cidr",code:I.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?nP.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"base64",code:I.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?sP.test(e.data)||(s=this._getOrReturnCtx(e,s),U(s,{validation:"base64url",code:I.invalid_string,message:i.message}),n.dirty()):ve.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(s=>e.test(s),{validation:r,code:I.invalid_string,...W.errToObj(n)})}_addCheck(e){return new Tn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...W.errToObj(e)})}url(e){return this._addCheck({kind:"url",...W.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...W.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...W.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...W.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...W.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...W.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...W.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...W.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...W.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...W.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...W.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...W.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...W.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...W.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...W.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...W.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...W.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...W.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...W.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...W.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...W.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...W.errToObj(r)})}nonempty(e){return this.min(1,W.errToObj(e))}trim(){return new Tn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Tn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Tn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Tn.create=t=>new Tn({checks:[],typeName:te.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...le(t)});function dP(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(t.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return i%a/10**s}class co extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==B.number){const i=this._getOrReturnCtx(e);return U(i,{code:I.invalid_type,expected:B.number,received:i.parsedType}),ee}let n;const s=new Lt;for(const i of this._def.checks)i.kind==="int"?ve.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),U(n,{code:I.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?dP(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),U(n,{code:I.not_finite,message:i.message}),s.dirty()):ve.assertNever(i);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,W.toString(r))}gt(e,r){return this.setLimit("min",e,!1,W.toString(r))}lte(e,r){return this.setLimit("max",e,!0,W.toString(r))}lt(e,r){return this.setLimit("max",e,!1,W.toString(r))}setLimit(e,r,n,s){return new co({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:W.toString(s)}]})}_addCheck(e){return new co({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:W.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:W.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ve.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}co.create=t=>new co({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...le(t)});class uo extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==B.bigint)return this._getInvalidInput(e);let n;const s=new Lt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),U(n,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ve.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return U(r,{code:I.invalid_type,expected:B.bigint,received:r.parsedType}),ee}gte(e,r){return this.setLimit("min",e,!0,W.toString(r))}gt(e,r){return this.setLimit("min",e,!1,W.toString(r))}lte(e,r){return this.setLimit("max",e,!0,W.toString(r))}lt(e,r){return this.setLimit("max",e,!1,W.toString(r))}setLimit(e,r,n,s){return new uo({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:W.toString(s)}]})}_addCheck(e){return new uo({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}uo.create=t=>new uo({checks:[],typeName:te.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...le(t)});class oy extends me{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==B.boolean){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.boolean,received:n.parsedType}),ee}return Zt(e.data)}}oy.create=t=>new oy({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...le(t)});class yc extends me{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==B.date){const i=this._getOrReturnCtx(e);return U(i,{code:I.invalid_type,expected:B.date,received:i.parsedType}),ee}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return U(i,{code:I.invalid_date}),ee}const n=new Lt;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),U(s,{code:I.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),U(s,{code:I.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):ve.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new yc({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:W.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:W.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}yc.create=t=>new yc({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...le(t)});class ly extends me{_parse(e){if(this._getType(e)!==B.symbol){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.symbol,received:n.parsedType}),ee}return Zt(e.data)}}ly.create=t=>new ly({typeName:te.ZodSymbol,...le(t)});class cy extends me{_parse(e){if(this._getType(e)!==B.undefined){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.undefined,received:n.parsedType}),ee}return Zt(e.data)}}cy.create=t=>new cy({typeName:te.ZodUndefined,...le(t)});class uy extends me{_parse(e){if(this._getType(e)!==B.null){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.null,received:n.parsedType}),ee}return Zt(e.data)}}uy.create=t=>new uy({typeName:te.ZodNull,...le(t)});class dy extends me{constructor(){super(...arguments),this._any=!0}_parse(e){return Zt(e.data)}}dy.create=t=>new dy({typeName:te.ZodAny,...le(t)});class hy extends me{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Zt(e.data)}}hy.create=t=>new hy({typeName:te.ZodUnknown,...le(t)});class Wn extends me{_parse(e){const r=this._getOrReturnCtx(e);return U(r,{code:I.invalid_type,expected:B.never,received:r.parsedType}),ee}}Wn.create=t=>new Wn({typeName:te.ZodNever,...le(t)});class fy extends me{_parse(e){if(this._getType(e)!==B.undefined){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.void,received:n.parsedType}),ee}return Zt(e.data)}}fy.create=t=>new fy({typeName:te.ZodVoid,...le(t)});class Or extends me{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),s=this._def;if(r.parsedType!==B.array)return U(r,{code:I.invalid_type,expected:B.array,received:r.parsedType}),ee;if(s.exactLength!==null){const a=r.data.length>s.exactLength.value,l=r.data.length<s.exactLength.value;(a||l)&&(U(r,{code:a?I.too_big:I.too_small,minimum:l?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(U(r,{code:I.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(U(r,{code:I.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,l)=>s.type._parseAsync(new Hn(r,a,r.path,l)))).then(a=>Lt.mergeArray(n,a));const i=[...r.data].map((a,l)=>s.type._parseSync(new Hn(r,a,r.path,l)));return Lt.mergeArray(n,i)}
vendor: 5,930 bytes, line 358
358get element(){return this._def.type}min(e,r){return new Or({...this._def,minLength:{value:e,message:W.toString(r)}})}max(e,r){return new Or({...this._def,maxLength:{value:e,message:W.toString(r)}})}length(e,r){return new Or({...this._def,exactLength:{value:e,message:W.toString(r)}})}nonempty(e){return this.min(1,e)}}Or.create=(t,e)=>new Or({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...le(e)});function Ys(t){if(t instanceof Be){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=Dn.create(Ys(n))}return new Be({...t._def,shape:()=>e})}else return t instanceof Or?new Or({...t._def,type:Ys(t.element)}):t instanceof Dn?Dn.create(Ys(t.unwrap())):t instanceof Ki?Ki.create(Ys(t.unwrap())):t instanceof As?As.create(t.items.map(e=>Ys(e))):t}class Be extends me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=ve.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==B.object){const u=this._getOrReturnCtx(e);return U(u,{code:I.invalid_type,expected:B.object,received:u.parsedType}),ee}const{status:n,ctx:s}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),l=[];if(!(this._def.catchall instanceof Wn&&this._def.unknownKeys==="strip"))for(const u in s.data)a.includes(u)||l.push(u);const c=[];for(const u of a){const d=i[u],h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Hn(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof Wn){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")l.length>0&&(U(s,{code:I.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Hn(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key,p=await d.value;u.push({key:h,value:p,alwaysSet:d.alwaysSet})}return u}).then(u=>Lt.mergeObjectSync(n,u)):Lt.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return W.errToObj,new Be({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:W.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new Be({...this._def,unknownKeys:"strip"})}passthrough(){return new Be({...this._def,unknownKeys:"passthrough"})}extend(e){return new Be({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Be({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Be({...this._def,catchall:e})}pick(e){const r={};for(const n of ve.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Be({...this._def,shape:()=>r})}omit(e){const r={};for(const n of ve.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new Be({...this._def,shape:()=>r})}deepPartial(){return Ys(this)}partial(e){const r={};for(const n of ve.objectKeys(this.shape)){const s=this.shape[n];e&&!e[n]?r[n]=s:r[n]=s.optional()}return new Be({...this._def,shape:()=>r})}required(e){const r={};for(const n of ve.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Dn;)i=i._def.innerType;r[n]=i}return new Be({...this._def,shape:()=>r})}keyof(){return Eb(ve.objectKeys(this.shape))}}Be.create=(t,e)=>new Be({shape:()=>t,unknownKeys:"strip",catchall:Wn.create(),typeName:te.ZodObject,...le(e)});Be.strictCreate=(t,e)=>new Be({shape:()=>t,unknownKeys:"strict",catchall:Wn.create(),typeName:te.ZodObject,...le(e)});Be.lazycreate=(t,e)=>new Be({shape:t,unknownKeys:"strip",catchall:Wn.create(),typeName:te.ZodObject,...le(e)});class vc extends me{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function s(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;const a=i.map(l=>new Mr(l.ctx.common.issues));return U(r,{code:I.invalid_union,unionErrors:a}),ee}if(r.common.async)return Promise.all(n.map(async i=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const c of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const l=a.map(c=>new Mr(c));return U(r,{code:I.invalid_union,unionErrors:l}),ee}}get options(){return this._def.options}}vc.create=(t,e)=>new vc({options:t,typeName:te.ZodUnion,...le(e)});function Ph(t,e){const r=pn(t),n=pn(e);if(t===e)return{valid:!0,data:t};if(r===B.object&&n===B.object){const s=ve.objectKeys(e),i=ve.objectKeys(t).filter(l=>s.indexOf(l)!==-1),a={...t,...e};for(const l of i){const c=Ph(t[l],e[l]);if(!c.valid)return{valid:!1};a[l]=c.data}return{valid:!0,data:a}}else if(r===B.array&&n===B.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const a=t[i],l=e[i],c=Ph(a,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===B.date&&n===B.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class xc extends me{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=(i,a)=>
vendor: 1,879 bytes, line 358
358{if(sy(i)||sy(a))return ee;const l=Ph(i.value,a.value);return l.valid?((iy(i)||iy(a))&&r.dirty(),{status:r.value,value:l.data}):(U(n,{code:I.invalid_intersection_types}),ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}xc.create=(t,e,r)=>new xc({left:t,right:e,typeName:te.ZodIntersection,...le(r)});class As extends me{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==B.array)return U(n,{code:I.invalid_type,expected:B.array,received:n.parsedType}),ee;if(n.data.length<this._def.items.length)return U(n,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&n.data.length>this._def.items.length&&(U(n,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((a,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new Hn(n,a,n.path,l)):null}).filter(a=>!!a);return n.common.async?Promise.all(i).then(a=>Lt.mergeArray(r,a)):Lt.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new As({...this._def,rest:e})}}As.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new As({items:t,typeName:te.ZodTuple,rest:null,...le(e)})};class py extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==B.map)return U(n,{code:I.invalid_type,expected:B.map,received:n.parsedType}),ee;const s=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([l,c],u)=>
vendor: 4,152 bytes, line 358
358({key:s._parse(new Hn(n,l,n.path,[u,"key"])),value:i._parse(new Hn(n,c,n.path,[u,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of a){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ee;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const c of a){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ee;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}}}}py.create=(t,e,r)=>new py({valueType:e,keyType:t,typeName:te.ZodMap,...le(r)});class ho extends me{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==B.set)return U(n,{code:I.invalid_type,expected:B.set,received:n.parsedType}),ee;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(U(n,{code:I.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(U(n,{code:I.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function a(c){const u=new Set;for(const d of c){if(d.status==="aborted")return ee;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const l=[...n.data.values()].map((c,u)=>i._parse(new Hn(n,c,n.path,u)));return n.common.async?Promise.all(l).then(c=>a(c)):a(l)}min(e,r){return new ho({...this._def,minSize:{value:e,message:W.toString(r)}})}max(e,r){return new ho({...this._def,maxSize:{value:e,message:W.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}ho.create=(t,e)=>new ho({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...le(e)});class my extends me{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}my.create=(t,e)=>new my({getter:t,typeName:te.ZodLazy,...le(e)});class gy extends me{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return U(r,{received:r.data,code:I.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:e.data}}get value(){return this._def.value}}gy.create=(t,e)=>new gy({value:t,typeName:te.ZodLiteral,...le(e)});function Eb(t,e){return new Vi({values:t,typeName:te.ZodEnum,...le(e)})}class Vi extends me{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return U(r,{expected:ve.joinValues(n),received:r.parsedType,code:I.invalid_type}),ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return U(r,{received:r.data,code:I.invalid_enum_value,options:n}),ee}return Zt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Vi.create(e,{...this._def,...r})}exclude(e,r=this._def){return Vi.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Vi.create=Eb;class yy extends me{_parse(e){const r=ve.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==B.string&&n.parsedType!==B.number){const s=ve.objectValues(r);return U(n,{expected:ve.joinValues(s),received:n.parsedType,code:I.invalid_type}),ee}if(this._cache||(this._cache=new Set(ve.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=ve.objectValues(r);return U(n,{received:n.data,code:I.invalid_enum_value,options:s}),ee}return Zt(e.data)}get enum(){return this._def.values}}yy.create=(t,e)=>new yy({values:t,typeName:te.ZodNativeEnum,...le(e)});class wc extends me{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==B.promise&&r.common.async===!1)return U(r,{code:I.invalid_type,expected:B.promise,received:r.parsedType}),ee;
vendor: 4,089 bytes, line 358
358const n=r.parsedType===B.promise?r.data:Promise.resolve(r.data);return Zt(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}wc.create=(t,e)=>new wc({type:t,typeName:te.ZodPromise,...le(e)});class qi extends me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:a=>{U(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(n.data,i);if(n.common.async)return Promise.resolve(a).then(async l=>{if(r.value==="aborted")return ee;const c=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return c.status==="aborted"?ee:c.status==="dirty"||r.value==="dirty"?ba(c.value):c});{if(r.value==="aborted")return ee;const l=this._def.schema._parseSync({data:a,path:n.path,parent:n});return l.status==="aborted"?ee:l.status==="dirty"||r.value==="dirty"?ba(l.value):l}}if(s.type==="refinement"){const a=l=>{const c=s.refinement(l,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ee:(l.status==="dirty"&&r.dirty(),a(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ee:(l.status==="dirty"&&r.dirty(),a(l.value).then(()=>({status:r.value,value:l.value}))))}if(s.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Wi(a))return ee;const l=s.transform(a.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Wi(a)?Promise.resolve(s.transform(a.value,i)).then(l=>({status:r.value,value:l})):ee);ve.assertNever(s)}}qi.create=(t,e,r)=>new qi({schema:t,typeName:te.ZodEffects,effect:e,...le(r)});qi.createWithPreprocess=(t,e,r)=>new qi({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...le(r)});class Dn extends me{_parse(e){return this._getType(e)===B.undefined?Zt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Dn.create=(t,e)=>new Dn({innerType:t,typeName:te.ZodOptional,...le(e)});class Ki extends me{_parse(e){return this._getType(e)===B.null?Zt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ki.create=(t,e)=>new Ki({innerType:t,typeName:te.ZodNullable,...le(e)});class Rh extends me{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===B.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Rh.create=(t,e)=>new Rh({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...le(e)});class Oh extends me{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return gc(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Mr(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Oh.create=(t,e)=>new Oh({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...le(e)});class vy extends me{_parse(e){if(this._getType(e)!==B.nan){const n=this._getOrReturnCtx(e);return U(n,{code:I.invalid_type,expected:B.nan,received:n.parsedType}),ee}
358return{status:"valid",value:e.data}}}vy.create=t=>new vy({typeName:te.ZodNaN,...le(t)});class hP extends me{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Op extends me{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ee:i.status==="dirty"?(r.dirty(),ba(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ee:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,r){return new Op({in:e,out:r,typeName:te.ZodPipeline})}}class Ih extends me{_parse(e){const r=this._def.innerType._parse(e),n=s=>(Wi(s)&&(s.value=Object.freeze(s.value)),s);return gc(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Ih.create=(t,e)=>new Ih({innerType:t,typeName:te.ZodReadonly,...le(e)});Be.lazycreate;var te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));const Bt=Tn.create;Wn.create;Or.create;const Nb=Be.create;Be.strictCreate;vc.create;xc.create;As.create;Vi.create;wc.create;Dn.create;Ki.create;const fP=fp("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm hover:shadow-md rounded-lg",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 rounded-lg",outline:"border border-border bg-background hover:bg-secondary hover:border-primary/20 rounded-lg",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-lg",ghost:"hover:bg-secondary rounded-lg",link:"text-primary underline-offset-4 hover:underline",pill:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm hover:shadow-md rounded-full","pill-outline":"border border-primary/20 bg-transparent text-primary hover:bg-primary/5 rounded-full","pill-ghost":"bg-secondary text-foreground hover:bg-secondary/80 rounded-full"},size:{default:"h-10 px-5 py-2",sm:"h-9 px-4 text-sm",lg:"h-12 px-7 text-base",xl:"h-14 px-9 text-base font-semibold",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ce=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...s},i)=>{const a=n?VC:"button";return o.jsx(a,{className:pe(fP({variant:e,size:r,className:t})),ref:i,...s})});Ce.displayName="Button";const Je=x.forwardRef(({className:t,type:e,...r},n)=>o.jsx("input",{type:e,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",t),ref:n,...r}));Je.displayName="Input";var pP="Label",Ab=x.forwardRef((t,e)=>o.jsx(ue.label,{...t,ref:e,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ab.displayName=pP;var Pb=Ab;const mP=fp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Mh=x.forwardRef(({className:t,...e},r)=>o.jsx(Pb,{ref:r,className:pe(mP(),t),...e}));Mh.displayName=Pb.displayName;const fo="/assets/mci-logo-new-JlMV3Pc4.svg",Lh="https://medicalcouriers.com",gP=`${Lh}/mci-og-image.jpg`,it=({title:t,description:e,canonical:r,type:n,image:s,article:i,noindex:a=!1})=>{const l=Zn();return x.useEffect(()=>{const c=l.pathname,u=r||`${Lh}${c==="/"?"/":c}`,d=g=>{let b=document.head.querySelector(`meta[name="${g}"]`);return b||(b=document.createElement("meta"),b.setAttribute("name",g),document.head.appendChild(b)),b},h=g=>{let b=document.head.querySelector(`meta[property="${g}"]`);return b||(b=document.createElement("meta"),b.setAttribute("property",g),document.head.appendChild(b)),b};let p=document.head.querySelector('link[rel="canonical"]'),f=document.head.querySelector('meta[name="robots"]');a?(p==null||p.remove(),p=null,f||(f=d("robots")),f.setAttribute("content","noindex")):(f==null||f.remove(),p||(p=document.createElement("link"),p.setAttribute("rel","canonical"),document.head.appendChild(p))),document.title=t,d("description").setAttribute("content",e),p==null||p.setAttribute("href",u),h("og:title").setAttribute("content",t),h("og:description").setAttribute("content",e),h("og:url").setAttribute("content",u),h("og:type").setAttribute("content",n||"website"),h("og:site_name").setAttribute("content","Medical Couriers"),d("twitter:card").setAttribute("content","summary_large_image"),d("twitter:title").setAttribute("content",t),d("twitter:description").setAttribute("content",e);const w=s?s.startsWith("http")?s:`${Lh}${s.startsWith("/")?"":"/"}${s}`:gP;h("og:image").setAttribute("content",w),d("twitter:image").setAttribute("content",w),i!=null&&i.publishedTime&&h("article:published_time").setAttribute("content",i.publishedTime),i!=null&&i.author&&h("article:author").setAttribute("content",i.author),i!=null&&i.section&&h("article:section").setAttribute("content",i.section)},[t,e,r,l.pathname,n,s,i,a]),null},yP=Nb({name:Bt().trim().min(1,"Name is required").max(100,"Name too long"),email:Bt().trim().email("Please enter a valid email address").max(255,"Email too long")}),vP=[{icon:qc,title:"Clinical Logistics — Not Package Delivery",body:"We protect specimen integrity, regulatory standing, and patient outcomes — not just courier margins. 56 years of healthcare-only logistics, founded in the SF Bay Area."},{icon:nT,title:"Defensible Chain of Custody",body:"Scan-based transfers, AI controls, and structured documentation. If you're audited, you have proof — not assumptions."},{icon:Vc,title:"Engineered Reliability Windows",body:"Routes built around specimen viability with built-in redundancy and rapid escalation. Fewer redraws. Fewer escalations. Fewer surprises."},{icon:hT,title:"Proven Performance at Scale",body:"500M+ specimens delivered. Zero lost. Operational predictability you can rely on — backed by the highest on-time record 
358in our client's 6-year history."},{icon:mp,title:"Regulatory-Ready Infrastructure",body:"HIPAA-aware Care Agents, audit-ready SOPs, certified facilities. SOC-2 certification in progress. Courier risk does not become laboratory risk."},{icon:d0,title:"Cost Discipline Without Cutting Corners",body:"Our model reduces redraws, emergency STAT spend, escalation labor, and hidden compliance exposure — delivering stability that protects both margin and patient care."}],xP=[{category:"Primary Optimization",traditional:"Cost per mile & route density",clinical:"Specimen viability & risk reduction"},{category:"Route Design",traditional:"Driver efficiency focused",clinical:"Stability window engineered"},{category:"On-Time Strategy",traditional:"Reactive adjustments",clinical:"Redundant engineered reliability / HALO"},{category:"Chain of Custody",traditional:"Basic confirmation",clinical:"Scan-based AI Chain of Custody controls"},{category:"Temperature Governance",traditional:"Assumed or client managed",clinical:"Specimen-specific protocols"},{category:"Exception Handling",traditional:"Respond after issue",clinical:"Early detection, auto-alerts & CAP audits"},{category:"Visibility",traditional:"Basic GPS tracking",clinical:"Customized portal with real-time specimen visibility"},{category:"Compliance",traditional:"Vendor responsibility",clinical:"Embedded audit-ready documentation"},{category:"Reporting",traditional:"Basic reports",clinical:"SLA dashboards + analytics"},{category:"Scalability",traditional:"Market-dependent variation",clinical:"Standardized SOP framework nationwide"}],wP=[{stat:"Highest",label:"On-time pick-up & delivery in 6 years"},{stat:"Zero",label:"Patient incident reports — sustained for multiple consecutive months"},{stat:"50–75%",label:"Fewer escalation calls to dispatchers from hospital call center"}],bP=[{icon:v0,title:"HALO Operations Center",body:"24/7 High Acuity Logistics Operations team monitoring critical shipments in real time — cell & gene therapies, STAT programs, organ transport, clinical trials, and complex cold chain."},{icon:mp,title:"Real-Time HIPAA Tracking",body:"Live order tracking, route history verification, automated deviation alerts, and custom SLA-based performance reporting — all in one secure portal."},{icon:Kc,title:"Certified Care Agents",body:"Every driver is trained and certified in HIPAA Awareness, Bloodborne Pathogen handling, and Fraud Waste & Abuse. They understand the human impact of their work."},{icon:Qj,title:"Nationwide Continuity",body:"Standardized SOPs from coast to coast — including Hawaii. Mandatory driver redundancy, backup vehicles required, and partner network held to the same standard."}],kP=["Diagnostic Integrity","Regulatory Defensibility","Client Relationships","Margin Stability","The Patient Experience"],Rb="https://yhfezopchmdlzymzppal.supabase.co/functions/v1/scmci-gate",SP="https://yhfezopchmdlzymzppal.supabase.co/functions/v1/presentation-view-notify",Dh="scmci_access_token";async function _P(t,e){try{const n=await(await fetch(Rb,{method:"POST",headers:{"Content-Type":"application/json",apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InloZmV6b3BjaG1kbHp5bXpwcGFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg5NDM2OTEsImV4cCI6MjA4NDUxOTY5MX0.cE-Ot07ofjK2ABZuCCmd7MtO64GR8gt8LcJAI1UupE0"},body:JSON.stringify({name:t,email:e})})).json();return(n==null?void 0:n.token)??null}catch{return null}}async function CP(t){try{const r=await(await fetch(Rb,{method:"POST",headers:{"Content-Type":"application/json",apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InloZmV6b3BjaG1kbHp5bXpwcGFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg5NDM2OTEsImV4cCI6MjA4NDUxOTY5MX0.cE-Ot07ofjK2ABZuCCmd7MtO64GR8gt8LcJAI1UupE0"},body:JSON.stringify({action:"verify",token:t})})).json();return(r==null?void 0:r.valid)===!0}catch{return!1}}function xy(t){fetch(SP,{method:"POST",headers:{"Content-Type":"application/json",apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InloZmV6b3BjaG1kbHp5bXpwcGFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg5NDM2OTEsImV4cCI6MjA4NDUxOTY5MX0.cE-Ot07ofjK2ABZuCCmd7MtO64GR8gt8LcJAI1UupE0"},body:JSON.stringify(t)}
358).catch(()=>{})}function jP({onUnlock:t}){const[e,r]=x.useState(""),[n,s]=x.useState(""),[i,a]=x.useState({}),[l,c]=x.useState(!1);async function u(d){d.preventDefault();const h=yP.safeParse({name:e,email:n});if(!h.success){const p={};h.error.errors.forEach(f=>{const w=f.path[0];p[w]=f.message}),a(p);return}a({}),c(!0);try{const p=await _P(e.trim(),n.trim());if(!p){a({server:"Unable to verify access. Please try again."});return}sessionStorage.setItem(Dh,p),t(e.trim(),n.trim())}finally{c(!1)}}return o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-foreground/60 backdrop-blur-sm p-4",children:o.jsxs("div",{className:"w-full max-w-md bg-card border border-border rounded-2xl shadow-2xl overflow-hidden",children:[o.jsx("div",{className:"h-1.5 w-full bg-primary"}),o.jsxs("div",{className:"p-8",children:[o.jsx("div",{className:"flex justify-center mb-6",children:o.jsx("img",{src:fo,alt:"Medical Couriers",className:"h-12 w-auto"})}),o.jsx("h2",{className:"text-xl font-bold text-foreground text-center mb-1",children:"Santa Clara County RFP Presentation"}),o.jsx("p",{className:"text-sm text-muted-foreground text-center mb-6",children:"Please enter your name and email to access this confidential proposal."}),o.jsxs("form",{onSubmit:u,className:"flex flex-col gap-4",children:[o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx(Mh,{htmlFor:"gate-name",children:"Your name"}),o.jsx(Je,{id:"gate-name",placeholder:"Jane Smith",value:e,onChange:d=>r(d.target.value.slice(0,100)),className:pe(i.name&&"border-destructive"),autoFocus:!0}),i.name&&o.jsx("p",{className:"text-xs text-destructive",children:i.name})]}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx(Mh,{htmlFor:"gate-email",children:"Work email"}),o.jsx(Je,{id:"gate-email",type:"email",placeholder:"[email protected]",value:n,onChange:d=>s(d.target.value.slice(0,255)),className:pe(i.email&&"border-destructive")}
358),i.email&&o.jsx("p",{className:"text-xs text-destructive",children:i.email})]}),i.server&&o.jsx("p",{className:"text-xs text-destructive text-center",children:i.server}),o.jsx(Ce,{type:"submit",size:"lg",className:"w-full mt-2 gap-2",disabled:l,children:l?o.jsxs("span",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"w-4 h-4 border-2 border-primary-foreground/40 border-t-primary-foreground rounded-full animate-spin"}),"Verifying…"]}):o.jsxs(o.Fragment,{children:["View Presentation",o.jsx(Hj,{className:"w-4 h-4"})]})})]}),o.jsx("p",{className:"text-xs text-muted-foreground text-center mt-4",children:"This presentation is confidential and intended solely for Santa Clara County."})]})]})})}function TP(){const[t,e]=x.useState(null),r=x.useRef(null),n=x.useRef(null);x.useEffect(()=>{const i=sessionStorage.getItem(Dh);if(!i){e(!1);return}CP(i).then(a=>{a||sessionStorage.removeItem(Dh),e(a)})},[]),x.useEffect(()=>{if(!t)return;function i(){const a=r.current;if(!a||n.current==null)return;const l=Math.round((Date.now()-n.current)/1e3);xy({...a,duration_seconds:l,event:"leave"})}return window.addEventListener("beforeunload",i),()=>{window.removeEventListener("beforeunload",i),i()}},[t]);function s(i,a){const l=new Date().toISOString();r.current={name:i,email:a,accessed_at:l},n.current=Date.now(),e(!0),xy({name:i,email:a,accessed_at:l,event:"access"})}return t===null?o.jsxs(o.Fragment,{children:[o.jsx(it,{title:"Santa Clara County RFP — Medical Couriers",description:"Clinical Logistics Proposal for Santa Clara County — Medical Couriers Inc."}),o.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-background",children:o.jsx("div",{className:"w-8 h-8 border-4 border-primary/30 border-t-primary rounded-full animate-spin"})})]}):t?o.jsxs(o.Fragment,{children:[o.jsx(it,{title:"Santa Clara County RFP — Medical Couriers",description:"Clinical Logistics Proposal for Santa Clara County — Medical Couriers Inc."}),o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx("header",{className:"border-b border-border bg-background/95 backdrop-blur-md sticky top-0 z-40 print:hidden",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 h-16 flex items-center justify-between",children:[o.jsx(he,{to:"/",children:o.jsx("img",{src:fo,alt:"Medical Couriers",className:"h-10 w-auto"})}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide uppercase hidden sm:block",children:"Santa Clara County — Confidential Proposal"}),o.jsxs(Ce,{variant:"outline",size:"sm",className:"gap-2 print:hidden",onClick:()=>window.print(),children:[o.jsx(Kj,{className:"w-3.5 h-3.5"}),"Download PDF"]})]})]})}),o.jsxs("section",{className:"relative bg-primary overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:"radial-gradient(circle, hsl(0 0% 100%) 1px, transparent 1px)",backgroundSize:"32px 32px"}}),o.jsx("div",{className:"relative max-w-6xl mx-auto px-6 lg:px-8 py-20 lg:py-28",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("div",{className:"inline-flex items-center gap-2 bg-primary-foreground/10 border border-primary-foreground/20 rounded-full px-4 py-1.5 mb-6",children:o.jsx("span",{className:"text-xs font-semibold text-primary-foreground/90 tracking-wide uppercase",children:"RFP Response · February 23, 2026"})}),o.jsxs("h1",{className:"text-4xl lg:text-5xl font-bold text-primary-foreground leading-tight mb-4",children:["Santa Clara County",o.jsx("br",{}),"RFP Proposal"]}),o.jsx("p",{className:"text-lg text-primary-foreground/80 mb-2 leading-relaxed",children:"Medical Couriers Inc. — Clinical Logistics Partner"}),o.jsx("p",{className:"text-primary-foreground/70 leading-relaxed max-w-2xl",children:"For 56 years, we have operated at the intersection of logistics and clinical risk, delivering patient-centric transportation of specimens, pharmaceuticals, medical supplies, and specialized equipment for health systems across the United States."}),o.jsx("div",{className:"mt-8 flex flex-wrap gap-6",children:[{value:"56",label:"Years in Healthcare Logistics"},{value:"500M+",label:"Specimens Delivered"},{value:"24/7",label:"HALO Operations Center"},{value:"Zero",label:"Lost Specimens"}].map(i=>o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:"text-2xl font-bold text-primary-foreground",children:i.value}
358),o.jsx("span",{className:"text-xs text-primary-foreground/70 mt-0.5",children:i.label})]},i.label))})]})})]}),o.jsx("section",{className:"py-16 lg:py-24 bg-background print-break-before",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"mb-12",children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Clinical Logistics"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mt-2",children:"We're not your average courier."}),o.jsx("p",{className:"text-muted-foreground mt-3 max-w-2xl",children:"We are a Clinical Logistics Provider — built exclusively for healthcare. Every system, protocol, and team member is engineered around specimen integrity and patient outcomes."})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:vP.map(i=>o.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 flex flex-col gap-3 hover:shadow-md transition-shadow",children:[o.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:o.jsx(i.icon,{className:"w-5 h-5 text-primary"})}),o.jsx("h3",{className:"font-semibold text-foreground text-sm leading-snug",children:i.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:i.body})]},i.title))})]})}),o.jsx("section",{className:"py-16 bg-secondary",children:o.jsx("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Our Commitment"}),o.jsxs("h2",{className:"text-3xl font-bold text-foreground mt-2 mb-4",children:["We Protect Clinical Assets —",o.jsx("br",{}),"Not Packages"]}),o.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:"When transport fails, the cost is redraws, delays, and exposure — not mileage. Our model is built around what matters to your lab, your clinicians, and your patients."}),o.jsx("ul",{className:"flex flex-col gap-3",children:["Test Integrity","Regulatory Defensibility","Revenue Protection","Provider Confidence","Patient Outcomes"].map(i=>o.jsxs("li",{className:"flex items-center gap-3",children:[o.jsx(Gu,{className:"w-5 h-5 text-primary shrink-0"}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:i})]},i))})]}),o.jsxs("div",{className:"bg-card border border-border rounded-2xl p-8",children:[o.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Bay Area Clients Served"}),o.jsx("p",{className:"text-xs text-muted-foreground mb-5",children:"Active relationships in the region"}),o.jsx("div",{className:"flex flex-col gap-2",children:["Kaiser Permanente","ARUP Laboratories","Mayo Clinic","UC System","Dignity Health"].map(i=>o.jsxs("div",{className:"flex items-center gap-3 py-2.5 border-b border-border last:border-0",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary shrink-0"}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:i})]},i))})]})]})})}),o.jsx("section",{className:"py-16 lg:py-24 bg-background print-break-before",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"mb-10",children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Side-by-Side"}),o.jsx("h2",{className:"text-3xl font-bold text-foreground mt-2",children:"Clinical Logistics vs. Traditional Courier"})]}),o.jsx("div",{className:"overflow-x-auto rounded-xl border border-border",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"bg-muted",children:[o.jsx("th",{className:"text-left py-3 px-4 font-semibold text-foreground w-1/3",children:"Category"}),o.jsx("th",{className:"text-left py-3 px-4 font-semibold text-muted-foreground",children:"Traditional Courier"}),o.jsx("th",{className:"text-left py-3 px-4 font-semibold text-primary",children:"MCI Clinical Logistics"})]})}),o.jsx("tbody",{children:xP.map((i,a)=>o.jsxs("tr",{className:pe("border-t border-border",a%2===0?"bg-card":"bg-background"),children:[o.jsx("td",{className:"py-3 px-4 font-medium text-foreground",children:i.category}),o.jsx("td",{className:"py-3 px-4 text-muted-foreground",children:i.traditional}),o.jsx("td",{className:"py-3 px-4 text-foreground font-medium",children:i.clinical})]},i.category))})]})})]})}),o.jsx("section",{className:"py-16 bg-primary print-break-before",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[o.jsx("div",{className:"mb-3",children:o.jsx("span",{className:"text-xs font-semibold text-primary-foreground
358/70 tracking-widest uppercase",children:"Case Study · University Hospital System"})}),o.jsx("h2",{className:"text-3xl font-bold text-primary-foreground mb-2",children:"System Upgrades Patient Protections and Service Outcomes"}),o.jsx("p",{className:"text-primary-foreground/70 mb-10 max-w-2xl",children:"A major hospital system was experiencing 12–15 patient incident reports per month due to courier failures. Here's what changed."}),o.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 items-start",children:[o.jsxs("div",{className:"flex flex-col gap-6",children:[o.jsxs("div",{className:"bg-primary-foreground/10 border border-primary-foreground/20 rounded-xl p-6",children:[o.jsx("h3",{className:"font-semibold text-primary-foreground mb-3",children:"The Challenge"}),o.jsx("ul",{className:"flex flex-col gap-2",children:["Recurring delays and service issues","Poor tracking and visibility","No performance metrics","Inconsistent SLAs and compliance","Courier service directly impacting patient care (12–15 Patient IRs per Month)"].map(i=>o.jsxs("li",{className:"flex items-start gap-2 text-sm text-primary-foreground/80",children:[o.jsx("span",{className:"mt-1 w-1.5 h-1.5 rounded-full bg-primary-foreground/50 shrink-0"}),i]},i))})]}),o.jsxs("div",{className:"bg-primary-foreground/10 border border-primary-foreground/20 rounded-xl p-6",children:[o.jsx("h3",{className:"font-semibold text-primary-foreground mb-3",children:"The MCI Solution"}),o.jsx("ul",{className:"flex flex-col gap-2",children:["Compliance Audit & Gap Analysis (71,000 control points)","Full Delivery Program Re-Design","Custom Tech: Order Entry, Tracking & Reporting","Compliance Hub for SLA Enforcement / Weekly QA Audits"].map(i=>o.jsxs("li",{className:"flex items-start gap-2 text-sm text-primary-foreground/80",children:[o.jsx(Gu,{className:"w-4 h-4 shrink-0 mt-0.5 text-accent"}),i]},i))})]})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("h3",{className:"font-semibold text-primary-foreground",children:"Results"}),wP.map(i=>o.jsxs("div",{className:"bg-primary-foreground/10 border border-primary-foreground/20 rounded-xl p-5",children:[o.jsx("div",{className:"text-3xl font-bold text-accent mb-1",children:i.stat}),o.jsx("div",{className:"text-sm text-primary-foreground/80",children:i.label})]},i.label))]})]})]})}),o.jsx("section",{className:"py-16 lg:py-24 bg-background print-break-before",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"mb-12",children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Our Infrastructure"}),o.jsx("h2",{className:"text-3xl font-bold text-foreground mt-2",children:"Built for the complexity of healthcare."})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:bP.map(i=>o.jsxs("div",{className:"flex gap-5 bg-card border border-border rounded-xl p-6 hover:shadow-md transition-shadow",children:[o.jsx("div",{className:"w-11 h-11 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:o.jsx(i.icon,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-foreground mb-1.5",children:i.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:i.body})]})]},i.title))})]})}),o.jsx("section",{className:"py-16 bg-secondary",children:o.jsx("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Executive Summary"}),o.jsxs("h2",{className:"text-3xl font-bold text-foreground mt-2 mb-4",children:["Traditional courier models move packages.",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"Our clinical logistics model protects what matters."})]}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"The true difference between a courier vendor and a clinical logistics partner is operational predictability and risk compression. MCI protects:"}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-3 mb-8",children:kP.map(i=>o.jsxs("div",{className:"flex items-center gap-3 bg-card border border-border rounded-lg px-4 py-3",children:[o.jsx(Gu,{className:"w-4 h-4 text-primary shrink-0"}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:i})]},i))}),o.jsx("p",{className:"text-sm text-muted-foreground italic",children:'"L
358ogistics become a performance lever — not a cost center."'})]})})}),o.jsx("section",{className:"py-16 lg:py-24 bg-background",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"mb-10",children:[o.jsx("span",{className:"text-xs font-semibold text-primary tracking-widest uppercase",children:"Why Medical Couriers"}),o.jsx("h2",{className:"text-3xl font-bold text-foreground mt-2",children:"You deserve a partner, not a vendor."}),o.jsx("p",{className:"text-muted-foreground mt-2 max-w-2xl",children:"We believe Santa Clara County deserves a clinical logistics partner that becomes an extension of your commitment to compliance, performance, specimen integrity, and patient outcomes."})]}),o.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[{num:"1",title:"56 Years Healthcare Only",body:"Founded in the SF Bay Area. Healthcare logistics is not a division — it is everything we do."},{num:"2",title:"Proprietary Technology",body:"HIPAA/SOC2 platform. GPS-driven, geo-fenced proximity controls with AI-enabled chain-of-custody."},{num:"3",title:"Response Center Network",body:"Cold-chain enabled, TSA-compliant Response Center facilities in Hayward & Sacramento."},{num:"4",title:"Care Agents, Not Drivers",body:"Every team member is trained in clinical protocols — sensitive to the nuances of healthcare."},{num:"5",title:"Data Security Leadership",body:"133M+ healthcare records were exposed in breaches in 2024. Our SOC-2 framework is built for the threat level healthcare demands."},{num:"6",title:"Nationally Capable, Locally Focused",body:"Standardized SOP framework nationwide, with the deep Bay Area knowledge Santa Clara County needs."}].map(i=>o.jsxs("div",{className:"bg-card border border-border rounded-xl p-5 flex flex-col gap-2",children:[o.jsx("div",{className:"w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx("span",{className:"text-xs font-bold text-primary",children:i.num})}),o.jsx("h3",{className:"font-semibold text-foreground text-sm",children:i.title}),o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:i.body})]},i.num))})]})}),o.jsx("section",{className:"py-16 bg-primary",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 text-center",children:[o.jsx("h2",{className:"text-3xl font-bold text-primary-foreground mb-3",children:"Thank you for your valuable time."}),o.jsx("p",{className:"text-primary-foreground/80 mb-8 max-w-xl mx-auto text-lg",children:"We would be proud to be Santa Clara County's new Clinical Logistics Partner."}),o.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-8",children:[o.jsxs("a",{href:"tel:5302505969",className:"flex items-center gap-2 bg-primary-foreground/10 hover:bg-primary-foreground/20 border border-primary-foreground/20 rounded-full px-6 py-3 text-primary-foreground text-sm font-medium transition-colors",children:[o.jsx(p0,{className:"w-4 h-4"}),"(530) 250-5969"]}),o.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 bg-primary-foreground/10 hover:bg-primary-foreground/20 border border-primary-foreground/20 rounded-full px-6 py-3 text-primary-foreground text-sm font-medium transition-colors",children:[o.jsx(f0,{className:"w-4 h-4"}),"[email protected]"]})]}),o.jsx(Ce,{variant:"pill",size:"lg",className:"bg-primary-foreground text-primary hover:bg-primary-foreground/90",asChild:!0,children:o.jsx(he,{to:"/contact",children:"Get in Touch"})})]})}),o.jsx("footer",{className:"border-t border-border py-6 bg-background",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 flex flex-col sm:flex-row items-center justify-between gap-3",children:[o.jsx("img",{src:fo,alt:"Medical Couriers",className:"h-8 w-auto"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," Medical Couriers Inc. · 1415 21st St, Sacramento, CA 95811 · medicalcouriers.com"]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Confidential — Santa Clara County RFP"})]})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(it,{title:"Santa Clara County RFP — Medical Couriers",description:"Clinical Logistics Proposal for Santa Clara County — Medical Couriers Inc."}),o.jsx(jP,{onUnlock:s})]})}const wy=[{href:"/about",label:"About"},{href:"/services",label:"Services"},{href:"/solutions",label:"Solutions"},{href:"/news-from-the-road",label:"Insights"},{href:"/drivers",label:"Drivers"}];function Qt(){const[t,e]=x.useState(!1),[r,n]=x.useState(!1);return x.useEffect(()=>{const s=()=>n(window.scrollY>20);return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]),o.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${r||t?"bg-background/95 backdrop-blur-md border-b border-border shadow-xs":"bg-transparent"}`,children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"flex items-center justify-between h-20",children:[o.jsx(he,{to:"/",className:"flex items-center",children:o.jsx("img",{src:fo,alt:"Medical Couriers logo",className:"h-14 w-auto"})}),o.jsx("nav",{className:"hidden lg:flex items-center gap-1",children:wy.map(s=>o.jsx(he,{to:s.href,className:"px-4 py-2 text-[14px] font-medium text-muted-foreground hover:text-foreground transition-colors",children:s.label},s.href))}),o.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[o.jsx(Ce,{variant:"ghost",size:"sm",asChild:!0,children:o.jsx(he,{to:"/login",children:"Log in"})}),o.jsx(Ce,{variant:"pill",size:"sm",asChild:!0,children:o.jsx(he,{to:"/contact",children:"Get in Touch"})})]}),o.jsx("button",{className:"lg:hidden p-2 -mr-2 rounded-lg hover:bg-secondary transition-colors",onClick:()=>e(!t),"aria-label":"Toggle menu",children:t?o.jsx(y0,{className:"w-5 h-5"}):o.jsx(iT,{className:"w-5 h-5"})})]}),t&&o.jsx("div",{className:"lg:hidden py-4 border-t border-border animate-in",children:o.jsxs("nav",{className:"flex flex-col gap-1",children:[wy.map(s=>o.jsx(he,{to:s.href,className:"px-3 py-3 text-[15px] font-medium text-muted-foreground hover:text-foreground hover:bg-secondary rounded-lg transition-colors",onClick:()=>e(!1),children:s.label},s.href)),o.jsxs("div",{className:"flex flex-col gap-2 mt-4 pt-4 border-t border-border",children:[o.jsx(Ce,{variant:"outline",asChild:!0,className:"w-full",children:o.jsx(he,{to:"/login",children:"Log in"})}),o.jsx(Ce,{variant:"default",asChild:!0,className:"w-full",children:o.jsx(he,{to:"/contact",children:"Get in Touch"})})]})]})})]})})}const EP="/assets/tsa-logo-CZKcf54o.png",NP="/assets/hipaa-compliant-DrA2Ukii.png",td={company:[{href:"/about",label:"About"},{href:"/contact",label:"Contact"}],services:[{href:"/services",label:"All Services"},{href:"/solutions",label:"Solutions"}],resources:[{href:"/news-from-the-road",label:"Insights"},{href:"/drivers",label:"Drivers"}]};function Yt(){return o.jsx("footer",{className:"border-t border-border bg-background",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 py-16",children:[o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-10",children:[o.jsxs("div",{className:"col-span-2 md:col-span-1",children:[o.jsx(he,{to:"/",className:"flex items-center mb-5",children:o.jsx("img",{src:fo,alt:"Medical Couriers logo",className:"h-8 w-auto"})}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed max-w-xs",children:"Critical healthcare logistics powered by technology and care."}),o.jsxs("address",{className:"mt-5 text-sm text-muted-foreground not-italic leading-relaxed",children:["1415 21st Street, Suite B",o.jsx("br",{}),"Sacramento, CA 95811"]})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-4",children:"Company"}),o.jsx("ul",{className:"space-y-2.5",children:td.company.map(t=>o.jsx("li",{children:o.jsx(he,{to:t.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:t.label})},t.href))})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-4",children:"Services"}),o.jsx("ul",{className:"space-y-2.5",children:td.services.map(t=>o.jsx("li",{children:o.jsx(he,{to:t.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:t.label})},t.href))})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-4",children:"Resources"}),o.jsx("ul",{className:"space-y-2.5",children:td.resources.map(t=>o.jsx("li",{children:o.jsx(he,{to:t.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:t.label})},t.href))})]})]}),o.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[o.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-8 mb-8",children:[o.jsx("img",{src:EP,alt:"Transportation Security Administration",className:"h-12 w-auto opacity-80 hover:opacity-100 transition-opacity"}),o.jsx("img",{src:NP,alt:"HIPAA Compliant",className:"h-12 w-auto opacity-80 hover:opacity-100 transition-opacity"})]}),o.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[o.jsxs("p",{className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," Medical Couriers. All rights reserved."]}),o.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[o.jsx(he,{to:"/locations",className:"hover:text-foreground transition-colors",children:"Locations"}),o.jsx(he,{to:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy"}),o.jsx(Ce,{asChild:!0,size:"sm",children:o.jsxs("a",{href:"https://request.plastiq.com/pay-medical-couriers-inc",target:"_blank",rel:"noopener noreferrer",children:[o.jsx(Vj,{"aria-hidden":"true"}),"Pay Invoices"]})})]})]})]})]})})}const AP="/assets/homepage-hero-Cw887klY.png";function PP(){return o.jsxs(o.Fragment,{children:[o.jsxs("section",{className:"relative min-h-[80vh] flex items-center pt-20 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:AP,alt:"Dispatch center coordinating medical courier deliveries",width:1920,height:1080,fetchPriority:"high",decoding:"async",className:"w-full h-full object-cover object-top scale-110"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/60"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8 py-20 lg:py-32",children:o.jsxs("div",{className:"max-w-2xl",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-8 animate-in backdrop-blur-sm",children:[o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),o.jsx("span",{className:"text-xs font-medium text-primary",children:"Healthcare Logistics Leader"})]}),o.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-foreground leading-[1.1] tracking-tight mb-6 animate-in-delayed text-balance",children:"Time-critical delivery for healthcare"}),o.jsx("p",{className:"text-lg lg:text-xl text-muted-foreground leading-relaxed mb-10 animate-in-delayed-2 max-w-lg",children:"Precision logistics for lab specimens, pharmaceuticals, and medical equipment. Trusted by leading health systems nationwide."}),o.jsx("div",{className:"flex flex-wrap items-center gap-4 animate-in-delayed-2",children:o.jsx(Ce,{variant:"pill",size:"xl",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-4 h-4 ml-1"})]})})})]})})]}),o.jsx("section",{className:"py-12 lg:py-16 bg-secondary/50",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 ga
358p-4",children:[o.jsxs("div",{className:"col-span-2 md:col-span-1 p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:"text-4xl lg:text-5xl font-bold text-primary mb-2",children:"10M+"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Specimens delivered annually"})]}),o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-1",children:"99.7%"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"On-time rate"})]}),o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-1",children:"50+"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Years experience"})]}),o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:"text-3xl lg:text-4xl font-bold text-primary mb-1",children:"24/7"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Live support"})]}),o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-1",children:"1000+"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Daily pickups"})]})]})})})]})}const RP=[{name:"Hospital Systems",icon:u0},{name:"Clinical Laboratories",icon:gp},{name:"Pharmacies",icon:yp},{name:"Physician Practices",icon:m0},{name:"Healthcare at Home",icon:Xj},{name:"Research Institutions",icon:aT},{name:"Biopharma",icon:Fj},{name:"Organ Transplant",icon:Yj},{name:"Long Term Care (LTC)",icon:Bj},{name:"Veterinary Services",icon:oT}];function Ob(){return o.jsx("section",{className:"py-12 lg:py-16 border-y border-border bg-background",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsx("p",{className:"text-center text-xs font-medium text-muted-foreground uppercase tracking-wider mb-8",children:"Serving healthcare organizations nationwide"}),o.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-10 gap-y-6",children:RP.map(t=>o.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground hover:text-foreground transition-colors",children:[o.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:o.jsx(t.icon,{className:"w-5 h-5 text-primary"})}),o.jsx("span",{className:"text-sm font-medium",children:t.name})]},t.name))})]})})}const OP=[{icon:dT,title:"Cost Optimization",description:"Route optimization and tailored invoicing that cuts logistics costs by up to 30% while improving reliability.",href:"/solutions#cost"},{icon:eT,title:"Custom Solutions",description:"Flexible service levels and scheduling designed around your operational needs and compliance requirements.",href:"/solutions#custom"},{icon:v0,title:"Rapid Response",description:"24/7 emergency coverage when you need it most. STAT deliveries with real-time tracking and updates.",href:"/solutions#rapid"},{icon:d0,title:"Real-Time Visibility",description:"Proprietary monitoring platform with proactive alerts, custom dashboards, and API integrations.",href:"/solutions#tech"}];function IP(){return o.jsx("section",{className:"py-24 lg:py-32 bg-background",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"max-w-2xl mb-16",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"Capabilities"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-4 tracking-tight",children:"Built for healthcare complexity"}),o.jsx("p",{className:"text-lg text-muted-foreground",children:"Technology-driven logistics designed for the unique demands of healthcare delivery."})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:OP.map(t=>o.jsxs(he,{to:t.href,className:"group relative p-8 rounded-2xl border border-border bg-card hover:border-primary/30 hover:shadow-md transition-all duration-200",children:[o.jsx("div",{className:"w-11 h-11 rounded-xl bg-primary/10 flex items-center justify-center mb-5 group-hover:bg-primary/15 transition-colors",children:o.jsx(t.icon,{className:"w-5 h-5 text-primary"})}),o.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-2 flex items-center gap-2",children:[t.title,o.jsx($j,{className:"w-4 h-4 text-muted-foreground opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 transition-all"})]}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]},t.title))})]})})}const MP=[{icon:gp,label:"Lab Specimens"},{icon:yp,label:"Pharmaceuticals"},{icon:g0,label:"Temperature-Controlled"},{icon:zj,label:"Medical Equipment"},{icon:fT,label:"Radiopharmaceuticals"},{icon:Vc,label:"STAT Deliveries"}];function LP(){return o.jsx("section",{className:"py-24 lg:py-32 bg-secondary/50",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"What we move"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-5 tracking-tight",children:"Specialized transport for critical healthcare materials"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8",children:"From routine lab pickups to emergency pharmaceutical deliveries, our network handles the full spectrum of healthcare logistics with precision and compliance at every step."}),o.jsx(Ce,{variant:"pill",asChild:!0,children:o.jsxs(he,{to:"/services",children:["Explore Services",o.jsx(jt,{className:"w-4 h-4 ml-1"})]})})]}),o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:MP.map(t=>o.jsxs("div",{className:"flex flex-col items-center gap-3 p-5 rounded-xl bg-card border border-border text-center hover:border-primary/30 hover:shadow-sm transition-all",children:[o.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:o.jsx(t.icon,{className:"w-5 h-5 text-primary"})}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:t.label})]},t.label))})]})})})}const DP=[{number:"01",icon:qc,title:"HIPAA Compliant Operations",description:"All drivers are HIPAA trained with comprehensive background checks and security clearances."},{number:"02",icon:Po,title:"Real-Time Tracking",description:"GPS monitoring and electronic proof of delivery for complete chain of custody documentation."},{number:"03",icon:g0,title:"Temperature Control",description:"Validated thermal packaging and refrigerated vehicles for cold chain integrity."},{number:"04",icon:Vc,title:"24/7 Availability",description:"Round-the-clock dispatch and emergency STAT services for urgent medical needs."},{number:"05",icon:Zj,title:"Regulatory Compliance",description:"Full DOT, OSHA, and FDA compliance with proper handling of hazardous materials."}];function $P(){return o.jsx("section",{className:"py-24 lg:py-32 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"max-w-2xl mb-16",children:[o.jsx("p",{className:"text-sm font-medium text-primary-foreground
358/70 mb-3 uppercase tracking-wider",children:"Our Difference"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4 tracking-tight",children:"Why Healthcare Facilities Choose Us"})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-10",children:DP.map(t=>o.jsx("div",{className:"group",children:o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex-shrink-0",children:o.jsx("span",{className:"text-sm font-medium text-primary-foreground/50",children:t.number})}),o.jsxs("div",{className:"flex-1 pt-4 border-t border-primary-foreground/20",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[o.jsx(t.icon,{className:"w-5 h-5 text-primary-foreground/80"}),o.jsx("h3",{className:"text-lg font-semibold",children:t.title})]}),o.jsx("p",{className:"text-primary-foreground/70 leading-relaxed",children:t.description})]})]})},t.title))})]})})}function UP(){return o.jsx("section",{className:"py-24 lg:py-32 bg-background border-t border-border",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"About MCI"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-5 tracking-tight",children:"50+ years. One mission."}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-6",children:"With patient care as our driving force, we've built the nation's most trusted network for healthcare logistics. Our Care Agents—known as The Medical Courier Alliance—understand that every delivery impacts patient outcomes."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"Backed by proprietary technology and decades of expertise, we deliver nearly 10 million specimens annually with 99.7% on-time accuracy."}),o.jsx(Ce,{variant:"pill-outline",asChild:!0,children:o.jsxs(he,{to:"/about",children:["Our Story",o.jsx(jt,{className:"w-4 h-4 ml-1"})]})})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"p-5 rounded-2xl bg-secondary border border-border",children:[o.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center mb-3",children:o.jsx(qc,{className:"w-5 h-5 text-primary"})}),o.jsx("div",{className:"text-2xl font-bold text-foreground mb-1",children:"HIPAA"}),o.jsx("div",{className:"text-xs text-muted-foreground",children:"Fully Compliant"})]}),o.jsxs("div",{className:"p-5 rounded-2xl bg-primary text-primary-foreground",children:[o.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-foreground/20 flex items-center justify-center mb-3",children:o.jsx(Vc,{className:"w-5 h-5"})}),o.jsx("div",{className:"text-2xl font-bold mb-1",children:"<30 min"}),o.jsx("div",{className:"text-xs opacity-80",children:"Avg. response time"})]})]}),o.jsxs("div",{className:"space-y-4 pt-8",children:[o.jsxs("div",{className:"p-5 rounded-2xl bg-primary/10 border border-primary/20 text-right",children:[o.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/20 flex items-center justify-center mb-3 ml-auto",children:o.jsx(Po,{className:"w-5 h-5 text-primary"})}),o.jsx("div",{className:"text-2xl font-bold text-foreground mb-1",children:"50 States"}),o.jsx("div",{className:"text-xs text-muted-foreground",children:"Nationwide coverage"})]}),o.jsxs("div",{className:"p-5 rounded-2xl bg-secondary border border-border text-right",children:[o.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center mb-3 ml-auto",children:o.jsx(Kc,{className:"w-5 h-5 text-primary"})}),o.jsx("div",{className:"text-2xl font-bold text-foreground mb-1",children:"2,500+"}),o.jsx("div",{className:"text-xs text-muted-foreground",children:"Care Agents"})]})]})]}),o.jsxs("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-5 rounded-2xl bg-card border border-border shadow-lg",children:[o.jsx("div",{className:"text-3xl font-bold text-primary mb-1",children:"10M+"}),o.jsx("div",{className:"text-xs text-muted-foreground",children:"Annual deliveries"})]})]})]})})})}const FP=[{metric:"50-70%",metricLabel:"fewer escalation calls",quote:"With your monitoring board, I handle most escalations directly now.",author:"Lab Director",company:"Major University Health System"},{metric:"3x",metricLabel:"faster turnaround",quote:"Faster specimen transport means quicker results for our patients.",author:"VP of Operations",company:"West Coast Hospital Group"}];function BP(){return o.jsx("section",{className:"py-24 lg:py-32 bg-background",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"max-w-2xl mb-12",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"Results"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground tracking-tight",children:"Trusted by leading health systems"})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:FP.map((t,e)=>o.jsxs("div",{className:"group flex flex-col p-6 rounded-2xl border border-border bg-card transition-all duration-200",children:[o.jsxs("div",{className:"flex items-baseline gap-2 mb-4",children:[o.jsx("span",{className:"text-3xl font-bold text-primary",children:t.metric}),o.jsx("span",{className:"text-sm text-muted-foreground",children:t.metricLabel})]}),o.jsxs("p",{className:"text-foreground leading-relaxed mb-5 flex-grow",children:['"',t.quote,'"']}),o.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border",children:[o.jsxs("div",{children:[o.jsx("div",{className:"text-sm font-medium text-foreground",children:t.author}),o.jsx("div",{className:"text-xs text-muted-foreground",children:t.company})]}),o.jsx("div",{className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:o.jsx(jt,{className:"w-4 h-4 text-primary"})})]})]},e))})]})})}const zP=[{title:"Preanalytical Quality Control: Cutting Specimen Rejection Rates in the Transport Window",category:"Quality Control",slug:"mastering-quality-control-your-guide-to-reducing-test-errors-by-25"},{title:"Operational Efficiency in Clinical Logistics: Where the Next 15% of Productivity Actually Lives",category:"Efficiency",slug:"unlock-efficiency-strategies-to-boost-productivity-by-15"},{title:"AI in Clinical Logistics: What Is Actually Working in 2026 (and What Is Still Marketing)",category:"Technology",slug:"ai-healthcare-logistics"}];function HP(){return o.jsx("section",{className:"py-24 lg:py-32 bg-secondary/50",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 mb-12",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"News from the Network"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground tracking-tight",children:"Latest insights"})]}),o.jsxs(he,{to:"/news-from-the-road",className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:gap-3 transition-all",children:["View all articles",o.jsx(jt,{className:"w-4 h-4"})]})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:zP.map(t=>o.jsxs(he,{to:`/news-from-the-road/${t.slug}`,className:"group p-6 rounded-2xl bg-card border border-border hover:border-primary/30 hover:shadow-sm transition-all",children:[o.jsx("span",{className:"inline-block text-xs font-medium text-primary bg-primary/10 px-2.5 py-1 rounded-full mb-4",children:t.category}),o.jsx("h3",{className:"text-lg font-semibold text-foreground group-hover:text-primary transition-colors leading-snug",children:t.title}),o.jsxs("div",{className:"mt-4 inline-flex items-center gap-1.5 text-sm text-muted-foreground group-hover:text-primary transition-colors",children:["Read more",o.jsx(jt,{className:"w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform"})]})]},t.slug))})]})})}function Ip(){return o.jsx("section",{className:"py-24 lg:py-32 bg-background",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"relative overflow-hidden rounded-3xl bg-primary p-10 lg:p-16 text-center",children:[o.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[400px] rounded-full bg-accent/20 blur-3xl"}),o.jsxs("div",{className:"relative max-w-2xl mx-auto",children:[o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-primary-foreground mb-4 tracking-tight",children:"Critical deliveries require a reliable partner."}
358),o.jsx("p",{className:"text-lg text-primary-foreground/80 mb-8",children:"From lab specimens to time-sensitive pharmaceuticals, MCI provides consistent, compliant delivery across the healthcare supply chain."}),o.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[o.jsx(Ce,{size:"xl",className:"bg-primary-foreground text-primary hover:bg-primary-foreground/90 rounded-full",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-4 h-4 ml-1"})]})}),o.jsx(Ce,{variant:"link",size:"lg",className:"text-primary-foreground hover:text-primary-foreground/80",asChild:!0,children:o.jsx(he,{to:"/solutions",children:"Learn More"})})]})]})]})})})}const WP=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Medical Couriers | Healthcare Logistics & Specimen Delivery",description:"Nationwide medical courier with 50+ years delivering lab specimens, pharmaceuticals, and temperature-controlled goods at a 99.7% on-time rate.",canonical:"https://medicalcouriers.com"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsx(PP,{}),o.jsx(Ob,{}),o.jsx(LP,{}),o.jsx(IP,{}),o.jsx($P,{}),o.jsx(UP,{}),o.jsx(BP,{}),o.jsx(HP,{}),o.jsx(Ip,{})]}),o.jsx(Yt,{})]}),Ib="/assets/lab-technician-VrcX0Nwe.png",VP="/assets/about-hero-CX4RvqJb.png",qP=[{icon:cT,title:"Patient-First Focus",description:"Every decision we make starts with patient health outcomes. Our entire operation is built around ensuring critical medical materials reach their destinations safely and on time."},{icon:Kc,title:"The Medical Courier Alliance",description:"Our hand-selected network of Care Agents represents the best in the industry—experienced professionals who understand the critical nature of healthcare logistics."},{icon:tT,title:"Technology-Driven Innovation",description:"Our proprietary technology platform provides real-time visibility, intelligent routing, and seamless communication across every touchpoint."},{icon:qc,title:"Uncompromising Quality",description:"With 99.7% on-time delivery and rigorous quality controls, we maintain the highest standards in healthcare logistics."}],KP=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"About Medical Couriers | 50+ Years in Healthcare Logistics",description:"How Medical Couriers has delivered patient-centered healthcare logistics for over 50 years across all 50 states.",canonical:"https://medicalcouriers.com/about"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-48 pb-32 lg:pt-60 lg:pb-40 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:VP,alt:"Courier handling yellow shipping boxes for medical transport",className:"w-full h-full object-cover object-top"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight mb-6",children:"Patient-centered delivery solutions for healthcare"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl",children:"Over 50 years of excellence. Nearly 10 million specimens delivered annually. One mission: ensuring critical medical materials reach their destinations safely."})]})})]}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsx("div",{className:"max-w-4xl mx-auto text-center",children:o.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground",children:"Serving Prominent Health Care Brands Nationwide"})})})}),o.jsx(Ob,{}),o.jsx("section",{className:"py-20 lg:py-28",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center max-w-6xl mx-auto",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"Commitment to excellence"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"We celebrate over 50 years of specimen integrity! By applying professionalism, compassion, and leading edge technology to medical delivery, we've been able to accomplish over 50 million deliveries to become the leaders of our industry."})]}),o.jsx("div",{className:"flex justify-center lg:justify-end",children:o.jsxs("div",{className:"relative rounded-2xl overflow-hidden max-w-[400px] lg:max-w-[450px]",children:[o.jsx("img",{src:Ib,alt:"Lab technician handling medical specimens",loading:"lazy",className:"w-full h-auto"}),o.jsx("div",{className:"absolute inset-0 bg-primary/15 mix-blend-multiply"})]})})]})})}),o.jsx("section",{className:"py-20 lg:py-28 bg-secondary",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("span",{className:"inline-block text-sm font-semibold text-primary uppercase tracking-wider mb-4",children:"Our Story"}),o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8",children:"50+ Years of Excellence in Healthcare Logistics"}),o.jsxs("div",{className:"space-y-6 text-lg text-muted-foreground leading-relaxed",children:[o.jsx("p",{children:"Medical Couriers International was founded with a simple but powerful mission: ensure that critical medical materials—specimens, pharmaceuticals, and equipment—reach their destinations safely and on time, every time."}),o.jsx("p",{children:"Today, we deliver nearly 10 million specimens every year through our network of highly experienced Care Agents, known as The Medical Courier Alliance. Our team understands that behind every package is a patient waiting for results, a treatment, or critical care."}),o.jsx("p",{children:"Our proprietary technology platform combines decades of logistics expertise with cutting-edge innovation, providing real-time visibility, intelligent route optimization, and seamless communication across the entire healthcare supply chain."})]})]})})}),o.jsx("section",{className:"py-20 lg:py-28",children:o.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[o.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[o.jsx("span",{className:"inline-block text-sm font-semibold text-primary uppercase tracking-wider mb-4",children:"Our Values"}),o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:"What Drives Us Every Day"})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:qP.map(t=>o.jsxs("div",{className:"p-8 rounded-2xl bg-secondary border border-border",children:[o.jsx("div",{className:"w-14 h-14 roun
358ded-xl bg-primary/10 flex items-center justify-center mb-6",children:o.jsx(t.icon,{className:"w-7 h-7 text-primary"})}),o.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]},t.title))})]})}),o.jsx("section",{className:"py-20 lg:py-28 gradient-soft",children:o.jsxs("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"Ready to partner with us?"}),o.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-xl mx-auto",children:"Learn how Medical Couriers International can transform your healthcare logistics operations."}),o.jsx(Ce,{variant:"pill",size:"xl",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-5 h-5 ml-1"})]})})]})})]}),o.jsx(Yt,{})]}),GP="/assets/lab-specimens-C7_tqd56.png",JP="/assets/pharmaceuticals-C3-6Z7wE.png",ZP="/assets/medical-equipment-CITrJA0_.png",QP="/assets/temperature-control-D93uPqhL.png",YP="/assets/radiopharmaceuticals-B0asDj6y.png",XP="/assets/rapid-response-g5aQqa-H.png",eR="/assets/infusion-pharmacy-CyDHmsms.png",tR="/assets/infusion-pharmacy-photo-BOon3KVj.png",rR="/assets/direct-to-patient-Bn8rNBE_.png",nR="/assets/next-flight-out-B_TPd7En.png",sR="/assets/organ-transport-pRRUDVKQ.png",iR="/assets/services-hero-new-DR1Hl1pL.png",aR="/assets/cold-storage-DWehjk1v.png",by="/assets/pharmacy-delivery-BN1u_3kR.png",oR="/assets/medical-equipment-photo-CpxdEEuZ.png",lR="/assets/radiopharmaceuticals-photo-B84wS7jM.png",cR="/assets/rapid-response-photo-D2AtB7Y3.png",uR="/assets/next-flight-out-photo-YjbVdDs0.png",dR="/assets/organ-transport-photo-BZyXou-e.png",hR=[{image:GP,photo:Ib,usePhoto:!0,title:"Lab Specimens",description:"Safe and timely transport of clinical specimens with temperature monitoring and chain-of-custody protocols. From routine samples to time-sensitive diagnostics.",features:["Temperature-controlled transport","Chain of custody tracking","HIPAA compliant handling","24/7 availability"]},{image:JP,photo:by,usePhoto:!0,title:"Specialized Pharmaceuticals",description:"Expert handling of specialty medications, biologics, and controlled substances with strict compliance to regulatory requirements.",features:["DEA-compliant processes","Cold chain management","Signature verification","Real-time tracking"]},{image:ZP,photo:oR,usePhoto:!0,title:"Durable Medical Equipment",description:"Reliable delivery and setup of medical equipment, from mobility aids to diagnostic devices, with professional handling every step.",features:["White glove delivery","Equipment setup available","Damage-free transport","Scheduled deliveries"]},{image:QP,photo:aR,usePhoto:!0,title:"Temperature-Controlled Goods",description:"Precision temperature management for sensitive medical products, vaccines, and biologics with continuous monitoring.",features:["2-8°C cold chain","Frozen transport available","Temperature logging","Validated packaging"]},{image:YP,photo:lR,usePhoto:!0,title:"Radiopharmaceuticals",description:"Specialized transport of radioactive materials for diagnostic and therapeutic applications with full regulatory compliance.",features:["NRC licensed","Decay time management","Secure transport","Specialized packaging"]},{image:XP,photo:cR,usePhoto:!0,title:"Rapid Response Services",description:"On-demand emergency courier services when standard timelines aren't enough. Available 24/7 for critical healthcare needs.",features:["STAT deliveries","24/7 dispatch","Direct routes","Real-time updates"]},{image:eR,photo:tR,usePhoto:!0,title:"Infusion Pharmacy",description:"Specialized delivery of infusion medications and supplies directly to healthcare facilities and patients requiring IV therapies.",features:["Temperature-controlled delivery","Scheduled infusion drops","Coordination with pharmacies","Patient-ready packaging"]},{image:rR,photo:by,usePhoto:!0,title:"Direct to Patient",description:"Convenient home delivery of medications, medical supplies, and equipment directly to patients with care and discretion.",features:["Residential delivery","Signature confirmation","Flexible scheduling","Discreet packaging"]},{image:nR,photo:uR,usePhoto:!0,title:"Next Flight Out",description:"Urgent air transport for time-critical medical deliveries when ground transport isn't fast enough. Nationwide coverage with same-day options.",features:["Same-day air delivery","Airport-to-airport service","Hand-carry available","Priority booking"]},{image:sR,photo:dR,usePhoto:!0,title:"Organ Transport",description:"Specialized transport of organs and tissues for transplantation with the highest priority and precision handling protocols.",features:["24/7 dedicated dispatch","Specialized containers","Real-time GPS tracking","Critical time management"]}],fR=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Medical Courier Services | Lab, Pharma & Cold-Chain Delivery",description:"Specialized transport for lab specimens, pharmaceuticals, medical equipment, and temperature-controlled healthcare materials.",canonical:"https://medicalcouriers.com/services"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-40 pb-24 lg:pt-52 lg:pb-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:iR,alt:"Vaccine vials being transported in boxes",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Our Services"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl",children:"Comprehensive healthcare logistics solutions for every critical delivery need—from routine specimens to life-saving organ transport."})]})})]}),o.jsx("section",{className:"py-12 lg:py-16",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:hR.map(t=>o.jsxs("div",{className:"group p-8 rounded-2xl bg-background border border-border hover:border-primary/30 shadow-soft hover:shadow-medium transition-all duration-300",children:[t.usePhoto&&t.photo?o.jsxs("div",{className:"relative w-full h-32 mb-6 rounded-xl overflow-hidden",children:[o.jsx("img",{src:t.photo,alt:t.title,loading:"lazy",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-primary/15 mix-blend-multiply"})]}):o.jsx("div",{className:"w-20 h-20 mb-6 flex items-center justify-center",children:o.jsx("img",{src:t.image,alt:t.title,loading:"lazy",className:"w-full h-full object-contain"})}),o.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:t.description}),o.jsx("ul",{className:"space-y-2",children:t.features.map(e=>o.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),e]},e))})]},t.title))})})}),o.jsx("section",{className:"py-20 lg:py-32 gradient-soft",children:o.jsxs("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"Need a custom solution?"}),o.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-xl mx-auto",children:"Our team will work with you to develop a tailored logistics plan that meets your specific requirements."}),o.jsx(Ce,{variant:"pill",size:"xl",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-5 h-5 ml-1"})]})})]})})]}),o.jsx(Yt,{})]}),pR="/assets/solutions-hero-new-B-sE1T4p.png",mR="/assets/cost-y1-KpqMo.jpg",gR="/assets/custom-Bd6_73-Q.jpg",yR="/assets/rapid-3NpTClyG.jpg",vR="/assets/tech-C4frh8c6.jpg",xR="/assets/visibility-C_K0_cIl.jpg",wR=[{id:"cost",title:"Driving Cost Containment",cta:"Explore cost containment",description:"We reduce your total cost of delivery by combining a nationwide pre-existing route network with data-driven optimization and custom program audits and redesign—so every workflow, route, and vendor relationship is aligned to your savings goals.",image:mR,alt:"Logistics coordinator reviewing nationwide route maps and cost data",benefits:["Custom program audits uncover redundancies, rate gaps, and underutilized routes","Redesigned service levels, routing, and vendor contracts based on audit findings","Dynamic route optimization lowers fuel and mileage costs by up to 30%","Quarterly performance reviews with measurable cost-recovery targets"]}
358,{id:"custom",title:"Customized Solutions",cta:"See customized solutions",description:"No two healthcare networks operate the same way. We design pickup schedules, service levels, and reporting around your workflows, then adjust as your volume, sites, and priorities evolve.",image:gR,alt:"Medical courier delivering a temperature-controlled specimen tote to a hospital lab",benefits:["Custom pickup and delivery schedules aligned to lab cutoffs and clinic hours","Tiered service levels—scheduled, on-demand, STAT, and dedicated fleet","LIS, EHR, and TMS integrations for barcode-driven chain of custody","Named account manager with quarterly business reviews and SLA scorecards"]},{id:"rapid",title:"Rapid Response 911",cta:"Explore rapid response",description:"When an incumbent courier fails and patient care is at risk, our rapid-response team stands up coverage in hours—not weeks—then audits the failure points so the same issue never repeats.",image:yR,alt:"Emergency medical courier van responding at dusk",benefits:["24/7 dispatch with emergency onboarding in as little as 24–72 hours","On-the-ground triage of missed pickups, temperature excursions, and SLA breaches","Root-cause audit of prior carrier routes, technology, and driver performance","Structured transition plan that protects specimen integrity and continuity of care"]},{id:"tech",title:"Technology Integration",cta:"See technology solutions",description:"Our proprietary monitoring platform ties GPS, barcode scans, and temperature data to every stop, giving your team the visibility to intervene before a delayed specimen becomes a delayed diagnosis.",image:vR,alt:"Clinician using a smartphone to scan a barcode on a specimen bag next to live tracking dashboards",benefits:["Live GPS tracking with stop-level ETAs and proof-of-delivery capture","Proactive alerts for late pickups, missed stops, and cold-chain excursions","Configurable dashboards for operations, quality, and compliance teams","REST API and HL7/FHIR-friendly feeds for LIS, EHR, and TMS integration"]},{id:"visibility",title:"Enhanced Visibility & Optics",cta:"See visibility & optics",description:"We turn raw operational data into a clear picture of how your delivery program is actually performing—so exceptions are visible, accountability is measurable, and improvement is continuous.",image:xR,alt:"Operations team reviewing U.S. logistics dashboards and live delivery maps on a wall of screens",benefits:["SLA exception reporting with root-cause tagging and trend analysis","Custom KPI dashboards tailored to your sites, routes, and service tiers","Real-time performance scorecards for driver, route, and lane accountability","Quarterly reviews that translate data into concrete process improvements"]}],bR=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Healthcare Logistics Solutions | Cost & Tech",description:"Custom logistics: cost containment, rapid-response 911, technology integration, and enhanced shipment visibility.",canonical:"https://medicalcouriers.com/solutions"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-40 pb-24 lg:pt-52 lg:pb-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:pR,alt:"Cost savings visualization with downward trending arrow",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Solutions"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl",children:"Tailored healthcare logistics solutions designed to meet your unique operational needs"})]})})]}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsx("div",{className:"space-y-20 lg:space-y-28",children:wR.map(t=>o.jsxs("article",{id:t.id,className:"max-w-4xl mx-auto",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:t.title}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8",children:t.description}),o.jsxs("div",{className:"relative aspect-video rounded-2xl overflow-hidden border border-border mb-8",children:[o.jsx("img",{src:t.image,alt:t.alt,className:"w-full h-full object-cover",loading:"lazy",width:1280,height:720}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/40 to-transparent"})]}),o.jsx("ul",{className:"space-y-3 mb-8",children:t.benefits.map(e=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:o.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"})}),o.jsx("span",{className:"text-foreground",children:e})]},e))}),o.jsx(Ce,{variant:"pill",size:"lg",asChild:!0,children:o.jsxs(he,{to:"/contact",children:[t.cta,o.jsx(jt,{className:"w-4 h-4 ml-1"})]})})]},t.id))})})}),o.jsx("section",{className:"py-20 lg:py-32 gradient-soft",children:o.jsxs("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"Ready to optimize your healthcare logistics?"}),o.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-xl mx-auto",children:"Our team will work with you to develop a customized solution that meets your specific requirements."}),o.jsx(Ce,{variant:"pill",size:"xl",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-5 h-5 ml-1"})]})})]})})]}),o.jsx(Yt,{})]}),kR="/assets/quality-control-x3CJZ6wS.jpg",SR="/assets/efficiency-2026-C690Xliq.jpg",_R="/assets/compliance-audit-Dv__mQXT.jpg",CR="/assets/regulatory-2026-v2-DFEFLpl9.jpg",jR="/assets/ai-routing-2026-v2-BZX6MPnv.jpg",TR="/assets/carrier-consolidation-v2-C_9ebrmV.jpg",ER="/assets/halo-control-tower
358-B6vk5TBa.jpg",NR="/assets/lost-specimen-cost-BjhqrBef.jpg",AR="/assets/ksms-air-cargo-DKjM4Zc2.jpg",PR="/assets/service-portfolio-v4-BI3sl4GD.jpg",RR="/assets/sustainability-fleet-COTz9_oM.jpg",OR="/assets/supply-chain-resilience-BHutrgXg.jpg",IR="/assets/iot-telematics-CsVgGz_a.jpg",MR="/assets/california-charter-2026-BRBRVZjk.jpg",LR="/assets/mca-network-BKoO386W.jpg",DR="/assets/clinical-vs-common-v2-C5t2BOFg.jpg",$R="/assets/cgt-therapy-2026-D6xawTYx.jpg",UR="/assets/health-system-case-v2-bxp3dEX7.jpg",FR="/assets/business-continuity-BnZFcZOO.jpg",BR="/assets/digital-twin-DSkwaems.jpg",zR="/assets/dispatch-24-7-M9vAjbWM.jpg",Mb=[{title:"Preanalytical Quality Control: Cutting Specimen Rejection Rates in the Transport Window",excerpt:"Up to 70% of laboratory errors originate before a specimen ever reaches the analyzer. Here's how engineered transport controls close the preanalytical gap.",category:"Quality Control",date:"July 22, 2026",slug:"mastering-quality-control-your-guide-to-reducing-test-errors-by-25",content:`Ask any laboratory director where their quality problems come from, and the answer is remarkably consistent: not the analyzer. Peer-reviewed studies from the College of American Pathologists (CAP), Clinical Chemistry, and Biochemia Medica have repeatedly placed **46% to 70% of all laboratory errors in the preanalytical phase** — the window between specimen collection and the moment the tube is racked on the instrument. Hemolysis, clotting, temperature excursion, mislabeling, and delayed transport account for the overwhelming majority of these defects. Every one of them happens before the lab has any control over the sample.
359
360That is the uncomfortable truth of modern diagnostics: the analyzer is the most reliable link in the chain. The transport window is the weakest. For specialty labs, hospital outreach programs, and reference networks operating on 25% or greater rejection-driven redraw rates, the fastest path to measurable quality improvement is not another instrument — it is engineered control of the preanalytical journey.
361
362## Why the Transport Window Is the Real Quality Bottleneck
363
364CAP's Q-Probes and Q-Tracks studies, along with data published by the CLSI (GP44 and GP41 guidelines), consistently show that specimen integrity failures cluster around a handful of transport-side variables:
365
366- **Time-to-centrifuge exceeded** — potassium, glucose, and lactate drift outside clinically acceptable ranges within 60 minutes of collection when tubes are held at ambient temperature.
367- **Temperature excursion** — refrigerated and frozen specimens routinely fall out of range in vehicles without validated cold-chain controls.
368- **Mechanical hemolysis** — vibration, agitation, and improper tube orientation during transit are a leading cause of rejected chemistry panels.
369- **Chain-of-custody gaps** — unscanned handoffs make root-cause analysis impossible and expose the lab during CAP, CLIA, and Joint Commission inspections.
370- **Labeling and requisition mismatches** — often introduced or compounded during pickup, not at the draw station.
371
372Each of these failure modes is a logistics problem wearing a laboratory uniform. And each one is addressable with the same discipline a lab applies inside its own four walls.
373
374## The Cost of a Rejected Specimen
375
376The financial and clinical cost of a single rejected specimen is routinely underestimated. Published estimates from the *American Journal of Clinical Pathology* and Lippincott's *Laboratory Medicine* put the fully loaded cost of a redraw between **$200 and $600 per event** when redraw labor, courier re-dispatch, delayed turnaround, physician follow-up, and patient re-encounter are included. For a mid-sized outreach program running 5,000 daily accessions at even a 2% rejection rate, that is a seven-figure annual leak — before accounting for the downstream impact on length of stay, delayed treatment decisions, and patient trust.
377
378Reducing preanalytical errors by 25% is not an aspirational KPI. It is a recoverable margin.
379
380## Five Engineered Controls That Move the Number
381
382The organizations bringing rejection rates down are not writing better SOPs and hoping. They are building preanalytical qual
382ity into the transport layer itself. Five controls do the heaviest lifting:
383
384### 1. Stability-Window Routing
385
386Routes are engineered around specimen stability, not driver convenience. Chemistry-heavy pickups are sequenced to reach the centrifuge inside the 60-minute window. Frozen and refrigerated legs are separated from ambient legs. The route is the SOP.
387
388### 2. Validated, Continuously Monitored Cold Chain
389
390Passive coolers with validated hold times, active data loggers on refrigerated and frozen legs, and documented equilibration procedures at every handoff. When a temperature excursion happens, the lab knows before the sample is accessioned — not after the result is questioned.
391
392### 3. Scan-Based Chain of Custody
393
394Every specimen scanned at pickup, every handoff, and every delivery. The COC record is not a signature on a manifest; it is a timestamped, geolocated, auditable ledger. When CAP inspectors ask how you know a specimen was in range from collection to accession, you show them the data.
395
396### 4. Real-Time Deviation Alerting
397
398Missed stops, extended dwell times, and temperature breaches trigger alerts to a 24/7 operations desk while the vehicle is still moving — not after the specimen is rejected. Exceptions get intercepted, rerouted, or redrawn proactively, before they become a redraw ticket the next morning.
399
400### 5. Root-Cause Reporting and CAPA Support
401
402Every rejection is tied back to a specific leg, a specific handoff, a specific Care Agent, and a specific environmental record. Trends drive corrective and preventive action (CAPA) plans that the lab can present to inspectors, health-system partners, and payers as evidence of a controlled process.
403
404## Quality Control Is a Shared Process, Not a Handoff
405
406The labs cutting rejection rates the fastest have stopped treating logistics as a vendor relationship and started treating it as an extension of their preanalytical QA program. Their transport partner sits inside their quality huddles. Rejection data is shared weekly. Route changes are validated against stability data. Care Agents are trained on the same clinical rationale that governs the phlebotomist's technique.
407
408That is the shift behind a 25% reduction in preanalytical errors: not a new gadget, not a new dashboard — a partner whose operating model is engineered around the same clinical outcomes the lab is accountable for.
409
410## The Bottom Line
411
412Preanalytical error is the largest, most persistent, and most recoverable quality problem in the modern laboratory. It is also the one problem the lab cannot solve alone. Every hour a specimen spends outside the lab's walls is an hour of exposure — to temperature, to time, to handling, to documentation gaps. Closing that exposure requires the same rigor inside the vehicle that the lab demands inside the analyzer.
413
414That is what clinical-grade logistics is for. And that is where the next 25% of your quality improvement is hiding.
415
416### Sources and further reading
417
418- College of American Pathologists, *Q-Probes* and *Q-Tracks* preanalytical error studies
419- CLSI GP44-A4, *Procedures for the Handling and Processing of Blood Specimens for Common Laboratory Tests*
420- CLSI GP41, *Collection of Diagnostic Venous Blood Specimens*
421- Plebani M. *Errors in clinical laboratories or errors in laboratory medicine?* Clin Chem Lab Med. 2006
422- Lippi G, et al. *Preanalytical quality improvement: from dream to reality.* Clin Chem Lab Med. 2011`,image:kR},{title:"Operational Efficiency in Clinical Logistics: Where the Next 15% of Productivity Actually Lives",excerpt:"Efficiency gains in modern lab networks no longer come from faster driving. They come from stability-aware routing, exception automation, and shared operational data.",category:"Efficiency",date:"July 15, 2026",slug:"unlock-efficiency-strategies-to-boost-productivity-by-15",content:`The old efficiency playbook in medical courier work — squeeze the route, add a stop, cut a minute — has run out of margin. Clinical logistics networks that continue to compete on driver-hour productivity alone are giving back the gains at the analyzer, where late specimens generate redraws, and at the loading dock, where unmanaged exceptions consume disproportionate operational overhead.
423
424The next durable 15% of productivity in a clinical logistics network is no longer inside the vehicle. It lives in three places: stability-aware routing, automated exception handling, and shared o
424perational data between the lab and its transport partner.
425
426## Stability-Aware Routing Beats Distance-Optimized Routing
427
428Distance and drive-time optimizers were built for parcels. They will happily sequence a chemistry-heavy pickup into a route that arrives at the centrifuge 90 minutes after collection — technically on time, clinically already degraded. A stability-aware router sequences pickups against tube-type stability windows first, then optimizes distance within that constraint. The difference shows up as fewer rejections, fewer redraws, and a measurably lower cost per resulted test.
429
430## Automate the Exception, Not Just the Route
431
432In most operations, 80% of dispatch overhead is spent on the 5% of stops that go sideways: a missed pickup, an extended dwell time, a temperature breach, a traffic reroute. The efficiency lever is not making the good stops faster — it is intercepting the exceptions before they become downstream work.
433
434That is what a 24/7 operations desk does when it is wired into telematics, temperature loggers, and scan events in real time. Exceptions get rerouted, redrawn, or escalated inside the same operational cycle they occurred in — not the next morning, when the lab is already working around them.
435
436## Share the Data, Split the Gains
437
438The highest-performing outreach programs share weekly operational data with their transport partner: rejection categories tied to specific routes, TAT distributions by pickup window, temperature-excursion counts by lane. That shared visibility turns route design into a joint quality process rather than a vendor negotiation. Every quarter, the route sheet reflects what the lab actually needs — not what the courier assumed six months ago.
439
440## Where the 15% Comes From
441
442Programs that pull these three levers consistently recover productivity across three lines at once: fewer rejections at the lab (redraw cost, TAT, physician follow-up), fewer emergency STAT dispatches (overtime, priority surcharges), and lower internal coordination overhead (management time spent chasing exceptions). Sum them and 15% is conservative. In most programs it is closer to 20%.
443
444The point is not to move faster. It is to remove the work that never should have entered the queue in the first place.`,image:SR},{title:"Audit-Ready by Design: Building a Transport Layer That Survives CAP, CLIA, and Joint Commission Inspections",excerpt:"Compliance in the specimen transport layer is no longer a policy document — it is a data trail. Here is how the labs passing inspection cleanly are engineering theirs.",category:"Compliance",date:"July 8, 2026",slug:"empower-your-lab-boost-compliance-by-20-through-strategic-implementations",content:`Laboratory inspections have quietly changed. CAP, CLIA, and Joint Commission surveyors are no longer content with a binder of SOPs and a signed manifest. They want to see the data — timestamped, environmental, defensible — for the entire preanalytical window, including the miles the specimen spent outside the lab's four walls.
445
446For lab directors and quality managers, that shift has turned specimen transport from a vendor line item into an active compliance surface. And it has turned the choice of logistics partner into a compliance decision.
447
448## What Inspectors Now Ask About the Transport Window
449
450Recent CAP checklist updates and Joint Commission Laboratory Accreditation surveys are consistently probing four transport-side questions:
451
452- **Chain of custody**: Can you demonstrate, for any specimen, an unbroken timestamped custody record from collection to accession?
453- **Environmental integrity**: Can you produce temperature and, where applicable, orientation and shock data for refrigerated, frozen, and ambient legs?
454- **Deviation management**: When something went wrong — a delay, a breach, a missed pickup — can you show the alert, the intervention, and the CAPA?
455- **Personnel qualification**: Can you produce current documentation of training, background checks, and BBP/HIPAA certifications for every Care Agent who touched a specimen?
456
457The labs passing cleanly are the ones whose transport partner produces this evidence on demand — not the ones scrambling to re
457construct it during the survey.
458
459## Twenty Percent Fewer Findings — Not by Trying Harder
460
461Programs that move to an engineered, data-first transport model consistently report 15–25% fewer inspection findings tied to preanalytical processes. The improvement is not the result of writing better SOPs. It is the result of instrumenting the SOP so the evidence collects itself:
462
463- **Scan-based custody** at every handoff, producing an auditable ledger by default.
464- **Continuous environmental monitoring** on cold-chain legs, with automatic archiving.
465- **Real-time deviation alerts** that generate an incident record, a response record, and a resolution record in the same workflow.
466- **A centralized Compliance Hub** that surfaces expiring credentials before they lapse and produces the roster surveyors ask for.
467
468## Compliance as a Shared Process
469
470The labs treating logistics as an extension of their own quality program — inviting their transport partner into internal audits, sharing corrective actions, aligning on CAPA language — see the biggest compliance gains. Inspectors respond to that alignment. When the transport partner can speak the lab's regulatory language and produce the lab's evidence in the lab's format, the survey stops being an interrogation and becomes a demonstration.
471
472That is what a 20% improvement in compliance rates actually looks like: fewer findings, faster surveys, and a preanalytical process that inspectors can trace end-to-end without leaving the room.`,image:_R},{title:"Regulation Is Catching Up to the Medical Final Mile — Here's What 2026 Looks Like",excerpt:"DSCSA, USP <800>, FSMA cold chain rules, and TSA STA requirements are converging on the medical final mile. Carriers who aren't ready will be replaced.",category:"Regulatory",date:"July 1, 2026",slug:"regulation-and-compliance-in-the-medical-final-mile-space",content:`For most of its history, the medical final mile has operated in a regulatory gray zone. The FDA regulated the drug. The lab regulated the specimen. Someone in between drove the vehicle. That gap is closing fast.
473
474Between DSCSA's fully enforced serialization requirements, USP <800> handling standards for hazardous drugs, FSMA cold-chain rules extending into pharmaceutical logistics, and TSA Security Threat Assessments for anyone touching air cargo, the medical final mile in 2026 is a regulated space whether operators acknowledge it or not.
475
476## What Actually Changed
477
478**DSCSA (Drug Supply Chain Security Act).** Now fully enforced at the package level, with interoperable, unit-level traceability required across the pharmaceutical supply chain. Carriers moving prescription drugs must be able to produce a verified, electronic transaction history on demand — not next week, on demand.
479
480**USP <800>.** Handling standards for hazardous drugs, including chemotherapies and certain hormones, now extend to transport handoffs. Carriers moving these products need documented containment, spill response, and personnel training.
481
482**FSMA cold-chain rules.** Originally food-focused, the underlying framework — continuous temperature control with electronic records — is now the de facto standard for pharmaceutical cold chain, and payers and manufacturers are enforcing it via contract.
483
484**TSA Security Threat Assessment.** Any driver whose route touches an airport cargo facility now needs an active STA on file. "We use a subcontractor" is no longer a defense.
485
486## The Practical Test for Your Current Carrier
487
488If any of the following take more than a business day to answer, your carrier is not ready for what is already here:
489
490- Produce the full custody, temperature, and personnel record for a specific specimen delivered last month.
491- List every driver currently on your account with their credential expiration dates.
492- Show the CAPA for a temperature excursion, spill, or missed pickup on your account in the last quarter.
493- Produce the DSCSA-compliant transaction record for a controlled shipment.
494
495## Getting Ahead of the Next Wave
496
497The Medical Courier Alliance was built for this environment. Every Care Agent onboarded through the MCA carries a documented, verifiable credential stack — background check, MVR, drug screen, HIPAA, BBP, fraud/waste/abuse, and STA where applicable — surfaced in a central Compliance Hub with automated renewal tracking. Client SOPs are codified as step-by-step protocols enforced at the app level, not as PDFs stapled to a clipboard.
498
499When regulators arrive with the next set of expectations — and they will — the operators who treated the final mile as a clinical process, not a transportation task, will be the ones already in compliance.`,image:CR},{title:"AI in Clinical Logistics: What Is Actually Working in 2026 (and What Is Still Marketing)",excerpt:"Machine learning is quietly rewiring dispatch, route design, and exception management inside clinical logistics networks. Here is where the real gains are — and where they are not.",category:"Technology",date:"June 24, 2026",slug:"ai-healthcare-logistics",content:`Three years into the current wave of AI adoption, it is possible to separate the parts of clinical logistics that machine learning has genuinely transformed from the parts where it is still, mostly, a slide in a pitch deck.
500
501The honest picture is narrower than the marketing — and more valuable.
502
503## Where AI Is Actually Working
504
505### 1. Stability-Aware Route Design
506
507Modern route optimizers no longer treat every stop the same. Given tube-type stability windows, historical traffic distributions, and lane-level temperature history, they generate route sheets that keep chemistry pickups inside the 60-minute centrifuge window and separate cold-chain legs from ambient ones by default. The productivity gain is real; the quality gain — fewer rejections — is larger.
508
509### 2. Anomaly Detection on Telemetry Streams
510
511Temperature loggers, GPS, and scan events produce more data than any dispatcher can watch. Anomaly detection models flag the deviations that matter — a cooler warming faster than its equilibration profile predicts, a driver dwelling longer than the site's historical median, a scan sequence that skipped a step — inside the operational cycle they occurred in. That is 
511where the exception-management gains come from.
512
513### 3. Demand Forecasting for Staffing and Capacity
514
515Weekly and seasonal demand patterns for STAT, routed, and Next Flight Out volume are now forecastable to a level that supports real capacity planning. Networks that once staffed to the worst case now staff to the forecast plus a defended margin.
516
517### 4. Root-Cause Clustering on Rejection Data
518
519Rather than reviewing rejected specimens one at a time, clustering models group them by lane, handoff, Care Agent, and environmental profile — surfacing the systemic causes that manual review misses. CAPA plans built on that clustering close a wider gap per cycle.
520
521## Where AI Is Still Mostly Marketing
522
523- **Autonomous drone delivery** for specimens at meaningful volume. Pilots exist; scaled operations do not.
524- **Fully autonomous last-mile vehicles** in mixed urban environments for clinical cargo. Not yet.
525- **"Conversational AI" replacing human dispatch** for time-critical clinical exceptions. The judgment gap remains too costly.
526
527## How MCI Is Applying It
528
529MCI's operations layer uses machine learning where it demonstrably improves clinical outcomes: stability-aware routing, real-time anomaly detection wired into the HALO 24/7 operations desk, and clustering models that turn rejection data into CAPA priorities. Where the technology is not yet reliable enough to trust with a specimen, we have not put it in the workflow.
530
531The point of AI in clinical logistics is not to be futuristic. It is to remove work that never should have entered the queue and to catch problems while there is still time to fix them.`,image:jR},{title:"The Great Carrier Retreat: What Happens When National Parcel Networks Exit Healthcare",excerpt:"National carriers have spent three years quietly walking back their healthcare service offerings. Here is what that leaves labs, pharmacies, and health systems needing to solve.",category:"Industry News",date:"June 17, 2026",slug:"fedex-sameday-delivery",content:`The retreat has been quiet, but it is broad. Over the last three years, national parcel carriers have narrowed their appetite for healthcare-adjacent work: same-day city services retired, cold-chain SLAs tightened or unpriced, hazardous drug handling declined, service maps for medical accounts trimmed. The pattern is consistent across the major carriers, and it is not going to reverse.
532
533For labs, closed-door pharmacies, and hospital outreach programs that built any part of their transport strategy on national parcel networks, 2026 is the year that decision has to be revisited.
534
535## Why the Retreat Is Happening
536
537Healthcare is a low-margin, high-liability segment inside a parcel network optimized for high-volume, low-touch commerce. Specimen rejection risk, cold-chain claims, controlled-substance handling, HIPAA exposure, and the SLA pressure of time-critical clinical windows do not fit the operating model. Rather than rebuild for it, the national carriers are pricing out or exiting.
538
539## What That Leaves on Labs and Pharmacies
540
541- **Same-day and STAT gaps** where the parcel option used to exist.
542- **Cold-chain SLA risk** where general carriers no longer guarantee the profile the payer or manufacturer expects.
543- **Compliance exposure** where documentation from a general carrier no longer holds up in inspection.
544- **Continuity risk** where the exiting carrier gave 90 days notice on a service line the lab had built into its workflow.
545
546## What a Medical-Only Partner Actually Solves
547
548A clinical logistics provider is not a substitute parcel carrier. It is a different operating model built for the constraints general carriers are walking away from:
549
550- **Medical-only fleet and network** — every vehicle, every driver, every SOP is oriented around clinical cargo.
551- **Validated cold chain** on refrigerated, frozen, and cryogenic legs, with continuous environmental records.
552- **24/7 operations desk (HALO)** intercepting exceptions in real time, not next-day.
553- **Documented, credentialed Care Agents** whose training, background checks, and STA status are auditable on demand.
554- **Nationwide network via the Medical Courier Alliance**, so the coverage map is not tied to a single regional fleet.
555
556## The Transition Playbook
557
558For programs still moving clinical cargo on a general carrier, the practical transition is a three-step exercise: inventory every service line by clinical criticality, identify the SLAs and documentation currently unmet, and consolidate onto a medical-only partner one service line at a time — STAT first, cold chain second, routed volume third. Programs that run the transition deliberately close the exposure without disrupting patient care. Programs that wait for the notice letter do not.`,image:TR},{title:"Inside HALO: How a 24/7 Clinical Operations Desk Actually Works",excerpt:"HALO — High Acuity L
558ogistics Operations — is MCI's 24/7 control tower for the shipments the lab cannot afford to lose. Here is what it does, and why it exists.",category:"Products",date:"June 10, 2026",slug:"halo-dedicated-logistics-service",content:`Every clinical logistics network handles its normal volume the same way: routes, scans, deliveries. The difference between operators shows up on the shipments that are not normal — the organ transplant leg, the CGT infusion window, the outbreak-response specimen batch, the controlled-substance shipment on a compressed timeline.
559
560HALO — High Acuity Logistics Operations — is MCI's answer to that class of work. It is a 24/7, always-staffed clinical operations desk that monitors, intervenes, and documents the shipments where "on time" and "in range" are not aspirations but requirements.
561
562## What HALO Actually Does
563
564HALO is not a call center. It is a control-tower operating model, wired directly into the telemetry, scan events, and SOPs of every shipment enrolled in it. Four functions run continuously:
565
566### Live Custody and Environmental Monitoring
567
568Every scan, every temperature reading, every GPS ping on a HALO-enrolled shipment is visible in real time. Deviations do not wait for the next system check; they surface the moment they cross threshold.
569
570### Proactive Intervention
571
572When a variance is detected — a cooler warming past its equilibration profile, a driver stopped longer than the site's historical median, a scan sequence out of order — HALO intervenes inside the operational cycle. Rerouting, backup dispatch, alternate handoff, client notification: whichever action closes the exposure fastest.
573
574### SOP Enforcement at the Vehicle Level
575
576HALO-enrolled clients define the SOP once — chain of custody, handling protocol, environmental profile, escalation ladder — and it is enforced at the app level for every Care Agent who touches the shipment. Not a PDF. A workflow.
577
578### Documentation on Demand
579
580Every event, every intervention, every environmental reading is captured and archived. When the client, the manufacturer, or an inspector asks what happened, the answer is a complete record, produced immediately.
581
582## Who HALO Is For
583
584- **Cell and gene therapy** manufacturers moving autologous product to and from patient sites.
585- **Organ procurement organizations** with time-critical transplant legs.
586- **Specialty pharmacies** shipping controlled substances or high-value biologics.
587- **Reference labs** moving outbreak-response, forensic, or trial specimens.
588- **Any program** whose downside on a single shipment is measured in patient outcome, not dollars.
589
590HALO is not a tier of service. It is a different operating model for the shipments that cannot fail — and the confidence that, when the client asks how a shipment went, the answer is not a summary. It is the evidence.`,image:ER},{title:"The Real Cost of a Lost Specimen in 2026 — And Why the Number Is Higher Than You Think",excerpt:"New data from Q-Probes, health-system quality reports, and payer denial analytics has updated the true cost of a lost or rejected specimen. It is not the redraw.",category:"Best Practices",date:"June 3, 2026",slug:"cost-losing-specimen-medical-supply-delivery",content:`Every laboratory director has a number in their head for the cost of a lost or rejected specimen. In most programs, that number is a decade old, based on redraw labor and courier redispatch, and roughly half of what the fully loaded cost actually is in 2026.
591
592Recent Q-Probes data, health-system quality-cost reports, and payer denial analytics have converged on a much bigger figure — and a much bigger opportunity.
593
594## The Updated Fully Loaded Cost
595
596A single lost or rejected specimen in a modern outreach program now carries a fully loaded cost between **$450 and $1,200**, depending on tube type, clinical priority, and downstream care setting. The components:
597
598- **Redraw labor** — phlebotomy or nursing time, plus supply costs.
599- **Courier redispatch** — often on a STAT SLA at premium pricing.
600- **TAT impact** — delayed result, delayed clinical decision, delayed disposition.
601- **Physician and care-team follow-up** — the reordering, re-communication, and re-documentation cycle.
602- **Patient re-encounter** — where the redraw requires a return visit, with its associated no-show risk.
603- **Denial exposure** — an increasing share of payers now deny for preventable preanalytical rejection.
604- **Quality-metric drag** — inpatient specimens delayed past a threshold now count against length-of-stay and turnaround metrics tied to reimbursement.
605
606At a mid-sized outreach program running 5,000 daily accessions at a 1.5% rejection rate, the fully loaded annual exposure clears **$12 million**. Most programs have never measured it.
607
608## Where the Cost Actually Originates
609
610Northwell/Hofstra's foundational work on specimen loss, extended by more recent CAP Q-Probes cycles, consistently locates the origin of a rejected specimen outside the lab:
611
612- Temperature excursion in transit.
613- Time-to-centrifuge exceeded.
614- Mechanical hemolysis from vibration or improper orientation.
615- Custody or labeling gaps introduced at pickup.
616
617Each of these is a logistics problem. Each is preventable with an engineered transport layer. And each is where the recoverable margin lives.
618
619## The Medical-Only Argument, in Dollars
620
621The case for a medical-only clinical logistics partner has always been made on quality and patient safety. In 2026, it can be made on cost alone. A 25% reduction in preanalytical rejections at a $600 fully loaded average yields a seven-figure recovery in most mid-sized outreach programs — before counting the compliance, TAT, and patient-satisfaction benefits.
622
623MCI has not lost a specimen in 56 years. That number is a promise. The recoverable margin behind it is a business case.`,image:NR},{title:"KSMS, IATA, and TSA STA in 2026: What Air-Freight Compliance Actually Requires for Medical Cargo",excerpt:"Moving specimens and biologics by air in 2026 means clearing three overlapping compliance regimes. Here is what each requires — and why known-shipper status still matters.",category:"Compliance",date:"May 27, 2026",slug:"ksms-known-shipper",content:`Air freight remains the fastest lane for time-critical medical cargo — organs, CGT product, outbreak specimens, Next Flight Out shipments — but the compliance regime around it has tightened materially. In 2026, moving medical cargo by air requires clearing three overlapping regimes: TSA's Known Shipper Management System (KSMS), IATA's Dangerous Goods Regulations where the shipment qualifies, and TSA Security Threat Assessments (STA) for personnel touching air cargo.
624
625Getting any of the three wrong grounds the shipment.
626
627## KSMS: Still the Gate for Passenger-Aircraft Cargo
628
629The Known Shipper Management System remains the TSA program that determines which shippers can tender cargo to passenger aircraft. Cargo-only aircraft run fewer routes at lower frequency and higher cost; passenger belly capacity is where the speed and economics live. For a medical carrier's Next Flight Out service, tendering only KSMS-qualified shipments is not a preference — it is the ticket.
630
631Post-2020 updates to the KSMS validation process have tightened documentation requirements and shortened the qualification-renewal cycle. Shippers who let their status lapse discover the problem at the airport, not before.
632
633## IATA Dangerous Goods: Category A, Category B, and Dry Ice
634
635Most diagnostic specimens ship as **UN 3373 Biological Substance, Category B**, under IATA Packing Instruction 650. Infectious substances capable of causing permanent disability or life-threatening disease ship as **UN 2814 or UN 2900 Category A**, under Packing Instruction 620. Dry ice — used in most frozen and cryogenic legs — is regulated as **UN 1845**, with quantity limits per aircraft type.
636
637Every one of these requires trained, current shippers, correct outer packaging, correct marks and labels, and a compliant shipper's declaration where applicable. IATA training is renewable on a 24-month cycle. Lapsed training is a rejected shipment.
638
639## TSA STA: The Personnel Layer
640
641Any driver, handler, or Care Agent whose duties touch air cargo needs an active TSA Security Threat Assessment on file. The STA is not a one-time check; it is renewed on cycle, and expired STAs pull people off air-cargo assignments in real time. A serious clinical logistics partner tracks STA status alongside HIPAA, BBP, and MVR credentials in a central Compliance Hub with automated renewal alerts — not a spreadsheet.
642
643## What This Looks Like in Practice
644
645For a lab tendering specimens to Next Flight Out, the compliance stack that has to be current on every shipment includes: shipper KSMS status, packaging that meets PI 650 or PI 620 as applicable, correct hazard labels and dry-ice marks, a compliant airway bill, IATA-trained personnel on both the shipper and carrier side, and active TSA STAs on every Care Agent in the chain.
646
647MCI maintains that stack as a standing operational baseline. The value to the client is not that we know the regulations. It is that we have already cleared them before the shipment is tendered.`,image:AR},{title:"MCI's 2026 Service Portfolio: The Full Clinical Logistics Stack, at a Glance",excerpt:"A refreshed look at MCI's service lines — STAT, routed collection, cold chain, Next Flight Out, HALO, California Nightly Charter, and nationwide multi-state coverage.",category:"Services",date:"May 20, 2026",slug:"medical-courier-services",content:`Clinical logistics is not one service. It is a portfolio of engineered service lines, each built for a specific class of clinical cargo and a specific class of clinical risk. Below is a current-state map of MCI's 2026 service stack.
648
649## STAT and Next Flight Out
650
651Same-day, time-critical dispatch for specimens, organs, biologics, and controlled shipments. STAT covers ground within the served metro; Next Flight Out extends the same operating discipline to passenger and cargo aircraft, tendered exclusively from KSMS-qualified shippers.
652
653## Routed and Scheduled Specimen Collection
654
655The backbone of outreach programs. Fixed-interval pickups engineered around specimen stability windows, with route design that keeps chemistry pickups inside the centrifuge window and separates cold-chain legs from ambient ones by default.
656
657## Validated Cold Chain
658
659Refrigerated, frozen, and cryogenic transport with validated packaging, continuous environmental monitoring, and documented equilibration procedures at every handoff. Purpose-built for cell and gene therapy, biologics, vaccines, and specialty pharmacy product.
660
661## HALO — High Acuity Logistics Operations
662
663A 24/7 control-tower operating model for the shipments that cannot fail. Live custody and environmental monitoring, proactive intervention on any variance, SOP enforcement at the vehicle level, and complete on-demand documentation. Detailed in a separate article in this series.
664
665## California Nightly Charter
666
667MCI's private-air link between Northern and Southern California. Departs Hayward at midnight, arrives Los Angeles by 2 a.m., returns 4–6 a.m. Cuts hours off the fastest ground alternative and unlocks later cutoffs and earlier delivery windows in both regions.
668
669## Multi-State Coverage via the Medical Courier Alliance
670
671The MCA extends MCI's operating standards nationwide through a vetted network of clinical logistics partners. Same credentials, same technology, same SOPs — locally executed, centrally coordinated.
672
673## Compliance Hub and Care Agent Credentialing
674
675Underneath every service line is a personnel credentialing layer: HIPAA, BBP, fraud/waste/abuse, MVR, background check, drug screen, TSA STA where applicable — tracked in a central hub with automated renewal alerts and available on demand to clients and inspectors.
676
677The stack is designed as one system. Clients scale across service lines without changing partners, retraining on new SOPs, or rebuilding their compliance evidence. The transport layer flexes; the clinical discipline behind it does not.`,image:PR},{title:"Decarbonizing Clinical Logistics: The 2026 Sustainability Playbook",excerpt:"Healthcare accounts for 8.5% of U.S. greenhouse gas emissions, with supply-chain logistics a meaningful contributor. Here is what a clinical logistics network can actually do about it.",category:"Sustainability",date:"May 13, 2026",slug:"medical-couriers-healthcare-climate-change-crisis",content:`The National Academy of Medicine's most recent estimate puts U.S. healthcare at roughly **8.5% of national greenhouse gas emissions** — larger than every national healthcare system except China's on an absolute basis. Roughly 80% of that footprint is Scope 3, and logistics sits inside Scope 3.
678
679For health systems now reporting Scope 3 emissions under SEC climate disclosure rules, state-level requirements (notably California SB 253), and payer-driven sustainability commitments, the emissions profile of their clinical logistics partner has moved from a nice-to-have into a reported number.
680
681## What Actually Moves the Number
682
683Four levers, in rough order of impact:
684
685### 1. Route Density
686
687The single largest emissions reduction in a clinical logistics network comes from denser, better-sequenced routes. Fewer miles per stop, fewer empty backhauls, fewer emergency STAT dispatches driven by upstream planning gaps. Stability-aware routing improves both quality and emissions in the same design pass.
688
689### 2. Fleet Electrification Where the Duty Cycle Fits
690
691Urban routed collection with predictable daily mileage and depot charging is a natural fit for battery-electric vehicles. Long-haul, cold-chain, and Next Flight Out lanes are not — yet. Credible sustainability plans specify which duty cycles are electrifying and on what timeline, and do not overpromise the rest.
692
693### 3. Cold-Chain Packaging Optimization
694
695Passive coolers with validated hold times, right-sized to the shipment profile, dramatically reduce dry-ice consumption and gel-pack cycling — both meaningful contributors to a program's Scope 3 footprint.
696
697### 4. Digitization of the Paper Trail
698
699Scan-based custody, electronic proof of delivery, and digital manifests eliminate a surprisingly large paper footprint across a national medical courier network.
700
701## What MCI Is Doing
702
703MCI's decarbonization work is anchored in the same operating discipline as its quality work: measure, engineer, verify. Route-density optimization runs continuously against every serviced program. Electrification is deploying on urban routed collection lanes where the duty cycle supports it. Cold-chain packaging is standardized around validated passive systems sized to the actual shipment profile. And every operational record 
703is digital by default.
704
705For health systems building the Scope 3 disclosure they now owe, we produce the numbers.
706
707The goal is not to be the greenest courier. The goal is to keep the same clinical reliability our clients depend on while giving them an emissions profile they can defend to their board, their regulators, and their patients.`,image:RR},{title:"Resilient by Design: What the Post-Shortage Era Taught Us About Healthcare Supply Chains",excerpt:"Three years of episodic drug shortages, contrast-media disruptions, and pharma cyber incidents have rewritten the definition of a resilient healthcare supply chain.",category:"Supply Chain",date:"May 6, 2026",slug:"healthcare-supply-chain-serves-providers",content:`The pandemic taught the healthcare supply chain that resilience matters. The three years since have taught it what resilience actually looks like — because the disruptions have not stopped. Chemotherapy shortages, GLP-1 supply constraints, contrast-media rationing, pharma-manufacturer cyber incidents, and hurricane-driven manufacturing outages have made episodic disruption the operating baseline, not the exception.
708
709The health systems, labs, and pharmacies that came through that period well were not the ones with the biggest inventories. They were the ones with the most redundancy in their transport layer.
710
711## What Resilience Actually Requires
712
713A resilient healthcare supply chain in 2026 has four properties, all of which are largely determined at the logistics layer:
714
715### 1. Route and Carrier Redundancy
716
717Single-carrier dependencies on any clinically critical lane are a resilience failure waiting to happen. A resilient network has documented alternates — pre-credentialed, pre-integrated, ready to activate inside a business day.
718
719### 2. Real-Time Operational Visibility
720
721You cannot reroute what you cannot see. Continuous telemetry, scan events, and environmental data feeding a central operations desk turn a disruption from a discovery into a decision.
722
723### 3. Pre-Positioned Compliance
724
725When a substitute lane activates on short notice, the credentials, packaging, and SOPs have to already be current. Programs that scramble for compliance during a disruption compound the exposure.
726
727### 4. Shared Operational Data
728
729Health systems that share weekly operational data with their transport partner — volumes, exception rates, criticality flags — enable that partner to model capacity ahead of disruption rather than reacting to it.
730
731## The MCI Answer
732
733MCI's operating model was designed for the disruption era. The Medical Courier Alliance provides multi-carrier redundancy on every serviced lane through a network of credentialed partners operating to the same SOPs and technology stack. The HALO 24/7 operations desk provides the real-time visibility that turns disruption into decision. And a central Compliance Hub keeps the credential layer current across the entire network, so activating an alternate lane does not create a new exposure.
734
735Resilience is not something a health system buys off a shelf. It is something the operating model of its transport partner either produces or does not.`,image:OR},{title:"The Tech Stack Clinical Clients Now Expect: IoT, Telematics, and Real-Time Environmental Data",excerpt:"Real-time visibility is no longer a competitive edge in clinical logistics — it is table stakes. Here is the technology stack labs, pharmacies, and health systems now expect from their carriers.",category:"Technology",date:"April 29, 2026",slug:"changing-needs-healthcare-delivery-united-states",content:`Five years ago, real-time tracking was a differentiator in clinical logistics. In 2026, it is a screening criterion. Labs, closed-door pharmacies, health systems, and specialty pharma clients now include a technology-stack RFP section that assumes continuous telemetry, scan-based custody, environmental data by leg, and API-level integration into the client's own systems.
736
737Carriers who cannot check every box lose the account before the pricing conversation.
738
739## The Table-Stakes Technology Stack
740
741### 1. Scan-Based Chain of Custody
742
743Every specimen scanned at pickup, at every handoff, and at delivery. Timestamped, geolocated, immutable. Not a signature on a manifest — an auditable ledger.
744
745### 2. Continuous Environmental Monitoring
746
747IoT temperature, and where applicable shock, orientation, and humidity, monitored on refrigerated, frozen, and cryogenic legs. Data streamed live to a central operations desk and archived per 
747client SOP.
748
749### 3. Real-Time Deviation Alerting
750
751Missed pickups, extended dwell times, temperature breaches, and out-of-sequence scans trigger alerts inside the operational cycle. Not next-day reports — same-cycle interventions.
752
753### 4. Client-Facing Dashboards and APIs
754
755Clients see their volume, their exceptions, and their environmental data in their own systems, on their own dashboards. The integration is API-first, not report-first.
756
757### 5. Compliance Hub
758
759Every Care Agent's credentials — HIPAA, BBP, MVR, background check, drug screen, TSA STA — visible, current, and produced on demand for client inspection or regulatory survey.
760
761## What Separates the Serious From the Marketing
762
763The gap between carriers claiming this stack and carriers operating it is measurable in three ways:
764
765- **Latency.** Serious operators report telemetry inside seconds; marketers report it inside minutes or hours.
766- **Coverage.** Serious operators run the stack across every leg of every service line; marketers run it on the flagship product and paper the rest.
767- **Response.** Serious operators wire alerts into a 24/7 operations desk staffed to intervene; marketers push alerts into an inbox no one is watching at 3 a.m.
768
769MCI's operating model was rebuilt around this stack. The HALO 24/7 operations desk is the human layer that makes the technology actionable. The Compliance Hub is the personnel layer that keeps the network audit-ready. And the client-facing dashboard and API surface are what turn all of it into visibility our clients can act on inside their own systems.
770
771The technology is not the point. What the technology enables — a preanalytical process the client can see, defend, and improve — is the point.`,image:IR},{title:"Inside the California Nightly Charter: How Private Air Reshapes West-Coast Lab Turnaround",excerpt:"MCI's midnight charter between Hayward and Los Angeles unlocks late pickups, early deliveries, and a same-day TAT profile ground carriers cannot match.",category:"Operations",date:"April 22, 2026",slug:"california-medical-charter-plane",content:`California's diagnostic geography is unforgiving. The state's highest-volume reference labs sit in the Bay Area, Sacramento, Valencia, Chino Hills, San Diego, and metro Los Angeles — separated by hundreds of miles of ground that no ground service can cover overnight while preserving stability windows.
772
773MCI's California Nightly Charter was built for that geography. It is not a premium add-on. For a growing share of California's outreach and reference-lab volume, it is the operating baseline.
774
775## How the Charter Actually Runs
776
777The charter departs Hayward at midnight, arrives Los Angeles by 2 a.m., and returns on the 4–6 a.m. window. That schedule is not arbitrary — it is engineered around three constraints at once:
778
7791. **Late Northern California cutoffs.** Fleets across the Bay Area and Sacramento can perform after-5 p.m. pickups and still tender to the charter.
7802. **Stability windows.** The flight leg is short enough to keep chemistry pickups inside their acceptable transit envelope, with cold-chain packaging validated for the profile.
7813. **Early Southern California accession.** Los Angeles, Valencia, and Chino Hills labs receive product in time for first-shift accession and instrument scheduling — not mid-morning catch-up.
782
783The return leg mirrors the same logic for Northern California accession.
784
785## Where the Value Actually Lives
786
787- **TAT improvement** that ground alternatives structurally cannot match — hours off the fastest driver round-trip.
788- **Later cutoffs** that let outreach programs capture specimens from clinics that close after 5 p.m.
789- **Earlier delivery** that hits first-shift accession windows on both ends.
790- **Redundancy** relative to commercial air, which is constrained by KSMS availability, seasonal capacity, and weather-driven cancellations.
791- **Cost profile** that beats a long-haul driver round-trip once loaded transport time and labor are counted honestly.
792
793## Who Is Using It
794
795The charter's client base has broadened beyond the original reference-lab anchor. Specialty labs consolidating out-of-state accessioning into California, oncology programs coordinating same-day CGT and biopsy legs, and health systems standardizing overnight reference-lab movement all now sit on the manifest.
796
797The California Nightly Charter is one of the clearest examples in MCI's portfolio of the broader thesis behind clinical logistics: the answer to a clinical-timing problem is engineered, not driven harder. When the geography is impossible to cover on the ground inside the stability window, the answer is not a faster driver. It is a different mode of transport, run to the same clinical discipline.`,image:MR},{title:"Inside the Medical Courier Alliance: How MCI Extends Clinical-Grade Logistics Nationwide",excerpt:"The MCA is a vetted, credentialed nationwide network of clinical logistics partners operating to a single set of SOPs, credentials, and technology standards.",category:"Partnerships",date:"April 15, 2026",slug:"healthcare-logistics-network-partnerships",content:`A national health system, reference lab, or specialty pharmacy cannot solve its logistics problem with a single regional carrier — no matter how good that carrier is. Coverage has to be nationwide. Discipline has to be uniform. Evidence has to be centrally accessible.
798
799That is the problem the Medical Courier Alliance was built to solve. The MCA is a nationwide network of vetted, credentialed clinical logistics partners operating to a single set of SOPs, a single technology stack, and a single compliance standard — coordinated by MCI, executed locally, defensible everywhere.
800
801## What Uniformity Actually Looks Like
802
803The point of the MCA is not that the map is bigger. Every national carrier has a big map. The point is that the operating discipline does not degrade as the map extends:
804
805- **Same credential stack.** HIPAA, BBP, fraud/waste/abuse, MVR, background check, drug screen, TSA STA where applicable — verified, current, and surfaced in a central Compliance Hub for every Care Agent, regardless of geography.
806- **Same technology.** Scan-based custody, continuous environmental monitoring, real-time deviation alerting, client-facing dashboards. The client's view of a specimen in Boise looks identical to the client's view of a specimen in Boston.
807- **Same SOPs.** Client protocols are codified once and enforced at the app level across every partner in the network. Not photocopied. Not paraphrased.
808- **Same 24/7 operations desk.** HALO monitors the network, not a subset of it.
809
810## What Partners Get
811
812The MCA is not a subcontracting arrangement. Partners join a coordinated national brand with access to enterprise health-system, reference-lab, and specialty-pharma accounts they could not credential for individually, and a technology and compliance stack they would not build alone.
813
814## What Clients Get
815
816A single point of accountability for nationwide clinical logistics. One SOP. One compliance evidence base. One dashboard. One escalation path. And, underneath, a network of operators who each meet MCI's standing baseline for fleet size, insurance, medical-only experience, credential currency, and clinical culture.
817
818## The Selection Bar
819
820Not every regional carrier joins. MCA partners meet a defined bar: minimum three years of last-mile medical logistics experience, adequate fleet and insurance for clinical work, patient-first operating culture, industry-required credentials on every driver, and demonstrated willingness to operate inside MCI's technology and SOP framework. The standard is not negotiable — because the client-facing consistency it produces is the point.
821
822Nationwide is not a coverage claim. It is a discipline claim. The MCA is how MCI keeps it.`,image:LR},{title:"Clinical Logistics vs. Common Carrier: The 2026 Decision Framework for Labs and Pharmacies",excerpt:"The gap between a clinical logistics partner and a general carrier has widened, not closed. Here is the current-state decision framework, updated for 2026 conditions.",category:"Best Practices",date:"April 8, 2026",slug:"choose-medical-logistics-courier",content:`The case for choosing a medical-only clinical logistics partner over a general common carrier used to rest on a handful of soft arguments: they understand our world, they care about our specimens, they will pick up the phone. Those arguments are still true. They are also not the reason anymore.
823
824In 2026, the case is quantitative, compliance-driven, and structural.
825
826## The Structural Gap
827
828Common carriers operate a hub-and-spoke model designed for high-volume, low-touch, low-liability parcels. Clinical cargo does not fit that model on four dimensions:
829
830- **Stability windows.** A hub-and-spoke network cannot guarantee a specimen reaches the centrifuge inside a 60-minute window. A direct, stability-aware routing model can.
831- **Cold-chain integrity.** General cargo cold chain is optimized for produce and pharmaceuticals in unit-load quantities — not for a single frozen specimen with a validated packaging profile.
832- **Custody documentation.** Common-carrier tracking is designed to prove delivery, not to prove c
832ontinuous custody with environmental data, sufficient for CAP or Joint Commission survey.
833- **Personnel credentialing.** General cargo drivers do not carry current HIPAA, BBP, TSA STA, or clinical-SOP training as a standing baseline.
834
835The clinical logistics operating model is engineered around those four constraints as first-order design decisions. The common-carrier model is engineered around unit economics.
836
837## The Quantitative Case
838
839Recent data puts the fully loaded cost of a lost or rejected specimen at **$450 to $1,200 per event**. At even a modest volume, the redraw exposure alone justifies the premium of a medical-only partner. Layer in compliance exposure — inspection findings, payer denials, quality-metric drag — and the arithmetic is not close.
840
841## The Compliance Case
842
843The 2026 regulatory environment (DSCSA, USP <800>, TSA STA, FSMA-derived cold-chain expectations, CAP checklist updates) requires continuous, verifiable evidence at the transport layer. General carriers do not produce that evidence. Clinical logistics partners produce it by default because their operating model requires it.
844
845## The Continuity Case
846
847National carriers have spent three years narrowing their healthcare service maps. Relying on a general carrier for any clinically critical lane is a continuity risk that will express itself as a 90-day notice letter. A medical-only partner is not exiting the segment.
848
849## The Practical Test
850
851If your current carrier cannot produce, inside a business day, the full custody, environmental, and personnel record for a specimen delivered last month — the decision is already made. The only remaining question is how quickly the transition happens.`,image:DR},{title:"Cell and Gene Therapy in 2026: What Autologous Logistics Actually Requires",excerpt:"CGT has moved from experimental to standard-of-care in a widening set of indications. The logistics discipline behind it has had to grow up just as fast.",category:"Industry Insights",date:"April 1, 2026",slug:"cell-gene-therapy-cgt",content:`Cell and gene therapy has crossed from the frontier into the mainstream faster than most of healthcare anticipated. With FDA approvals spanning hematologic cancers, inherited retinal disease, sickle cell, and a growing set of solid-tumor indications, and with commercial CAR-T volume now measured in tens of thousands of infusions per year in the U.S. alone, CGT is a standard-of-care logistics problem — not a specialty one.
852
853The logistics discipline required to support it, however, is anything but standard.
854
855## What Makes CGT Logistics Different
856
857CGT — particularly autologous therapies — imposes constraints that no other class of clinical cargo imposes together:
858
859- **Patient-specific product.** The shipment is not fungible. A lost or damaged autologous product is a lost or damaged patient's own cells, not a re-orderable SKU.
860- **Cryogenic cold chain.** Most autologous product ships at deep cryogenic temperatures (LN2 vapor phase, typically ≤ -150°C), with tight excursion tolerances.
861- **Chain of identity plus chain of custody.** COI is the CGT-specific requirement to prove, at every step, that the product in the shipper is the product intended for the identified patient. It is separate from and additional to standard COC.
862- **Bidirectional coordination.** Apheresis product moves from patient site to manufacturing; finished therapy moves back to patient site on a compressed infusion window. Both legs are time-critical.
863- **Regulatory surface.** FDA, USP, and manufacturer-specific SOPs apply concurrently, with limited tolerance for deviation.
864
865## What Adequate Logistics Looks Like
866
867CGT logistics requires an operating model that is essentially the HALO model as a baseline, not an upgrade:
868
869- **Cryogenic shipping systems** with continuous temperature and orientation monitoring and documented equilibration profiles.
870- **Chain of identity** enforced at every handoff via product-specific identifiers cross-checked against patient identifiers.
871- **24/7 operations desk** monitoring every shipment in real time, with pre-authorized intervention authority.
872- **Bidirectional lane design** coordinating apheresis and infusion windows against manufacturing schedules.
873- **Manufacturer-specific SOP enforcement** at the app level for every Care Agent in the chain.
874- **Complete on-demand documentation** for FDA, manufacturer QA, and patient-site medical review.
875
876## Where MCI Fits
877
878MCI moves autologous and allogeneic CGT product under the HALO operating model, coordinated across the Medical Courier Alliance for nationwide patient-site coverage. The clinical logistics discipline required for CGT is the same discipline we apply to every shipment; CGT simply requires it as a standing baseline rather than an escalated tier.
879
880CGT is not a specialty logistics problem anymore. It is the future of oncology and rare-disease logistics, and the operating standards it requires are the direction the entire field is moving.`,image:$R},{title:"Case Study: Consolidating Specimen Logistics Across a Multi-Site Health System",excerpt:"How a nine-hospital health system replaced three regional carriers, cut rejection rates 32%, and passed its next CAP survey with zero preanalytical findings.",category:"Case Study",date:"March 25, 2026",slug:"medical-couriers-leads-the-way-for-covid-19-specimen-delivery-in-california",content:`A West Coast integrated health system operating nine hospitals, 140 outpatient sites, and a central reference lab entered 2025 with a specimen transport program held together by three regional carriers, two internal courier teams, and a spreadsheet. Preanalytical rejection rates sat near the 90th percentile of CAP Q-Probes benchmarks. The last CAP survey had produced findings around chain-of-custody documentation. The head of laboratory operations was spending measurable time each week triaging exceptions that should never have reached her desk.
881
882The system engaged MCI to consolidate.
883
884## The Consolidation Model
885
886Over a 90-day rollout, MCI absorbed the three regional carrier contracts and the internal courier lines onto a single operating model:
887
888- **Stability-aware route redesign** across all 140 sites, sequenced against tube-type stability windows and central-lab accessioning capacity.
889- **Scan-based custody** at every pickup, handoff, and delivery, replacing the mix of paper manifests and inconsistent carrier tracking.
890- **Continuous environmental monitoring** on all refrigerated and frozen legs, wired into the HALO 24/7 operations desk.
891- **Unified compliance evidence** in a central Compliance Hub covering every Care Agent on the account.
892- **Weekly operational data share** with the lab's quality team, tying rejection categories back to specific routes and handoffs.
893
894## The Twelve-Month Result
895
896- **Preanalytical rejection rate down 32%**, from 1.8% to 1.2% across the accession base.
897- **Redraw-driven cost recovery of $2.1M** over the first year, based on the system's own fully loaded per-rejection cost model.
898- **Zero preanalytical findings** in the following CAP survey.
899- **Exception volume routed through the lab's own operations team down more than half**, freed up for higher-value quality work.
900- **A single point of accountability** across nine hospitals, 140 sites, and one central lab.
901
902## Why It Worked
903
904The consolidation was not a vendor swap. It was an operating-model change. The system moved from three carriers with three tracking philosophies and inconsistent evidence to one clinical logistics partner operating a single stack. That singularity — one SOP, one credential base, one dataset — is where the quality, compliance, and cost gains actually came from.
905
906For multi-site systems still running fragmented specimen transport, the recoverable margin is not incremental. It is transformational, and the case study above is representative rather than exceptional.`,image:UR},{title:"Business Continuity When Your Courier Fails: A Playbook for Labs and Pharmacies",excerpt:"When a courier misses a day, the exposure is not inconvenience — it is patient care, compliance, and brand. Here is the continuity playbook every lab and pharmacy should already have.",category:"Best Practices",date:"March 18, 2026",slug:"what-happens-to-your-brand-when-service-stops",content:`A day without your courier is not a logistics problem. It is a clinical incident. Delayed specimens miss stability windows and drive redraws. Delayed pharmaceuticals miss infusion appointments. Delayed cold-chain shipments generate excursions and product losses. Delayed controlled substances create documentation gaps that surface in the next DEA audit.
907
908For a lab, pharmacy, or health system, the question is not whether a courier will fail. It is what the operating model looks like when one does.
909
910## The Real Exposure
911
912A single-day service failure at a mid-sized outreach lab or specialty pharmacy typically triggers:
913
914- **Redraws and reschedules** measured in the hundreds, at $200–$600 fully loaded per event.
915- **Physician and patient re-contact** that consumes clinical staff time and erodes trust.
916- **Compliance gaps** in chain of custody, environmental monitoring, and personnel qualification that surface at the next survey.
917- **Payer denials** on preventable delays.
918- **Reputational damage** with the referring clinicians and health-system partners whose care depends on the workflow.
919
920The industry data on customer trust recovery — years, not months, after a perceived misstep — applies fully to B2B healthcare relationships.
921
922## What a Real Continuity Model Looks Like
923
924- **Pre-credentialed alternate capacity.** Not "we'll find someone." A named, credentialed alternate lane with current documentation, ready to activate inside a business day.
925- **Real-time visibility.** A 24/7 operations desk that surfaces a service failure inside the operational cycle it occurs in, not the next morning.
926- **Standardized SOPs across carriers.** So that when an alternate lane activates, the client's own protocol still applies at the app level.
927- **Central compliance evidence.** So that the substitute Care Agents' credentials are verifiable in real time.
928- **Documented CAPA.** So that the incident is closed cleanly for the next survey.
929
930## Why the MCA Model Solves It
931
932The Medical Courier Alliance was designed as a continuity model, not just a coverage model. Every serviced lane sits inside a network where alternates exist at the same operating standard. HALO monitors the network. The Compliance Hub keeps the credential layer current across the entire footprint. And in MCI's 56-year history, we have not abandoned 
932service for any reason — through earthquakes, wildfires, public-health emergencies, and every other disruption the modern era has produced.
933
934Continuity is not a promise. It is an operating model. If your current partner's continuity story starts with "we would try to…", the plan does not exist.`,image:FR},{title:"The Digital Twin of Your Specimen: Predictive Telemetry Comes to Clinical Logistics",excerpt:"Digital twin modeling — a live, predictive representation of every shipment in flight — is the next evolution in clinical logistics visibility.",category:"Technology",date:"March 11, 2026",slug:"medical-specimen-transport-why-tech-tools-make-the-difference-in-patient-care",content:`Real-time visibility told us where a specimen was. Digital twin modeling tells us where it will be, what condition it will be in when it gets there, and what will go wrong before it does.
935
936For clinical logistics, that is a step change. The industry has spent a decade instrumenting the physical shipment. The next decade is about running a live, predictive digital twin of that shipment alongside it — and using the twin to intervene before the physical shipment fails.
937
938## What a Digital Twin Actually Is
939
940A digital twin, in the clinical logistics context, is a live software representation of an in-flight shipment fed by three data streams:
941
942- **Live telemetry** from the physical shipment — GPS, temperature, orientation, scan events.
943- **Historical performance data** for the specific lane, vehicle, cooler, and Care Agent.
944- **External conditions data** — traffic, weather, airport delay patterns, receiving-facility staffing.
945
946Against that data, the twin projects the shipment's arrival time and end-state condition continuously, with confidence intervals that tighten as the shipment progresses. When the projection crosses a threshold — a temperature curve trending toward excursion, an ETA sliding past a stability window — the twin surfaces the deviation while there is still time to act.
947
948## Why This Matters Clinically
949
950Reactive alerting tells you a specimen has failed. Predictive alerting tells you a specimen will fail unless you intervene. The clinical difference is enormous: a shipment predicted 20 minutes before excursion can be intercepted, rerouted, or repackaged. A shipment reported at excursion is a redraw.
951
952Recent operational data across HALO-enrolled programs shows that predictive intervention prevents roughly **three to five deviations for every one that would have been caught reactively** — with a proportional reduction in specimen loss and redraw exposure.
953
954## How MCI Is Deploying It
955
956Digital twin modeling now runs by default on all HALO-enrolled shipments and is extending across the Medical Courier Alliance network. The twin is not a separate product; it is an operating enhancement to the existing HALO discipline. Client-facing dashboards surface predicted state alongside current state, so the lab or pharmacy sees the same picture the operations desk sees — and can act on it.
957
958The clinical logistics technology thesis has always been that visibility, correctly instrumented, prevents loss. Digital twin modeling extends that thesis: visibility, correctly extrapolated, prevents loss before it happens.`,image:BR},{title:"24/7 Human-Plus-AI Dispatch: The New Gold Standards in Clinical Logistics Support",excerpt:"H2H support is still the anchor of clinical logistics service — but AI-augmented dispatch has raised the bar for what real 24/7 responsiveness looks like.",category:"Best Practices",date:"March 4, 2026",slug:"2018-5-8-two-gold-standards-in-medical-logistics",content:`Two things are simultaneously true about clinical logistics support in 2026. First, no lab director, pharmacy manager, or health-system operations lead will accept a chatbot as their escalation path for a time-critical clinical shipment. Second, no operations desk staffing model can keep up with modern telemetry volume on human attention alone.
959
960The gold standard is not one or the other. It is a 24/7 human operations desk with AI-augmented monitoring underneath it — and the discipline to know which layer handles which class of decision.
961
962## What the AI Layer Should Handle
963
964- **Continuous telemetry monitoring** across every in-flight shipment, at a volume no human dispatcher can watch.
965- **Anomaly detection** against lane, vehicle, cooler, and Care Agent baselines.
966- **Predictive projection** of ETA and end-state condition — the digital twin layer.
967- **Alert prioritization** so the human desk sees the deviations that matter, in the order they matter.
968- **Routine documentation** — event logs, custody records, environmental archives — assembled without human keying.
969
970## What the Human Layer Must Handle
971
972- **Judgment calls under clinical constraint.** Reroute, redraw, escalate, hold: these are decisions with clinical consequence and belong to a trained human.
973- **Client communication under pressure.** A pharmacy director calling about a delayed infusion product needs a human, immediately, with authority to act.
974- **Novel exceptions.** Anything the model has not seen before is a human decision by default.
975- **Relationship continuity.** Long-standing client accounts are held together by named humans who know the account, not by rotating agents.
976
977## The MCI Model
978
979MCI's HALO 24/7 operations desk is staffed continuously by trained clinical logistics dispatchers with the authority to intervene on any HALO-enrolled shipment. The AI layer beneath them handles telemetry monitoring, anomaly detection, digital twin projection, and alert prioritization at a scale no human team could — so the human team spends its attention on the decisions that require it.
980
981Clients reach a human — every time, at any hour, 365 days a year. Behind that human is a technology stack that ensures the human is called only when a human is what the situation requires, and never called too late.
982
983That is what a modern H2H standard actually looks like: not the absence of automation, but the deliberate placement of human judgment exactly where clinical logistics needs it most.`,image:zR}],HR=t=>Mb.find(e=>e.slug===t),WR="/assets/insights-hero-DgyJJIH3.png",VR=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Insights | Medical Couriers",description:"Expert insights on clinical logistics, compliance, cold chain, and specimen transport from Medical Couriers.",canonical:"https://medicalcouriers.com/news-from-the-road"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-40 pb-24 lg:pt-52 lg:pb-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:WR,alt:"Medical courier delivering package to healthcare professional",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"News from the Network"}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6 tracking-tight",children:"Insights & Updates"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl",children:"Industry insights, best practices, and the latest news in healthcare logistics"})]})})]}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Mb.map(t=>o.jsxs(he,{to:`/news-from-the-road/${t.slug}`,className:"group flex flex-col rounded-2xl bg-card border border-border hover:border-primary/30 hover:shadow-md transition-all duration-200 overflow-hidden",children:[o.jsxs("div",{className:"aspect-video overflow-hidden relative",children:[o.jsx("img",{src:t.image,alt:t.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300 grayscale"}),o.jsx("div",{className:"absolute inset-0 bg-primary/40"})]}),o.jsxs("div",{className:"flex flex-col p-6 flex-grow",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[o.jsx("span",{className:"inline-flex px-2.5 py-1 rounded-full bg-primary/10 text-xs font-medium text-primary",children:t.category}),o.jsx("span",{className:"text-xs text-muted-foreground",children:t.date})]}),o.jsx("h3",{className:"text-lg font-semibold text-foreground group-hover:text-primary transition-colors leading-snug mb-3",children:t.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed flex-grow mb-4 line-clamp-3",children:t.excerpt}),o.jsxs("div",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-primary",children:["Read article",o.jsx(jt,{className:"w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform"})]})]})]},t.slug))})})})]}),o.jsx(Yt,{})]}),$h={"/home":"/","/careers-delivery-courier-service":"/drivers","/courier-position":"/drivers","/courier-resources":"/drivers","/network-partner-training-resources":"/drivers","/request-a-pick-up":"/contact","/frequently-asked-questions":"/contact","/client-training":"/contact","/privacypolicy":"/privacy","/hospitals-health-systems":"/solutions","/covid-19-specimen-transport":"/services","/testing":"/services","/testimonials":"/about","/news-from-the-network":"/news-from-the-road"},Lb=["/tag/","/category/","/author/","/masonry-gallery-category/"],Uh=t=>{const e=t.split("?")[0].split("#")[0].toLowerCase();return e.length>1?e.replace(/\/+$/,""):e},Db=t=>{const e=Uh(t);if($h[e])return $h[e];if(Lb.some(r=>`${e}/`.startsWith(r)))return"/news-from-the-road";if(e.endsWith("/feed")){const r=e.slice(0,-5)||"/";return Db(r)??r}return null},Ol=({to:t,fallback:e=null})=>{const r=Zn(),n=t??Db(r.pathname);return x.useEffect(()=>{n&&Uh(n)!==Uh(r.pathname)&&window.location.replace(n)},[n,r.pathname]),n?null:x.createElement(x.Fragment,null,e)},ol=t=>t.split(/(\*\*[^*]+\*\*|\*[^*]+\*)/g).map((r,n)=>/^\*\*[^*]+\*\*$/.test(r)?o.jsx("strong",{className:"font-semibold text-foreground",children:r.slice(2,-2)},n):/^\*[^*]+\*$/.test(r)?o.jsx("em",{children:r.slice(1,-1)},n):o.jsx("span",{children:r},n)),qR=()=>{const{slug:t}=pA(),e=t?HR(t):void 0;if(!e)return o.jsx(Ol,{to:"/news-from-the-road"});const r=i=>{const a=new Date(i);return isNaN(a.getTime())?void 0:a.toISOString()},n={"@context":"https://schema.org","@type":"Article",headline:e.title,de
983scription:e.excerpt,image:e.image,datePublished:r(e.date),author:{"@type":"Organization",name:"Medical Couriers"},publisher:{"@type":"Organization",name:"Medical Couriers",logo:{"@type":"ImageObject",url:"https://medicalcouriers.com/mci-logo.svg"}},mainEntityOfPage:{"@type":"WebPage","@id":`https://medicalcouriers.com/news-from-the-road/${e.slug}`}},s={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://medicalcouriers.com"},{"@type":"ListItem",position:2,name:"News from the Road",item:"https://medicalcouriers.com/news-from-the-road"},{"@type":"ListItem",position:3,name:e.title,item:`https://medicalcouriers.com/news-from-the-road/${e.slug}`}]};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:`${e.title} | Medical Couriers`,description:e.excerpt,canonical:`https://medicalcouriers.com/news-from-the-road/${e.slug}`,type:"article",image:e.image,article:{publishedTime:r(e.date),author:"Medical Couriers",section:e.category}}),o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(s)}}),o.jsx(Qt,{}),o.jsx("main",{children:o.jsx("article",{className:"pt-32 pb-16 lg:pt-40 lg:pb-20",children:o.jsxs("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:[o.jsxs(he,{to:"/news-from-the-road",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-8 transition-colors",children:[o.jsx(Dj,{className:"w-4 h-4"}),"Back to all articles"]}),o.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[o.jsx("span",{className:"inline-flex px-3 py-1 rounded-full bg-primary/10 text-sm font-medium text-primary",children:e.category}),o.jsx("span",{className:"text-sm text-muted-foreground",children:e.date})]}),o.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-8 leading-tight",children:e.title}),o.jsxs("div",{className:"aspect-video rounded-2xl overflow-hidden mb-10 relative",children:[o.jsx("img",{src:e.image,alt:e.title,loading:"lazy",className:"w-full h-full object-cover grayscale"}),o.jsx("div",{className:"absolute inset-0 bg-primary/40"})]}),o.jsx("div",{className:"prose prose-lg max-w-none text-muted-foreground",children:e.content.split(`
984
985`).map((i,a)=>{if(i.startsWith("## "))return o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:ol(i.replace("## ",""))},a);if(i.startsWith("### "))return o.jsx("h3",{className:"text-xl font-semibold text-foreground mt-8 mb-3",children:ol(i.replace("### ",""))},a);const l=i.split(`
986`);return l.every(c=>c.trim().startsWith("- "))?o.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-2",children:l.map((c,u)=>o.jsx("li",{className:"leading-relaxed",children:ol(c.trim().replace(/^-\s+/,""))},u))},a):o.jsx("p",{className:"mb-4 leading-relaxed",children:ol(i)},a)})})]})})}),o.jsx(Yt,{})]})},Mp=x.forwardRef(({className:t,...e},r)=>o.jsx("textarea",{className:pe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
986ing-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",t),ref:r,...e}));Mp.displayName="Textarea";function ky(t,[e,r]){return Math.min(r,Math.max(e,t))}var KR=x.createContext(void 0);function $b(t){const e=x.useContext(KR);return t||e||"ltr"}var rd=0;function GR(){x.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Sy()),document.body.insertAdjacentElement("beforeend",t[1]??Sy()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),rd--}},[])}function Sy(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var nd="focusScope.autoFocusOnMount",sd="focusScope.autoFocusOnUnmount",_y={bubbles:!1,cancelable:!0},JR="FocusScope",Ub=x.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=x.useState(null),u=vr(s),d=vr(i),h=x.useRef(null),p=je(e,g=>c(g)),f=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let g=function(v){if(f.paused||!l)return;const k=v.target;l.contains(k)?h.current=k:dn(h.current,{select:!0})},b=function(v){if(f.paused||!l)return;const k=v.relatedTarget;k!==null&&(l.contains(k)||dn(h.current,{select:!0}))},y=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&dn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const m=new MutationObserver(y);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),m.disconnect()}}},[n,l,f.paused]),x.useEffect(()=>{if(l){jy.add(f);const g=document.activeElement;if(!l.contains(g)){const y=new CustomEvent(nd,_y);l.addEventListener(nd,u),l.dispatchEvent(y),y.defaultPrevented||(ZR(tO(Fb(l)),{select:!0}),document.activeElement===g&&dn(l))}return()=>{l.removeEventListener(nd,u),setTimeout(()=>{const y=new CustomEvent(sd,_y);l.addEventListener(sd,d),l.dispatchEvent(y),y.defaultPrevented||dn(g??document.body,{select:!0}),l.removeEventListener(sd,d),jy.remove(f)},0)}}},[l,u,d,f]);const w=x.useCallback(g=>{if(!r&&!n||f.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const m=g.currentTarget,[v,k]=QR(m);v&&k?!g.shiftKey&&y===k?(g.preventDefault(),r&&dn(v,{select:!0})):g.shiftKey&&y===v&&(g.preventDefault(),r&&dn(k,{select:!0})):y===m&&g.preventDefault()}},[r,n,f.paused]);return o.jsx(ue.div,{tabIndex:-1,...a,ref:p,onKeyDown:w})});Ub.displayName=JR;function ZR(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(dn(n,{select:e}),document.activeElement!==r)return}function QR(t){const e=Fb(t),r=Cy(e,t),n=Cy(e.reverse(),t);return[r,n]}function Fb(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Cy(t,e){for(const r of t)if(!YR(r,{upTo:e}))return r}function YR(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function XR(t){return t instanceof HTMLInputElement&&"select"in t}function dn(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&XR(t)&&e&&t.select()}}var jy=eO();function eO(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=Ty(t,e),t.unshift(e)},remove(e){var r;t=Ty(t,e),(r=t[0])==null||r.resume()}}}function Ty(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function tO(t){return t.filter(e=>e.tagName!=="A")}function Bb(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var rO=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Hs=new WeakMap,ll=new WeakMap,cl={},id=0,zb=function(t){return t&&(t.host||zb(t.parentNode))},nO=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=zb(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},sO=function(t,e,r,n){var s=nO(e,Array.isArray(t)?t:[t]);cl[r]||(cl[r]=new WeakMap);var i=cl[r],a=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h
vendor: 6,797 bytes, lines 986-1001
986)||(l.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(l.has(p))d(p);else try{var f=p.getAttribute(n),w=f!==null&&f!=="false",g=(Hs.get(p)||0)+1,b=(i.get(p)||0)+1;Hs.set(p,g),i.set(p,b),a.push(p),g===1&&w&&ll.set(p,!0),b===1&&p.setAttribute(r,"true"),w||p.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(e),l.clear(),id++,function(){a.forEach(function(h){var p=Hs.get(h)-1,f=i.get(h)-1;Hs.set(h,p),i.set(h,f),p||(ll.has(h)||h.removeAttribute(n),ll.delete(h)),f||h.removeAttribute(r)}),id--,id||(Hs=new WeakMap,Hs=new WeakMap,ll=new WeakMap,cl={})}},iO=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=rO(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),sO(n,s,r,"aria-hidden")):function(){return null}},Er=function(){return Er=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Er.apply(this,arguments)};function ta(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function aO(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{u(n.next(d))}catch(h){a(h)}}function c(d){try{u(n.throw(d))}catch(h){a(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((n=n.apply(t,e||[])).next())})}function oO(t,e,r){if(r||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var Il="right-scroll-bar-position",Ml="width-before-scroll-bar",lO="with-scroll-bars-hidden",cO="--removed-body-scroll-bar-size";function ad(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function uO(t,e){var r=x.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=e,r.facade}var dO=typeof window<"u"?x.useLayoutEffect:x.useEffect,Ey=new WeakMap;function hO(t,e){var r=uO(null,function(n){return t.forEach(function(s){return ad(s,n)})});return dO(function(){var n=Ey.get(r);if(n){var s=new Set(n),i=new Set(t),a=r.current;s.forEach(function(l){i.has(l)||ad(l,null)}),i.forEach(function(l){s.has(l)||ad(l,a)})}Ey.set(r,t)},[t]),r}function fO(t){return t}function pO(t,e){e===void 0&&(e=fO);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var a=e(i,n);return r.push(a),function(){r=r.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var l=r;r=[],l.forEach(i),a=r}var c=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),r}}}};return s}function mO(t){t===void 0&&(t={});var e=pO(null);return e.options=Er({async:!0,ssr:!1},t),e}var Hb=function(t){var e=t.sideCar,r=ta(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,Er({},r))};Hb.isSideCarExport=!0;function gO(t,e){return t.useMedium(e),Hb}var Wb=mO(),od=function(){},nu=x.forwardRef(function(t,e){var r=x.useRef(null),n=x.useState({onScrollCapture:od,onWheelCapture:od,onTouchMoveCapture:od}),s=n[0],i=n[1],a=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,p=t.sideCar,f=t.noRelative,w=t.noIsolation,g=t.inert,b=t.allowPinchZoom,y=t.as,m=y===void 0?"div":y,v=t.gapMode,k=ta(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,C=hO([r,e]),_=Er(Er({},k),s);return x.createElement(x.Fragment,null,d&&x.createElement(S,{sideCar:Wb,removeScrollBar:u,shards:h,noRelative:f,noIsolation:w,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:v}),a?x.cloneElement(x.Children.only(l),Er(Er({},_),{ref:C})):x.createElement(m,Er({},_,{className:c,ref:C}),l))});nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nu.classNames={fullWidth:Ml,zeroRight:Il};var yO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vO(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=yO();return e&&t.setAttribute("nonce",e),t}function xO(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function wO(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var bO=function(){var t=0,e=null;return{add:function(r){t==0&&(e=vO())&&(xO(e,r),wO(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},kO=function(){var t=bO();return function(e,r){x.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},Vb=function(){var t=kO(),e=function(r){var n=r.styles,s=r.dynamic;return t(n,s),null};return e},SO={left:0,top:0,right:0,gap:0},ld=function(t){return parseInt(t||"",10)||0},_O=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[ld(r),ld(n),ld(s)]},CO=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return SO;var e=_O(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},jO=Vb(),Ci="data-scroll-locked",TO=function(t,e,r,n){var s=t.left,i=t.top,a=t.right,l=t.gap;return r===void 0&&(r="margin"),`
987  .`.concat(lO,` {
988   overflow: hidden `).concat(n,`;
989   padding-right: `).concat(l,"px ").concat(n,`;
990  }
991  body[`).concat(Ci,`] {
992    overflow: hidden `).concat(n,`;
993    overscroll-behavior: contain;
994    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
995    padding-left: `.concat(s,`px;
996    padding-top: `).concat(i,`px;
997    padding-right: `).concat(a,`px;
998    margin-left:0;
999    margin-top:0;
1000    margin-right: `).concat(l,"px ").concat(n,`;
1001    `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
1001")].filter(Boolean).join(""),`
1002  }
1003  
1004  .`).concat(Il,` {
1005    right: `).concat(l,"px ").concat(n,`;
1006  }
1007  
1008  .`).concat(Ml,` {
1009    margin-right: `).concat(l,"px ").concat(n,`;
1010  }
1011  
1012  .`).concat(Il," .").concat(Il,` {
1013    right: 0 `).concat(n,`;
1014  }
1015  
1016  .`).concat(Ml," .").concat(Ml,` {
1017    margin-right: 0 `).concat(n,`;
1018  }
1019  
1020  body[`).concat(Ci,`] {
1021    `).concat(cO,": ").concat(l,`px;
1022  }
1023`)},Ny=function(){var t=parseInt(document.body.getAttribute(Ci)||"0",10);return isFinite(t)?t:0},EO=function(){x.useEffect(function(){return document.body.setAttribute(Ci,(Ny()+1).toString()),function(){var t=Ny()-1;t<=0?document.body.removeAttribute(Ci):document.body.setAttribute(Ci,t.toString())}},[])},NO=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;EO();var i=x.useMemo(function(){return CO(s)},[s]);return x.createElement(jO,{styles:TO(i,!e,s,r?"":"!important")})},Fh=!1;if(typeof window<"u")try{var ul=Object.defineProperty({},"passive",{get:function(){return Fh=!0,!0}});window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Fh=!1}var Ws=Fh?{passive:!1}:!1,AO=function(t){return t.tagName==="TEXTAREA"},qb=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!AO(t)&&r[e]==="visible")},PO=function(t){return qb(t,"overflowY")},RO=function(t){return qb(t,"overflowX")},Ay=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=Kb(t,n);if(s){var i=Gb(t,n),a=i[1],l=i[2];if(a>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},OO=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},IO=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},Kb=function(t,e){return t==="v"?PO(e):RO(e)},Gb=function(t,e){return t==="v"?OO(e):IO(e)},MO=function(t,e){return t==="h"&&e==="rtl"?-1:1},LO=function(t,e,r,n,s){var i=MO(t,window.getComputedStyle(e).direction),a=i*n,l=r.target,c=e.contains(l),u=!1,d=a>0,h=0,p=0;do{if(!l)break;var f=Gb(t,l),w=f[0],g=f[1],b=f[2],y=g-b-i*w;(w||y)&&Kb(t,l)&&(h+=y,p+=w);var m=l.parentNode;l=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(p)<1||!s))&&(u=!0),u},dl=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Py=function(t){return[t.deltaX,t.deltaY]},Ry=function(t){return t&&"current"in t?t.current:t},DO=function(t,e){return t[0]===e[0]&&t[1]===e[1]},$O=function(t){return`
1024  .block-interactivity-`.concat(t,` {pointer-events: none;}
1025  .allow-interactivity-`).concat(t,` {pointer-events: all;}
1026`)},UO=0,Vs=[];function FO(t){var e=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),s=x.useState(UO++)[0],i=x.useState(Vb)[0],a=x.useRef(t);x.useEffect(function(){a.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var g=oO([t.lockRef.current],(t.shards||[]).map(Ry),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=x.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=dl(g),m=r.current,v="deltaX"in g?g.deltaX:m[0]-y[0],k="deltaY"in g?g.deltaY:m[1]-y[1],S,C=g.target,_=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in g&&_==="h"&&C.type==="range")return!1;var j=Ay(_,C);if(!j)return!0;if(j?S=_:(S=_==="v"?"h":"v",j=Ay(_,C)),!j)return!1;if(!n.current&&"changedTouches"in g&&(v||k)&&(n.current=S),!S)return!0;var A=n.current||S;return LO(A,b,g,A==="h"?v:k,!0)},[]),c=x.useCallback(function(g){var b=g;if(!(!Vs.length||Vs[Vs.length-1]!==i)){var y="deltaY"in b?Py(b):dl(b),m=e.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&DO(S.delta,y)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}
vendor: 5,592 bytes, line 1026
1026if(!m){var v=(a.current.shards||[]).map(Ry).filter(Boolean).filter(function(S){return S.contains(b.target)}),k=v.length>0?l(b,v[0]):!a.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),u=x.useCallback(function(g,b,y,m){var v={name:g,delta:b,target:y,should:m,shadowParent:BO(y)};e.current.push(v),setTimeout(function(){e.current=e.current.filter(function(k){return k!==v})},1)},[]),d=x.useCallback(function(g){r.current=dl(g),n.current=void 0},[]),h=x.useCallback(function(g){u(g.type,Py(g),g.target,l(g,t.lockRef.current))},[]),p=x.useCallback(function(g){u(g.type,dl(g),g.target,l(g,t.lockRef.current))},[]);x.useEffect(function(){return Vs.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ws),document.addEventListener("touchmove",c,Ws),document.addEventListener("touchstart",d,Ws),function(){Vs=Vs.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,Ws),document.removeEventListener("touchmove",c,Ws),document.removeEventListener("touchstart",d,Ws)}},[]);var f=t.removeScrollBar,w=t.inert;return x.createElement(x.Fragment,null,w?x.createElement(i,{styles:$O(s)}):null,f?x.createElement(NO,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function BO(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const zO=gO(Wb,FO);var Jb=x.forwardRef(function(t,e){return x.createElement(nu,Er({},t,{ref:e,sideCar:zO}))});Jb.classNames=nu.classNames;var HO=[" ","Enter","ArrowUp","ArrowDown"],WO=[" ","Enter"],Ps="Select",[su,iu,VO]=lp(Ps),[ra,s5]=Gn(Ps,[VO,Qc]),au=Qc(),[qO,Qn]=ra(Ps),[KO,GO]=ra(Ps),Zb=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:p,required:f,form:w}=t,g=au(e),[b,y]=x.useState(null),[m,v]=x.useState(null),[k,S]=x.useState(!1),C=$b(u),[_,j]=Es({prop:n,defaultProp:s??!1,onChange:i,caller:Ps}),[A,R]=Es({prop:a,defaultProp:l,onChange:c,caller:Ps}),z=x.useRef(null),M=b?w||!!b.closest("form"):!0,[J,L]=x.useState(new Set),X=Array.from(J).map(H=>H.props.value).join(";");return o.jsx(GN,{...g,children:o.jsxs(qO,{required:f,scope:e,trigger:b,onTriggerChange:y,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:S,contentId:Ro(),value:A,onValueChange:R,open:_,onOpenChange:j,dir:C,triggerPointerDownPosRef:z,disabled:p,children:[o.jsx(su.Provider,{scope:e,children:o.jsx(KO,{scope:t.__scopeSelect,onNativeOptionAdd:x.useCallback(H=>{L(G=>new Set(G).add(H))},[]),onNativeOptionRemove:x.useCallback(H=>{L(G=>{const T=new Set(G);return T.delete(H),T})},[]),children:r})}),M?o.jsxs(w1,{"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:h,value:A,onChange:H=>R(H.target.value),disabled:p,form:w,children:[A===void 0?o.jsx("option",{value:""}):null,Array.from(J)]},X):null]})})};Zb.displayName=Ps;var Qb="SelectTrigger",Yb=x.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=au(r),a=Qn(Qb,r),l=a.disabled||n,c=je(e,a.onTriggerChange),u=iu(r),d=x.useRef("touch"),[h,p,f]=k1(g=>{const b=u().filter(v=>!v.disabled),y=b.find(v=>v.value===a.value),m=S1(b,g,y);m!==void 0&&a.onValueChange(m.value)}),w=g=>{l||(a.onOpenChange(!0),f()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return o.jsx(Q0,{asChild:!0,...i,children:o.jsx(ue.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":b1(a.value)?"":void 0,...s,ref:c,onClick:oe(s.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&w(g)}),onPointerDown:oe(s.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:oe(s.onKeyDown,g=>{const b=h.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(b&&g.key===" ")&&HO.includes(g.key)&&(w(),g.preventDefault())})})})});Yb.displayName=Qb;var Xb="SelectValue",e1=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:a="",...l}=t,c=Qn(Xb,r),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,h=je(e,c.onValueNodeChange);return et(()=>{u(d)},[u,d]),o.jsx(ue.span,{...l,ref:h,style:{pointerEvents:"none"},children:b1(c.value)?o.jsx(o.Fragment,{children:a}):i})});e1.displayName=Xb;var JO="SelectIcon",t1=x.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return o.jsx(ue.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});t1.displayName=JO;var ZO="SelectPortal",r1=t=>o.jsx(cp,{asChild:!0,...t});r1.displayName=ZO;var Rs="SelectContent",n1=x.forwardRef((t,e)=>{const r=Qn(Rs,t.__scopeSelect),[n,s]=x.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?Ms.createPortal(o.jsx(s1,{scope:t.__scopeSelect,children:o.jsx(su.Slot,{scope:t.__scopeSelect,children:o.jsx("div",{children:t.children})})}),i):null}return o.jsx(i1,{...t,ref:e})});n1.displayName=Rs;var ir=10,[s1,Yn]=ra(Rs),QO="SelectContentImpl",YO=ro("SelectContent.RemoveScroll"),i1=x.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:w,hideWhenDetached:g,avoidCollisions:b,...y}=t,m=Qn(Rs,r),[v,k]=x.useState(null),[S,C]=x.useState(null),_=je(e,$=>
vendor: 14,176 bytes, line 1026
1026k($)),[j,A]=x.useState(null),[R,z]=x.useState(null),M=iu(r),[J,L]=x.useState(!1),X=x.useRef(!1);x.useEffect(()=>{if(v)return iO(v)},[v]),GR();const H=x.useCallback($=>{const[we,...$e]=M().map(ge=>ge.ref.current),[xe]=$e.slice(-1),de=document.activeElement;for(const ge of $)if(ge===de||(ge==null||ge.scrollIntoView({block:"nearest"}),ge===we&&S&&(S.scrollTop=0),ge===xe&&S&&(S.scrollTop=S.scrollHeight),ge==null||ge.focus(),document.activeElement!==de))return},[M,S]),G=x.useCallback(()=>H([j,v]),[H,j,v]);x.useEffect(()=>{J&&G()},[J,G]);const{onOpenChange:T,triggerPointerDownPosRef:N}=m;x.useEffect(()=>{if(v){let $={x:0,y:0};const we=xe=>{var de,ge;$={x:Math.abs(Math.round(xe.pageX)-(((de=N.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((ge=N.current)==null?void 0:ge.y)??0))}},$e=xe=>{$.x<=10&&$.y<=10?xe.preventDefault():v.contains(xe.target)||T(!1),document.removeEventListener("pointermove",we),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",$e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",$e,{capture:!0})}}},[v,T,N]),x.useEffect(()=>{const $=()=>T(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[T]);const[D,Y]=k1($=>{const we=M().filter(de=>!de.disabled),$e=we.find(de=>de.ref.current===document.activeElement),xe=S1(we,$,$e);xe&&setTimeout(()=>xe.ref.current.focus())}),q=x.useCallback(($,we,$e)=>{const xe=!X.current&&!$e;(m.value!==void 0&&m.value===we||xe)&&(A($),xe&&(X.current=!0))},[m.value]),ie=x.useCallback(()=>v==null?void 0:v.focus(),[v]),re=x.useCallback(($,we,$e)=>{const xe=!X.current&&!$e;(m.value!==void 0&&m.value===we||xe)&&z($)},[m.value]),Te=n==="popper"?Bh:a1,De=Te===Bh?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:w,hideWhenDetached:g,avoidCollisions:b}:{};return o.jsx(s1,{scope:r,content:v,viewport:S,onViewportChange:C,itemRefCallback:q,selectedItem:j,onItemLeave:ie,itemTextRefCallback:re,focusSelectedItem:G,selectedItemText:R,position:n,isPositioned:J,searchRef:D,children:o.jsx(Jb,{as:YO,allowPinchZoom:!0,children:o.jsx(Ub,{asChild:!0,trapped:m.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:oe(s,$=>{var we;(we=m.trigger)==null||we.focus({preventScroll:!0}),$.preventDefault()}),children:o.jsx(zc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:o.jsx(Te,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:$=>$.preventDefault(),...y,...De,onPlaced:()=>L(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:oe(y.onKeyDown,$=>{const we=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!we&&$.key.length===1&&Y($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let xe=M().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes($.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const de=$.target,ge=xe.indexOf(de);xe=xe.slice(ge+1)}setTimeout(()=>H(xe)),$.preventDefault()}})})})})})})});i1.displayName=QO;var XO="SelectItemAlignedPosition",a1=x.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Qn(Rs,r),a=Yn(Rs,r),[l,c]=x.useState(null),[u,d]=x.useState(null),h=je(e,_=>d(_)),p=iu(r),f=x.useRef(!1),w=x.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:m}=a,v=x.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&g&&b&&y){const _=i.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),R=y.getBoundingClientRect();if(i.dir!=="rtl"){const de=R.left-j.left,ge=A.left-de,ot=_.left-ge,Ut=_.width+ot,Xn=Math.max(Ut,j.width),rn=window.innerWidth-ir,es=ky(ge,[ir,Math.max(ir,rn-Xn)]);l.style.minWidth=Ut+"px",l.style.left=es+"px"}else{const de=j.right-R.right,ge=window.innerWidth-A.right-de,ot=window.innerWidth-_.right-ge,Ut=_.width+ot,Xn=Math.max(Ut,j.width),rn=window.innerWidth-ir,es=ky(ge,[ir,Math.max(ir,rn-Xn)]);l.style.minWidth=Ut+"px",l.style.right=es+"px"}const z=p(),M=window.innerHeight-ir*2,J=g.scrollHeight,L=window.getComputedStyle(u),X=parseInt(L.borderTopWidth,10),H=parseInt(L.paddingTop,10),G=parseInt(L.borderBottomWidth,10),T=parseInt(L.paddingBottom,10),N=X+H+J+T+G,D=Math.min(b.offsetHeight*5,N),Y=window.getComputedStyle(g),q=parseInt(Y.paddingTop,10),ie=parseInt(Y.paddingBottom,10),re=_.top+_.height/2-ir,Te=M-re,De=b.offsetHeight/2,$=b.offsetTop+De,we=X+H+$,$e=N-we;if(we<=re){const de=z.length>0&&b===z[z.length-1].ref.current;l.style.bottom="0px";const ge=u.clientHeight-g.offsetTop-g.offsetHeight,ot=Math.max(Te,De+(de?ie:0)+ge+G),Ut=we+ot;l.style.height=Ut+"px"}else{const de=z.length>0&&b===z[0].ref.current;l.style.top="0px";const ot=Math.max(re,X+g.offsetTop+(de?q:0)+De)+$e;l.style.height=ot+"px",g.scrollTop=we-re+g.offsetTop}l.style.margin=`${ir}px 0`,l.style.minHeight=D+"px",l.style.maxHeight=M+"px",n==null||n(),requestAnimationFrame(()=>f.current=!0)}},[p,i.trigger,i.valueNode,l,u,g,b,y,i.dir,n]);et(()=>v(),[v]);const[k,S]=x.useState();et(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const C=x.useCallback(_=>{_&&w.current===!0&&(v(),m==null||m(),w.current=!1)},[v,m]);return o.jsx(tI,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:f,onScrollButtonChange:C,children:o.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:o.jsx(ue.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});a1.displayName=XO;var eI="SelectPopperPosition",Bh=x.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=ir,...i}=t,a=au(r);return o.jsx(Y0,{...a,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bh.displayName=eI;var[tI,Lp]=ra(Rs,{}),zh="SelectViewport",o1=x.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=Yn(zh,r),a=Lp(zh,r),l=je(e,i.onViewportChange),c=x.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),o.jsx(su.Slot,{scope:r,children:o.jsx(ue.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:oe(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&h){const f=Math.abs(c.current-d.scrollTop);if(f>0){const w=window.innerHeight-ir*2,g=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),y=Math.max(g,b);if(y<w){const m=y+f,v=Math.min(w,m),k=m-v;h.style.height=v+"px",h.style.bottom==="0px"&&(d.scrollTop=k>0?k:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});o1.displayName=zh;var l1="SelectGroup",[rI,nI]=ra(l1),sI=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Ro();return o.jsx(rI,{scope:r,id:s,children:o.jsx(ue.div,{role:"group","aria-labelledby":s,...n,ref:e})})});sI.displayName=l1;var c1="SelectLabel",u1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=nI(c1,r);return o.jsx(ue.div,{id:s.id,...n,ref:e})});u1.displayName=c1;var bc="SelectItem",[iI,d1]=ra(bc),h1=x.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...a}=t,l=Qn(bc,r),c=Yn(bc,r),u=l.value===n,[d,h]=x.useState(i??""),[p,f]=x.useState(!1),w=je(e,m=>{var v;return(v=c.itemRefCallback)==null?void 0:v.call(c,m,n,s)}),g=Ro(),b=x.useRef("touch"),y=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o.jsx(iI,{scope:r,value:n,disabled:s,textId:g,isSelected:u,onItemTextChange:x.useCallback(m=>{h(v=>v||((m==null?void 0:m.textContent)??"").trim())},[]),children:o.jsx(su.ItemSlot,{scope:r,value:n,disabled:s,textValue:d,children:o.jsx(ue.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:w,onFocus:oe(a.onFocus,()=>f(!0)),onBlur:oe(a.onBlur,()=>f(!1)),onClick:oe(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:oe(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:oe(a.onPointerDown,m=>{b.current=m.pointerType}),onPointerMove:oe(a.onPointerMove,m=>{var v;b.current=m.pointerType,s?(v=c.onItemLeave)==null||v.call(c):b.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:oe(a.onPointerLeave,m=>{var v;m.currentTarget===document.activeElement&&((v=c.onItemLeave)==null||v.call(c))}),onKeyDown:oe(a.onKeyDown,m=>{var k;((k=c.searchRef)==null?void 0:k.current)!==""&&m.key===" "||(WO.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})})})})});h1.displayName=bc;var ka="SelectItemText",f1=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,a=Qn(ka,r),l=Yn(ka,r),c=d1(ka,r),u=GO(ka,r),[d,h]=x.useState(null),p=je(e,y=>h(y),c.onItemTextChange,y=>{var m;return(m=l.itemTextRefCallback)==null?void 0:m.call(l,y,c.value,c.disabled)}),f=d==null?void 0:d.textContent,w=x.useMemo(()=>o.jsx("option",{value:c.value,disabled:c.disabled,children:f},c.value),[c.disabled,c.value,f]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return et(()=>(g(w),()=>b(w)),[g,b,w]),o.jsxs(o.Fragment,{children:[o.jsx(ue.span,{id:c.textId,...i,ref:p}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ms.createPortal(i.children,a.valueNode):null]})});f1.displayName=ka;var p1="SelectItemIndicator",m1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return d1(p1,r).isSelected?o.jsx(ue.span,{"aria-hidden":!0,...n,ref:e}):null});m1.displayName=p1;var Hh="SelectScrollUpButton",g1=x.forwardRef((t,e)=>{const r=Yn(Hh,t.__scopeSelect),n=Lp(Hh,t.__scopeSelect),[s,i]=x.useState(!1),a=je(e,n.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?o.jsx(v1,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});g1.displayName=Hh;var Wh="SelectScrollDownButton",y1=x.forwardRef((t,e)=>{const r=Yn(Wh,t.__scopeSelect),n=Lp(Wh,t.__scopeSelect),[s,i]=x.useState(!1),a=je(e,n.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?o.jsx(v1,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});y1.displayName=Wh;var v1=x.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=Yn("SelectScrollButton",r),a=x.useRef(null),l=iu(r),c=x.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return x.useEffect(()=>()=>c(),[c]),et(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),o.jsx(ue.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:oe(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:oe(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:oe(s.onPointerLeave,()=>{c()})})}),aI="SelectSeparator",x1=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return o.jsx(ue.div,{"aria-hidden":!0,...n,ref:e})});x1.displayName=aI;var Vh="SelectArrow",oI=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=au(r),i=Qn(Vh,r),a=Yn(Vh,r);return i.open&&a.position==="popper"?o.jsx(X0,{...s,...n,ref:e}):null});oI.displayName=Vh;var lI="SelectBubbleInput",w1=x.forwardRef(({__scopeSelect:t,value:e,...r},n)=>{const s=x.useRef(null),i=je(n,s),a=Bb(e);return x.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==e&&d){const h=new Event("change",{bubbles:!0});d.call(l,e),l.dispatchEvent(h)}},[a,e]),o.jsx(ue.select,{...r,style:{...Bw,...r.style},ref:i,defaultValue:e})});w1.displayName=lI;function b1(t){return t===""||t===void 0}function k1(t){const e=vr(t),r=x.useRef(""),n=x.useRef(0),s=x.useCallback(a=>{const l=r.current+a;e(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[e]),i=x.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function S1(t,e,r){const s=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let a=cI(t,Math.max(i,0));s.length===1&&(a=a.filter(u=>u!==r));const c=a.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function cI(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var uI=Zb,_1=Yb,dI=e1,hI=t1,fI=r1,C1=n1,pI=o1,j1=u1,T1=h1,mI=f1,gI=m1,E1=g1,N1=y1,A1=x1;const Ll=uI,Dl=dI,Ia=x.forwardRef(({className:t,children:e,...r},n)=>o.jsxs(_1,{ref:n,className:pe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1026ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[e,o.jsx(hI,{asChild:!0,children:o.jsx(pp,{className:"h-4 w-4 opacity-50"})})]}));Ia.displayName=_1.displayName;const P1=x.forwardRef(({className:t,...e},r)=>o.jsx(E1,{ref:r,className:pe("flex cursor-default items-center justify-center py-1",t),...e,children:o.jsx(Wj,{className:"h-4 w-4"})}));P1.displayName=E1.displayName;const R1=x.forwardRef(({className:t,...e},r)=>o.jsx(N1,{ref:r,className:pe("flex cursor-default items-center justify-center py-1",t),...e,children:o.jsx(pp,{className:"h-4 w-4"})}));R1.displayName=N1.displayName;const Ma=x.forwardRef(({className:t,children:e,position:r="popper",...n},s)=>o.jsx(fI,{children:o.jsxs(C1,{ref:s,className:pe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[o.jsx(P1,{}),o.jsx(pI,{className:pe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),o.jsx(R1,{})]})}));Ma.displayName=C1.displayName;const yI=x.forwardRef(({className:t,...e},r)=>o.jsx(j1,{ref:r,className:pe("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...e}));yI.displayName=j1.displayName;const La=x.forwardRef(({className:t,children:e,...r},n)=>o.jsxs(T1,{ref:n,className:pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(gI,{children:o.jsx(h0,{className:"h-4 w-4"})})}),o.jsx(mI,{children:e})]}));La.displayName=T1.displayName;const vI=x.forwardRef(({className:t,...e},r)=>o.jsx(A1,{ref:r,className:pe("-mx-1 my-1 h-px bg-muted",t),...e}));vI.displayName=A1.displayName;const xI="/assets/doctor-stethoscope-B_gtZDS9.png",wI=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Dp extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class bI extends Dp{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Oy extends Dp{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Iy extends Dp{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var qh;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(qh||(qh={}));class kI{constructor(e,{headers:r={},customFetch:n,region:s=qh.Any}={}){this.url=e,this.headers=r,this.region=s,this.fetch=wI(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return aO(this,arguments,void 0,function*(r,n={}){var s;let i,a;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const w=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,w.searchParams.set("forceFunctionRegion",f));let g;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(p["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(p["Content-Type"]="application/json",g=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?g=JSON.stringify(u):g=u;let b=d;h&&(a=new AbortController,i=setTimeout(()=>a.abort(),h),d?(b=a.signal,d.addEventListener("abort",()=>a.abort())):b=a.signal);const y=yield this.fetch(w.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),l),body:g,signal:b}).catch(S=>{throw new bI(S)}),m=y.headers.get("x-relay-error");
1026if(m&&m==="true")throw new Oy(y);if(!y.ok)throw new Iy(y);let v=((s=y.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),k;return v==="application/json"?k=yield y.json():v==="application/octet-stream"||v==="application/pdf"?k=yield y.blob():v==="text/event-stream"?k=y:v==="multipart/form-data"?k=yield y.formData():k=yield y.text(),{data:k,error:null,response:y}}catch(l){return{data:null,error:l,response:l instanceof Iy||l instanceof Oy?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var SI=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}},_I=class{constructor(t){var e,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let a=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var h,p;if(r.method!=="HEAD"){var f;const y=await i.text();y===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?l=y:l=JSON.parse(y))}const g=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),b=(p=i.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");g&&b&&b.length>1&&(c=parseInt(b[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(l)&&(l.length>1?(a={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var w;const g=await i.text();try{a=JSON.parse(g),Array.isArray(a)&&i.status===404&&(l=[],a=null,u=200,d="OK")}catch{i.status===404&&g===""?(u=204,d="No Content"):a={message:g}}if(a&&r.isMaybeSingle&&(!(a==null||(w=a.details)===null||w===void 0)&&w.includes("0 rows"))&&(a=null,u=200,d="OK"),a&&r.shouldThrowOnError)throw new SI(a)}return{error:a,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var a;let l="";const c=i==null?void 0:i.cause;if(c){var u,d,h,p;const w=(u=c==null?void 0:c.message)!==null&&u!==void 0?u:"",g=(d=c==null?void 0:c.code)!==null&&d!==void 0?d:"";l=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,l+=`
1027
1028Caused by: ${(p=c==null?void 0:c.name)!==null&&p!==void 0?p:"Error"}: ${w}`,g&&(l+=` (${g})`),c!=null&&c.stack&&(l+=`
1029${c.stack}`)}else{var f;l=(f=i==null?void 0:i.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(a=i==null?void 0:i.name)!==null&&a!==void 0?a:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(t,e)}returns(){return this}overrideTypes(){return this}},CI=class extends _I{select(t){let e=!1;const r=(t??"*").split("").map(n=>/\s/.test(n)&&!e?"":(n==='"'&&(e=!e),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${e?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:r=e}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,e,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
1029explain({analyze:t=!1,verbose:e=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,e?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const My=new RegExp("[,()]");var Xs=class extends CI{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&My.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}notIn(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&My.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`not.in.(${r})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${i}.${e}`),this}match(t){return Object.entries(t).forEach(([e,r])=>{this.url.searchParams.append(e,`eq.${r}`)}),this}not(t,e,r){return this.url.searchParams.append(t,`not.${e}.${r}`),this}or(t,{foreignTable:e,referencedTable:r=e}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,e,r){return this.url.searchParams.append(t,`${e}.${r}`),this}},jI=class{constructor(t,{headers:e={},schema:r,fetch:n}){this.url=t,this.headers=new Headers(e),this.schema=r,this.fetch=n}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:r=!1,count:n}=e??{},s=r?"HEAD":"GET";let i=!1;const a=(t??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",a),n&&c.append("Prefer",`count=${n}`),new Xs({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch})}insert(t,{count:e,defaultToNull:r=!0}={}){var n;const s="POST",{url:i,headers:a}=this.cloneRequestState();if(e&&a.append("Prefer",`count=${e}`),r||a.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new Xs({method:s,url:i,headers:a,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(t,{onConflict:e,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var i;const a="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),e!==void 0&&l.searchParams.set("on_conflict",e),n&&c.append("Prefer",`count=${n}`),s||c.append("Prefer","missing=default"),Array.isArray(t)){const u=t.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new Xs({method:a,url:l,headers:c,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:e}={}){var r;const n="PATCH",{url:s,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Xs({method:n,url:s,headers:i,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var e;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Xs({method:r,url:n,headers:s,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch})}},TI=class O1{constructor(e,{headers:r={},schema:n,fetch:s}={}){this.url=e,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new jI(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new O1(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,r={},{head:n=!1,get:s=!1,count:i}={}){var a;let l;const c=new URL(`${this.url}/rpc/${e}`);let u;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=n&&Object.values(r).some(d);h?(l="POST",u=r):n||s?(l=n?"HEAD":"GET",Object.entries(r).filter(([f,w])=>w!==void 0).map(([f,w])=>[f,Array.isArray(w)?`{${w.join(",")}}`:`${w}
1029`]).forEach(([f,w])=>{c.searchParams.append(f,w)})):(l="POST",u=r);const p=new Headers(this.headers);return h?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new Xs({method:l,url:c,headers:p,schema:this.schemaName,body:u,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}};class EI{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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 r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
1030import ws from "ws"
1031new 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 e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=`
1032
1033Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const NI="2.91.0",AI=`realtime-js/${NI}`,PI="1.0.0",I1="2.0.0",Ly=I1,Kh=1e4,RI=1e3,OI=100;var mn;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(mn||(mn={}));var Ke;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Ke||(Ke={}));var hr;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(hr||(hr={}));var Gh;(function(t){t.websocket="websocket"})(Gh||(Gh={}));var ls;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(ls||(ls={}));class II{constructor(e){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=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const s=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var r,n;const s=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},a=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(e,r,n){var s,i;const a=e.topic,l=(s=e.ref)!==null&&s!==void 0?s:"",c=(i=e.join_ref)!==null&&i!==void 0?i:"",u=e.payload.event,d=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+a.length+u.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let w=new DataView(f),g=0;w.setUint8(g++,this.KINDS.userBroadcastPush),w.setUint8(g++,c.length),w.setUint8(g++,l.length),w.setUint8(g++,a.length),w.setUint8(g++,u.length),w.setUint8(g++,h.length),w.setUint8(g++,r),Array.from(c,y=>
1033w.setUint8(g++,y.charCodeAt(0))),Array.from(l,y=>w.setUint8(g++,y.charCodeAt(0))),Array.from(a,y=>w.setUint8(g++,y.charCodeAt(0))),Array.from(u,y=>w.setUint8(g++,y.charCodeAt(0))),Array.from(h,y=>w.setUint8(g++,y.charCodeAt(0)));var b=new Uint8Array(f.byteLength+n.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(n),f.byteLength),b.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[s,i,a,l,c]=n;return r({join_ref:s,ref:i,topic:a,event:l,payload:c})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,s)}}_decodeUserBroadcast(e,r,n){const s=r.getUint8(1),i=r.getUint8(2),a=r.getUint8(3),l=r.getUint8(4);let c=this.HEADER_LENGTH+4;const u=n.decode(e.slice(c,c+s));c=c+s;const d=n.decode(e.slice(c,c+i));c=c+i;const h=n.decode(e.slice(c,c+a));c=c+a;const p=e.slice(c,e.byteLength),f=l===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,w={type:this.BROADCAST_EVENT,event:d,payload:f};return a>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([n])=>r.includes(n)))}}class M1{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Se;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Se||(Se={}));const Dy=(t,e,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((i,a)=>(i[a]=MI(a,t,e,s),i),{}):{}},MI=(t,e,r,n)=>{const s=e.find(l=>
1033l.name===t),i=s==null?void 0:s.type,a=r[t];return i&&!n.includes(i)?L1(i,a):Jh(a)},L1=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return UI(e,r)}switch(t){case Se.bool:return LI(e);case Se.float4:case Se.float8:case Se.int2:case Se.int4:case Se.int8:case Se.numeric:case Se.oid:return DI(e);case Se.json:case Se.jsonb:return $I(e);case Se.timestamp:return FI(e);case Se.abstime:case Se.date:case Se.daterange:case Se.int4range:case Se.int8range:case Se.money:case Se.reltime:case Se.text:case Se.time:case Se.timestamptz:case Se.timetz:case Se.tsrange:case Se.tstzrange:return Jh(e);default:return Jh(e)}},Jh=t=>t,LI=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},DI=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},$I=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},UI=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const a=t.slice(1,r);try{i=JSON.parse("["+a+"]")}catch{i=a?a.split(","):[]}return i.map(l=>L1(e,l))}return t},FI=t=>typeof t=="string"?t.replace(" ","T"):t,D1=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class cd{constructor(e,r,n={},s=Kh){this.channel=e,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var $y;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})($y||($y={}));class Da{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Da.syncState(this.state,s,i,a),this.pendingDiffs.forEach(c=>{this.state=Da.syncDiff(this.state,c,i,a)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Da.syncDiff(this.state,s,i,a),l())}),this.onJoin((s,i,a)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:a})}),this.onLeave((s,i,a)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:a})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,s){const i=this.cloneDeep(e),a=this.transformState(r),l={},c={};return this.map(i,(u,d)=>{a[u]||(c[u]=d)}),this.map(a,(u,d)=>{const h=i[u];if(h){const p=d.map(b=>b.presence_ref),f=h.map(b=>b.presence_ref),w=d.filter(b=>f.indexOf(b.presence_ref)<0),g=h.filter(b=>p.indexOf(b.presence_ref)<0);w.length>0&&(l[u]=w),g.length>0&&(c[u]=g)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},n,s)}static syncDiff(e,r,n,s){const{joins:i,leaves:a}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(l,c)=>{var u;
1033const d=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(c),d.length>0){const h=e[l].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);e[l].unshift(...p)}n(l,d,c)}),this.map(a,(l,c)=>{let u=e[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),e[l]=u,s(l,u,c),u.length===0&&delete e[l]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const s=e[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Uy;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Uy||(Uy={}));var $a;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})($a||($a={}));var Br;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Br||(Br={}));class pi{constructor(e,r={config:{}},n){var s,i;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=Ke.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new cd(this,hr.join,this.params,this.timeout),this.rejoinTimer=new M1(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ke.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ke.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Ke.errored,this.rejoinTimer.scheduleTimeout())}),this._on(hr.reply,{},(a,l)=>{this._trigger(this._replyEventName(l),a)}),this.presence=new Da(this),this.broadcastEndpointURL=D1(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Ke.closed){const{config:{broadcast:a,presence:l,private:c}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[$a.PRESENCE]&&this.bindings[$a.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},p={broadcast:a,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>e==null?void 0:e(Br.CHANNEL_ERROR,f)),this._onClose(()=>e==null?void 0:e(Br.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){e==null||e(Br.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,b=(w=g==null?void 0:g.length)!==null&&w!==void 0?w:0,y=[];for(let m=0;m<b;m++){const v=g[m],{filter:{event:k,schema:S,table:C,filter:_}}=v,j=f&&f[m];if(j&&j.event===k&&pi.isFilterValueEqual(j.schema,S)&&pi.isFilterValueEqual(j.table,C)&&pi.isFilterValueEqual(j.filter,_))y.push(Object.assign(Object.assign({},v),{id:j.id}));else{this.unsubscribe(),this.state=Ke.errored,e==null||e(Br.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,e&&e(Br.SUBSCRIBED);return}}).receive("error",f=>{this.state=Ke.errored,e==null||e(Br.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Br.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===Ke.joined&&e===$a.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
1033try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(e,r={}){var n,s;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:a}=e,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:a,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var a,l,c;const u=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(a=this.params)===null||a===void 0?void 0:a.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Ke.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(hr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new cd(this,hr.leave,{},e),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ke.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),a=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),a}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new cd(this,e,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>OI){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var s,i;const a=e.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=hr;if(n&&[l,c,u,d].indexOf(a)>=0&&n!==this._joinRef())return;let p=this._onMessage(a,r,n);if(r&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(a)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var w,g,b;return((w=f.filter)===null||w===void 0?void 0:w.event)==="*"||((b=(g=f.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===a}).map(f=>f.callback(p,n)):(i=this.bindings[a])===null||i===void 0||i.filter(f=>{var w,g,b,y,m,v,k,S;if(["broadcast","presence","postgres_changes"].includes(a))if("id"in f){const C=f.id,_=(w=f.filter)===null||w===void 0?void 0:w.event;return C&&((g=r.ids)===null||g===void 0?void 0:g.includes(C))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((b=r.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))&&(!(!((y=f.filter)===null||y===void 0)&&y.table)||f.filter.table===((m=r.data)===null||m===void 0?void 0:m.table))}else{const C=(k=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||k===void 0?void 0:k.toLocaleLowerCase();return C==="*"||C===((S=r==null?void 0:r.event)===null||S===void 0?void 0:S.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===a}).map(f=>{if(typeof p=="object"&&"ids"in p){const w=p.data,{schema:g,table:b,commit_timestamp:y,type:m,errors:v}=w;p=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:y,eventType:m,new:{},old:{},errors:v}),this._getPayloadRecords(w))}f.callback(p,n)})}_isClosed(){return this.state===Ke.closed}_isJoined(){return this.state===Ke.joined}_isJoining(){return this.state===Ke.joining}_isLeaving(){return this.state===Ke.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const s=e.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&pi.isEqual(s.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(hr.close,{},e)}_onError(e){this._on(hr.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ke.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=Dy(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=Dy(e.columns,e.old_record)),r}}const ud=()=>{},hl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},BI=[1e3,2e3,5e3,1e4],zI=1e4,HI=`
1034  addEventListener("message", (e) => {
1035    if (e.data.event === "start") {
1036      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
1037    }
1038  });`;class WI{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={}
1038,this.timeout=Kh,this.transport=null,this.heartbeatIntervalMs=hl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=ud,this.ref=0,this.reconnectTimer=null,this.vsn=Ly,this.logger=ud,this.conn=null,this.sendBuffer=[],this.serializer=new II,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${Gh.websocket}`,this.httpEndpoint=D1(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=EI.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r}
1039
1040To use Realtime in Node.js, you need to provide a WebSocket implementation:
1041
1042Option 1: Use Node.js 22+ which has native WebSocket support
1043Option 2: Install and provide the "ws" package:
1044
1045  npm install ws
1046
1047  import ws from "ws"
1048  const client = new RealtimeClient(url, {
1049    ...options,
1050    transport: ws
1051  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case mn.connecting:return ls.Connecting;case mn.open:return ls.Open;case mn.closing:return ls.Closing;default:return ls.Closed}}isConnected(){return this.connectionState()===ls.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new pi(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:s,ref:i}=e,a=()=>{this.encode(e,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(RI,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 1051
1051heduleTimeout()},hl.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:i,ref:a}=r,l=a?`(${a})`:"",c=i.status||"";this.log("receive",`${c} ${n} ${s} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,i,a)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===mn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===mn.open||this.conn.readyState===mn.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
1051heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(hr.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${e}${n}${s}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([HI],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,n=!1;if(e)r=e,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:AI};r&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(hr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new M1(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},hl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,s,i,a,l,c,u,d,h,p,f;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:Kh,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:hl.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(a=e==null?void 0:e.accessToken)!==null&&a!==void 0?a:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:ud,this.vsn=(c=e==null?void 0:e.vsn)!==null&&c!==void 0?c:Ly,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:w=>BI[w-1]||zI,this.vsn){case PI:this.encode=(d=e==null?void 0:e.encode)!==null&&d!==void 0?d:(w,g)=>g(JSON.stringify(w)),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:(w,g)=>g(JSON.parse(w));break;case I1:this.encode=(p=e==null?void 0:e.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=e==null?void 0:e.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}var po=class extends Error{constructor(t,e){var r;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((r=e.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function VI(t,e,r){const n=new URL(e,t);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function qI(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function KI(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:a}){const l=VI(t.baseUrl,n,s),c=await qI(t.auth),u=await e(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...a},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!u.ok){const f=h?p:void 0,w=f==null?void 0:f.error;throw new po((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:f})}return{status:u.status,headers:u.headers,data:p}}}}function fl(t){return t.join("�")}var GI=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:fl(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${fl(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${fl(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${fl(t.namespace)}`}),!0}catch(e){if(e instanceof po&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof po&&r.status===409)return;throw r}}};function qs(t){return t.join("�")}var JI=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${qs(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${qs(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${qs(t.namespace)}
1051/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${qs(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${qs(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${qs(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof po&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof po&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},ZI=class{constructor(t){var n;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=KI({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(n=t.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new GI(this.client,e),this.tableOps=new JI(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}}
1051,ou=class extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}};function Oe(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var QI=class extends ou{constructor(t,e,r){super(t),this.name="StorageApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Zh=class extends ou{constructor(t,e){super(t),this.name="StorageUnknownError",this.originalError=e}};const $p=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),YI=()=>Response,Qh=t=>{if(Array.isArray(t))return t.map(r=>Qh(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Qh(n)}),e},XI=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},eM=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function mo(t){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mo(t)}function tM(t,e){if(mo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rM(t){var e=tM(t,"string");return mo(e)=="symbol"?e:e+""}function nM(t,e,r){return(e=rM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fy(Object(r),!0).forEach(function(n){nM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const dd=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},sM=async(t,e,r)=>{t instanceof await YI()&&!(r!=null&&r.noResolveJson)?t.json().then(n=>{const s=t.status||500,i=(n==null?void 0:n.statusCode)||s+"";e(new QI(dd(n),s,i))}).catch(n=>
1051{e(new Zh(dd(n),n))}):e(new Zh(dd(t),t))},iM=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!n?s:(XI(n)?(s.headers=Q({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,e!=null&&e.duplex&&(s.duplex=e.duplex),Q(Q({},s),r))};async function Mo(t,e,r,n,s,i){return new Promise((a,l)=>{t(r,iM(e,n,s,i)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>a(c)).catch(c=>sM(c,l,n))})}async function go(t,e,r,n){return Mo(t,"GET",e,r,n)}async function lr(t,e,r,n,s){return Mo(t,"POST",e,n,s,r)}async function Yh(t,e,r,n,s){return Mo(t,"PUT",e,n,s,r)}async function aM(t,e,r,n){return Mo(t,"HEAD",e,Q(Q({},r),{},{noResolveJson:!0}),n)}async function Up(t,e,r,n,s){return Mo(t,"DELETE",e,n,s,r)}var oM=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Oe(e))return{data:null,error:e};throw e}}};let $1;$1=Symbol.toStringTag;var lM=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[$1]="BlobDownloadBuilder",this.promise=null}asStream(){return new oM(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Oe(e))return{data:null,error:e};throw e}}};const cM={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},By={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var uM=class{constructor(t,e={},r,n){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.bucketId=r,this.fetch=$p(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(t,e,r,n){var s=this;try{let i;const a=Q(Q({},By),n);let l=Q(Q({},s.headers),t==="POST"&&{"x-upsert":String(a.upsert)});const c=a.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",a.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",a.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=r,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!a.duplex&&(a.duplex="half")),n!=null&&n.headers&&(l=Q(Q({},l),n.headers));const u=s._removeEmptyFolders(e),d=s._getFinalPath(u),h=await(t=="PUT"?Yh:lr)(s.fetch,`${s.url}/object/${d}`,i,Q({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(Oe(i))return{data:null,error:i};throw i}}async upload(t,e,r){return this.uploadOrUpdate("POST",t,e,r)}async uploadToSignedUrl(t,e,r,n){var s=this;const i=s._removeEmptyFolders(t),a=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${a}`);l.searchParams.set("token",e);try{let c;const u=Q({upsert:By.upsert},n),d=Q(Q({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{data:{path:i,fullPath:(await Yh(s.fetch,l.toString(),c,{headers:d})).Key},error:null}}catch(c){if(s.shouldThrowOnError)throw c;if(Oe(c))return{data:null,error:c};throw c}}async createSignedUploadUrl(t,e){var r=this;try{let n=r._getFinalPath(t);const s=Q({},r.headers);e!=null&&e.upsert&&(s["x-upsert"]="true");const i=await lr(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),a=new URL(r.url+i.url),l=a.searchParams.get("token");if(!l)throw new ou("No token returned by API");return{data:{signedUrl:a.toString(),path:t,token:l},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Oe(n))return{data:null,error:n};throw n}}async update(t,e,r){return this.uploadOrUpdate("PUT",t,e,r)}
1051async move(t,e,r){var n=this;try{return{data:await lr(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Oe(s))return{data:null,error:s};throw s}}async copy(t,e,r){var n=this;try{return{data:{path:(await lr(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key},error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Oe(s))return{data:null,error:s};throw s}}async createSignedUrl(t,e,r){var n=this;try{let s=n._getFinalPath(t),i=await lr(n.fetch,`${n.url}/object/sign/${s}`,Q({expiresIn:e},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const a=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${n.url}${i.signedURL}${a}`)},{data:i,error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Oe(s))return{data:null,error:s};throw s}}async createSignedUrls(t,e,r){var n=this;try{const s=await lr(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:e,paths:t},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(a=>Q(Q({},a),{},{signedUrl:a.signedURL?encodeURI(`${n.url}${a.signedURL}${i}`):null})),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Oe(s))return{data:null,error:s};throw s}}download(t,e){const r=typeof(e==null?void 0:e.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((e==null?void 0:e.transform)||{}),s=n?`?${n}`:"",i=this._getFinalPath(t),a=()=>go(this.fetch,`${this.url}/${r}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new lM(a,this.shouldThrowOnError)}async info(t){var e=this;const r=e._getFinalPath(t);try{return{data:Qh(await go(e.fetch,`${e.url}/object/info/${r}`,{headers:e.headers})),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Oe(n))return{data:null,error:n};throw n}}async exists(t){var e=this;const r=e._getFinalPath(t);try{return await aM(e.fetch,`${e.url}/object/${r}`,{headers:e.headers}),{data:!0,error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Oe(n)&&n instanceof Zh){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(t,e){const r=this._getFinalPath(t),n=[],s=e!=null&&e.download?`download=${e.download===!0?"":e.download}`:"";s!==""&&n.push(s);const i=typeof(e==null?void 0:e.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((e==null?void 0:e.transform)||{});a!==""&&n.push(a);let l=n.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${l}`)}}}async remove(t){var e=this;try{return{data:await Up(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async list(t,e,r){var n=this;try{const s=Q(Q(Q({},cM),e),{},{prefix:t||""});return{data:await lr(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Oe(s))return{data:null,error:s};throw s}}async listV2(t,e){var r=this;try{const n=Q({},t);return{data:await lr(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},e),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Oe(n))return{data:null,error:n};throw n}}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const U1="2.91.0",F1={"X-Client-Info":`storage-js/${U1}`};var dM=class{constructor(t,e={},r,n){this.shouldThrowOnError=!1;const s=new URL(t);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=Q(Q({},F1),e),this.fetch=$p(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(t){var e=this;try{const r=e.listBucketOptionsToQueryString(t);return{data:await go(e.fetch,`${e.url}/bucket${r}`,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async getBucket(t){var e=this;try{return{data:await go(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async createBucket(t,e={public:!1}){var r=this;try{return{data:await lr(r.fetch,`${r.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Oe(n))return{data:null,error:n};throw n}}async updateBucket(t,e){var r=this;try{return{data:await Yh(r.fetch,`${r.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Oe(n))return{data:null,error:n};throw n}}async emptyBucket(t){var e=this;try{return{data:await lr(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await Up(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},hM=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Q(Q({},F1),e),this.fetch=$p(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await lr(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async listBuckets(t){var e=this;
1051try{const r=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&r.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&r.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&r.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&r.set("sortOrder",t.sortOrder),t!=null&&t.search&&r.set("search",t.search);const n=r.toString(),s=n?`${e.url}/bucket?${n}`:`${e.url}/bucket`;return{data:await go(e.fetch,s,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await Up(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Oe(r))return{data:null,error:r};throw r}}from(t){var e=this;if(!eM(t))throw new ou("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 ZI({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,i){const a=s[i];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(s,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}};const Fp={"X-Client-Info":`storage-js/${U1}`,"Content-Type":"application/json"};var B1=class extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function At(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}var hd=class extends B1{constructor(t,e,r){super(t),this.name="StorageVectorsApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},fM=class extends B1{constructor(t,e){super(t),this.name="StorageVectorsUnknownError",this.originalError=e}};const Bp=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),pM=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},zy=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),mM=async(t,e,r)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const n=t.status||500,s=t;if(typeof s.json=="function")s.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||n+"";e(new hd(zy(i),n,a))}).catch(()=>{const i=n+"";e(new hd(s.statusText||`HTTP ${n} error`,n,i))});else{const i=n+"";e(new hd(s.statusText||`HTTP ${n} error`,n,i))}}else e(new fM(zy(t),t))},gM=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return n?(pM(n)?(s.headers=Q({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,Q(Q({},s),r)):s};async function yM(t,e,r,n,s,i){return new Promise((a,l)=>{t(r,gM(e,n,s,i)).then(c=>{if(!c.ok)throw c;if(n!=null&&n.noResolveJson)return c;const u=c.headers.get("content-type");return!u||!u.includes("application/json")?{}:c.json()}).then(c=>a(c)).catch(c=>mM(c,l,n))})}async function Pt(t,e,r,n,s){return yM(t,"POST",e,n,s,r)}var vM=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Q(Q({},Fp),e),this.fetch=Bp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async getIndex(t,e){var r=this;try{return{data:await Pt(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(At(n))return{data:null,error:n};throw n}}async listIndexes(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async deleteIndex(t,e){var r=this;try{return{data:await Pt(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers})||{},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(At(n))return{data:null,error:n};throw n}}},xM=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Q(Q({},Fp),e),this.fetch=Bp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(t){var e=this;try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await Pt(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async getVectors(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async listVectors(t){var e=this;try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
1051if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:await Pt(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async queryVectors(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async deleteVectors(t){var e=this;try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await Pt(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}},wM=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Q(Q({},Fp),e),this.fetch=Bp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async getBucket(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async listBuckets(t={}){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await Pt(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(At(r))return{data:null,error:r};throw r}}},bM=class extends wM{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new kM(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,r=this;return e().call(r,t)}async getBucket(t){var e=()=>super.getBucket,r=this;return e().call(r,t)}async listBuckets(t={}){var e=()=>super.listBuckets,r=this;return e().call(r,t)}async deleteBucket(t){var e=()=>super.deleteBucket,r=this;return e().call(r,t)}},kM=class extends vM{constructor(t,e,r,n){super(t,e,n),this.vectorBucketName=r}async createIndex(t){var e=()=>super.createIndex,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,r=this;return e().call(r,r.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,r=this;return e().call(r,r.vectorBucketName,t)}index(t){return new SM(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},SM=class extends xM{constructor(t,e,r,n,s){super(t,e,s),this.vectorBucketName=r,this.indexName=n}async putVectors(t){var e=()=>super.putVectors,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(t){var e=()=>super.getVectors,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,r=this;return e().call(r,Q(Q({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},_M=class extends dM{constructor(t,e={},r,n){super(t,e,r,n)}from(t){return new uM(this.url,this.headers,t,this.fetch)}get vectors(){return new bM(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new hM(this.url+"/iceberg",this.headers,this.fetch)}};const z1="2.91.0",ei=30*1e3,Xh=3,fd=Xh*ei,CM="http://localhost:9999",jM="supabase.auth.token",TM={"X-Client-Info":`gotrue-js/${z1}`},ef="X-Supabase-Api-Version",H1={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},EM=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,NM=10*60*1e3;
1051class yo extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function V(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class AM extends yo{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function PM(t){return V(t)&&t.name==="AuthApiError"}class cs extends yo{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class tn extends yo{constructor(e,r,n,s){super(e,n,s),this.name=r,this.status=n}}class Tt extends tn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function RM(t){return V(t)&&t.name==="AuthSessionMissingError"}class Ks extends tn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class pl extends tn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ml extends tn{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function OM(t){return V(t)&&t.name==="AuthImplicitGrantRedirectError"}class Hy extends tn{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class IM extends tn{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 tf extends tn{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function pd(t){return V(t)&&t.name==="AuthRetryableFetchError"}class Wy extends tn{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class rf extends tn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const kc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Vy=` 	
1052\r=`.split(""),MM=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Vy.length;e+=1)t[Vy[e].charCodeAt(0)]=-2;for(let e=0;e<kc.length;e+=1)t[kc[e].charCodeAt(0)]=e;return t})();function qy(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(kc[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(kc[n]),e.queuedBits-=6}}function W1(t,e,r){const n=MM[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Ky(t){const e=[],r=a=>{e.push(String.fromCodePoint(a))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=a=>{$M(a,n,r)};for(let a=0;a<t.length;a+=1)W1(t.charCodeAt(a),s,i);return e.join("")}function LM(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function DM(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}LM(n,e)}}function $M(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function ji(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};for(let s=0;s<t.length;
1052s+=1)W1(t.charCodeAt(s),r,n);return new Uint8Array(e)}function UM(t){const e=[];return DM(t,r=>e.push(r)),new Uint8Array(e)}function fs(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};return t.forEach(s=>qy(s,r,n)),qy(null,r,n),e.join("")}function FM(t){return Math.round(Date.now()/1e3)+t}function BM(){return Symbol("auth-callback")}const rt=()=>typeof window<"u"&&typeof document<"u",ns={tested:!1,writable:!1},V1=()=>{if(!rt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ns.tested)return ns.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),ns.tested=!0,ns.writable=!0}catch{ns.tested=!0,ns.writable=!1}return ns.writable};function zM(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{e[s]=n}),e}const q1=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),HM=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",ti=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},ss=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},tt=async(t,e)=>{await t.removeItem(e)};class lu{constructor(){this.promise=new lu.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}lu.promiseConstructor=Promise;function md(t){const e=t.split(".");if(e.length!==3)throw new rf("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!EM.test(e[n]))throw new rf("JWT not in base64url format");return{header:JSON.parse(Ky(e[0])),payload:JSON.parse(Ky(e[1])),signature:ji(e[2]),raw:{header:e[0],payload:e[1]}}}async function WM(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function VM(t,e){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const a=await t(i);if(!e(i,null,a)){n(a);return}}catch(a){if(!e(i,a)){s(a);return}}})()})}function qM(t){return("0"+t.toString(16)).substr(-2)}function KM(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(e),Array.from(e,qM).join("")}async function GM(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function JM(t){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."),t;const r=await GM(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Gs(t,e,r=!1){const n=KM();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await ti(t,`${e}-code-verifier`,s);const i=await JM(n);return[i,n===i?"plain":"s256"]}const ZM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function QM(t){const e=t.headers.get(ef);if(!e||!e.match(ZM))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function YM(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function XM(t){switch(t){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 e4=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Js(t){if(!e4.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function gd(){const t={};return new Proxy(t,{get:(e,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:(e,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:(e,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 t4(t,e){return new Proxy(t,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;
1052if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!e.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."),e.value=!0),Reflect.get(r,n,s)}})}function Gy(t){return JSON.parse(JSON.stringify(t))}const os=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),r4=[502,503,504];async function Jy(t){var e;if(!HM(t))throw new tf(os(t),0);if(r4.includes(t.status))throw new tf(os(t),t.status);let r;try{r=await t.json()}catch(i){throw new cs(os(i),i)}let n;const s=QM(t);if(s&&s.getTime()>=H1["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 Wy(os(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new Tt}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((i,a)=>i&&typeof a=="string",!0))throw new Wy(os(r),t.status,r.weak_password.reasons);throw new AM(os(r),t.status||500,n)}const n4=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function Z(t,e,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[ef]||(i[ef]=H1["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const a=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(a.redirect_to=n.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",c=await s4(t,e,r+l,{headers:i,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 s4(t,e,r,n,s,i){const a=n4(e,n,s,i);let l;try{l=await t(r,Object.assign({},a))}catch(c){throw console.error(c),new tf(os(c),0)}if(l.ok||await Jy(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await Jy(c)}}function sr(t){var e;let r=null;o4(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=FM(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function Zy(t){const e=sr(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function vn(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function i4(t){return{data:t,error:null}}function a4(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=t,a=ta(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},c=Object.assign({},a);return{data:{properties:l,user:c},error:null}}function Qy(t){return t}function o4(t){return t.access_token&&t.refresh_token&&t.expires_in}const yd=["global","local","others"];class l4{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=q1(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
vendor: 4,751 bytes, line 1052
1052async signOut(e,r=yd[0]){if(yd.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yd.join(", ")}`);try{return await Z(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(V(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await Z(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:vn})}catch(n){if(V(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=ta(e,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await Z(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:a4,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(V(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await Z(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:vn})}catch(r){if(V(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await Z(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Qy});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(V(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Js(e);try{return await Z(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:vn})}catch(r){if(V(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Js(e);try{return await Z(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:vn})}catch(n){if(V(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Js(e);try{return await Z(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:vn})}catch(n){if(V(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Js(e.userId);try{const{data:r,error:n}=await Z(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(V(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Js(e.userId),Js(e.id);try{return{data:await Z(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(V(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await Z(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Qy});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(V(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await Z(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(V(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await Z(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(V(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await Z(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(V(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await Z(this.fetch,"DELET
1052E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(V(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await Z(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(V(r))return{data:null,error:r};throw r}}}function Yy(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const Zs={debug:!!(globalThis&&V1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class K1 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class c4 extends K1{}async function u4(t,e,r){Zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Zs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await r()}finally{Zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new c4(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Zs.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function d4(){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 G1(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function h4(t){return parseInt(t,16)}function f4(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function p4(t){var e;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:a,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:p}=t;{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(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
1053`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const f=G1(t.address),w=d?`${d}://${n}`:n,g=t.statement?`${t.statement}
1054`:"",b=`${w} wants you to sign in with your Ethereum account:
1055${f}
1056
1057${g}`;let y=`URI: ${h}
1058Version: ${p}
1059Chain ID: ${r}${a?`
1060Nonce: ${a}`:""}
1061Issued At: ${i.toISOString()}`;if(s&&(y+=`
1062Expiration Time: ${s.toISOString()}`),l&&(y+=`
1063Not Before: ${l.toISOString()}`),c&&(y+=`
1064Request ID: ${c}`),u){let m=`
1065Resources:`;for(const v of u){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);m+=`
1066- ${v}`}y+=m}return`${b}
1067${y}`}
1067class We extends Error{constructor({message:e,code:r,cause:n,name:s}){var i;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class Sc extends We{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function m4({error:t,options:e}){var r,n,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new We({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new We({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new We({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new We({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new We({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new We({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new We({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new We({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(J1(a)){if(i.rp.id!==a)return new We({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new We({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new We({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new We({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new We({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function g4({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new We({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new We({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(J1(n)){if(r.rpId!==n)return new We({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new We({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new We({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new We({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class y4{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const v4=new y4;function x4(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,s=ta(t,["challenge","user","excludeCredentials"]),i=ji(e).buffer,a=Object.assign(Object.assign({},r),{id:ji(r.id).buffer}),l=Object.assign(Object.assign({}
1067,s),{challenge:i,user:a});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:ji(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function w4(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=ta(t,["challenge","allowCredentials"]),s=ji(e).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let a=0;a<r.length;a++){const l=r[a];i.allowCredentials[a]=Object.assign(Object.assign({},l),{id:ji(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function b4(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:fs(new Uint8Array(t.response.attestationObject)),clientDataJSON:fs(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function k4(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:fs(new Uint8Array(s.authenticatorData)),clientDataJSON:fs(new Uint8Array(s.clientDataJSON)),signature:fs(new Uint8Array(s.signature)),userHandle:s.userHandle?fs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function J1(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Xy(){var t,e;return!!(rt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function S4(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Sc("Browser returned unexpected credential type",e)}:{data:null,error:new Sc("Empty credential response",e)}}catch(e){return{data:null,error:m4({error:e,options:t})}}}async function _4(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Sc("Browser returned unexpected credential type",e)}:{data:null,error:new Sc("Empty credential response",e)}}catch(e){return{data:null,error:g4({error:e,options:t})}}}const C4={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},j4={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function _c(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of t)if(s)for(const i in s){const a=s[i];if(a!==void 0)if(Array.isArray(a))n[i]=a;else if(r(a))n[i]=a;else if(e(a)){const l=n[i];e(l)?n[i]=_c(l,a):n[i]=_c(a)}else n[i]=a}return n}function T4(t,e){return _c(C4,t,e||{})}function E4(t,e){return _c(j4,t,e||{})}class N4{constructor(e){this.client=e,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(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:s},i){try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!a)return{data:null,error:l};const c=s??v4.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}
1067switch(a.webauthn.type){case"create":{const u=T4(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await S4({publicKey:u,signal:c});return d?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=E4(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await _4(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return V(a)?{data:null,error:a}:{data:null,error:new cs("Unexpected error in challenge",a)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new yo("rpId is required for WebAuthn authentication")};try{if(!Xy())return{data:null,error:new cs("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!a)return{data:null,error:l};const{webauthn:c}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(a){return V(a)?{data:null,error:a}:{data:null,error:new cs("Unexpected error in authenticate",a)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new yo("rpId is required for WebAuthn registration")};try{if(!Xy())return{data:null,error:new cs("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===e&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return c?this._verify({factorId:a.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(a){return V(a)?{data:null,error:a}:{data:null,error:new cs("Unexpected error in register",a)}}}}d4();const A4={url:CM,storageKey:jM,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:TM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function ev(t,e,r){return await r()}const Qs={};class vo{get jwks(){var e,r;return(r=(e=Qs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Qs[this.storageKey]=Object.assign(Object.assign({},Qs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Qs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Qs[this.storageKey]=Object.assign(Object.assign({},Qs[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},A4),e);if(this.storageKey=i.storageKey,this.instanceID=(r=vo.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,vo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&rt()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new l4({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=q1(i.fetch),this.lock=i.lock||ev,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&rt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=u4:this.lock=ev,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 N4(this)}
1067,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:V1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Yy(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Yy(this.memoryStorage)),rt()&&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),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${z1}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),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 e;try{let r={},n="none";if(rt()&&(r=zM(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),rt()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),OM(i)){const c=(e=i.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:a,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return V(r)?this._returnResult({error:r}):this._returnResult({error:new cs("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,s;try{const i=await Z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:sr}),{data:a,error:l}=i;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(V(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var r,n,s;try{let i;if("email"in e){const{email:d,password:h,options:p}=e;let f=null,w=null;this.flowType==="pkce"&&([f,w]=await Gs(this.storage,this.storageKey)),i=await Z(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:w},xform:sr})}else if("phone"in e){const{phone:d,password:h,options:p}=e;i=await Z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:sr})}else throw new pl("You must provide either an email or phone number and a password");const{data:a,error:l}=i;if(l||!a)return await tt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:a,options:l}=e;r=await Z(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Zy})}else if("phone"in e){const{phone:i,password:a,options:l}=e;r=await Z(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Zy})}else throw new pl("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new Ks;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(V(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,s,i,a,l,c,u,d,h,p;let f,w;if("message"in e)f=e.message,w=e.signature;else{const{chain:g,wallet:b,statement:y,options:m}=e;let v;if(rt())if(typeof b=="object")v=b;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")v=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=b}const k=new URL((r=m==null?void 0:m.url)!==null&&r!==void 0?r:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=G1(S[0]);let _=(n=m==null?void 0:m.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!_){const A=await v.request({method:"eth_chainId"});_=h4(A)}const j={domain:k.host,address:C,statement:y,uri:k.href,version:"1",chainId:_,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(a=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=p4(j),w=await v.request({method:"personal_sign",params:[f4(f),C]})}try{const{data:g,error:b}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:w}
1067,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:sr});if(b)throw b;if(!g||!g.session||!g.user){const y=new Ks;return this._returnResult({data:{user:null,session:null},error:y})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:b})}catch(g){if(V(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(e){var r,n,s,i,a,l,c,u,d,h,p,f;let w,g;if("message"in e)w=e.message,g=e.signature;else{const{chain:b,wallet:y,statement:m,options:v}=e;let k;if(rt())if(typeof y=="object")k=y;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))k=C.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"||!(v!=null&&v.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=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href);
1067if("signIn"in k&&k.signIn){const C=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let _;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")_=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)_=C;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)w=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),g=_.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");w=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=v==null?void 0:v.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((h=(d=v==null?void 0:v.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...v.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
1068`);const C=await k.signMessage(new TextEncoder().encode(w),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=C}}try{const{data:b,error:y}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:fs(g)},!((p=e.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:sr});if(y)throw y;if(!b||!b.session||!b.user){const m=new Ks;return this._returnResult({data:{user:null,session:null},error:m})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:y})}catch(b){if(V(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(e){const r=await ss(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new IM;const{data:i,error:a}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:sr});if(await tt(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!i||!i.session||!i.user){const l=new Ks;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),setTimeout(async()=>{await this._notifyAllSubscribers("SIGNED_IN",i.session)},0)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:a})}catch(i){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:s,access_token:i,nonce:a}=e,l=await Z(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:sr}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Ks;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(V(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,s,i,a;try{if("email"in e){const{email:l,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Gs(this.storage,this.storageKey));const{error:h}=await Z(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,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 e){const{phone:l,options:c}=e,{data:u,error:d}=await Z(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(a=c==null?void 0:c.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new pl("You must provide either an email or phone number.")}catch(l){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(e){var r,n;try{let s,i;"options"in e&&(s=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:a,error:l}=await Z(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:sr});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const c=a.session,u=a.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(V(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var r,n,s,i,a;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Gs(this.storage,this.storageKey));const u=await Z(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:i4});return!((i=u.data)===null||i===void 0)&&i.url&&rt()&&!(!((a=e.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new Tt;const{error:s}=await Z(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(V(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:s,options:i}=e,{error:a}=await Z(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in e){const{phone:n,type:s,options:i}=e,{data:a,error:l}=await Z(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:l})}throw new pl("You must provide either an email or phone number and a type")}catch(r){if(V(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(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(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 e=null;const r=await ss(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
1068id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<fd:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const a=await ss(this.userStorage,this.storageKey+"-user");a!=null&&a.user?e.user=a.user:e.user=gd()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};e.user=t4(e.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await Z(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:vn}):await this._useSession(async r=>{var n,s,i;const{data:a,error:l}=r;if(l)throw l;return!(!((n=a.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Tt}:await Z(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=a.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:vn})})}catch(r){if(V(r))return RM(r)&&(await this._removeSession(),await tt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new Tt;const a=s.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await Gs(this.storage,this.storageKey));const{data:u,error:d}=await Z(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:a.access_token,xform:vn});if(d)throw d;return a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(n){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Tt;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:a}=md(e.access_token);if(a.exp&&(n=a.exp,s=n<=r),s){const{data:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)throw c;i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(V(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:a,error:l}=r;if(l)throw l;e=(n=a.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new Tt;const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(V(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!rt())throw new ml("No browser detected.");
1068if(e.error||e.error_description||e.error_code)throw new ml(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Hy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ml("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Hy("No code detected.");const{data:m,error:v}=await this._exchangeCodeForSession(e.code);if(v)throw v;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:a,expires_in:l,expires_at:c,token_type:u}=e;if(!i||!l||!a||!u)throw new ml("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let p=d+h;c&&(p=parseInt(c));const f=p-d;f*1e3<=ei&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const w=p-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,p,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,p,d);const{data:g,error:b}=await this._getUser(i);if(b)throw b;const y={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:p,refresh_token:a,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:y,redirectType:e.type},error:null})}catch(n){if(V(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await ss(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({error:i});const a=(n=s.session)===null||n===void 0?void 0:n.access_token;if(a){const{error:l}=await this.admin.signOut(a,e);if(l&&!(PM(l)&&(l.status===404||l.status===401||l.status===403)))return this._returnResult({error:l})}return e!=="others"&&(await this._removeSession(),await tt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=BM(),n={id:r,callback:e,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(e){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:a}=r;if(a)throw a;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Gs(this.storage,this.storageKey,!0));try{return await Z(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var a,l,c,u,d;const{data:h,error:p}=i;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(a=e.options)===null||a===void 0?void 0:a.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await Z(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(s)throw s;return rt()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:e.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(V(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:a,provider:l,token:c,access_token:u,nonce:d}=e,h=await Z(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sr}),{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 Ks}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await tt(this.storage,`${this.storageKey}-code-verifier`),V(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:a}=r;if(a)throw a;
1068return await Z(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await VM(async s=>(s>0&&await WM(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await Z(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:sr})),(s,i)=>{const a=200*Math.pow(2,s);return i&&pd(i)&&Date.now()+a-n<ei})}catch(n){if(this._debug(r,"error",n),V(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),rt()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await ss(this.storage,this.storageKey);if(s&&this.userStorage){let a=await ss(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:s.user},await ti(this.userStorage,this.storageKey+"-user",a)),s.user=(e=a==null?void 0:a.user)!==null&&e!==void 0?e:gd()}else if(s&&!s.user&&!s.user){const a=await ss(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(s.user=a.user,await tt(this.storage,this.storageKey+"-user"),await ti(this.storage,this.storageKey,s)):s.user=gd()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<fd;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${fd}
1068s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:a}=await this._callRefreshToken(s.refresh_token);a&&(console.error(a),pd(a)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(s.access_token);!l&&(a!=null&&a.user)?(s.user=a.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(n,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new Tt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new lu;const{data:i,error:a}=await this._refreshAccessToken(e);if(a)throw a;if(!i.session)throw new Tt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),V(i)){const a={data:null,error:i};return pd(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(a),a}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,r,n=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const i=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,r)}catch(c){i.push(c)}});if(await Promise.all(a),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await tt(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await ti(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=Gy(s);await ti(this.storage,this.storageKey,i)}else{const s=Gy(r);await ti(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await tt(this.storage,this.storageKey),await tt(this.storage,this.storageKey+"-code-verifier"),await tt(this.storage,this.storageKey+"-user"),this.userStorage&&await tt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&rt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ei);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);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 e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);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 e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-e)/ei);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ei}ms, refresh threshold is ${Xh} ticks`),s<=Xh&&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(e){if(e.isAcquireTimeout||e instanceof K1)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!rt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
1068await 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(e,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,a]=await Gs(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});s.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await Z(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:c,error:u}=await Z(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?b4(e.webauthn.credential_response):k4(e.webauthn.credential_response)})}:{code:e.code}),{data:l,error:c}=await Z(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:a,headers:this.headers,jwt:(n=s==null?void 0:s.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)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=await Z(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(a.error)return a;const{data:l}=a;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:x4(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:w4(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var e,r;const{data:{session:n},error:s}
1068=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=md(n.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(e=n.user.factors)===null||e===void 0?void 0:e.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await Z(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Tt})})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Tt});const a=await Z(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&rt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Tt});const a=await Z(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&rt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;return n?this._returnResult({data:null,error:n}):r?await Z(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Tt})})}catch(e){if(V(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await Z(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Tt})})}catch(r){if(V(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(l=>l.kid===e);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(l=>l.kid===e),n&&this.jwks_cached_at+NM>s)return n;const{data:i,error:a}=await Z(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(l=>l.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:f,error:w}
1068=await this.getSession();if(w||!f.session)return this._returnResult({data:null,error:w});n=f.session.access_token}const{header:s,payload:i,signature:a,raw:{header:l,payload:c}}=md(n);r!=null&&r.allowExpired||YM(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,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:i,header:s,signature:a},error:null}}const d=XM(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,UM(`${l}.${c}`)))throw new rf("Invalid JWT signature");return{data:{claims:i,header:s,signature:a},error:null}}catch(n){if(V(n))return this._returnResult({data:null,error:n});throw n}}}vo.nextInstanceID={};const P4=vo,R4="2.91.0";let Sa="";typeof Deno<"u"?Sa="deno":typeof document<"u"?Sa="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Sa="react-native":Sa="node";const O4={"X-Client-Info":`supabase-js-${Sa}/${R4}`},I4={headers:O4},M4={schema:"public"},L4={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},D4={};function xo(t){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xo(t)}function $4(t,e){if(xo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function U4(t){var e=$4(t,"string");return xo(e)=="symbol"?e:e+""}function F4(t,e,r){return(e=U4(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tv(Object(r),!0).forEach(function(n){F4(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const B4=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),z4=()=>Headers,H4=(t,e,r)=>{const n=B4(r),s=z4();return async(i,a)=>{var l;const c=(l=await e())!==null&&l!==void 0?l:t;let u=new s(a==null?void 0:a.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(i,Fe(Fe({},a),{},{headers:u}))}};function W4(t){return t.endsWith("/")?t:t+"/"}function V4(t,e){var r,n;const{db:s,auth:i,realtime:a,global:l}=t,{db:c,auth:u,realtime:d,global:h}=e,p={db:Fe(Fe({},c),s),auth:Fe(Fe({},u),i),realtime:Fe(Fe({},d),a),storage:{},global:Fe(Fe(Fe({},h),l),{},{headers:Fe(Fe({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?p.accessToken=t.accessToken:delete p.accessToken,p}function q4(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(W4(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var K4=class extends P4{constructor(t){super(t)}},G4=class{constructor(t,e,r){var n,s;this.supabaseUrl=t,this.supabaseKey=e;const i=q4(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const a=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:M4,realtime:D4,auth:Fe(Fe({},L4),{},{storageKey:a}),global:I4},c=V4(r??{},l);if(this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=H4(e,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Fe({headers:this.headers,accessToken:this._getAccessToken.bind(this)},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 TI(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new _M(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new kI(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,r)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,r;if(t.accessToken)return await t.accessToken();const{data:n}=await t.auth.getSession();return(e=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:a,lock:l,debug:c,throwOnError:u},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new K4({url:this.authUrl.href,headers:Fe(Fe({},p),d),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:s,flowType:a,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new WI(this.realtimeUrl.href,Fe(Fe({},t),{},{params:Fe(Fe({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const J4=(t,e,r)=>new G4(t,e,r);function Z4(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const r=e.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}Z4()&&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
1068ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function Q4(){var b,y;if(typeof window>"u")return;const t=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(m=>t===m||t.endsWith("."+m)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((b=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((y=t.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:y[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const a=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),l=a?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=c&&l.test(c)?[c]:a?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,p=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(m,v,k)=>new Promise(S=>{const C=p();let _=!1,j;const A=M=>{_||(_=!0,clearTimeout(j),window.removeEventListener("message",R),S(M))},R=M=>{if(u.indexOf(M.origin)<0)return;const J=M.data;J&&J.type===d&&J.requestId===C&&A(J)};window.addEventListener("message",R);const z={type:m,requestId:C,projectId:s,key:v};k!==void 0&&(z.value=k);for(const M of u)window.parent.postMessage(z,M);j=setTimeout(()=>A(null),h)});let w=!0;const g=250;return{getItem:async m=>{let v=await f("lovable-preview-auth:get",m);return!v&&w&&(await new Promise(k=>setTimeout(k,g)),v=await f("lovable-preview-auth:get",m)),w=!1,v&&v.ok&&typeof v.value=="string"?v.value===""?(localStorage.removeItem(m),null):v.value:localStorage.getItem(m)},setItem:(m,v)=>(localStorage.setItem(m,v),f("lovable-preview-auth:set",m,v).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(m)===v&&(k.value===""?localStorage.removeItem(m):localStorage.setItem(m,k.value))})),removeItem:m=>(localStorage.removeItem(m),f("lovable-preview-auth:remove",m).then(()=>{}))}}const Y4="https://yhfezopchmdlzymzppal.supabase.co",X4="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InloZmV6b3BjaG1kbHp5bXpwcGFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg5NDM2OTEsImV4cCI6MjA4NDUxOTY5MX0.cE-Ot07ofjK2ABZuCCmd7MtO64GR8gt8LcJAI1UupE0",Hr=J4(Y4,X4,{auth:{storage:Q4(),persistSession:!0,autoRefreshToken:!0}}),eL=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],tL=["Hospital System","Pharmacy","Diagnostic Lab","Cell Gene Therapy","Other"],rL=["On Demand","Routed","Both"],nL=Nb({firstName:Bt().trim().min(1,"First name is required").max(50,"First name must be less than 50 characters"),lastName:Bt().trim().min(1,"Last name is required").max(50,"Last name must be less than 50 characters"),email:Bt().trim().email("Please enter a valid email address").max(100,"Email must be less than 100 characters"),company:Bt().trim().min(1,"Company name is required").max(100,"Company name must be less than 100 characters"),phone:Bt().trim().min(1,"Phone number is required").max(20,"Phone number must be less than 20 characters"),city:Bt().trim().max(100,"City must be less than 100 characters").optional(),state:Bt().optional(),industry:Bt().optional(),servicesRequired:Bt().optional(),description:Bt().trim().max(2e3,"Description must be less than 2000 characters").optional()}),sL=["gmail.com","googlemail.com","yahoo.com","yahoo.co.uk","yahoo.ca","hotmail.com","outlook.com","live.com","msn.com","aol.com","icloud.com","me.com","mac.com","mail.com","protonmail.com","proton.me","zoho.com","yandex.com","gmx.com","gmx.us","comcast.net","verizon.net","att.net","sbcglobal.net","bell.net","shaw.ca","rogers.com","telus.net","qq.com","163.com","126.com"],nf=t=>{const e=t.lastIndexOf("@");return e>=0?t.slice(e+1).toLowerCase().trim():""},iL=t=>{const e=nf(t);return sL.includes(e)},aL=()=>{const{toast:t}
1068=Eo(),[e,r]=x.useState(!1),[n,s]=x.useState({}),[i,a]=x.useState(!1),[l,c]=x.useState(""),[u,d]=x.useState({firstName:"",lastName:"",email:"",company:"",phone:"",city:"",state:"",industry:"",servicesRequired:"",description:""}),h=()=>{try{return nL.parse(u),s({}),!0}catch(w){if(w instanceof Mr){const g={};w.errors.forEach(b=>{b.path[0]&&(g[b.path[0]]=b.message)}),s(g)}return!1}},p=async w=>{var b,y,m,v,k,S,C;if(w.preventDefault(),a(!1),c(""),!h()){t({title:"Please fix the errors",description:"Some required fields are missing or invalid.",variant:"destructive"});return}const g=nf(u.email);if(iL(u.email)){a(!0),c(g),r(!1);return}r(!0);try{const _=[{name:"firstname",value:u.firstName},{name:"lastname",value:u.lastName},{name:"email",value:u.email},{name:"company",value:u.company},{name:"phone",value:u.phone}];u.city&&_.push({name:"city",value:u.city}),u.state&&_.push({name:"state",value:u.state}),u.industry&&_.push({name:"industry",value:u.industry}),u.servicesRequired&&_.push({name:"services_required",value:u.servicesRequired}),u.description&&_.push({name:"message",value:u.description});const{data:j,error:A}=await Hr.functions.invoke("hubspot-form-submit",{body:{fields:_,pageUri:window.location.href,pageName:"Contact Us"}});if(A)throw console.error("Edge function error:",A),new Error(A.message||"Failed to submit form");if(!(j!=null&&j.success)){console.error("HubSpot API error:",j==null?void 0:j.error);const R=((m=(y=(b=j==null?void 0:j.error)==null?void 0:b.errors)==null?void 0:y[0])==null?void 0:m.message)||((v=j==null?void 0:j.error)==null?void 0:v.message)||"",z=((C=(S=(k=j==null?void 0:j.error)==null?void 0:k.errors)==null?void 0:S[0])==null?void 0:C.errorType)||"";if(/email/i.test(R)||/BLOCKED|INVALID_EMAIL|GMAIL|FREE/i.test(`${z} ${R}`)){a(!0),c(nf(u.email)),r(!1);return}throw new Error(R||"Failed to submit form")}t({title:"Message sent!",description:"Thank you for reaching out. Our team will get back to you promptly."}),d({firstName:"",lastName:"",email:"",company:"",phone:"",city:"",state:"",industry:"",servicesRequired:"",description:""}),s({}),a(!1),c("")}catch(_){const j=_ instanceof Error?_.message:"Unknown error";console.error("Form submission error:",j),t({title:"Something went wrong",description:j.length>100?"Please try again or call us directly at 800-652-1147.":j,variant:"destructive"})}finally{r(!1)}},f=(w,g)=>{d(b=>({...b,[w]:g})),n[w]&&s(b=>({...b,[w]:void 0}))};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Contact Medical Couriers | 24/7 Healthcare Logistics Support",description:"Reach our team 24/7 to discuss healthcare logistics. Call 800-652-1147 or send a message.",canonical:"https://medicalcouriers.com/contact"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-40 pb-24 lg:pt-52 lg:pb-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:xI,alt:"Healthcare professional ready to help",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Contact Us"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl",children:"Get in touch with our team to discuss your healthcare logistics needs. We're available 24/7."})]})})]}),o.jsx("section",{className:"py-20 lg:py-32",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 max-w-6xl mx-auto",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-6",children:"Let's start a conversation"}),o.jsx("p",{className:"text-muted-foreground mb-10 leading-relaxed",children:"Whether you're looking to optimize your current logistics operations or need a reliable partner for critical medical deliveries, our team is here to help."}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-xl gradient-hero flex items-center justify-center flex-shrink-0",children:o.jsx(p0,{className:"w-5 h-5 text-primary-foreground"})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Phone"}),o.jsx("p",{className:"text-muted-foreground",children:"800-652-1147"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Available 24/7"})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-xl gradient-hero flex items-center justify-center flex-shrink-0",children:o.jsx(f0,{className:"w-5 h-5 text-primary-foreground"})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Email"}),o.jsx("p",{className:"text-muted-foreground",children:"[email protected]"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"We respond within 24 hours"})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-xl gradient-hero flex items-center justify-center flex-shrink-0",children:o.jsx(Po,{className:"w-5 h-5 text-primary-foreground"})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Headquarters"}),o.jsxs("address",{className:"not-italic text-muted-foreground",children:["1415 21st Street, Suite B",o.jsx("br",{}),"Sacramento, CA 95811"]})]})]})]})]}),o.jsxs("div",{className:"p-8 rounded-2xl bg-secondary/50 border border-border",children:[o.jsx("div",{className:"mb-6 p-4 rounded-lg bg-destructive/10 border border-destructive/20",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx(lc,{className:"w-5 h-5 text-destructive shrink-0 mt-0.5"}),o.jsxs("p",{className:"text-sm text-foreground",children:[o.jsx("strong",{children:"MCI operates as a broker and does not contract with drivers directly."})," ","If you're interested in driving for us, please visit our"," ",o.jsx(he,{to:"/drivers",className:"text-primary font-medium hover:underline",children:"Drivers page"})," ","to apply. Driver inquiries submitted here cannot be processed."]})]})}),i&&o.jsx("div",{className:"mb-6 p-4 rounded-lg bg-destructive/10 border border-destructive/20",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx(lc,{className:"w-5 h-5 text-destructive shrink-0 mt-0.5"}),o.jsxs("div",{className:"text-sm text-foreground",children:[o.jsx("p",{className:"font-semibold mb-1",children:"Please use a business email address"}),o.jsx("p",{className:"mb-2",children:"We cannot accept inquiries from personal email accounts such as Gmail, Yahoo, Outlook, or AOL. Submissions must come from a business, non-personal email address to be processed."}),l&&o.jsxs("p",{className:"text-muted-foreground",children:["Detected domain: ",o.jsx("span",{className:"font-medium text-foreground",children:l})]}),o.jsxs("p",{className:"mt-2",children:["If you are interested in driving for us, please visit our"," ",o.jsx(he,{to:"/drivers",className:"text-primary font-medium hover:underline",children:"Drivers page"}
1068)," ","instead. Driver inquiries submitted here cannot be processed."]})]})]})}),o.jsx("h3",{className:"text-xl font-semibold text-foreground mb-6",children:"Send us a message"}),o.jsxs("form",{onSubmit:p,className:"space-y-5",children:[o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"First Name *"}),o.jsx(Je,{placeholder:"John",value:u.firstName,onChange:w=>f("firstName",w.target.value),className:n.firstName?"border-destructive":""}),n.firstName&&o.jsx("p",{className:"text-sm text-destructive mt-1",children:n.firstName})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Last Name *"}),o.jsx(Je,{placeholder:"Doe",value:u.lastName,onChange:w=>f("lastName",w.target.value),className:n.lastName?"border-destructive":""}),n.lastName&&o.jsx("p",{className:"text-sm text-destructive mt-1",children:n.lastName})]})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email *"}),o.jsx(Je,{type:"email",placeholder:"[email protected]",value:u.email,onChange:w=>f("email",w.target.value),className:n.email?"border-destructive":""}),n.email&&o.jsx("p",{className:"text-sm text-destructive mt-1",children:n.email})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Phone *"}),o.jsx(Je,{type:"tel",placeholder:"(555) 123-4567",value:u.phone,onChange:w=>f("phone",w.target.value),className:n.phone?"border-destructive":""}),n.phone&&o.jsx("p",{className:"text-sm text-destructive mt-1",children:n.phone})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Company *"}),o.jsx(Je,{placeholder:"Your organization",value:u.company,onChange:w=>f("company",w.target.value),className:n.company?"border-destructive":""}),n.company&&o.jsx("p",{className:"text-sm text-destructive mt-1",children:n.company})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"City"}),o.jsx(Je,{placeholder:"City",value:u.city,onChange:w=>f("city",w.target.value)})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"State/Region"}),o.jsxs(Ll,{value:u.state,onValueChange:w=>f("state",w),children:[o.jsx(Ia,{children:o.jsx(Dl,{placeholder:"Select state"})}),o.jsx(Ma,{children:eL.map(w=>o.jsx(La,{value:w,children:w},w))})]})]})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Industry"}),o.jsxs(Ll,{value:u.industry,onValueChange:w=>f("industry",w),children:[o.jsx(Ia,{children:o.jsx(Dl,{placeholder:"Select industry"})}),o.jsx(Ma,{children:tL.map(w=>o.jsx(La,{value:w,children:w},w))})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Services Required"}),o.jsxs(Ll,{value:u.servicesRequired,onValueChange:w=>f("servicesRequired",w),children:[o.jsx(Ia,{children:o.jsx(Dl,{placeholder:"Select service"})}),o.jsx(Ma,{children:rL.map(w=>o.jsx(La,{value:w,children:w},w))})]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),o.jsx(Mp,{placeholder:"Tell us about your logistics needs...",rows:5,value:u.description,onChange:w=>f("description",w.target.value)})]}),o.jsx(Ce,{type:"submit",variant:"pill",size:"lg",className:"w-full",disabled:e,children:e?o.jsxs(o.Fragment,{children:[o.jsx(rT,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Submit Inquiry"})]})]})]})})})]}),o.jsx(Yt,{})]})};var cu="Checkbox",[oL,i5]=Gn(cu),[lL,zp]=oL(cu);function cL(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:s,disabled:i,form:a,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=t,[p,f]=Es({prop:r,defaultProp:s??!1,onChange:c,caller:cu}
vendor: 4,214 bytes, line 1068
1068),[w,g]=x.useState(null),[b,y]=x.useState(null),m=x.useRef(!1),v=w?!!a||!!w.closest("form"):!0,k={checked:p,disabled:i,setChecked:f,control:w,setControl:g,name:l,form:a,value:d,hasConsumerStoppedPropagationRef:m,required:u,defaultChecked:$n(s)?!1:s,isFormControl:v,bubbleInput:b,setBubbleInput:y};return o.jsx(lL,{scope:e,...k,children:uL(h)?h(k):n})}var Z1="CheckboxTrigger",Q1=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},s)=>{const{control:i,value:a,disabled:l,checked:c,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:w}=zp(Z1,t),g=je(s,d),b=x.useRef(c);return x.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const m=()=>h(b.current);return y.addEventListener("reset",m),()=>y.removeEventListener("reset",m)}},[i,h]),o.jsx(ue.button,{type:"button",role:"checkbox","aria-checked":$n(c)?"mixed":c,"aria-required":u,"data-state":rk(c),"data-disabled":l?"":void 0,disabled:l,value:a,...n,ref:g,onKeyDown:oe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:oe(r,y=>{h(m=>$n(m)?!0:!m),w&&f&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})})});Q1.displayName=Z1;var Hp=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:u,form:d,...h}=t;return o.jsx(cL,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:a,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:p})=>o.jsxs(o.Fragment,{children:[o.jsx(Q1,{...h,ref:e,__scopeCheckbox:r}),p&&o.jsx(tk,{__scopeCheckbox:r})]})})});Hp.displayName=cu;var Y1="CheckboxIndicator",X1=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=zp(Y1,r);return o.jsx(No,{present:n||$n(i.checked)||i.checked===!0,children:o.jsx(ue.span,{"data-state":rk(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});X1.displayName=Y1;var ek="CheckboxBubbleInput",tk=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:a,required:l,disabled:c,name:u,value:d,form:h,bubbleInput:p,setBubbleInput:f}=zp(ek,t),w=je(r,f),g=Bb(i),b=B0(n);x.useEffect(()=>{const m=p;if(!m)return;const v=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(v,"checked").set,C=!s.current;if(g!==i&&S){const _=new Event("click",{bubbles:C});m.indeterminate=$n(i),S.call(m,$n(i)?!1:i),m.dispatchEvent(_)}},[p,g,i,s]);const y=x.useRef($n(i)?!1:i);return o.jsx(ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:l,disabled:c,name:u,value:d,form:h,...e,tabIndex:-1,ref:w,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});tk.displayName=ek;function uL(t){return typeof t=="function"}function $n(t){return t==="indeterminate"}function rk(t){return $n(t)?"indeterminate":t?"checked":"unchecked"}const sf=x.forwardRef(({className:t,...e},r)=>o.jsx(Hp,{ref:r,className:pe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-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",t),...e,children:o.jsx(X1,{className:pe("flex items-center justify-center text-current"),children:o.jsx(h0,{className:"h-4 w-4"})})}));sf.displayName=Hp.displayName;const dL="/assets/courier-handoff-BkhnfW7-.png",hL="/assets/network-partner-CpNwdEIO.png",fL="/assets/drivers-hero-DjBwJ7dx.png",pL=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],mL=()=>{const{toast:t}
1068=Eo(),[e,r]=x.useState({firstName:"",lastName:"",email:"",phone:"",state:"",companyName:"",vehicleCount:"",territory:"",insuranceLevel:"",additionalInfo:"",agreeToContact:!1,agreeToStore:!1}),[n,s]=x.useState(!1),i=async a=>{a.preventDefault();const l=a.currentTarget.elements.namedItem("website");if(l!=null&&l.value)return;if(!e.agreeToStore){t({title:"Consent required",description:"Please agree to allow us to store and process your personal data.",variant:"destructive"});return}const c=e.email.trim(),u=e.phone.trim();if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(c)){t({title:"Check your email",description:"Please enter a valid email address.",variant:"destructive"});return}if(!/^[0-9+() .-]{7,25}$/.test(u)){t({title:"Check your phone number",description:"Use digits only, e.g. (555) 123-4567.",variant:"destructive"});return}s(!0);const d=p=>p.trim()||null,{error:h}=await Hr.from("driver_applications").insert({first_name:e.firstName.trim(),last_name:e.lastName.trim(),email:c,phone:u,state:d(e.state),company_name:d(e.companyName),vehicle_count:d(e.vehicleCount),territory:d(e.territory),insurance_level:d(e.insuranceLevel),additional_info:d(e.additionalInfo),agree_to_contact:e.agreeToContact,agree_to_store:e.agreeToStore});if(s(!1),h){const p=h.message||"";t({title:"Submission failed",description:p.includes("Duplicate")?"We already received your application. Please wait a few minutes before submitting again.":p.includes("Too many")?"We're receiving a high volume of applications. Please try again later.":"Please check your entries and try again.",variant:"destructive"});return}t({title:"Application received!",description:"Thank you for your interest. We will forward your information to our Network Partner in your area."}),r({firstName:"",lastName:"",email:"",phone:"",state:"",companyName:"",vehicleCount:"",territory:"",insuranceLevel:"",additionalInfo:"",agreeToContact:!1,agreeToStore:!1})};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Become a Medical Courier | Driver & Network Partner Opportunities",description:"Join the Medical Courier Alliance - apply to become a certified medical courier or network partner.",canonical:"https://medicalcouriers.com/drivers"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsxs("section",{className:"relative pt-40 pb-24 lg:pt-52 lg:pb-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:fL,alt:"Vehicles parked in a lot representing courier fleet",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 mix-blend-multiply"})]}),o.jsx("div",{className:"container relative mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"Medical Couriers is a broker and doesn't contract drivers directly"}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"Become a Care Agent in the Medical Courier Alliance!"})]})})]}),o.jsx("section",{className:"py-8",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsx("div",{className:"max-w-4xl mx-auto",children:o.jsx("div",{className:"p-4 rounded-lg bg-destructive/10 border border-destructive/20",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx(lc,{className:"w-5 h-5 text-destructive shrink-0 mt-0.5"}),o.jsxs("p",{className:"text-sm text-foreground",children:[o.jsx("strong",{children:"Since MCI operates as a broker, we do not contract with drivers directly."})," We kindly ask that you do not call or email our Dispatch or Sales departments directly."]})]})})})})}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center max-w-6xl mx-auto",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"How to become a Certified Medical Courier (or a 'Care Agent') for the Medical Courier Alliance"}),o.jsx("p",{className:"text-lg text-muted-foreground",children:"Medical Couriers does not contract drivers directly. However, if you'd like to be a driver in the Medical Courier Alliance, simply fill out the form below and we will forward the information to our Network Partner in your area. Couriers for the Medical Courier Alliance (we refer to them as Care Agents) are the backbone of our network and are essential to fulfilling our mission of delivering excellent patient care. "})]}),o.jsx("div",{className:"flex justify-center",children:o.jsx("img",{src:dL,alt:"Medical courier handing package to re
1068cipient",loading:"lazy",className:"max-w-[280px] lg:max-w-[320px] h-auto"})})]})})}),o.jsx("section",{className:"py-16 lg:py-20 gradient-soft",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("blockquote",{className:"text-2xl md:text-3xl lg:text-4xl font-bold italic text-primary mb-4",children:`"I'm handling specimen transport that really matters."`}),o.jsx("p",{className:"text-lg text-muted-foreground italic",children:"—Daniel, Driver"})]})})}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center max-w-6xl mx-auto",children:[o.jsx("div",{className:"order-2 lg:order-1 flex justify-center",children:o.jsx("img",{src:hL,alt:"Network partner delivery vehicle for the Medical Couriers alliance",loading:"lazy",className:"max-w-[280px] lg:max-w-[320px] h-auto"})}),o.jsxs("div",{className:"order-1 lg:order-2",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"What is a Network Partner?"}),o.jsx("p",{className:"text-lg text-muted-foreground",children:"Medical Couriers works with over 50 vetted, medically experienced carriers throughout the United States and beyond! These independently owned entities provide top-notch service for our healthcare clients and form 'The Medical Courier Alliance'. We provide real time visibility to these clients through the use of our proprietary technology. If you'd like to become a Network Partner, simply fill out the form on this page and our team will be in touch if we have any service needs in your area. Network Partners are required to have a business license in their state, meet minimum insurance requirements, and generally have 5+ vehicles and drivers in their fleet."})]})]})})}),o.jsx("section",{className:"py-8",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsx("div",{className:"max-w-2xl mx-auto",children:o.jsx("div",{className:"p-4 rounded-lg bg-destructive/10 border border-destructive/20",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx(lc,{className:"w-5 h-5 text-destructive shrink-0 mt-0.5"}),o.jsxs("p",{className:"text-sm text-foreground",children:[o.jsx("strong",{children:"Since MCI operates as a broker, we do not contract with drivers directly."})," We kindly ask that you do not call or Email our Dispatch or Sales departments directly."]})]})})})})}),o.jsx("section",{className:"py-16 lg:py-24 gradient-soft",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-2xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Apply for network consideration"}),o.jsx("p",{className:"text-lg text-muted-foreground",children:"Fill out the form below and we'll forward your information to our Network Partner in your area."})]}),o.jsx("div",{className:"p-8 rounded-2xl bg-background border border-border shadow-soft",children:o.jsxs("form",{onSubmit:i,className:"space-y-5",children:[o.jsx("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute -left-[9999px] h-0 w-0 opacity-0"}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"First Name*"}),o.jsx(Je,{placeholder:"First name",maxLength:50,value:e.firstName,onChange:a=>r({...e,firstName:a.target.value}),required:!0})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Last Name*"}),o.jsx(Je,{placeholder:"Last name",maxLength:50,value:e.lastName,onChange:a=>r({...e,lastName:a.target.value}),required:!0})]})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email*"}),o.jsx(Je,{type:"email",placeholder:"[email protected]",maxLength:255,value:e.email,onChange:a=>r({...e,email:a.target.value}),required:!0})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Phone Number*"}),o.jsx(Je,{type:"tel",placeholder:"(555) 123-4567",maxLength:25,value:e.phone,onChange:a=>r({...e,phone:a.target.value}),required:!0})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"State"}),o.jsxs(Ll,{value:e.state,onValueChange:a=>r({...e,state:a}),children:[o.jsx(Ia,{children:o.jsx(Dl,{placeholder:"Select your state"})}),o.jsx(Ma,{children:pL.map(a=>o.jsx(La,{value:a,children:a},a))})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Company Name"}),o.jsx(Je,{placeholder:"Your company name",maxLength:100,value:e.companyName,onChange:a=>r({...e,companyName:a.target.value})})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Number of vehicles/drivers"}),o.jsx(Je,{placeholder:"e.g., 5",maxLength:10,value:e.vehicleCount,onChange:a=>r({...e,vehicleCount:a.target.value})})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Territory covered"}),o.jsx(Je,{placeholder:"e.g., Greater Chicago area",maxLength:150,value:e.territory,onChange:a=>r({...e,territory:a.target.value})})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Level of insurance"}),o.jsx(Je,{placeholder:"Your insurance coverage level",maxLength:100,value:e.insuranceLevel,onChange:a=>r({...e,insuranceLevel:a.target.value})})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Additional Information"}),o.jsx(Mp,{placeholder:"Provide any extra details we should know...",maxLength:1e3,rows:4,value:e.additionalInfo,onChange:a=>r({...e,additionalInfo:a.target.value})})]}),o.jsxs("div",{className:"space-y-4 pt-4 border-t border-border",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Medical Couriers is committed to protecting and respecting your privacy, and we'll only use your personal information to administer your account and to provide the products and services you requested from us."}),o.jsxs("div",{className:"flex items-start space-x-3",children:[o.jsx(sf,{id:"agreeToContact",checked:e.agreeToContact,onCheckedChange:a=>r({...e,agreeToContact:a})}),o.jsx("label",{htmlFor:"agreeToContact",className:"text-sm text-muted-foreground cursor-pointer",children:"I agree to re
1068ceive other communications from Medical Couriers."})]}),o.jsxs("div",{className:"flex items-start space-x-3",children:[o.jsx(sf,{id:"agreeToStore",checked:e.agreeToStore,onCheckedChange:a=>r({...e,agreeToStore:a})}),o.jsx("label",{htmlFor:"agreeToStore",className:"text-sm text-muted-foreground cursor-pointer",children:"I agree to allow Medical Couriers to store and process my personal data.*"})]})]}),o.jsxs(Ce,{type:"submit",variant:"pill",size:"lg",className:"w-full",disabled:n,children:[n?"Submitting…":"Submit Application",!n&&o.jsx(jt,{className:"w-5 h-5 ml-1"})]})]})})]})})})]}),o.jsx(Yt,{})]})},gL=()=>o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Privacy Policy | Medical Couriers",description:"How Medical Couriers collects, uses, and protects your information across telephony and SMS channels.",canonical:"https://medicalcouriers.com/privacy"}),o.jsx(Qt,{}),o.jsx("main",{className:"pt-32 pb-16 lg:pt-40 lg:pb-20",children:o.jsxs("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:[o.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-8",children:"Privacy Policy"}),o.jsxs("div",{className:"prose prose-lg max-w-none text-muted-foreground space-y-6",children:[o.jsxs("p",{className:"text-sm text-muted-foreground",children:[o.jsx("strong",{className:"text-foreground",children:"Effective Date:"})," 10/01/2025"]}),o.jsx("p",{children:"At Medical Couriers, Inc., we are committed to protecting your privacy and ensuring transparency in how we use your information across all telephony channels, including SMS text messaging, voice calls, and related services."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Information We Collect"}),o.jsx("p",{children:"When you interact with us via telephone, SMS, or other telephony-enabled services, we may collect:"}),o.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[o.jsx("li",{children:"Your phone number and contact details."}),o.jsx("li",{children:"Message content, call details, and communication preferences."}),o.jsx("li",{children:"Consent records (e.g., opt-ins for SMS communications)."}),o.jsx("li",{children:"Technical information (e.g., delivery reports, carrier information, device type)."})]}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"How We Use Your Information"}),o.jsx("p",{children:"We use this information to:"}),o.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[o.jsx("li",{children:"Deliver services, updates, and account-related communications."}),o.jsx("li",{children:"Provide reminders, confirmations, and alerts relevant to our services."}),o.jsx("li",{children:"Enhance customer support and improve our communication systems."}),o.jsx("li",{children:"Comply with applicable legal and regulatory requirements."})]}),o.jsx("p",{children:"We will never sell your phone number or telephony information to third parties."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Data Security"}),o.jsx("p",{children:"We use industry-standard safeguards to protect your telephony data from unauthorized access, disclosure, or misuse."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"SMS Terms and Conditions"}),o.jsx("p",{children:'Upon opting in to receive messages, the end user agrees to receive communications from MEDICAL COURIER regarding general updates and customer support. Users can opt out at any time by replying "STOP" or request more information by replying "HELP." Message frequency may vary, and message and data rates may apply. For assistance or inquiries about our SMS service, please reply "HELP" to any SMS message you receive or contact our customer support team at (800) 652-1147.'}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Privacy Assurance"}),o.jsx("p",{children:"No mobile information will be shared with third parties or affiliates for marketing or promotional purposes. Please note that this does not include text messaging originator opt-in data and consent; that information will not be shared with any third parties."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Compliance"}
1068),o.jsx("p",{children:"Our telephony practices comply with applicable regulations, including the Telephone Consumer Protection Act (TCPA), the Cellular Telecommunications Industry Association (CTIA) guidelines, and carrier-specific requirements for SMS (10DLC and similar frameworks)."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Changes to This Statement"}),o.jsx("p",{children:"We may update this Privacy Statement from time to time. Updates will be posted here with a revised effective date."}),o.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:"Contact Us"}),o.jsx("p",{children:"If you have questions about this Privacy Statement or your telephony data, please contact us at:"}),o.jsxs("address",{className:"not-italic",children:[o.jsx("p",{children:"Medical Couriers, Inc."}),o.jsx("p",{children:"1415 21st Suite B"}),o.jsx("p",{children:"Sacramento, CA 95811"}),o.jsx("p",{children:o.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})})]})]})]})}),o.jsx(Yt,{})]}),yL=()=>{const t=Zn();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),o.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[o.jsx(it,{title:"Page Not Found",description:"The page you're looking for doesn't exist. Return to Medical Couriers homepage.",noindex:!0}),o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})};function nk({className:t="",size:e="default"}){const r={small:{width:28,height:28},default:{width:36,height:36},large:{width:48,height:48}},{width:n,height:s}=r[e];return o.jsxs("svg",{width:n,height:s,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[o.jsx("path",{d:"M24 4C19.5 4 15.5 5.5 12.5 8L15 10.5C17.3 8.5 20.5 7 24 7C31.7 7 38 13.3 38 21H35L40 28L45 21H41C41 11.6 33.4 4 24 4Z",fill:"url(#gradient1)"}),o.jsx("path",{d:"M24 44C28.5 44 32.5 42.5 35.5 40L33 37.5C30.7 39.5 27.5 41 24 41C16.3 41 10 34.7 10 27H13L8 20L3 27H7C7 36.4 14.6 44 24 44Z",fill:"url(#gradient2)"}),o.jsx("rect",{x:"20",y:"14",width:"8",height:"20",rx:"2",fill:"hsl(168, 68%, 31%)"}),o.jsx("rect",{x:"14",y:"20",width:"20",height:"8",rx:"2",fill:"hsl(168, 68%, 31%)"}),o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"gradient1",x1:"12",y1:"4",x2:"45",y2:"28",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"hsl(168, 68%, 31%)"}),o.jsx("stop",{offset:"1",stopColor:"hsl(124, 62%, 65%)"})]}),o.jsxs("linearGradient",{id:"gradient2",x1:"3",y1:"20",x2:"36",y2:"44",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"hsl(124, 62%, 65%)"}),o.jsx("stop",{offset:"1",stopColor:"hsl(130, 55%, 80%)"})]})]})]})}const vL=({onLogin:t})=>{const{toast:e}=Eo(),[r,n]=x.useState(""),[s,i]=x.useState(""),[a,l]=x.useState(!1),[c,u]=x.useState(!1),d=async h=>{h.preventDefault(),u(!0);const{error:p}=await Hr.auth.signInWithPassword({email:r,password:s});u(!1),p?e({title:"Login failed",description:p.message,variant:"destructive"}):t()};return o.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-sm",children:[o.jsx("div",{className:"flex justify-center mb-8",children:o.jsx(nk,{size:"large",className:"h-10"})}),o.jsxs("div",{className:"bg-card border border-border rounded-2xl p-8 shadow-soft",children:[o.jsx("h1",{className:"text-xl font-bold text-foreground mb-1",children:"Admin Access"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Sign in to view submissions"}),o.jsxs("form",{onSubmit:d,className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:"Email"}),o.jsx(Je,{type:"email",placeholder:"[email protected]",value:r,onChange:h=>n(h.target.value),required:!0})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:"Password"}),o.jsxs("div",{className:"relative",children:[o.jsx(Je,{type:a?"text":"password",placeholder:"••••••••",value:s,onChange:h=>i(h.target.value),required:!0,className:"pr-10"}),o.jsx("button",{type:"button",onClick:()=>l(h=>!h),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:a?o.jsx(Jj,{className:"w-4 h-4"}):o.jsx(mp,{className:"w-4 h-4"})})]})]}
1068),o.jsx(Ce,{type:"submit",className:"w-full",disabled:c,children:c?"Signing in…":"Sign in"})]})]})]})})},xL=()=>{const{toast:t}=Eo(),[e,r]=x.useState(null),[n,s]=x.useState(!1),[i,a]=x.useState("applications"),[l,c]=x.useState([]),[u,d]=x.useState([]),[h,p]=x.useState(!1),[f,w]=x.useState({});x.useEffect(()=>{const{data:{subscription:k}}=Hr.auth.onAuthStateChange((S,C)=>{r(C),s(!0)});return Hr.auth.getSession().then(({data:{session:S}})=>{r(S),s(!0)}),()=>k.unsubscribe()},[]),x.useEffect(()=>{e&&g()},[e]);const g=async()=>{p(!0);const[k,S]=await Promise.all([Hr.from("driver_applications").select("*").order("created_at",{ascending:!1}),Hr.from("voice_messages").select("*").order("created_at",{ascending:!1})]);k.data&&c(k.data),S.data&&d(S.data),p(!1)},b=async(k,S)=>{if(f[S])return f[S];const C=k.replace(/^.*voice-messages\//,""),{data:_}=await Hr.storage.from("voice-messages").createSignedUrl(C,3600);return _!=null&&_.signedUrl?(w(j=>({...j,[S]:_.signedUrl})),_.signedUrl):null},y=async k=>{const S=await b(k.audio_url,k.id);S?new Audio(S).play():t({title:"Could not load audio",variant:"destructive"})},m=async()=>{await Hr.auth.signOut()},v=k=>new Date(k).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"});return n?e?o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Admin — MCI",description:""}),o.jsx("header",{className:"border-b border-border bg-card sticky top-0 z-10",children:o.jsxs("div",{className:"container mx-auto px-4 lg:px-8 h-16 flex items-center justify-between",children:[o.jsx(nk,{size:"default",className:"h-8 w-auto"}),o.jsxs(Ce,{variant:"ghost",size:"sm",onClick:m,className:"gap-2 text-muted-foreground",children:[o.jsx(sT,{className:"w-4 h-4"})," Sign out"]})]})}),o.jsxs("main",{className:"container mx-auto px-4 lg:px-8 py-10",children:[o.jsx("h1",{className:"text-2xl font-bold text-foreground mb-6",children:"Admin Dashboard"}),o.jsxs("div",{className:"flex gap-2 mb-8",children:[o.jsxs("button",{onClick:()=>a("applications"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors ${i==="applications"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:[o.jsx(Kc,{className:"w-4 h-4"}),"Network Applications",o.jsx("span",{className:"ml-1 text-xs bg-background/20 px-1.5 py-0.5 rounded-full",children:l.length})]}),o.jsxs("button",{onClick:()=>a("voice"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors ${i==="voice"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:[o.jsx(Cg,{className:"w-4 h-4"}),"Voice Messages",o.jsx("span",{className:"ml-1 text-xs bg-background/20 px-1.5 py-0.5 rounded-full",children:u.length})]})]}),h?o.jsx("div",{className:"text-muted-foreground text-sm",children:"Loading…"}):i==="applications"?o.jsx("div",{children:l.length===0?o.jsx("div",{className:"text-center py-16 text-muted-foreground",children:"No applications yet."}):o.jsx("div",{className:"space-y-4",children:l.map(k=>o.jsxs("div",{className:"bg-card border border-border rounded-xl p-5",children:[o.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 mb-3",children:[o.jsxs("div",{children:[o.jsxs("p",{className:"font-semibold text-foreground",children:[k.first_name," ",k.last_name]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[k.email," · ",k.phone]})]}),o.jsx("span",{className:"text-xs text-muted-foreground",children:v(k.created_at)})]}),o.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-6 gap-y-1.5 text-sm",children:[k.state&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"State: "}),k.state]}),k.company_name&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Company: "}),k.company_name]}),k.vehicle_count&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Vehicles: "}),k.vehicle_count]}),k.territory&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Territory: "}),k.territory]}),k.insurance_level&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Insurance: "}),k.insurance_level]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Opted in: "}),k.agree_to_contact?"Yes":"No"]})]}),k.additional_info&&o.jsx("p",{className:"mt-3 text-sm text-muted-foreground border-t border-border pt-3",children:k.additional_info})]},k.id))})}):o.jsx("div",{children:u.length===0?o.jsx("div",{className:"text-center py-16 text-muted-foreground",children:"No voice messages yet."}):o.jsx("div",{className:"space-y-4",children:u.map(k=>o.jsxs("div",{className:"bg-card border border-border rounded-xl p-5 flex flex-wrap items-center justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-foreground",children:k.name}),o.jsx("p",{className:"text-sm text-muted-foreground",children:k.email}),o.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[v(k.created_at),k.duration_seconds?` · ${k.duration_seconds}s`:""]})]}),o.jsxs(Ce,{variant:"outline",size:"sm",className:"gap-2",onClick:()=>y(k),children:[o.jsx(Cg,{className:"w-4 h-4"})," Play Recording"]})]},k.id))})})]})]}):o.jsx(vL,{onLogin:()=>{}}):null},af=x.forwardRef(({className:t,...e},r)=>o.jsx("div",{ref:r,className:pe("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));
1068af.displayName="Card";const of=x.forwardRef(({className:t,...e},r)=>o.jsx("div",{ref:r,className:pe("flex flex-col space-y-1.5 p-6",t),...e}));of.displayName="CardHeader";const lf=x.forwardRef(({className:t,...e},r)=>o.jsx("h3",{ref:r,className:pe("text-2xl font-semibold leading-none tracking-tight",t),...e}));lf.displayName="CardTitle";const cf=x.forwardRef(({className:t,...e},r)=>o.jsx("p",{ref:r,className:pe("text-sm text-muted-foreground",t),...e}));cf.displayName="CardDescription";const uf=x.forwardRef(({className:t,...e},r)=>o.jsx("div",{ref:r,className:pe("p-6 pt-0",t),...e}));uf.displayName="CardContent";const wL=x.forwardRef(({className:t,...e},r)=>o.jsx("div",{ref:r,className:pe("flex items-center p-6 pt-0",t),...e}));wL.displayName="CardFooter";const bL="/assets/momentdash-logo-BRS_3lKA.avif",sk="https://portal.e-courier.com",rv=`${sk}/login?tenantId=TdSQQVNHulsgviUBnd3QO`,kL=`${sk}/guest-tracking?tenantId=TdSQQVNHulsgviUBnd3QO`,SL=()=>o.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[o.jsx(it,{title:"Customer Portal",description:"Log in to the Medical Couriers customer portal or track a shipment."}),o.jsx($C,{children:o.jsx("meta",{name:"robots",content:"noindex,nofollow"})}),o.jsx(Qt,{}),o.jsx("main",{className:"flex-1 pt-32 pb-20",children:o.jsxs("div",{className:"max-w-5xl mx-auto px-6 lg:px-8",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground tracking-tight",children:"Customer Portal"}),o.jsx("p",{className:"mt-4 text-lg text-muted-foreground max-w-xl mx-auto",children:"Log in to manage orders or track a shipment. An account is required to view tracking details, which may include protected health information."})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[o.jsxs(af,{className:"border-border",children:[o.jsxs(of,{children:[o.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 text-primary flex items-center justify-center mb-2",children:o.jsx(_g,{className:"w-5 h-5"})}),o.jsx(lf,{className:"text-xl",children:"Account Login"}),o.jsx(cf,{children:"Log in to access orders, history, and to unlock shipment tracking."})]}),o.jsxs(uf,{children:[o.jsxs("form",{method:"get",target:"_blank",rel:"noopener",action:rv,autoComplete:"off",className:"space-y-4",children:[o.jsx("input",{type:"hidden",name:"tenantId",value:"TdSQQVNHulsgviUBnd3QO"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Sign in to the secure customer portal to manage orders, view history, and unlock shipment tracking."}),o.jsxs(Ce,{type:"submit",variant:"pill",size:"lg",className:"w-full",children:[o.jsx(_g,{className:"w-4 h-4 mr-2"}),"Sign in to Customer Portal"]})]}),o.jsx("div",{className:"mt-5 pt-5 border-t border-border flex flex-col gap-2 text-sm",children:o.jsx("a",{href:rv,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground",children:"New user or forgot password? Use the portal"})})]})]}),o.jsxs(af,{className:"border-border",children:[o.jsxs(of,{children:[o.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 text-primary flex items-center justify-center mb-2",children:o.jsx(jg,{className:"w-5 h-5"})}),o.jsx(lf,{className:"text-xl",children:"Track a Shipment"}),o.jsx(cf,{children:"Tracking happens inside the customer portal after sign-in, so shipment details (which can include PHI) stay protected."})]}),o.jsx(uf,{children:o.jsxs("div",{className:"space-y-4",children:[o.jsx("div",{className:"rounded-lg border border-dashed border-border bg-secondary/40 p-4 text-sm text-muted-foreground",children:"Shipment tracking is available inside the customer portal after you sign in. This protects patient information, since shipment details can include PHI."}),o.jsx("a",{href:kL,target:"_blank",rel:"noopener noreferrer",className:"block",children:o.jsxs(Ce,{variant:"pill",size:"lg",className:"w-full",children:[o.jsx(jg,{className:"w-4 h-4 mr-2"}),"Track inside the portal"]})})]})})]})]}),o.jsx("p",{className:"mt-8 text-center text-xs text-muted-foreground max-w-2xl mx-auto",children:"Login and tracking are handled by our secure customer portal. You'll be taken there in a new tab to complete your request."}),o.jsxs("div",{className:"mt-10 pt-8 border-t border-border flex flex-col items-center text-center",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Monitoring customer?"}),o.jsxs("a",{href:"https://momentdash.com/monitoring",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex flex-col items-center gap-3","aria-label":"Sign in to MomentDash",children:[o.jsx("img",{src:bL,alt:"MomentDash monitoring platform logo",loading:"lazy",className:"h-8 w-auto opacity-90 group-hover:opacity-100 transition-opacity"}),o.jsx("span",{className:"text-sm text-primary group-hover:underline",children:"Sign in"})]})]})]})}),o.jsx(Yt,{})]});var uu="Collapsible",[_L,ik]=Gn(uu),[CL,Wp]=_L(uu),ak=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:a,...l}=t,[c,u]=Es({prop:n,defaultProp:s??!1,onChange:a,caller:uu});return o.jsx(CL,{scope:r,disabled:i,contentId:Ro(),open:c,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),children:o.jsx(ue.div,{"data-state":qp(c),"data-disabled":i?"":void 0,...l,ref:e})})});ak.displayName=uu;var ok="CollapsibleTrigger",lk=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=Wp(ok,r);return o.jsx(ue.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":qp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:oe(t.onClick,s.onOpenToggle)})});lk.displayName=ok;var Vp="CollapsibleContent",ck=x.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=Wp(Vp,t.__scopeCollapsible);return o.jsx(No,{present:r||s.open,children:({present:i})=>o.jsx(jL,{...n,ref:e,present:i})})});ck.displayName=Vp;var jL=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,a=Wp(Vp,r),[l,c]=x.useState(n),u=x.useRef(null),d=je(e,u),h=x.useRef(0),p=h.current,f=x.useRef(0),w=f.current,g=a.open||l,b=x.useRef(g),y=x.useRef(void 0);return x.useEffect(()=>{const m=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(m)},[]),et(()=>{const m=u.current;if(m){y.current=y.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const v=m.getBoundingClientRect();h.current=v.height,f.current=v.width,b.current||(m.style.transitionDuration=y.current.transitionDuration,m.style.animationName=y.current.animationName),c(n)}},[a.open,n]),o.jsx(ue.div,{"data-state":qp(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:g&&s})});function qp(t){return t?"open":"closed"}var TL=ak,EL=lk,NL=ck,br="Accordion",AL=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Kp,PL,RL]=lp(br),[du,a5]=Gn(br,[RL,ik]),Gp=ik(),uk=P.forwardRef((t,e)=>{const{type:r,...n}=t,s=n,i=n;return o.jsx(Kp.Provider,{scope:t.__scopeAccordion,children:r==="multiple"?o.jsx(LL,{...i,ref:e}):o.jsx(ML,{...s,ref:e})})});uk.displayName=br;var[dk,OL]=du(br),[hk,IL]=du(br,{collapsible:!1}),ML=P.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:i=!1,...a}=t,[l,c]=Es({prop:r,defaultProp:n??"",onChange:s,caller:br});return o.jsx(dk,{scope:t.__scopeAccordion,value:P.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:P.useCallback(()=>i&&c(""),[i,c]),children:o.jsx(hk,{scope:t.__scopeAccordion,collapsible:i,children:o.jsx(fk,{...a,ref:e})})})}),LL=P.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=t,[a,l]=Es({prop:r,defaultProp:n??[],onChange:s,caller:br}),c=P.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=P.useCallback(d=>l((h=[])=>h.filter(p=>p!==d)),[l]);return o.jsx(dk,{scope:t.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:o.jsx(hk,{scope:t.__scopeAccordion,collapsible:!0,children:o.jsx(fk,{...i,ref:e})})})}),[DL,hu]=du(br),fk=P.forwardRef((t,e)=>{const{__scopeAccordion:r,disabled:n,dir:s,orientation:i="vertical",...a}=t,l=P.useRef(null),c=je(l,e),u=PL(r),h=$b(s)==="ltr",p=oe(t.onKeyDown,f=>{var j;if(!AL.includes(f.key))return;const w=f.target,g=u().filter(A=>{var R;return!((R=A.ref.current)!=null&&R.disabled)}),b=g.findIndex(A=>A.ref.current===w),y=g.length;if(b===-1)return;f.preventDefault();let m=b;const v=0,k=y-1,S=()=>{m=b+1,m>k&&(m=v)},C=()=>{m=b-1,m<v&&(m=k)};switch(f.key){case"Home":m=v;break;case"End":m=k;break;case"ArrowRight":i==="horizontal"&&(h?S():C());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(h?C():S());break;case"ArrowUp":i==="vertical"&&C();break}const _=m%y;(j=g[_].ref.current)==null||j.focus()});return o.jsx(DL,{scope:r,disabled:n,direction:s,orientation:i,children:o.jsx(Kp.Slot,{scope:r,children:o.jsx(ue.div,{...a,"data-orientation":i,ref:c,onKeyDown:n?void 0:p})})})}),Cc="AccordionItem",[$L,Jp]=du(Cc),pk=P.forwardRef((t,e)=>{const{__scopeAccordion:r,value:n,...s}=t,i=hu(Cc,r),a=OL(Cc,r),l=Gp(r),c=Ro(),u=n&&a.value.includes(n)||!1,d=i.disabled||t.disabled;return o.jsx($L,{scope:r,open:u,disabled:d,triggerId:c,children:o.jsx(TL,{"data-orientation":i.orientation,"data-state":wk(u),...l,...s,ref:e,disabled:d,open:u,onOpenChange:h=>{h?a.onItemOpen(n):a.onItemClose(n)}})})});pk.displayName=Cc;var mk="AccordionHeader",gk=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=hu(br,r),i=Jp(mk,r);return o.jsx(ue.h3,{"data-orientation":s.orientation,"data-state":wk(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});gk.displayName=mk;var df="AccordionTrigger",yk=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=hu(br,r),i=Jp(df,r),a=IL(df,r),l=Gp(r);return o.jsx(Kp.ItemSlot,{scope:r,children:o.jsx(EL,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...n,ref:e})})});yk.displayName=df;var vk="AccordionContent",xk=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=hu(br,r),i=Jp(vk,r),a=Gp(r);return o.jsx(NL,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});xk.displayName=vk;function wk(t){return t?"open":"closed"}var UL=uk,FL=pk,BL=gk,bk=yk,kk=xk;const zL=UL,Sk=x.forwardRef(({className:t,...e},r)=>o.jsx(FL,{ref:r,className:pe("border-b",t),...e}));Sk.displayName="AccordionItem";const _k=x.forwardRef(({className:t,children:e,...r},n)=>o.jsx(BL,{className:"flex",children:o.jsxs(bk,{ref:n,className:pe("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[e,o.jsx(pp,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));_k.displayName=bk.displayName;const Ck=x.forwardRef(({className:t,children:e,...r},n)=>o.jsx(kk,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:o.jsx("div",{className:pe("pb-4 pt-0",t),children:e})}));Ck.displayName=kk.displayName;const nv="https://medicalcouriers.com",HL=[{icon:gp,title:"Independent & reference labs",text:"Scheduled and on-demand specimen pickups and deliveries."},{icon:u0,title:"Hospitals & health systems",text:"Transfers between facilities, labs and departments across your network."},{icon:yp,title:"Specialty pharmacy, infusion & biotech",text:"Time-sensitive therapies and materials delivered to infusion sites, clinics and patients."}],WL=[{icon:uT,title:"Lab specimens & samples"},{icon:Uj,title:"Radiopharmaceuticals"},{icon:lT,title:"Infusion therapies"},{icon:qj,title:"Cell & gene therapies"},{icon:Gj,title:"Blood & organ shipments"},{icon:m0,title:"Medical devices"}],VL=[{value:"10M+",label:"Specimens delivered annually"},{value:"99.7%",label:"On-time rate"},{value:"50+",label:"Years experience"}];function sv({id:t,data:e}){return x.useEffect(()=>{const r=document.createElement("script");return r.type="application/ld+json",r.id=t,r.text=JSON.stringify(e),document.head.appendChild(r),()=>r.remove()},[t,e]),null}function qL({state:t}){const e=`${nv}/${t.slug}`,r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.faqs.map(s=>
1068({"@type":"Question",name:s.question,acceptedAnswer:{"@type":"Answer",text:s.answer}}))},n={"@context":"https://schema.org","@type":"Service",serviceType:"Medical courier service",url:e,provider:{"@type":"Organization",name:"Medical Couriers",url:nv},areaServed:{"@type":"State",name:t.name}};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:t.seoTitle,description:t.metaDescription,canonical:e}),o.jsx(sv,{id:`ld-faq-${t.slug}`,data:r}),o.jsx(sv,{id:`ld-service-${t.slug}`,data:n}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsx("section",{className:"relative pt-32 pb-20 lg:pt-40 lg:pb-28 bg-secondary/40 overflow-hidden",children:o.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-3xl",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-8",children:[o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),o.jsx("span",{className:"text-xs font-medium text-primary",children:t.name})]}),o.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-foreground leading-[1.1] tracking-tight mb-6 text-balance",children:t.h1}),t.opening&&o.jsx("p",{className:"text-xl lg:text-2xl text-foreground/90 leading-relaxed mb-6",children:t.opening}),o.jsx("p",{className:"text-lg lg:text-xl text-muted-foreground leading-relaxed mb-10",children:t.intro}),o.jsx("div",{className:"flex flex-wrap items-center gap-4",children:o.jsx(Ce,{variant:"pill",size:"xl",asChild:!0,children:o.jsxs(he,{to:"/contact",children:["Get in Touch",o.jsx(jt,{className:"w-4 h-4 ml-1"})]})})})]})})}),o.jsx("section",{className:"py-20 lg:py-28",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"Who we serve"}),o.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-12 tracking-tight",children:["Healthcare organizations across ",t.name]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:HL.map(({icon:s,title:i,text:a})=>o.jsxs("div",{className:"p-8 rounded-2xl bg-card border border-border shadow-sm",children:[o.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-5",children:o.jsx(s,{className:"w-6 h-6 text-primary"})}),o.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:i}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a})]},i))})]})}),o.jsx("section",{className:"py-20 lg:py-28 bg-secondary/40",children:o.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[o.jsx("p",{className:"text-sm font-medium text-primary mb-3",children:"What we deliver"}),o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-12 tracking-tight",children:"Standard and cold-chain handling"}),o.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:WL.map(({icon:s,title:i})=>o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border flex items-start gap-4",children:[o.jsx(s,{className:"w-6 h-6 text-primary shrink-0 mt-0.5"}),o.jsx("h3",{className:"font-semibold text-foreground",children:i})]},i))})]})}),o.jsx("section",{className:"py-20 lg:py-28",children:o.jsxs("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 text-center",children:[o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-6 tracking-tight",children:"Local coverage, national standards"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:t.coverage}),o.jsxs(he,{to:"/locations",className:"inline-flex items-center gap-1.5 mt-6 text-sm font-medium text-primary hover:underline",children:[o.jsx(Po,{className:"w-4 h-4"}),"Other locations"]})]})}),o.jsx("section",{className:"py-12 lg:py-16 bg-secondary/50",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:VL.map((s,i)=>o.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border shadow-sm text-center",children:[o.jsx("div",{className:`text-3xl lg:text-4xl font-bold mb-1 ${i===0?"text-primary":"text-foreground"}`,children:s.value}),o.jsx("div",{className:"text-sm text-muted-foreground",children:s.label})]},s.label))})})}),o.jsx("section",{className:"py-20 lg:py-28",children:o.jsxs("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:[o.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-8 tracking-tight",children:"Frequently asked questions"}),o.jsx(zL,{type:"single",collapsible:!0,className:"w-full",children:t.faqs.map((s,i)=>o.jsxs(Sk,{value:`faq-${i}`,children:[o.jsx(_k,{className:"text-left text-base font-semibold",children:s.question}),o.jsx(Ck,{className:"text-muted-foreground leading-relaxed",children:s.answer})]},s.question))})]})}),o.jsx(Ip,{})]}),o.jsx(Yt,{})]})}const KL=[["alabama","Alabama",["Huntsville"]],["alaska","Alaska",["Anchorage"]],["arizona","Arizona",["Phoenix"]],["arkansas","Arkansas",["Little Rock"]],["california","California",["Los Angeles","the Bay Area","Sacramento"]],["colorado","Colorado",["Denver"]],["connecticut","Connecticut",["Bridgeport"]],["delaware","Delaware",["Wilmington"]],["florida","Florida",["Jacksonville"]],["georgia","Georgia",["Atlanta"]],["hawaii","Hawaii",["Honolulu"]],["idaho","Idaho",["Boise"]],["illinois","Illinois",["Chicago"]],["indiana","Indiana",["Indianapolis"]],["iowa","Iowa",["Des Moines"]],["kansas","Kansas",["Wichita"]],["kentucky","Kentucky",["Louisville"]],["louisiana","Louisiana",["New Orleans"]],["maine","Maine",["Portland"]],["maryland","Maryland",["Baltimore"]],["massachusetts","Massachusetts",["Boston"]],["michigan","Michigan",["Detroit"]],["minnesota","Minnesota",["Minneapolis"]],["mississippi","Mississippi",["Jackson"]],["missouri","Missouri",["Kansas City"]],["montana","Montana",["Billings"]],["nebraska","Nebraska",["Omaha"]],["nevada","Nevada",["Las Vegas","Reno"]],["new-hampshire","New Hampshire",["Manchester"]],["new-jersey","New Jersey",["Newark"]],["new-mexico","New Mexico",["Albuquerque"]],["new-york","New York",["New York City","Rochester"]],["north-carolina","North Carolina",["Charlotte"]],["north-dakota","North Dakota",["Fargo"]],["ohio","Ohio",["Columbus","Cleveland","Cincinnati"]],["oklahoma","Oklahoma",["Oklahoma City"]],["oregon","Oregon",["Portland"]],["pennsylvania","Pennsylvania",["Philadelphia","Pittsburgh"]],["rhode-island","Rhode Island",["Providence"]],["south-carolina","South Carolina",["Charleston"]],["south-dakota","South Dakota",["Sioux Falls"]],["tennessee","Tennessee",["Nashville"]],["texas","Texas",["Houston"]],["utah","Utah",["Salt Lake City"]],["vermont","Vermont",["Burlington"]],["virginia","Virginia",["Virginia Beach"]],["washington","Washington",["Seattle"]],["west-virginia","West Virginia",["Charleston"]],["wisconsin","Wisconsin",["Milwaukee"]],["wyoming","Wyoming",["Cheyenne"]]],GL=t=>t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,JL=([t,e,r])=>{const n=r[0],s=GL(r);return{slug:t,name:e,cities:r,seoTitle:`Medical Courier in ${n} & ${e} | Medical Couriers`,metaDescription:`Medical courier service in ${n} and across ${e}: lab specimens, radiopharmaceuticals, infusion and cell & gene therapies, blood and organ 
1068shipments, and medical devices.`,h1:`Medical Courier Service in ${r.join(", ")} and Across ${e}`,intro:`Medical Couriers provides medical transport in and around ${s} and throughout ${e}. We serve independent labs, hospitals and health systems, and specialty pharmacy and infusion providers, moving lab specimens, radiopharmaceuticals, infusion therapies, cell and gene therapies, blood and organ shipments, and medical devices with standard and temperature-controlled handling.`,coverage:`We work with vetted and verified network partners across ${e}, managed by MCI, so your shipments are handled safely and securely wherever they need to go, backed by more than 50 years in medical-only delivery.`,faqs:[{question:`What does Medical Couriers deliver in ${e}?`,answer:"Lab specimens and samples, radiopharmaceuticals, infusion therapies, cell and gene therapies, blood and organ shipments, and medical devices, with standard and temperature-controlled handling."},{question:`Who do you work with in ${e}?`,answer:`Independent and reference labs, hospitals and health systems, and specialty pharmacy, infusion and biotech providers in the ${n} area and across the state.`},{question:`How do I set up medical courier service in ${e}?`,answer:"Use the Get in Touch form and our team will follow up to scope routes, schedules and handling requirements. Current clients can log in to place orders."}]}},iv={alaska:"Anchorage is home to Providence Alaska Medical Center and the Alaska Native Medical Center, but much of the state can only be reached by air or water. Winter darkness, deep cold and weather delays can disrupt flights and roads alike. Shipments here need cold-weather packaging and backup plans built in.",arizona:"Phoenix's growth has brought Banner Health, HonorHealth and Mayo Clinic's Arizona campus to the Valley, with Tucson and Flagstaff serving their own regions. Summer temperatures above 110 degrees make heat the first concern for every specimen and therapy. We plan around the heat as carefully as the miles.",arkansas:"Little Rock anchors healthcare in Arkansas as home to UAMS and Arkansas Children's, while Northwest Arkansas keeps growing around Fayetteville and Bentonville. Beyond those hubs, communities in the Delta and the Ozarks depend on regional hospitals and labs. Reliable courier coverage has to reach both.",california:"From Cedars-Sinai and UCLA in Los Angeles to UCSF and Stanford in the Bay Area and UC Davis in Sacramento, California has one of the deepest healthcare and biotech communities in the country. It also has some of the hardest traffic, long distances between regions and wildfire seasons that can close roads. Medical Couriers began in Hayward more than 50 years ago, and California's freeways are home turf for us.",colorado:"Denver's medical community includes the Anschutz Medical Campus in Aurora, UCHealth and Children's Hospital Colorado, with Colorado Springs, Fort Collins and Grand Junction serving their own regions. Mountain passes, sudden snowstorms and altitude make the I-70 corridor unpredictable. Time-critical shipments here need routes planned with the weather in mind.",connecticut:"Connecticut packs Yale New Haven Health, Hartford HealthCare and a strong bioscience community into a small, busy state between New York and Boston. From Bridgeport and New Haven to Hartford, I-95 and I-84 congestion can turn a short trip into a long one. Getting specimens and therapies across the state on time takes local route knowledge.",delaware:"Delaware's healthcare runs from ChristianaCare and Nemours Children's in the Wilmington area down to Bayhealth in Kent and Sussex counties. With Philadelphia and Baltimore close by, many shipments cross state lines on I-95. Even a small state needs careful routing, especially in beach-season traffic down south.",florida:"Florida's healthcare spans Mayo Clinic and Baptist Health in Jacksonville, the large hospital systems of Tampa and Orlando, and the dense Miami-Fort Lauderdale corridor. Heat, humidity and hurricane season shape how every temperature-sensitive shipment is handled. Across a 
1068state this long, plans have to cover both the distance and the weather.",hawaii:"Honolulu is home to The Queen's Medical Center and most of the state's specialized care, while patients and labs on the neighbor islands depend on inter-island flights. Every shipment between islands has to fit airline schedules and cargo rules. We plan island logistics around those connections.",idaho:"Boise anchors healthcare in Idaho with St. Luke's and Saint Alphonsus, while Coeur d'Alene, Idaho Falls and Pocatello serve their own regions across long, mountainous distances. Winter weather on mountain highways can slow travel between them. Shipments here need routes planned around the terrain.",illinois:"Chicago is one of the country's largest medical hubs, home to Northwestern Medicine, Rush, UChicago Medicine and a dense network of labs and specialty providers. Congestion on the Kennedy, Dan Ryan and Eisenhower can stall a STAT run, and winter brings snow and wind off the lake. Beyond Chicago, downstate hospitals depend on reliable connections across long rural miles.",indiana:"Indianapolis is home to IU Health and a large life sciences community that includes Eli Lilly. Interstates fan out from the city in every direction, connecting hospitals and labs in Fort Wayne, Evansville and South Bend. Moving specimens and therapies across the state means making the most of the Crossroads of America.",iowa:"Des Moines and Iowa City anchor healthcare in Iowa, with UnityPoint Health and MercyOne in the capital and University of Iowa Health Care in Iowa City. Much of the state is rural, and its hospitals and clinics rely on regional labs. Winter storms and long distances between towns make dependable routing essential.",kansas:"Wichita is home to Wesley Medical Center and Ascension Via Christi, while the Kansas City suburbs draw on The University of Kansas Health System. Between them lie long stretches of rural highway and towns that depend on regional care. Weather on the plains, from winter storms to severe spring storms, can change a route quickly.",kentucky:"Louisville's medical community includes Norton Healthcare, UofL Health and Baptist Health, with UK HealthCare in Lexington serving much of central and eastern Kentucky. Louisville is also home to UPS Worldport, one of the world's busiest air cargo hubs. From there to the hollows of Appalachia, routes need to deliver both speed and reach.",louisiana:"New Orleans is home to Ochsner Health and LCMC Health, with Baton Rouge, Lafayette and Shreveport serving their own regions. Heat, humidity and hurricane season make temperature control and contingency planning part of every shipment. Bridges and causeways add their own timing challenges.",maine:"Portland is home to Maine Medical Center, the state's largest hospital, while much of Maine is rural, with long drives between communities. Winter storms and coastal weather can slow travel for days at a time. Shipments here need routes and packaging built for the distance and the cold.",maryland:"Baltimore is home to Johns Hopkins and the University of Maryland Medical Center, and the Washington suburbs hold NIH and a large biotech community along the I-270 corridor. Beltway traffic around both cities makes timing hard to predict. We plan routes for one of the country's busiest healthcare corridors.",massachusetts:"Boston's Longwood Medical Area, Mass General and the Kendall Square biotech cluster make Massachusetts a world center for medicine and for cell and gene therapy. Narrow streets, tunnel traffic and New England winters make every delivery a timing exercise. Specialty shipments here need couriers who know the city.",michigan:"Detroit is home to Henry Ford Health, Corewell Health and the Detroit Medical Center, with University of Michigan Health in Ann Arbor and Corewell's Grand Rapids hub across the state. Lake-effect snow and long winters can slow the interstates. Reliable routes across both peninsulas take planning.",minnesota:"Minneapolis is home to Hennepin Healthcare, M Health Fairview and a strong medical device industry, and Mayo Clinic in Rochester draws patients from around the world. Minnesota winters bring deep cold and snow that test every shipment. Keeping specimens and therapies at the right temperature year-round is the job.",mississippi:"Jackson is home to the University of Mississippi Medical Center, the state's only academic medical center, along with several large regional health systems. Much of Mississippi is rural, and many communities rely on regional hospitals and labs. Heat, humidity and Gulf Coast storms make temperature control a constant priority.",missouri:"Kansas City is home to Saint Luke's and Children's Mercy, with The University of Kansas Health System just across the state line, while St. Louis anchors the other side of the state with BJC and Washington University's medical campus. I-70 links the two metros across a long rural stretch. Moving specimens and therapies across Missouri means planning for both cities and the miles between.",montana:"Billings is Montana's largest city and a regional medical hub, with Billings Clinic and St. Vincent Regional Hospital serving patients from across eastern Montana and northern Wyoming. Distances between towns are long, and winter weather can close mountain passes. Shipments here need routes planned for the miles.",nebraska:"Omaha is home to Nebraska Medicine and the University of Nebraska Medical Center, known nationally for transplant and biocontainment care, along with CHI Health and Methodist. West of Lincoln the state is largely rural, with long drives between hospitals. Winter storms on I-80 can make timing hard.",nevada:"Las Vegas and Reno are about 440 miles apart, with mostly open desert between them. Southern Nevada's summer heat regularly passes 110 degrees, while northern Nevada sees snow on the Sierra passes. We plan routes and packaging for both ends of the state and the miles between.","new-hampshire":"Manchester is home to Elliot Hospital and Catholic Medical Center, and Dartmouth Health in Lebanon provides academic care for much of northern New England. Many towns are small and rural, and winter weather can slow travel on two-lane roads. Shipments here need couriers who plan for the season.","new-jersey":"New Jersey sits between New York and Philadelphia, with hospitals and labs packed along the Turnpike and the Garden State Parkway and a large share of the country's pharmaceutical industry. Newark is home to University Hospital and Newark Beth Israel, with RWJBarnabas Health and Hackensack Meridian Health across the state. Traffic around the bridges and tunnels makes timing everything.","new-mexico":"Albuquerque is home to UNM Hospital, Presbyterian and Lovelace, which serve patients from across a large, sparsely populated state. Distances to Las Cruces, Farmington and rural communities are long, and both high-desert heat and mountain weather come into play. Routes here have to be planned for the miles.","new-york":"New York City has one of the densest concentrations of hospitals, labs and research centers in the world, from NYU Langone and Mount Sinai to Memorial Sloan Kettering. Upstate, the University of Rochester Medical Center and other regional hubs are hours away, with lake-effect snow in winter. Moving specimens across the state means mastering both the city's traffic and upstate distances.","north-carolina":"Charlotte is home to Atrium Health and Novant Health, and the Research Tr
1068iangle, with Duke, UNC and a large biotech community, sits a few hours east. From the mountains to the Outer Banks the state covers long distances, and hurricane season affects the coast. We plan routes across a growing, spread-out healthcare map.","north-dakota":"Fargo is home to Sanford Health and Essentia Health, which serve patients from across North Dakota and western Minnesota. Towns are far apart, and winters are among the coldest in the lower 48. Every shipment here needs packaging and routes planned for the cold and the distance.",ohio:"Ohio is home to Cleveland Clinic, Ohio State's Wexner Medical Center in Columbus and Cincinnati Children's, three of the country's best-known medical institutions. A dense network of interstates links them, but lake-effect snow in the north and busy urban corridors can slow any run. We plan routes across all three metros and the communities between.",oklahoma:"Oklahoma City is home to OU Health, INTEGRIS Health and Mercy, with Saint Francis and Hillcrest serving Tulsa. Beyond the two metros, rural hospitals depend on regional labs across long distances. Severe spring storms and summer heat make weather part of every routing decision.",oregon:"Portland is home to OHSU, Legacy and Providence, with Salem, Eugene and Medford serving their own regions along I-5. East of the Cascades distances grow, and winter can close mountain passes. Shipments here need routes that account for mountains, weather and urban traffic.",pennsylvania:"Pennsylvania has two of the country's strongest medical communities: Penn Medicine, CHOP and Jefferson in Philadelphia, and UPMC in Pittsburgh. They sit about 300 miles apart, linked by the Turnpike through the mountains. Winter weather and city traffic both shape how we plan routes across the state.","rhode-island":"Providence is home to Brown University Health and Care New England, the state's largest health systems. In a state this compact, the challenge is less about distance and more about city traffic, I-95 congestion and connections to Boston. Fast, dependable local routing makes the difference.","south-carolina":"Charleston is home to MUSC and Roper St. Francis, with Prisma Health serving Columbia and the Upstate. From the Lowcountry to Greenville, the state stretches across long highway miles. Coastal heat, humidity and hurricane season make temperature control and contingency planning essential.","south-dakota":"Sioux Falls is headquarters to Sanford Health and Avera Health, two of the country's largest rural health systems. Patients and labs across South Dakota and neighboring states depend on them, often across long distances. Winter weather on the plains makes cold-ready packaging and routing essential.",tennessee:"Nashville is a national healthcare capital, home to Vanderbilt University Medical Center, HCA Healthcare and many other healthcare companies. Memphis, Knoxville and Chattanooga each anchor their own regions, hundreds of miles apart along I-40 and I-24. Fast-growing traffic around Nashville makes timing a daily challenge.",utah:"Salt Lake City is home to Intermountain Health, University of Utah Health and a growing life sciences community. Most Utahns live along the Wasatch Front, but rural Utah stretches across long desert and mountain distances. Winter canyon weather and summer heat both shape how shipments travel.",vermont:"Burlington is home to the University of Vermont Medical Center, the state's academic medical center. Much of Vermont is rural and mountainous, with small towns connected by two-lane roads. Winter storms and mud season can slow travel, so routes need room for the weather.",virginia:"Virginia Beach and the rest of Hampton Roads are served by Sentara Health, with VCU Health in Richmond, UVA Health in Charlottesville and Inova in Northern Virginia. Bridge-tunnels, military traffic and the I-64 corridor make Hampton Roads timing unpredictable. We plan routes across a state that runs from the coast to the Blue Ridge.",washington:"Seattle is home to UW Medicine, Swedish, Fred Hutchinson Cancer Center and one of the country's strongest biotech and cell therapy communities. I-5 traffic, ferries across Puget Sound and the Cascade passes all affect timing. Moving specimens and therapies here means planning for water, mountains and traffic.","west-virginia":"Charleston is home to CAMC, part of Vandalia Health, while WVU Medicine in Morgantown serves much of the state. Mountainous terrain and winding roads make even short distances take time. Winter weather adds another layer, so routes here need careful planning.",wisconsin:"Milwaukee is home to Froedtert & the Medical College of Wisconsin and Children's Wisconsin, with UW Health in Madison and large health systems across the state. Lake Michigan winters bring snow and cold that test every temperature-sensitive shipment. Routes here need to work in every season.",wyoming:"Cheyenne is home to Cheyenne Regional Medical Center, and Banner Wyoming Medical Center in Casper serves much of the state's center. Wyoming has the smallest population of any state, with long distances between towns and wind and snow that can close interstates. Shipments here need routes built for the open road.",georgia:"From Emory and Grady in the heart of Atlanta to community hospitals across south Georgia, healthcare in Georgia stretches from one of the country's busiest metros to long rural miles. A specimen can sit in traffic on I-285 or the Downtown Connector at any hour, and Georgia's summer heat and humidity test every temperature-sensitive shipment. We plan routes and packaging around both.",texas:"Texas runs on distance. Houston's Texas Medical Center is the largest medical complex in the world, but labs, infusion sites and hospitals are spread from Dallas-Fort Worth and San Antonio to the Rio Grande Valley and El Paso. Between Gulf Coast hurricane season and triple-digit summers, keeping time-critical and temperature-controlled shipments on schedule takes planning for the weather as much as the miles.",alabama:"Healthcare in Alabama is anchored by UAB in Birmingham and a fast-growing life sciences community in Huntsville, including the HudsonAlpha Institute for Biotechnology. In between are rural counties where the nearest hospital or lab can be a long drive away. Getting specimens, therapies and devices where they need to go means planning for both the urban corridors and the miles between."},jk=KL.map(t=>{const e=JL(t);return iv[e.slug]?{...e,opening:iv[e.slug]}:e});function ZL(){const t=[...jk].sort((e,r)=>e.name.localeCompare(r.name));return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(it,{title:"Medical Courier Locations in All 50 States | Medical Couriers",description:"Medical courier service in all 50 states: lab specimens, radiopharmaceuticals, infusion and cell & gene therapies, blood and organ 
1068shipments, and medical devices.",canonical:"https://medicalcouriers.com/locations"}),o.jsx(Qt,{}),o.jsxs("main",{children:[o.jsx("section",{className:"pt-32 pb-16 lg:pt-40 lg:pb-20 bg-secondary/40",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-foreground leading-[1.1] tracking-tight mb-6",children:"Medical courier service in all 50 states"})})}),o.jsx("section",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:o.jsx("ul",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-4",children:t.map(e=>o.jsx("li",{children:o.jsxs(he,{to:`/${e.slug}`,className:"flex items-center gap-2 p-4 rounded-xl bg-card border border-border hover:border-primary hover:text-primary transition-colors font-medium text-foreground",children:[o.jsx(Po,{className:"w-4 h-4 text-primary shrink-0"}),e.name]})},e.slug))})})}),o.jsx(Ip,{})]}),o.jsx(Yt,{})]})}const QL=new L2,YL=()=>o.jsx($2,{client:QL,children:o.jsxs(h2,{children:[o.jsx(JT,{}),o.jsx(TE,{}),o.jsxs(LA,{children:[o.jsx(FA,{}),o.jsxs(NA,{children:[o.jsx(Qe,{path:"/",element:o.jsx(WP,{})}),o.jsx(Qe,{path:"/about",element:o.jsx(KP,{})}),o.jsx(Qe,{path:"/services",element:o.jsx(fR,{})}),o.jsx(Qe,{path:"/solutions",element:o.jsx(bR,{})}),o.jsx(Qe,{path:"/news-from-the-road",element:o.jsx(VR,{})}),o.jsx(Qe,{path:"/news-from-the-road/:slug",element:o.jsx(qR,{})}),o.jsx(Qe,{path:"/contact",element:o.jsx(aL,{})}),o.jsx(Qe,{path:"/drivers",element:o.jsx(mL,{})}),o.jsx(Qe,{path:"/privacy",element:o.jsx(gL,{})}),o.jsx(Qe,{path:"/scmci",element:o.jsx(TP,{})}),o.jsx(Qe,{path:"/admin",element:o.jsx(xL,{})}),o.jsx(Qe,{path:"/login",element:o.jsx(SL,{})}),o.jsx(Qe,{path:"/locations",element:o.jsx(ZL,{})}),jk.map(t=>o.jsx(Qe,{path:`/${t.slug}`,element:o.jsx(qL,{state:t})},t.slug)),Object.entries($h).map(([t,e])=>o.jsx(Qe,{path:t,element:o.jsx(Ol,{to:e})},t)),Lb.map(t=>o.jsx(Qe,{path:`${t}*`,element:o.jsx(Ol,{to:"/news-from-the-road"})},t)),o.jsx(Qe,{path:"*",element:o.jsx(Ol,{fallback:o.jsx(yL,{})})})]})]})]})});Tw(document.getElementById("root")).render(o.jsx(Iw,{children:o.jsx(YL,{})}));

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.