vendor: 5,227 bytes, lines 1-9
1var x0=Object.defineProperty;var yf=e=>{throw TypeError(e)};var w0=(e,t,n)=>t in e?x0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Yt=(e,t,n)=>w0(e,typeof t!="symbol"?t+"":t,n),fl=(e,t,n)=>t.has(e)||yf("Cannot "+n);var j=(e,t,n)=>(fl(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>t.has(e)?yf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(fl(e,t,"access private method"),n);var ci=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return j(e,t,r)}});function b0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kp={exports:{}},Ia={},Qp={exports:{}},J={};/** 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 qs=Symbol.for("react.element"),S0=Symbol.for("react.portal"),j0=Symbol.for("react.fragment"),E0=Symbol.for("react.strict_mode"),C0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),N0=Symbol.for("react.context"),T0=Symbol.for("react.forward_ref"),P0=Symbol.for("react.suspense"),R0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),vf=Symbol.iterator;function O0(e){return e===null||typeof e!="object"?null:(e=vf&&e[vf]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yp=Object.assign,qp={};function Mo(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}Mo.prototype.isReactComponent={};Mo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xp(){}Xp.prototype=Mo.prototype;function $u(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}var Uu=$u.prototype=new Xp;Uu.constructor=$u;Yp(Uu,Mo.prototype);Uu.isPureReactComponent=!0;var xf=Array.isArray,Jp=Object.prototype.hasOwnProperty,Bu={current:null},Zp={key:!0,ref:!0,__self:!0,__source:!0};function em(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Jp.call(t,r)&&!Zp.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:qs,type:e,key:s,ref:i,props:o,_owner:Bu.current}}function M0(e,t){return{$$typeof:qs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vu(e){return typeof e=="object"&&e!==null&&e.$$typeof===qs}function _0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wf=/\/+/g;function hl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_0(""+e.key):t.toString(36)}function Ii(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case qs:case S0:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+hl(i,0):r,xf(o)?(n="",e!=null&&(n=e.replace(wf,"$&/")+"/"),Ii(o,t,n,"",function(u){return u})):o!=null&&(Vu(o)&&(o=M0(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(wf,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",xf(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+hl(s,l);i+=Ii(s,t,n,c,o)}else if(c=O0(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+hl(s,l++),i+=Ii(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}
vendor: 4,833 bytes, lines 9-25
9function ui(e,t,n){if(e==null)return e;var r=[],o=0;return Ii(e,r,"","",function(s){return t.call(n,s,o++)}),r}function L0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},Di={transition:null},I0={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Di,ReactCurrentOwner:Bu};function tm(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:ui,forEach:function(e,t,n){ui(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ui(e,function(){t++}),t},toArray:function(e){return ui(e,function(t){return t})||[]},only:function(e){if(!Vu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=Mo;J.Fragment=j0;J.Profiler=C0;J.PureComponent=$u;J.StrictMode=E0;J.Suspense=P0;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I0;J.act=tm;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Yp({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Bu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Jp.call(t,c)&&!Zp.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:qs,type:e.type,key:o,ref:s,props:r,_owner:i}};J.createContext=function(e){return e={$$typeof:N0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:k0,_context:e},e.Consumer=e};J.createElement=em;J.createFactory=function(e){var t=em.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:T0,render:e}};J.isValidElement=Vu;J.lazy=function(e){return{$$typeof:A0,_payload:{_status:-1,_result:e},_init:L0}};J.memo=function(e,t){return{$$typeof:R0,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=Di.transition;Di.transition={};try{e()}finally{Di.transition=t}};J.unstable_act=tm;J.useCallback=function(e,t){return We.current.useCallback(e,t)};J.useContext=function(e){return We.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return We.current.useDeferredValue(e)};J.useEffect=function(e,t){return We.current.useEffect(e,t)};J.useId=function(){return We.current.useId()};J.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return We.current.useMemo(e,t)};J.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};J.useRef=function(e){return We.current.useRef(e)};J.useState=function(e){return We.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return We.current.useTransition()};J.version="18.3.1";Qp.exports=J;var d=Qp.exports;const ne=Ys(d),Hu=b0({__proto__:null,default:ne},[d]);/** 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 D0=d,F0=Symbol.for("react.element"),z0=Symbol.for("react.fragment"),$0=Object.prototype.hasOwnProperty,U0=D0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B0={key:!0,ref:!0,__self:!0,__source:!0};function nm(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)$0.call(t,r)&&!B0.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:F0,type:e,key:s,ref:i,props:o,_owner:U0.current}}Ia.Fragment=z0;Ia.jsx=nm;Ia.jsxs=nm;Kp.exports=Ia;var a=Kp.exports,rm={exports:{}},ct={},om={exports:{}},sm={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(N,A){var D=N.length;N.push(A);e:for(;0<D;){var M=D-1>>>1,B=N[M];if(0<o(B,A))N[M]=A,N[D]=B,D=M;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var A=N[0],D=N.pop();
vendor: 10,404 bytes, lines 25-34
25if(D!==A){N[0]=D;e:for(var M=0,B=N.length,H=B>>>1;M<H;){var we=2*(M+1)-1,Oe=N[we],ie=we+1,se=N[ie];if(0>o(Oe,D))ie<B&&0>o(se,Oe)?(N[M]=se,N[ie]=D,M=ie):(N[M]=Oe,N[we]=D,M=we);else if(ie<B&&0>o(se,D))N[M]=se,N[ie]=D,M=ie;else break e}}return A}function o(N,A){var D=N.sortIndex-A.sortIndex;return D!==0?D:N.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],f=1,h=null,p=3,w=!1,S=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=N)r(u),A.sortIndex=A.expirationTime,t(c,A);else break;A=n(u)}}function x(N){if(y=!1,v(N),!S)if(n(c)!==null)S=!0,z(E);else{var A=n(u);A!==null&&K(x,A.startTime-N)}}function E(N,A){S=!1,y&&(y=!1,g(C),C=-1),w=!0;var D=p;try{for(v(A),h=n(c);h!==null&&(!(h.expirationTime>A)||N&&!O());){var M=h.callback;if(typeof M=="function"){h.callback=null,p=h.priorityLevel;var B=M(h.expirationTime<=A);A=e.unstable_now(),typeof B=="function"?h.callback=B:h===n(c)&&r(c),v(A)}else r(c);h=n(c)}if(h!==null)var H=!0;else{var we=n(u);we!==null&&K(x,we.startTime-A),H=!1}return H}finally{h=null,p=D,w=!1}}var T=!1,k=null,C=-1,P=5,R=-1;function O(){return!(e.unstable_now()-R<P)}function _(){if(k!==null){var N=e.unstable_now();R=N;var A=!0;try{A=k(!0,N)}finally{A?$():(T=!1,k=null)}}else T=!1}var $;if(typeof m=="function")$=function(){m(_)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,U=L.port2;L.port1.onmessage=_,$=function(){U.postMessage(null)}}else $=function(){b(_,0)};function z(N){k=N,T||(T=!0,$())}function K(N,A){C=b(function(){N(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){S||w||(S=!0,z(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(p){case 1:case 2:case 3:var A=3;break;default:A=p}var D=p;p=A;try{return N()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,A){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var D=p;p=N;try{return A()}finally{p=D}},e.unstable_scheduleCallback=function(N,A,D){var M=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?M+D:M):D=M,N){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=D+B,N={id:f++,callback:A,priorityLevel:N,startTime:D,expirationTime:B,sortIndex:-1},D>M?(N.sortIndex=D,t(u,N),n(c)===null&&N===n(u)&&(y?(g(C),C=-1):y=!0,K(x,D-M))):(N.sortIndex=B,t(c,N),S||w||(S=!0,z(E))),N},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(N){var A=p;return function(){var D=p;p=A;try{return N.apply(this,arguments)}finally{p=D}}}})(sm);om.exports=sm;var V0=om.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 H0=d,lt=V0;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var im=new Set,Ss={};function Pr(e,t){jo(e,t),jo(e+"Capture",t)}function jo(e,t){for(Ss[e]=t,e=0;e<t.length;e++)im.add(t[e])}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ic=Object.prototype.hasOwnProperty,W0=/^[: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]*$/,bf={},Sf={};function K0(e){return ic.call(Sf,e)?!0:ic.call(bf,e)?!1:W0.test(e)?Sf[e]=!0:(bf[e]=!0,!1)}function Q0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G0(e,t,n,r){if(t===null||typeof t>"u"||Q0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wu=/[\-:]([a-z])/g;function Ku(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);Le[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wu,Ku);Le[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wu,Ku);Le[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qu(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(G0(t,n,o,r)&&(n=null),r||o===null?K0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pn=H0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,di=Symbol.for("react.element"),Fr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),Gu=Symbol.for("react.strict_mode"),ac=Symbol.for("react.profiler"),am=Symbol.for("react.provider"),lm=Symbol.for("react.context"),Yu=Symbol.for("react.forward_ref"),lc=Symbol.for("react.suspense"),cc=Symbol.for("react.suspense_list"),qu=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),cm=Symbol.for("react.offscreen"),jf=Symbol.iterator;function Wo(e){return e===null||typeof e!="object"?null:(e=jf&&e[jf]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,pl;function ss(e){if(pl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pl=t&&t[1]||""}return` 34`+pl+e}var ml=!1;function gl(e,t){if(!e||ml)return"";ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 14,678 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 35`),s=r.stack.split(` 36`),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var c=` 37`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ss(e):""}function Y0(e){switch(e.tag){case 5:return ss(e.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return e=gl(e.type,!1),e;case 11:return e=gl(e.type.render,!1),e;case 1:return e=gl(e.type,!0),e;default:return""}}function uc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zr:return"Fragment";case Fr:return"Portal";case ac:return"Profiler";case Gu:return"StrictMode";case lc:return"Suspense";case cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lm:return(e.displayName||"Context")+".Consumer";case am:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:uc(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return uc(e(t))}catch{}}return null}function q0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return uc(t);case 8:return t===Gu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function um(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X0(e){var t=um(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=X0(e))}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=um(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function na(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dc(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ef(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fm(e,t){t=t.checked,t!=null&&Qu(e,"checked",t,!1)}function fc(e,t){fm(e,t);var n=Qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hc(e,t.type,n):t.hasOwnProperty("defaultValue")&&hc(e,t.type,Qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hc(e,t,n){(t!=="number"||na(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var is=Array.isArray;function Xr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function pc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(is(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qn(n)}}function hm(e,t){var n=Qn(t.value),r=Qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Nf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hi,mm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hi=hi||document.createElement("div"),hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function js(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var us={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},J0=["Webkit","ms","Moz","O"];Object.keys(us).forEach(function(e){J0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),us[t]=us[e]})});function gm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||us.hasOwnProperty(e)&&us[e]?(""+t).trim():t+"px"}function ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z0=ge({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 gc(e,t){if(t){if(Z0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vc=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,Jr=null,Zr=null;function Tf(e){if(e=Zs(e)){if(typeof xc!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Ua(t),xc(e.stateNode,e.type,t))}}function vm(e){Jr?Zr?Zr.push(e):Zr=[e]:Jr=e}function xm(){if(Jr){var e=Jr,t=Zr;if(Zr=Jr=null,Tf(e),t)for(e=0;e<t.length;e++)Tf(t[e])}}function wm(e,t){return e(t)}function bm(){}var yl=!1;function Sm(e,t,n){if(yl)return e(t,n);yl=!0;try{return wm(e,t,n)}finally{yl=!1,(Jr!==null||Zr!==null)&&(bm(),xm())}}function Es(e,t){var n=e.stateNode;if(n===null)return null;var r=Ua(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var wc=!1;if(sn)try{var Ko={};Object.defineProperty(Ko,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{wc=!1}function e1(e,t,n,r,o,s,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var ds=!1,ra=null,oa=!1,bc=null,t1={onError:function(e){ds=!0,ra=e}};function n1(e,t,n,r,o,s,i,l,c){ds=!1,ra=null,e1.apply(t1,arguments)}function r1(e,t,n,r,o,s,i,l,c){if(n1.apply(this,arguments),ds){if(ds){var u=ra;ds=!1,ra=null}else throw Error(I(198));oa||(oa=!0,bc=u)}}function Rr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function jm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Pf(e){if(Rr(e)!==e)throw Error(I(188))}function o1(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Pf(o),e;if(s===r)return Pf(o),t;s=s.sibling}throw Error(I(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function Em(e){return e=o1(e),e!==null?Cm(e):null}function Cm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cm(e);if(t!==null)return t;e=e.sibling}return null}var km=lt.unstable_scheduleCallback,Rf=lt.unstable_cancelCallback,s1=lt.unstable_shouldYield,i1=lt.unstable_requestPaint,be=lt.unstable_now,a1=lt.unstable_getCurrentPriorityLevel,Ju=lt.unstable_ImmediatePriority,Nm=lt.unstable_UserBlockingPriority,sa=lt.unstable_NormalPriority,l1=lt.unstable_LowPriority,Tm=lt.unstable_IdlePriority,Da=null,Ht=null;function c1(e){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}}var Pt=Math.clz32?Math.clz32:f1,u1=Math.log,d1=Math.LN2;function f1(e){return e>>>=0,e===0?32:31-(u1(e)/d1|0)|0}var pi=64,mi=4194304;function as(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ia(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=as(l):(s&=i,s!==0&&(r=as(s)))}else i=n&~o,i!==0?r=as(i):s!==0&&(r=as(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Pt(t),o=1<<n,r|=e[n],t&=~o;return r}function h1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function p1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Pt(s),l=1<<i,c=o[i];c===-1?(!(l&n)||l&r)&&(o[i]=h1(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function Sc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Pm(){var e=pi;return pi<<=1,!(pi&4194240)&&(pi=64),e}function vl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=n}function m1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Pt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Zu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var oe=0;function Rm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 10,440 bytes, line 37
37var Am,ed,Om,Mm,_m,jc=!1,gi=[],Dn=null,Fn=null,zn=null,Cs=new Map,ks=new Map,En=[],g1="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 Af(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":Cs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.delete(t.pointerId)}}function Qo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Zs(t),t!==null&&ed(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function y1(e,t,n,r,o){switch(t){case"focusin":return Dn=Qo(Dn,e,t,n,r,o),!0;case"dragenter":return Fn=Qo(Fn,e,t,n,r,o),!0;case"mouseover":return zn=Qo(zn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Cs.set(s,Qo(Cs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,ks.set(s,Qo(ks.get(s)||null,e,t,n,r,o)),!0}return!1}function Lm(e){var t=ir(e.target);if(t!==null){var n=Rr(t);if(n!==null){if(t=n.tag,t===13){if(t=jm(n),t!==null){e.blockedOn=t,_m(e.priority,function(){Om(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ec(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vc=r,n.target.dispatchEvent(r),vc=null}else return t=Zs(n),t!==null&&ed(t),e.blockedOn=n,!1;t.shift()}return!0}function Of(e,t,n){Fi(e)&&n.delete(t)}function v1(){jc=!1,Dn!==null&&Fi(Dn)&&(Dn=null),Fn!==null&&Fi(Fn)&&(Fn=null),zn!==null&&Fi(zn)&&(zn=null),Cs.forEach(Of),ks.forEach(Of)}function Go(e,t){e.blockedOn===t&&(e.blockedOn=null,jc||(jc=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,v1)))}function Ns(e){function t(o){return Go(o,e)}if(0<gi.length){Go(gi[0],e);for(var n=1;n<gi.length;n++){var r=gi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dn!==null&&Go(Dn,e),Fn!==null&&Go(Fn,e),zn!==null&&Go(zn,e),Cs.forEach(t),ks.forEach(t),n=0;n<En.length;n++)r=En[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)Lm(n),n.blockedOn===null&&En.shift()}var eo=pn.ReactCurrentBatchConfig,aa=!0;function x1(e,t,n,r){var o=oe,s=eo.transition;eo.transition=null;try{oe=1,td(e,t,n,r)}finally{oe=o,eo.transition=s}}function w1(e,t,n,r){var o=oe,s=eo.transition;eo.transition=null;try{oe=4,td(e,t,n,r)}finally{oe=o,eo.transition=s}}function td(e,t,n,r){if(aa){var o=Ec(e,t,n,r);if(o===null)Tl(e,t,r,la,n),Af(e,r);else if(y1(o,e,t,n,r))r.stopPropagation();else if(Af(e,r),t&4&&-1<g1.indexOf(e)){for(;o!==null;){var s=Zs(o);if(s!==null&&Am(s),s=Ec(e,t,n,r),s===null&&Tl(e,t,r,la,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Tl(e,t,r,null,n)}}var la=null;function Ec(e,t,n,r){if(la=null,e=Xu(r),e=ir(e),e!==null)if(t=Rr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=jm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return la=e,null}function Im(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(a1()){case Ju:return 1;case Nm:return 4;case sa:case l1:return 16;case Tm:return 536870912;default:return 16}default:return 16}}var Ln=null,nd=null,zi=null;function Dm(){if(zi)return zi;var e,t=nd,n=t.length,r,o="value"in Ln?Ln.value:Ln.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return zi=o.slice(e,1<r?1-r:void 0)}function $i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yi(){return!0}function Mf(){return!1}function ut(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?yi:Mf,this.isPropagationStopped=Mf,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yi)},persist:function(){},isPersistent:yi}),t}var _o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rd=ut(_o),Js=ge({},_o,{view:0,detail:0}),b1=ut(Js),xl,wl,Yo,Fa=ge({},Js,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(xl=e.screenX-Yo.screenX,wl=e.screenY-Yo.screenY):wl=xl=0,Yo=e),xl)},movementY:function(e){return"movementY"in e?e.movementY:wl}}),_f=ut(Fa),S1=ge({},Fa,{dataTransfer:0}),j1=ut(S1),E1=ge({},Js,{relatedTarget:0}),bl=ut(E1),C1=ge({},_o,{animationName:0,elapsedTime:0,pseudoElement:0}),k1=ut(C1),N1=ge({},_o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),T1=ut(N1),P1=ge({},_o,{data:0}),Lf=ut(P1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A1={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"},O1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O1[e])?!!t[e]:!1}function od(){return M1}var _1=ge({},Js,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?A1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),L1=ut(_1),I1=ge({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=ut(I1),D1=ge({},Js,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),F1=ut(D1),z1=ge({},_o,{propertyName:0,elapsedTime:0,pseudoElement:0}),$1=ut(z1),U1=ge({},Fa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),B1=ut(U1),V1=[9,13,27,32],sd=sn&&"CompositionEvent"in window,fs=null;sn&&"documentMode"in document&&(fs=document.documentMode);var H1=sn&&"TextEvent"in window&&!fs,Fm=sn&&(!sd||fs&&8<fs&&11>=fs),Df=" ",Ff=!1;function zm(e,t){switch(e){case"keyup":return V1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function W1(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(Ff=!0,Df);case"textInput":return e=t.data,e===Df&&Ff?null:e;default:return null}}function K1(e,t){if($r)return e==="compositionend"||!sd&&zm(e,t)?(e=Dm(),zi=nd=Ln=null,$r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fm&&t.locale!=="ko"?null:t.data;default:return null}}var Q1={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q1[e.type]:t==="textarea"}function Um(e,t,n,r){vm(r),t=ca(t,"onChange"),0<t.length&&(n=new rd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hs=null,Ts=null;function G1(e){Jm(e,0)}function za(e){var t=Vr(e);
vendor: 5,718 bytes, line 37
37if(dm(t))return e}function Y1(e,t){if(e==="change")return t}var Bm=!1;if(sn){var Sl;if(sn){var jl="oninput"in document;if(!jl){var $f=document.createElement("div");$f.setAttribute("oninput","return;"),jl=typeof $f.oninput=="function"}Sl=jl}else Sl=!1;Bm=Sl&&(!document.documentMode||9<document.documentMode)}function Uf(){hs&&(hs.detachEvent("onpropertychange",Vm),Ts=hs=null)}function Vm(e){if(e.propertyName==="value"&&za(Ts)){var t=[];Um(t,Ts,e,Xu(e)),Sm(G1,t)}}function q1(e,t,n){e==="focusin"?(Uf(),hs=t,Ts=n,hs.attachEvent("onpropertychange",Vm)):e==="focusout"&&Uf()}function X1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return za(Ts)}function J1(e,t){if(e==="click")return za(t)}function Z1(e,t){if(e==="input"||e==="change")return za(t)}function ew(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:ew;function Ps(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ic.call(t,o)||!At(e[o],t[o]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,t){var n=Bf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bf(n)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=na();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=na(e.document)}return t}function id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tw(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hm(n.ownerDocument.documentElement,n)){if(r!==null&&id(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Vf(n,s);var i=Vf(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nw=sn&&"documentMode"in document&&11>=document.documentMode,Ur=null,Cc=null,ps=null,kc=!1;function Hf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Ur==null||Ur!==na(r)||(r=Ur,"selectionStart"in r&&id(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ps&&Ps(ps,r)||(ps=r,r=ca(Cc,"onSelect"),0<r.length&&(t=new rd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},El={},Km={};sn&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function $a(e){if(El[e])return El[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Km)return El[e]=t[n];return e}var Qm=$a("animationend"),Gm=$a("animationiteration"),Ym=$a("animationstart"),qm=$a("transitionend"),Xm=new Map,Wf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jn(e,t){Xm.set(e,t),Pr(t,[e])}for(var Cl=0;Cl<Wf.length;Cl++){var kl=Wf[Cl],rw=kl.toLowerCase(),ow=kl[0].toUpperCase()+kl.slice(1);Jn(rw,"on"+ow)}Jn(Qm,"onAnimationEnd");Jn(Gm,"onAnimationIteration");Jn(Ym,"onAnimationStart");Jn("dblclick","onDoubleClick");Jn("focusin","onFocus");Jn("focusout","onBlur");Jn(qm,"onTransitionEnd");jo("onMouseEnter",["mouseout","mouseover"]);jo("onMouseLeave",["mouseout","mouseover"]);jo("onPointerEnter",["pointerout","pointerover"]);jo("onPointerLeave",["pointerout","pointerover"]);Pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,227 bytes, line 37
37Pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="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(" "),sw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ls));function Kf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,r1(r,t,void 0,e),e.currentTarget=null}function Jm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&o.isPropagationStopped())break e;Kf(o,l,u),s=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&o.isPropagationStopped())break e;Kf(o,l,u),s=c}}}if(oa)throw e=bc,oa=!1,bc=null,e}function ue(e,t){var n=t[Ac];n===void 0&&(n=t[Ac]=new Set);var r=e+"__bubble";n.has(r)||(Zm(t,e,2,!1),n.add(r))}function Nl(e,t,n){var r=0;t&&(r|=4),Zm(n,e,r,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function Rs(e){if(!e[xi]){e[xi]=!0,im.forEach(function(n){n!=="selectionchange"&&(sw.has(n)||Nl(n,!1,e),Nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,Nl("selectionchange",!1,t))}}function Zm(e,t,n,r){switch(Im(t)){case 1:var o=x1;break;case 4:o=w1;break;default:o=td}n=o.bind(null,t,n,e),o=void 0,!wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Tl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=ir(l),i===null)return;if(c=i.tag,c===5||c===6){r=s=i;continue e}l=l.parentNode}}r=r.return}Sm(function(){var u=s,f=Xu(n),h=[];e:{var p=Xm.get(e);if(p!==void 0){var w=rd,S=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":w=L1;break;case"focusin":S="focus",w=bl;break;case"focusout":S="blur",w=bl;break;case"beforeblur":case"afterblur":w=bl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=j1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=F1;break;case Qm:case Gm:case Ym:w=k1;break;case qm:w=$1;break;case"scroll":w=b1;break;case"wheel":w=B1;break;case"copy":case"cut":case"paste":w=T1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=If}var y=(t&4)!==0,b=!y&&e==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var m=u,v;m!==null;){v=m;var x=v.stateNode;if(v.tag===5&&x!==null&&(v=x,g!==null&&(x=Es(m,g),x!=null&&y.push(As(m,x,v)))),b)break;m=m.return}0<y.length&&(p=new w(p,S,null,n,f),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==vc&&(S=n.relatedTarget||n.fromElement)&&(ir(S)||S[an]))break e;if((w||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,w?(S=n.relatedTarget||n.toElement,w=u,S=S?ir(S):null,S!==null&&(b=Rr(S),S!==b||S.tag!==5&&S.tag!==6)&&(S=null)):(w=null,S=u),w!==S)){if(y=_f,x="onMouseLeave",g="onMouseEnter",m="mou
37se",(e==="pointerout"||e==="pointerover")&&(y=If,x="onPointerLeave",g="onPointerEnter",m="pointer"),b=w==null?p:Vr(w),v=S==null?p:Vr(S),p=new y(x,m+"leave",w,n,f),p.target=b,p.relatedTarget=v,x=null,ir(f)===u&&(y=new y(g,m+"enter",S,n,f),y.target=v,y.relatedTarget=b,x=y),b=x,w&&S)t:{for(y=w,g=S,m=0,v=y;v;v=Mr(v))m++;for(v=0,x=g;x;x=Mr(x))v++;for(;0<m-v;)y=Mr(y),m--;for(;0<v-m;)g=Mr(g),v--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=Mr(y),g=Mr(g)}y=null}else y=null;w!==null&&Qf(h,p,w,y,!1),S!==null&&b!==null&&Qf(h,b,S,y,!0)}}e:{if(p=u?Vr(u):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var E=Y1;else if(zf(p))if(Bm)E=Z1;else{E=X1;var T=q1}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=J1);if(E&&(E=E(e,u))){Um(h,E,n,f);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&hc(p,"number",p.value)}switch(T=u?Vr(u):window,e){case"focusin":(zf(T)||T.contentEditable==="true")&&(Ur=T,Cc=u,ps=null);break;case"focusout":ps=Cc=Ur=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Hf(h,n,f);break;case"selectionchange":if(nw)break;case"keydown":case"keyup":Hf(h,n,f)}var k;if(sd)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else $r?zm(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Fm&&n.locale!=="ko"&&($r||C!=="onCompositionStart"?C==="onCompositionEnd"&&$r&&(k=Dm()):(Ln=f,nd="value"in Ln?Ln.value:Ln.textContent,$r=!0)),T=ca(u,C),0<T.length&&(C=new Lf(C,e,null,n,f),h.push({event:C,listeners:T}),k?C.data=k:(k=$m(n),k!==null&&(C.data=k)))),(k=H1?W1(e,n):K1(e,n))&&(u=ca(u,"onBeforeInput"),0<u.length&&(f=new Lf("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=k))}Jm(h,t)})}function As(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ca(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Es(e,n),s!=null&&r.unshift(As(e,s,o)),s=Es(e,t),s!=null&&r.push(As(e,s,o))),e=e.return}return r}function Mr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qf(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=Es(n,s),c!=null&&i.unshift(As(n,c,l))):o||(c=Es(n,s),c!=null&&i.push(As(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var iw=/\r\n?/g,aw=/\u0000|\uFFFD/g;function Gf(e){return(typeof e=="string"?e:""+e).replace(iw,` 38`).replace(aw,"")}function wi(e,t,n){if(t=Gf(t),Gf(e)!==t&&n)throw Error(I(425))}function ua(){}var Nc=null,Tc=null;function Pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rc=typeof setTimeout=="function"?setTimeout:void 0,lw=typeof clearTimeout=="function"?clearTimeout:void 0,Yf=typeof Promise=="function"?Promise:void 0,cw=typeof queueMicrotask=="function"?queueMicrotask:typeof Yf<"u"?function(e){return Yf.resolve(null).then(e).catch(uw)}:Rc;function uw(e){setTimeout(function(){throw e})}function Pl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ns(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ns(t)}function $n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function qf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lo=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Lo,Os="__reactProps$"+Lo,an="__reactContainer$"+Lo,Ac="__reactEvents$"+Lo,dw="__reactListeners$"+Lo,fw="__reactHandles$"+Lo;function ir(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qf(e);e!==null;){if(n=e[Bt])return n;e=qf(e)}return t}e=n,n=e.parentNode}return null}function Zs(e){return e=e[Bt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Ua(e){return e[Os]||null}var Oc=[],Hr=-1;function Zn(e){return{current:e}}function de(e){0>Hr||(e.current=Oc[Hr],Oc[Hr]=null,Hr--)}function le(e,t){Hr++,Oc[Hr]=e.current,e.current=t}var Gn={},$e=Zn(Gn),Xe=Zn(!1),xr=Gn;function Eo(e,t){var n=e.type.contextTypes;if(!n)return Gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function da(){de(Xe),de($e)}function Xf(e,t,n){if($e.current!==Gn)throw Error(I(168));le($e,t),le(Xe,n)}function eg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,q0(e)||"Unknown",o));return ge({},n,r)}function fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,xr=$e.current,le($e,e),le(Xe,Xe.current),!0}function Jf(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=eg(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,de(Xe),de($e),le($e,e)):de(Xe),le(Xe,n)}var Zt=null,Ba=!1,Rl=!1;function tg(e){Zt===null?Zt=[e]:Zt.push(e)}function hw(e){Ba=!0,tg(e)}function er(){if(!Rl&&Zt!==null){Rl=!0;var e=0,t=oe;try{var n=Zt;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Ba=!1}catch(o){throw Zt!==null&&(Zt=Zt.slice(e+1)),km(Ju,er),o}finally{oe=t,Rl=!1}}return null}var Wr=[],Kr=0,ha=null,pa=0,pt=[],mt=0,wr=null,tn=1,nn="";function or(e,t){Wr[Kr++]=pa,Wr[Kr++]=ha,ha=e,pa=t}function ng(e,t,n){pt[mt++]=tn,pt[mt++]=nn,pt[mt++]=wr,wr=e;var r=tn;e=nn;var o=32-Pt(r)-1;r&=~(1<<o),n+=1;var s=32-Pt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,tn=1<<32-Pt(t)+o|n<<o|r,nn=s+e}else tn=1<<s|n<<o|r,nn=e}function ad(e){e.return!==null&&(or(e,1),ng(e,1,0))}function ld(e){for(;e===ha;)ha=Wr[--Kr],Wr[Kr]=null,pa=Wr[--Kr],Wr[Kr]=null;for(;e===wr;)wr=pt[--mt],pt[mt]=null,nn=pt[--mt],pt[mt]=null,tn=pt[--mt],pt[mt]=null}var st=null,ot=null,fe=!1,kt=null;function rg(e,t){var n=gt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zf(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 1,210 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,ot=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:tn,overflow:nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,ot=null,!0):!1;default:return!1}}function Mc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _c(e){if(fe){var t=ot;if(t){var n=t;if(!Zf(e,t)){if(Mc(e))throw Error(I(418));t=$n(n.nextSibling);var r=st;t&&Zf(e,t)?rg(r,n):(e.flags=e.flags&-4097|2,fe=!1,st=e)}}else{if(Mc(e))throw Error(I(418));e.flags=e.flags&-4097|2,fe=!1,st=e}}}function eh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function bi(e){if(e!==st)return!1;if(!fe)return eh(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pc(e.type,e.memoizedProps)),t&&(t=ot)){if(Mc(e))throw og(),Error(I(418));for(;t;)rg(e,t),t=$n(t.nextSibling)}if(eh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 25,627 bytes, lines 38-40
38);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=st?$n(e.stateNode.nextSibling):null;return!0}function og(){for(var e=ot;e;)e=$n(e.nextSibling)}function Co(){ot=st=null,fe=!1}function cd(e){kt===null?kt=[e]:kt.push(e)}var pw=pn.ReactCurrentBatchConfig;function qo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function th(e){var t=e._init;return t(e._payload)}function sg(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function o(g,m){return g=Hn(g,m),g.index=0,g.sibling=null,g}function s(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,v,x){return m===null||m.tag!==6?(m=Dl(v,g.mode,x),m.return=g,m):(m=o(m,v),m.return=g,m)}function c(g,m,v,x){var E=v.type;return E===zr?f(g,m,v.props.children,x,v.key):m!==null&&(m.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sn&&th(E)===m.type)?(x=o(m,v.props),x.ref=qo(g,m,v),x.return=g,x):(x=Qi(v.type,v.key,v.props,null,g.mode,x),x.ref=qo(g,m,v),x.return=g,x)}function u(g,m,v,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Fl(v,g.mode,x),m.return=g,m):(m=o(m,v.children||[]),m.return=g,m)}function f(g,m,v,x,E){return m===null||m.tag!==7?(m=vr(v,g.mode,x,E),m.return=g,m):(m=o(m,v),m.return=g,m)}function h(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Dl(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case di:return v=Qi(m.type,m.key,m.props,null,g.mode,v),v.ref=qo(g,null,m),v.return=g,v;case Fr:return m=Fl(m,g.mode,v),m.return=g,m;case Sn:var x=m._init;return h(g,x(m._payload),v)}if(is(m)||Wo(m))return m=vr(m,g.mode,v,null),m.return=g,m;Si(g,m)}return null}function p(g,m,v,x){var E=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:l(g,m,""+v,x);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case di:return v.key===E?c(g,m,v,x):null;case Fr:return v.key===E?u(g,m,v,x):null;case Sn:return E=v._init,p(g,m,E(v._payload),x)}if(is(v)||Wo(v))return E!==null?null:f(g,m,v,x,null);Si(g,v)}return null}function w(g,m,v,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(v)||null,l(m,g,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case di:return g=g.get(x.key===null?v:x.key)||null,c(m,g,x,E);case Fr:return g=g.get(x.key===null?v:x.key)||null,u(m,g,x,E);case Sn:var T=x._init;return w(g,m,v,T(x._payload),E)}if(is(x)||Wo(x))return g=g.get(v)||null,f(m,g,x,E,null);Si(m,x)}return null}function S(g,m,v,x){for(var E=null,T=null,k=m,C=m=0,P=null;k!==null&&C<v.length;C++){k.index>C?(P=k,k=null):P=k.sibling;var R=p(g,k,v[C],x);if(R===null){k===null&&(k=P);break}e&&k&&R.alternate===null&&t(g,k),m=s(R,m,C),T===null?E=R:T.sibling=R,T=R,k=P}if(C===v.length)return n(g,k),fe&&or(g,C),E;if(k===null){for(;C<v.length;C++)k=h(g,v[C],x),k!==null&&(m=s(k,m,C),T===null?E=k:T.sibling=k,T=k);return fe&&or(g,C),E}for(k=r(g,k);C<v.length;C++)P=w(k,g,C,v[C],x),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?C:P.key),m=s(P,m,C),T===null?E=P:T.sibling=P,T=P);return e&&k.forEach(function(O){return t(g,O)}),fe&&or(g,C),E}function y(g,m,v,x){var E=Wo(v);if(typeof E!="function")throw Error(I(150));if(v=E.call(v),v==null)throw Error(I(151));for(var T=E=null,k=m,C=m=0,P=null,R=v.next();k!==null&&!R.done;C++,R=v.next()){k.index>C?(P=k,k=null):P=k.sibling;var O=p(g,k,R.value,x);if(O===null){k===null&&(k=P);break}e&&k&&O.alternate===null&&t(g,k),m=s(O,m,C),T===null?E=O:T.sibling=O,T=O,k=P}if(R.done)return n(g,k),fe&&or(g,C),E;if(k===null){for(;!R.done;C++,R=v.next())R=h(g,R.value,x),R!==null&&(m=s(R,m,C),T===null?E=R:T.sibling=R,T=R);return fe&&or(g,C),E}for(k=r(g,k);!R.done;C++,R=v.next())R=w(k,g,C,R.value,x),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?C:R.key),m=s(R,m,C),T===null?E=R:T.sibling=R,T=R);return e&&k.forEach(function(_){return t(g,_)}),fe&&or(g,C),E}function b(g,m,v,x){if(typeof v=="object"&&v!==null&&v.type===zr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case di:e:{for(var E=v.key,T=m;T!==null;){if(T.key===E){if(E=v.type,E===zr){if(T.tag===7){n(g,T.sibling),m=o(T,v.props.children),m.return=g,g=m;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sn&&th(E)===T.type){n(g,T.sibling),m=o(T,v.props),m.ref=qo(g,T,v),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===zr?(m=vr(v.props.children,g.mode,x,v.key),m.return=g,g=m):(x=Qi(v.type,v.key,v.props,null,g.mode,x),x.ref=qo(g,m,v),x.return=g,g=x)}return i(g);case Fr:e:{for(T=v.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=o(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Fl(v,g.mode,x),m.return=g,g=m}return i(g);case Sn:return T=v._init,b(g,m,T(v._payload),x)}if(is(v))return S(g,m,v,x);if(Wo(v))return y(g,m,v,x);Si(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,v),m.return=g,g=m):(n(g,m),m=Dl(v,g.mode,x),m.return=g,g=m),i(g)):n(g,m)}return b}var ko=sg(!0),ig=sg(!1),ma=Zn(null),ga=null,Qr=null,ud=null;function dd(){ud=Qr=ga=null}function fd(e){var t=ma.current;de(ma),e._currentValue=t}function Lc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function to(e,t){ga=e,ud=Qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(ud!==e)if(e={context:e,memoizedValue:t,next:null},Qr===null){if(ga===null)throw Error(I(308));Qr=e,ga.dependencies={lanes:0,firstContext:e}}else Qr=Qr.next=e;return t}var ar=null;function hd(e){ar===null?ar=[e]:ar.push(e)}function ag(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,hd(t)):(n.next=o.next,o.next=n),t.interleaved=n,ln(e,r)}function ln(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ln(e,n)}return o=r.interleaved,o===null?(t.next=t,hd(r)):(t.next=o.next,o.next=t),r.interleaved=t,ln(e,n)}function Ui(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}function nh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ya(e,t,n,r){var o=e.updateQueue;jn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(s!==null){var h=o.baseState;i=0,f=u=c=null,l=s;do{var p=l.lane,w=l.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(p=t,w=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){h=S.call(w,h,p);break e}h=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,p=typeof S=="function"?S.call(w,h,p):S,p==null)break e;h=ge({},h,p);break e;case 2:jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else w={eventTime:w,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=w,c=h):f=f.next=w,i|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Sr|=i,e.lanes=i,e.memoizedState=h}}function rh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(I(191,o));o.call(r)}}}var ei={},Wt=Zn(ei),Ms=Zn(ei),_s=Zn(ei);function lr(e){if(e===ei)throw Error(I(174));return e}function md(e,t){switch(le(_s,t),le(Ms,e),le(Wt,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mc(t,e)}de(Wt),le(Wt,t)}function No(){de(Wt),de(Ms),de(_s)}function cg(e){lr(_s.current);var t=lr(Wt.current),n=mc(t,e.type);t!==n&&(le(Ms,e),le(Wt,n))}function gd(e){Ms.current===e&&(de(Wt),de(Ms))}var pe=Zn(0);function va(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Al=[];function yd(){for(var e=0;e<Al.length;e++)Al[e]._workInProgressVersionPrimary=null;Al.length=0}var Bi=pn.ReactCurrentDispatcher,Ol=pn.ReactCurrentBatchConfig,br=0,me=null,Ne=null,Re=null,xa=!1,ms=!1,Ls=0,mw=0;function Ie(){throw Error(I(321))}function vd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function xd(e,t,n,r,o,s){if(br=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bi.current=e===null||e.memoizedState===null?xw:ww,e=n(r,o),ms){s=0;do{if(ms=!1,Ls=0,25<=s)throw Error(I(301));s+=1,Re=Ne=null,t.updateQueue=null,Bi.current=bw,e=n(r,o)}while(ms)}if(Bi.current=wa,t=Ne!==null&&Ne.next!==null,br=0,Re=Ne=me=null,xa=!1,t)throw Error(I(300));return e}function wd(){var e=Ls!==0;return Ls=0,e}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=e:Re=Re.next=e,Re}function xt(){if(Ne===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Re===null?me.memoizedState:Re.next;if(t!==null)Re=t,Ne=e;else{if(e===null)throw Error(I(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Re===null?me.memoizedState=Re=e:Re=Re.next=e}return Re}function Is(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=xt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Ne,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,c=null,u=s;do{var f=u.lane;if((br&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,i=r):c=c.next=h,me.lanes|=f,Sr|=f}u=u.next}while(u!==null&&u!==s);c===null?i=r:c.next=l,At(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,me.lanes|=s,Sr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _l(e){var t=xt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);At(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ug(){}function dg(e,t){var n=me,r=xt(),o=t(),s=!At(r.memoizedState,o);if(s&&(r.memoizedState=o,qe=!0),r=r.queue,bd(pg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Ds(9,hg.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(I(349));br&30||fg(n,t,o)}return o}function fg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hg(e,t,n,r){t.value=n,t.getSnapshot=r,mg(t)&&gg(e)}function pg(e,t,n){return n(function(){mg(t)&&gg(e)})}function mg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function gg(e){var t=ln(e,1);t!==null&&Rt(t,e,1,-1)}function oh(e){var t=Dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Is,lastRenderedState:e},t.queue=e,e=e.dispatch=vw.bind(null,me,e),[t.memoizedState,e]}function Ds(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function yg(){return xt().memoizedState}function Vi(e,t,n,r){var o=Dt();me.flags|=e,o.memoizedState=Ds(1|t,n,void 0,r===void 0?null:r)}function Va(e,t,n,r){var o=xt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var i=Ne.memoizedState;if(s=i.destroy,r!==null&&vd(r,i.deps)){o.memoizedState=Ds(t,n,s,r);return}}me.flags|=e,o.memoizedState=Ds(1|t,n,s,r)}function sh(e,t){return Vi(8390656,8,e,t)}function bd(e,t){return Va(2048,8,e,t)}function vg(e,t){return Va(4,2,e,t)}function xg(e,t){return Va(4,4,e,t)}function wg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bg(e,t,n){return n=n!=null?n.concat([e]):null,Va(4,4,wg.bind(null,t,e),n)}function Sd(){}function Sg(e,t){var n=xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jg(e,t){var n=xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eg(e,t,n){return br&21?(At(n,t)||(n=Pm(),me.lanes|=n,Sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function gw(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{oe=n,Ol.transition=r}}function Cg(){return xt().memoizedState}function yw(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kg(e))Ng(t,n);else if(n=ag(e,t,n,r),n!==null){var o=He();Rt(n,e,r,o),Tg(n,t,r)}}function vw(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kg(e))Ng(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,At(l,i)){var c=t.interleaved;c===null?(o.next=o,hd(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=ag(e,t,o,r),n!==null&&(o=He(),Rt(n,e,r,o),Tg(n,t,r))}}function kg(e){var t=e.alternate;return e===me||t!==null&&t===me}function Ng(e,t){ms=xa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var wa={readContext:vt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},xw={readContext:vt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:sh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4194308,4,wg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yw.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:oh,useDebugValue:Sd,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=oh(!1),t=e[0];return e=gw.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=Dt();if(fe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ae===null)throw Error(I(349));br&30||fg(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,sh(pg.bind(null,r,s,e),[e]),r.flags|=2048,Ds(9,hg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Dt(),t=Ae.identifierPrefix;if(fe){var n=nn,r=tn;n=(r&~(1<<32-Pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ls++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ww={readContext:vt,useCallback:Sg,useContext:vt,useEffect:bd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:xg,useMemo:jg,useReducer:Ml,useRef:yg,useState:function(){return Ml(Is)},useDebugValue:Sd,useDeferredValue:function(e){var t=xt();return Eg(t,Ne.memoizedState,e)},useTransition:function(){var e=Ml(Is)[0],t=xt().memoizedState;return[e,t]},useMutableSource:ug,useSyncExternalStore:dg,useId:Cg,unstable_isNewReconciler:!1},bw={readContext:vt,useCallback:Sg,useContext:vt,useEffect:bd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:xg,useMemo:jg,useReducer:_l,useRef:yg,useState:function(){return _l(Is)},useDebugValue:Sd,useDeferredValue:function(e){var t=xt();return Ne===null?t.memoizedState=e:Eg(t,Ne.memoizedState,e)},useTransition:function(){var e=_l(Is)[0],t=xt().memoizedState;return[e,t]},useMutableSource:ug,useSyncExternalStore:dg,useId:Cg,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ic(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ha={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=Vn(e),s=rn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,o),t!==null&&(Rt(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=Vn(e),s=rn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,o),t!==null&&(Rt(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Vn(e),o=rn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Un(e,o,r),t!==null&&(Rt(t,e,r,n),Ui(t,e,r))}};function ih(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ps(n,r)||!Ps(o,s):!0}function Pg(e,t,n){var r=!1,o=Gn,s=t.contextType;return typeof s=="object"&&s!==null?s=vt(s):(o=Je(t)?xr:$e.current,r=t.contextTypes,s=(r=r!=null)?Eo(e,o):Gn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ha,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function ah(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ha.enqueueReplaceState(t,t.state,null)}function Dc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},pd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=vt(s):(s=Je(t)?xr:$e.current,o.context=Eo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ic(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ha.enqueueReplaceState(o,o.state,null),ya(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var n="",r=t;do n+=Y0(r),r=r.return;while(r);var o=n}catch(s){o=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Ll(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Sw=typeof WeakMap=="function"?WeakMap:Map;function Rg(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sa||(Sa=!0,Gc=r),Fc(e,t)},n}function Ag(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Fc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Fc(e,t),typeof r!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function lh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Sw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Iw.bind(null,e,t,n),t.then(e,e))}function ch(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function uh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e)}var jw=pn.ReactCurrentOwner,qe=!1;function Ve(e,t,n,r){t.child=e===null?ig(t,null,n,r):ko(t,e.child,n,r)}function dh(e,t,n,r,o){n=n.render;var s=t.ref;return to(t,o),r=xd(e,t,n,r,s,o),n=wd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cn(e,t,o)):(fe&&n&&ad(t),t.flags|=1,Ve(e,t,r,o),t.child)}function fh(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Rd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Og(e,t,s,r,o)):(e=Qi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ps,n(i,r)&&e.ref===t.ref)return cn(e,t,o)}return t.flags|=1,e=Hn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Og(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ps(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,cn(e,t,o)}return zc(e,t,n,r,o)}function Mg(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Yr,nt),nt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(Yr,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,le(Yr,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,le(Yr,nt),nt|=r;return Ve(e,t,o,n),t.child}function _g(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,074 bytes, line 40
40function zc(e,t,n,r,o){var s=Je(n)?xr:$e.current;return s=Eo(t,s),to(t,o),n=xd(e,t,n,r,s,o),r=wd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cn(e,t,o)):(fe&&r&&ad(t),t.flags|=1,Ve(e,t,n,o),t.child)}function hh(e,t,n,r,o){if(Je(n)){var s=!0;fa(t)}else s=!1;if(to(t,o),t.stateNode===null)Hi(e,t),Pg(t,n,r),Dc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=vt(u):(u=Je(n)?xr:$e.current,u=Eo(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&ah(t,i,r,u),jn=!1;var p=t.memoizedState;i.state=p,ya(t,r,i,o),c=t.memoizedState,l!==r||p!==c||Xe.current||jn?(typeof f=="function"&&(Ic(t,n,f,r),c=t.memoizedState),(l=jn||ih(t,n,l,r,p,c,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,lg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:jt(t.type,l),i.props=u,h=t.pendingProps,p=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=vt(c):(c=Je(n)?xr:$e.current,c=Eo(t,c));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||p!==c)&&ah(t,i,r,c),jn=!1,p=t.memoizedState,i.state=p,ya(t,r,i,o);var S=t.memoizedState;l!==h||p!==S||Xe.current||jn?(typeof w=="function"&&(Ic(t,n,w,r),S=t.memoizedState),(u=jn||ih(t,n,u,r,p,S,c)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $c(e,t,n,r,s,o)}function $c(e,t,n,r,o,s){_g(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Jf(t,n,!1),cn(e,t,s);r=t.stateNode,jw.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ko(t,e.child,null,s),t.child=ko(t,null,l,s)):Ve(e,t,l,s),t.memoizedState=r.state,o&&Jf(t,n,!0),t.child}function Lg(e){var t=e.stateNode;t.pendingContext?Xf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xf(e,t.context,!1),md(e,t.containerInfo)}function ph(e,t,n,r,o){return Co(),cd(o),t.flags|=256,Ve(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0};function Bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ig(e,t,n){var r=t.pendingProps,o=pe.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),le(pe,o&1),e===null)return _c(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Qa(i,r,0,null),e=vr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Bc(n),t.memoizedState=Uc,e):jd(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ew(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Hn(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=Hn(l,s):(s=vr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Bc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Uc,r}return s=e.child,e=s.sibling,r=Hn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}
vendor: 8,555 bytes, line 40
40function jd(e,t){return t=Qa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ji(e,t,n,r){return r!==null&&cd(r),ko(t,e.child,null,n),e=jd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ew(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Ll(Error(I(422))),ji(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Qa({mode:"visible",children:r.children},o,0,null),s=vr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ko(t,e.child,null,i),t.child.memoizedState=Bc(i),t.memoizedState=Uc,s);if(!(t.mode&1))return ji(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(I(419)),r=Ll(s,r,void 0),ji(e,t,i,r)}if(l=(i&e.childLanes)!==0,qe||l){if(r=Ae,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,ln(e,o),Rt(r,e,o,-1))}return Pd(),r=Ll(Error(I(421))),ji(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Dw.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ot=$n(o.nextSibling),st=t,fe=!0,kt=null,e!==null&&(pt[mt++]=tn,pt[mt++]=nn,pt[mt++]=wr,tn=e.id,nn=e.overflow,wr=t),t=jd(t,r.children),t.flags|=4096,t)}function mh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lc(e.return,t,n)}function Il(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Dg(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Ve(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mh(e,n,t);else if(e.tag===19)mh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&va(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Il(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&va(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Il(t,!0,n,null,s);break;case"together":Il(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cw(e,t,n){switch(t.tag){case 3:Lg(t),Co();break;case 5:cg(t);break;case 1:Je(t.type)&&fa(t);break;case 4:md(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;le(ma,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?Ig(e,t,n):(le(pe,pe.current&1),e=cn(e,t,n),e!==null?e.sibling:null);le(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Dg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),le(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,Mg(e,t,n)}return cn(e,t,n)}var Fg,Vc,zg,$g;Fg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vc=function(){};zg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lr(Wt.current);var s=null;switch(n){case"input":o=dc(e,o),r=dc(e,r),s=[];break;case"select":o=ge({},o,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case"textarea":o=pc(e,o),r=pc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ua)}gc(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ss.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ss.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ue("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};$g=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xo(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function kw(e,t,n){var r=t.pendingProps;switch(ld(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Je(t.type)&&da(),De(t),null;case 3:return r=t.stateNode,No(),de(Xe),de($e),yd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(bi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kt!==null&&(Xc(kt),kt=null))),Vc(e,t),De(t),null;case 5:gd(t);var o=lr(_s.current);if(n=t.type,e!==null&&t.stateNode!=null)zg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return De(t),null}if(e=lr(Wt.current),bi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Bt]=t,r[Os]=s,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(o=0;o<ls.length;o++)ue(ls[o],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Ef(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":kf(r,s),ue("invalid",r)}gc(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),o=["children",""+l]):Ss.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&ue("scroll",r)}switch(n){case"input":fi(r),Cf(r,s,!0);break;case"textarea":fi(r),Nf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ua)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Bt]=t,e[Os]=r,Fg(e,t,!1,!1),t.stateNode=e;e:{switch(i=yc(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;o<ls.length;o++)ue(ls[o],e);o=r;break;case"source":ue("error",e),o=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),o=r;break;case"details":ue("toggle",e),o=r;break;case"input":Ef(e,r),o=dc(e,r),ue("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ge({},r,{value:void 0}),ue("invalid",e);break;case"textarea":kf(e,r),o=pc(e,r),ue("invalid",e);break;default:o=r}gc(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?ym(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&mm(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&js(e,c):typeof c=="number"&&js(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ss.hasOwnProperty(s)?c!=null&&s==="onScroll"&&ue("scroll",e):c!=null&&Qu(e,s,c,i))}switch(n){case"input":fi(e),Cf(e,r,!1);break;case"textarea":fi(e),Nf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Xr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Xr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ua)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return De(t),null;case 6:if(e&&t.stateNode!=null)$g(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=lr(_s.current),lr(Wt.current),bi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(s=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return De(t),null;case 13:if(de(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&ot!==null&&t.mode&1&&!(t.flags&128))og(),Co(),t.flags|=98560,s=!1;else if(s=bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(I(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(I(317)
vendor: 29,073 bytes, line 40
40);s[Bt]=t}else Co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;De(t),s=!1}else kt!==null&&(Xc(kt),kt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?Pe===0&&(Pe=3):Pd())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return No(),Vc(e,t),e===null&&Rs(t.stateNode.containerInfo),De(t),null;case 10:return fd(t.type._context),De(t),null;case 17:return Je(t.type)&&da(),De(t),null;case 19:if(de(pe),s=t.memoizedState,s===null)return De(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Xo(s,!1);else{if(Pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=va(e),i!==null){for(t.flags|=128,Xo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(pe,pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&be()>Po&&(t.flags|=128,r=!0,Xo(s,!1),t.lanes=4194304)}else{if(!r)if(e=va(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!fe)return De(t),null}else 2*be()-s.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,r=!0,Xo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=be(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Td(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Nw(e,t){switch(ld(t),t.tag){case 1:return Je(t.type)&&da(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(),de(Xe),de($e),yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gd(t),null;case 13:if(de(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(pe),null;case 4:return No(),null;case 10:return fd(t.type._context),null;case 22:case 23:return Td(),null;case 24:return null;default:return null}}var Ei=!1,ze=!1,Tw=typeof WeakSet=="function"?WeakSet:Set,V=null;function Gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Hc(e,t,n){try{n()}catch(r){xe(e,t,r)}}var gh=!1;function Pw(e,t){if(Nc=aa,e=Wm(),id(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(l=i+o),h!==s||r!==0&&h.nodeType!==3||(c=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)p=h,h=w;for(;;){if(h===e)break t;if(p===n&&++u===o&&(l=i),p===s&&++f===r&&(c=i),(w=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=w}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tc={focusedElem:e,selectionRange:n},aa=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,b=S.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:jt(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(x){xe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return S=gh,gh=!1,S}function gs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Hc(t,n,s)}o=o.next}while(o!==r)}}function Wa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Wc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[Os],delete t[Ac],delete t[dw],delete t[fw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bg(e){return e.tag===5||e.tag===3||e.tag===4}function yh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ua));else if(r!==4&&(e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}var Me=null,Ct=!1;function yn(e,t,n){for(n=n.child;n!==null;)Vg(e,t,n),n=n.sibling}function Vg(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 5:ze||Gr(n,t);case 6:var r=Me,o=Ct;Me=null,yn(e,t,n),Me=r,Ct=o,Me!==null&&(Ct?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Ct?(e=Me,n=n.stateNode,e.nodeType===8?Pl(e.parentNode,n):e.nodeType===1&&Pl(e,n),Ns(e)):Pl(Me,n.stateNode));break;case 4:r=Me,o=Ct,Me=n.stateNode.containerInfo,Ct=!0,yn(e,t,n),Me=r,Ct=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Hc(n,t,i),o=o.next}while(o!==r)}yn(e,t,n);break;case 1:if(!ze&&(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){xe(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,yn(e,t,n),ze=r):yn(e,t,n);break;default:yn(e,t,n)}}function vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tw),t.forEach(function(r){var o=Fw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Me=l.stateNode,Ct=!1;break e;case 3:Me=l.stateNode.containerInfo,Ct=!0;break e;case 4:Me=l.stateNode.containerInfo,Ct=!0;break e}l=l.return}if(Me===null)throw Error(I(160));Vg(s,i,o),Me=null,Ct=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){xe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hg(t,e),t=t.sibling}function Hg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(St(t,e),It(e),r&4){try{gs(3,e,e.return),Wa(3,e)}catch(y){xe(e,e.return,y)}try{gs(5,e,e.return)}catch(y){xe(e,e.return,y)}}break;case 1:St(t,e),It(e),r&512&&n!==null&&Gr(n,n.return);break;case 5:if(St(t,e),It(e),r&512&&n!==null&&Gr(n,n.return),e.flags&32){var o=e.stateNode;try{js(o,"")}catch(y){xe(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&fm(o,s),yc(l,i);var u=yc(l,s);for(i=0;i<c.length;i+=2){var f=c[i],h=c[i+1];f==="style"?ym(o,h):f==="dangerouslySetInnerHTML"?mm(o,h):f==="children"?js(o,h):Qu(o,f,h,u)}switch(l){case"input":fc(o,s);break;case"textarea":hm(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?Xr(o,!!s.multiple,w,!1):p!==!!s.multiple&&(s.defaultValue!=null?Xr(o,!!s.multiple,s.defaultValue,!0):Xr(o,!!s.multiple,s.multiple?[]:"",!1))}o[Os]=s}catch(y){xe(e,e.return,y)}}break;case 6:if(St(t,e),It(e),r&4){if(e.stateNode===null)throw Error(I(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(y){xe(e,e.return,y)}}break;case 3:if(St(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ns(t.containerInfo)}catch(y){xe(e,e.return,y)}break;case 4:St(t,e),It(e);break;case 13:St(t,e),It(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(kd=be())),r&4&&vh(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(u=ze)||f,St(t,e),ze=u):St(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(V=e,f=e.child;f!==null;){for(h=V=f;V!==null;){switch(p=V,w=p.child,p.tag){case 0:case 11:case 14:case 15:gs(4,p,p.return);break;case 1:Gr(p,p.return);var S=p.stateNode;if(typeof S.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(y){xe(r,n,y)}}break;case 5:Gr(p,p.return);break;case 22:if(p.memoizedState!==null){wh(h);continue}}w!==null?(w.return=p,V=w):wh(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{o=h.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=gm("display",i))}catch(y){xe(e,e.return,y)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){xe(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:St(t,e),It(e),r&4&&vh(e);break;case 21:break;default:St(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Bg(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(js(o,""),r.flags&=-33);var s=yh(e);Qc(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=yh(e);Kc(e,l,i);break;default:throw Error(I(161))}}catch(c){xe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rw(e,t,n){V=e,Wg(e)}function Wg(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var o=V,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ei;if(!i){var l=o.alternate,c=l!==null&&l.memoizedState!==null||ze;l=Ei;var u=ze;if(Ei=i,(ze=c)&&!u)for(V=o;V!==null;)i=V,c=i.child,i.tag===22&&i.memoizedState!==null?bh(o):c!==null?(c.return=i,V=c):bh(o);for(;s!==null;)V=s,Wg(s),s=s.sibling;V=o,Ei=l,ze=u}xh(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,V=s):xh(e)}}function xh(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Wa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:jt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&rh(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rh(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&Ns(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}ze||t.flags&512&&Wc(t)}catch(p){xe(t,t.return,p)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function wh(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function bh(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wa(4,t)}catch(c){xe(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){xe(t,o,c)}}var s=t.return;try{Wc(t)}catch(c){xe(t,s,c)}break;case 5:var i=t.return;try{Wc(t)}catch(c){xe(t,i,c)}}}catch(c){xe(t,t.return,c)}if(t===e){V=null;break}var l=t.sibling;if(l!==null){l.return=t.return,V=l;break}V=t.return}}var Aw=Math.ceil,ba=pn.ReactCurrentDispatcher,Ed=pn.ReactCurrentOwner,yt=pn.ReactCurrentBatchConfig,ee=0,Ae=null,je=null,_e=0,nt=0,Yr=Zn(0),Pe=0,Fs=null,Sr=0,Ka=0,Cd=0,ys=null,Ye=null,kd=0,Po=1/0,Jt=null,Sa=!1,Gc=null,Bn=null,Ci=!1,In=null,ja=0,vs=0,Yc=null,Wi=-1,Ki=0;function He(){return ee&6?be():Wi!==-1?Wi:Wi=be()}function Vn(e){return e.mode&1?ee&2&&_e!==0?_e&-_e:pw.transition!==null?(Ki===0&&(Ki=Pm()),Ki):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Im(e.type)),e):1}function Rt(e,t,n,r){if(50<vs)throw vs=0,Yc=null,Error(I(185));Xs(e,n,r),(!(ee&2)||e!==Ae)&&(e===Ae&&(!(ee&2)&&(Ka|=n),Pe===4&&Cn(e,_e)),Ze(e,r),n===1&&ee===0&&!(t.mode&1)&&(Po=be()+500,Ba&&er()))}function Ze(e,t){var n=e.callbackNode;p1(e,t);var r=ia(e,e===Ae?_e:0);if(r===0)n!==null&&Rf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rf(n),t===1)e.tag===0?hw(Sh.bind(null,e)):tg(Sh.bind(null,e)),cw(function(){!(ee&6)&&er()}),n=null;else{switch(Rm(r)){case 1:n=Ju;break;case 4:n=Nm;break;case 16:n=sa;break;case 536870912:n=Tm;break;default:n=sa}n=Zg(n,Kg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kg(e,t){if(Wi=-1,Ki=0,ee&6)throw Error(I(327));var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var r=ia(e,e===Ae?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ea(e,r);else{t=r;var o=ee;ee|=2;var s=Gg();(Ae!==e||_e!==t)&&(Jt=null,Po=be()+500,yr(e,t));do try{_w();break}catch(l){Qg(e,l)}while(!0);dd(),ba.current=s,ee=o,je!==null?t=0:(Ae=null,_e=0,t=Pe)}if(t!==0){if(t===2&&(o=Sc(e),o!==0&&(r=o,t=qc(e,o))),t===1)throw n=Fs,yr(e,0),Cn(e,r),Ze(e,be()),n;if(t===6)Cn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Ow(o)&&(t=Ea(e,r),t===2&&(s=Sc(e),s!==0&&(r=s,t=qc(e,s))),t===1))throw n=Fs,yr(e,0),Cn(e,r),Ze(e,be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:sr(e,Ye,Jt);break;case 3:if(Cn(e,r),(r&130023424)===r&&(t=kd+500-be(),10<t)){if(ia(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Rc(sr.bind(null,e,Ye,Jt),t);break}sr(e,Ye,Jt);break;case 4:if(Cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Pt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Aw(r/1960))-r,10<r){e.timeoutHandle=Rc(sr.bind(null,e,Ye,Jt),r);break}sr(e,Ye,Jt);break;case 5:sr(e,Ye,Jt);break;default:throw Error(I(329))}}}return Ze(e,be()),e.callbackNode===n?Kg.bind(null,e):null}function qc(e,t){var n=ys;return e.current.memoizedState.isDehydrated&&(yr(e,t).flags|=256),e=Ea(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&Xc(t)),e}function Xc(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function Ow(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!At(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cn(e,t){for(t&=~Cd,t&=~Ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pt(t),r=1<<n;e[n]=-1,t&=~r}}function Sh(e){if(ee&6)throw Error(I(327));no();var t=ia(e,0);if(!(t&1))return Ze(e,be()),null;var n=Ea(e,t);if(e.tag!==0&&n===2){var r=Sc(e);r!==0&&(t=r,n=qc(e,r))}if(n===1)throw n=Fs,yr(e,0),Cn(e,t),Ze(e,be()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sr(e,Ye,Jt),Ze(e,be()),null}function Nd(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(Po=be()+500,Ba&&er())}}function jr(e){In!==null&&In.tag===0&&!(ee&6)&&no();var t=ee;ee|=1;var n=yt.transition,r=oe;try{if(yt.transition=null,oe=1,e)return e()}finally{oe=r,yt.transition=n,ee=t,!(ee&6)&&er()}}function Td(){nt=Yr.current,de(Yr)}function yr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,lw(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(ld(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&da();break;case 3:No(),de(Xe),de($e),yd();break;case 5:gd(r);break;case 4:No();break;case 13:de(pe);break;case 19:de(pe);break;case 10:fd(r.type._context);break;case 22:case 23:Td()}n=n.return}if(Ae=e,je=e=Hn(e.current,null),_e=nt=t,Pe=0,Fs=null,Cd=Ka=Sr=0,Ye=ys=null,ar!==null){for(t=0;t<ar.length;t++)if(n=ar[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ar=null}return e}function Qg(e,t){do{var n=je;try{if(dd(),Bi.current=wa,xa){for(var r=me.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}xa=!1}if(br=0,Re=Ne=me=null,ms=!1,Ls=0,Ed.current=null,n===null||n.return===null){Pe=1,Fs=t,je=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=_e,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var w=ch(i);if(w!==null){w.flags&=-257,uh(w,i,l,s,t),w.mode&1&&lh(s,u,t),t=w,c=u;var S=t.updateQueue;if(S===null){var y=new Set;y.add(c),t.updateQueue=y}else S.add(c);break e}else{if(!(t&1)){lh(s,u,t),Pd();break e}c=Error(I(426))}}else if(fe&&l.mode&1){var b=ch(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),uh(b,i,l,s,t),cd(To(c,l));break e}}s=c=To(c,l),Pe!==4&&(Pe=2),ys===null?ys=[s]:ys.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Rg(s,c,t);nh(s,g);break e;case 1:l=c;var m=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Bn===null||!Bn.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var x=Ag(s,l,t);nh(s,x);break e}}s=s.return}while(s!==null)}qg(n)}catch(E){t=E,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function Gg(){var e=ba.current;return ba.current=wa,e===null?wa:e}function Pd(){(Pe===0||Pe===3||Pe===2)&&(Pe=4),Ae===null||!(Sr&268435455)&&!(Ka&268435455)||Cn(Ae,_e)}function Ea(e,t){var n=ee;ee|=2;var r=Gg();(Ae!==e||_e!==t)&&(Jt=null,yr(e,t));do try{Mw();break}catch(o){Qg(e,o)}while(!0);if(dd(),ee=n,ba.current=r,je!==null)throw Error(I(261));return Ae=null,_e=0,Pe}function Mw(){for(;je!==null;)Yg(je)}function _w(){for(;je!==null&&!s1();)Yg(je)}function Yg(e){var t=Jg(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?qg(e):je=t,Ed.current=null}function qg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Nw(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pe=6,je=null;return}}else if(n=kw(n,t,nt),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Pe===0&&(Pe=5)}function sr(e,t,n){var r=oe,o=yt.transition;try{yt.transition=null,oe=1,Lw(e,t,n,r)}finally{yt.transition=o,oe=r}return null}function Lw(e,t,n,r){do no();while(In!==null);if(ee&6)throw Error(I(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(m1(e,s),e===Ae&&(je=Ae=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ci||(Ci=!0,Zg(sa,function(){return no(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=yt.transition,yt.transition=null;var i=oe;oe=1;var l=ee;ee|=4,Ed.current=null,Pw(e,n),Hg(n,e),tw(Tc),aa=!!Nc,Tc=Nc=null,e.current=n,Rw(n),i1(),ee=l,oe=i,yt.transition=s}else e.current=n;if(Ci&&(Ci=!1,In=e,ja=o),s=e.pendingLanes,s===0&&(Bn=null),c1(n.stateNode),Ze(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Sa)throw Sa=!1,e=Gc,Gc=null,e;return ja&1&&e.tag!==0&&no(),s=e.pendingLanes,s&1?e===Yc?vs++:(vs=0,Yc=e):vs=0,er(),null}function no(){if(In!==null){var e=Rm(ja),t=yt.transition,n=oe;try{if(yt.transition=null,oe=16>e?16:e,In===null)var r=!1;else{if(e=In,In=null,ja=0,ee&6)throw Error(I(331));var o=ee;for(ee|=4,V=e.current;V!==null;){var s=V,i=s.child;if(V.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(V=u;V!==null;){var f=V;switch(f.tag){case 0:case 11:case 15:gs(8,f,s)}var h=f.child;if(h!==null)h.return=f,V=h;else for(;V!==null;){f=V;var p=f.sibling,w=f.return;if(Ug(f),f===u){V=null;break}if(p!==null){p.return=w,V=p;break}V=w}}}var S=s.alternate;if(S!==null){var y=S.child;if(y!==null){S.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}V=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,V=i;else e:for(;V!==null;){if(s=V,s.flags&2048)switch(s.tag){case 0:case 11:case 15:gs(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,V=g;break e}V=s.return}}var m=e.current;for(V=m;V!==null;){i=V;var v=i.child;if(i.subtreeFlags&2064&&v!==null)v.return=i,V=v;else e:for(i=m;V!==null;){if(l=V,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Wa(9,l)}}catch(E){xe(l,l.return,E)}if(l===i){V=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,V=x;break e}V=l.return}}if(ee=o,er(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Da,e)}catch{}r=!0}return r}finally{oe=n,yt.transition=t}}return!1}function jh(e,t,n){t=To(n,t),t=Rg(e,t,1),e=Un(e,t,1),t=He(),e!==null&&(Xs(e,1,t),Ze(e,t))}function xe(e,t,n){if(e.tag===3)jh(e,e,n);else for(;t!==null;){if(t.tag===3){jh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bn===null||!Bn.has(r))){e=To(n,e),e=Ag(t,e,1),t=Un(t,e,1),e=He(),t!==null&&(Xs(t,1,e),Ze(t,e));break}}t=t.return}}function Iw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(_e&n)===n&&(Pe===4||Pe===3&&(_e&130023424)===_e&&500>be()-kd?yr(e,0):Cd|=n),Ze(e,t)}function Xg(e,t){t===0&&(e.mode&1?(t=mi,mi<<=1,!(mi&130023424)&&(mi=4194304)):t=1);var n=He();e=ln(e,t),e!==null&&(Xs(e,t,n),Ze(e,n))}function Dw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xg(e,n)}function Fw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Xg(e,n)}var Jg;Jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Cw(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&ng(t,pa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var o=Eo(t,$e.current);to(t,n),o=xd(null,t,r,e,o,n);var s=wd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(s=!0,fa(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pd(t),o.updater=Ha,t.stateNode=o,o._reactInternals=t,Dc(t,r,e,n),t=$c(null,t,r,!0,s,n)):(t.tag=0,fe&&s&&ad(t),Ve(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$w(r),e=jt(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=hh(null,t,r,e,n);break e;case 11:t=dh(null,t,r,e,n);break e;case 14:t=fh(null,t,r,jt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),hh(e,t,r,o,n);case 3:e:{if(Lg(t),e===null)throw Error(I(387));r=t.pendingProps,s=t.memoizedState,o=s.element,lg(e,t),ya(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=To(Error(I(423)),t),t=ph(e,t,r,n,o);break e}else if(r!==o){o=To(Error(I(424)),t),t=ph(e,t,r,n,o);break e}else for(ot=$n(t.stateNode.containerInfo.firstChild),st=t,fe=!0,kt=null,n=ig(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Co(),r===o){t=cn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return cg(t),e===null&&_c(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Pc(r,o)?i=null:s!==null&&Pc(r,s)&&(t.flags|=32),_g(e,t),Ve(e,t,i,n),t.child;case 6:return e===null&&_c(t),null;case 13:return Ig(e,t,n);case 4:return md(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ko(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),dh(e,t,r,o,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,le(ma,r._currentValue),r._currentValue=i,s!==null)if(At(s.value,i)){if(s.children===o.children&&!Xe.current){t=cn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=rn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Lc(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(I(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Lc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ve(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,to(t,n),o=vt(o),r=r(o),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),fh(e,t,r,o,n);case 15:return Og(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Hi(e,t),t.tag=1,Je(r)?(e=!0,fa(t)):e=!1,to(t,n),Pg(t,r,o),Dc(t,r,o,n),$c(null,t,r,!0,e,n);case 19:return Dg(e,t,n);case 22:return Mg(e,t,n)}throw Error(I(156,t.tag))};function Zg(e,t){return km(e,t)}function zw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,n,r){return new zw(e,t,n,r)}function Rd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $w(e){if(typeof e=="function")return Rd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===qu)return 14}return 2}function Hn(e,t){var n=e.alternate;return n===null?(n=gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 10,242 bytes, lines 40-48
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Rd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case zr:return vr(n.children,o,s,t);case Gu:i=8,o|=8;break;case ac:return e=gt(12,n,t,o|2),e.elementType=ac,e.lanes=s,e;case lc:return e=gt(13,n,t,o),e.elementType=lc,e.lanes=s,e;case cc:return e=gt(19,n,t,o),e.elementType=cc,e.lanes=s,e;case cm:return Qa(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case am:i=10;break e;case lm:i=9;break e;case Yu:i=11;break e;case qu:i=14;break e;case Sn:i=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=gt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function vr(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function Qa(e,t,n,r){return e=gt(22,e,r,t),e.elementType=cm,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function Fl(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vl(0),this.expirationTimes=vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ad(e,t,n,r,o,s,i,l,c){return e=new Uw(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=gt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pd(s),e}function Bw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ey(e){if(!e)return Gn;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(Je(n))return eg(e,n,t)}return t}function ty(e,t,n,r,o,s,i,l,c){return e=Ad(n,r,!0,e,o,s,i,l,c),e.context=ey(null),n=e.current,r=He(),o=Vn(n),s=rn(r,o),s.callback=t??null,Un(n,s,o),e.current.lanes=o,Xs(e,o,r),Ze(e,r),e}function Ga(e,t,n,r){var o=t.current,s=He(),i=Vn(o);return n=ey(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Un(o,t,i),e!==null&&(Rt(e,o,i,s),Ui(e,o,i)),i}function Ca(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Eh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Od(e,t){Eh(e,t),(e=e.alternate)&&Eh(e,t)}function Vw(){return null}var ny=typeof reportError=="function"?reportError:function(e){console.error(e)};function Md(e){this._internalRoot=e}Ya.prototype.render=Md.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Ga(e,t,null,null)};Ya.prototype.unmount=Md.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){Ga(null,e,null,null)}),t[an]=null}};function Ya(e){this._internalRoot=e}Ya.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<En.length&&t!==0&&t<En[n].priority;n++);En.splice(n,0,e),n===0&&Lm(e)}};function _d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ch(){}function Hw(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Ca(i);s.call(u)}}var i=ty(t,r,e,0,null,!1,!1,"",Ch);return e._reactRootContainer=i,e[an]=i.current,Rs(e.nodeType===8?e.parentNode:e),jr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ca(c);l.call(u)}}var c=Ad(e,0,!1,null,null,!1,!1,"",Ch);return e._reactRootContainer=c,e[an]=c.current,Rs(e.nodeType===8?e.parentNode:e),jr(function(){Ga(t,c,n,r)}),c}function Xa(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var c=Ca(i);l.call(c)}}Ga(t,i,e,o)}else i=Hw(n,t,e,o,r);return Ca(i)}Am=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=as(t.pendingLanes);n!==0&&(Zu(t,n|1),Ze(t,be()),!(ee&6)&&(Po=be()+500,er()))}break;case 13:jr(function(){var r=ln(e,1);if(r!==null){var o=He();Rt(r,e,1,o)}}),Od(e,1)}};ed=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var n=He();Rt(t,e,134217728,n)}Od(e,134217728)}};Om=function(e){if(e.tag===13){var t=Vn(e),n=ln(e,t);if(n!==null){var r=He();Rt(n,e,t,r)}Od(e,t)}};Mm=function(){return oe};_m=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};xc=function(e,t,n){switch(t){case"input":if(fc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ua(r);if(!o)throw Error(I(90));dm(r),fc(r,o)}}}break;case"textarea":hm(e,n);break;case"select":t=n.value,t!=null&&Xr(e,!!n.multiple,t,!1)}};wm=Nd;bm=jr;var Ww={usingClientEntryPoint:!1,Events:[Zs,Vr,Ua,vm,xm,Nd]},Jo={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Kw={bundleType:Jo.bundleType,version:Jo.version,rendererPackageName:Jo.rendererPackageName,rendererConfig:Jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Em(e),e===null?null:e.stateNode},findFiberByHostInstance:Jo.findFiberByHostInstance||Vw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{Da=ki.inject(Kw),Ht=ki}catch{}}ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ww;ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_d(t))throw Error(I(200));return Bw(e,t,null,n)};ct.createRoot=function(e,t){if(!_d(e))throw Error(I(299));var n=!1,r="",o=ny;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ad(e,1,!1,null,null,n,!1,r,o),e[an]=t.current,Rs(e.nodeType===8?e.parentNode:e),new Md(t)};ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=Em(t),e=e===null?null:e.stateNode,e};ct.flushSync=function(e){return jr(e)};ct.hydrate=function(e,t,n){if(!qa(t))throw Error(I(200));return Xa(null,e,t,!0,n)};ct.hydrateRoot=function(e,t,n){if(!_d(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=ny;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=ty(t,null,e,1,n??null,o,!1,s,i),e[an]=t.current,Rs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ya(t)};ct.render=function(e,t,n){if(!qa(t))throw Error(I(200));return Xa(null,e,t,!1,n)};ct.unmountComponentAtNode=function(e){if(!qa(e))throw Error(I(40));return e._reactRootContainer?(jr(function(){Xa(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1};ct.unstable_batchedUpdates=Nd;ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qa(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Xa(e,t,n,!1,r)};ct.version="18.3.1-next-f1338f8080-20240426";function ry(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ry)}catch(e){console.error(e)}}ry(),rm.exports=ct;var Io=rm.exports;const Qw=Ys(Io);var oy,kh=Io;oy=kh.createRoot,kh.hydrateRoot;function Gw(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,o,s,i=[],l="",c=e.split("/");for(c[0]||c.shift();o=c.shift();)n=o[0],n==="*"?(i.push(n),l+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=o.indexOf("?",1),s=o.indexOf(".",1),i.push(o.substring(1,~r?r:~s?s:o.length)),l+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(l+=(~r?"?":"")+"\\"+o.substring(s))):l+="/"+o;return{keys:i,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var sy={exports:{}},iy={};/** 41 * @license React 42 * use-sync-external-store-shim.production.min.js 43 * 44 * Copyright (c) Facebook, Inc. and its affiliates. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE file in the root directory of this source tree. 48 */var Ro=d;function Yw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qw=typeof Object.is=="function"?Object.is:Yw,Xw=Ro.useState,Jw=Ro.useEffect,Zw=Ro.useLayoutEffect,eb=Ro.useDebugValue;function tb(e,t){var n=t(),r=Xw({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];
48return Zw(function(){o.value=n,o.getSnapshot=t,zl(o)&&s({inst:o})},[e,n,t]),Jw(function(){return zl(o)&&s({inst:o}),e(function(){zl(o)&&s({inst:o})})},[e]),eb(n),n}function zl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qw(e,n)}catch{return!0}}function nb(e,t){return t()}var rb=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nb:tb;iy.useSyncExternalStore=Ro.useSyncExternalStore!==void 0?Ro.useSyncExternalStore:rb;sy.exports=iy;var ob=sy.exports;const sb=Hu.useInsertionEffect,ib=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ab=ib?d.useLayoutEffect:d.useEffect,lb=sb||ab,ay=e=>{const t=d.useRef([e,(...n)=>t[0](...n)]).current;return lb(()=>{t[0]=e}),t[1]},cb="popstate",Ld="pushState",Id="replaceState",ub="hashchange",Nh=[cb,Ld,Id,ub],db=e=>{for(const t of Nh)addEventListener(t,e);return()=>{for(const t of Nh)removeEventListener(t,e)}},ly=(e,t)=>ob.useSyncExternalStore(db,e,t),fb=()=>location.search,hb=({ssrSearch:e=""}={})=>ly(fb,()=>e),Th=()=>location.pathname,pb=({ssrPath:e}={})=>ly(Th,e?()=>e:Th),mb=(e,{replace:t=!1,state:n=null}={})=>history[t?Id:Ld](n,"",e),gb=(e={})=>[pb(e),mb],Ph=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ph]>"u"){for(const e of[Ld,Id]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Ph,{value:!0})}const yb=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",cy=(e="")=>e==="/"?"":e,vb=(e,t)=>e[0]==="~"?e.slice(1):cy(t)+e,xb=(e="",t)=>yb(Jc(cy(e)),Jc(t)),wb=e=>e[0]==="?"?e.slice(1):e,Jc=e=>{try{return decodeURI(e)}catch{return e}},bb=e=>Jc(wb(e)),uy={hook:gb,searchHook:hb,parser:Gw,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},dy=d.createContext(uy),Do=()=>d.useContext(dy),fy={},hy=d.createContext(fy),py=()=>d.useContext(hy),Ja=e=>{const[t,n]=e.hook(e);return[xb(e.base,t),ay((r,o)=>n(vb(r,e.base),o))]},my=()=>Ja(Do()),Sb=()=>{const e=Do();return bb(e.searchHook(e))},gy=(e,t,n,r)=>{const{pattern:o,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),i=o.exec(n)||[],[l,...c]=i;return l!==void 0?[!0,(()=>{const u=s!==!1?Object.fromEntries(s.map((h,p)=>[h,c[p]])):i.groups;let f={...c};return u&&Object.assign(f,u),f})(),...r?[l]:[]]:[!1,null]},jb=({children:e,...t})=>{var f,h;const n=Do(),r=t.hook?uy:n;let o=r;const[s,i]=((f=t.ssrPath)==null?void 0:f.split("?"))??[];i&&(t.ssrSearch=i,t.ssrPath=s),t.hrefs=t.hrefs??((h=t.hook)==null?void 0:h.hrefs);let l=d.useRef({}),c=l.current,u=c;for(let p in r){const w=p==="base"?r[p]+(t[p]||""):t[p]||r[p];c===u&&w!==u[p]&&(l.current=u={...u}),u[p]=w,w!==r[p]&&(o=u)}return d.createElement(dy.Provider,{value:o,children:e})},Rh=({children:e,component:t},n)=>t?d.createElement(t,{params:n}):typeof e=="function"?e(n):e,Eb=e=>{let t=d.useRef(fy),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},nr=({path:e,nest:t,match:n,...r})=>{const o=Do(),[s]=Ja(o),[i,l,c]=n??gy(o.parser,e,s,t),u=Eb({...py(),...l});if(!i)return null;const f=c?d.createElement(jb,{base:c},Rh(r,u)):Rh(r,u);return d.createElement(hy.Provider,{value:u,children:f})},Ee=d.forwardRef((e,t)=>{const n=Do(),[r,o]=Ja(n),{to:s="",href:i=s,onClick:l,asChild:c,children:u,className:f,replace:h,state:p,...w}=e,S=ay(b=>{b.ctrlKey||b.metaKey||b.altKey||b.shiftKey||b.button!==0||(l==null||l(b),b.defaultPrevented||(b.preventDefault(),o(i,e)))}),y=n.hrefs(i[0]==="~"?i.slice(1):n.base+i,n);return c&&d.isValidElement(u)?d.cloneElement(u,{onClick:S,href:y}):d.createElement("a",{...w,onClick:S,href:y,className:f!=null&&f.call?f(r===i):f,children:u,ref:t})}),yy=e=>Array.isArray(e)?e.flatMap(t=>yy(t&&t.type===d.Fragment?t.props.children:t)):[e],Cb=({children:e,location:t})=>{const n=Do(),[r]=Ja(n);for(const o of yy(e)){let s=0;if(d.isValidElement(o)&&(s=gy(n.parser,o.props.path,t||r,o.props.nest))[0])return d.cloneElement(o,{match:s})}return null};var Fo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Er=typeof window>"u"||"Deno"in globalThis;function ht(){}function kb(e,t){return typeof e=="function"?e(t):e}function Zc(e){return typeof e=="number"&&e>=0&&e!==1/0}function vy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ro(e,t){return typeof e=="function"?e(t):e}function Nt(e,t){return typeof e=="function"?e(t):e}function Ah(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==Dd(i,t.options))return!1}else if(!zs(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function Oh(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Cr(t.options.mutationKey)!==Cr(s))return!1}else if(!zs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Dd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Cr)(e)}function Cr(e){return JSON.stringify(e,(t,n)=>eu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!zs(e[n],t[n])):!1}function xy(e,t){if(e===t)return e;const n=Mh(e)&&Mh(t);if(n||eu(e)&&eu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,l=n?[]:{};let c=0;for(let u=0;u<i;u++){const f=n?u:s[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,c++):(l[f]=xy(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:l}return t}function ka(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function eu(e){if(!_h(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_h(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _h(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nb(e){return new Promise(t=>{setTimeout(t,e)})}function tu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xy(e,t):t}function Tb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Pb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fd=Symbol();function wy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Fd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var cr,kn,co,Ip,Rb=(Ip=class extends Fo{constructor(){super();Q(this,cr);Q(this,kn);Q(this,co);F(this,co,t=>{if(!Er&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,kn)||this.setEventListener(j(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,kn))==null||t.call(this),F(this,kn,void 0))}setEventListener(t){var n;F(this,co,t),(n=j(this,kn))==null||n.call(this),F(this,kn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,cr)!==t&&(F(this,cr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 32,131 bytes, line 48
48this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,cr)=="boolean"?j(this,cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cr=new WeakMap,kn=new WeakMap,co=new WeakMap,Ip),zd=new Rb,uo,Nn,fo,Dp,Ab=(Dp=class extends Fo{constructor(){super();Q(this,uo,!0);Q(this,Nn);Q(this,fo);F(this,fo,t=>{if(!Er&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,Nn)||this.setEventListener(j(this,fo))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Nn))==null||t.call(this),F(this,Nn,void 0))}setEventListener(t){var n;F(this,fo,t),(n=j(this,Nn))==null||n.call(this),F(this,Nn,t(this.setOnline.bind(this)))}setOnline(t){j(this,uo)!==t&&(F(this,uo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,uo)}},uo=new WeakMap,Nn=new WeakMap,fo=new WeakMap,Dp),Na=new Ab;function nu(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Ob(e){return Math.min(1e3*2**e,3e4)}function by(e){return(e??"online")==="online"?Na.isOnline():!0}var Sy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $l(e){return e instanceof Sy}function jy(e){let t=!1,n=0,r=!1,o;const s=nu(),i=y=>{var b;r||(p(new Sy(y)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>zd.isFocused()&&(e.networkMode==="always"||Na.isOnline())&&e.canRun(),f=()=>by(e.networkMode)&&e.canRun(),h=y=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,y),o==null||o(),s.resolve(y))},p=y=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,y),o==null||o(),s.reject(y))},w=()=>new Promise(y=>{var b;o=g=>{(r||u())&&y(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),S=()=>{if(r)return;let y;const b=n===0?e.initialPromise:void 0;try{y=b??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var T;if(r)return;const m=e.retry??(Er?0:3),v=e.retryDelay??Ob,x=typeof v=="function"?v(n,g):v,E=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!E){p(g);return}n++,(T=e.onFail)==null||T.call(e,n,g),Nb(x).then(()=>u()?void 0:w()).then(()=>{t?p(g):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?S():w().then(S),s)}}function Mb(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Te=Mb(),ur,Fp,Ey=(Fp=class{constructor(){Q(this,ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zc(this.gcTime)&&F(this,ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Er?1/0:5*60*1e3))}clearGcTimeout(){j(this,ur)&&(clearTimeout(j(this,ur)),F(this,ur,void 0))}},ur=new WeakMap,Fp),ho,po,ft,Fe,Ws,dr,Et,Xt,zp,_b=(zp=class extends Ey{constructor(t){super();Q(this,Et);Q(this,ho);Q(this,po);Q(this,ft);Q(this,Fe);Q(this,Ws);Q(this,dr);F(this,dr,!1),F(this,Ws,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,ft,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,ho,Lb(this.options)),this.state=t.state??j(this,ho),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,Fe))==null?void 0:t.promise}setOptions(t){this.options={...j(this,Ws),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,ft).remove(this)}setData(t,n){const r=tu(this.state.data,t,this.options);return X(this,Et,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,Et,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=j(this,Fe))==null?void 0:r.promise;return(o=j(this,Fe))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,ho))}isActive(){return this.observers.some(t=>Nt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!vy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Fe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Fe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,Fe)&&(j(this,dr)?j(this,Fe).cancel({revert:!0}):j(this,Fe).cancelRetry()),this.scheduleGc()),j(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,Et,Xt).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,Fe))return j(this,Fe).continueRetry(),j(this,Fe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(F(this,dr,!0),r.signal)})},s=()=>{const h=wy(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),F(this,dr,!1),this.options.persister?this.options.persister(h,p,this):h(p)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(c=this.options.behavior)==null||c.onFetch(i,this),F(this,po,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&X(this,Et,Xt).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,w,S,y;$l(h)&&h.silent||X(this,Et,Xt).call(this,{type:"error",error:h}),$l(h)||((w=(p=j(this,ft).config).onError)==null||w.call(p,h,this),(y=(S=j(this,ft).config).onSettled)==null||y.call(S,this.state.data,h,this)),this.scheduleGc()};return F(this,Fe,jy({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,w,S,y;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){l(b);return}(w=(p=j(this,ft).config).onSuccess)==null||w.call(p,h,this),(y=(S=j(this,ft).config).onSettled)==null||y.call(S,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{X(this,Et,Xt).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{X(this,Et,Xt).call(this,{type:"pause"})},onContinue:()=>{X(this,Et,Xt).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),j(this,Fe).start()}},ho=new WeakMap,po=new WeakMap,ft=new WeakMap,Fe=new WeakMap,Ws=new WeakMap,dr=new WeakMap,Et=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Cy(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return $l(o)&&o.revert&&j(this,po)?{...j(this,po),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Te.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,ft).notify({query:this,type:"updated",action:t})})},zp);function Cy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:by(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Lb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ft,$p,Ib=($p=class extends Fo{constructor(t={}){super();Q(this,Ft);this.config=t,F(this,Ft,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Dd(o,n);let i=this.get(s);return i||(i=new _b({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){j(this,Ft).has(t.queryHash)||(j(this,Ft).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,Ft).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,Ft).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,Ft).get(t)}getAll(){return[...j(this,Ft).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ah(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ah(t,r)):n}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ft=new WeakMap,$p),zt,Ue,fr,$t,wn,Up,Db=(Up=class extends Ey{constructor(t){super();Q(this,$t);Q(this,zt);Q(this,Ue);Q(this,fr);this.mutationId=t.mutationId,F(this,Ue,t.mutationCache),F(this,zt,[]),this.state=t.state||ky(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,zt).includes(t)||(j(this,zt).push(t),this.clearGcTimeout(),j(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,zt,j(this,zt).filter(n=>n!==t)),this.scheduleGc(),j(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,zt).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ue).remove(this))}continue(){var t;return((t=j(this,fr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,l,c,u,f,h,p,w,S,y,b,g,m,v,x,E,T,k;F(this,fr,jy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,P)=>{X(this,$t,wn).call(this,{type:"failed",failureCount:C,error:P})},onPause:()=>{X(this,$t,wn).call(this,{type:"pause"})},onContinue:()=>{X(this,$t,wn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ue).canRun(this)}));const n=this.state.status==="pending",r=!j(this,fr).canStart();try{if(!n){X(this,$t,wn).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=j(this,Ue).config).onMutate)==null?void 0:s.call(o,t,this));const P=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));P!==this.state.context&&X(this,$t,wn).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const C=await j(this,fr).start();return await((u=(c=j(this,Ue).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,C,t,this.state.context)),await((w=(p=j(this,Ue).config).onSettled)==null?void 0:w.call(p,C,null,this.state.variables,this.state.context,this)),await((y=(S=this.options).onSettled)==null?void 0:y.call(S,C,null,t,this.state.context)),X(this,$t,wn).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(b=j(this,Ue).config).onError)==null?void 0:g.call(b,C,t,this.state.context,this)),await((v=(m=this.options).onError)==null?void 0:v.call(m,C,t,this.state.context)),await((E=(x=j(this,Ue).config).onSettled)==null?void 0:E.call(x,void 0,C,this.state.variables,this.state.context,this)),await((k=(T=this.options).onSettled)==null?void 0:k.call(T,void 0,C,t,this.state.context)),C}finally{X(this,$t,wn).call(this,{type:"error",error:C})}}finally{j(this,Ue).runNext(this)}}},zt=new WeakMap,Ue=new WeakMap,fr=new WeakMap,$t=new WeakSet,wn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Te.batch(()=>{j(this,zt).forEach(r=>{r.onMutationUpdate(t)}),j(this,Ue).notify({mutation:this,type:"updated",action:t})})},Up);function ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tt,Ks,Bp,Fb=(Bp=class extends Fo{constructor(t={}){super();Q(this,tt);Q(this,Ks);this.config=t,F(this,tt,new Map),F(this,Ks,Date.now())}build(t,n,r){const o=new Db({mutationCache:this,mutationId:++ci(this,Ks)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=Ni(t),r=j(this,tt).get(n)??[];r.push(t),j(this,tt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ni(t);if(j(this,tt).has(n)){const o=(r=j(this,tt).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?j(this,tt).delete(n):j(this,tt).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=j(this,tt).get(Ni(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=j(this,tt).get(Ni(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...j(this,tt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oh(n,r))}findAll(t={}){return this.getAll().filter(n=>Oh(t,n))}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Te.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},tt=new WeakMap,Ks=new WeakMap,Bp);function Ni(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Lh(e){return{onFetch:(t,n)=>{var f,h,p,w,S;const r=t.options,o=(p=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=wy(t.options,t.fetchOptions),m=async(v,x,E)=>{if(y)return Promise.reject();if(x==null&&v.pages.length)return Promise.resolve(v);const T={queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};b(T);const k=await g(T),{maxPages:C}=t.options,P=E?Pb:Tb;return{pages:P(v.pages,k,C),pageParams:P(v.pageParams,x,C)}};if(o&&s.length){const v=o==="backward",x=v?zb:Ih,E={pages:s,pageParams:i},T=x(r,E);l=await m(E,T,v)}else{const v=e??s.length;do{const x=c===0?i[0]??r.initialPageParam:Ih(r,l);if(c>0&&x==null)break;l=await m(l,x),c++}while(c<v)}return l};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ih(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function zb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ve,Tn,Pn,mo,go,Rn,yo,vo,Vp,$b=(Vp=class{constructor(e={}){Q(this,ve);Q(this,Tn);Q(this,Pn);Q(this,mo);Q(this,go);Q(this,Rn);Q(this,yo);Q(this,vo);F(this,ve,e.queryCache||new Ib),F(this,Tn,e.mutationCache||new Fb),F(this,Pn,e.defaultOptions||{}),F(this,mo,new Map),F(this,go,new Map),F(this,Rn,0)}mount(){ci(this,Rn)._++,j(this,Rn)===1&&(F(this,yo,zd.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,ve).onFocus())})),F(this,vo,Na.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,ve).onOnline())})))}unmount(){var e,t;ci(this,Rn)._--,j(this,Rn)===0&&((e=j(this,yo))==null||e.call(this),F(this,yo,void 0),(t=j(this,vo))==null||t.call(this),F(this,vo,void 0))}isFetching(e){return j(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Tn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=j(this,ve).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ro(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return j(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=j(this,ve).get(r.queryHash),s=o==null?void 0:o.state.data,i=kb(t,s);if(i!==void 0)return j(this,ve).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>j(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,ve);Te.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,ve),r={type:"active",...e};return Te.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Te.batch(()=>j(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e={},t={}){return Te.batch(()=>{if(j(this,ve).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Te.batch(()=>j(this,ve).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,ve).build(this,t);return n.isStaleByTime(ro(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=Lh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=Lh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Na.isOnline()?j(this,Tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,ve)}getMutationCache(){return j(this,Tn)}getDefaultOptions(){return j(this,Pn)}setDefaultOptions(e){F(this,Pn,e)}setQueryDefaults(e,t){j(this,mo).set(Cr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,mo).values()];let n={};return t.forEach(r=>{zs(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){j(this,go).set(Cr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,go).values()];let n={};return t.forEach(r=>{zs(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Pn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Fd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Pn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,ve).clear(),j(this,Tn).clear()}},ve=new WeakMap,Tn=new WeakMap,Pn=new WeakMap,mo=new WeakMap,go=new WeakMap,Rn=new WeakMap,yo=new WeakMap,vo=new WeakMap,Vp),Qe,Z,Qs,Be,hr,xo,An,Ut,Gs,wo,bo,pr,mr,On,So,re,cs,ru,ou,su,iu,au,lu,cu,Ny,Hp,Ub=(Hp=class extends Fo{constructor(t,n){super();Q(this,re);Q(this,Qe);Q(this,Z);Q(this,Qs);Q(this,Be);Q(this,hr);Q(this,xo);Q(this,An);Q(this,Ut);Q(this,Gs);Q(this,wo);Q(this,bo);Q(this,pr);Q(this,mr);Q(this,On);Q(this,So,new Set);this.options=n,F(this,Qe,t),F(this,Ut,null),F(this,An,nu()),this.options.experimental_prefetchInRender||j(this,An).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,Z).addObserver(this),Dh(j(this,Z),this.options)?X(this,re,cs).call(this):this.updateResult(),X(this,re,iu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return uu(j(this,Z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return uu(j(this,Z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,re,au).call(this),X(this,re,lu).call(this),j(this,Z).removeObserver(this)}setOptions(t,n){const r=this.options,o=j(this,Z);if(this.options=j(this,Qe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nt(this.options.enabled,j(this,Z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,re,cu).call(this),j(this,Z).setOptions(this.options),r._defaulted&&!ka(this.options,r)&&j(this,Qe).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,Z),observer:this});const s=this.hasListeners();s&&Fh(j(this,Z),o,this.options,r)&&X(this,re,cs).call(this),this.updateResult(n),s&&(j(this,Z)!==o||Nt(this.options.enabled,j(this,Z))!==Nt(r.enabled,j(this,Z))||ro(this.options.staleTime,j(this,Z))!==ro(r.staleTime,j(this,Z)))&&X(this,re,ru).call(this);const i=X(this,re,ou).call(this);s&&(j(this,Z)!==o||Nt(this.options.enabled,j(this,Z))!==Nt(r.enabled,j(this,Z))||i!==j(this,On))&&X(this,re,su).call(this,i)}getOptimisticResult(t){const n=j(this,Qe).getQueryCache().build(j(this,Qe),t),r=this.createResult(n,t);return Vb(this,r)&&(F(this,Be,r),F(this,xo,this.options),F(this,hr,j(this,Z).state)),r}getCurrentResult(){return j(this,Be)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){j(this,So).add(t)}getCurrentQuery(){return j(this,Z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,Qe).defaultQueryOptions(t),r=j(this,Qe).getQueryCache().build(j(this,Qe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,re,cs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,Be)))}createResult(t,n){var C;const r=j(this,Z),o=this.options,s=j(this,Be),i=j(this,hr),l=j(this,xo),u=t!==r?t.state:j(this,Qs),{state:f}=t;let h={...f},p=!1,w;if(n._optimisticResults){const P=this.hasListeners(),R=!P&&Dh(t,n),O=P&&Fh(t,r,n,o);(R||O)&&(h={...h,...Cy(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:S,errorUpdatedAt:y,status:b}=h;if(n.select&&h.data!==void 0)if(s&&h.data===(i==null?void 0:i.data)&&n.select===j(this,Gs))w=j(this,wo);else try{F(this,Gs,n.select),w=n.select(h.data),w=tu(s==null?void 0:s.data,w,n),F(this,wo,w),F(this,Ut,null)}catch(P){F(this,Ut,P)}else w=h.data;if(n.placeholderData!==void 0&&w===void 0&&b==="pending"){let P;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))P=s.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData((C=j(this,bo))==null?void 0:C.state.data,j(this,bo)):n.placeholderData,n.select&&P!==void 0)try{P=n.select(P),F(this,Ut,null)}catch(R){F(this,Ut,R)}P!==void 0&&(b="success",w=tu(s==null?void 0:s.data,P,n),p=!0)}j(this,Ut)&&(S=j(this,Ut),w=j(this,wo),y=Date.now(),b="error");const g=h.fetchStatus==="fetching",m=b==="pending",v=b==="error",x=m&&g,E=w!==void 0,k={status:b,fetchStatus:h.fetchStatus,isPending:m,isSuccess:b==="success",isError:v,isInitialLoading:x,isLoading:x,data:w,dataUpdatedAt:h.dataUpdatedAt,error:S,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!m,isLoadingError:v&&!E,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:v&&E,isStale:$d(t,n),refetch:this.refetch,promise:j(this,An)};if(this.options.experimental_prefetchInRender){const P=_=>{k.status==="error"?_.reject(k.error):k.data!==void 0&&_.resolve(k.data)},R=()=>{const _=F(this,An,k.promise=nu());P(_)},O=j(this,An);switch(O.status){case"pending":t.queryHash===r.queryHash&&P(O);break;case"fulfilled":(k.status==="error"||k.data!==O.value)&&R();break;case"rejected":(k.status!=="error"||k.error!==O.reason)&&R();break}}return k}updateResult(t){const n=j(this,Be),r=this.createResult(j(this,Z),this.options);if(F(this,hr,j(this,Z).state),F(this,xo,this.options),j(this,hr).data!==void 0&&F(this,bo,j(this,Z)),ka(r,n))return;F(this,Be,r);const o={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!j(this,So).size)return!0;const c=new Set(l??j(this,So));return this.options.throwOnError&&c.add("error"),Object.keys(j(this,Be)).some(u=>{const f=u;return j(this,Be)[f]!==n[f]&&c.has(f)})};(t==null?void 0:t.listeners)!==!1&&s()&&(o.listeners=!0),X(this,re,Ny).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,re,iu).call(this)}},Qe=new WeakMap,Z=new WeakMap,Qs=new WeakMap,Be=new WeakMap,hr=new WeakMap,xo=new WeakMap,An=new WeakMap,Ut=new WeakMap,Gs=new WeakMap,wo=new WeakMap,bo=new WeakMap,pr=new WeakMap,mr=new WeakMap,On=new WeakMap,So=new WeakMap,re=new WeakSet,cs=function(t){X(this,re,cu).call(this);let n=j(this,Z).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ht)),n},ru=function(){X(this,re,au).call(this);const t=ro(this.options.staleTime,j(this,Z));if(Er||j(this,Be).isStale||!Zc(t))return;const r=vy(j(this,Be).dataUpdatedAt,t)+1;F(this,pr,setTimeout(()=>{j(this,Be).isStale||this.updateResult()},r))},ou=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,Z)):this.options.refetchInterval)??!1},su=function(t){X(this,re,lu).call(this),F(this,On,t),!(Er||Nt(this.options.enabled,j(this,Z))===!1||!Zc(j(this,On))||j(this,On)===0)&&F(this,mr,setInterval(()=>{(this.options.refetchIntervalInBackground||zd.isFocused())&&X(this,re,cs).call(this)},j(this,On)))},iu=function(){X(this,re,ru).call(this),X(this,re,su).call(this,X(this,re,ou).call(this))},au=function(){j(this,pr)&&(clearTimeout(j(this,pr)),F(this,pr,void 0))},lu=function(){j(this,mr)&&(clearInterval(j(this,mr)),F(this,mr,void 0))},cu=function(){const t=j(this,Qe).getQueryCache().build(j(this,Qe),this.options);if(t===j(this,Z))return;const n=j(this,Z);F(this,Z,t),F(this,Qs,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ny=function(t){Te.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,Be))}),j(this,Qe).getQueryCache().notify({query:j(this,Z),type:"observerResultsUpdated"})})},Hp);function Bb(e,t){return Nt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Dh(e,t){return Bb(e,t)||e.state.data!==void 0&&uu(e,t,t.refetchOnMount)}function uu(e,t,n){if(Nt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$d(e,t)}return!1}function Fh(e,t,n,r){return(e!==t||Nt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$d(e,n)}function $d(e,t){return Nt(t.enabled,e)!==!1&&e.isStaleByTime(ro(t.staleTime,e))}function Vb(e,t){return!ka(e.getCurrentResult(),t)}var Mn,_n,Ge,en,on,Gi,du,Wp,Hb=(Wp=class extends Fo{constructor(n,r){super();Q(this,on);Q(this,Mn);Q(this,_n);Q(this,Ge);Q(this,en);F(this,Mn,n),this.setOptions(r),this.bindMethods(),X(this,on,Gi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=j(this,Mn).defaultMutationOptions(n),ka(this.options,r)||j(this,Mn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,Ge),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Cr(r.mutationKey)!==Cr(this.options.mutationKey)?this.reset():((o=j(this,Ge))==null?void 0:o.state.status)==="pending"&&j(this,Ge).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=j(this,Ge))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,on,Gi).call(this),X(this,on,du).call(this,n)}getCurrentResult(){return j(this,_n)}reset(){var n;(n=j(this,Ge))==null||n.removeObserver(this),F(this,Ge,void 0),X(this,on,Gi).call(this),X(this,on,du).call(this)}mutate(n,r){var o;return F(this,en,r),(o=j(this,Ge))==null||o.removeObserver(this),F(this,Ge,j(this,Mn).getMutationCache().build(j(this,Mn),this.options)),j(this,Ge).addObserver(this),j(this,Ge).execute(n)}},Mn=new WeakMap,_n=new WeakMap,Ge=new WeakMap,en=new WeakMap,on=new WeakSet,Gi=function(){var r;const n=((r=j(this,Ge))==null?void 0:r.state)??ky();F(this,_n,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},du=function(n){Te.batch(()=>{var r,o,s,i,l,c,u,f;if(j(this,en)&&this.hasListeners()){const h=j(this,_n).variables,p=j(this,_n).context;(n==null?void 0:n.type)==="success"?((o=(r=j(this,en)).onSuccess)==null||o.call(r,n.data,h,p),(i=(s=j(this,en)).onSettled)==null||i.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(l=j(this,en)).onError)==null||c.call(l,n.error,h,p),(f=(u=j(this,en)).onSettled)==null||f.call(u,void 0,n.error,h,p))}
48this.listeners.forEach(h=>{h(j(this,_n))})})},Wp),Ty=d.createContext(void 0),Py=e=>{const t=d.useContext(Ty);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Wb=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(Ty.Provider,{value:e,children:t})),Ry=d.createContext(!1),Kb=()=>d.useContext(Ry);Ry.Provider;function Qb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Gb=d.createContext(Qb()),Yb=()=>d.useContext(Gb);function Ay(e,t){return typeof e=="function"?e(...t):!!e}function fu(){}var qb=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Xb=e=>{d.useEffect(()=>{e.clearReset()},[e])},Jb=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ay(n,[e.error,r]),Zb=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},eS=(e,t)=>e.isLoading&&e.isFetching&&!t,tS=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nS(e,t,n){var f,h,p,w,S;const r=Py(),o=Kb(),s=Yb(),i=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,i),i._optimisticResults=o?"isRestoring":"optimistic",Zb(i),qb(i,s),Xb(s);const l=!r.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(r,i)),u=c.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(y=>{const b=o?fu:c.subscribe(Te.batchCalls(y));return c.updateResult(),b},[c,o]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i,{listeners:!1})},[i,c]),tS(i,u))throw zh(i,c,s);if(Jb({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw u.error;if((w=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||w.call(p,i,u),i.experimental_prefetchInRender&&!Er&&eS(u,o)){const y=l?zh(i,c,s):(S=r.getQueryCache().get(i.queryHash))==null?void 0:S.promise;y==null||y.catch(fu).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Ta(e,t){return nS(e,Ub)}function Oy(e,t){const n=Py(),[r]=d.useState(()=>new Hb(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(Te.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,l)=>{r.mutate(i,l).catch(fu)},[r]);if(o.error&&Ay(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}async function My(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function _y(e,t,n){const r=await fetch(t,{method:e,headers:n?{"Content-Type":"application/json"}:{},body:n?JSON.stringify(n):void 0,credentials:"include"});return await My(r),r}function hu(e){if(e==null)return e;if(Array.isArray(e))return e.map(hu);if(typeof e=="object"){const t={};for(const n in e)n==="publishDate"||n==="subscribedAt"?t[n]=new Date(e[n]):t[n]=hu(e[n]);return t}return e}const rS=({on401:e})=>async({queryKey:t})=>{const n=await fetch(t.join("/"),{credentials:"include"});if(e==="returnNull"&&n.status===401)return null;await My(n);const r=await n.json();return hu(r)},oS=new $b({defaultOptions:{queries:{queryFn:rS({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}});var sS=typeof Element<"u",iS=typeof Map=="function",aS=typeof Set=="function",lS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Yi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Yi(e[r],t[r]))return!1;return!0}var s;if(iS&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Yi(r.value[1],t.get(r.value[0])))return!1;return!0}if(aS&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(lS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(sS&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Yi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var cS=function(t,n){try{return Yi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const uS=Ys(cS);var dS=function(e,t,n,r,o,s,i,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,s,i,l],f=0;c=new Error(t.replace(/%s/g,function(){return u[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},fS=dS;const $h=Ys(fS);var hS=function(t,n,r,o){var s=r?r.call(o,t,n):void 0;if(s!==void 0)return!!s;
48if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),l=Object.keys(n);if(i.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<i.length;u++){var f=i[u];if(!c(f))return!1;var h=t[f],p=n[f];if(s=r?r.call(o,h,p,f):void 0,s===!1||s===void 0&&h!==p)return!1}return!0};const pS=Ys(hS);var Ly=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Ly||{}),Ul={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"]}},Uh=Object.values(Ly),Ud={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},mS=Object.entries(Ud).reduce((e,[t,n])=>(e[n]=t,e),{}),Tt="data-rh",oo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},so=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},gS=e=>{let t=so(e,"title");const n=so(e,oo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=so(e,oo.DEFAULT_TITLE);return t||r||void 0},yS=e=>so(e,oo.ON_CHANGE_CLIENT_STATE)||(()=>{}),Bl=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),vS=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let s=0;s<o.length;s+=1){const l=o[s].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),xS=e=>console&&typeof console.warn=="function"&&console.warn(e),Zo=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&xS(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,s)=>{const i={};s.filter(c=>{let u;const f=Object.keys(c);for(let p=0;p<f.length;p+=1){const w=f[p],S=w.toLowerCase();t.indexOf(S)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(S==="rel"&&c[S].toLowerCase()==="stylesheet")&&(u=S),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(u=w)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return r[u]||(r[u]={}),i[u]||(i[u]={}),r[u][h]?!1:(i[u][h]=!0,!0)}).reverse().forEach(c=>o.push(c));const l=Object.keys(i);for(let c=0;c<l.length;c+=1){const u=l[c],f={...r[u],...i[u]};r[u]=f}return o},[]).reverse()},wS=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},bS=e=>({baseTag:vS(["href"],e),bodyAttributes:Bl("bodyAttributes",e),defer:so(e,oo.DEFER),encode:so(e,oo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Bl("htmlAttributes",e),linkTags:Zo("link",["rel","href"],e),metaTags:Zo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Zo("noscript",["innerHTML"],e),onChangeClientState:yS(e),scriptTags:Zo("script",["src","innerHTML"],e),styleTags:Zo("style",["cssText"],e),title:gS(e),titleAttributes:Bl("titleAttributes",e),prioritizeSeoTags:wS(e,oo.PRIORITIZE_SEO_TAGS)}),Iy=e=>Array.isArray(e)?e.join(""):e,SS=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Vl=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(SS(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Bh=(e,t)=>({...e,[t]:void 0}),jS=["noscript","script","style"],pu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Dy=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),ES=(e,t,n,r)=>{const o=Dy(n),s=Iy(t);return o?`<${e} ${Tt}="true" ${o}>${pu(s,r)}</${e}>`:`<${e} ${Tt}="true">${pu(s,r)}</${e}>`},CS=(e,t,n=!0)=>t.reduce((r,o)=>{const s=o,i=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,f)=>{const h=typeof s[f]>"u"?f:`${f}="${pu(s[f],n)}"`;return u?`${u} ${h}`:h},""),l=s.innerHTML||s.cssText||"",c=jS.indexOf(e)===-1;return`${r}<${e} ${Tt}="true" ${i}${c?"/>":`>${l}</${e}>`}`},""),Fy=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=Ud[r];return n[o||r]=e[r],n},t),kS=(e,t,n)=>{const r={key:t,[Tt]:!0},o=Fy(n,r);return[ne.createElement("title",o,t)]},qi=(e,t)=>t.map((n,r)=>{const o={key:r,[Tt]:!0};
48return Object.keys(n).forEach(s=>{const l=Ud[s]||s;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:c}}else o[l]=n[s]}),ne.createElement(e,o)}),dt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>kS(e,t.title,t.titleAttributes),toString:()=>ES(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Fy(t),toString:()=>Dy(t)};default:return{toComponent:()=>qi(e,t),toString:()=>CS(e,t,n)}}},NS=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=Vl(e,Ul.meta),s=Vl(t,Ul.link),i=Vl(n,Ul.script);return{priorityMethods:{toComponent:()=>[...qi("meta",o.priority),...qi("link",s.priority),...qi("script",i.priority)],toString:()=>`${dt("meta",o.priority,r)} ${dt("link",s.priority,r)} ${dt("script",i.priority,r)}`},metaTags:o.default,linkTags:s.default,scriptTags:i.default}},TS=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:s,styleTags:i,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:f,metaTags:h,scriptTags:p}=e,w={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:w,linkTags:f,metaTags:h,scriptTags:p}=NS(e)),{priority:w,base:dt("base",t,r),bodyAttributes:dt("bodyAttributes",n,r),htmlAttributes:dt("htmlAttributes",o,r),link:dt("link",f,r),meta:dt("meta",h,r),noscript:dt("noscript",s,r),script:dt("script",p,r),style:dt("style",i,r),title:dt("title",{title:l,titleAttributes:c},r)}},mu=TS,Ti=[],zy=!!(typeof window<"u"&&window.document&&window.document.createElement),gu=class{constructor(e,t){Yt(this,"instances",[]);Yt(this,"canUseDOM",zy);Yt(this,"context");Yt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ti:this.instances,add:e=>{(this.canUseDOM?Ti:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ti:this.instances).indexOf(e);(this.canUseDOM?Ti:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=mu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},PS={},$y=ne.createContext(PS),gr,Uy=(gr=class extends d.Component{constructor(n){super(n);Yt(this,"helmetData");this.helmetData=new gu(this.props.context||{},gr.canUseDOM)}render(){return ne.createElement($y.Provider,{value:this.helmetData.value},this.props.children)}},Yt(gr,"canUseDOM",zy),gr),_r=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Tt}]`),o=[].slice.call(r),s=[];let i;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const f=u,h=typeof l[f]>"u"?"":l[f];c.setAttribute(u,h)}c.setAttribute(Tt,"true"),o.some((u,f)=>(i=f,c.isEqualNode(u)))?o.splice(i,1):s.push(c)}),o.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),s.forEach(l=>n.appendChild(l)),{oldTags:o,newTags:s}},yu=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Tt),o=r?r.split(","):[],s=[...o],i=Object.keys(t);for(const l of i){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),o.indexOf(l)===-1&&o.push(l);const u=s.indexOf(l);u!==-1&&s.splice(u,1)}for(let l=s.length-1;l>=0;l-=1)n.removeAttribute(s[l]);o.length===s.length?n.removeAttribute(Tt):n.getAttribute(Tt)!==i.join(",")&&n.setAttribute(Tt,i.join(","))},RS=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Iy(e)),yu("title",t)},Vh=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:s,metaTags:i,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:f,title:h,titleAttributes:p}=e;yu("body",r),yu("html",o),RS(h,p);const w={baseTag:_r("base",n),linkTags:_r("link",s),metaTags:_r("meta",i),noscriptTags:_r("noscript",l),scriptTags:_r("script",u),styleTags:_r("style",f)},S={},y={};
48Object.keys(w).forEach(b=>{const{newTags:g,oldTags:m}=w[b];g.length&&(S[b]=g),m.length&&(y[b]=w[b].oldTags)}),t&&t(),c(e,S,y)},es=null,AS=e=>{es&&cancelAnimationFrame(es),e.defer?es=requestAnimationFrame(()=>{Vh(e,()=>{es=null})}):(Vh(e),es=null)},OS=AS,Hh=class extends d.Component{constructor(){super(...arguments);Yt(this,"rendered",!1)}shouldComponentUpdate(t){return!pS(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const o=bS(t.get().map(s=>{const i={...s.props};return delete i.context,i}));Uy.canUseDOM?OS(o):mu&&(r=mu(o)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},sc,MS=(sc=class extends d.Component{shouldComponentUpdate(e){return!uS(Bh(this.props,"helmetData"),Bh(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return $h(Uh.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Uh.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),$h(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ne.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...s}=r.props,i=Object.keys(s).reduce((c,u)=>(c[mS[u]||u]=s[u],c),{});let{type:l}=r;
48switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,o),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,o);break;default:t=this.mapObjectTypeChildren(r,t,i,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof gu)){const o=r;r=new gu(o.context,!0),delete n.helmetData}return r?ne.createElement(Hh,{...n,context:r.value}):ne.createElement($y.Consumer,null,o=>ne.createElement(Hh,{...n,context:o}))}},Yt(sc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),sc);const _S=1,LS=1e6;let Hl=0;function IS(){return Hl=(Hl+1)%Number.MAX_SAFE_INTEGER,Hl.toString()}const Wl=new Map,Wh=e=>{if(Wl.has(e))return;const t=setTimeout(()=>{Wl.delete(e),xs({type:"REMOVE_TOAST",toastId:e})},LS);Wl.set(e,t)},DS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_S)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Wh(n):e.toasts.forEach(r=>{Wh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Xi=[];let Ji={toasts:[]};function xs(e){Ji=DS(Ji,e),Xi.forEach(t=>{t(Ji)})}function FS({...e}){const t=IS(),n=o=>xs({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>xs({type:"DISMISS_TOAST",toastId:t});return xs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function By(){const[e,t]=d.useState(Ji);return d.useEffect(()=>(Xi.push(t),()=>{const n=Xi.indexOf(t);n>-1&&Xi.splice(n,1)}),[e]),{...e,toast:FS,dismiss:n=>xs({type:"DISMISS_TOAST",toastId:n})}}function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Kh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bd(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Kh(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Kh(e[o],null)}}}}function ye(...e){return d.useCallback(Bd(...e),e)}function zS(e,t){const n=d.createContext(t),r=s=>{const{children:i,...l}=s,c=d.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ar(e,t=[]){let n=[];function r(s,i){const l=d.createContext(i),c=n.length;n=[...n,i];const u=h=>{var g;const{scope:p,children:w,...S}=h,y=((g=p==null?void 0:p[e])==null?void 0:g[c])||l,b=d.useMemo(()=>S,Object.values(S));return a.jsx(y.Provider,{value:b,children:w})};u.displayName=s+"Provider";function f(h,p){var y;const w=((y=p==null?void 0:p[e])==null?void 0:y[c])||l,S=d.useContext(w);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(l){const c=(l==null?void 0:l[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,$S(o,...t)]}function $S(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function $s(e){const t=BS(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,l=d.Children.toArray(s),c=l.find(HS);if(c){const u=c.props.children,f=l.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return a.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return a.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var US=$s("Slot");function BS(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;
vendor: 9,059 bytes, line 48
48if(d.isValidElement(o)){const i=KS(o),l=WS(s,o.props);return o.type!==d.Fragment&&(l.ref=r?Bd(r,i):i),d.cloneElement(o,l)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vy=Symbol("radix.slottable");function VS(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Vy,t}function HS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vy}function WS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{s(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function KS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function QS(e){const t=e+"CollectionProvider",[n,r]=Ar(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:b,children:g}=y,m=ne.useRef(null),v=ne.useRef(new Map).current;return a.jsx(o,{scope:b,itemMap:v,collectionRef:m,children:g})};i.displayName=t;const l=e+"CollectionSlot",c=$s(l),u=ne.forwardRef((y,b)=>{const{scope:g,children:m}=y,v=s(l,g),x=ye(b,v.collectionRef);return a.jsx(c,{ref:x,children:m})});u.displayName=l;const f=e+"CollectionItemSlot",h="data-radix-collection-item",p=$s(f),w=ne.forwardRef((y,b)=>{const{scope:g,children:m,...v}=y,x=ne.useRef(null),E=ye(b,x),T=s(f,g);return ne.useEffect(()=>(T.itemMap.set(x,{ref:x,...v}),()=>void T.itemMap.delete(x))),a.jsx(p,{[h]:"",ref:E,children:m})});w.displayName=f;function S(y){const b=s(e+"CollectionConsumer",y);return ne.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((T,k)=>v.indexOf(T.ref.current)-v.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:w},S,r]}var GS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ce=GS.reduce((e,t)=>{const n=$s(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hy(e,t){e&&Io.flushSync(()=>e.dispatchEvent(t))}function wt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function YS(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qS="DismissableLayer",vu="dismissableLayer.update",XS="dismissableLayer.pointerDownOutside",JS="dismissableLayer.focusOutside",Qh,Wy=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Za=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=d.useContext(Wy),[f,h]=d.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=d.useState({}),S=ye(t,k=>h(k)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),m=f?y.indexOf(f):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,x=m>=g,E=ej(k=>{const C=k.target,P=[...u.branches].some(R=>R.contains(C));!x||P||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},p),T=tj(k=>{const C=k.target;[...u.branches].some(R=>R.contains(C))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},p);return YS(k=>{m===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Gh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Qh)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Gh())},[f,u]),d.useEffect(()=>{const k=()=>w({});return document.addEventListener(vu,k),()=>document.removeEventListener(vu,k)},[]),a.jsx(Ce.div,{...c,ref:S,style:{pointerEvents:v?x?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,T.onFocusCapture),onBlurCapture:he(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,E.onPointerDownCapture)})});Za.displayName=qS;var ZS="DismissableLayerBranch",Ky=d.forwardRef((e,t)=>{const n=d.useContext(Wy),r=d.useRef(null),o=ye(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(Ce.div,{...e,ref:o})});Ky.displayName=ZS;function ej(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Qy(XS,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tj(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Qy(JS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gh(){const e=new CustomEvent(vu);document.dispatchEvent(e)}function Qy(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hy(o,s):o.dispatchEvent(s)}var nj=Za,rj=Ky,un=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},oj="Portal",Vd=d.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=d.useState(!1);un(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Qw.createPortal(a.jsx(Ce.div,{...r,ref:t}),i):null});Vd.displayName=oj;function sj(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var zo=e=>{const{present:t,children:n}=e,r=ij(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=ye(r.ref,aj(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};zo.displayName="Presence";function ij(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[l,c]=sj(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=Pi(r.current);s.current=l==="mounted"?u:"none"},[l]),un(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,w=Pi(u);e?c("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&p!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),un(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=w=>{const y=Pi(r.current).includes(w.animationName);if(w.target===t&&y&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=w=>{w.target===t&&(s.current=Pi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}function aj(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gy({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=lj({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,l=wt(n),c=d.useCallback(u=>{if(s){const h=typeof u=="function"?u(e):u;h!==e&&l(h)}else o(u)},[s,e,o,l]);return[i,c]}function lj({defaultProp:e,onChange:t}
48){const n=d.useState(e),[r]=n,o=d.useRef(r),s=wt(t);return d.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var cj="VisuallyHidden",el=d.forwardRef((e,t)=>a.jsx(Ce.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));el.displayName=cj;var uj=el,Hd="ToastProvider",[Wd,dj,fj]=QS("Toast"),[Yy,sT]=Ar("Toast",[fj]),[hj,tl]=Yy(Hd),qy=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,c]=d.useState(null),[u,f]=d.useState(0),h=d.useRef(!1),p=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hd}\`. Expected non-empty \`string\`.`),a.jsx(Wd.Provider,{scope:t,children:a.jsx(hj,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:d.useCallback(()=>f(w=>w+1),[]),onToastRemove:d.useCallback(()=>f(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:i})})};qy.displayName=Hd;var Xy="ToastViewport",pj=["F8"],xu="toast.viewportPause",wu="toast.viewportResume",Jy=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=pj,label:o="Notifications ({hotkey})",...s}=e,i=tl(Xy,n),l=dj(n),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=d.useRef(null),p=ye(t,h,i.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;d.useEffect(()=>{const b=g=>{var v;r.length!==0&&r.every(x=>g[x]||g.code===x)&&((v=h.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),d.useEffect(()=>{const b=c.current,g=h.current;if(S&&b&&g){const m=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(xu);g.dispatchEvent(T),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(wu);g.dispatchEvent(T),i.isClosePausedRef.current=!1}},x=T=>{!b.contains(T.relatedTarget)&&v()},E=()=>{b.contains(document.activeElement)||v()};return b.addEventListener("focusin",m),b.addEventListener("focusout",x),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",E),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",x),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",E),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[S,i.isClosePausedRef]);const y=d.useCallback(({tabbingDirection:b})=>{const m=l().map(v=>{const x=v.ref.current,E=[x,...Nj(x)];return b==="forwards"?E:E.reverse()});return(b==="forwards"?m.reverse():m).flat()},[l]);return d.useEffect(()=>{const b=h.current;if(b){const g=m=>{var E,T,k;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const C=document.activeElement,P=m.shiftKey;if(m.target===b&&P){(E=u.current)==null||E.focus();return}const _=y({tabbingDirection:P?"backwards":"forwards"}),$=_.findIndex(L=>L===C);Kl(_.slice($+1))?m.preventDefault():P?(T=u.current)==null||T.focus():(k=f.current)==null||k.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[l,y]),a.jsxs(rj,{ref:c,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&a.jsx(bu,{ref:u,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"forwards"});Kl(b)}}),a.jsx(Wd.Slot,{scope:n,children:a.jsx(Ce.ol,{tabIndex:-1,...s,ref:p})}),S&&a.jsx(bu,{ref:f,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"backwards"});Kl(b)}})]})});Jy.displayName=Xy;var Zy="ToastFocusProxy",bu=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=tl(Zy,n);return a.jsx(el,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});bu.displayName=Zy;var nl="Toast",mj="toast.swipeStart",gj="toast.swipeMove",yj="toast.swipeCancel",vj="toast.swipeEnd",ev=d.forwardRef((e,t)=>
48{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l=!0,c]=Gy({prop:r,defaultProp:o,onChange:s});return a.jsx(zo,{present:n||l,children:a.jsx(bj,{open:l,...i,ref:t,onClose:()=>c(!1),onPause:wt(e.onPause),onResume:wt(e.onResume),onSwipeStart:he(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:he(e.onSwipeMove,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:he(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:he(e.onSwipeEnd,u=>{const{x:f,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",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});ev.displayName=nl;var[xj,wj]=Yy(nl,{onClose(){}}),bj=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:w,...S}=e,y=tl(nl,n),[b,g]=d.useState(null),m=ye(t,L=>g(L)),v=d.useRef(null),x=d.useRef(null),E=o||y.duration,T=d.useRef(0),k=d.useRef(E),C=d.useRef(0),{onToastAdd:P,onToastRemove:R}=y,O=wt(()=>{var U;(b==null?void 0:b.contains(document.activeElement))&&((U=y.viewport)==null||U.focus()),i()}),_=d.useCallback(L=>{!L||L===1/0||(window.clearTimeout(C.current),T.current=new Date().getTime(),C.current=window.setTimeout(O,L))},[O]);d.useEffect(()=>{const L=y.viewport;if(L){const U=()=>{_(k.current),u==null||u()},z=()=>{const K=new Date().getTime()-T.current;k.current=k.current-K,window.clearTimeout(C.current),c==null||c()};return L.addEventListener(xu,z),L.addEventListener(wu,U),()=>{L.removeEventListener(xu,z),L.removeEventListener(wu,U)}}},[y.viewport,E,c,u,_]),d.useEffect(()=>{s&&!y.isClosePausedRef.current&&_(E)},[s,E,y.isClosePausedRef,_]),d.useEffect(()=>(P(),()=>R()),[P,R]);const $=d.useMemo(()=>b?av(b):null,[b]);return y.viewport?a.jsxs(a.Fragment,{children:[$&&a.jsx(Sj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:$}),a.jsx(xj,{scope:n,onClose:O,children:Io.createPortal(a.jsx(Wd.ItemSlot,{scope:n,children:a.jsx(nj,{asChild:!0,onEscapeKeyDown:he(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||O(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(Ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:he(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:he(e.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:he(e.onPointerMove,L=>{if(!v.current)return;const U=L.clientX-v.current.x,z=L.clientY-v.current.y,K=!!x.current,N=["left","right"].includes(y.swipeDirection),A=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,D=N?A(0,U):0,M=N?0:A(0,z),B=L.pointerType==="touch"?10:2,H={x:D,y:M},we={originalEvent:L,delta:H};K?(x.current=H,Ri(gj,h,we,{discrete:!1})):Yh(H,y.swipeDirection,B)?(x.current=H,Ri(mj,f,we,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(U)>B||Math.abs(z)>B)&&(v.current=null)}),onPointerUp:he(e.onPointerUp,L=>{const U=x.current,z=L.target;if(z.hasPointerCapture(L.pointerId)&&z.releasePointerCapture(L.pointerId),x.current=null,v.current=null,U){const K=L.currentTarget,N={originalEvent:L,delta:U};Yh(U,y.swipeDirection,y.swipeThreshold)?Ri(vj,w,N,{discrete:!0}):Ri(yj,p,N,{discrete:!0}),K.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Sj=e=>{const{__scopeToast:t,children:n,...r}
48=e,o=tl(nl,t),[s,i]=d.useState(!1),[l,c]=d.useState(!1);return Cj(()=>i(!0)),d.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(Vd,{asChild:!0,children:a.jsx(el,{...r,children:s&&a.jsxs(a.Fragment,{children:[o.label," ",n]})})})},jj="ToastTitle",tv=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(Ce.div,{...r,ref:t})});tv.displayName=jj;var Ej="ToastDescription",nv=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(Ce.div,{...r,ref:t})});nv.displayName=Ej;var rv="ToastAction",ov=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(iv,{altText:n,asChild:!0,children:a.jsx(Kd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rv}\`. Expected non-empty \`string\`.`),null)});ov.displayName=rv;var sv="ToastClose",Kd=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=wj(sv,n);return a.jsx(iv,{asChild:!0,children:a.jsx(Ce.button,{type:"button",...r,ref:t,onClick:he(e.onClick,o.onClose)})})});Kd.displayName=sv;var iv=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return a.jsx(Ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function av(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),kj(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...av(r))}}),t}function Ri(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hy(o,s):o.dispatchEvent(s)}var Yh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Cj(e=()=>{}){const t=wt(e);un(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function kj(e){return e.nodeType===e.ELEMENT_NODE}function Nj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Tj=qy,lv=Jy,cv=ev,uv=tv,dv=nv,fv=ov,hv=Kd;function pv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pv(e))&&(r&&(r+=" "),r+=t);return r}const qh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xh=mv,Qd=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Xh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],h=s==null?void 0:s[u];if(f===null)return null;const p=qh(f)||qh(h);return o[u][p]}),l=n&&Object.entries(n).reduce((u,f)=>{let[h,p]=f;return p===void 0||(u[h]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:p,...w}=f;return Object.entries(w).every(S=>{let[y,b]=S;return Array.isArray(b)?b.includes({...s,...l}[y]):{...s,...l}[y]===b})?[...u,h,p]:u},[]);return Xh(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 49 * @license lucide-react v0.453.0 - ISC 50 * 51 * This source code is licensed under the ISC license. 52 * See the LICENSE file in the root directory of this source tree. 53 */const Pj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gv=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** 54 * @license lucide-react v0.453.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */var Rj={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"};/** 59 * @license lucide-react v0.453.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const Aj=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},c)=>d.createElement("svg",{ref:c,...Rj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gv("lucide",o),...l},[...i.map(([u,f])=>d.createElement(u,f)),...Array.isArray(s)?s:[s]]));/** 64 * @license lucide-react v0.453.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const te=(e,t)=>
68{const n=d.forwardRef(({className:r,...o},s)=>d.createElement(Aj,{ref:s,iconNode:t,className:gv(`lucide-${Pj(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 69 * @license lucide-react v0.453.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const Oj=te("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 74 * @license lucide-react v0.453.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Jh=te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 79 * @license lucide-react v0.453.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const Su=te("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 84 * @license lucide-react v0.453.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const Mj=te("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 89 * @license lucide-react v0.453.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Zh=te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 94 * @license lucide-react v0.453.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const _j=te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 99 * @license lucide-react v0.453.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Lj=te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 104 * @license lucide-react v0.453.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const Ij=te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 109 * @license lucide-react v0.453.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const Dj=te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 114 * @license lucide-react v0.453.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const Fj=te("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"}]]);/** 119 * @license lucide-react v0.453.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const zj=te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 124 * @license lucide-react v0.453.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const $j=te("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 129 * @license lucide-react v0.453.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const yv=te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 134 * @license lucide-react v0.453.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const ju=te("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 139 * @license lucide-react v0.453.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const Eu=te("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);/** 144 * @license lucide-react v0.453.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const Uj=te("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 149 * @license lucide-react v0.453.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const Bj=te("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 154 * @license lucide-react v0.453.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const Vj=te("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"}]]);/** 159 * @license lucide-react v0.453.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const Hj=te("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 164 * @license lucide-react v0.453.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const vv=te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 169 * @license lucide-react v0.453.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const Gd=te("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"}]]);/** 174 * @license lucide-react v0.453.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const xv=te("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 179 * @license lucide-react v0.453.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const Wj=te("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"}]]);/** 184 * @license lucide-react v0.453.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const Kj=te("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"}]]);/** 189 * @license lucide-react v0.453.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const wv=te("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 194 * @license lucide-react v0.453.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const kr=te("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 199 * @license lucide-react v0.453.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const dn=te("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 204 * @license lucide-react v0.453.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Cu=te("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);/** 209 * @license lucide-react v0.453.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const Qj=te("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 214 * @license lucide-react v0.453.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const Gj=te("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/** 219 * @license lucide-react v0.453.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const Us=te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 223
223],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Yd="-",Yj=e=>{const t=Xj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Yd);return l[0]===""&&l.length!==1&&l.shift(),bv(l,t)||qj(i)},getConflictingClassGroupIds:(i,l)=>{const c=n[i]||[];return l&&r[i]?[...c,...r[i]]:c}}},bv=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?bv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Yd);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},ep=/^\[(.+)\]$/,qj=e=>{if(ep.test(e)){const t=ep.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Xj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zj(Object.entries(e.classGroups),n).forEach(([s,i])=>{ku(i,r,s,t)}),r},ku=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:tp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Jj(o)){ku(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ku(i,tp(t,s),n,r)})})},tp=(e,t)=>{let n=e;return t.split(Yd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Jj=e=>e.isThemeGetter,Zj=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,eE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Sv="!",tE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const c=[];let u=0,f=0,h;for(let b=0;b<l.length;b++){let g=l[b];if(u===0){if(g===o&&(r||l.slice(b,b+s)===t)){c.push(l.slice(f,b)),f=b+s;continue}if(g==="/"){h=b;continue}}g==="["?u++:g==="]"&&u--}const p=c.length===0?l:l.substring(f),w=p.startsWith(Sv),S=w?p.substring(1):p,y=h&&h>f?h-f:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:i}):i},nE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},rE=e=>({cache:eE(e.cacheSize),parseClassName:tE(e),...Yj(e)}),oE=/\s+/,sE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(oE);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:w}=n(u);let S=!!w,y=r(S?p.substring(0,w):p);if(!y){if(!S){l=u+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=u+(l.length>0?" "+l:l);continue}S=!1}const b=nE(f).join(":"),g=h?b+Sv:b,m=g+y;if(s.includes(m))continue;s.push(m);const v=o(y,S);for(let x=0;x<v.length;++x){const E=v[x];s.push(g+E)}l=u+(l.length>0?" "+l:l)}return l};function iE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=jv(t))&&(r&&(r+=" "),r+=n);return r}const jv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jv(e[r]))&&(n&&(n+=" "),n+=t);return n};function aE(e,...t){let n,r,o,s=i;function i(c){const u=t.reduce((f,h)=>h(f),e());return n=rE(u),r=n.cache.get,o=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const f=sE(c,n);return o(c,f),f}return function(){return s(iE.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ev=/^\[(?:([a-z-]+):)?(.+)\]$/i,lE=/^\d+\/\d+$/,cE=new Set(["px","full","screen"]),uE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dE=/\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$/,fE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qt=e=>io(e)||cE.has(e)||lE.test(e),vn=e=>$o(e,"length",SE),io=e=>!!e&&!Number.isNaN(Number(e)),Ql=e=>$o(e,"number",io),ts=e=>!!e&&Number.isInteger(Number(e)),mE=e=>e.endsWith("%")&&io(e.slice(0,-1)),q=e=>Ev.test(e),xn=e=>uE.test(e),gE=new Set(["length","size","percentage"]),yE=e=>$o(e,gE,Cv),vE=e=>$o(e,"position",Cv),xE=new Set(["image","url"]),wE=e=>$o(e,xE,EE),bE=e=>$o(e,"",jE),ns=()=>!0,$o=(e,t,n)=>{const r=Ev.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},SE=e=>dE.test(e)&&!fE.test(e),Cv=()=>!1,jE=e=>hE.test(e),EE=e=>pE.test(e),CE=()=>{const e=ce("colors"),t=ce("spacing"),n=ce("blur"),r=ce("brightness"),o=ce("borderColor"),s=ce("borderRadius"),i=ce("borderSpacing"),l=ce("borderWidth"),c=ce("contrast"),u=ce("grayscale"),f=ce("hueRotate"),h=ce("invert"),p=ce("gap"),w=ce("gradientColorStops"),S=ce("gradientColorStopPositions"),y=ce("inset"),b=ce("margin"),g=ce("opacity"),m=ce("padding"),v=ce("saturate"),x=ce("scale"),E=ce("sepia"),T=ce("skew"),k=ce("space"),C=ce("translate"),P=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",q,t],_=()=>[q,t],$=()=>["",qt,vn],L=()=>["auto",io,q],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",q],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[io,q];return{cacheSize:500,separator:":",theme:{colors:[ns],spacing:[qt,vn],blur:["none","",xn,q],brightness:M(),borderColor:[e],borderRadius:["n
223one","","full",xn,q],borderSpacing:_(),borderWidth:$(),contrast:M(),grayscale:A(),hueRotate:M(),invert:A(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[mE,vn],inset:O(),margin:O(),opacity:M(),padding:_(),saturate:M(),scale:M(),sepia:A(),skew:M(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[xn]}],"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:[...U(),q]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ts,q]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",ts,q]}],"grid-cols":[{"grid-cols":[ns]}],"col-start-end":[{col:["auto",{span:["full",ts,q]},q]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ns]}],"row-start-end":[{row:["auto",{span:[ts,q]},q]}],"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",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"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":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[xn]},xn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xn,vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ql]}],"font-family":[{font:[ns]}],"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",q]}],"line-clamp":[{"line-clamp":["none",io,Ql]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qt,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qt,vn]}],"underline-offset":[{"underline-offset":["auto",qt,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],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",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),vE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}
vendor: 5,172 bytes, line 223
223],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[qt,q]}],"outline-w":[{outline:[qt,vn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[qt,vn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xn,bE]}],"shadow-color":[{shadow:[ns]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",xn,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[ts,q]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 223
223],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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qt,vn,Ql]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},kE=aE(CE);function ke(...e){return kE(mv(e))}const NE=Tj,kv=d.forwardRef(({className:e,...t},n)=>a.jsx(lv,{ref:n,className:ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));kv.displayName=lv.displayName;const TE=Qd("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"}}),Nv=d.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(cv,{ref:r,className:ke(TE({variant:t}),e),...n}));Nv.displayName=cv.displayName;const PE=d.forwardRef(({className:e,...t},n)=>a.jsx(fv,{ref:n,className:ke("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));PE.displayName=fv.displayName;const Tv=d.forwardRef(({className:e,...t},n)=>a.jsx(hv,{ref:n,className:ke("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 2,635 bytes, line 223
223/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(Us,{className:"h-4 w-4"})}));Tv.displayName=hv.displayName;const Pv=d.forwardRef(({className:e,...t},n)=>a.jsx(uv,{ref:n,className:ke("text-sm font-semibold",e),...t}));Pv.displayName=uv.displayName;const Rv=d.forwardRef(({className:e,...t},n)=>a.jsx(dv,{ref:n,className:ke("text-sm opacity-90",e),...t}));Rv.displayName=dv.displayName;function RE(){const{toasts:e}=By();return a.jsxs(NE,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return a.jsxs(Nv,{...s,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(Pv,{children:n}),r&&a.jsx(Rv,{children:r})]}),o,a.jsx(Tv,{})]},t)}),a.jsx(kv,{})]})}var AE=Hu[" useId ".trim().toString()]||(()=>{}),OE=0;function Gl(e){const[t,n]=d.useState(AE());return un(()=>{e||n(r=>r??String(OE++))},[e]),e||(t?`radix-${t}`:"")}const ME=["top","right","bottom","left"],Yn=Math.min,rt=Math.max,Pa=Math.round,Ai=Math.floor,Kt=e=>({x:e,y:e}),_E={left:"right",right:"left",bottom:"top",top:"bottom"},LE={start:"end",end:"start"};function Nu(e,t,n){return rt(e,Yn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function hn(e){return e.split("-")[0]}function Uo(e){return e.split("-")[1]}function qd(e){return e==="x"?"y":"x"}function Xd(e){return e==="y"?"height":"width"}function qn(e){return["top","bottom"].includes(hn(e))?"y":"x"}function Jd(e){return qd(qn(e))}function IE(e,t,n){n===void 0&&(n=!1);const r=Uo(e),o=Jd(e),s=Xd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ra(i)),[i,Ra(i)]}function DE(e){const t=Ra(e);return[Tu(e),t,Tu(t)]}function Tu(e){return e.replace(/start|end/g,t=>LE[t])}function FE(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function zE(e,t,n,r){const o=Uo(e);let s=FE(hn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Tu)))),s}function Ra(e){return e.replace(/left|right|bottom|top/g,t=>_E[t])}function $E(e){return{top:0,right:0,bottom:0,left:0,...e}}function Av(e){return typeof e!="number"?$E(e):{top:e,right:e,bottom:e,left:e}}function Aa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
vendor: 10,328 bytes, line 223
223function np(e,t,n){let{reference:r,floating:o}=e;const s=qn(t),i=Jd(t),l=Xd(i),c=hn(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let w;switch(c){case"top":w={x:f,y:r.y-o.height};break;case"bottom":w={x:f,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(Uo(t)){case"start":w[i]-=p*(n&&u?-1:1);break;case"end":w[i]+=p*(n&&u?-1:1);break}return w}const UE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=np(u,r,c),p=r,w={},S=0;for(let y=0;y<l.length;y++){const{name:b,fn:g}=l[y],{x:m,y:v,data:x,reset:E}=await g({x:f,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:w,rects:u,platform:i,elements:{reference:e,floating:t}});f=m??f,h=v??h,w={...w,[b]:{...w[b],...x}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:h}=np(u,p,c)),y=-1)}return{x:f,y:h,placement:p,strategy:o,middlewareData:w}};async function Bs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:w=0}=fn(t,e),S=Av(w),b=l[p?h==="floating"?"reference":"floating":h],g=Aa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),m=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},E=Aa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:v,strategy:c}):m);return{top:(g.top-E.top+S.top)/x.y,bottom:(E.bottom-g.bottom+S.bottom)/x.y,left:(g.left-E.left+S.left)/x.x,right:(E.right-g.right+S.right)/x.x}}const BE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=fn(e,t)||{};if(u==null)return{};const h=Av(f),p={x:n,y:r},w=Jd(o),S=Xd(w),y=await i.getDimensions(u),b=w==="y",g=b?"top":"left",m=b?"bottom":"right",v=b?"clientHeight":"clientWidth",x=s.reference[S]+s.reference[w]-p[w]-s.floating[S],E=p[w]-s.reference[w],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=T?T[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(T)))&&(k=l.floating[v]||s.floating[S]);const C=x/2-E/2,P=k/2-y[S]/2-1,R=Yn(h[g],P),O=Yn(h[m],P),_=R,$=k-y[S]-O,L=k/2-y[S]/2+C,U=Nu(_,L,$),z=!c.arrow&&Uo(o)!=null&&L!==U&&s.reference[S]/2-(L<_?R:O)-y[S]/2<0,K=z?L<_?L-_:L-$:0;return{[w]:p[w]+K,data:{[w]:U,centerOffset:L-U-K,...z&&{alignmentOffset:K}},reset:z}}}),VE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0,...b}=fn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=hn(o),m=qn(l),v=hn(l)===l,x=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=p||(v||!y?[Ra(l)]:DE(l)),T=S!=="none";!p&&T&&E.push(...zE(l,y,S,x));const k=[l,...E],C=await Bs(t,b),P=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&P.push(C[g]),h){const L=IE(o,i,x);P.push(C[L[0]],C[L[1]])}if(R=[...R,{placement:o,overflows:P}],!P.every(L=>L<=0)){var O,_;const L=(((O=s.flip)==null?void 0:O.index)||0)+1,U=k[L];if(U)return{data:{index:L,overflows:R},reset:{placement:U}};let z=(_=R.filter(K=>K.overflows[0]<=0).sort((K,N)=>K.overflows[1]-N.overflows[1])[0])==null?void 0:_.placement;if(!z)switch(w){case"bestFit":{var $;const K=($=R.filter(N=>{if(T){const A=qn(N.placement);return A===m||A==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(A=>A>0).reduce((A,D)=>A+D,0)]).sort((N,A)=>N[1]-A[1])[0])==null?void 0:$[0];K&&(z=K);break}case"initialPlacement":z=l;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function rp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function op(e){return ME.some(t=>e[t]>=0)}const HE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const s=await Bs(t,{...o,elementContext:"reference"}),i=rp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:op(i)}}}case"escaped":{const s=await Bs(t,{...o,altBoundary:!0}),i=rp(s,n.floating);return{data:{escapedOffsets:i,escaped:op(i)}}}default:return{}}}}};async function WE(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=hn(n),l=Uo(n),c=qn(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&c?-1:1,h=fn(t,e);let{mainAxis:p,crossAxis:w,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof S=="number"&&(w=l==="end"?S*-1:S),c?{x:w*f,y:p*u}:{x:p*u,y:w*f}}const KE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await WE(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},QE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x:g,y:m}=b;return{x:g,y:m}}},...c}=fn(e,t),u={x:n,y:r},f=await Bs(t,c),h=qn(hn(o)),p=qd(h);let w=u[p],S=u[h];if(s){const b=p==="y"?"top":"left",g=p==="y"?"bottom":"right",m=w+f[b],v=w-f[g];w=Nu(m,w,v)}if(i){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=S+f[b],v=S-f[g];S=Nu(m,S,v)}const y=l.fn({...t,[p]:w,[h]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:s,[h]:i}}}}}},GE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=fn(e,t),f={x:n,y:r},h=qn(o),p=qd(h);let w=f[p],S=f[h];const y=fn(l,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const v=p==="y"?"height":"width",x=s.reference[p]-s.floating[v]+b.mainAxis,E=s.reference[p]+s.reference[v]-b.mainAxis;w<x?w=x:w>E&&(w=E)}if(u){var g,m;const v=p==="y"?"width":"height",x=["top","left"].includes(hn(o)),E=s.reference[h]-s.floating[v]+(x&&((g=i.offset)==null?void 0:g[h])||0)+(x?0:b.crossAxis),T=s.reference[h]+s.reference[v]+(x?0:((m=i.offset)==null?void 0:m[h])||0)-(x?b.crossAxis:0);S<E?S=E:S>T&&(S=T)}return{[p]:w,[h]:S}}}},YE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...u}=fn(e,t),f=await Bs(t,u),h=hn(o),p=Uo(o),w=qn(o)==="y",{width:S,height:y}=s.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,b=p==="end"?"top":"bottom");const m=y-f.top-f.bottom,v=S-f.left-f.right,x=Yn(y-f[b],m),E=Yn(S-f[g],v),T=!t.middlewareData.shift;let k=x,C=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=m),T&&!p){const R=rt(f.left,0),O=rt(f.right,0),_=rt(f.top,0),$=rt(f.bottom,0);w?C=S-2*(R!==0||O!==0?R+O:rt(f.left,f.right)):k=y-2*(_!==0||$!==0?_+$:rt(f.top,f.bottom))}await c({...t,availableWidth:C,availableHeight:k});const P=await i.getDimensions(l.floating);return S!==P.width||y!==P.height?{reset:{rects:!0}}:{}}}};function rl(){return typeof window<"u"}function Bo(e){return Ov(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(Ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ov(e){return rl()?e instanceof Node||e instanceof it(e).Node:!1}function Ot(e){return rl()?e instanceof Element||e instanceof it(e).Element:!1}function Qt(e){return rl()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function sp(e){return!rl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function ti(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function qE(e){return["table","td","th"].includes(Bo(e))}function ol(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zd(e){const t=ef(),n=Ot(e)?Mt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XE(e){let t=Xn(e);for(;Qt(t)&&!Ao(t);){if(Zd(t))return t;if(ol(t))return null;t=Xn(t)}return null}function ef(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ao(e){return["html","body","#document"].includes(Bo(e))}function Mt(e){return it(e).getComputedStyle(e)}function sl(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sp(e)&&e.host||Gt(e);return sp(t)?t.host:t}function Mv(e){const t=Xn(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&ti(t)?t:Mv(t)}function Vs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=it(o);if(s){const l=Pu(i);
vendor: 7,338 bytes, line 223
223return t.concat(i,i.visualViewport||[],ti(o)?o:[],l&&n?Vs(l):[])}return t.concat(o,Vs(o,[],n))}function Pu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _v(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Pa(n)!==s||Pa(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function tf(e){return Ot(e)?e:e.contextElement}function ao(e){const t=tf(e);if(!Qt(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=_v(t);let i=(s?Pa(n.width):n.width)/r,l=(s?Pa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const JE=Kt(0);function Lv(e){const t=it(e);return!ef()||!t.visualViewport?JE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function Nr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=tf(e);let i=Kt(1);t&&(r?Ot(r)&&(i=ao(r)):i=ao(e));const l=ZE(s,n,r)?Lv(s):Kt(0);let c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const p=it(s),w=r&&Ot(r)?it(r):r;let S=p,y=Pu(S);for(;y&&r&&w!==S;){const b=ao(y),g=y.getBoundingClientRect(),m=Mt(y),v=g.left+(y.clientLeft+parseFloat(m.paddingLeft))*b.x,x=g.top+(y.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=v,u+=x,S=it(y),y=Pu(S)}}return Aa({width:f,height:h,x:c,y:u})}function nf(e,t){const n=sl(e).scrollLeft;return t?t.left+n:Nr(Gt(e)).left+n}function Iv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:nf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function eC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Gt(r),l=t?ol(t.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Kt(1);const f=Kt(0),h=Qt(r);if((h||!h&&!s)&&((Bo(r)!=="body"||ti(i))&&(c=sl(r)),Qt(r))){const w=Nr(r);u=ao(r),f.x=w.x+r.clientLeft,f.y=w.y+r.clientTop}const p=i&&!h&&!s?Iv(i,c,!0):Kt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-c.scrollTop*u.y+f.y+p.y}}function tC(e){return Array.from(e.getClientRects())}function nC(e){const t=Gt(e),n=sl(e),r=e.ownerDocument.body,o=rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+nf(e);const l=-n.scrollTop;return Mt(r).direction==="rtl"&&(i+=rt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function rC(e,t){const n=it(e),r=Gt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const u=ef();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l,y:c}}function oC(e,t){const n=Nr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Qt(e)?ao(e):Kt(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:l,x:c,y:u}}function ip(e,t,n){let r;if(t==="viewport")r=rC(e,n);else if(t==="document")r=nC(Gt(e));else if(Ot(t))r=oC(t,n);else{const o=Lv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Aa(r)}function Dv(e,t){const n=Xn(e);return n===t||!Ot(n)||Ao(n)?!1:Mt(n).position==="fixed"||Dv(n,t)}function sC(e,t){const n=t.get(e);if(n)return n;let r=Vs(e,[],!1).filter(l=>Ot(l)&&Bo(l)!=="body"),o=null;const s=Mt(e).position==="fixed";let i=s?Xn(e):e;for(;Ot(i)&&!Ao(i);){const l=Mt(i),c=Zd(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ti(i)&&!c&&Dv(e,i))?r=r.filter(f=>f!==i):o=l,i=Xn(i)}return t.set(e,r),r}function iC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ol(t)?[]:sC(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,f)=>{const h=ip(t,f,o);return u.top=rt(h.top,u.top),u.right=Yn(h.right,u.right),u.bottom=Yn(h.bottom,u.bottom),u.left=rt(h.left,u.left),u},ip(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function aC(e){const{width:t,height:n}=_v(e);return{width:t,height:n}}function lC(e,t,n){const r=Qt(t),o=Gt(t),s=n==="fixed",i=Nr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=Kt(0);if(r||!r&&!s)if((Bo(t)!=="body"||ti(o))&&(l=sl(t)),r){const p=Nr(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&(c.x=nf(o));const u=o&&!r&&!s?Iv(o,l):Kt(0),f=i.left+l.scrollLeft-c.x-u.x,h=i.top+l.scrollTop-c.y-u.y;return{x:f,y:h,width:i.width,height:i.height}}function Yl(e){return Mt(e).position==="static"}function ap(e,t){if(!Qt(e)||Mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gt(e)===n&&(n=n.ownerDocument.body),n}function Fv(e,t){const n=it(e);if(ol(e))return n;if(!Qt(e)){let o=Xn(e);for(;o&&!Ao(o);){if(Ot(o)&&!Yl(o))return o;o=Xn(o)}return n}let r=ap(e,t);for(;r&&qE(r)&&Yl(r);)r=ap(r,t);return r&&Ao(r)&&Yl(r)&&!Zd(r)?n:r||XE(e)||n}const cC=async function(e){const t=this.getOffsetParent||Fv,n=this.getDimensions,r=await n(e.floating);return{reference:lC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uC(e){return Mt(e).direction==="rtl"}const dC={convertOffsetParentRelativeRectToViewportRelativeRect:eC,getDocumentElement:Gt,getClippingRect:iC,getOffsetParent:Fv,getElementRects:cC,getClientRects:tC,getDimensions:aC,getScale:ao,isElement:Ot,isRTL:uC};function zv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fC(e,t){let n=null,r;const o=Gt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:w}=u;if(l||t(),!p||!w)return;const S=Ai(h),y=Ai(o.clientWidth-(f+p)),b=Ai(o.clientHeight-(h+w)),g=Ai(f),v={rootMargin:-S+"px "+-y+"px "+-b+"px "+-g+"px",threshold:rt(0,Yn(1,c))||1};let x=!0;function E(T){const k=T[0].intersectionRatio;if(k!==c){if(!x)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!zv(u,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),s}function hC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=tf(e),f=o||s?[...u?Vs(u):[],...Vs(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const h=u&&l?fC(u,n):null;let p=-1,w=null;i&&(w=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=w)==null||v.observe(t)})),n()}),u&&!c&&w.observe(u),w.observe(t));let S,y=c?Nr(e):null;c&&b();function b(){const g=Nr(e);y&&!zv(y,g)&&n(),y=g,S=requestAnimationFrame(b)}return n(),()=>{var g;f.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),h==null||h(),(g=w)==null||g.disconnect(),w=null,c&&cancelAnimationFrame(S)}}const pC=KE,mC=QE,gC=VE,yC=YE,vC=HE,lp=BE,xC=GE,wC=(e,t,n)=>{const r=new Map,o={platform:dC,...n},s={...o.platform,_c:r};return UE(e,t,{...o,platform:s})};var Zi=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Oa(e,t){if(e===t)return!0;
vendor: 4,323 bytes, line 223
223if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Oa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function $v(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cp(e,t){const n=$v(e);return Math.round(t*n)/n}function ql(e){const t=d.useRef(e);return Zi(()=>{t.current=e}),t}function bC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,w]=d.useState(r);Oa(p,r)||w(r);const[S,y]=d.useState(null),[b,g]=d.useState(null),m=d.useCallback(N=>{N!==T.current&&(T.current=N,y(N))},[]),v=d.useCallback(N=>{N!==k.current&&(k.current=N,g(N))},[]),x=s||S,E=i||b,T=d.useRef(null),k=d.useRef(null),C=d.useRef(f),P=c!=null,R=ql(c),O=ql(o),_=ql(u),$=d.useCallback(()=>{if(!T.current||!k.current)return;const N={placement:t,strategy:n,middleware:p};O.current&&(N.platform=O.current),wC(T.current,k.current,N).then(A=>{const D={...A,isPositioned:_.current!==!1};L.current&&!Oa(C.current,D)&&(C.current=D,Io.flushSync(()=>{h(D)}))})},[p,t,n,O,_]);Zi(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[u]);const L=d.useRef(!1);Zi(()=>(L.current=!0,()=>{L.current=!1}),[]),Zi(()=>{if(x&&(T.current=x),E&&(k.current=E),x&&E){if(R.current)return R.current(x,E,$);$()}},[x,E,$,R,P]);const U=d.useMemo(()=>({reference:T,floating:k,setReference:m,setFloating:v}),[m,v]),z=d.useMemo(()=>({reference:x,floating:E}),[x,E]),K=d.useMemo(()=>{const N={position:n,left:0,top:0};if(!z.floating)return N;const A=cp(z.floating,f.x),D=cp(z.floating,f.y);return l?{...N,transform:"translate("+A+"px, "+D+"px)",...$v(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:D}},[n,l,z.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:$,refs:U,elements:z,floatingStyles:K}),[f,$,U,z,K])}const SC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?lp({element:r.current,padding:o}).fn(n):{}:r?lp({element:r,padding:o}).fn(n):{}}}},jC=(e,t)=>({...pC(e),options:[e,t]}),EC=(e,t)=>({...mC(e),options:[e,t]}),CC=(e,t)=>({...xC(e),options:[e,t]}),kC=(e,t)=>({...gC(e),options:[e,t]}),NC=(e,t)=>({...yC(e),options:[e,t]}),TC=(e,t)=>({...vC(e),options:[e,t]}),PC=(e,t)=>({...SC(e),options:[e,t]});var RC="Arrow",Uv=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(Ce.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Uv.displayName=RC;var AC=Uv;function Bv(e){const[t,n]=d.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Vv="Popper",[Hv,Wv]=Ar(Vv),[iT,Kv]=Hv(Vv),Qv="PopperAnchor",Gv=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Kv(Qv,n),i=d.useRef(null),l=ye(t,i);return d.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:a.jsx(Ce.div,{...o,ref:l})});Gv.displayName=Qv;var rf="PopperContent",[OC,MC]=Hv(rf),Yv=d.forwardRef((e,t)=>{var se,et,oi,mn,si,ii;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:w="optimized",onPlaced:S,...y}=e,b=Kv(rf,n),[g,m]=d.useState(null),v=ye(t,tr=>
vendor: 4,110 bytes, line 223
223m(tr)),[x,E]=d.useState(null),T=Bv(x),k=(T==null?void 0:T.width)??0,C=(T==null?void 0:T.height)??0,P=r+(s!=="center"?"-"+s:""),R=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(u)?u:[u],_=O.length>0,$={padding:R,boundary:O.filter(LC),altBoundary:_},{refs:L,floatingStyles:U,placement:z,isPositioned:K,middlewareData:N}=bC({strategy:"fixed",placement:P,whileElementsMounted:(...tr)=>hC(...tr,{animationFrame:w==="always"}),elements:{reference:b.anchor},middleware:[jC({mainAxis:o+C,alignmentAxis:i}),c&&EC({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?CC():void 0,...$}),c&&kC({...$}),NC({...$,apply:({elements:tr,rects:ai,availableWidth:ul,availableHeight:W})=>{const{width:Y,height:ae}=ai.reference,Se=tr.floating.style;Se.setProperty("--radix-popper-available-width",`${ul}px`),Se.setProperty("--radix-popper-available-height",`${W}px`),Se.setProperty("--radix-popper-anchor-width",`${Y}px`),Se.setProperty("--radix-popper-anchor-height",`${ae}px`)}}),x&&PC({element:x,padding:l}),IC({arrowWidth:k,arrowHeight:C}),p&&TC({strategy:"referenceHidden",...$})]}),[A,D]=Jv(z),M=wt(S);un(()=>{K&&(M==null||M())},[K,M]);const B=(se=N.arrow)==null?void 0:se.x,H=(et=N.arrow)==null?void 0:et.y,we=((oi=N.arrow)==null?void 0:oi.centerOffset)!==0,[Oe,ie]=d.useState();return un(()=>{g&&ie(window.getComputedStyle(g).zIndex)},[g]),a.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:K?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(mn=N.transformOrigin)==null?void 0:mn.x,(si=N.transformOrigin)==null?void 0:si.y].join(" "),...((ii=N.hide)==null?void 0:ii.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(OC,{scope:n,placedSide:A,onArrowChange:E,arrowX:B,arrowY:H,shouldHideArrow:we,children:a.jsx(Ce.div,{"data-side":A,"data-align":D,...y,ref:v,style:{...y.style,animation:K?void 0:"none"}})})})});Yv.displayName=rf;var qv="PopperArrow",_C={top:"bottom",right:"left",bottom:"top",left:"right"},Xv=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=MC(qv,r),i=_C[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(AC,{...o,ref:n,style:{...o.style,display:"block"}})})});Xv.displayName=qv;function LC(e){return e!==null}var IC=e=>({name:"transformOrigin",options:e,fn(t){var b,g,m;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,f]=Jv(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,w=(((m=o.arrow)==null?void 0:m.y)??0)+c/2;let S="",y="";return u==="bottom"?(S=i?h:`${p}px`,y=`${-c}px`):u==="top"?(S=i?h:`${p}px`,y=`${r.floating.height+c}px`):u==="right"?(S=`${-c}px`,y=i?h:`${w}px`):u==="left"&&(S=`${r.floating.width+c}px`,y=i?h:`${w}px`),{data:{x:S,y}}}});function Jv(e){const[t,n="center"]=e.split("-");return[t,n]}var DC=Gv,FC=Yv,zC=Xv,[il,aT]=Ar("Tooltip",[Wv]),of=Wv(),Zv="TooltipProvider",$C=700,up="tooltip.open",[UC,ex]=il(Zv),tx=e=>{const{__scopeTooltip:t,delayDuration:n=$C,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),l=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),a.jsx(UC,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:d.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};tx.displayName=Zv;var nx="Tooltip",[lT,al]=il(nx),Ru="TooltipTrigger",BC=d.forwardRef((e,t)=>
vendor: 5,597 bytes, line 223
223{const{__scopeTooltip:n,...r}=e,o=al(Ru,n),s=ex(Ru,n),i=of(n),l=d.useRef(null),c=ye(t,l,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(DC,{asChild:!0,...i,children:a.jsx(Ce.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:he(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:he(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})})});BC.displayName=Ru;var VC="TooltipPortal",[cT,HC]=il(VC,{forceMount:void 0}),Oo="TooltipContent",rx=d.forwardRef((e,t)=>{const n=HC(Oo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=al(Oo,e.__scopeTooltip);return a.jsx(zo,{present:r||i.open,children:i.disableHoverableContent?a.jsx(ox,{side:o,...s,ref:t}):a.jsx(WC,{side:o,...s,ref:t})})}),WC=d.forwardRef((e,t)=>{const n=al(Oo,e.__scopeTooltip),r=ex(Oo,e.__scopeTooltip),o=d.useRef(null),s=ye(t,o),[i,l]=d.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,p=d.useCallback(()=>{l(null),h(!1)},[h]),w=d.useCallback((S,y)=>{const b=S.currentTarget,g={x:S.clientX,y:S.clientY},m=qC(g,b.getBoundingClientRect()),v=XC(g,m),x=JC(y.getBoundingClientRect()),E=e2([...v,...x]);l(E),h(!0)},[h]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&f){const S=b=>w(b,f),y=b=>w(b,c);return c.addEventListener("pointerleave",S),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",S),f.removeEventListener("pointerleave",y)}}},[c,f,w,p]),d.useEffect(()=>{if(i){const S=y=>{const b=y.target,g={x:y.clientX,y:y.clientY},m=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),v=!ZC(g,i);m?p():v&&(p(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[c,f,i,u,p]),a.jsx(ox,{...e,ref:s})}),[KC,QC]=il(nx,{isInside:!1}),GC=VS("TooltipContent"),ox=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=al(Oo,n),u=of(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(up,f),()=>document.removeEventListener(up,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=p=>{const w=p.target;w!=null&&w.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),a.jsx(Za,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:a.jsxs(FC,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(GC,{children:r}),a.jsx(KC,{scope:n,isInside:!0,children:a.jsx(uj,{id:c.contentId,role:"tooltip",children:o||r})})]})})});rx.displayName=Oo;var sx="TooltipArrow",YC=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=of(n);return QC(sx,n).isInside?null:a.jsx(zC,{...o,...r,ref:t})});YC.displayName=sx;function qC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function XC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function JC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ZC(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s].x,c=t[s].y,u=t[i].x,f=t[i].y;c>r!=f>r&&n<(u-l)*(r-c)/(f-c)+l&&(o=!o)}return o}function e2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),t2(t)}function t2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var n2=tx,ix=rx;const r2=n2,o2=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(ix,{ref:r,sideOffset:t,className:ke("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
223de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));o2.displayName=ix.displayName;const s2=Qd("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),G=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?US:"button";return a.jsx(i,{className:ke(s2({variant:t,size:n,className:e})),ref:s,...o})});G.displayName="Button";var Xl="focusScope.autoFocusOnMount",Jl="focusScope.autoFocusOnUnmount",dp={bubbles:!1,cancelable:!0},i2="FocusScope",ax=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,c]=d.useState(null),u=wt(o),f=wt(s),h=d.useRef(null),p=ye(t,y=>c(y)),w=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let y=function(v){if(w.paused||!l)return;const x=v.target;l.contains(x)?h.current=x:bn(h.current,{select:!0})},b=function(v){if(w.paused||!l)return;const x=v.relatedTarget;x!==null&&(l.contains(x)||bn(h.current,{select:!0}))},g=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&bn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const m=new MutationObserver(g);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),m.disconnect()}}},[r,l,w.paused]),d.useEffect(()=>{if(l){hp.add(w);const y=document.activeElement;if(!l.contains(y)){const g=new CustomEvent(Xl,dp);l.addEventListener(Xl,u),l.dispatchEvent(g),g.defaultPrevented||(a2(f2(lx(l)),{select:!0}),document.activeElement===y&&bn(l))}return()=>{l.removeEventListener(Xl,u),setTimeout(()=>{const g=new CustomEvent(Jl,dp);l.addEventListener(Jl,f),l.dispatchEvent(g),g.defaultPrevented||bn(y??document.body,{select:!0}),l.removeEventListener(Jl,f),hp.remove(w)},0)}}},[l,u,f,w]);const S=d.useCallback(y=>{if(!n&&!r||w.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(b&&g){const m=y.currentTarget,[v,x]=l2(m);v&&x?!y.shiftKey&&g===x?(y.preventDefault(),n&&bn(v,{select:!0})):y.shiftKey&&g===v&&(y.preventDefault(),n&&bn(x,{select:!0})):g===m&&y.preventDefault()}},[n,r,w.paused]);return a.jsx(Ce.div,{tabIndex:-1,...i,ref:p,onKeyDown:S})});ax.displayName=i2;function a2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bn(r,{select:t}),document.activeElement!==n)return}function l2(e){const t=lx(e),n=fp(t,e),r=fp(t.reverse(),e);return[n,r]}function lx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fp(e,t){for(const n of e)if(!c2(n,{upTo:t}))return n}function c2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function u2(e){return e instanceof HTMLInputElement&&"select"in e}function bn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&u2(e)&&t&&e.select()}}var hp=d2();function d2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pp(e,t),e.unshift(t)},remove(t){var n;e=pp(e,t),(n=e[0])==null||n.resume()}}}function pp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function f2(e){return e.filter(t=>t.tagName!=="A")}var Zl=0;function h2(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mp()),document.body.insertAdjacentElement("beforeend",e[1]??mp()),Zl++,()=>{Zl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zl--}},[])}function mp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,084 bytes, line 223
223style.position="fixed",e.style.pointerEvents="none",e}var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Vt.apply(this,arguments)};function cx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function p2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ea="right-scroll-bar-position",ta="width-before-scroll-bar",m2="with-scroll-bars-hidden",g2="--removed-body-scroll-bar-size";function ec(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function y2(e,t){var n=d.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var v2=typeof window<"u"?d.useLayoutEffect:d.useEffect,gp=new WeakMap;function x2(e,t){var n=y2(null,function(r){return e.forEach(function(o){return ec(o,r)})});return v2(function(){var r=gp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(l){s.has(l)||ec(l,null)}),s.forEach(function(l){o.has(l)||ec(l,i)})}gp.set(n,e)},[e]),n}function w2(e){return e}function b2(e,t){t===void 0&&(t=w2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function S2(e){e===void 0&&(e={});var t=b2(null);return t.options=Vt({async:!0,ssr:!1},e),t}var ux=function(e){var t=e.sideCar,n=cx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Vt({},n))};ux.isSideCarExport=!0;function j2(e,t){return e.useMedium(t),ux}var dx=S2(),tc=function(){},ll=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:tc,onWheelCapture:tc,onTouchMoveCapture:tc}),o=r[0],s=r[1],i=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,w=e.noIsolation,S=e.inert,y=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,m=e.gapMode,v=cx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,E=x2([n,t]),T=Vt(Vt({},v),o);return d.createElement(d.Fragment,null,f&&d.createElement(x,{sideCar:dx,removeScrollBar:u,shards:h,noIsolation:w,inert:S,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:m}),i?d.cloneElement(d.Children.only(l),Vt(Vt({},T),{ref:E})):d.createElement(g,Vt({},T,{className:c,ref:E}),l))});ll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ll.classNames={fullWidth:ta,zeroRight:ea};var E2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=E2();return t&&e.setAttribute("nonce",t),e}function k2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function N2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var T2=function(){var e=0,t=null;
vendor: 4,344 bytes, lines 223-263
223return{add:function(n){e==0&&(t=C2())&&(k2(t,n),N2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},P2=function(){var e=T2();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fx=function(){var e=P2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},R2={left:0,top:0,right:0,gap:0},nc=function(e){return parseInt(e||"",10)||0},A2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[nc(n),nc(r),nc(o)]},O2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R2;var t=A2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},M2=fx(),lo="data-scroll-locked",_2=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),` 224 .`.concat(m2,` { 225 overflow: hidden `).concat(r,`; 226 padding-right: `).concat(l,"px ").concat(r,`; 227 } 228 body[`).concat(lo,`] { 229 overflow: hidden `).concat(r,`; 230 overscroll-behavior: contain; 231 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 232 padding-left: `.concat(o,`px; 233 padding-top: `).concat(s,`px; 234 padding-right: `).concat(i,`px; 235 margin-left:0; 236 margin-top:0; 237 margin-right: `).concat(l,"px ").concat(r,`; 238 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` 239 } 240 241 .`).concat(ea,` { 242 right: `).concat(l,"px ").concat(r,`; 243 } 244 245 .`).concat(ta,` { 246 margin-right: `).concat(l,"px ").concat(r,`; 247 } 248 249 .`).concat(ea," .").concat(ea,` { 250 right: 0 `).concat(r,`; 251 } 252 253 .`).concat(ta," .").concat(ta,` { 254 margin-right: 0 `).concat(r,`; 255 } 256 257 body[`).concat(lo,`] { 258 `).concat(g2,": ").concat(l,`px; 259 } 260`)},yp=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},L2=function(){d.useEffect(function(){return document.body.setAttribute(lo,(yp()+1).toString()),function(){var e=yp()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},I2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;L2();var s=d.useMemo(function(){return O2(o)},[o]);return d.createElement(M2,{styles:_2(s,!t,o,n?"":"!important")})},Au=!1;if(typeof window<"u")try{var Oi=Object.defineProperty({},"passive",{get:function(){return Au=!0,!0}});window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{Au=!1}var Lr=Au?{passive:!1}:!1,D2=function(e){return e.tagName==="TEXTAREA"},hx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!D2(e)&&n[t]==="visible")},F2=function(e){return hx(e,"overflowY")},z2=function(e){return hx(e,"overflowX")},vp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=px(e,r);if(o){var s=mx(e,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},U2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},px=function(e,t){return e==="v"?F2(t):z2(t)},mx=function(e,t){return e==="v"?$2(t):U2(t)},B2=function(e,t){return e==="h"&&t==="rtl"?-1:1},V2=function(e,t,n,r,o){var s=B2(e,window.getComputedStyle(t).direction),i=s*r,l=n.target,c=t.contains(l),u=!1,f=i>0,h=0,p=0;do{var w=mx(e,l),S=w[0],y=w[1],b=w[2],g=y-b-s*S;(S||g)&&px(e,l)&&(h+=g,p+=S),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&(Math.abs(h)<1||!o)||!f&&(Math.abs(p)<1||!o))&&(u=!0),u},Mi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xp=function(e){return[e.deltaX,e.deltaY]},wp=function(e){return e&&"current"in e?e.current:e},H2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},W2=function(e){return` 261 .block-interactivity-`.concat(e,` {pointer-events: none;} 262 .allow-interactivity-`).concat(e,` {pointer-events: all;} 263`)},K2=0,Ir=[];function Q2(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(K2++)[0],s=d.use
vendor: 4,759 bytes, line 263
263State(fx)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=p2([e.lockRef.current],(e.shards||[]).map(wp),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var g=Mi(y),m=n.current,v="deltaX"in y?y.deltaX:m[0]-g[0],x="deltaY"in y?y.deltaY:m[1]-g[1],E,T=y.target,k=Math.abs(v)>Math.abs(x)?"h":"v";if("touches"in y&&k==="h"&&T.type==="range")return!1;var C=vp(k,T);if(!C)return!0;if(C?E=k:(E=k==="v"?"h":"v",C=vp(k,T)),!C)return!1;if(!r.current&&"changedTouches"in y&&(v||x)&&(r.current=E),!E)return!0;var P=r.current||E;return V2(P,b,y,P==="h"?v:x,!0)},[]),c=d.useCallback(function(y){var b=y;if(!(!Ir.length||Ir[Ir.length-1]!==s)){var g="deltaY"in b?xp(b):Mi(b),m=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&H2(E.delta,g)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var v=(i.current.shards||[]).map(wp).filter(Boolean).filter(function(E){return E.contains(b.target)}),x=v.length>0?l(b,v[0]):!i.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),u=d.useCallback(function(y,b,g,m){var v={name:y,delta:b,target:g,should:m,shadowParent:G2(g)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(x){return x!==v})},1)},[]),f=d.useCallback(function(y){n.current=Mi(y),r.current=void 0},[]),h=d.useCallback(function(y){u(y.type,xp(y),y.target,l(y,e.lockRef.current))},[]),p=d.useCallback(function(y){u(y.type,Mi(y),y.target,l(y,e.lockRef.current))},[]);d.useEffect(function(){return Ir.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Lr),document.addEventListener("touchmove",c,Lr),document.addEventListener("touchstart",f,Lr),function(){Ir=Ir.filter(function(y){return y!==s}),document.removeEventListener("wheel",c,Lr),document.removeEventListener("touchmove",c,Lr),document.removeEventListener("touchstart",f,Lr)}},[]);var w=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(s,{styles:W2(o)}):null,w?d.createElement(I2,{gapMode:e.gapMode}):null)}function G2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y2=j2(dx,Q2);var gx=d.forwardRef(function(e,t){return d.createElement(ll,Vt({},e,{ref:t,sideCar:Y2}))});gx.classNames=ll.classNames;var q2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,_i=new WeakMap,Li={},rc=0,yx=function(e){return e&&(e.host||yx(e.parentNode))},X2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=yx(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},J2=function(e,t,n,r){var o=X2(t,Array.isArray(e)?e:[e]);Li[n]||(Li[n]=new WeakMap);var s=Li[n],i=[],l=new Set,c=new Set(o),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(l.has(p))f(p);else try{var w=p.getAttribute(r),S=w!==null&&w!=="false",y=(Dr.get(p)||0)+1,b=(s.get(p)||0)+1;Dr.set(p,y),s.set(p,b),i.push(p),y===1&&S&&_i.set(p,!0),b===1&&p.setAttribute(n,"true"),S||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return f(t),l.clear(),rc++,function(){i.forEach(function(h){var p=Dr.get(h)-1,w=s.get(h)-1;Dr.set(h,p),s.set(h,w),p||(_i.has(h)||h.removeAttribute(r),_i.delete(h)),w||h.removeAttribute(n)}),rc--,rc||(Dr=new WeakMap,Dr=new WeakMap,_i=new WeakMap,Li={})}},Z2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=q2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),J2(r,o,n,"aria-hidden")):function(){return null}},sf="Dialog",[vx,uT]=Ar(sf),[ek,_t]=vx(sf),xx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,l=d.useRef(null),c=d.useRef(null),[u=!1,f]=Gy({prop:r,defaultProp:o,onChange:s});return a.jsx(ek,{scope:t,triggerRef:l,contentRef:c,contentId:Gl(),titleId:Gl(),descriptionId:Gl(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};xx.displayName=sf;var wx="DialogTrigger",bx=d.forwardRef((e,t)=>
vendor: 4,499 bytes, lines 263-267
263{const{__scopeDialog:n,...r}=e,o=_t(wx,n),s=ye(t,o.triggerRef);return a.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cf(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)})});bx.displayName=wx;var af="DialogPortal",[tk,Sx]=vx(af,{forceMount:void 0}),jx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=_t(af,t);return a.jsx(tk,{scope:t,forceMount:n,children:d.Children.map(r,i=>a.jsx(zo,{present:n||s.open,children:a.jsx(Vd,{asChild:!0,container:o,children:i})}))})};jx.displayName=af;var Ma="DialogOverlay",Ex=d.forwardRef((e,t)=>{const n=Sx(Ma,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=_t(Ma,e.__scopeDialog);return s.modal?a.jsx(zo,{present:r||s.open,children:a.jsx(rk,{...o,ref:t})}):null});Ex.displayName=Ma;var nk=$s("DialogOverlay.RemoveScroll"),rk=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Ma,n);return a.jsx(gx,{as:nk,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Ce.div,{"data-state":cf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Tr="DialogContent",Cx=d.forwardRef((e,t)=>{const n=Sx(Tr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=_t(Tr,e.__scopeDialog);return a.jsx(zo,{present:r||s.open,children:s.modal?a.jsx(ok,{...o,ref:t}):a.jsx(sk,{...o,ref:t})})});Cx.displayName=Tr;var ok=d.forwardRef((e,t)=>{const n=_t(Tr,e.__scopeDialog),r=d.useRef(null),o=ye(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Z2(s)},[]),a.jsx(kx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault())})}),sk=d.forwardRef((e,t)=>{const n=_t(Tr,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return a.jsx(kx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),kx=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,l=_t(Tr,n),c=d.useRef(null),u=ye(t,c);return h2(),a.jsxs(a.Fragment,{children:[a.jsx(ax,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(Za,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":cf(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(ik,{titleId:l.titleId}),a.jsx(lk,{contentRef:c,descriptionId:l.descriptionId})]})]})}),lf="DialogTitle",Nx=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(lf,n);return a.jsx(Ce.h2,{id:o.titleId,...r,ref:t})});Nx.displayName=lf;var Tx="DialogDescription",Px=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Tx,n);return a.jsx(Ce.p,{id:o.descriptionId,...r,ref:t})});Px.displayName=Tx;var Rx="DialogClose",Ax=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Rx,n);return a.jsx(Ce.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});Ax.displayName=Rx;function cf(e){return e?"open":"closed"}var Ox="DialogTitleWarning",[dT,Mx]=zS(Ox,{contentName:Tr,titleName:lf,docsSlug:"dialog"}),ik=({titleId:e})=>{const t=Mx(Ox),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 264 265If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 266 267For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ak="DialogDescriptionWarning",lk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mx(ak).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");
267t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ck=xx,uk=bx,dk=jx,_x=Ex,Lx=Cx,Ix=Nx,Dx=Px,fk=Ax;const hk=ck,pk=uk,mk=dk,Fx=d.forwardRef(({className:e,...t},n)=>a.jsx(_x,{className:ke("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Fx.displayName=_x.displayName;const gk=Qd("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zx=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>a.jsxs(mk,{children:[a.jsx(Fx,{}),a.jsxs(Lx,{ref:o,className:ke(gk({side:e}),t),...r,children:[n,a.jsxs(fk,{className:"absolute right-4 top-4 roun
267ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsx(Us,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zx.displayName=Lx.displayName;const yk=d.forwardRef(({className:e,...t},n)=>a.jsx(Ix,{ref:n,className:ke("text-lg font-semibold text-foreground",e),...t}));yk.displayName=Ix.displayName;const vk=d.forwardRef(({className:e,...t},n)=>a.jsx(Dx,{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));vk.displayName=Dx.displayName;const $x="/assets/image_1759959083078-ulN3B3UZ.webp",Ou="/assets/moa-favico-border-512x512-white_1759963175816-6zQMmnKV.webp";function Wn(){my();const[e,t]=d.useState(!1),n=[{name:"Episodes",href:"/#episodes"},{name:"About",href:"/#about"},{name:"Subscribe",href:"/#subscribe"},{name:"Support",href:"/support"}],r=[{name:"Spotify",href:"https://open.spotify.com/show/04RzKjkuxSwrJgic2GF1cJ",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})})},{name:"Apple",href:"https://podcasts.apple.com/us/podcast/mechanism-of-action/id1832187942",icon:a.jsx("img",{src:$x,alt:"Apple Podcasts",className:"w-5 h-5"})},{name:"YouTube",href:"https://www.youtube.com/@gpmp-moapodcast",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}],o=s=>{if(s.startsWith("/#")){const i=s.substring(2),l=document.getElementById(i);l?l.scrollIntoView({behavior:"smooth",block:"start"}):window.location.href=s}else window.location.href=s;t(!1)};return a.jsx("header",{className:"bg-card/95 backdrop-blur-sm border-b border-border sticky top-0 z-50",children:a.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex justify-between items-center h-20",children:[a.jsxs("div",{className:"flex items-center space-x-8",children:[a.jsxs(Ee,{href:"/",className:"flex items-center space-x-3 group",children:[a.jsx("div",{className:"w-12 h-12 bg-primary rounded-lg flex items-center justify-center p-1.5",children:a.jsx("img",{src:Ou,alt:"MOA Podcast",className:"w-full h-full object-contain"})}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-lg font-bold text-foreground group-hover:text-secondary transition-colors",children:"MOA Podcast"}),a.jsx("span",{className:"text-xs text-muted-foreground hidden sm:block",children:"Mechanism of Action"})]})]}),a.jsx("div",{className:"hidden md:flex items-center space-x-6",children:n.map(s=>s.href.startsWith("/#")?a.jsx("button",{onClick:()=>o(s.href),className:"text-sm font-medium text-muted-foreground hover:text-secondary transition-colors","data-testid":`nav-${s.name.toLowerCase()}`,children:s.name},s.name):a.jsx(Ee,{href:s.href,className:"text-sm font-medium text-muted-foreground hover:text-secondary transition-colors","data-testid":`nav-${s.name.toLowerCase()}`,children:s.name},s.name))})]}),a.jsxs("div",{className:"flex items-center space-x-4",children:[r.map(s=>a.jsx(G,{variant:"ghost",size:"sm",asChild:!0,className:"hidden sm:flex items-center space-x-2 text-sm font-medium text-white hover:text-white transition-colors","data-testid":`link-${s.name.toLowerCase()}`,children:a.jsxs("a",{href:s.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Listen to Mechanism of Action on ${s.name}`,children:[s.icon,a.jsx("span",{className:"hidden lg:inline",children:s.name}),a.jsx(ju,{className:"w-3 h-3 ml-1"})]})},s.name)),a.jsxs(hk,{open:e,onOpenChange:t,children:[a.jsx(pk,{asChild:!0,children:a.jsx(G,{variant:"ghost",size:"sm",className:"md:hidden p-2","data-testid":"button-mobile-menu",children:a.jsx(Wj,{className:"w-6 h-6 text-foreground"})})}),a.jsx(zx,{side:"right",className:"w-[300px] sm:w-[400px]",children:a.jsxs("div",{className:"flex flex-col space-y-4 mt
267-8",children:[a.jsxs("div",{className:"flex items-center space-x-3 mb-6",children:[a.jsx("div",{className:"w-10 h-10 bg-primary rounded-lg flex items-center justify-center p-1.5",children:a.jsx("img",{src:Ou,alt:"MOA Podcast",className:"w-full h-full object-contain"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-bold text-foreground",children:"MOA Podcast"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Mechanism of Action"})]})]}),n.map(s=>s.href.startsWith("/#")?a.jsx(G,{variant:"ghost",className:"justify-start",onClick:()=>o(s.href),"data-testid":`mobile-nav-${s.name.toLowerCase()}`,children:s.name},s.name):a.jsx(G,{variant:"ghost",className:"justify-start",asChild:!0,"data-testid":`mobile-nav-${s.name.toLowerCase()}`,children:a.jsx(Ee,{href:s.href,onClick:()=>t(!1),children:s.name})},s.name)),a.jsxs("div",{className:"border-t border-border pt-4 mt-6",children:[a.jsx("p",{className:"text-sm font-medium text-foreground mb-3",children:"Listen on:"}),a.jsx("div",{className:"space-y-2",children:r.map(s=>a.jsx(G,{variant:"ghost",className:"justify-start w-full",asChild:!0,"data-testid":`mobile-link-${s.name.toLowerCase()}`,children:a.jsxs("a",{href:s.href,target:"_blank",rel:"noopener noreferrer",children:[s.icon,a.jsx("span",{className:"ml-2",children:s.name}),a.jsx(ju,{className:"w-3 h-3 ml-auto"})]})},s.name))})]})]})})]})]})]})})})}const xk="/assets/amazon-svgrepo-com(3)_1764443667513-B6_wcLp_.png",wk="/assets/iheartradio-svgrepo-com(2)_1764726652857-C5szXGaJ.png";function Kn(){const e=[{name:"Spotify",href:"https://open.spotify.com/show/04RzKjkuxSwrJgic2GF1cJ",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})})},{name:"Apple Podcasts",href:"https://podcasts.apple.com/us/podcast/mechanism-of-action/id1832187942",icon:a.jsx("img",{src:$x,alt:"Apple Podcasts",className:"w-5 h-5"})},{name:"Amazon Music",href:"https://music.amazon.com/podcasts/011d39eb-8b5a-434c-b816-7bafe3a8f3c1/mechanism-of-action",icon:a.jsx("img",{src:xk,alt:"Amazon Music",className:"w-5 h-5"})},{name:"iHeart",href:"https://www.iheart.com/podcast/269-mechanism-of-action-309980307",icon:a.jsx("img",{src:wk,alt:"iHeart Radio",className:"w-5 h-5"})},{name:"YouTube",href:"https://www.youtube.com/@gpmp-moapodcast",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}],t=[{name:"X",href:"https://x.com/AdamJBrownMD",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{name:"Bluesky",href:"https://bsky.app/profile/adamjbrownmd.bsky.social",icon:a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 568 501",children:a.jsx("path",{d:"M123.121 33.664C188.241 82.553 258.281 181.68 284 234.873c25.719-53.192 95.759-152.32 160.879-201.21C491.866-1.611 568-28.906 568 57.947c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748C507.222 323.8 536.444 388.56 473.333 453.32c-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.89-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C9.945 203.659 0 75.291 0 57.946 0-28.906 76.135-1.612 123.121 33.664z"})})}],n=[{name:"All Episodes",href:"/#episodes"},{name:"About Us",href:"/#about"},{name:"Newsletter",href:"/#subscribe"},{name:"Support",href:"/support"}],r=[{name:"Privacy Policy",href:"/privacy"},{name:"Terms of Use",href:"/terms"}],o=s=>{if(s.startsWith("/#")){const i=s.substring(2),l=document.getElementById(i);l?l.scrollIntoView({behavior:"smooth",block:"start"}):window.location.href=s}};return a.jsx("footer",{className:"bg-card border-t border-border",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 lg:py-16",children:[a.jsxs("div",{className:"grid md:grid-cols-4 gap-8 lg:gap-12",children:[a.jsxs("div",{className:"md:col-span-2 space-y-4",children:[a.jsxs("div",{className:"flex items-center space-x-3",children:[a.jsx("div",{className:"w-10 h-10 bg-primary rounded-lg flex items-center justify-center p-1.5",children:a.jsx("img",{src:Ou,alt:"MOA Podcast",className:"w-full h-full object-contain"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-bold text-foreground",children:"MOA Podcast"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Mechanism of Action"})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Exploring the careful, often overlooked history of how doctors and scientists identified diseases and developed treatments that transformed lives."}),a.jsxs("div",{className:"pt-4 space-y-3",children:[a.jsx("div",{className:"flex items-center space-x-4 md:hidden",children:e.map(s=>a.jsx(G,{variant:"ghost",size:"sm",className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors p-0",asChild:!0,"data-testid":`footer-podcast-${s.name.toLowerCase().replace(" ","-")}`,children:a.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer","aria-label":s.name,children:s.icon})},s.name))}),a.jsx("div",{className:"flex items-center space-x-4 md:hidden",children:t.map(s=>a.jsx(G,{variant:"ghost",size:"sm",className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors p-0",asChild:!0,"data-testid":`footer-social-${s.name.toLowerCase().replace(" ","-")}`,children:a.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer","aria-label":s.name,children:s.icon})},s.name))}),a.jsx("div",{className:"hidden md:flex items-center space-x-4",children:[...e,...t].map(s=>a.jsx(G,{variant:"ghost",size:"sm",className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors p-0",asChild:!0,"data-testid":`footer-link-${s.name.toLowerCase().replace(" ","-")}`,children:a.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer","aria-label":s.name,children:s.icon})},s.name))})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground mb-4 uppercase tracking-wider",children:"Qu
267ick Links"}),a.jsx("ul",{className:"space-y-3",children:n.map(s=>a.jsx("li",{children:s.href.startsWith("/#")?a.jsx("button",{onClick:()=>o(s.href),className:"text-sm text-muted-foreground hover:text-secondary transition-colors text-left","data-testid":`footer-link-${s.name.toLowerCase().replace(" ","-")}`,children:s.name}):s.href.startsWith("/")?a.jsx(Ee,{href:s.href,className:"text-sm text-muted-foreground hover:text-secondary transition-colors","data-testid":`footer-link-${s.name.toLowerCase().replace(" ","-")}`,children:s.name}):a.jsx("a",{href:s.href,className:"text-sm text-muted-foreground hover:text-secondary transition-colors","data-testid":`footer-link-${s.name.toLowerCase().replace(" ","-")}`,children:s.name})},s.name))})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground mb-4 uppercase tracking-wider",children:"Resources"}),a.jsx("ul",{className:"space-y-3",children:r.map(s=>a.jsx("li",{children:s.href.startsWith("/")?a.jsx(Ee,{href:s.href,className:"text-sm text-muted-foreground hover:text-secondary transition-colors","data-testid":`footer-resource-${s.name.toLowerCase().replace(" ","-")}`,children:s.name}):a.jsx("a",{href:s.href,className:"text-sm text-muted-foreground hover:text-secondary transition-colors","data-testid":`footer-resource-${s.name.toLowerCase().replace(" ","-")}`,children:s.name})},s.name))}),a.jsx("h3",{className:"text-sm font-semibold text-foreground mb-4 uppercase tracking-wider mt-6",children:"Contact"}),a.jsxs("a",{href:"mailto:[email protected]",className:"text-sm text-muted-foreground hover:text-secondary transition-colors flex items-center gap-2","data-testid":"footer-contact-email",children:[a.jsx(Gd,{className:"w-4 h-4"}),"[email protected]"]})]})]}),a.jsx("div",{className:"border-t border-border mt-12 pt-8 flex flex-col md:flex-row justify-center items-center space-y-4 md:space-y-0",children:a.jsxs("p",{className:"text-sm text-muted-foreground text-center",children:["© 2026 Good Prognosis Media & Publishing, LLC.",a.jsx("br",{}),"All rights reserved."]})})]})})}const at=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));at.displayName="Card";const bk=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("flex flex-col space-y-1.5 p-6",e),...t}));bk.displayName="CardHeader";const Sk=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("text-2xl font-semibold leading-none tracking-tight",e),...t}));Sk.displayName="CardTitle";const jk=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));jk.displayName="CardDescription";const Ux=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("p-6 pt-0",e),...t}));Ux.displayName="CardContent";const Ek=d.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ke("flex items-center p-6 pt-0",e),...t}));Ek.displayName="CardFooter";var Bx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},bp=ne.createContext&&ne.createContext(Bx),Ck=["attr","size","title"];function kk(e,t){if(e==null)return{};var n=Nk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
267t%2?Sp(Object(n),!0).forEach(function(r){Tk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tk(e,t,n){return t=Pk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pk(e){var t=Rk(e,"string");return typeof t=="symbol"?t:t+""}function Rk(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vx(e){return e&&e.map((t,n)=>ne.createElement(t.tag,La({key:n},t.attr),Vx(t.child)))}function Ak(e){return t=>ne.createElement(Ok,_a({attr:La({},e.attr)},t),Vx(e.child))}function Ok(e){var t=n=>{var{attr:r,size:o,title:s}=e,i=kk(e,Ck),l=o||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),ne.createElement("svg",_a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:c,style:La(La({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&ne.createElement("title",null,s),e.children)};return bp!==void 0?ne.createElement(bp.Consumer,null,n=>t(n)):t(Bx)}function ws(e){return Ak({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},child:[]}]})(e)}const jp={1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"};function Mk({episode:e,onPlay:t,isPlaying:n=!1,onPause:r}){const o=u=>`${Math.floor(u/60)} MIN`,s=u=>u.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}).toUpperCase(),i=e.title.includes("â")?e.title.split("â").map(u=>u.trim()):[e.title,null],l=i[0],c=i.length>1&&i[1]?i.slice(1).join(": "):null;return a.jsx(at,{className:"episode-card bg-card rounded-xl shadow-lg overflow-hidden border border-border group h-full flex flex-col",children:a.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[a.jsx(Ee,{href:`/episodes/${e.slug}`,children:a.jsxs("div",{className:"relative w-full rounded-lg overflow-hidden aspect-[4/3]",children:[a.jsx("img",{src:e.thumbnailUrl||"",alt:`${e.title} episode artwork`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300 cursor-pointer","data-testid":`img-episode-${e.id}`}),e.episode&&a.jsx("div",{className:"absolute top-2 left-2 bg-black/50 backdrop-blur-sm border border-white/10 px-2 py-1 rounded",children:a.jsxs("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:["Episode ",e.episode]})}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 backdrop-blur-sm border-t border-white/10 p-3 rounded-b-lg",children:a.jsx("p",{className:"text-white font-bold text-lg text-center drop-shadow-lg",style:{fontFamily:"Cardo, Georgia, serif"},children:l})})]})}),a.jsxs("div",{className:"flex flex-col flex-1 mt-4",children:[a.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[a.jsx("span",{className:"text-xs font-semibold text-muted-foreground","data-testid":`text-date-${e.id}`,children:s(e.publishDate)}),a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full"}),a.jsx("span",{className:"text-xs font-semibold text-secondary","data-testid":`text-duration-${e.id}`,children:o(e.duration)})]}),c&&a.jsx(Ee,{href:`/episodes/${e.slug}`,children:a.jsx("h3",{className:"text-sm sm:text-base font-bold text-foreground mb-2 cursor-pointer hover:text-secondary transition-colors","data-testid":`text-title-${e.id}`,children:c})}),e.subtitle&&a.jsx(Ee,{href:`/episodes/${e.slug}`,children:a.jsx("h3",{className:"text-sm sm:text-base font-bold text-foreground mb-2 cursor-pointer hover:text-secondary transition-colors","data-testid":`text-subtitle-${e.id}
267`,children:e.subtitle})}),a.jsx(Ee,{href:`/episodes/${e.slug}`,children:a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-4 cursor-pointer hover:text-foreground transition-colors","data-testid":`text-description-${e.id}`,children:e.description})}),a.jsxs("div",{className:"mt-auto w-full flex items-center justify-between gap-1",children:[e.episode&&jp[e.episode]&&a.jsxs("a",{href:jp[e.episode],target:"_blank",rel:"noopener noreferrer",className:"flex-1 min-w-0 inline-flex items-center justify-center text-xs font-semibold transition-all px-2 py-1.5 h-auto rounded-md",style:{color:"#F6844B"},"data-testid":`link-youtube-card-${e.episode}`,"aria-label":`Watch episode ${e.episode}: ${e.title} on YouTube`,children:[a.jsx(ws,{className:"w-4 h-4 mr-1 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:"WATCH"})]}),a.jsx(G,{variant:"ghost",size:"sm",className:"flex-1 min-w-0 inline-flex items-center justify-center text-xs font-semibold text-secondary hover:text-secondary/80 hover:bg-secondary/10 transition-all px-2 py-1.5 h-auto rounded-md",onClick:n?r:t,"data-testid":`button-play-${e.id}`,children:n?a.jsxs(a.Fragment,{children:[a.jsx(kr,{className:"w-4 h-4 mr-1 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:"PAUSE"})]}):a.jsxs(a.Fragment,{children:[a.jsx(dn,{className:"w-4 h-4 mr-1 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:"LISTEN"})]})}),a.jsx(Ee,{href:`/episodes/${e.slug}`,className:"flex-1 min-w-0",children:a.jsxs(G,{variant:"ghost",size:"sm",className:"w-full inline-flex items-center justify-center text-xs font-semibold text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-all px-2 py-1.5 h-auto rounded-md","data-testid":`button-read-${e.id}`,children:[a.jsx(Su,{className:"w-4 h-4 mr-1 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:"READ"})]})})]})]})]})})}function Hx(e,[t,n]){return Math.min(n,Math.max(t,e))}function qr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var _k=Hu[" useInsertionEffect ".trim().toString()]||un;function Lk({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Ik({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const u=d.useCallback(f=>{var h;if(l){const p=Dk(f)?f(e):f;p!==e&&((h=i.current)==null||h.call(i,p))}else s(f)},[l,e,s,i]);return[c,u]}function Ik({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return _k(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Dk(e){return typeof e=="function"}var Fk=d.createContext(void 0);function zk(e){const t=d.useContext(Fk);return e||t||"ltr"}function $k(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Mu(e){const t=Uk(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,l=d.Children.toArray(s),c=l.find(Vk);if(c){const u=c.props.children,f=l.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return a.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return a.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uk(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Wk(o),l=Hk(s,o.props);return o.type!==d.Fragment&&(l.ref=r?Bd(r,i):i),d.cloneElement(o,l)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bk=Symbol("radix.slottable");function Vk(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bk}function Hk(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}
267:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ni=Kk.reduce((e,t)=>{const n=Mu(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qk(e){const t=e+"CollectionProvider",[n,r]=Ar(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:b,children:g}=y,m=ne.useRef(null),v=ne.useRef(new Map).current;return a.jsx(o,{scope:b,itemMap:v,collectionRef:m,children:g})};i.displayName=t;const l=e+"CollectionSlot",c=Mu(l),u=ne.forwardRef((y,b)=>{const{scope:g,children:m}=y,v=s(l,g),x=ye(b,v.collectionRef);return a.jsx(c,{ref:x,children:m})});u.displayName=l;const f=e+"CollectionItemSlot",h="data-radix-collection-item",p=Mu(f),w=ne.forwardRef((y,b)=>{const{scope:g,children:m,...v}=y,x=ne.useRef(null),E=ye(b,x),T=s(f,g);return ne.useEffect(()=>(T.itemMap.set(x,{ref:x,...v}),()=>void T.itemMap.delete(x))),a.jsx(p,{[h]:"",ref:E,children:m})});w.displayName=f;function S(y){const b=s(e+"CollectionConsumer",y);return ne.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((T,k)=>v.indexOf(T.ref.current)-v.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:w},S,r]}var Wx=["PageUp","PageDown"],Kx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qx={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Vo="Slider",[_u,Gk,Yk]=Qk(Vo),[Gx,fT]=Ar(Vo,[Yk]),[qk,cl]=Gx(Vo),Yx=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:f,onValueChange:h=()=>{},onValueCommit:p=()=>{},inverted:w=!1,form:S,...y}=e,b=d.useRef(new Set),g=d.useRef(0),v=i==="horizontal"?Xk:Jk,[x=[],E]=Lk({prop:f,defaultProp:u,onChange:O=>{var $;($=[...b.current][g.current])==null||$.focus(),h(O)}}),T=d.useRef(x);function k(O){const _=rN(x,O);R(O,_)}function C(O){R(O,g.current)}function P(){const O=T.current[g.current];x[g.current]!==O&&p(x)}function R(O,_,{commit:$}={commit:!1}){const L=aN(s),U=lN(Math.round((O-r)/s)*s+r,L),z=Hx(U,[r,o]);E((K=[])=>{const N=tN(K,z,_);if(iN(N,c*s)){g.current=N.indexOf(z);const A=String(N)!==String(K);return A&&$&&p(N),A?N:K}else return K})}return a.jsx(qk,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:o,valueIndexToChangeRef:g,thumbs:b.current,values:x,orientation:i,form:S,children:a.jsx(_u.Provider,{scope:e.__scopeSlider,children:a.jsx(_u.Slot,{scope:e.__scopeSlider,children:a.jsx(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...y,ref:t,onPointerDown:qr(y.onPointerDown,()=>{l||(T.current=x)}),min:r,max:o,inverted:w,onSlideStart:l?void 0:k,onSlideMove:l?void 0:C,onSlideEnd:l?void 0:P,onHomeKeyDown:()=>!l&&R(r,0,{commit:!0}),onEndKeyDown:()=>!l&&R(o,x.length-1,{commit:!0}),onStepKeyDown:({event:O,direction:_})=>{if(!l){const U=Wx.includes(O.key)||O.shiftKey&&Kx.includes(O.key)?10:1,z=g.current,K=x[z],N=s*U*_;R(K+N,z,{commit:!0})}}})})})})});Yx.displayName=Vo;var[qx,Xx]=Gx(Vo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Xk=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...f}=e,[h,p]=d.useState(null),w=ye(t,v=>p(v)),S=d.useRef(void 0),y=zk(o),b=y==="ltr",g=b&&!s||!b&&s;function m(v){const x=S.current||h.getBoundingClientRect(),E=[0,x.width],k=uf(E,g?[n,r]:[r,n]);return S.current=x,k(v-x.left)}return a.jsx(qx,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:a.jsx(Jx,{dir:y,"data-orientation":"horizontal",...f,ref:w,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const x=m(v.clientX);i==null||i(x)},onSlideMove:v=>{const x=m(v.clientX);l==null||l(x)},onSlideEnd:()=>{S.current=void 0,c==null||c()},onStepKeyDown:v=>{const E=Qx[g?"from-left":"from-right"].includes(v.key);u==null||u({event:v,direction:E?-1:1})}})})}),Jk=d.forwardRef((e,t)=>
267{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:c,...u}=e,f=d.useRef(null),h=ye(t,f),p=d.useRef(void 0),w=!o;function S(y){const b=p.current||f.current.getBoundingClientRect(),g=[0,b.height],v=uf(g,w?[r,n]:[n,r]);return p.current=b,v(y-b.top)}return a.jsx(qx,{scope:e.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:a.jsx(Jx,{"data-orientation":"vertical",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:y=>{const b=S(y.clientY);s==null||s(b)},onSlideMove:y=>{const b=S(y.clientY);i==null||i(b)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:y=>{const g=Qx[w?"from-bottom":"from-top"].includes(y.key);c==null||c({event:y,direction:g?-1:1})}})})}),Jx=d.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:c,...u}=e,f=cl(Vo,n);return a.jsx(ni.span,{...u,ref:t,onKeyDown:qr(e.onKeyDown,h=>{h.key==="Home"?(i(h),h.preventDefault()):h.key==="End"?(l(h),h.preventDefault()):Wx.concat(Kx).includes(h.key)&&(c(h),h.preventDefault())}),onPointerDown:qr(e.onPointerDown,h=>{const p=h.target;p.setPointerCapture(h.pointerId),h.preventDefault(),f.thumbs.has(p)?p.focus():r(h)}),onPointerMove:qr(e.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&o(h)}),onPointerUp:qr(e.onPointerUp,h=>{const p=h.target;p.hasPointerCapture(h.pointerId)&&(p.releasePointerCapture(h.pointerId),s(h))})})}),Zx="SliderTrack",e0=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=cl(Zx,n);return a.jsx(ni.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});e0.displayName=Zx;var Lu="SliderRange",t0=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=cl(Lu,n),s=Xx(Lu,n),i=d.useRef(null),l=ye(t,i),c=o.values.length,u=o.values.map(p=>o0(p,o.min,o.max)),f=c>1?Math.min(...u):0,h=100-Math.max(...u);return a.jsx(ni.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:l,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:h+"%"}})});t0.displayName=Lu;var Iu="SliderThumb",n0=d.forwardRef((e,t)=>{const n=Gk(e.__scopeSlider),[r,o]=d.useState(null),s=ye(t,l=>o(l)),i=d.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return a.jsx(Zk,{...e,ref:s,index:i})}),Zk=d.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=cl(Iu,n),l=Xx(Iu,n),[c,u]=d.useState(null),f=ye(t,m=>u(m)),h=c?i.form||!!c.closest("form"):!0,p=Bv(c),w=i.values[r],S=w===void 0?0:o0(w,i.min,i.max),y=nN(r,i.values.length),b=p==null?void 0:p[l.size],g=b?oN(b,S,l.direction):0;return d.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),a.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${S}% + ${g}px)`},children:[a.jsx(_u.ItemSlot,{scope:e.__scopeSlider,children:a.jsx(ni.span,{role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":i.min,"aria-valuenow":w,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:w===void 0?{display:"none"}:e.style,onFocus:qr(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),h&&a.jsx(r0,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:w},r)]})});n0.displayName=Iu;var eN="RadioBubbleInput",r0=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=d.useRef(null),s=ye(o,r),i=$k(t);return d.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const h=new Event("input",{bubbles:!0});f.call(l,t),l.dispatchEvent(h)}},[i,t]),a.jsx(ni.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});r0.displayName=eN;function tN(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function o0(e,t,n){const s=100/(n-t)*(e-t);return Hx(s,[0,100])}function nN(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function rN(e,t){if(e.length===1)return 0;const n=e.map(o=>
267Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function oN(e,t,n){const r=e/2,s=uf([0,50],[0,r]);return(r-s(t)*n)*n}function sN(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function iN(e,t){if(t>0){const n=sN(e);return Math.min(...n)>=t}return!0}function uf(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function aN(e){return(String(e).split(".")[1]||"").length}function lN(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var s0=Yx,cN=e0,uN=t0,dN=n0;const df=d.forwardRef(({className:e,...t},n)=>a.jsxs(s0,{ref:n,className:ke("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(cN,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-primary",children:a.jsx(uN,{className:"absolute h-full bg-secondary"})}),a.jsx(dN,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));df.displayName=s0.displayName;function ri(e,t){typeof window<"u"&&window.gtag&&window.gtag("event",e,t)}function fN(e,t){ri("audio_play",{episode_id:e,episode_title:t,event_category:"Audio",event_label:t})}function hN(e,t,n,r,o){const s=r>0?Math.round(n/r*100):0;ri("audio_pause",{episode_id:e,episode_title:t,current_time_seconds:Math.round(n),duration_seconds:Math.round(r),listen_time_seconds:Math.round(o),percent_complete:s,event_category:"Audio",event_label:t,value:Math.round(o)})}function pN(e,t,n,r,o,s){ri("audio_progress",{episode_id:e,episode_title:t,percent_milestone:n,current_time_seconds:Math.round(r),duration_seconds:Math.round(o),listen_time_seconds:Math.round(s),event_category:"Audio",event_label:`${t} - ${n}%`,value:Math.round(s)})}function mN(e,t,n,r){ri("audio_complete",{episode_id:e,episode_title:t,duration_seconds:Math.round(n),listen_time_seconds:Math.round(r),event_category:"Audio",event_label:t,value:Math.round(r)})}function gN(e,t,n,r){const o=r>0?Math.round(n/r*100):0;ri("listen_duration",{episode_id:e,episode_title:t,listen_time_seconds:Math.round(n),duration_seconds:Math.round(r),percent_listened:o,event_category:"Audio",event_label:t,value:Math.round(n)})}class i0{constructor(t,n){this.duration=0,this.lastTrackedMilestone=0,this.totalListenTime=0,this.isPlaying=!1,this.hasTrackedPlay=!1,this.lastTickTime=0,this.boundBeforeUnload=null,this.episodeId=t,this.episodeTitle=n,typeof window<"u"&&(this.boundBeforeUnload=()=>this.sendFinalAnalytics(),window.addEventListener("beforeunload",this.boundBeforeUnload))}setDuration(t){this.duration=t}onPlay(t){this.hasTrackedPlay||(fN(this.episodeId,this.episodeTitle),this.hasTrackedPlay=!0),this.isPlaying=!0,this.lastTickTime=Date.now()}onPause(t){this.isPlaying&&(this.accumulateTimeSinceLastTick(),hN(this.episodeId,this.episodeTitle,t,this.duration,this.totalListenTime)),this.isPlaying=!1}onTimeUpdate(t){if(!this.isPlaying||this.duration<=0)return;this.accumulateTimeSinceLastTick();const n=t/this.duration*100,r=Math.floor(n/5)*5;r>this.lastTrackedMilestone&&r<=100&&(pN(this.episodeId,this.episodeTitle,r,t,this.duration,this.totalListenTime),this.lastTrackedMilestone=r)}accumulateTimeSinceLastTick(){const t=Date.now();if(this.lastTickTime>0){const n=(t-this.lastTickTime)/1e3;n>0&&n<10&&(this.totalListenTime+=n)}this.lastTickTime=t}onEnded(){this.isPlaying&&this.accumulateTimeSinceLastTick(),this.duration>0&&(mN(this.episodeId,this.episodeTitle,this.duration,this.totalListenTime),this.lastTrackedMilestone=100),this.isPlaying=!1}sendFinalAnalytics(){this.isPlaying&&this.accumulateTimeSinceLastTick(),this.totalListenTime>0&&gN(this.episodeId,this.episodeTitle,this.totalListenTime,this.duration)}onUnload(){this.sendFinalAnalytics(),typeof window<"u"&&this.boundBeforeUnload&&(window.removeEventListener("beforeunload",this.boundBeforeUnload),this.boundBeforeUnload=null)}}const yN=0;function vN(e){return yN}function a0(e,t=!1,n,r){const o=vN(),[s,i]=d.useState(!1),[l,c]=d.useState(o),[u,f]=d.useState(0),[h,p]=d.useState(.7),[w,S]=d.use
267State(!1),[y,b]=d.useState(!1),g=d.useRef(null),m=d.useRef(null),v=d.useRef(t),x=d.useRef(!1),E=d.useRef(null),T=d.useRef(void 0),k=d.useRef(null);d.useEffect(()=>(n&&r&&(E.current=new i0(n,r)),()=>{var N;(N=E.current)==null||N.onUnload()}),[n,r]),d.useEffect(()=>{v.current=t},[t]);const C=d.useCallback(()=>{const N=()=>{g.current&&!g.current.paused&&v.current&&(c(g.current.currentTime),m.current=requestAnimationFrame(N))};m.current=requestAnimationFrame(N)},[]),P=d.useCallback(()=>{m.current&&(cancelAnimationFrame(m.current),m.current=null)},[]),R=d.useCallback(()=>{k.current&&(k.current(),k.current=null),g.current&&(g.current.pause(),g.current=null),P()},[P]),O=d.useCallback(N=>{R();const A=new Audio;g.current=A,A.src=N,A.volume=h;const D=()=>{var se;f(A.duration||0),b(!0),(se=E.current)==null||se.setDuration(A.duration||0)},M=()=>{b(!0)},B=()=>{var se;v.current||c(A.currentTime),(se=E.current)==null||se.onTimeUpdate(A.currentTime)},H=()=>{var se;i(!0),v.current&&C(),(se=E.current)==null||se.onPlay(A.currentTime)},we=()=>{var se;i(!1),P(),(se=E.current)==null||se.onPause(A.currentTime)},Oe=()=>{var se;i(!1),c(0),P(),(se=E.current)==null||se.onEnded()},ie=()=>{console.warn("Audio failed to load:",N),i(!1),P()};return A.addEventListener("loadedmetadata",D),A.addEventListener("canplay",M),A.addEventListener("timeupdate",B),A.addEventListener("play",H),A.addEventListener("pause",we),A.addEventListener("ended",Oe),A.addEventListener("error",ie),k.current=()=>{A.removeEventListener("loadedmetadata",D),A.removeEventListener("canplay",M),A.removeEventListener("timeupdate",B),A.removeEventListener("play",H),A.removeEventListener("pause",we),A.removeEventListener("ended",Oe),A.removeEventListener("error",ie)},A},[h,C,P,R]);d.useEffect(()=>()=>{R()},[R]),d.useEffect(()=>{e!==T.current&&(g.current&&(R(),b(!1),f(0),c(o),i(!1),x.current=!1),T.current=e)},[e,R]),d.useEffect(()=>{t&&s&&g.current&&!g.current.paused?C():t||P()},[t,s,C,P]);const _=d.useCallback(()=>{if(!e)return;let N=g.current;N||(N=O(e)),N.paused?(x.current||(N.currentTime=o,x.current=!0),N.play().catch(()=>{console.warn("Audio play was prevented by browser policy")})):N.pause()},[e,O]),$=d.useCallback(N=>{g.current&&(g.current.currentTime=N,c(N))},[]),L=d.useCallback(N=>{p(N),g.current&&(g.current.volume=N)},[]),U=d.useCallback(()=>{const N=!w;S(N),g.current&&(g.current.muted=N)},[w]),z=d.useCallback(()=>{if(!g.current)return;const N=Math.min(g.current.currentTime+15,u);$(N)},[u,$]),K=d.useCallback(()=>{if(!g.current)return;const N=Math.max(g.current.currentTime-15,0);$(N)},[$]);return{isPlaying:s,isReady:y,currentTime:l,duration:u,volume:h,isMuted:w,togglePlay:_,setCurrentTime:$,setVolume:L,toggleMute:U,skipForward:z,skipBackward:K}}const Ep={1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g"};function Du({episode:e,largeImage:t=!1,togglePlayRef:n,seekRef:r,onPlay:o,onPlayingChange:s,onTimeUpdate:i,onReadyChange:l,highFrequencyUpdates:c=!1,autoPlay:u=!1}){const f=d.useRef(null),{isPlaying:h,isReady:p,currentTime:w,duration:S,volume:y,isMuted:b,togglePlay:g,setCurrentTime:m,setVolume:v,toggleMute:x,skipForward:E,skipBackward:T}
267=a0(e.audioUrl??void 0,c,e.id,e.title),k=d.useRef(!1);d.useEffect(()=>{u&&!k.current&&!h&&(k.current=!0,o==null||o(),g())},[u,h,g,o]),d.useEffect(()=>(n&&(n.current=g),()=>{n&&(n.current=null)}),[g,n]),d.useEffect(()=>(r&&(r.current=m),()=>{r&&(r.current=null)}),[m,r]),d.useEffect(()=>{s==null||s(h)},[h,s]),d.useEffect(()=>{i==null||i(w)},[w,i]),d.useEffect(()=>{l==null||l(p)},[p,l]);const C=O=>{const _=Math.floor(O/3600),$=Math.floor(O%3600/60),L=Math.floor(O%60);return _>0?`${_}:${$.toString().padStart(2,"0")}:${L.toString().padStart(2,"0")}`:`${$}:${L.toString().padStart(2,"0")}`},P=O=>{if(!f.current||S<=0)return;const _=f.current.getBoundingClientRect(),U=(O.clientX-_.left)/_.width*S;m(Math.max(0,Math.min(U,S)))},R=S>0?w/S*100:0;return a.jsxs("div",{className:"audio-player rounded-xl border border-border shadow-md overflow-hidden",children:[e.thumbnailUrl&&a.jsxs("div",{className:"relative w-full",children:[a.jsx("img",{src:e.thumbnailUrl,alt:`${e.title} artwork`,className:`w-full object-cover ${t?"h-[18rem]":"h-36 lg:h-[11.25rem]"}`,"data-testid":"img-player-thumbnail"}),e.episode&&Ep[e.episode]&&a.jsxs("a",{href:Ep[e.episode],target:"_blank",rel:"noopener noreferrer",className:"absolute top-2 right-2 bg-black/50 backdrop-blur-sm border border-white/10 px-3 py-1.5 rounded flex items-center gap-1.5 hover:bg-black/70 transition-colors z-10","data-testid":`link-youtube-${e.episode}`,"aria-label":`Watch episode ${e.episode}: ${e.title} on YouTube`,children:[a.jsx(ws,{className:"w-5 h-5 text-white"}),a.jsx("span",{className:"text-white text-xs font-semibold",children:"Watch"}),a.jsx(ju,{className:"w-4 h-4 text-white"})]}),e.episode&&a.jsx("div",{className:"absolute top-2 left-2 bg-black/50 backdrop-blur-sm border border-white/10 px-2 py-1 rounded",children:a.jsxs("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:["Episode ",e.episode]})}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 backdrop-blur-sm border-t border-white/10 p-3",children:a.jsx("p",{className:"text-white font-bold text-lg text-center drop-shadow-lg",style:{fontFamily:"Cardo, Georgia, serif"},children:e.title.includes("â")?e.title.split("â")[0].trim():e.title})})]}),a.jsxs("div",{className:`${t?"p-8":"p-6"} space-y-4`,children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{ref:f,className:`relative ${t?"h-3":"h-2"} bg-muted rounded-full overflow-hidden cursor-pointer`,onClick:P,"data-testid":"progress-bar",children:a.jsx("div",{className:"progress-bar h-full transition-all duration-300 ease-out pointer-events-none",style:{width:`${R}%`}})}),a.jsxs("div",{className:`flex justify-between ${t?"text-sm":"text-xs"} text-muted-foreground`,children:[a.jsx("span",{"data-testid":"text-current-time",children:C(w)}),a.jsx("span",{"data-testid":"text-total-duration",children:C(S)})]})]}),a.jsxs("div",{className:`flex items-center justify-center ${t?"space-x-8":"space-x-6"}`,children:[a.jsx(G,{variant:"ghost",size:t?"lg":"sm",className:`${t?"p-4":"p-2"} hover:bg-muted rounded-full transition-colors`,onClick:T,"data-testid":"button-rewind",children:a.jsx(Cu,{className:`${t?"w-7 h-7":"w-5 h-5"} text-foreground`})}),a.jsx(G,{className:`${t?"p-6":"p-4"} bg-primary text-primary-foreground rounded-full hover:bg-primary/90 transition-colors shadow-lg`,onClick:()=>{h||o==null||o(),g()},"data-testid":"button-play-pause",children:h?a.jsx(kr,{className:`${t?"w-10 h-10":"w-6 h-6"}`}):a.jsx(dn,{className:`${t?"w-10 h-10":"w-6 h-6"}`})}),a.jsx(G,{variant:"ghost",size:t?"lg":"sm",className:`${t?"p-4":"p-2"} hover:bg-muted rounded-full transition-colors`,onClick:E,"data-testid":"button-forward",children:a.jsx(Eu,{className:`${t?"w-7 h-7":"w-5 h-5"} text-foreground`})})]}),a.jsx("div",{className:"flex items-center justify-center pt-2",children:a.jsxs("div",{className:"flex items-center space-x-3",children:[a.jsx(G,{variant:"ghost",size:"sm",className:"p-1",onClick:x,"data-testid":"button-mute",children:b||y===0?a.jsx(Gj,{className:`${t?"w-5 h-5":"w-4 h-4"} text-muted-foreground`}):a.jsx(Qj,{className:`${t?"w-5 h-5":"w-4 h-4"} text-muted-foreground`})}),a.jsx(df,{value:[b?0:y*100],onValueChange:O=>v(O[0]/100),max:100,step:1,className:`${t?"w-32":"w-24"}`,"data-testid":"slider-volume"})]})})]})]})}const l0=d.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));l0.displayName="Input";var Hs=function(){return Hs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hs.apply(this,arguments)};var Fu=function(e,t,n,r,o){return(e-t)*(o-r)/(n-t)+r},c0=function(e,t){var n=e+t;return n>360?n-360:n},Cp=function(){return Math.random()>.5},rs=function(e,t){return t===void 0&&(t=2),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},u0=[0,0,1],zu=[[1,1,0],[1,0,1],[0,1,1],[1,0,0],[0,1,0],u0],xN=function(e,t,n,r,o,s){var i=Math.round(600*Math.random()+200),l=Math.round(Math.random()*(zu.length-1)),c=n-Math.round(1e3*Math.random()),u=Math.random()<.1,f=function(v){return!zu[v].every(function(x,E){return x===u0[E]})&&Cp()}(l),h=u?rs(.25*Math.random(),2):0,p=-1*h,w=h,S=rs(Math.abs(Fu(Math.abs(c0(t.degree,90)-180),0,180,-1,1)),4),y=rs(.5*Math.random(),4),b=rs(Math.random()*r*(Cp()?1:-1),4),g=rs(Math.max(Fu(Math.abs(t.degree-180),0,180,r,-r),0),4),m="confetti-particle-".concat(s);return{className:m,style:` 268 .`.concat(e," .").concat(m,` { 269 animation: x-axis-`).concat(s," ").concat(c,"ms forwards cubic-bezier(").concat(h,", ").concat(p,", ").concat(w,", ").concat(S,`); 270 } 271 .`).concat(e," .").concat(m,` > div { 272 width: `).concat(f?o:Math.round(4*Math.random())+o/2,`px; 273 height: `).concat(f?o:Math.round(2*Math.random())+o,`px; 274 animation: y-axis `).concat(c,"ms forwards cubic-bezier(").concat(y,", ").concat(b,", ").concat(.5,", ").concat(g,`); 275 } 276 .`).concat(e," .").concat(m,` > div::after { 277 background-color: `).concat(t.color,`; 278 animation: rotation-`).concat(l," ").concat(i,`ms infinite linear; 279 `).concat(f?"border-radius: 50%;":"",` 280 } 281 `)}},wN=function(e){var t=e.particles,n=e.duration,r=e.height,o=e.width,s=e.force,i=e.particleSize,l=Math.random().toString(36).substring(2,8),c="confetti-".concat(l,"-container"),u="confetti-".concat(l,"-screen"),f=` 282 .`.concat(c,` { 283 width: 0; 284 height: 0; 285 position: relative; 286 } 287 .`).concat(u,` { 288 position: fixed; 289 top: 0; 290 left: 0; 291 right: 0; 292 bottom: 0; 293 overflow: hidden; 294 pointer-events: none; 295 } 296 .`).concat(u,` [class*="confetti-particle"] > div { 297 position: absolute; 298 left: 0; 299 top: 0; 300 } 301 .`).concat(u,` [class*="confetti-particle"] > div::after { 302 content: ''; 303 display: block; 304 width: 100%; 305 height: 100%; 306 } 307 `),h=zu.map(function(y,b){return` 308 @keyframes rotation-`.concat(b,` { 309 50% { 310 transform: rotate3d(`).concat(y.map(function(g){return g/2}).join(),`, 180deg); 311 } 312 100% { 313 transform: rotate3d(`).concat(y.join(),`, 360deg); 314 } 315 } 316 `)}).join(` 317`),p=function(y,b,g){var m=typeof b=="string"?b:"".concat(b,"px"),v=y.map(function(x,E){var T=Fu(Math.abs(c0(x,90)-180),0,180,-g/2,g/2);return` 318 @keyframes x-axis-`.concat(E,` { 319 to { 320 transform: translateX(`).concat(T,`px); 321 } 322 } 323 `)}).join(` 324`);return` 325 @keyframes y-axis { 326 to { 327 transform: translateY(`.concat(m,`); 328 } 329 } 330 `).concat(v,` 331 `)}(t.map(function(y){return y.degree}),r,o),w=t.map(function(y,b){return xN(u,y,n,s,i,b)}),S=` 332 `.concat(f,` 333 `).concat(h,` 334 `).concat(p,` 335 `).concat(w.map(function(y){return y.style}).join(` 336`),` 337 `);return{containerClass:c,screenClass:u,particleClasses:w.map(function(y){return y.className}),styles:S}},bN=["#FFC700","#FF0000","#2E3191","#41BBC7"],SN=function(e,t){var n,r=360/e;return(n=e,Array.from({length:n},function(o,s){return s})).map(function(o){return{color:t[o%t.length],degree:r*o}})},jN=function(e){var t,n=e.particleCount,r=n===void 0?100:n,o=e.duration,s=o===void 0?2200:o,i=e.colors,l=i===void 0?bN:i,c=e.particleSize,u=c===void 0?12:c,f=e.force,h=f===void 0?.5:f,p=e.height,w=p===void 0?"120vh":p,S=e.width,y=S===void 0?1e3:S,b=e.portal,g=b===void 0||b,m=e.zIndex,v=e.onComplete,x=function(U,z){var K={};for(var N in U)Object.prototype.hasOwnProperty.call(U,N)&&z.indexOf(N)<0&&(K[N]=U[N]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function"){var A=0;for(N=Object.getOwnPropertySymbols(U);A<N.length;A++)z.indexOf(N[A])<0&&Object.prototype.propertyIsEnumerable.call(U,N[A])&&(K[N[A]]=U[N[A]])}return K}(e,["particleCount","duration","colors","particleSize","force","height","width","portal","zIndex","onComplete"]),E=d.use
337State(),T=E[0],k=E[1],C=SN(r,l),P=function(U){var z=wN(U);return{containerClass:z.containerClass,screenClass:z.screenClass,particleClasses:z.particleClasses,styles:z.styles}}({particles:C,duration:s,height:w,width:y,force:h,particleSize:u}),R=P.containerClass,O=P.screenClass,_=P.particleClasses,$=P.styles,L=d.useCallback(function(U){if(U){var z=U.getBoundingClientRect(),K=z.top,N=z.left;k({top:K,left:N})}},[]);return d.useEffect(function(){if(typeof v=="function"){var U=setTimeout(v,s);return function(){return clearTimeout(U)}}},[s,v]),d.createElement("div",Hs({ref:L,className:R},x),d.createElement("style",{dangerouslySetInnerHTML:{__html:$}}),T&&d.createElement(d.Fragment,null,(t=d.createElement("div",Hs({"data-slot":"confetti-explosion-screen",className:O},m?{style:{zIndex:m}}:null),d.createElement("div",{style:{position:"absolute",top:T.top,left:T.left}},C.map(function(U,z){return d.createElement("div",{className:_[z],key:U.degree},d.createElement("div",null))}))),g?Io.createPortal(t,document.body):t)))},EN=function(e){return typeof window>"u"||window.location===void 0?null:d.createElement(jN,Hs({},e))},CN=({as:e="div",...t},n)=>a.jsx(e,{...t,ref:n}),kN=d.forwardRef(CN),NN="https://challenges.cloudflare.com/turnstile/v0/api.js",ff="cf-turnstile-script",TN="cf-turnstile",hf="onloadTurnstileCallback",d0=e=>!!document.getElementById(e),PN=({render:e="explicit",onLoadCallbackName:t=hf,scriptOptions:{nonce:n="",defer:r=!0,async:o=!0,id:s="",appendTo:i,onError:l,crossOrigin:c=""}={}})=>{let u=s||ff;if(d0(u))return;let f=document.createElement("script");f.id=u,f.src=`${NN}?onload=${t}&render=${e}`,!document.querySelector(`script[src="${f.src}"]`)&&(f.defer=!!r,f.async=!!o,n&&(f.nonce=n),c&&(f.crossOrigin=c),l&&(f.onerror=l,delete window[t]),(i==="body"?document.body:document.getElementsByTagName("head")[0]).appendChild(f))},rr={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}};function RN(e){if(e!=="invisible"&&e!=="interactionOnly")return e}function AN(e=ff){let[t,n]=d.useState(!1);return d.useEffect(()=>{let r=()=>{d0(e)&&n(!0)},o=new MutationObserver(r);return o.observe(document,{childList:!0,subtree:!0}),r(),()=>{o.disconnect()}},[e]),t}var bs="unloaded",f0,ON=new Promise((e,t)=>{f0={resolve:e,reject:t},bs==="ready"&&e(void 0)}),MN=(e=hf)=>(bs==="unloaded"&&(bs="loading",window[e]=()=>{f0.resolve(),bs="ready",delete window[e]}),ON),h0=d.forwardRef((e,t)=>{let{scriptOptions:n,options:r={},siteKey:o,onWidgetLoad:s,onSuccess:i,onExpire:l,onError:c,onBeforeInteractive:u,onAfterInteractive:f,onUnsupported:h,onTimeout:p,onLoadScript:w,id:S,style:y,as:b="div",injectScript:g=!0,rerenderOnCallbackChange:m=!1,...v}=e,x=r.size,E=d.useCallback(()=>typeof x>"u"?{}:r.execution==="execute"?rr.invisible:r.appearance==="interaction-only"?rr.interactionOnly:rr[x],[r.execution,x,r.appearance]),[T,k]=d.useState(E()),C=d.useRef(null),[P,R]=d.useState(!1),O=d.useRef(),_=d.useRef(!1),$=S||TN,L=d.useRef({onSuccess:i,onError:c,onExpire:l,onBeforeInteractive:u,onAfterInteractive:f,onUnsupported:h,onTimeout:p});d.useEffect(()=>{m||(L.current={onSuccess:i,onError:c,onExpire:l,onBeforeInteractive:u,onAfterInteractive:f,onUnsupported:h,onTimeout:p})});let U=(n==null?void 0:n.id)||ff,z=AN(U),K=(n==null?void 0:n.onLoadCallbackName)||hf,N=r.appearance||"always",A=d.useMemo(()=>({sitekey:o,action:r.action,cData:r.cData,theme:r.theme||"auto",language:r.language||"auto",tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:RN(x),retry:r.retry||"auto","retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||"auto","refresh-timeout":r.refreshTimeout||"auto",execution:r.execution||"render",appearance:r.appearance||"always","feedback-enabled":r.feedbackEnabled||!0,callback:M=>{var B,H;_.current=!0,m?i==null||i(M):(H=(B=L.current).onSuccess)==null||H.call(B,M)},"error-callback":m?c:(...M)=>{var B,H;return(H=(B=L.current).onError)==null?void 0:H.call(B,...M)},"expired-callback":m?l:(...M)=>{var B,H;return(H=(B=L.current).onExpire)==null?void 0:H.call(B,...M)},"before-interactive-callback":m?u:(...M)=>{var B,H;return(H=(B=L.current).onBeforeInteractive)==null?void 0:H.call(B,...M)},"after-interactive-callback":m?f:(...M)=>{var B,H;return(H=(B=L.current).onAfterInteractive)==null?void 0:H.call(B,...M)},"unsupported-callback":m?h:(...M)=>{var B,H;return(H=(B=L.current).onUnsupported)==null?void 0:H.call(B,...M)},"timeout-callback":m?p:(...M)=>{var B,H;return(H=(B=L.current).onTimeout)==null?void 0:H.call(B,...M)}}
337),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,o,x,m,m?i:null,m?c:null,m?l:null,m?u:null,m?f:null,m?h:null,m?p:null]),D=d.useCallback(()=>typeof window<"u"&&!!window.turnstile,[]);return d.useEffect(function(){g&&!P&&PN({onLoadCallbackName:K,scriptOptions:{...n,id:U}})},[g,P,n,U]),d.useEffect(function(){bs!=="ready"&&MN(K).then(()=>R(!0)).catch(console.error)},[]),d.useEffect(function(){if(!C.current||!P)return;let M=!1;return(async()=>{if(M||!C.current)return;let B=window.turnstile.render(C.current,A);O.current=B,O.current&&(s==null||s(O.current))})(),()=>{M=!0,O.current&&(window.turnstile.remove(O.current),_.current=!1)}},[$,P,A]),d.useImperativeHandle(t,()=>{let{turnstile:M}=window;return{getResponse(){if(!(M!=null&&M.getResponse)||!O.current||!D()){console.warn("Turnstile has not been loaded");return}return M.getResponse(O.current)},async getResponsePromise(B=3e4,H=100){return new Promise((we,Oe)=>{let ie,se=async()=>{if(_.current&&window.turnstile&&O.current)try{let et=window.turnstile.getResponse(O.current);return ie&&clearTimeout(ie),et?we(et):Oe(new Error("No response received"))}catch(et){return ie&&clearTimeout(ie),console.warn("Failed to get response",et),Oe(new Error("Failed to get response"))}ie||(ie=setTimeout(()=>{ie&&clearTimeout(ie),Oe(new Error("Timeout"))},B)),await new Promise(et=>setTimeout(et,H)),await se()};se()})},reset(){if(!(M!=null&&M.reset)||!O.current||!D()){console.warn("Turnstile has not been loaded");return}r.execution==="execute"&&k(rr.invisible);try{_.current=!1,M.reset(O.current)}catch(B){console.warn(`Failed to reset Turnstile widget ${O}`,B)}},remove(){if(!(M!=null&&M.remove)||!O.current||!D()){console.warn("Turnstile has not been loaded");return}k(rr.invisible),_.current=!1,M.remove(O.current),O.current=null},render(){if(!(M!=null&&M.render)||!C.current||!D()||O.current){console.warn("Turnstile has not been loaded or container not found");return}let B=M.render(C.current,A);return O.current=B,O.current&&(s==null||s(O.current)),r.execution!=="execute"&&k(x?rr[x]:{}),B},execute(){if(r.execution!=="execute"){console.warn('Execution mode is not set to "execute"');return}if(!(M!=null&&M.execute)||!C.current||!O.current||!D()){console.warn("Turnstile has not been loaded or container not found");return}M.execute(C.current,A),k(x?rr[x]:{})},isExpired(){return!(M!=null&&M.isExpired)||!O.current||!D()?(console.warn("Turnstile has not been loaded"),!1):M.isExpired(O.current)}}},[O,r.execution,x,A,C,D,P,s]),d.useEffect(()=>{z&&!P&&window.turnstile&&R(!0)},[P,z]),d.useEffect(()=>{k(E())},[r.execution,x,N]),d.useEffect(()=>{!z||typeof w!="function"||w()},[z]),a.jsx(kN,{ref:C,as:b,id:$,style:{...T,...y},...v})});h0.displayName="Turnstile";const p0="0x4AAAAAACD30zdfN2GXLR5B",kp=!!p0;function _N(){const[e,t]=d.useState(""),[n,r]=d.useState(!1),[o,s]=d.useState(null),i=d.useRef(null),{toast:l}=By(),c=Oy({mutationFn:async({email:f,turnstileToken:h})=>_y("POST","/api/newsletter/subscribe",{email:f,turnstileToken:h}),onSuccess:()=>{var f;r(!0),l({title:"Subscribed!",description:"You've successfully subscribed to our newsletter."}),t(""),s(null),(f=i.current)==null||f.reset()},onError:f=>{var h;l({title:"Subscription Failed",description:f.message||"Please try again later.",variant:"destructive"}),s(null),(h=i.current)==null||h.reset()}}),u=f=>{if(f.preventDefault(),!e)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){l({title:"Invalid Email",description:"Please enter a valid email address.",variant:"destructive"});return}if(kp&&!o){l({title:"Verification Required",description:"Please complete the security check.",variant:"destructive"});return}c.mutate({email:e,turnstileToken:o||void 0})};return a.jsxs("form",{onSubmit:u,className:"max-w-md mx-auto relative",children:[n&&a.jsx("div",{className:"absolute left-1/2 top-0 -translate-x-1/2",children:a.jsx(EN,{particleCount:150,duration:3e3,force:.8,width:600,colors:["#F6844B","#0B486B","#FFFFFF","#FFD700","#FF6B6B"],onComplete:()=>r(!1)})}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[a.jsx(l0,{type:"email",placeholder:"Enter your email address",value:e,onCh
337ange:f=>t(f.target.value),className:"flex-1 px-6 py-4 rounded-lg text-gray-900 placeholder-gray-500 bg-white border-0 focus:ring-4 focus:ring-white/20 outline-none transition-all",required:!0,disabled:c.isPending,"data-testid":"input-newsletter-email"}),a.jsx(G,{type:"submit",className:"btn-secondary px-8 py-4 text-base font-semibold text-secondary-foreground rounded-lg shadow-lg whitespace-nowrap",disabled:c.isPending||kp&&!o,"data-testid":"button-newsletter-subscribe",children:c.isPending?a.jsxs(a.Fragment,{children:[a.jsx(vv,{className:"w-4 h-4 mr-2 animate-spin"}),"Subscribing..."]}):"Subscribe"})]}),a.jsx(h0,{ref:i,siteKey:p0,onSuccess:f=>s(f),onError:()=>s(null),onExpire:()=>s(null),options:{size:"invisible"}}),a.jsx("p",{className:"text-sm text-primary-foreground/70 mt-4",children:"We respect your privacy. Unsubscribe at any time."})]})}const LN="Mechanism of Action Podcast | Medical History & Drug Discovery",Np="Discover how modern medicine was built. A podcast exploring the journey from disease identification to drug discovery, hosted by Adam J. Brown, MD.",Tp="https://moapodcast.com/og-image.webp",os="https://moapodcast.com",Pp="https://feeds.castos.com/158g9",Rp="medical history, medical storytelling, medical podcast, health podcast, science podcast, history of medicine, medicine explained, pharmacology, drug history, drug discovery, Adam J. Brown MD";function IN(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);let o="PT";return t>0&&(o+=`${t}H`),n>0&&(o+=`${n}M`),(r>0||o==="PT")&&(o+=`${r}S`),o}const DN="moa, moa podcast, mechanism of action, medical history, drug discovery, medicine podcast, Adam J. Brown MD";function Ho({title:e,description:t=Np,image:n=Tp,url:r,type:o="website",noIndex:s=!1,episode:i,keywords:l=DN,isPodcastHome:c=!1}){const u=e?`Mechanism of Action Podcast | ${e}`:LN,f=r?`${os}${r}`:os,h=n.startsWith("http")?n:`${os}${n}`,p=c?{"@context":"https://schema.org","@type":"PodcastSeries",name:"Mechanism of Action",description:Np,url:os,image:Tp,keywords:Rp,author:{"@type":"Person",name:"Adam J. Brown, MD"},webFeed:Pp}:null,w=i?{"@context":"https://schema.org","@type":"PodcastEpisode",name:i.name,description:i.description,url:f,datePublished:i.datePublished,...i.episodeNumber&&{episodeNumber:i.episodeNumber},...i.seasonNumber&&{seasonNumber:i.seasonNumber},...i.duration&&{timeRequired:IN(i.duration)},...i.keywords&&{keywords:i.keywords},image:h,...i.audioUrl&&{associatedMedia:{"@type":"MediaObject",contentUrl:i.audioUrl}},...i.hasTranscript&&{transcript:`${f}#transcript`,...i.transcriptSummary&&{abstract:i.transcriptSummary}},partOfSeries:{"@type":"PodcastSeries",name:"Mechanism of Action",url:os,keywords:Rp,author:{"@type":"Person",name:"Adam J. Brown, MD"}}}:null;return a.jsxs(MS,{children:[a.jsx("title",{children:u}),a.jsx("meta",{name:"description",content:t}),a.jsx("meta",{name:"keywords",content:l}),s&&a.jsx("meta",{name:"robots",content:"noindex, nofollow"}),a.jsx("link",{rel:"alternate",type:"application/rss+xml",title:"Mechanism of Action Podcast RSS",href:Pp}),a.jsx("meta",{property:"og:type",content:i?"article":o}),a.jsx("meta",{property:"og:url",content:f}),a.jsx("meta",{property:"og:title",content:u}),a.jsx("meta",{property:"og:description",content:t}),a.jsx("meta",{property:"og:image",content:h}),a.jsx("meta",{property:"og:image:width",content:"1200"}),a.jsx("meta",{property:"og:image:height",content:"630"}),a.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),a.jsx("meta",{name:"twitter:url",content:f}),a.jsx("meta",{name:"twitter:title",content:u}),a.jsx("meta",{name:"twitter:description",content:t}),a.jsx("meta",{name:"twitter:image",content:h}),a.jsx("meta",{name:"twitter:creator",content:"@AdamJBrownMD"}),p&&a.jsx("script",{type:"application/ld+json",children:JSON.stringify(p)}),w&&a.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)})]})}const Ap="/assets/image_1759959251961-NZzuWr-7.webp";function FN({episode:e,onClose:t,onPlayingChange:n,togglePlayRef:r}){const o=d.useRef(null),[s,i]=d.useState(!1),[l,c]=d.useState(!1),{isPlaying:u,currentTime:f,duration:h,togglePlay:p,setCurrentTime:w,skipForward:S,skipBackward:y}=a0(e.audioUrl||void 0,!1,e.id,e.title),b=d.useRef(!1);d.useEffect(()=>{b.current||(b.current=!0,p())},[p]),d.useEffect(()=>{n==null||n(u)},[u,n]),d.useEffect(()=>(r&&(r.current=p),()=>{r&&(r.current=null)}),[p,r]);const g=C=>{const P=Math.floor(C/60),R=Math.floor(C%60);return`${P}:${R.toString().padStart(2,"0")}`},m=d.useCallback(C=>{if(!o.current||h<=0)return null;const P=o.current.getBoundingClientRect(),R=C-P.left;return Math.max(0,Math.min(1,R/P.width))*h}
337,[h]),v=C=>{const P=m(C.clientX);P!==null&&w(P)},x=d.useCallback(C=>{c(!0);const P=m(C.touches[0].clientX);P!==null&&w(P)},[m,w]),E=d.useCallback(C=>{if(!l)return;const P=m(C.touches[0].clientX);P!==null&&w(P)},[l,m,w]),T=d.useCallback(()=>{c(!1)},[]),k=h>0?f/h*100:0;return s?a.jsxs("div",{className:"fixed inset-0 bg-background z-50 flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full",onClick:t,"data-testid":"button-close-fullscreen-player",children:a.jsx(Us,{className:"w-5 h-5"})}),a.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Now Playing"}),a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full",onClick:()=>i(!1),"data-testid":"button-minimize-player",children:a.jsx(wv,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center p-8 space-y-8",children:[e.thumbnailUrl&&a.jsx("img",{src:e.thumbnailUrl,alt:e.title,className:"w-64 h-64 rounded-xl object-cover shadow-2xl"}),a.jsxs("div",{className:"text-center space-y-2 max-w-sm",children:[a.jsx("p",{className:"text-xl font-bold text-foreground",children:e.title}),e.author&&a.jsx("p",{className:"text-sm text-muted-foreground",children:e.author})]})]}),a.jsxs("div",{className:"p-6 space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{ref:o,className:"relative h-3 bg-muted rounded-full cursor-pointer touch-none",onClick:v,onTouchStart:x,onTouchMove:E,onTouchEnd:T,"data-testid":"fullscreen-progress-bar",children:[a.jsx("div",{className:"h-full bg-primary rounded-full pointer-events-none",style:{width:`${k}%`}}),a.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 w-5 h-5 bg-primary rounded-full shadow-lg pointer-events-none",style:{left:`calc(${k}% - 10px)`}})]}),a.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[a.jsx("span",{children:g(f)}),a.jsx("span",{children:g(h)})]})]}),a.jsxs("div",{className:"flex items-center justify-center space-x-8",children:[a.jsx(G,{size:"lg",variant:"ghost",className:"p-4 hover:bg-muted rounded-full",onClick:y,"data-testid":"button-fullscreen-rewind",children:a.jsx(Cu,{className:"w-8 h-8"})}),a.jsx(G,{size:"lg",className:"p-6 bg-primary text-primary-foreground rounded-full hover:bg-primary/90",onClick:p,"data-testid":"button-fullscreen-play-pause",children:u?a.jsx(kr,{className:"w-10 h-10"}):a.jsx(dn,{className:"w-10 h-10"})}),a.jsx(G,{size:"lg",variant:"ghost",className:"p-4 hover:bg-muted rounded-full",onClick:S,"data-testid":"button-fullscreen-forward",children:a.jsx(Eu,{className:"w-8 h-8"})})]})]})]}):a.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-card border-t border-border shadow-2xl z-40",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3",children:[a.jsx("div",{ref:o,className:"absolute top-0 left-0 right-0 h-2 lg:h-2 bg-muted cursor-pointer",onClick:v,onTouchStart:x,onTouchMove:E,onTouchEnd:T,"data-testid":"footer-progress-bar",children:a.jsx("div",{className:"h-full bg-primary pointer-events-none",style:{width:`${k}%`}})}),a.jsxs("div",{className:"flex items-center justify-between gap-2 mt-1",children:[a.jsxs("div",{className:"flex items-center space-x-3 flex-1 min-w-0 cursor-pointer lg:cursor-default",onClick:()=>window.innerWidth<1024&&i(!0),children:[e.thumbnailUrl&&a.jsx("img",{src:e.thumbnailUrl,alt:e.title,className:"w-12 h-12 rounded object-cover flex-shrink-0"}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-semibold text-foreground truncate",children:e.title}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[g(f)," / ",g(h)]})]})]}),a.jsxs("div",{className:"flex items-center space-x-1 sm:space-x-2",children:[a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full hidden sm:flex",onClick:y,"data-testid":"button-footer-rewind",children:a.jsx(Cu,{className:"w-4 h-4"})}),a.jsx(G,{size:"sm",className:"p-3 bg-primary text-primary-foreground rounded-full hover:bg-primary/90",onClick:p,"data-testid":"button-footer-play-pause",children:u?a.jsx(kr,{className:"w-5 h-5"}):a.jsx(dn,{className:"w-5 h-5"})}),a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full hidden sm:flex",onClick:S,"data-testid":"button-footer-forward",children:a.jsx(Eu,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:"flex items-center space-x-1",children:[a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full flex-shrink-0 lg:hidden",onClick:()=>i(!0),"data-testid":"button-expand-player",children:a.jsx(xv,{className:"w-4 h-4"})}),a.jsx(G,{size:"sm",variant:"ghost",className:"p-2 hover:bg-muted rounded-full flex-shrink-0",onClick:t,"data-testid":"button-close-player",children:a.jsx(Us,{className:"w-4 h-4"})})]})]})]})})}function zN(){const[e,t]=d.useState(null),[n,r]=d.useState(!1),[o,s]=d.use
337State(!1),[i,l]=d.useState(!1),c=d.useRef(null),u=d.useRef(null),{data:f,isLoading:h}=Ta({queryKey:["/api/episodes"]});d.useEffect(()=>{const C=window.location.hash;if(C){const P=C.substring(1);setTimeout(()=>{const R=document.getElementById(P);R&&R.scrollIntoView({behavior:"smooth",block:"start"})},100)}},[]);const p=f==null?void 0:f[0],w=6,[S,y]=d.useState(1),b=(f==null?void 0:f.slice(1))||[],g=Math.max(1,Math.ceil(b.length/w)),m=(S-1)*w,v=b.slice(m,m+w),x=S<g,E=S>1,T=C=>{var P,R;o&&((P=u.current)==null||P.call(u)),(e==null?void 0:e.id)===C.id?(R=c.current)==null||R.call(c):t(C)},k=()=>{var C;(C=c.current)==null||C.call(c)};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{url:"/",isPodcastHome:!0}),a.jsx(Wn,{}),a.jsxs("section",{className:"relative overflow-hidden",children:[a.jsx("div",{className:"hero-gradient text-primary-foreground",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-28",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{className:"text-center lg:text-left animate-fadeIn",children:[a.jsx("div",{className:"lg:hidden mb-8",children:a.jsx("img",{src:Ap,alt:"Mechanism of Action Podcast Logo",className:"mx-auto h-32 w-auto"})}),a.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:"Journey from disease to drug discovery"}),a.jsxs("p",{className:"text-lg sm:text-xl text-primary-foreground/90 mb-8 max-w-2xl mx-auto lg:mx-0",children:[a.jsx("strong",{children:"Discover how modern medicine was built."})," This podcast explores the careful, often overlooked history of how doctors and scientists identified diseases, uncovered their secrets in the lab, and developed treatments that transformed lives."]}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[a.jsxs(G,{className:"btn-primary inline-flex items-center justify-center px-8 py-4 text-base font-semibold text-primary-foreground rounded-lg shadow-lg",onClick:()=>{const C=document.getElementById("latest-episode-player"),P=document.getElementById("latest-episode");C&&window.innerWidth>=1024?C.scrollIntoView({behavior:"smooth",block:"center"}):P&&P.scrollIntoView({behavior:"smooth",block:"start"})},"data-testid":"button-play-latest",children:[a.jsx(dn,{className:"w-5 h-5 mr-2"}),"Listen to Latest Episode"]}),a.jsxs(G,{variant:"ghost",className:"inline-flex items-center justify-center px-8 py-4 text-base font-semibold text-primary-foreground bg-white/20 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white/30 transition-all",onClick:()=>{var C;return(C=document.getElementById("episodes"))==null?void 0:C.scrollIntoView({behavior:"smooth"})},"data-testid":"button-browse-episodes",children:["Browse All Episodes",a.jsx(Oj,{className:"w-5 h-5 ml-2"})]})]})]}),a.jsx("div",{className:"hidden lg:block animate-fadeIn",children:a.jsx("img",{src:Ap,alt:"Mechanism of Action Podcast Logo",className:"w-full h-auto max-w-md mx-auto drop-shadow-2xl"})})]})})}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:a.jsx("svg",{className:"w-full h-16 text-background",preserveAspectRatio:"none",viewBox:"0 0 1440 48",fill:"currentColor",children:a.jsx("path",{d:"M0,24 C320,48 480,48 720,24 C960,0 1120,0 1440,24 L1440,48 L0,48 Z"})})})]}),p&&(()=>{const C=p.title.includes("â")?p.title.split("â").map(O=>O.trim()):[p.title,null],P=C[0],R=C.length>1&&C[1]?C.slice(1).join(": "):null;return a.jsx("section",{id:"latest-episode",className:"py-16 lg:py-24 bg-background",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"text-center mb-12",children:a.jsx("div",{className:"inline-flex items-center bg-accent text-accent-foreground px-4 py-2 rounded-full text-sm font-semibold",children:a.jsx("span",{children:"LATEST EPISODE"})})}),a.jsx(at,{className:"rounded-2xl shadow-xl overflow-hidden border border-border max-w-5xl mx-auto",children:a.jsxs("div",{className:"grid lg:grid-cols-5 gap-8 p-8 lg:p-12",children:[a.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground leading-tight",children:P}),R&&a.jsx("h3",{className:"text-xl lg:text-2xl font-semibold text-foreground
337/80 mt-2 leading-tight",children:R})]}),p.subtitle&&a.jsx("p",{className:"text-lg font-medium",style:{color:"rgb(168, 212, 240)"},children:p.subtitle}),a.jsxs("div",{className:"flex items-center space-x-3 text-sm text-muted-foreground",children:[a.jsx("span",{className:"font-semibold",children:p.publishDate.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}).toUpperCase()}),a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full"}),a.jsxs("span",{className:"font-semibold text-secondary",children:[Math.round(p.duration/60)," MIN"]})]}),a.jsxs("div",{className:"text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{className:`${i?"":"line-clamp-6"}`,children:p.description}),a.jsx("button",{onClick:()=>l(!i),className:"lg:hidden text-sm font-medium mt-2",style:{color:"#F6844B"},"data-testid":"button-toggle-description",children:i?"Show less":"Show more"}),a.jsx("div",{className:"hidden lg:flex lg:justify-end mt-3",children:a.jsx(Ee,{href:`/episodes/${p.slug}`,children:a.jsxs("span",{className:"inline-flex items-center text-sm font-semibold cursor-pointer hover:opacity-80 transition-opacity",style:{color:"#F6844B"},"data-testid":"link-read-latest-desktop",children:[a.jsx(Su,{className:"w-4 h-4 mr-1.5"}),"Read More"]})})})]}),a.jsxs("div",{className:"flex items-center space-x-4 pt-4 border-t border-border",children:[a.jsx("img",{src:p.authorImageUrl||"",alt:p.author,className:"w-16 h-16 rounded-full ring-2 ring-primary/20 bg-white"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground",children:p.author}),a.jsx("p",{className:"text-sm text-muted-foreground",children:p.authorTitle}),a.jsx("p",{className:"text-sm text-muted-foreground",children:p.authorOrganization})]})]})]}),a.jsx("div",{id:"latest-episode-player",className:"hidden lg:flex lg:items-center lg:col-span-2",children:a.jsxs("div",{className:"w-full relative",children:[a.jsx(Du,{episode:p,togglePlayRef:u,largeImage:!0,onPlay:()=>{e&&(t(null),r(!1))},onPlayingChange:s}),p.episode&&{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode]&&a.jsxs("a",{href:{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode],target:"_blank",rel:"noopener noreferrer",className:"absolute top-2 right-2 bg-black/50 backdrop-blur-sm border border-white/10 px-2 py-1 rounded flex items-center gap-1 z-10","data-testid":"link-watch-badge-desktop",children:[a.jsx(ws,{className:"w-3 h-3 text-white"}),a.jsx("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:"Watch"})]})]})}),a.jsxs("div",{className:"lg:hidden lg:col-span-2 space-y-4",children:[a.jsx(Ee,{href:`/episodes/${p.slug}`,children:a.jsxs("div",{className:"relative w-full rounded-lg overflow-hidden aspect-[4/3]",children:[a.jsx("img",{src:p.thumbnailUrl||"",alt:`${p.title} episode artwork`,className:"w-full h-full object-cover","data-testid":"img-latest-episode-mobile"}),p.episode&&a.jsx("div",{className:"absolute top-2 left-2 bg-black/50 backdrop-blur-sm border border-white/10 px-2 py-1 rounded",children:a.jsxs("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:["Episode ",p.episode]})}),p.episode&&{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode]&&a.jsxs("a",{href:{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode],target:"_blank",rel:"noopener noreferrer",className:"absolute top-2 right-2 bg-black/50 backdrop-blur-sm border border-white/10 px-2 py-1 rounded flex items-center gap-1",onClick:O=>O.stopPropagation(),"data-testid":"link-watch-badge-mobile",children:[a.jsx(ws,{className:"w-3 h-3 text-white"}),a.jsx("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:"Watch"})]}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 backdrop-blur-sm border-t border-white/10 p-3 rounded-b-lg",children:a.jsx("p",{className:"text-white font-bold text-lg text-center drop-shadow-lg",style:{fontFamily:"Cardo, Georgia, serif"},children:P})})]})}),a.jsxs("div",{className:"flex items-center justify-center gap-1",children:[p.episode&&[1,2,3,4,5,6,7,8,9,10,11,12].includes(p.episode)&&{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode]&&a.jsxs("a",{href:{1:"https://youtu.be/UMd4pVvgc3w",2:"https://youtu.be/V1f-hywMtYI",3:"https://youtu.be/aDJK6wuuvRI",4:"https://youtu.be/zbtp9355u1g",5:"https://youtu.be/S_HWIdoLhWA",6:"https://youtu.be/JDoYVMFkjaI",7:"https://youtu.be/ybRBX4_FoZ0",8:"https://youtu.be/P-I5DzVgKOs",9:"https://youtu.be/dRh9TLB25pU",10:"https://youtu.be/K8JodNjdVnU",11:"https://youtu.be/FDoEtDps9OI",12:"https://youtu.be/nAl2AfRREGg"}[p.episode],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-xs font-semibold transition-all px-2 py-1.5 h-auto rounded-md whitespace-nowrap",style:{color:"#F6844B"},"data-testid":"link-youtube-latest-mobile",children:[a.jsx(ws,{className:"w-4 h-4 mr-1 flex-shrink-0"}),"WATCH"]}),a.jsx(G,{variant:"ghost",size:"sm",className:"inline-flex items-center text-xs font-semibold text-secondary hover:text-secondary/80 hover:bg-secondary/10 transition-all px-2 py-1.5 h-auto rounded-md whitespace-nowrap",onClick:()=>T(p),"data-testid":"button-listen-latest-mobile",children:(e==null?void 0:e.id)===p.id&&n?a.jsxs(a.Fragment,{children:[a.jsx(kr,{className:"w-4 h-4 mr-1 flex-shrink-0"}),"PAUSE"]}):a.jsxs(a.Fragment,{children:[a.jsx(dn,{className:"w-4 h-4 mr-1 flex-shrink-0"}),"LISTEN"]})}),a.jsx(Ee,{href:`/episodes/${p.slug}`,children:a.jsxs(G,{variant:"ghost",size:"sm",className:"inline-flex items-center text-xs font-semibold text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-all px-2 py-1.5 h-auto rounded-md whitespace-nowrap","data-testid":"button-read-latest-mobile",children:[a.jsx(Su,{className:"w-4 h-4 mr-1 flex-shrink-0"}),"READ"]})})]})]})]})})]})})})(),a.jsx("section",{id:"episodes",className:"py-16 lg:py-24 bg-muted/30",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"mb-12",children:[a.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-4",children:"Recent Episodes"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl",children:"Explore our archive of episodes covering the fascinating history of medical breakthroughs and drug discovery."})]}),h?a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(3)].map((C,P)=>a.jsx(at,{className:"animate-pulse",children:a.jsxs("div",{className:"p-6 space-y-4",children:[a.jsx("div",{className:"w-full aspect-square bg-muted rounded-lg"}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),a.jsx("div",{className:"h-6 bg-muted rounded w-full"}),a.jsx("div",{className:"h-4 bg-muted rounded w-full"}),a.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})]})},P))}):a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:v.map(C=>a.jsx(Mk,{episode:C,onPlay:()=>T(C),isPlaying:(e==null?void 0:e.id)===C.id&&n,onPause:k},C.id))}),(x||E)&&a.jsxs("div",{className:"mt-10 flex items-center justify-center gap-3",children:[a.jsx(G,{variant:"outline",onClick:()=>{y(C=>Math.max(1,C-1)),requestAnimationFrame(()=>{var C;(C=document.getElementById("episodes"))==null||C.scrollIntoView({behavior:"smooth",block:"start"})})},disabled:!E,"data-testid":"button-prev-episodes",children:"Previous"}),a.jsxs("span",{className:"text-sm text-muted-foreground","data-testid":"text-episodes-page",children:["Page ",S," of ",g]}),a.jsx(G,{variant:"outline",onClick:()=>{y(C=>Math.min(g,C+1)),requestAnimationFrame(()=>{var C;(C=document.getElementById("episodes"))==null||C.scrollIntoView({behavior:"smooth",block:"start"})})},disabled:!x,"data-testid":"button-next-episodes",children:"Next"})]})]})}),a.jsx("section",{id:"about",className:"py-16 lg:py-24 bg-background",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"inline-flex items-center space-x-2 bg-accent text-accent-foreground px-4 py-2 rounded-full text-sm font-semibold mb-2",children:[a.jsx(Hj,{className:"w-4 h-4"}),a.jsx("span",{children:"ABOUT THE PODCAST"})]}),a.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-foreground",children:"Uncover the Stories Behind Medical Breakthroughs"}),a.jsxs("div",{className:"prose prose-lg max-w-none text-white",children:[a.jsxs("p",{children:["The ",a.jsx("strong",{className:"text-white",children:"Mechanism of Action"})," podcast takes you on a journey through the fascinating history of medicine. Each episode reveals how doctors and scientists identified diseases, uncovered their mechanisms, and developed the treatments we depend on today."]}),a.jsx("p",{children:"From rare conditions to common ailments, we explore the careful research, unexpected discoveries, and persistent dedication that built modern medicine. Join us to appreciate the remarkable work behind the therapies that save lives."})]}),a.jsx(at,{className:"bg-muted/50 rounded-xl p-6 border border-border",children:a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx("div",{className:"w-20 h-20 rounded-full bg-white ring-2 ring-primary/20 overflow-hidden flex-shrink-0",children:a.jsx("img",{src:"/assets/adam-brown-headshot.webp",alt:"Adam J. Brown, MD",className:"w-full h-full object-cover bg-white"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-bold text-foreground text-lg",children:"Adam J. Brown, MD"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Host & Creator"}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Rheumatology & Immunology"})]})]})})]})})})}),a.jsx("section",{id:"subscribe",className:"py-16 lg:py-24 bg-gradient-to-br from-primary to-primary/80 text-primary-foreground",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"inline-flex items-center space-x-2 bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-semibold mb-2",children:[a.jsx(Gd,{className:"w-4 h-4"}),a.jsx("span",{children:"NEWSLETTER"})]}),a.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"Join Our Subscribers"}
337),a.jsx("p",{className:"text-lg text-primary-foreground/90 max-w-2xl mx-auto mb-8",children:"Stay in the loop with everything you need to know. Get notified about new episodes, special guests, and exclusive medical history insights."}),a.jsx(_N,{})]})})}),a.jsx(Kn,{}),e&&a.jsx(FN,{episode:e,onClose:()=>{t(null),r(!1)},onPlayingChange:r,togglePlayRef:c},e.id)]})}const m0=d.createContext(null);function $N(){const e=d.useContext(m0);if(!e)throw new Error("useEpisodeAudio must be used within EpisodeAudioProvider");return e}function UN(e){return 0}function Op({episode:e,children:t,highFrequencyUpdates:n=!1}){const r=UN(e.id),o=d.useRef(null),[s,i]=d.useState(!1),[l,c]=d.useState(r),[u,f]=d.useState(0),[h,p]=d.useState(!1),w=d.useRef(0),S=d.useRef(!1),y=d.useRef(null);d.useEffect(()=>(y.current=new i0(e.id,e.title),()=>{var v;(v=y.current)==null||v.onUnload()}),[e.id,e.title]);const b=d.useCallback(async()=>{const v=o.current;v&&(s?v.pause():(S.current||(v.currentTime=r,S.current=!0),v.play().catch(console.error)))},[s,r]),g=d.useCallback(v=>{const x=o.current;x&&(x.currentTime=v,c(v))},[]);d.useEffect(()=>{const v=o.current;if(!v)return;const x=()=>{var P;i(!0),(P=y.current)==null||P.onPlay(v.currentTime)},E=()=>{var P;i(!1),(P=y.current)==null||P.onPause(v.currentTime)},T=()=>{var P;f(v.duration),p(!0),(P=y.current)==null||P.setDuration(v.duration)},k=()=>{var R;const P=v.currentTime;n?c(P):Math.abs(P-w.current)>=.25&&(w.current=P,c(P)),(R=y.current)==null||R.onTimeUpdate(P)},C=()=>{var P;i(!1),(P=y.current)==null||P.onEnded()};return v.addEventListener("play",x),v.addEventListener("pause",E),v.addEventListener("loadedmetadata",T),v.addEventListener("timeupdate",k),v.addEventListener("ended",C),()=>{v.removeEventListener("play",x),v.removeEventListener("pause",E),v.removeEventListener("loadedmetadata",T),v.removeEventListener("timeupdate",k),v.removeEventListener("ended",C)}},[n]);const m={isPlaying:s,currentTime:l,duration:u,isReady:h,togglePlay:b,seek:g,audioRef:o};return a.jsxs(m0.Provider,{value:m,children:[a.jsx("audio",{ref:o,src:e.audioUrl||void 0,preload:"auto",className:"hidden"}),t]})}const Mp={1:"UMd4pVvgc3w",2:"V1f-hywMtYI",3:"aDJK6wuuvRI",4:"zbtp9355u1g",5:"S_HWIdoLhWA",6:"JDoYVMFkjaI",7:"ybRBX4_FoZ0",8:"P-I5DzVgKOs",9:"dRh9TLB25pU",10:"K8JodNjdVnU",11:"FDoEtDps9OI",12:"nAl2AfRREGg"},oc={1:"s7j9IXslOI4",2:"WnYxtbWmRs4",3:"j1Hnhp5sd-E",4:"v6usQhNq_QM",6:"AE4tnX2XPsA",7:"ybRBX4_FoZ0",8:"P-I5DzVgKOs",9:"dRh9TLB25pU",10:"K8JodNjdVnU",11:"FDoEtDps9OI",12:"nAl2AfRREGg"};function BN({paragraphs:e,isFullscreen:t,onToggleFullscreen:n,scrollSpeed:r,onScrollSpeedChange:o,transcriptMode:s,audioCurrentTime:i=0,isAudioPlaying:l=!1,onSeekAudio:c,onToggleAudioPlay:u,initialScrollPosition:f=0,isAutoScrolling:h,onAutoScrollingChange:p,onScrollPositionChange:w,initialAutoScrolling:S=!1,showTimeCodes:y,onShowTimeCodesChange:b,showTapHint:g=!1}){const m=d.useRef(null),v=d.useRef(null),x=typeof h=="boolean"&&typeof p=="function",[E,T]=d.useState(S),k=x?h:E,C=d.useCallback(W=>{x?p(W):T(W)},[x,p]),P=d.useCallback(()=>{x?p(!h):T(W=>!W)},[x,p,h]),R=d.useRef(r),O=d.useRef(null),_=d.useRef(k),$=d.useRef(0),L=d.useRef(null),U=d.useRef([]),z=d.useRef(new Map);d.useEffect(()=>{_.current=k},[k]);const K=d.useRef(-1),N=d.useRef(f===0),[A,D]=d.useState(null),[M,B]=d.useState(!1),H=s==="listen",we=s==="read";d.useEffect(()=>{const W=()=>B(window.innerWidth<768);return W(),window.addEventListener("resize",W),()=>window.removeEventListener("resize",W)},[]),d.useEffect(()=>{if(m.current&&f!==K.current&&!H){const W=m.current,Y=W.scrollHeight-W.clientHeight;Y>0&&f>0&&(W.scrollTop=f*Y),K.current=f,N.current=!0}},[f,H]);const Oe=d.useCallback(()=>{if(m.current){const W=m.current,Y=W.scrollHeight-W.clientHeight,ae=Y>0?W.scrollTop/Y:0;n(ae,k)}else n(0,k)},[n,k]),ie=d.useMemo(()=>{const W=new Map,Y=[];return e.forEach((ae,Se)=>{ae.words.forEach((bt,Lt)=>{Y.push({pIndex:Se,wIndex:Lt,timestamp:bt.timestamp})})}),Y.forEach((ae,Se)=>{const bt=Se<Y.length-1?Y[Se+1].timestamp:1/0;W.set(`${ae.pIndex}-${ae.wIndex}`,{...ae,nextTimestamp:bt})}),W},[e]);d.useCallback((W,Y)=>{if(!H)return!1;const ae=ie.get(`${W}-${Y}`);return ae?i>=ae.timestamp&&i<ae.nextTimestamp:!1},[i,H,ie]);const se=d.useCallback(()=>
337{if(!H)return null;const W=Array.from(ie.entries());for(let Y=0;Y<W.length;Y++){const[ae,Se]=W[Y];if(i>=Se.timestamp&&i<Se.nextTimestamp)return ae}return null},[i,H,ie]),et=H?se():null,oi=d.useCallback(()=>{for(let W=e.length-1;W>=0;W--)if(i>=e[W].startTime)return W;return 0},[i,e]),mn=H?oi():-1;d.useEffect(()=>{if(!H||!et||!v.current||!m.current){D(null);return}const W=z.current.get(et);if(!W){D(null);return}const Y=v.current.getBoundingClientRect(),Se=W.getBoundingClientRect().bottom-Y.top;D({top:Se,height:2})},[et,H]),d.useEffect(()=>{if(H&&l&&mn>=0){const W=U.current[mn];if(W&&m.current){const Y=m.current,ae=Y.getBoundingClientRect(),Lt=W.getBoundingClientRect().top-ae.top+Y.scrollTop-Y.clientHeight/3;Y.scrollTo({top:Math.max(0,Lt),behavior:"smooth"})}}},[mn,H,l]),d.useEffect(()=>{R.current=r},[r]),d.useEffect(()=>{_.current=k,k&&($.current=0)},[k]);const si=d.useRef(M);d.useEffect(()=>{si.current=M},[M]),d.useEffect(()=>{if(!we||!k){O.current&&(cancelAnimationFrame(O.current),O.current=null);return}if(!N.current){const Y=()=>{N.current?W():requestAnimationFrame(Y)};requestAnimationFrame(Y);return}W();function W(){if(!m.current)return;let ae=0;const Se=1500,bt=performance.now();let Lt=!0;L.current=null;const li=()=>{if(!m.current||!_.current)return;const gn=m.current,Or=performance.now(),g0=L.current?(Or-L.current)/1e3:1/60;L.current=Or;const pf=R.current;let mf=1;if(Lt){const gf=Or-bt;if(gf<Se){const v0=gf/Se;mf=1-Math.pow(1-v0,3)}else Lt=!1}const y0=(window.innerWidth<768?6+pf*3:4+pf*2.5)*mf*g0;if(gn.scrollTop+gn.clientHeight>=gn.scrollHeight-1){C(!1),L.current=null;return}ae+=y0;const dl=Math.floor(ae);dl>=1&&(gn.scrollTop+=dl,ae-=dl),O.current=requestAnimationFrame(li)};O.current=requestAnimationFrame(li)}return()=>{O.current&&(cancelAnimationFrame(O.current),O.current=null)}},[k,we]),d.useEffect(()=>{const W=Y=>{Y.key==="Escape"&&t&&Oe()};return t&&(document.addEventListener("keydown",W),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",W),document.body.style.overflow=""}},[t,Oe]);const ii=t?"fixed inset-0 z-50 bg-background flex flex-col":"",tr=t?"flex-1 overflow-y-auto px-4 sm:px-8 lg:px-16 py-6":"max-h-[80vh] sm:max-h-[60vh] overflow-y-auto pr-2",ai=W=>{H&&c&&(c(W),!l&&u&&u())},ul=d.useCallback(()=>{if(m.current&&w&&!H&&!_.current){const W=m.current,Y=W.scrollHeight-W.clientHeight,ae=Y>0?W.scrollTop/Y:0;w(ae)}},[w,H]);return a.jsxs("div",{className:ii,children:[a.jsxs("div",{className:`flex flex-wrap items-center gap-2 py-3 border-b border-border ${t?"px-4 sm:px-8 lg:px-16 bg-background/95 backdrop-blur sticky top-0":"mb-4"}`,children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[H?a.jsxs(G,{variant:"outline",size:"sm",onClick:()=>{u==null||u()},className:"gap-1.5","data-testid":"button-play-audio",children:[l?a.jsx(kr,{className:"w-4 h-4"}):a.jsx(dn,{className:"w-4 h-4"}),a.jsx("span",{className:"w-10",children:l?"Pause":"Play"})]}):a.jsxs(G,{variant:"outline",size:"sm",onClick:W=>{W.stopPropagation(),P()},className:"gap-1.5","data-testid":"button-auto-scroll",children:[k?a.jsx(kr,{className:"w-4 h-4"}):a.jsx(dn,{className:"w-4 h-4"}),a.jsx("span",{children:"Scroll"})]}),a.jsxs(G,{variant:"outline",size:"sm",onClick:Oe,className:"gap-1.5","data-testid":"button-fullscreen",children:[t?a.jsx(wv,{className:"w-4 h-4"}):a.jsx(xv,{className:"w-4 h-4"}),a.jsx("span",{className:"w-6",children:t?"Exit":"Full"})]}),a.jsxs(G,{variant:y?"default":"outline",size:"sm",onClick:()=>b(!y),className:"gap-1.5","data-testid":"button-time-codes",children:[a.jsx(yv,{className:"w-4 h-4"}),a.jsx("span",{children:"Time"})]})]}),t&&a.jsx(G,{variant:"ghost",size:"sm",onClick:Oe,className:"ml-auto","data-testid":"button-close-fullscreen",children:a.jsx(Us,{className:"w-5 h-5"})})]}),we&&a.jsxs("div",{className:`flex items-center gap-2 py-2 border-b border-border ${t?"px-4 sm:px-8 lg:px-16":"px-1"}`,children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"Slow"}),a.jsx(df,{value:[r],onValueChange:W=>o(W[0]),min:1,max:10,step:1,className:"flex-1 max-w-[200px]","data-testid":"slider-scroll-speed"}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"Fast"})]}),H&&g&&t&&a.jsx("div",{className:"px-4 sm:px-8 lg:px-16 py-3 text-center",style:{backgroundColor:"rgba(246, 132, 75, 0.1)"},children:a.jsx("span",{className:"text-sm font-medium",style:{color:"#F6844B"},children:"Tap any word to skip ahead or go back"})}),a.jsxs("div",{className:`relative ${t?"flex-1 flex flex-col min-h-0":""}`,children:[!t&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"absolute inset-y-0 left-0 w-4 z-10 md:hidden",style:{touchAction:"pan-y"}}),a.jsx("div",{className:"absolute inset-y-0 right-0 w-4 z-10 md:hidden",style:{touchAction:"pan-y"}})]}),a.jsx("div",{ref:m,className:`relative ${tr} ${t?"flex-1":""}`,"data-testid":"text-transcript",onScroll:ul,children:a.jsxs("div",{ref:v,className:`relative ${t?"max-w-4xl mx-auto":""}`,children:[H&&A&&a.jsx("div",{className:"absolute left-0 right-0 pointer-events-none transition-all duration-75",style:{to
337p:A.top,height:A.height,backgroundColor:"#F6844B"}}),e.map((W,Y)=>{const ae=H&&Y===mn,Se=H&&Y<mn;return a.jsxs("div",{ref:bt=>{U.current[Y]=bt},className:`${y?"grid grid-cols-[auto_1fr] gap-4":""} mb-6 transition-opacity duration-300 ${Se?"opacity-40":""}`,children:[y&&a.jsx("div",{className:"pt-0.5",children:a.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-mono whitespace-nowrap",style:{backgroundColor:"rgba(246, 132, 75, 0.15)",color:"#F6844B"},children:W.displayTimestamp})}),a.jsxs("div",{children:[W.tag&&a.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium mb-1.5 uppercase tracking-wide",style:{backgroundColor:"rgba(139, 92, 246, 0.15)",color:"rgb(139, 92, 246)"},"data-testid":`tag-paragraph-${Y}`,children:W.tag}),a.jsx("p",{className:`leading-relaxed transition-colors duration-300 ${t?"text-lg":""} ${ae?"text-foreground":"text-muted-foreground"}`,children:W.words.map((bt,Lt)=>{const li=`${Y}-${Lt}`;return a.jsxs("span",{ref:gn=>{z.current.set(li,gn)},onClick:gn=>{var Or;ai(bt.timestamp),gn.currentTarget.blur(),(Or=window.getSelection())==null||Or.removeAllRanges()},className:H?"cursor-pointer active:opacity-70 select-none":"",style:H?{WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",userSelect:"none"}:void 0,children:[bt.text,Lt<W.words.length-1?" ":""]},Lt)})})]})]},Y)})]})})]})]})}function _p({episode:e,transcriptMode:t,onTranscriptModeChange:n,transcriptFullscreen:r,onToggleFullscreen:o,transcriptScrollSpeed:s,onScrollSpeedChange:i,timedParagraphs:l,youtubeVideoId:c}){const{isPlaying:u,currentTime:f,duration:h,togglePlay:p,seek:w}=$N(),{data:S}=Ta({queryKey:["/api/episodes"]}),{prevEpisode:y,nextEpisode:b}=d.useMemo(()=>{if(!S||!e.episode)return{prevEpisode:null,nextEpisode:null};const _=[...S].sort((L,U)=>(L.episode||0)-(U.episode||0)),$=_.findIndex(L=>L.id===e.id);return{prevEpisode:$>0?_[$-1]:null,nextEpisode:$<_.length-1?_[$+1]:null}},[S,e.id,e.episode]),[g,m]=d.useState(0),[v,x]=d.useState(!1),[E,T]=d.useState(!1),[k,C]=d.use
337State(!1),P=d.useCallback((_,$)=>{m(_),x($),r&&t==="listenAndRead"&&u&&p(),o()},[o,r,t,u,p]),R=d.useCallback(()=>{n("read"),T(!1),x(!0),o()},[n,o]),O=d.useCallback(()=>{n("listenAndRead"),o(),C(!0),u||p()},[n,o,u,p]);return a.jsxs("div",{id:"transcript",children:[!r&&a.jsxs("div",{className:"flex flex-wrap gap-3",children:[a.jsxs(G,{onClick:O,className:"bg-primary hover:bg-primary/90","data-testid":"button-listen-read",children:[a.jsx(dn,{className:"w-4 h-4 mr-2"}),k?"Resume Listening":"Listen & Read"]}),a.jsx(G,{onClick:R,variant:"outline","data-testid":"button-read",children:"Read Transcript"})]}),!r&&(y||b)&&a.jsxs("div",{className:"flex items-center justify-between mt-6 pt-6 border-t border-border",children:[y?a.jsx(Ee,{href:`/episodes/${y.slug}`,children:a.jsxs(G,{variant:"ghost",className:"flex items-center gap-2","data-testid":"button-prev-episode",children:[a.jsx(Lj,{className:"w-4 h-4"}),a.jsx("span",{className:"hidden sm:inline",children:"Previous:"}),a.jsxs("span",{className:"text-sm text-muted-foreground max-w-[150px] truncate",children:["Episode ",y.episode]})]})}):a.jsx("div",{}),b?a.jsx(Ee,{href:`/episodes/${b.slug}`,children:a.jsxs(G,{variant:"ghost",className:"flex items-center gap-2","data-testid":"button-next-episode",children:[a.jsx("span",{className:"hidden sm:inline",children:"Next:"}),a.jsxs("span",{className:"text-sm text-muted-foreground max-w-[150px] truncate",children:["Episode ",b.episode]}),a.jsx(Ij,{className:"w-4 h-4"})]})}):a.jsx("div",{})]}),r&&a.jsx(BN,{paragraphs:l,isFullscreen:!0,onToggleFullscreen:P,scrollSpeed:s,onScrollSpeedChange:i,transcriptMode:t==="listenAndRead"?"listen":"read",audioCurrentTime:t==="listenAndRead"?f:0,isAudioPlaying:t==="listenAndRead"?u:!1,onSeekAudio:t==="listenAndRead"?w:void 0,onToggleAudioPlay:t==="listenAndRead"?p:void 0,initialScrollPosition:g,initialAutoScrolling:t==="read",showTimeCodes:E,onShowTimeCodesChange:T,showTapHint:t==="listenAndRead"})]})}function VN(){const{id:e}=py(),[t,n]=d.useState(!1),[r,o]=d.useState(5),[s,i]=d.useState(0),[l,c]=d.useState(!1),[u,f]=d.useState(!1),[h,p]=d.useState(!1),[w,S]=d.useState("listenAndRead"),y=d.useRef(null),b=d.useRef(null),g=d.useRef(0),v=(e?/^\d+$/.test(e):!1)?`/api/episodes/${e}`:`/api/episodes/slug/${e}`,{data:x,isLoading:E,error:T}=Ta({queryKey:["/api/episodes",e],queryFn:async()=>{const M=await fetch(v);if(!M.ok)throw new Error("Episode not found");return M.json()},enabled:!!e}),{data:k,isLoading:C}=Ta({queryKey:["/api/episodes",x==null?void 0:x.id,"transcript"],queryFn:async()=>{const M=await fetch(`/api/episodes/${x.id}/transcript`);return M.ok?M.json():[]},enabled:!!(x!=null&&x.id)&&[1,2,3,4,5,6,7,8,9,10,11,12].includes(x.id)});d.useCallback(()=>{var M;(M=y.current)==null||M.call(y)},[]),d.useCallback(M=>{var B;(B=b.current)==null||B.call(b,M)},[]);const P=d.useCallback(M=>{h?i(M):Math.abs(M-g.current)>=.25&&(g.current=M,i(M))},[h]),R=d.useCallback(M=>{S(M),p(M==="listenAndRead")},[]);if(d.useLayoutEffect(()=>{window.location.hash==="#transcript"&&x&&N&&(window.scrollTo(0,0),S("read"),n(!0))},[x]),E)return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Wn,{}),a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:a.jsxs("div",{className:"animate-pulse space-y-8",children:[a.jsx("div",{className:"h-8 bg-muted rounded w-1/4"}),a.jsx("div",{className:"h-12 bg-muted rounded w-3/4"}),a.jsx("div",{className:"h-6 bg-muted rounded w-1/2"}),a.jsx("div",{className:"aspect-video bg-muted rounded-xl"}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("div",{className:"h-4 bg-muted rounded w-full"}),a.jsx("div",{className:"h-4 bg-muted rounded w-full"}),a.jsx("div",{className:"h-4 bg-muted rounded w-3/4"})]})]})}),a.jsx(Kn,{})]});if(T||!x)return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Wn,{}),a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16 text-center",children:a.jsxs(at,{className:"p-8",children:[a.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:"Episode Not Found"}),a.jsx("p",{className:"text-muted-foreground mb-6",children:"The episode you're looking for doesn't exist or has been removed."}),a.jsx(G,{asChild:!0,"data-testid":"button-back-home",children:a.jsxs(Ee,{href:"/",children:[a.jsx(Jh,{className:"w-4 h-4 mr-2"}),"Back to Home"]})})]})}),a.jsx(Kn,{})]});const O=M=>{const B=Math.floor(M/3600),H=Math.floor(M%3600/60);return B>0?`${B}h ${H}m`:`${H}m`},_=[1,2],$=x.episode&&_.includes(x.episode)?`/assets/episode-${x.episode}-social.webp`:x.thumbnailUrl||void 0,L=x.publishDate instanceof Date?x.publishDate.toISOString().split("T")[0]:new Date(x.publishDate).toISOString().split("T")[0],U={1:"blood pressure measurement, sphygmomanometer, essential hypertension, Framingham Heart Study, insurance actuaries, cardiovascular risk",2:"bloodletting, salt restriction, sympathectomy, baroreceptors, rice diet, non-pharmacologic treatment, heart failure",3:"hydralazine, reserpine, sodium thiocyanate, VA Cooperative Study, anti-malarials, pentaquine, chloroquine, blood pressure medication",4:"mercur
337y diuretic, thiazide diuretics, chlorothiazide, hydrochlorothiazide, carbonic anhydrase, sulfanilamide, acetazolamide, congestive heart failure, syphilis treatment",5:"ACE inhibitors, RAAS system, renin, angiotensin, aldosterone, kidney blood pressure, Brazilian pit viper, Bothrops jararaca, Goldblatt experiment, renal artery, Tigerstedt, angiotensin converting enzyme",6:"ACE inhibitors, captopril, lisinopril, RAAS cycle, heart failure, kidney disease, pit viper venom, bradykinin potentiating factor, ACE inhibition, clinical trials, renoprotective",7:"asthma, history of asthma, albuterol, Teddy Roosevelt, Hippocrates, Henry Hyde Salter, histamine, bronchospasm, guinea pig, organ bath, anaphylaxis, ovalbumin, airway inflammation",8:"asthma, anticholinergics, Jimsonweed, belladonna, atropine, acetylcholine, Otto Loewi, Vagusstoff, frog heart experiment, Henry Dale, vagus nerve, airway constriction, history of asthma",9:"asthma, beta agonists, albuterol, salbutamol, ephedra, ephedrine, ergot, ergotamine, adrenaline, epinephrine, isoproterenol, Henry Dale, Raymond Ahlquist, alpha and beta receptors, beta-2 agonist, Ventolin, rescue inhaler, history of asthma",10:"asthma, allergies, IgE, immunoglobulin E, mast cell, histamine, Prausnitz-Küstner reaction, Carl Prausnitz, Heinz Küstner, Kimishige Ishizaka, Teruko Ishizaka, Paul Ehrlich, anaphylaxis, blood transfusion allergy, fish allergy, ragweed, myeloma, history of immunology, mechanism of allergies",11:"cholesterol, xanthomas, familial hypercholesterolemia, atherosclerosis, François Poulletier de la Salle, Adolf Windaus, Nikolai Anichkov, Carl Müller, Michel Macheboeuf, John Gofman, ultracentrifuge, LDL, HDL, VLDL, lipoproteins, Framingham study, Michael Brown, Joseph Goldstein, LDL receptor, Nobel Prize, history of cholesterol",12:"niacin, nicotinic acid, cholestyramine, Abram Hoffer, Rudolf Altschul, pellagra, Joseph Goldberger, Coronary Drug Project, bile acid sequestrant, anion exchange resin, Siperstein and Chaikoff, radioisotope tracer, cholesterol metabolism, Lipid Research Clinics Coronary Primary Prevention Trial, hyperlipidemia, schizophrenia, history of cholesterol"},z={1:"This episode traces the origins of blood pressure measurement, from early animal experiments to the invention of the sphygmomanometer. It explores how insurance companies and the Framingham Heart Study helped medicine recognize that elevated blood pressure is dangerous.",2:"Before modern medications, doctors used bloodletting, strict salt restriction, and even surgical nerve removal to treat high blood pressure. This episode examines these early interventions and the key discoveries about volume, salt, and baroreceptors.",3:"This episode covers the first pharmacological treatments for hypertension, including hydralazine (derived from anti-malarial research) and reserpine (from an Indian root). It details the landmark 1967 VA Cooperative Study that proved these drugs could reduce cardiovascular disease.",4:"This episode explores how mercuryâa toxic heavy metal used to treat syphilisâaccidentally became medicine's first diuretic in 1919 Vienna. It traces the journey from sulfa antibiotics to the discovery of carbonic anhydrase inhibition, leading to acetazolamide and ultimately to thiazide diuretics like chlorothiazide and hydrochlorothiazide.",5:"In part one of a two-part series, this episode traces how decades of experiments â from kidney extracts to the Goldblatt clamp â uncovered the renin-angiotensin-aldosterone system (RAAS). We follow the bitter 17-year naming rivalry between Buenos Aires and Cleveland, the identification of ACE as the activating enzyme, and the encounter with a Brazilian pit viper whose venom held the molecular key to a breakthrough drug.",6:"Continuing the ACE inhibitor story, this episode follows the journey from Brazilian pit viper venom to the creation of captopril and lisinopril. It explores how ACE inhibitors treat not only hypertension but also heart failure and kidney disease, featuring landmark trials that proved these drugs could save lives beyond blood pressure control.",7:"This episode traces the history of asthma from the ancient Greeks through the 20th century, exploring how Teddy Roosevelt coped with childhood asthma, how pathologists like Morgagni and Salter identified bronchial muscle spasm and inflammation, and how animal models and human histamine challenge studies finally revealed the allergic and immunologic mechanisms behind the disease.",8:"This episode explores the strange history of anticholinergics for asthma, tracing the path from Jimsonweed and belladonna to atropine, acetylcholine, and Dr. Otto Loewi's discovery of Vagusstoff. It follows how Dr. Loewi's frog-heart experiment and Sir Henry Dale's work proved that nerves communicate through chemical messengers, connecting the vagus nerve to airway constriction and the modern pharmacology of asthma.",9:"This episode traces the path to albuterol and the beta-2 agonists, from Mongolian ephedra and ephedrine, through ergot-contaminated rye and the work of Henry Dale, to Raymond Ahlquist's discovery of alpha and beta receptors, the 1960s asthma mortality epidemic, and the breakthrough subdivision of beta receptors that led to the selective beta-2 agonist albuterol (Ventolin).",10:"The final episode of the asthma series traces how the mechanism of allergy was elucidated: from a 1919 transfusion that transferred horse allergy, through the Prausnitz-Küstner fish-allergy experiment and temperature studies pointing to an antibody, to the 1960s discovery of IgE by the Ishizakas and Swedis
337h myeloma researchers (aided by Peter Shackford's plasma donation), and finally the roles of histamine and Paul Ehrlich's mast cell in producing allergic reactions.",11:`The first episode of the cholesterol series traces the discovery of cholesterol from François Poulletier de la Salle's 1700s crystallization of "cholesterine" from bile, through the 1889 first case of familial hypercholesterolemia, Adolf Windaus and Nikolai Anichkov's work linking cholesterol to atherosclerosis, Carl Müller's description of familial hypercholesterolemia as inherited, John Gofman's ultracentrifuge separation of HDL/LDL/VLDL, the Framingham study, and Michael Brown and Joseph Goldstein's Nobel Prize-winning discovery of the LDL receptor.`,12:"This episode traces the discovery of medicine's first two cholesterol-lowering drugs: niacin, found by accident in 1951 when Dr. Abram Hoffer's megadose treatment for a schizophrenia patient led Dr. Rudolf Altschul to test it on cholesterol, and cholestyramine, developed after Siperstein and Chaikoff's radioisotope tracer studies revealed how cholesterol is recycled through bile. It follows both drugs through their landmark clinical trials â the Coronary Drug Project and the Lipid Research Clinics Coronary Primary Prevention Trial â that first proved lowering cholesterol could reduce heart attack risk, despite significant side effects and poor tolerability."},K=x.id,N=K>=1&&K<=12,A=U[K]||void 0,D=z[K]||void 0;return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{title:x.title,de
337scription:x.description||`Listen to ${x.title} on the Mechanism of Action podcast.`,url:`/episodes/${x.slug}`,image:$,episode:{name:x.title,description:x.description||`Listen to ${x.title} on the Mechanism of Action podcast.`,datePublished:L,episodeNumber:x.episode||void 0,seasonNumber:x.season||void 0,duration:x.duration,audioUrl:x.audioUrl||void 0,keywords:A,hasTranscript:N,transcriptSummary:D}}),a.jsx(Wn,{}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 lg:py-16",children:[a.jsx(G,{variant:"ghost",asChild:!0,className:"mb-8","data-testid":"button-back",children:a.jsxs(Ee,{href:"/",children:[a.jsx(Jh,{className:"w-4 h-4 mr-2"}),"Back to Episodes"]})}),a.jsx("div",{className:"flex flex-col lg:flex-row gap-8",children:a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground mb-4",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Mj,{className:"w-4 h-4"}),a.jsx("span",{"data-testid":"text-publish-date",children:new Date(x.publishDate).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),a.jsx("span",{children:"â¢"}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(yv,{className:"w-4 h-4"}),a.jsx("span",{"data-testid":"text-duration",children:O(x.duration)})]})]}),a.jsx("h1",{className:"text-3xl lg:text-4xl font-bold text-foreground leading-tight mb-4","data-testid":"text-episode-title",children:x.title}),x.subtitle&&a.jsx("h2",{className:"text-xl lg:text-2xl font-semibold text-foreground/80 mb-4 leading-tight","data-testid":"text-episode-subtitle",children:x.subtitle}),a.jsxs("div",{className:"flex items-center space-x-4 mb-6",children:[x.authorImageUrl&&a.jsx("div",{className:"w-12 h-12 rounded-full bg-white ring-2 ring-primary/20 overflow-hidden flex-shrink-0",children:a.jsx("img",{src:x.authorImageUrl,alt:x.author,className:"w-full h-full object-cover bg-white","data-testid":"img-author"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground","data-testid":"text-author",children:x.author}),a.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"text-author-title",children:x.authorTitle})]})]}),x.id in oc?a.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-8 mb-8",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"text-xl font-bold text-foreground mb-3",children:"About This Episode"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed","data-testid":"text-description",children:x.description})]}),x.audioUrl&&!N&&a.jsx("div",{className:"mb-8",children:a.jsx(at,{className:"p-4",children:a.jsx(Du,{episode:x,togglePlayRef:y,seekRef:b,onPlayingChange:c,onTimeUpdate:P,onReadyChange:f,highFrequencyUpdates:h})})}),N&&a.jsx(Op,{episode:x,highFrequencyUpdates:w==="listenAndRead",children:C?a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading transcript..."})}):k&&k.length>0?a.jsx(_p,{episode:x,transcriptMode:w,onTranscriptModeChange:R,transcriptFullscreen:t,onToggleFullscreen:()=>n(!t),transcriptScrollSpeed:r,onScrollSpeedChange:o,timedParagraphs:k,youtubeVideoId:Mp[x.id]||""}):a.jsx("div",{className:"text-muted-foreground py-4",children:"Transcript not available."})})]}),a.jsxs("div",{className:"lg:w-[45%] flex-shrink-0 mt-8 lg:mt-0",children:[a.jsx("h2",{className:"text-xl font-bold text-foreground mb-3",children:x.episode===6?"Watch a Segment":x.episode===7||x.episode===8||x.episode===9||x.episode===10||x.episode===11||x.episode===12?"Watch the Episode":"Watch the Teaser"}),a.jsx("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:oc[x.id]?a.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full rounded-lg",src:`https://www.youtube.com/embed/${oc[x.id]}`,title:"Episode Teaser",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,"data-testid":"iframe-teaser-video"}):a.jsx("div",{className:"absolute top-0 left-0 w-full h-full rounded-lg bg-muted flex items-center justify-center text-muted-foreground text-sm","data-testid":"placeholder-teaser-video",children:"Video coming soon"})})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"text-xl font-bold text-foreground mb-3",children:"About This Episode"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed","data-testid":"text-description",children:x.description})]}),x.audioUrl&&!N&&a.jsx("div",{className:"mb-8",children:a.jsx(at,{className:"p-4",children:a.jsx(Du,{episode:x,togglePlayRef:y,seekRef:b,onPlayingChange:c,onTimeUpdate:P,onReadyChange:f,highFrequencyUpdates:h})})}),N&&a.jsx(Op,{episode:x,highFrequencyUpdates:w==="listenAndRead",children:C?a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading transcript..."})}):k&&k.length>0?a.jsx(_p,{episode:x,transcriptMode:w,onTranscriptModeChange:R,transcriptFullscreen:t,onToggleFullscreen:()=>n(!t),transcriptScrollSpeed:r,onScrollSpeedChange:o,timedParagraphs:k,youtubeVideoId:Mp[x.id]||""}):a.jsx("div",{className:"text-muted-foreground py-4",children:"Transcript not available."})})]})]})})]}),a.jsx(Kn,{})]})}const HN="https://mechanism-of-action.castos.com/donate",WN=[{id:"listener",name:"Listener",price:10,description:"Support independent podcast production",icon:Bj,features:["Supports high-quality, well-researched content","Covers basic hosting and distribution costs","Helps maintain consistent episode releases"]},{id:"producer",name:"Producer",price:25,description:"Fund research and video production",icon:Kj,features:["Fund video production and content","Supports expert consultation and interviews","Additional content generation"]}];function Lp({features:e,tierId:t}){const[n,r]=d.useState(!1);return a.jsxs("div",{className:"pt-6 border-t border-border flex-grow",children:[a.jsxs("div",{className:"md:hidden",children:[a.jsxs("button",{onClick:()=>r(!n),className:"flex items-center justify-between w-full text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":`button-expand-features-${t}`,children:[a.jsx("span",{children:"What's included"}),n?a.jsx(Dj,{className:"w-4 h-4"}):a.jsx(_j,{className:"w-4 h-4"})]}),n&&a.jsx("ul",{className:"space-y-3 mt-4","data-testid":`list-features-${t}`,children:e.map((o,s)=>a.jsxs("li",{className:"flex items-start space-x-3","data-testid":`text-feature-${t}-${s}`,children:[a.jsx(Zh,{className:"w-5 h-5 text-secondary mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-sm text-muted-foreground",children:o})]},s))})]}),a.jsx("ul",{className:"hidden md:block space-y-3","data-testid":`list-features-${t}-desktop`,children:e.map((o,s)=>a.jsxs("li",{className:"flex items-start space-x-3","data-testid":`text-feature-${t}-${s}`,children:[a.jsx(Zh,{className:"w-5 h-5 text-secondary mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-sm text-muted-foreground",children:o})]},s))})]})}function KN(){const e=()=>{window.open(HN,"_blank")};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{title:"Support the Podcast",description:"Support the Mechanism of Action podcast. Your membership helps fund independent podcast production, research, and high-quality episodes exploring the history of medicine.",url:"/support"}),a.jsx(Wn,{}),a.jsx("section",{className:"hero-gradient text-primary-foreground py-20 lg:py-28",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[a.jsxs("div",{className:"inline-flex items-center space-x-2 bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-semibold mb-6",children:[a.jsx(Vj,{className:"w-4 h-4"}),a.jsx("span",{children:"SUPPORT THE PODCAST"})]}),a.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:"Help Us Keep the Stories Coming"}),a.jsx("p",{className:"text-lg sm:text-xl text-primary-foreground
337/90 max-w-3xl mx-auto",children:"Your support directly funds independent podcast production, enabling us to create high-quality, well-researched episodes exploring the fascinating history of medicine and drug discovery."})]})}),a.jsx("section",{className:"py-16 lg:py-24 bg-background",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"grid md:grid-cols-3 gap-8 lg:gap-10 max-w-6xl mx-auto",children:[WN.map(t=>a.jsx(at,{className:"rounded-2xl shadow-xl overflow-hidden border border-border flex flex-col","data-testid":`card-tier-${t.id}`,children:a.jsxs("div",{className:"p-8 lg:p-10 space-y-6 flex flex-col flex-grow",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(t.icon,{className:"w-6 h-6 text-secondary"}),a.jsx("h3",{className:"text-2xl font-bold text-foreground","data-testid":`text-tier-name-${t.id}`,children:t.name})]}),a.jsx("p",{className:"text-sm text-muted-foreground","data-testid":`text-tier-description-${t.id}`,children:t.description})]}),a.jsxs("div",{className:"flex items-baseline space-x-2","data-testid":`text-price-${t.id}`,children:[a.jsxs("span",{className:"text-5xl font-bold text-foreground",children:["$",t.price]}),a.jsx("span",{className:"text-muted-foreground",children:"/month"})]}),a.jsx(Lp,{features:t.features,tierId:t.id}),a.jsxs(G,{className:"w-full py-6 text-base font-semibold rounded-lg shadow-lg bg-primary text-primary-foreground hover:bg-primary/90 mt-auto",onClick:e,"data-testid":`button-subscribe-${t.id}`,children:["Support as ",t.name]})]})},t.id)),a.jsx(at,{className:"rounded-2xl shadow-xl overflow-hidden border border-border flex flex-col","data-testid":"card-tier-donation",children:a.jsxs("div",{className:"p-8 lg:p-10 space-y-6 flex flex-col flex-grow",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Uj,{className:"w-6 h-6 text-secondary"}),a.jsx("h3",{className:"text-2xl font-bold text-foreground","data-testid":"text-tier-name-donation",children:"One-Time Donation"})]}),a.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"text-tier-description-donation",children:"Make a one-time contribution"})]}),a.jsx("div",{className:"flex items-baseline space-x-2","data-testid":"text-price-donation",children:a.jsx("span",{className:"text-3xl font-bold text-foreground",children:"$5 / $20 / $100"})}),a.jsx(Lp,{features:["No recurring commitment","Supports high-quality, well-researched content","Help fund the show episodes and special projects"],tierId:"donation"}),a.jsx(G,{className:"w-full py-6 text-base font-semibold rounded-lg shadow-lg bg-primary text-primary-foreground hover:bg-primary/90 mt-auto",onClick:e,"data-testid":"button-donate",children:"Make a Donation"})]})})]}),a.jsx("div",{className:"mt-16 text-center",children:a.jsxs(at,{className:"inline-block bg-muted/50 rounded-xl p-8 max-w-2xl",children:[a.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:"Thank You for Listening"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Whether or not you choose to support, we're grateful to have you as a listener. We're happy to bring entertainment and information about the fascinating history of medicine and drug discovery to you."})]})})]})}),a.jsx(Kn,{})]})}function QN(){return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{title:"Privacy Policy",description:"Privacy Policy for the Mechanism of Action podcast. Learn how Good Prognosis Media & Publishing, LLC collects, uses, and protects your personal information.",url:"/privacy"}),a.jsx(Wn,{}),a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Privacy Policy"}),a.jsxs("div",{className:"prose prose-lg max-w-none space-y-6 text-muted-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last Updated: January 27, 2026"}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Introduction"}),a.jsx("p",{children:'Good Prognosis Media & Publishing, LLC ("we," "our," or "us") operates the Mechanism of Action podcast and website. This Privacy Policy explains how we
337collect, use, and protect your personal information when you use our services.'})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Information We Collect"}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Information You Provide"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Email address when you subscribe to our newsletter"}),a.jsx("li",{children:"Payment information when you support the podcast (processed securely by our payment provider)"}),a.jsx("li",{children:"Any other information you choose to provide when contacting us"})]}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Automatically Collected Information"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Device and browser information"}),a.jsx("li",{children:"IP address and general location data"}),a.jsx("li",{children:"Website usage patterns and analytics"}),a.jsx("li",{children:"Podcast listening data (episode plays, duration)"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"How We Use Your Information"}),a.jsx("p",{children:"We use your information to:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Send you our newsletter and podcast updates"}),a.jsx("li",{children:"Process your support payments and memberships"}),a.jsx("li",{children:"Improve our podcast content and website experience"}),a.jsx("li",{children:"Respond to your inquiries and provide customer support"}),a.jsx("li",{children:"Comply with legal obligations"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Information Sharing"}),a.jsx("p",{children:"We do not sell your personal information. We may share your information with:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Service providers who help us operate our podcast and website"}),a.jsx("li",{children:"Payment processors for membership transactions"}),a.jsx("li",{children:"Analytics providers to understand our audience"}),a.jsx("li",{children:"Legal authorities when required by law"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Cookies and Tracking"}),a.jsx("p",{children:"We use cookies and similar tracking technologies to enhance your experience on our website. You can control cookies through your browser settings, though some features may not function properly without them."}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Google Analytics and Ads"}),a.jsx("p",{children:"We use Google Analytics 4 (GA4) to understand how visitors interact with our website and content. We also use Google Ads conversion tracking to measure the effectiveness of our advertising campaigns. These services involve the use of cookies placed by Google to track website visits, user behavior, and conversions."}),a.jsx("p",{className:"mt-3",children:"The information collected by Google Analytics includes:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Pages you visit on our website and time spent on each page"}),a.jsx("li",{children:"Your session duration and how you navigate between pages"}),a.jsx("li",{children:"Your IP address and general geographic location"}),a.jsx("li",{children:"Device type, browser, and operating system information"}),a.jsx("li",{children:"Referral source (how you arrived at our website)"}),a.jsx("li",{children:"Links you click and actions you take on our site"})]}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Audio Listening Analytics"}),a.jsx("p",{children:"To improve our podcast content and understand listener engagement, we track how you interact with audio content on our website. This includes:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"When you start playing an episode"}),a.jsx("li",{children:"How long you listen to each episode"}),a.jsx("li",{children:"Listening progress milestones (tracked in 5% increments)"}),a.jsx("li",{children:"When you pause or stop listening"}),a.jsx("li",{children:"Which episodes are most popular"})]}),a.jsx("p",{className:"mt-3",children:"This audio listening data is sent to Google Analytics 4 and helps us understand which content resonates with our audience and improve future episodes."}),a.jsxs("p",{className:"mt-3",children:["You can opt out of Google's personalized advertising by visiting"," ",a.jsx("a",{href:"https://adssettings.google.com",target:"_blank",rel:"noopener noreferrer",className:"text-[#F6844B] hover:underline",children:"Google Ads Settings"}),". You can also opt out of third-party cookies by visiting the"," ",a.jsx("a",{href:"https://optout.networka
337dvertising.org",target:"_blank",rel:"noopener noreferrer",className:"text-[#F6844B] hover:underline",children:"Network Advertising Initiative opt-out page"}),"."]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Data Security"}),a.jsx("p",{children:"We implement appropriate technical and organizational measures to protect your personal information. However, no internet transmission is completely secure, and we cannot guarantee absolute security."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Your Rights"}),a.jsx("p",{children:"You have the right to:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Access the personal information we hold about you"}),a.jsx("li",{children:"Request correction of inaccurate information"}),a.jsx("li",{children:"Request deletion of your information"}),a.jsx("li",{children:"Unsubscribe from our newsletter at any time"}),a.jsx("li",{children:"Object to processing of your information"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Children's Privacy"}),a.jsx("p",{children:"Our services are not directed to children under 13. We do not knowingly collect personal information from children."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Changes to This Policy"}),a.jsx("p",{children:"We may update this Privacy Policy from time to time. We will notify you of any significant changes by posting the new policy on this page."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Contact Us"}),a.jsx("p",{children:"If you have any questions about this Privacy Policy or our privacy practices, please contact us through our website."})]})]})]}),a.jsx(Kn,{})]})}function GN(){return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{title:"Terms of Use",description:"Terms of Use for the Mechanism of Action podcast. Review our terms for accessing podcast content, support memberships, and intellectual property guidelines.",url:"/terms"}),a.jsx(Wn,{}),a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Terms of Use"}),a.jsxs("div",{className:"prose prose-lg max-w-none space-y-6 text-muted-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last Updated: January 2026"}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Agreement to Terms"}),a.jsx("p",{children:"By accessing or using the Mechanism of Action podcast and website operated by Good Prognosis Media & Publishing, LLC, you agree to be bound by these Terms of Use. If you do not agree to these terms, please do not use our services."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Use of Our Services"}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Permitted Use"}),a.jsx("p",{children:"You may use our services for personal, non-commercial purposes. You agree to:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Access content in accordance with these terms"}),a.jsx("li",{children:"Respect intellectual property rights"}),a.jsx("li",{children:"Not use automated systems to access our content without permission"}),a.jsx("li",{children:"Not attempt to interfere with or disrupt our services"})]}),a.jsx("h3",{className:"text-xl font-semibold text-foreground mt-6 mb-3",children:"Prohibited Activities"}),a.jsx("p",{children:"You may not:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Redistribute or sell our podcast content without authorization"}),a.jsx("li",{children:"Use our content for commercial purposes without permission"}),a.jsx("li",{children:"Impersonate us or suggest false affiliation"}),a.jsx("li",{children:"Upload malicious code or engage in harmful activities"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Intellectual Property"}),a.jsx("p",{children:"All content on our podcast and website, including audio recordings, text, graphics, logos, and images, is owned by Good Prognosis Media & Publishing, LLC or our licensors. This content is protected by copyright, trademark, and other intellectual property laws."}),a.jsx("p",{className:"mt-4",children:"You may share links to our episodes and quote brief excerpts with proper attribution. For other uses, please contact us for permission."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Support Memberships"}),a.jsx("p",{children:"When you support our podcast through a membership:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"Payments are processed securely through our payment provider"}),a.jsx("li",{children:"Memberships are non-refundable unless required by law"}),a.jsx("li",{children:"You may cancel your membership at any time"}),a.jsx("li",{children:"We reserve the right to modify membership benefits with notice"}),a.jsx("li",{children:"Partner-tier acknowledgments are subject to our editorial discretion"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Medical Disclaimer"}),a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"For Informational Purposes Only"}),a.jsx("p",{children:"The content provided on this website and podcast is for informational and educational purposes only. Our podcast explores the historical development of medical knowledge and treatments, and is not intended to provide specific medical advice."})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"No Doctor-Patient Relationship"}),a.jsx("p",{children:"Accessing or listening to our content does not create a doctor-patient, therapist-patient, or any other healthcare provider relationship between you and the host, Good Prognosis Media & Publishing, LLC, or any contributors to this podcast."})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Educational Context"}),a.jsx("p",{children:"Any mention of specific medications, treatments, therapies, or medical products in our educational content is for historical and informational context only. Sponsored content will be clearly disclosed."})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Consult Healthcare Professionals"}),a.jsx("p",{children:"Always seek the advice of a qualified healthcare professional with any questions you may have regarding a medical condition, treatment options, or health decisions. Never disregard professional medical advice or delay seeking it because of something you have heard on our podcast or read on our website."})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"No Liability"}),a.jsx("p",{children:"Good Prognosis Media & Publishing, LLC and its host assume no responsibility or liability for any actions taken based on the content of this podcast or website."})]})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Accuracy of Information"}),a.jsx("p",{children:"We strive for historical accuracy in our content, but we make no warranties about the completeness, reliability, or accuracy of the information provided. Medical understanding evolves, and historical interpretations may vary."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Third-Party Links and References"}),a.jsx("p",{children:"Our website and podcast may contain links to third-party websites, companies, products, or services for informational and educational purposes. We are not responsible for the content, privacy policies, or practices of these third parties."}),a.jsx("p",{className:"mt-4",children:"The inclusion of any link or reference does not imply endorsement, recommendation, or approval by Good Prognosis Media & Publishing, LLC of the linked website, company, product, or service. All third-party references are provided solely in an educational and informational capacity."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Host Independence"}),a.jsx("p",{children:"The views and opinions expressed on the Mechanism of Action podcast are those of the host in a personal capacity and do not represent the views of any employers, institutions, professional organizations, or other entities with which the host may be affiliated."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Sponsorships and Endorsements"}),a.jsx("p",{children:"The Mechanism of Action podcast may feature sponsorships, advertisements, or endorsements from third parties. When content is sponsored, we will clearly disclose this to our audience."}),a.jsx("p",{className:"mt-4",children:"Sponsored content and endorsements are selected at our discretion and do not constitute medical advice or recommendations. The presence of a sponsorship does not imply that Good Prognosis Media & Publishing, LLC endorses any specific medical treatment, product, or service for individual use."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Limitation of Liability"}),a.jsx("p",{children:"To the fullest extent permitted by law, Good Prognosis Media & Publishing, LLC shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising from your use of our services."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Changes to Services"}),a.jsx("p",{children:"We reserve the right to modify, suspend, or discontinue any part of our services at any time without notice. We may al
337so update these Terms of Use periodically."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Governing Law"}),a.jsx("p",{children:"These Terms of Use are governed by and construed in accordance with the laws of the United States, without regard to conflict of law principles."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"Contact Information"}),a.jsx("p",{children:"If you have questions about these Terms of Use, please contact us through our website."})]})]})]}),a.jsx(Kn,{})]})}function YN(){const e=Sb(),n=new URLSearchParams(e).get("email"),[r,o]=d.useState("idle"),[s,i]=d.useState(""),l=Oy({mutationFn:async u=>(await _y("POST","/api/newsletter/unsubscribe",{email:u})).json(),onSuccess:()=>{o("success")},onError:u=>{o("error"),i(u.message||"Failed to unsubscribe. Please try again.")}}),c=()=>{if(!n){o("error"),i("Invalid unsubscribe link. Please use the link from your email.");return}o("loading"),l.mutate(n)};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(Ho,{title:"Unsubscribe",description:"Unsubscribe from the Mechanism of Action podcast newsletter.",url:"/unsubscribe",noIndex:!0}),a.jsx(Wn,{}),a.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24",children:a.jsxs(at,{className:"p-8 lg:p-12 text-center",children:[r==="idle"&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"w-16 h-16 mx-auto mb-6 bg-primary/10 rounded-full flex items-center justify-center",children:a.jsx(Gd,{className:"w-8 h-8 text-primary"})}),a.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-foreground mb-4","data-testid":"text-unsubscribe-title",children:"Unsubscribe from Newsletter"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:"Are you sure you want to unsubscribe from the Mechanism of Action podcast newsletter? You'll no longer receive updates about new episodes and podcast news."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(G,{variant:"outline",onClick:c,disabled:!n,"data-testid":"button-confirm-unsubscribe",children:"Yes, Unsubscribe"}),a.jsx(G,{asChild:!0,"data-testid":"button-cancel-unsubscribe",children:a.jsx(Ee,{href:"/",children:"No, Keep Me Subscribed"})})]}),!n&&a.jsx("p",{className:"mt-4 text-sm text-destructive",children:"Invalid unsubscribe link. Please use the link from your email."})]}),r==="loading"&&a.jsxs(a.Fragment,{children:[a.jsx(vv,{className:"w-16 h-16 mx-auto mb-6 text-primary animate-spin"}),a.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-foreground mb-4",children:"Processing..."}),a.jsx("p",{className:"text-muted-foreground",children:"Please wait while we process your request."})]}),r==="success"&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"w-16 h-16 mx-auto mb-6 bg-green-500/10 rounded-full flex items-center justify-center",children:a.jsx(zj,{className:"w-8 h-8 text-green-500"})}),a.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-foreground mb-4","data-testid":"text-unsubscribe-success",children:"Successfully Unsubscribed"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:"You've been successfully unsubscribed from our newsletter. We're sorry to see you go! You can always resubscribe anytime."}),a.jsx(G,{asChild:!0,"data-testid":"button-back-home",children:a.jsx(Ee,{href:"/",children:"Back to Home"})})]}),r==="error"&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"w-16 h-16 mx-auto mb-6 bg-destructive/10 rounded-full flex items-center justify-center",children:a.jsx($j,{className:"w-8 h-8 text-destructive"})}),a.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-foreground mb-4","data-testid":"text-unsubscribe-error",children:"Unsubscribe Failed"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:s}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(G,{onClick:()=>o("idle"),variant:"outline","data-testid":"button-try-again",children:"Try Again"}),a.jsx(G,{asChild:!0,"data-testid":"button-back-home-error",children:a.jsx(Ee,{href:"/",children:"Back to Home"})})]})]})]})}),a.jsx(Kn,{})]})}function qN(){return a.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:a.jsx(at,{className:"w-full max-w-md mx-4",children:a.jsxs(Ux,{className:"pt-6",children:[a.jsxs("div",{className:"flex mb-4 gap-2",children:[a.jsx(Fj,{className:"h-8 w-8 text-red-500"}),a.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),a.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function XN(){const[e]=my(),t=d.useRef(null);return d.useEffect(()=>{const n=t.current;n!=null&&n.startsWith("/episodes/")&&e==="/"?setTimeout(()=>{const r=document.getElementById("episodes");r&&r.scrollIntoView({behavior:"smooth"})},100):window.scrollTo(0,0),t.current=e},[e]),null}function JN(){return a.jsxs(a.Fragment,{children:[a.jsx(XN,{}),a.jsxs(Cb,{children:[a.jsx(nr,{path:"/",component:zN}),a.jsx(nr,{path:"/episodes/:id",component:VN}),a.jsx(nr,{path:"/support",component:KN}),a.jsx(nr,{path:"/privacy",component:QN}),a.jsx(nr,{path:"/terms",component:GN}),a.jsx(nr,{path:"/unsubscribe",component:YN}),a.jsx(nr,{component:qN})]})]})}function ZN(){return a.jsx(Uy,{children:a.jsx(Wb,{client:oS,children:a.jsxs(r2,{children:[a.jsx(RE,{}),a.jsx(JN,{})]})})})}oy(document.getElementById("root")).render(a.jsx(ZN,{}));
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.