vendor: 4,228 bytes, lines 1-18
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-BKpnHNVk.js","assets/index.esm-B6wEIc0_.js","assets/firebase-DYM3YH6j.js","assets/YourCollection-DhgcKO-p.js","assets/YourCollection-Dq-0PLDF.css","assets/CrProfileCard-HrqiQLA_.css","assets/MakeRequest-DTzdK_Lv.js","assets/SidebarContentCards-DaSGxgpd.js","assets/MakeRequest-BhB30u-7.css","assets/AccountSettings-Cd6QOgqC.js","assets/formatPhone-CGY5zi-K.js","assets/user-BmhC-G7r.js","assets/AccountSettings-CEAlp0oc.css","assets/PlaylistPage-BN4FtxZQ.js","assets/CrDjSearch-C_JJ3Tey.js","assets/CrDjSearch-DSVff6nT.css","assets/CrPagination-DsUaYcuM.js","assets/CrPagination-D0Oys-QY.css","assets/PlaylistPage-BzwcaJIK.css","assets/ChartsPage-C07ZFt3-.css","assets/EventsPage-DBT4Ct3Q.js","assets/CrBreadcrumb-CLy-qVrL.js","assets/CrBreadcrumb-DUx0kGay.css","assets/ActiveFilters-B_rWsjNJ.js","assets/PageStateWrapper-C6GCh_dH.js","assets/ArticlesPage-Cv8L1YLQ.js","assets/FilterPicker-GoJgBttY.js","assets/FilterPicker-5Vo4t-QO.css","assets/DJPage-foYB-Hc_.js","assets/DJSchedulePage-DdDof4-J.js","assets/DJSchedulePage-uqKvRbmu.css","assets/DJDetailPage-nqDeN0oN.js","assets/DJDetailPage-oUh_jFOw.css","assets/EventDetailPage-D3wZUZRE.js","assets/useCmsLivePreview-CYW-aGeG.js","assets/EventDetailPage-D9zqAiGg.css","assets/ArticleDetailPage-nwYn96uC.js","assets/PodcastPage-D5GtzonA.js","assets/PodcastDetailPage-CT4YFRj7.js","assets/ChartsPage-BQlIt65t.js","assets/StorePage-D9elrNXl.js","assets/useStripeCheckout-eYh6lxhp.js","assets/useStripeCheckout-DPjHRPYU.css","assets/StorePage-DKZtEM0y.css","assets/ThankYouPage-CKDzSuKf.js","assets/StoreDetailPage-Don56_sN.js","assets/StoreDetailPage-BzIDnejo.css","assets/ResetPasswordPage-DBm66_nU.js","assets/ResetPasswordPage-CrUAfXAg.css","assets/VerifyEmailPage-tGary5Rt.js","assets/VerifyEmailPage-BxNMpyGC.css","assets/VerifyEmailChangePage-O0qq1Pzm.js","assets/PageDetailPage-DyTGeMlo.js","assets/PageDetailPage-Bxtjur2M.css","assets/VolunteerDirectoryPage-BOd-91tv.js","assets/VolunteerDirectoryPage-BoWS23rQ.css"])))=>i.map(i=>d[i]); 2(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function i(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(c){if(c.ep)return;c.ep=!0;const u=i(c);fetch(c.href,u)}})();function Tl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nf={exports:{}},Gs={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var $1;function i6(){if($1)return Gs;$1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,c,u){var f=null;if(u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),"key"in c){u={};for(var p in c)p!=="key"&&(u[p]=c[p])}else u=c;return c=u.ref,{$$typeof:t,type:s,key:f,ref:c!==void 0?c:null,props:u}}return Gs.Fragment=r,Gs.jsx=i,Gs.jsxs=i,Gs}var B1;function s6(){return B1||(B1=1,nf.exports=i6()),nf.exports}var o=s6(),af={exports:{}},Ys={},rf={exports:{}},sf={};/** 11 * @license React 12 * scheduler.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var q1;function l6(){return q1||(q1=1,(function(t){function r(O,Y){var Z=O.length;O.push(Y);e:for(;0<Z;){var ee=Z-1>>>1,ne=O[ee];if(0<c(ne,Y))O[ee]=Y,O[Z]=ne,Z=ee;else break e}}function i(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var Y=O[0],Z=O.pop();if(Z!==Y){O[0]=Z;e:for(var ee=0,ne=O.length,A=ne>>>1;ee<A;
vendor: 19,032 bytes, lines 18-42
18){var F=2*(ee+1)-1,X=O[F],ie=F+1,re=O[ie];if(0>c(X,Z))ie<ne&&0>c(re,X)?(O[ee]=re,O[ie]=Z,ee=ie):(O[ee]=X,O[F]=Z,ee=F);else if(ie<ne&&0>c(re,Z))O[ee]=re,O[ie]=Z,ee=ie;else break e}}return Y}function c(O,Y){var Z=O.sortIndex-Y.sortIndex;return Z!==0?Z:O.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();t.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,y=null,S=3,w=!1,E=!1,b=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function R(O){for(var Y=i(g);Y!==null;){if(Y.callback===null)s(g);else if(Y.startTime<=O)s(g),Y.sortIndex=Y.expirationTime,r(m,Y);else break;Y=i(g)}}function z(O){if(b=!1,R(O),!E)if(i(m)!==null)E=!0,V||(V=!0,Q());else{var Y=i(g);Y!==null&&q(z,Y.startTime-O)}}var V=!1,k=-1,I=5,U=-1;function L(){return j?!0:!(t.unstable_now()-U<I)}function B(){if(j=!1,V){var O=t.unstable_now();U=O;var Y=!0;try{e:{E=!1,b&&(b=!1,C(k),k=-1),w=!0;var Z=S;try{t:{for(R(O),y=i(m);y!==null&&!(y.expirationTime>O&&L());){var ee=y.callback;if(typeof ee=="function"){y.callback=null,S=y.priorityLevel;var ne=ee(y.expirationTime<=O);if(O=t.unstable_now(),typeof ne=="function"){y.callback=ne,R(O),Y=!0;break t}y===i(m)&&s(m),R(O)}else s(m);y=i(m)}if(y!==null)Y=!0;else{var A=i(g);A!==null&&q(z,A.startTime-O),Y=!1}}break e}finally{y=null,S=Z,w=!1}Y=void 0}}finally{Y?Q():V=!1}}}var Q;if(typeof M=="function")Q=function(){M(B)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,D=K.port2;K.port1.onmessage=B,Q=function(){D.postMessage(null)}}else Q=function(){N(B,0)};function q(O,Y){k=N(function(){O(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125<O||(I=0<O?Math.floor(1e3/O):5)},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(O){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var Z=S;S=Y;try{return O()}finally{S=Z}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Z=S;S=O;try{return Y()}finally{S=Z}},t.unstable_scheduleCallback=function(O,Y,Z){var ee=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ee+Z:ee):Z=ee,O){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Z+ne,O={id:v++,callback:Y,priorityLevel:O,startTime:Z,expirationTime:ne,sortIndex:-1},Z>ee?(O.sortIndex=Z,r(g,O),i(m)===null&&O===i(g)&&(b?(C(k),k=-1):b=!0,q(z,Z-ee))):(O.sortIndex=ne,r(m,O),E||w||(E=!0,V||(V=!0,Q()))),O},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(O){var Y=S;return function(){var Z=S;S=Y;try{return O.apply(this,arguments)}finally{S=Z}}}})(sf)),sf}var F1;function o6(){return F1||(F1=1,rf.exports=l6()),rf.exports}var lf={exports:{}},Ce={};/** 19 * @license React 20 * react.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var V1;function c6(){if(V1)return Ce;V1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,j={};function N(A,F,X){this.props=A,this.context=F,this.refs=j,this.updater=X||E}N.prototype.isReactComponent={},N.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,F,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function C(){}C.prototype=N.prototype;function M(A,F,X){this.props=A,this.context=F,this.refs=j,this.updater=X||E}var R=M.prototype=new C;R.constructor=M,b(R,N.prototype),R.isPureReactComponent=!0;var z=Array.isArray;function V(){}var k={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function U(A,F,X){var ie=X.ref;return{$$typeof:t,type:A,key:F,ref:ie!==void 0?ie:null,props:X}}function L(A,F){return U(A.type,F,A.props)}function B(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function Q(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(X){return F[X]})}var K=/\/+/g;function D(A,F){return typeof A=="object"&&A!==null&&A.key!=null?Q(""+A.key):F.toString(36)}function q(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(V,V):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,F,X,ie,re){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var se=!1;if(A===null)se=!0;else switch(de){case"bigint":case"string":case"number":se=!0;break;case"object":switch(A.$$typeof){case t:case r:se=!0;break;case v:return se=A._init,O(se(A._payload),F,X,ie,re)}}if(se)return re=re(A),se=ie===""?"."+D(A,0):ie,z(re)?(X="",se!=null&&(X=se.replace(K,"$&/")+"/"),O(re,F,X,"",function(Ne){return Ne})):re!=null&&(B(re)&&(re=L(re,X+(re.key==null||A&&A.key===re.key?"":(""+re.key).replace(K,"$&/")+"/")+se)),F.push(re)),1;se=0;var ge=ie===""?".":ie+":";if(z(A))for(var be=0;be<A.length;be++)ie=A[be],de=ge+D(ie,be),se+=O(ie,F,X,de,re);else if(be=w(A),typeof be=="function")for(A=be.call(A),be=0;!(ie=A.next()).done;)ie=ie.value,de=ge+D(ie,be++),se+=O(ie,F,X,de,re);else if(de==="object"){if(typeof A.then=="function")return O(q(A),F,X,ie,re);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return se}function Y(A,F,X){if(A==null)return A;var ie=[],re=0;return O(A,ie,"","",function(de){return F.call(X,de,re++)}),ie}function Z(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(X){(A._status===0||A._status===-1)&&(A._status=1,A._result=X)},function(X){(A._status===0||A._status===-1)&&(A._status=2,A._result=X)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var ee=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}},ne={map:Y,forEach:function(A,F,X){Y(A,function(){F.apply(this,arguments)},X)},count:function(A){var F=0;return Y(A,function(){F++}),F},toArray:function(A){return Y(A,function(F){return F})||[]},only:function(A){if(!B(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=y,Ce.Children=ne,Ce.Component=N,Ce.Fragment=i,Ce.Profiler=c,Ce.PureComponent=M,Ce.StrictMode=s,Ce.Suspense=m,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return k.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,X){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ie=b({},A.props),re=A.key;if(F!=null)for(de in F.key!==void 0&&(re=""+F.key),F)!I.call(F,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&F.ref===void 0||(ie[de]=F[de]);var de=arguments.length-2;if(de===1)ie.children=X;else if(1<de){for(var se=Array(de),ge=0;ge<de;ge++)se[ge]=arguments[ge+2];ie.children=se}return U(A.type,re,ie)},Ce.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},Ce.createElement=function(A,F,X){var ie,re={},de=null;if(F!=null)for(ie in F.key!==void 0&&(de=""+F.key),F)I.call(F,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(re[ie]=F[ie]);var se=arguments.length-2;if(se===1)re.children=X;else if(1<se){for(var ge=Array(se),be=0;be<se;be++)ge[be]=arguments[be+2];re.children=ge}if(A&&A.defaultProps)for(ie in se=A.defaultProps,se)re[ie]===void 0&&(re[ie]=se[ie]);return U(A,de,re)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:p,render:A}},Ce.isValidElement=B,Ce.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Z}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=k.T,X={};k.T=X;try{var ie=A(),re=k.S;re!==null&&re(X,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(V,ee)}catch(de){ee(de)}finally{F!==null&&X.types!==null&&(F.types=X.types),k.T=F}},Ce.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Ce.use=function(A){return k.H.use(A)},Ce.useActionState=function(A,F,X){return k.H.useActionState(A,F,X)},Ce.useCallback=function(A,F){return k.H.useCallback(A,F)},Ce.useContext=function(A){return k.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return k.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return k.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return k.H.useEffectEvent(A)},Ce.useId=function(){return k.H.useId()},Ce.useImperativeHandle=function(A,F,X){return k.H.useImperativeHandle(A,F,X)},Ce.useInsertionEffect=function(A,F){return k.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return k.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return k.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return k.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,X){return k.H.useReducer(A,F,X)},Ce.useRef=function(A){return k.H.useRef(A)},Ce.useState=function(A){return k.H.useState(A)},Ce.useSyncExternalStore=function(A,F,X){return k.H.useSyncExternalStore(A,F,X)},Ce.useTransition=function(){return k.H.useTransition()},Ce.version="19.2.0",Ce}var Z1;function hh(){return Z1||(Z1=1,lf.exports=c6()),lf.exports}var of={exports:{}},Vt={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var G1;function u6(){if(G1)return Vt;G1=1;var t=hh();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(m,g,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:m,containerInfo:g,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return u(m,g,null,v)},Vt.flushSync=function(m){var g=f.T,v=s.p;try{if(f.T=null,s.p=2,m)return m()}finally{f.T=g,s.p=v,s.d.f()}},Vt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Vt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Vt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,y=p(v,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:w}):v==="script"&&s.d.X(m,{crossOrigin:y,integrity:S,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Vt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=p(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Vt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,y=p(v,g.crossOrigin);s.d.L(m,v,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Vt.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=p(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Vt.requestFormReset=function(m){s.d.r(m)},Vt.unstable_batchedUpdates=function(m,g){return m(g)},Vt.useFormState=function(m,g,v){return f.H.useFormState(m,g,v)},Vt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Vt.version="19.2.0",Vt}var Y1;function kv(){if(Y1)return of.exports;Y1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch{}}return t(),of.exports=u6(),of.exports}/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var Q1;function d6(){if(Q1)return Ys;Q1=1;var t=o6(),r=hh(),i=kv();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(u(e)!==e)throw Error(s(188))}function g(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){var d=a.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===a)return m(d),e;if(h===l)return m(d),n;h=h.sibling}throw Error(s(188))}if(a.return!==l.return)a=d,l=h;else{for(var x=!1,T=d.child;T;){if(T===a){x=!0,a=d,l=h;break}if(T===l){x=!0,l=d,a=h;break}T=T.sibling}if(!x){for(T=h.child;T;){if(T===a){x=!0,a=h,l=d;break}if(T===l){x=!0,l=h,a=d;break}T=T.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),M=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function D(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case V:return"SuspenseList";case U:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case M:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case R:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return n=e.displayName||null,n!==null?n:D(e.type)||"Memo";case I:n=e._payload,e=e._init;try{return D(e(n))}catch{}}return null}var q=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ee=[],ne=-1;function A(e){return{current:e}}function F(e){0>ne||(e.current=ee[ne],ee[ne]=null,ne--)}function X(e,n){ne++,ee[ne]=e.current,e.current=n}var ie=A(null),re=A(null),de=A(null),se=A(null);function ge(e,n){switch(X(de,n),X(re,e),X(ie,null),n.nodeType){case 9:case 11:e=(e
vendor: 4,185 bytes, lines 42-49
42=n.documentElement)&&(e=e.namespaceURI)?u1(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=u1(n),e=d1(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(ie),X(ie,e)}function be(){F(ie),F(re),F(de)}function Ne(e){e.memoizedState!==null&&X(se,e);var n=ie.current,a=d1(n,e.type);n!==a&&(X(re,e),X(ie,a))}function Ee(e){re.current===e&&(F(ie),F(re)),se.current===e&&(F(se),qs._currentValue=Z)}var me,he;function Ae(e){if(me===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);me=n&&n[1]||"",he=-1<a.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+me+e+he}var He=!1;function Ve(e,n){if(!e||He)return"";He=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ae){var te=ae}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(ae){te=ae}e.call(ce.prototype)}}else{try{throw Error()}catch(ae){te=ae}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ae){if(ae&&te&&typeof ae.stack=="string")return[ae.stack,te.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),x=h[0],T=h[1];if(x&&T){var H=x.split(` 45`),W=T.split(` 46`);for(d=l=0;l<H.length&&!H[l].includes("DetermineComponentFrameRoot");)l++;for(;d<W.length&&!W[d].includes("DetermineComponentFrameRoot");)d++;if(l===H.length||d===W.length)for(l=H.length-1,d=W.length-1;1<=l&&0<=d&&H[l]!==W[d];)d--;for(;1<=l&&0<=d;l--,d--)if(H[l]!==W[d]){if(l!==1||d!==1)do if(l--,d--,0>d||H[l]!==W[d]){var le=` 47`+H[l].replace(" at new "," at ");return e.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",e.displayName)),le}while(1<=l&&0<=d);break}}}finally{He=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ae(a):""}function nt(e,n){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return e.child!==n&&n!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return Ve(e.type,!1);case 11:return Ve(e.type.render,!1);case 1:return Ve(e.type,!0);case 31:return Ae("Activity");default:return""}}function We(e){try{var n="",a=null;do n+=nt(e,a),a=e,e=e.return;while(e);return n}catch(l){return` 48Error generating stack: `+l.message+` 49`+l.stack}}var dt=Object.prototype.hasOwnProperty,st=t.unstable_scheduleCallback,mt=t.unstable_cancelCallback,Ht=t.unstable_shouldYield,Dn=t.unstable_requestPaint,pt=t.unstable_now,kn=t.unstable_getCurrentPriorityLevel,bn=t.unstable_ImmediatePriority,xt=t.unstable_UserBlockingPriority,_n=t.unstable_NormalPriority,ma=t.unstable_LowPriority,Sn=t.unstable_IdlePriority,Zt=t.log,sn=t.unstable_setDisableYieldValue,Gt=null,Et=null;function wt(e){if(typeof Zt=="function"&&sn(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Gt,e)}catch{}}var gt=Math.clz32?Math.clz32:ni,Er=Math.log,wr=Math.LN2;function ni(e){return e>>>=0,e===0?32:31-(Er(e)/wr|0)|0}var ta=256,In=262144,wa=4194304;function Ft(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ga(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var d=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var T=l&134217727;
vendor: 7,903 bytes, line 49
49return T!==0?(l=T&~h,l!==0?d=Ft(l):(x&=T,x!==0?d=Ft(x):a||(a=T&~e,a!==0&&(d=Ft(a))))):(T=l&~h,T!==0?d=Ft(T):x!==0?d=Ft(x):a||(a=l&~e,a!==0&&(d=Ft(a)))),d===0?0:n!==0&&n!==d&&(n&h)===0&&(h=d&-d,a=n&-n,h>=a||h===32&&(a&4194048)!==0)?n:d}function pa(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function lt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function na(){var e=wa;return wa<<=1,(wa&62914560)===0&&(wa=4194304),e}function Ji(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Ya(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wi(e,n,a,l,d,h){var x=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var T=e.entanglements,H=e.expirationTimes,W=e.hiddenUpdates;for(a=x&~a;0<a;){var le=31-gt(a),ce=1<<le;T[le]=0,H[le]=-1;var te=W[le];if(te!==null)for(W[le]=null,le=0;le<te.length;le++){var ae=te[le];ae!==null&&(ae.lane&=-536870913)}a&=~ce}l!==0&&es(e,l,0),h!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~n))}function es(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-gt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ts(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-gt(a),d=1<<l;d&n|e[l]&n&&(e[l]|=n),a&=~d}}function Ul(e,n){var a=n&-n;return a=(a&42)!==0?1:ln(a),(a&(e.suspendedLanes|n))!==0?0:a}function ln(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function aa(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ns(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:D1(e.type))}function as(e,n){var a=Y.p;try{return Y.p=e,n()}finally{Y.p=a}}var Un=Math.random().toString(36).slice(2),jt="__reactFiber$"+Un,ot="__reactProps$"+Un,ja="__reactContainer$"+Un,ai="__reactEvents$"+Un,Hl="__reactListeners$"+Un,zl="__reactHandles$"+Un,Pl="__reactResources$"+Un,_e="__reactMarker$"+Un;function P(e){delete e[jt],delete e[ot],delete e[ai],delete e[Hl],delete e[zl]}function ue(e){var n=e[jt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[ja]||a[jt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=y1(e);e!==null;){if(a=e[jt])return a;e=y1(e)}return n}e=a,a=e.parentNode}return null}function pe(e){if(e=e[jt]||e[ja]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ze(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function ft(e){var n=e[Pl];return n||(n=e[Pl]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Me(e){e[_e]=!0}var zt=new Set,Hn={};function on(e,n){ga(e,n),ga(e+"Capture",n)}function ga(e,n){for(Hn[e]=n,e=0;e<n.length;e++)zt.add(n[e])}var Lt=RegExp("^[: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]*$"),rs={},is={};function X2(e){return dt.call(is,e)?!0:dt.call(rs,e)?!1:Lt.test(e)?is[e]=!0:(rs[e]=!0,!1)}function $l(e,n,a){if(X2(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Bl(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Aa(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}function zn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function J2(e,n,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,h=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){a=""+x,h.call(this,x)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Qc(e){if(!e._valueTracker){var n=nm(e)?"checked":"value";e._valueTracker=J2(e,n,""+e[n])}}function am(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=nm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function ql(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}}var W2=/[\n"\\]/g;function Pn(e){return e.replace(W2,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Kc(e,n,a,l,d,h,x,T){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+zn(n)):e.value!==""+zn(n)&&(e.value=""+zn(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Xc(e,x,zn(n)):a!=null?Xc(e,x,zn(a)):l!=null&&e.removeAttribute("value"),d==null&&h!=null&&(e.defaultChecked=!!h),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+zn(T):e.removeAttribute("name")}function rm(e,n,a,l,d,h,x,T){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Qc(e);return}a=a!=null?""+zn(a):"",n=n!=null?""+zn(n):a,T||n===e.value||(e.value=n),e.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=T?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Qc(e)}function Xc(e,n,a){n==="number"&&ql(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ri(e,n,a,l){if(e=e.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=n.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&l&&(e[a].defaultSelected=!0)}else{for(a=""+zn(a),n=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,l&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function im(e,n,a){if(n!=null&&(n=""+zn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+zn(a):""}function sm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(q(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=zn(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Qc(e)}function ii(e,n){if(n){var a=e.firstChild;
vendor: 4,140 bytes, line 49
49if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var eb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function lm(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||eb.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function om(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var d in n)l=n[d],n.hasOwnProperty(d)&&a[d]!==l&&lm(e,d,l)}else for(var h in n)n.hasOwnProperty(h)&&lm(e,h,n[h])}function Jc(e){if(e.indexOf("-")===-1)return!1;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 tb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
49-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fl(e){return nb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ta(){}var Wc=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,li=null;function cm(e){var n=pe(e);if(n&&(e=n.stateNode)){var a=e[ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(Kc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var d=l[ot]||null;if(!d)throw Error(s(90));Kc(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&am(l)}break e;case"textarea":im(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&ri(e,!!a.multiple,n,!1)}}}var tu=!1;function um(e,n,a){if(tu)return e(n,a);tu=!0;try{var l=e(n);return l}finally{if(tu=!1,(si!==null||li!==null)&&(Oo(),si&&(n=si,e=li,li=si=null,cm(n),e)))for(n=0;n<e.length;n++)cm(e[n])}}function ss(e,n){var a=e.stateNode;if(a===null)return null;var l=a[ot]||null;if(l===null)return null;a=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(Na)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){nu=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{nu=!1}var Qa=null,au=null,Vl=null;function dm(){if(Vl)return Vl;var e,n=au,a=n.length,l,d="value"in Qa?Qa.value:Qa.textContent,h=d.length;for(e=0;e<a&&n[e]===d[e];e++);var x=a-e;for(l=1;l<=x&&n[a-l]===d[h-l];l++);return Vl=d.slice(e,1<l?1-l:void 0)}function Zl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Gl(){return!0}function fm(){return!1}function cn(e){function n(a,l,d,h,x){this._reactName=a,this._targetInst=d,this.type=l,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(a=e[T],this[T]=a?a(h):h[T]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Gl:fm,this.isPropagationStopped=fm,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),n}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yl=cn(jr),os=y({},jr,{view:0,detail:0}),ab=cn(os),ru,iu,cs,Ql=y({},os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,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!==cs&&(cs&&e.type==="mousemove"?(ru=e.screenX-cs.screenX,iu=e.screenY-cs.screenY):iu=ru=0,cs=e),ru)},movementY:function(e){return"movementY"in e?e.movementY:iu}}),hm=cn(Ql),rb=y({},Ql,{dataTransfer:0}),ib=cn(rb),sb=y({},os,{relatedTarget:0}),su=cn(sb),lb=y({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),ob=cn(lb),cb=y({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ub=cn(cb),db=y({},jr,{data:0}),mm=cn(db),fb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hb={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"},mb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pb(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=mb[e])?!!n[e]:!1}function lu(){return pb}var gb=y({},os,{key:function(e){if(e.key){var n=fb[e.key]||e.key;if(n!=="Unidentified")return n}
vendor: 4,866 bytes, line 49
49return e.type==="keypress"?(e=Zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?Zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vb=cn(gb),yb=y({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pm=cn(yb),bb=y({},os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),_b=cn(bb),Sb=y({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),xb=cn(Sb),Eb=y({},Ql,{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}),wb=cn(Eb),jb=y({},jr,{newState:0,oldState:0}),Ab=cn(jb),Tb=[9,13,27,32],ou=Na&&"CompositionEvent"in window,us=null;Na&&"documentMode"in document&&(us=document.documentMode);var Nb=Na&&"TextEvent"in window&&!us,gm=Na&&(!ou||us&&8<us&&11>=us),vm=" ",ym=!1;function bm(e,n){switch(e){case"keyup":return Tb.indexOf(n.keyCode)!==-1;case"keydown":return n.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 oi=!1;function Cb(e,n){switch(e){case"compositionend":return _m(n);case"keypress":return n.which!==32?null:(ym=!0,vm);case"textInput":return e=n.data,e===vm&&ym?null:e;default:return null}}function Rb(e,n){if(oi)return e==="compositionend"||!ou&&bm(e,n)?(e=dm(),Vl=au=Qa=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return gm&&n.locale!=="ko"?null:n.data;default:return null}}var Lb={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 Sm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Lb[e.type]:n==="textarea"}function xm(e,n,a,l){si?li?li.push(l):li=[l]:si=l,n=zo(n,"onChange"),0<n.length&&(a=new Yl("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var ds=null,fs=null;function Ob(e){r1(e,0)}function Kl(e){var n=Ze(e);if(am(n))return e}function Em(e,n){if(e==="change")return n}var wm=!1;if(Na){var cu;if(Na){var uu="oninput"in document;if(!uu){var jm=document.createElement("div");jm.setAttribute("oninput","return;"),uu=typeof jm.oninput=="function"}cu=uu}else cu=!1;wm=cu&&(!document.documentMode||9<document.documentMode)}function Am(){ds&&(ds.detachEvent("onpropertychange",Tm),fs=ds=null)}function Tm(e){if(e.propertyName==="value"&&Kl(fs)){var n=[];xm(n,fs,e,eu(e)),um(Ob,n)}}function Mb(e,n,a){e==="focusin"?(Am(),ds=n,fs=a,ds.attachEvent("onpropertychange",Tm)):e==="focusout"&&Am()}function Db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(fs)}function kb(e,n){if(e==="click")return Kl(n)}function Ib(e,n){if(e==="input"||e==="change")return Kl(n)}function Ub(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var xn=typeof Object.is=="function"?Object.is:Ub;function hs(e,n){if(xn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var d=a[l];if(!dt.call(n,d)||!xn(e[d],n[d]))return!1}return!0}function Nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cm(e,n){var a=Nm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Nm(a)}}function Rm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Rm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Lm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ql(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=ql(e.document)}return n}function du(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Hb=Na&&"documentMode"in document&&11>=document.documentMode,ci=null,fu=null,ms=null,hu=!1;
vendor: 21,592 bytes, line 49
49function Om(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hu||ci==null||ci!==ql(l)||(l=ci,"selectionStart"in l&&du(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ms&&hs(ms,l)||(ms=l,l=zo(fu,"onSelect"),0<l.length&&(n=new Yl("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=ci)))}function Ar(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var ui={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionrun:Ar("Transition","TransitionRun"),transitionstart:Ar("Transition","TransitionStart"),transitioncancel:Ar("Transition","TransitionCancel"),transitionend:Ar("Transition","TransitionEnd")},mu={},Mm={};Na&&(Mm=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function Tr(e){if(mu[e])return mu[e];if(!ui[e])return e;var n=ui[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Mm)return mu[e]=n[a];return e}var Dm=Tr("animationend"),km=Tr("animationiteration"),Im=Tr("animationstart"),zb=Tr("transitionrun"),Pb=Tr("transitionstart"),$b=Tr("transitioncancel"),Um=Tr("transitionend"),Hm=new Map,pu="abort auxClick beforeToggle 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(" ");pu.push("scrollEnd");function ra(e,n){Hm.set(e,n),on(n,[e])}var Xl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}},$n=[],di=0,gu=0;function Jl(){for(var e=di,n=gu=di=0;n<e;){var a=$n[n];$n[n++]=null;var l=$n[n];$n[n++]=null;var d=$n[n];$n[n++]=null;var h=$n[n];if($n[n++]=null,l!==null&&d!==null){var x=l.pending;x===null?d.next=d:(d.next=x.next,x.next=d),l.pending=d}h!==0&&zm(a,d,h)}}function Wl(e,n,a,l){$n[di++]=e,$n[di++]=n,$n[di++]=a,$n[di++]=l,gu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function vu(e,n,a,l){return Wl(e,n,a,l),eo(e)}function Nr(e,n){return Wl(e,null,null,n),eo(e)}function zm(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var d=!1,h=e.return;h!==null;)h.childLanes|=a,l=h.alternate,l!==null&&(l.childLanes|=a),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(d=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,d&&n!==null&&(d=31-gt(a),e=h.hiddenUpdates,l=e[d],l===null?e[d]=[n]:l.push(n),n.lane=a|536870912),h):null}function eo(e){if(50<Is)throw Is=0,Ad=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var fi={};function Bb(e,n,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,n,a,l){return new Bb(e,n,a,l)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ca(e,n){var a=e.alternate;return a===null?(a=En(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Pm(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function to(e,n,a,l,d,h){var x=0;if(l=e,typeof e=="function")yu(e)&&(x=1);else if(typeof e=="string")x=G8(e,a,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case U:return e=En(31,a,n,d),e.elementType=U,e.lanes=h,e;case b:return Cr(a.children,d,h,n);case j:x=8,d|=24;break;case N:return e=En(12,a,n,d|2),e.elementType=N,e.lanes=h,e;case z:return e=En(13,a,n,d),e.elementType=z,e.lanes=h,e;case V:return e=En(19,a,n,d),e.elementType=V,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:x=10;break e;case C:x=9;break e;case R:x=11;break e;case k:x=14;break e;case I:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=En(x,a,n,d),n.elementType=e,n.type=l,n.lanes=h,n}function Cr(e,n,a,l){return e=En(7,e,l,n),e.lanes=a,e}function bu(e,n,a){return e=En(6,e,null,n),e.lanes=a,e}function $m(e){var n=En(18,null,null,0);return n.stateNode=e,n}function _u(e,n,a){return n=En(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Bm=new WeakMap;function Bn(e,n){if(typeof e=="object"&&e!==null){var a=Bm.get(e);return a!==void 0?a:(n={value:e,source:n,stack:We(n)},Bm.set(e,n),n)}return{value:e,source:n,stack:We(n)}}var hi=[],mi=0,no=null,ps=0,qn=[],Fn=0,Ka=null,va=1,ya="";function Ra(e,n){hi[mi++]=ps,hi[mi++]=no,no=e,ps=n}function qm(e,n,a){qn[Fn++]=va,qn[Fn++]=ya,qn[Fn++]=Ka,Ka=e;var l=va;e=ya;var d=32-gt(l)-1;l&=~(1<<d),a+=1;var h=32-gt(n)+d;if(30<h){var x=d-d%5;h=(l&(1<<x)-1).toString(32),l>>=x,d-=x,va=1<<32-gt(n)+d|a<<d|l,ya=h+e}else va=1<<h|a<<d|l,ya=e}function Su(e){e.return!==null&&(Ra(e,1),qm(e,1,0))}function xu(e){for(;e===no;)no=hi[--mi],hi[mi]=null,ps=hi[--mi],hi[mi]=null;for(;e===Ka;)Ka=qn[--Fn],qn[Fn]=null,ya=qn[--Fn],qn[Fn]=null,va=qn[--Fn],qn[Fn]=null}function Fm(e,n){qn[Fn++]=va,qn[Fn++]=ya,qn[Fn++]=Ka,va=n.id,ya=n.overflow,Ka=e}var Pt=null,at=null,$e=!1,Xa=null,Vn=!1,Eu=Error(s(519));function Ja(e){var n=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gs(Bn(n,e)),Eu}function Vm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[jt]=e,n[ot]=l,a){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(a=0;a<Hs.length;a++)Ue(Hs[a],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":Ue("invalid",n),rm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ue("invalid",n);break;case"textarea":Ue("invalid",n),sm(n,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||o1(n.textContent,a)?(l.popover!=null&&(Ue("beforetoggle",n),Ue("toggle",n)),l.onScroll!=null&&Ue("scroll",n),l.onScrollEnd!=null&&Ue("scrollend",n),l.onClick!=null&&(n.onclick=Ta),n=!0):n=!1,n||Ja(e,!0)}function Zm(e){for(Pt=e.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Pt=Pt.return}}function pi(e){if(e!==Pt)return!1;if(!$e)return Zm(e),$e=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||$d(e.type,e.memoizedProps)),a=!a),a&&at&&Ja(e),Zm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));at=v1(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));at=v1(e)}else n===27?(n=at,fr(e.type)?(e=Zd,Zd=null,at=e):at=n):at=Pt?Gn(e.stateNode.nextSibling):null;return!0}function Rr(){at=Pt=null,$e=!1}function wu(){var e=Xa;return e!==null&&(hn===null?hn=e:hn.push.apply(hn,e),Xa=null),e}function gs(e){Xa===null?Xa=[e]:Xa.push(e)}var ju=A(null),Lr=null,La=null;function Wa(e,n,a){X(ju,n._currentValue),n._currentValue=a}function Oa(e){e._currentValue=ju.current,F(ju)}function Au(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function Tu(e,n,a,l){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var h=d.dependencies;if(h!==null){var x=d.child;h=h.firstContext;e:for(;h!==null;){var T=h;h=d;for(var H=0;H<n.length;H++)if(T.context===n[H]){h.lanes|=a,T=h.alternate,T!==null&&(T.lanes|=a),Au(h.return,a,e),l||(x=null);break e}h=T.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(s(341));x.lanes|=a,h=x.alternate,h!==null&&(h.lanes|=a),Au(x,a,e),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===e){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function gi(e,n,a,l){e=null;for(var d=n,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var T=d.type;xn(d.pendingProps.value,x.value)||(e!==null?e.push(T):e=[T])}}else if(d===se.current){if(x=d.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}d=d.return}e!==null&&Tu(n,e,a,l),n.flags|=262144}function ao(e){for(e=e.firstContext;e!==null;){if(!xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Or(e){Lr=e,La=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $t(e){return Gm(Lr,e)}function ro(e,n){return Lr===null&&Or(e),Gm(e,n)}function Gm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},La===null){if(e===null)throw Error(s(308));La=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else La=La.next=n;return a}var qb=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},Fb=t.unstable_scheduleCallback,Vb=t.unstable_NormalPriority,At={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nu(){return{controller:new qb,data:new Map,refCount:0}}function vs(e){e.refCount--,e.refCount===0&&Fb(Vb,function(){e.controller.abort()})}var ys=null,Cu=0,vi=0,yi=null;function Zb(e,n){if(ys===null){var a=ys=[];Cu=0,vi=Od(),yi={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Cu++,n.then(Ym,Ym),n}function Ym(){if(--Cu===0&&ys!==null){yi!==null&&(yi.status="fulfilled");var e=ys;ys=null,vi=0,yi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Gb(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(l.status="rejected",l.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),l}var Qm=O.S;O.S=function(e,n){Op=pt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Zb(e,n),Qm!==null&&Qm(e,n)};var Mr=A(null);function Ru(){var e=Mr.current;return e!==null?e:et.pooledCache}function io(e,n){n===null?X(Mr,Mr.current):X(Mr,n.pool)}function Km(){var e=Ru();return e===null?null:{parent:At._currentValue,pool:e}}var bi=Error(s(460)),Lu=Error(s(474)),so=Error(s(542)),lo={then:function(){}};function Xm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jm(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Ta,Ta),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e0(e),e;default:if(typeof n.status=="string")n.then(Ta,Ta);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=l}},function(l){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e0(e),e}throw kr=n,bi}}function Dr(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(kr=a,bi):a}}var kr=null;function Wm(){if(kr===null)throw Error(s(459));var e=kr;return kr=null,e}function e0(e){if(e===bi||e===so)throw Error(s(483))}var _i=null,bs=0;function oo(e){var n=bs;return bs+=1,_i===null&&(_i=[]),Jm(_i,e,n)}function _s(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function co(e,n){throw n.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function t0(e){function n(G,$){if(e){var J=G.deletions;J===null?(G.deletions=[$],G.flags|=16):J.push($)}}function a(G,$){if(!e)return null;for(;$!==null;)n(G,$),$=$.sibling;return null}function l(G){for(var $=new Map;G!==null;)G.key!==null?$.set(G.key,G):$.set(G.index,G),G=G.sibling;return $}function d(G,$){return G=Ca(G,$),G.index=0,G.sibling=null,G}function h(G,$,J){return G.index=J,e?(J=G.alternate,J!==null?(J=J.index,J<$?(G.flags|=67108866,$):J):(G.flags|=67108866,$)):(G.flags|=1048576,$)}function x(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function T(G,$,J,oe){return $===null||$.tag!==6?($=bu(J,G.mode,oe),$.return=G,$):($=d($,J),$.return=G,$)}function H(G,$,J,oe){var we=J.type;return we===b?le(G,$,J.props.children,oe,J.key):$!==null&&($.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===I&&Dr(we)===$.type)?($=d($,J.props),_s($,J),$.return=G,$):($=to(J.type,J.key,J.props,null,G.mode,oe),_s($,J),$.return=G,$)}function W(G,$,J,oe){return $===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation?($=_u(J,G.mode,oe),$.return=G,$):($=d($,J.children||[]),$.return=G,$)}function le(G,$,J,oe,we){return $===null||$.tag!==7?($=Cr(J,G.mode,oe,we),$.return=G,$):($=d($,J),$.return=G,$)}function ce(G,$,J){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=bu(""+$,G.mode,J),$.return=G,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return J=to($.type,$.key,$.props,null,G.mode,J),_s(J,$),J.return=G,J;case E:return $=_u($,G.mode,J),$.return=G,$;case I:return $=Dr($),ce(G,$,J)}if(q($)||Q($))return $=Cr($,G.mode,J,null),$.return=G,$;if(typeof $.then=="function")return ce(G,oo($),J);if($.$$typeof===M)return ce(G,ro(G,$),J);co(G,$)}return null}function te(G,$,J,oe){var we=$!==null?$.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return we!==null?null:T(G,$,""+J,oe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case w:return J.key===we?H(G,$,J,oe):null;case E:return J.key===we?W(G,$,J,oe):null;case I:return J=Dr(J),te(G,$,J,oe)}if(q(J)||Q(J))return we!==null?null:le(G,$,J,oe,null);if(typeof J.then=="function")return te(G,$,oo(J),oe);if(J.$$typeof===M)return te(G,$,ro(G,J),oe);co(G,J)}return null}function ae(G,$,J,oe,we){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return G=G.get(J)||null,T($,G,""+oe,we);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case w:return G=G.get(oe.key===null?J:oe.key)||null,H($,G,oe,we);case E:return G=G.get(oe.key===null?J:oe.key)||null,W($,G,oe,we);case I:return oe=Dr(oe),ae(G,$,J,oe,we)}if(q(oe)||Q(oe))return G=G.get(J)||null,le($,G,oe,we,null);if(typeof oe.then=="function")return ae(G,$,J,oo(oe),we);if(oe.$$typeof===M)return ae(G,$,J,ro($,oe),we);co($,oe)}return null}function ye(G,$,J,oe){for(var we=null,Be=null,Se=$,Le=$=0,Pe=null;Se!==null&&Le<J.length;Le++){Se.index>Le?(Pe=Se,Se=null):Pe=Se.sibling;var qe=te(G,Se,J[Le],oe);if(qe===null){Se===null&&(Se=Pe);break}e&&Se&&qe.alternate===null&&n(G,Se),$=h(qe,$,Le),Be===null?we=qe:Be.sibling=qe,Be=qe,Se=Pe}if(Le===J.length)return a(G,Se),$e&&Ra(G,Le),we;if(Se===null){for(;Le<J.length;Le++)Se=ce(G,J[Le],oe),Se!==null&&($=h(Se,$,Le),Be===null?we=Se:Be.sibling=Se,Be=Se);return $e&&Ra(G,Le),we}for(Se=l(Se);Le<J.length;Le++)Pe=ae(Se,G,Le,J[Le],oe),Pe!==null&&(e&&Pe.alternate!==null&&Se.delete(Pe.key===null?Le:Pe.key),$=h(Pe,$,Le),Be===null?we=Pe:Be.sibling=Pe,Be=Pe);return e&&Se.forEach(function(vr){return n(G,vr)}),$e&&Ra(G,Le),we}function Te(G,$,J,oe){if(J==null)throw Error(s(151));for(var we=null,Be=null,Se=$,Le=$=0,Pe=null,qe=J.next();Se!==null&&!qe.done;Le++,qe=J.next()){Se.index>Le?(Pe=Se,Se=null):Pe=Se.sibling;var vr=te(G,Se,qe.value,oe);if(vr===null){Se===null&&(Se=Pe);break}e&&Se&&vr.alternate===null&&n(G,Se),$=h(vr,$,Le),Be===null?we=vr:Be.sibling=vr,Be=vr,Se=Pe}if(qe.done)return a(G,Se),$e&&Ra(G,Le),we;if(Se===null){for(;!qe.done;Le++,qe=J.next())qe=ce(G,qe.value,oe),qe!==null&&($=h(qe,$,Le),Be===null?we=qe:Be.sibling=qe,Be=qe);return $e&&Ra(G,Le),we}for(Se=l(Se);!qe.done;Le++,qe=J.next())qe=ae(Se,G,Le,qe.value,oe),qe!==null&&(e&&qe.alternate!==null&&Se.delete(qe.key===null?Le:qe.key),$=h(qe,$,Le),Be===null?we=qe:Be.sibling=qe,Be=qe);return e&&Se.forEach(function(r6){return n(G,r6)}),$e&&Ra(G,Le),we}function Je(G,$,J,oe){if(typeof J=="object"&&J!==null&&J.type===b&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case w:e:{for(var we=J.key;$!==null;){if($.key===we){if(we=J.type,we===b){if($.tag===7){a(G,$.sibling),oe=d($,J.props.children),oe.return=G,G=oe;break e}}else if($.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===I&&Dr(we)===$.type){a(G,$.sibling),oe=d($,J.props),_s(oe,J),oe.return=G,G=oe;break e}a(G,$);break}else n(G,$);$=$.sibling}J.type===b?(oe=Cr(J.props.children,G.mode,oe,J.key),oe.return=G,G=oe):(oe=to(J.type,J.key,J.props,null,G.mode,oe),_s(oe,J),oe.return=G,G=oe)}return x(G);case E:e:{for(we=J.key;$!==null;){if($.key===we)if($.tag===4&&$.stateNode.containerInfo===J.containerInfo&&$.stateNode.implementation===J.implementation){a(G,$.sibling),oe=d($,J.children||[]),oe.return=G,G=oe;break e}else{a(G,$);break}else n(G,$);$=$.sibling}oe=_u(J,G.mode,oe),oe.return=G,G=oe}return x(G);case I:return J=Dr(J),Je(G,$,J,oe)}if(q(J))return ye(G,$,J,oe);if(Q(J)){if(we=Q(J),typeof we!="function")throw Error(s(150));return J=we.call(J),Te(G,$,J,oe)}if(typeof J.then=="function")return Je(G,$,oo(J),oe);if(J.$$typeof===M)return Je(G,$,ro(G,J),oe);co(G,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,$!==null&&$.tag===6?(a(G,$.sibling),oe=d($,J),oe.return=G,G=oe):(a(G,$),oe=bu(J,G.mode,oe),oe.return=G,G=oe),x(G)):a(G,$)}return function(G,$,J,oe){try{bs=0;var we=Je(G,$,J,oe);return _i=null,we}catch(Se){if(Se===bi||Se===so)throw Se;var Be=En(29,Se,null,G.mode);return Be.lanes=oe,Be.return=G,Be}finally{}}}var Ir=t0(!0),n0=t0(!1),er=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Fe&2)!==0){var d=l.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,n=eo(e),zm(e,null,a),n}return Wl(e,l,n,a),eo(e)}function Ss(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,ts(e,a)}}function Du(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var d=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?d=h=x:h=h.next=x,a=a.next}while(a!==null);h===null?d=h=n:h=h.next=n}else d=h=n;a={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var ku=!1;function xs(){if(ku){var e=yi;if(e!==null)throw e}}function Es(e,n,a,l){ku=!1;var d=e.updateQueue;er=!1;var h=d.firstBaseUpdate,x=d.lastBaseUpdate,T=d.shared.pending;if(T!==null){d.shared.pending=null;var H=T,W=H.next;H.next=null,x===null?h=W:x.next=W,x=H;var le=e.alternate;le!==null&&(le=le.updateQueue,T=le.lastBaseUpdate,T!==x&&(T===null?le.firstBaseUpdate=W:T.next=W,le.lastBaseUpdate=H))}if(h!==null){var ce=d.baseState;x=0,le=W=H=null,T=h;do{var te=T.lane&-536870913,ae=te!==T.lane;
vendor: 5,537 bytes, line 49
49if(ae?(ze&te)===te:(l&te)===te){te!==0&&te===vi&&(ku=!0),le!==null&&(le=le.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=e,Te=T;te=n;var Je=a;switch(Te.tag){case 1:if(ye=Te.payload,typeof ye=="function"){ce=ye.call(Je,ce,te);break e}ce=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Te.payload,te=typeof ye=="function"?ye.call(Je,ce,te):ye,te==null)break e;ce=y({},ce,te);break e;case 2:er=!0}}te=T.callback,te!==null&&(e.flags|=64,ae&&(e.flags|=8192),ae=d.callbacks,ae===null?d.callbacks=[te]:ae.push(te))}else ae={lane:te,tag:T.tag,payload:T.payload,callback:T.callback,next:null},le===null?(W=le=ae,H=ce):le=le.next=ae,x|=te;if(T=T.next,T===null){if(T=d.shared.pending,T===null)break;ae=T,T=ae.next,ae.next=null,d.lastBaseUpdate=ae,d.shared.pending=null}}while(!0);le===null&&(H=ce),d.baseState=H,d.firstBaseUpdate=W,d.lastBaseUpdate=le,h===null&&(d.shared.lanes=0),lr|=x,e.lanes=x,e.memoizedState=ce}}function a0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function r0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)a0(a[e],n)}var Si=A(null),uo=A(0);function i0(e,n){e=$a,X(uo,e),X(Si,n),$a=e|n.baseLanes}function Iu(){X(uo,$a),X(Si,Si.current)}function Uu(){$a=uo.current,F(Si),F(uo)}var wn=A(null),Zn=null;function ar(e){var n=e.alternate;X(_t,_t.current&1),X(wn,e),Zn===null&&(n===null||Si.current!==null||n.memoizedState!==null)&&(Zn=e)}function Hu(e){X(_t,_t.current),X(wn,e),Zn===null&&(Zn=e)}function s0(e){e.tag===22?(X(_t,_t.current),X(wn,e),Zn===null&&(Zn=e)):rr()}function rr(){X(_t,_t.current),X(wn,wn.current)}function jn(e){F(wn),Zn===e&&(Zn=null),F(_t)}var _t=A(0);function fo(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Fd(a)||Vd(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ma=0,Re=null,Ke=null,Tt=null,ho=!1,xi=!1,Ur=!1,mo=0,ws=0,Ei=null,Yb=0;function vt(){throw Error(s(321))}function zu(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!xn(e[a],n[a]))return!1;return!0}function Pu(e,n,a,l,d,h){return Ma=h,Re=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,O.H=e===null||e.memoizedState===null?q0:td,Ur=!1,h=a(l,d),Ur=!1,xi&&(h=o0(n,a,l,d)),l0(e),h}function l0(e){O.H=Ts;var n=Ke!==null&&Ke.next!==null;if(Ma=0,Tt=Ke=Re=null,ho=!1,ws=0,Ei=null,n)throw Error(s(300));e===null||Nt||(e=e.dependencies,e!==null&&ao(e)&&(Nt=!0))}function o0(e,n,a,l){Re=e;var d=0;do{if(xi&&(Ei=null),ws=0,xi=!1,25<=d)throw Error(s(301));if(d+=1,Tt=Ke=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}O.H=F0,h=n(a,l)}while(xi);return h}function Qb(){var e=O.H,n=e.useState()[0];return n=typeof n.then=="function"?js(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Re.flags|=1024),n}function $u(){var e=mo!==0;return mo=0,e}function Bu(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function qu(e){if(ho){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ho=!1}Ma=0,Tt=Ke=Re=null,xi=!1,ws=mo=0,Ei=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Re.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function St(){if(Ke===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=Tt===null?Re.memoizedState:Tt.next;if(n!==null)Tt=n,Ke=e;else{if(e===null)throw Re.alternate===null?Error(s(467)):Error(s(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Tt===null?Re.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(e){var n=ws;return ws+=1,Ei===null&&(Ei=[]),e=Jm(Ei,e,n),n=Re,(Tt===null?n.memoizedState:Tt.next)===null&&(n=n.alternate,O.H=n===null||n.memoizedState===null?q0:td),e}function go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return js(e);if(e.$$typeof===M)return $t(e)}throw Error(s(438,String(e)))}function Fu(e){var n=null,a=Re.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=po(),Re.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=L;return n.index++,a}function Da(e,n){return typeof n=="function"?n(e):n}function vo(e){var n=St();return Vu(n,Ke,e)}function Vu(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var d=e.baseQueue,h=l.pending;if(h!==null){if(d!==null){var x=d.next;d.next=h.next,h.next=x}n.baseQueue=d=h,l.pending=null}if(h=e.baseState,d===null)e.memoizedState=h;else{n=d.next;var T=x=null,H=null,W=n,le=!1;do{var ce=W.lane&-536870913;if(ce!==W.lane?(ze&ce)===ce:(Ma&ce)===ce){var te=W.revertLane;if(te===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),ce===vi&&(le=!0);
vendor: 12,768 bytes, line 49
49else if((Ma&te)===te){W=W.next,te===vi&&(le=!0);continue}else ce={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(T=H=ce,x=h):H=H.next=ce,Re.lanes|=te,lr|=te;ce=W.action,Ur&&a(h,ce),h=W.hasEagerState?W.eagerState:a(h,ce)}else te={lane:ce,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(T=H=te,x=h):H=H.next=te,Re.lanes|=ce,lr|=ce;W=W.next}while(W!==null&&W!==n);if(H===null?x=h:H.next=T,!xn(h,e.memoizedState)&&(Nt=!0,le&&(a=yi,a!==null)))throw a;e.memoizedState=h,e.baseState=x,e.baseQueue=H,l.lastRenderedState=h}return d===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Zu(e){var n=St(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,d=a.pending,h=n.memoizedState;if(d!==null){a.pending=null;var x=d=d.next;do h=e(h,x.action),x=x.next;while(x!==d);xn(h,n.memoizedState)||(Nt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),a.lastRenderedState=h}return[h,l]}function c0(e,n,a){var l=Re,d=St(),h=$e;if(h){if(a===void 0)throw Error(s(407));a=a()}else a=n();var x=!xn((Ke||d).memoizedState,a);if(x&&(d.memoizedState=a,Nt=!0),d=d.queue,Qu(f0.bind(null,l,d,e),[e]),d.getSnapshot!==n||x||Tt!==null&&Tt.memoizedState.tag&1){if(l.flags|=2048,wi(9,{destroy:void 0},d0.bind(null,l,d,a,n),null),et===null)throw Error(s(349));h||(Ma&127)!==0||u0(l,n,a)}return a}function u0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Re.updateQueue,n===null?(n=po(),Re.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function d0(e,n,a,l){n.value=a,n.getSnapshot=l,h0(n)&&m0(e)}function f0(e,n,a){return a(function(){h0(n)&&m0(e)})}function h0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!xn(e,a)}catch{return!0}}function m0(e){var n=Nr(e,2);n!==null&&mn(n,e,2)}function Gu(e){var n=Yt();if(typeof e=="function"){var a=e;if(e=a(),Ur){wt(!0);try{a()}finally{wt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:e},n}function p0(e,n,a,l){return e.baseState=a,Vu(e,Ke,typeof l=="function"?l:Da)}function Kb(e,n,a,l,d){if(_o(e))throw Error(s(485));if(e=n.action,e!==null){var h={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};O.T!==null?a(!0):h.isTransition=!1,l(h),a=n.pending,a===null?(h.next=n.pending=h,g0(n,h)):(h.next=a.next,n.pending=a.next=h)}}function g0(e,n){var a=n.action,l=n.payload,d=e.state;if(n.isTransition){var h=O.T,x={};O.T=x;try{var T=a(d,l),H=O.S;H!==null&&H(x,T),v0(e,n,T)}catch(W){Yu(e,n,W)}finally{h!==null&&x.types!==null&&(h.types=x.types),O.T=h}}else try{h=a(d,l),v0(e,n,h)}catch(W){Yu(e,n,W)}}function v0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){y0(e,n,l)},function(l){return Yu(e,n,l)}):y0(e,n,a)}function y0(e,n,a){n.status="fulfilled",n.value=a,b0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,g0(e,a)))}function Yu(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,b0(n),n=n.next;while(n!==l)}e.action=null}function b0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function _0(e,n){return n}function S0(e,n){if($e){var a=et.formState;if(a!==null){e:{var l=Re;if($e){if(at){t:{for(var d=at,h=Vn;d.nodeType!==8;){if(!h){d=null;break t}if(d=Gn(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){at=Gn(d.nextSibling),l=d.data==="F!";break e}}Ja(l)}l=!1}l&&(n=a[0])}}return a=Yt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_0,lastRenderedState:n},a.queue=l,a=P0.bind(null,Re,l),l.dispatch=a,l=Gu(!1),h=ed.bind(null,Re,!1,l.queue),l=Yt(),d={state:n,dispatch:null,action:e,pending:null},l.queue=d,a=Kb.bind(null,Re,d,h,a),d.dispatch=a,l.memoizedState=e,[n,a,!1]}function x0(e){var n=St();return E0(n,Ke,e)}function E0(e,n,a){if(n=Vu(e,n,_0)[0],e=vo(Da)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=js(n)}catch(x){throw x===bi?so:x}else l=n;n=St();var d=n.queue,h=d.dispatch;return a!==n.memoizedState&&(Re.flags|=2048,wi(9,{destroy:void 0},Xb.bind(null,d,a),null)),[l,h,e]}function Xb(e,n){e.action=n}function w0(e){var n=St(),a=Ke;if(a!==null)return E0(n,a,e);St(),n=n.memoizedState,a=St();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function wi(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=Re.updateQueue,n===null&&(n=po(),Re.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function j0(){return St().memoizedState}function yo(e,n,a,l){var d=Yt();Re.flags|=e,d.memoizedState=wi(1|n,{destroy:void 0},a,l===void 0?null:l)}function bo(e,n,a,l){var d=St();l=l===void 0?null:l;var h=d.memoizedState.inst;Ke!==null&&l!==null&&zu(l,Ke.memoizedState.deps)?d.memoizedState=wi(n,h,a,l):(Re.flags|=e,d.memoizedState=wi(1|n,h,a,l))}function A0(e,n){yo(8390656,8,e,n)}function Qu(e,n){bo(2048,8,e,n)}function Jb(e){Re.flags|=4;var n=Re.updateQueue;if(n===null)n=po(),Re.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function T0(e){var n=St().memoizedState;return Jb({ref:n,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}function N0(e,n){return bo(4,2,e,n)}function C0(e,n){return bo(4,4,e,n)}function R0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function L0(e,n,a){a=a!=null?a.concat([e]):null,bo(4,4,R0.bind(null,n,e),a)}function Ku(){}function O0(e,n){var a=St();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&zu(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function M0(e,n){var a=St();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&zu(n,l[1]))return l[0];if(l=e(),Ur){wt(!0);try{e()}finally{wt(!1)}}return a.memoizedState=[l,n],l}function Xu(e,n,a){return a===void 0||(Ma&1073741824)!==0&&(ze&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=Dp(),Re.lanes|=e,lr|=e,a)}function D0(e,n,a,l){return xn(a,n)?a:Si.current!==null?(e=Xu(e,a,l),xn(e,n)||(Nt=!0),e):(Ma&42)===0||(Ma&1073741824)!==0&&(ze&261930)===0?(Nt=!0,e.memoizedState=a):(e=Dp(),Re.lanes|=e,lr|=e,n)}function k0(e,n,a,l,d){var h=Y.p;Y.p=h!==0&&8>h?h:8;var x=O.T,T={};O.T=T,ed(e,!1,n,a);try{var H=d(),W=O.S;if(W!==null&&W(T,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var le=Gb(H,l);As(e,n,le,Nn(e))}else As(e,n,l,Nn(e))}catch(ce){As(e,n,{then:function(){},status:"rejected",reason:ce},Nn())}finally{Y.p=h,x!==null&&T.types!==null&&(x.types=T.types),O.T=x}}function Wb(){}function Ju(e,n,a,l){if(e.tag!==5)throw Error(s(476));var d=I0(e).queue;k0(e,d,n,Z,a===null?Wb:function(){return U0(e),a(l)})}function I0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:Z},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function U0(e){var n=I0(e);n.next===null&&(n=e.alternate.memoizedState),As(e,n.next.queue,{},Nn())}function Wu(){return $t(qs)}function H0(){return St().memoizedState}function z0(){return St().memoizedState}function e8(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Nn();e=tr(a);var l=nr(n,e,a);l!==null&&(mn(l,n,a),Ss(l,n,a)),n={cache:Nu()},e.payload=n;return}n=n.return}}function t8(e,n,a){var l=Nn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_o(e)?$0(n,a):(a=vu(e,n,a,l),a!==null&&(mn(a,e,l),B0(a,n,l)))}function P0(e,n,a){var l=Nn();As(e,n,a,l)}function As(e,n,a,l){var d={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_o(e))$0(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var x=n.lastRenderedState,T=h(x,a);if(d.hasEagerState=!0,d.eagerState=T,xn(T,x))return Wl(e,n,d,0),et===null&&Jl(),!1}catch{}finally{}if(a=vu(e,n,d,l),a!==null)return mn(a,e,l),B0(a,n,l),!0}return!1}function ed(e,n,a,l){if(l={lane:2,revertLane:Od(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_o(e)){if(n)throw Error(s(479))}else n=vu(e,a,l,2),n!==null&&mn(n,e,2)}function _o(e){var n=e.alternate;return e===Re||n!==null&&n===Re}function $0(e,n){xi=ho=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function B0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,ts(e,a)}}var Ts={readContext:$t,use:go,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Ts.useEffectEvent=vt;var q0={readContext:$t,use:go,useCallback:function(e,n){return Yt().memoizedState=[e,n===void 0?null:n],e},useContext:$t,useEffect:A0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,yo(4194308,4,R0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return yo(4194308,4,e,n)},useInsertionEffect:function(e,n){yo(4,2,e,n)},useMemo:function(e,n){var a=Yt();n=n===void 0?null:n;var l=e();if(Ur){wt(!0);try{e()}finally{wt(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Yt();if(a!==void 0){var d=a(n);if(Ur){wt(!0);try{a(n)}finally{wt(!1)}}}else d=n;return l.memoizedState=l.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},l.queue=e,e=e.dispatch=t8.bind(null,Re,e),[l.memoizedState,e]},useRef:function(e){var n=Yt();return e={current:e},n.memoizedState=e},useState:function(e){e=Gu(e);var n=e.queue,a=P0.bind(null,Re,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Ku,useDeferredValue:function(e,n){var a=Yt();return Xu(a,e,n)},useTransition:function(){var e=Gu(!1);return e=k0.bind(null,Re,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=Re,d=Yt();if($e){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),et===null)throw Error(s(349));(ze&127)!==0||u0(l,n,a)}d.memoizedState=a;var h={value:a,getSnapshot:n};return d.queue=h,A0(f0.bind(null,l,h,e),[e]),l.flags|=2048,wi(9,{destroy:void 0},d0.bind(null,l,h,a,n),null),a},useId:function(){var e=Yt(),n=et.identifierPrefix;if($e){var a=ya,l=va;a=(l&~(1<<32-gt(l)-1)).toString(32)+a,n="_"+n+"R_"+a,a=mo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=Yb++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Wu,useFormState:S0,useActionState:S0,useOptimistic:function(e){var n=Yt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=ed.bind(null,Re,!0,a),a.dispatch=n,[e,n]},useMemoCache:Fu,useCacheRefresh:function(){return Yt().memoizedState=e8.bind(null,Re)},useEffectEvent:function(e){var n=Yt(),a={impl:e};return n.memoizedState=a,function(){if((Fe&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},td={readContext:$t,use:go,useCallback:O0,useContext:$t,useEffect:Qu,useImperativeHandle:L0,useInsertionEffect:N0,useLayoutEffect:C0,useMemo:M0,useReducer:vo,useRef:j0,useState:function(){return vo(Da)},useDebugValue:Ku,useDeferredValue:function(e,n){var a=St();return D0(a,Ke.memoizedState,e,n)},useTransition:function(){var e=vo(Da)[0],n=St().memoizedState;return[typeof e=="boolean"?e:js(e),n]},useSyncExternalStore:c0,useId:H0,useHostTransitionStatus:Wu,useFormState:x0,useActionState:x0,useOptimistic:function(e,n){var a=St();return p0(a,Ke,e,n)},useMemoCache:Fu,useCacheRefresh:z0};td.useEffectEvent=T0;var F0={readContext:$t,use:go,useCallback:O0,useContext:$t,useEffect:Qu,useImperativeHandle:L0,useInsertionEffect:N0,useLayoutEffect:C0,useMemo:M0,useReducer:Zu,useRef:j0,useState:function(){return Zu(Da)},useDebugValue:Ku,useDeferredValue:function(e,n){var a=St();return Ke===null?Xu(a,e,n):D0(a,Ke.memoizedState,e,n)},useTransition:function(){var e=Zu(Da)[0],n=St().memoizedState;return[typeof e=="boolean"?e:js(e),n]},useSyncExternalStore:c0,useId:H0,useHostTransitionStatus:Wu,useFormState:w0,useActionState:w0,useOptimistic:function(e,n){var a=St();return Ke!==null?p0(a,Ke,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:z0};F0.useEffectEvent=T0;
vendor: 8,411 bytes, line 49
49function nd(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:y({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ad={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=Nn(),d=tr(l);d.payload=n,a!=null&&(d.callback=a),n=nr(e,d,l),n!==null&&(mn(n,e,l),Ss(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=Nn(),d=tr(l);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=nr(e,d,l),n!==null&&(mn(n,e,l),Ss(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Nn(),l=tr(a);l.tag=2,n!=null&&(l.callback=n),n=nr(e,l,a),n!==null&&(mn(n,e,a),Ss(n,e,a))}};function V0(e,n,a,l,d,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,x):n.prototype&&n.prototype.isPureReactComponent?!hs(a,l)||!hs(d,h):!0}function Z0(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&ad.enqueueReplaceState(n,n.state,null)}function Hr(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=y({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function G0(e){Xl(e)}function Y0(e){}function Q0(e){Xl(e)}function So(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function K0(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function rd(e,n,a){return a=tr(a),a.tag=3,a.payload={element:null},a.callback=function(){So(e,n)},a}function X0(e){return e=tr(e),e.tag=3,e}function J0(e,n,a,l){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var h=l.value;e.payload=function(){return d(h)},e.callback=function(){K0(n,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){K0(n,a,l),typeof d!="function"&&(or===null?or=new Set([this]):or.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})})}function n8(e,n,a,l,d){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&gi(n,a,d,!0),a=wn.current,a!==null){switch(a.tag){case 31:case 13:return Zn===null?Mo():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,l===lo?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),Cd(e,l,d)),!1;case 22:return a.flags|=65536,l===lo?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),Cd(e,l,d)),!1}throw Error(s(435,a.tag))}return Cd(e,l,d),Mo(),!1}if($e)return n=wn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,l!==Eu&&(e=Error(s(422),{cause:l}),gs(Bn(e,a)))):(l!==Eu&&(n=Error(s(423),{cause:l}),gs(Bn(n,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,l=Bn(l,a),d=rd(e.stateNode,l,d),Du(e,d),yt!==4&&(yt=2)),!1;var h=Error(s(520),{cause:l});if(h=Bn(h,a),ks===null?ks=[h]:ks.push(h),yt!==4&&(yt=2),n===null)return!0;l=Bn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=rd(a.stateNode,l,e),Du(a,e),!1;case 1:if(n=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(or===null||!or.has(h))))return a.flags|=65536,d&=-d,a.lanes|=d,d=X0(d),J0(d,e,a,l),Du(a,d),!1}a=a.return}while(a!==null);return!1}var id=Error(s(461)),Nt=!1;function Bt(e,n,a,l){n.child=e===null?n0(n,null,a,l):Ir(n,e.child,a,l)}function W0(e,n,a,l,d){a=a.render;var h=n.ref;if("ref"in l){var x={};for(var T in l)T!=="ref"&&(x[T]=l[T])}else x=l;return Or(n),l=Pu(e,n,a,x,h,d),T=$u(),e!==null&&!Nt?(Bu(e,n,d),ka(e,n,d)):($e&&T&&Su(n),n.flags|=1,Bt(e,n,l,d),n.child)}function ep(e,n,a,l,d){if(e===null){var h=a.type;return typeof h=="function"&&!yu(h)&&h.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=h,tp(e,n,h,l,d)):(e=to(a.type,null,l,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!hd(e,d)){var x=h.memoizedProps;if(a=a.compare,a=a!==null?a:hs,a(x,l)&&e.ref===n.ref)return ka(e,n,d)}return n.flags|=1,e=Ca(h,l),e.ref=n.ref,e.return=n,n.child=e}function tp(e,n,a,l,d){if(e!==null){var h=e.memoizedProps;if(hs(h,l)&&e.ref===n.ref)if(Nt=!1,n.pendingProps=l=h,hd(e,d))(e.flags&131072)!==0&&(Nt=!0);else return n.lanes=e.lanes,ka(e,n,d)}return sd(e,n,a,l,d)}function np(e,n,a,l){var d=l.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,e!==null){for(l=n.child=e.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~h}else l=0,n.child=null;return ap(e,n,h,a,l)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&io(n,h!==null?h.cachePool:null),h!==null?i0(n,h):Iu(),s0(n);else return l=n.lanes=536870912,ap(e,n,h!==null?h.baseLanes|a:a,a,l)}else h!==null?(io(n,h.cachePool),i0(n,h),rr(),n.memoizedState=null):(e!==null&&io(n,null),Iu(),rr());return Bt(e,n,d,a),n.child}function Ns(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function ap(e,n,a,l,d){var h=Ru();return h=h===null?null:{parent:At._currentValue,pool:h},n.memoizedState={baseLanes:a,cachePool:h},e!==null&&io(n,null),Iu(),s0(n),e!==null&&gi(e,n,l,!0),n.childLanes=d,null}function xo(e,n){return n=wo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function rp(e,n,a){return Ir(n,e.child,null,a),e=xo(n,n.pendingProps),e.flags|=2,jn(n),n.memoizedState=null,e}function a8(e,n,a){var l=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if($e){if(l.mode==="hidden")return e=xo(n,l),n.lanes=536870912,Ns(null,e);if(Hu(n),(e=at)?(e=g1(e,Vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ka!==null?{id:va,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},a=$m(e),a.return=n,n.child=a,Pt=n,at=null)):e=null,e===null)throw Ja(n);return n.lanes=536870912,null}return xo(n,l)}var h=e.memoizedState;if(h!==null){var x=h.dehydrated;if(Hu(n),d)if(n.flags&256)n.flags&=-257,n=rp(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(s(558));else if(Nt||gi(e,n,a,!1),d=(a&e.childLanes)!==0,Nt||d){if(l=et,l!==null&&(x=Ul(l,a),x!==0&&x!==h.retryLane))throw h.retryLane=x,Nr(e,x),mn(l,e,x),id;Mo(),n=rp(e,n,a)}else e=h.treeContext,at=Gn(x.nextSibling),Pt=n,$e=!0,Xa=null,Vn=!1,e!==null&&Fm(n,e),n=xo(n,l),n.flags|=4096;return n}return e=Ca(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Eo(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function sd(e,n,a,l,d){return Or(n),a=Pu(e,n,a,l,void 0,d),l=$u(),e!==null&&!Nt?(Bu(e,n,d),ka(e,n,d)):($e&&l&&Su(n),n.flags|=1,Bt(e,n,a,d),n.child)}function ip(e,n,a,l,d,h){return Or(n),n.updateQueue=null,a=o0(n,l,a,d),l0(e),l=$u(),e!==null&&!Nt?(Bu(e,n,h),ka(e,n,h)):($e&&l&&Su(n),n.flags|=1,Bt(e,n,a,h),n.child)}function sp(e,n,a,l,d){if(Or(n),n.stateNode===null){var h=fi,x=a.contextType;typeof x=="object"&&x!==null&&(h=$t(x)),h=new a(l,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=ad,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=l,h.state=n.memoizedState,h.refs={},Ou(n),x=a.contextType,h.context=typeof x=="object"&&x!==null?$t(x):fi,h.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(nd(n,a,x,l),h.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&ad.enqueueReplaceState(h,h.state,null),Es(n,l,h,d),xs(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){h=n.stateNode;
vendor: 9,353 bytes, line 49
49var T=n.memoizedProps,H=Hr(a,T);h.props=H;var W=h.context,le=a.contextType;x=fi,typeof le=="object"&&le!==null&&(x=$t(le));var ce=a.getDerivedStateFromProps;le=typeof ce=="function"||typeof h.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,le||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(T||W!==x)&&Z0(n,h,l,x),er=!1;var te=n.memoizedState;h.state=te,Es(n,l,h,d),xs(),W=n.memoizedState,T||te!==W||er?(typeof ce=="function"&&(nd(n,a,ce,l),W=n.memoizedState),(H=er||V0(n,a,H,l,te,W,x))?(le||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=W),h.props=l,h.state=W,h.context=x,l=H):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{h=n.stateNode,Mu(e,n),x=n.memoizedProps,le=Hr(a,x),h.props=le,ce=n.pendingProps,te=h.context,W=a.contextType,H=fi,typeof W=="object"&&W!==null&&(H=$t(W)),T=a.getDerivedStateFromProps,(W=typeof T=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==ce||te!==H)&&Z0(n,h,l,H),er=!1,te=n.memoizedState,h.state=te,Es(n,l,h,d),xs();var ae=n.memoizedState;x!==ce||te!==ae||er||e!==null&&e.dependencies!==null&&ao(e.dependencies)?(typeof T=="function"&&(nd(n,a,T,l),ae=n.memoizedState),(le=er||V0(n,a,le,l,te,ae,H)||e!==null&&e.dependencies!==null&&ao(e.dependencies))?(W||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,ae,H),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,ae,H)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=ae),h.props=l,h.state=ae,h.context=H,l=le):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),l=!1)}return h=l,Eo(e,n),l=(n.flags&128)!==0,h||l?(h=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&l?(n.child=Ir(n,e.child,null,d),n.child=Ir(n,null,a,d)):Bt(e,n,a,d),n.memoizedState=h.state,e=n.child):e=ka(e,n,d),e}function lp(e,n,a,l){return Rr(),n.flags|=256,Bt(e,n,a,l),n.child}var ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function od(e){return{baseLanes:e,cachePool:Km()}}function cd(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Tn),e}function op(e,n,a){var l=n.pendingProps,d=!1,h=(n.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),x&&(d=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if($e){if(d?ar(n):rr(),(e=at)?(e=g1(e,Vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ka!==null?{id:va,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},a=$m(e),a.return=n,n.child=a,Pt=n,at=null)):e=null,e===null)throw Ja(n);return Vd(e)?n.lanes=32:n.lanes=536870912,null}var T=l.children;return l=l.fallback,d?(rr(),d=n.mode,T=wo({mode:"hidden",children:T},d),l=Cr(l,d,a,null),T.return=n,l.return=n,T.sibling=l,n.child=T,l=n.child,l.memoizedState=od(a),l.childLanes=cd(e,x,a),n.memoizedState=ld,Ns(null,l)):(ar(n),ud(n,T))}var H=e.memoizedState;if(H!==null&&(T=H.dehydrated,T!==null)){if(h)n.flags&256?(ar(n),n.flags&=-257,n=dd(e,n,a)):n.memoizedState!==null?(rr(),n.child=e.child,n.flags|=128,n=null):(rr(),T=l.fallback,d=n.mode,l=wo({mode:"visible",children:l.children},d),T=Cr(T,d,a,null),T.flags|=2,l.return=n,T.return=n,l.sibling=T,n.child=l,Ir(n,e.child,null,a),l=n.child,l.memoizedState=od(a),l.childLanes=cd(e,x,a),n.memoizedState=ld,n=Ns(null,l));else if(ar(n),Vd(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var W=x.dgst;x=W,l=Error(s(419)),l.stack="",l.digest=x,gs({value:l,source:null,stack:null}),n=dd(e,n,a)}else if(Nt||gi(e,n,a,!1),x=(a&e.childLanes)!==0,Nt||x){if(x=et,x!==null&&(l=Ul(x,a),l!==0&&l!==H.retryLane))throw H.retryLane=l,Nr(e,l),mn(x,e,l),id;Fd(T)||Mo(),n=dd(e,n,a)}else Fd(T)?(n.flags|=192,n.child=e.child,n=null):(e=H.treeContext,at=Gn(T.nextSibling),Pt=n,$e=!0,Xa=null,Vn=!1,e!==null&&Fm(n,e),n=ud(n,l.children),n.flags|=4096);return n}return d?(rr(),T=l.fallback,d=n.mode,H=e.child,W=H.sibling,l=Ca(H,{mode:"hidden",children:l.children}),l.subtreeFlags=H.subtreeFlags&65011712,W!==null?T=Ca(W,T):(T=Cr(T,d,a,null),T.flags|=2),T.return=n,l.return=n,l.sibling=T,n.child=l,Ns(null,l),l=n.child,T=e.child.memoizedState,T===null?T=od(a):(d=T.cachePool,d!==null?(H=At._currentValue,d=d.parent!==H?{parent:H,pool:H}:d):d=Km(),T={baseLanes:T.baseLanes|a,cachePool:d}),l.memoizedState=T,l.childLanes=cd(e,x,a),n.memoizedState=ld,Ns(e.child,l)):(ar(n),a=e.child,e=a.sibling,a=Ca(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=a,n.memoizedState=null,a)}function ud(e,n){return n=wo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function wo(e,n){return e=En(22,e,null,n),e.lanes=0,e}function dd(e,n,a){return Ir(n,e.child,null,a),e=ud(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function cp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Au(e.return,n,a)}function fd(e,n,a,l,d,h){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:d,treeForkCount:h}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=l,x.tail=a,x.tailMode=d,x.treeForkCount=h)}function up(e,n,a){var l=n.pendingProps,d=l.revealOrder,h=l.tail;l=l.children;var x=_t.current,T=(x&2)!==0;if(T?(x=x&1|2,n.flags|=128):x&=1,X(_t,x),Bt(e,n,l,a),l=$e?ps:0,!T&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,a,n);else if(e.tag===19)cp(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)e=a.alternate,e!==null&&fo(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),fd(n,!1,d,a,h,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&fo(e)===null){n.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}fd(n,!0,a,null,h,l);break;case"together":fd(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function ka(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),lr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(gi(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=Ca(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Ca(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function hd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ao(e)))}function r8(e,n,a){switch(n.tag){case 3:ge(n,n.stateNode.containerInfo),Wa(n,At,e.memoizedState.cache),Rr();break;case 27:case 5:Ne(n);break;case 4:ge(n,n.stateNode.containerInfo);break;case 10:Wa(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Hu(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(ar(n),n.flags|=128,null):(a&n.child.childLanes)!==0?op(e,n,a):(ar(n),e=ka(e,n,a),e!==null?e.sibling:null);ar(n);break;case 19:var d=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(gi(e,n,a,!1),l=(a&n.childLanes)!==0),d){if(l)return up(e,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),X(_t,_t.current),l)break;return null;case 22:return n.lanes=0,np(e,n,a,n.pendingProps);case 24:Wa(n,At,e.memoizedState.cache)}return ka(e,n,a)}function dp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Nt=!0;else{if(!hd(e,a)&&(n.flags&128)===0)return Nt=!1,r8(e,n,a);Nt=(e.flags&131072)!==0}else Nt=!1,$e&&(n.flags&1048576)!==0&&qm(n,ps,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=Dr(n.elementType),n.type=e,typeof e=="function")yu(e)?(l=Hr(e,l),n.tag=1,n=sp(null,n,e,l,a)):(n.tag=0,n=sd(null,n,e,l,a));else{if(e!=null){var d=e.$$typeof;if(d===R){n.tag=11,n=W0(null,n,e,l,a);break e}else if(d===k){n.tag=14,n=ep(null,n,e,l,a);break e}}throw n=D(e)||e,Error(s(306,n,""))}}return n;case 0:return sd(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,d=Hr(l,n.pendingProps),sp(e,n,l,d,a);case 3:e:{if(ge(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var h=n.memoizedState;d=h.element,Mu(e,n),Es(n,l,null,a);var x=n.memoizedState;
vendor: 4,790 bytes, line 49
49if(l=x.cache,Wa(n,At,l),l!==h.cache&&Tu(n,[At],a,!0),xs(),l=x.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=lp(e,n,l,a);break e}else if(l!==d){d=Bn(Error(s(424)),n),gs(d),n=lp(e,n,l,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=Gn(e.firstChild),Pt=n,$e=!0,Xa=null,Vn=!0,a=n0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Rr(),l===d){n=ka(e,n,a);break e}Bt(e,n,l,a)}n=n.child}return n;case 26:return Eo(e,n),e===null?(a=x1(n.type,null,n.pendingProps,null))?n.memoizedState=a:$e||(a=n.type,e=n.pendingProps,l=Po(de.current).createElement(a),l[jt]=n,l[ot]=e,qt(l,a,e),Me(l),n.stateNode=l):n.memoizedState=x1(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ne(n),e===null&&$e&&(l=n.stateNode=b1(n.type,n.pendingProps,de.current),Pt=n,Vn=!0,d=at,fr(n.type)?(Zd=d,at=Gn(l.firstChild)):at=d),Bt(e,n,n.pendingProps.children,a),Eo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&$e&&((d=l=at)&&(l=D8(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,Pt=n,at=Gn(l.firstChild),Vn=!1,d=!0):d=!1),d||Ja(n)),Ne(n),d=n.type,h=n.pendingProps,x=e!==null?e.memoizedProps:null,l=h.children,$d(d,h)?l=null:x!==null&&$d(d,x)&&(n.flags|=32),n.memoizedState!==null&&(d=Pu(e,n,Qb,null,null,a),qs._currentValue=d),Eo(e,n),Bt(e,n,l,a),n.child;case 6:return e===null&&$e&&((e=a=at)&&(a=k8(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,Pt=n,at=null,e=!0):e=!1),e||Ja(n)),null;case 13:return op(e,n,a);case 4:return ge(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Ir(n,null,l,a):Bt(e,n,l,a),n.child;case 11:return W0(e,n,n.type,n.pendingProps,a);case 7:return Bt(e,n,n.pendingProps,a),n.child;case 8:return Bt(e,n,n.pendingProps.children,a),n.child;case 12:return Bt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Wa(n,n.type,l.value),Bt(e,n,l.children,a),n.child;case 9:return d=n.type._context,l=n.pendingProps.children,Or(n),d=$t(d),l=l(d),n.flags|=1,Bt(e,n,l,a),n.child;case 14:return ep(e,n,n.type,n.pendingProps,a);case 15:return tp(e,n,n.type,n.pendingProps,a);case 19:return up(e,n,a);case 31:return a8(e,n,a);case 22:return np(e,n,a,n.pendingProps);case 24:return Or(n),l=$t(At),e===null?(d=Ru(),d===null&&(d=et,h=Nu(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=a),d=h),n.memoizedState={parent:l,cache:d},Ou(n),Wa(n,At,d)):((e.lanes&a)!==0&&(Mu(e,n),Es(n,null,null,a),xs()),d=e.memoizedState,h=n.memoizedState,d.parent!==l?(d={parent:l,cache:l},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Wa(n,At,l)):(l=h.cache,Wa(n,At,l),l!==d.cache&&Tu(n,[At],a,!0))),Bt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function Ia(e){e.flags|=4}function md(e,n,a,l,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Hp())e.flags|=8192;else throw kr=lo,Lu}else e.flags&=-16777217}function fp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T1(n))if(Hp())e.flags|=8192;else throw kr=lo,Lu}function jo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?na():536870912,e.lanes|=n,Ni|=n)}function Cs(e,n){if(!$e)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function rt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function i8(e,n,a){var l=n.pendingProps;switch(xu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(n),null;case 1:return rt(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Oa(At),be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(pi(n)?Ia(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,wu())),rt(n),null;case 26:var d=n.type,h=n.memoizedState;return e===null?(Ia(n),h!==null?(rt(n),fp(n,h)):(rt(n),md(n,d,null,l,a))):h?h!==e.memoizedState?(Ia(n),rt(n),fp(n,h)):(rt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ia(n),rt(n),md(n,d,e,l,a)),null;
vendor: 7,059 bytes, line 49
49case 27:if(Ee(n),a=de.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ia(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return rt(n),null}e=ie.current,pi(n)?Vm(n):(e=b1(d,l,a),n.stateNode=e,Ia(n))}return rt(n),null;case 5:if(Ee(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ia(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return rt(n),null}if(h=ie.current,pi(n))Vm(n);else{var x=Po(de.current);switch(h){case 1:h=x.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=x.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=x.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?x.createElement("select",{is:l.is}):x.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?x.createElement(d,{is:l.is}):x.createElement(d)}}h[jt]=n,h[ot]=l;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)h.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=h;e:switch(qt(h,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ia(n)}}return rt(n),md(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&Ia(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=de.current,pi(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,d=Pt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}e[jt]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||o1(e.nodeValue,a)),e||Ja(n,!0)}else e=Po(e).createTextNode(l),e[jt]=n,n.stateNode=e}return rt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(l=pi(n),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[jt]=n}else Rr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rt(n),e=!1}else a=wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(jn(n),n):(jn(n),null);if((n.flags&128)!==0)throw Error(s(558))}return rt(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=pi(n),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(s(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[jt]=n}else Rr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rt(n),d=!1}else d=wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(jn(n),n):(jn(n),null)}return jn(n),(n.flags&128)!==0?(n.lanes=a,n):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=n.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),jo(n,n.updateQueue),rt(n),null);case 4:return be(),e===null&&Id(n.stateNode.containerInfo),rt(n),null;case 10:return Oa(n.type),rt(n),null;case 19:if(F(_t),l=n.memoizedState,l===null)return rt(n),null;if(d=(n.flags&128)!==0,h=l.rendering,h===null)if(d)Cs(l,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=fo(e),h!==null){for(n.flags|=128,Cs(l,!1),e=h.updateQueue,n.updateQueue=e,jo(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Pm(a,e),a=a.sibling;return X(_t,_t.current&1|2),$e&&Ra(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&pt()>Ro&&(n.flags|=128,d=!0,Cs(l,!1),n.lanes=4194304)}else{if(!d)if(e=fo(h),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,jo(n,e),Cs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!$e)return rt(n),null}else 2*pt()-l.renderingStartTime>Ro&&a!==536870912&&(n.flags|=128,d=!0,Cs(l,!1),n.lanes=4194304);l.isBackwards?(h.sibling=n.child,n.child=h):(e=l.last,e!==null?e.sibling=h:n.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=_t.current,X(_t,d?a&1|2:a&1),$e&&Ra(n,l.treeForkCount),e):(rt(n),null);case 22:case 23:return jn(n),Uu(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(rt(n),n.subtreeFlags&6&&(n.flags|=8192)):rt(n),a=n.updateQueue,a!==null&&jo(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&F(Mr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Oa(At),rt(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function s8(e,n){switch(xu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Oa(At),be(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ee(n),null;case 31:if(n.memoizedState!==null){if(jn(n),n.alternate===null)throw Error(s(340));Rr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(jn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Rr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(_t),null;case 4:return be(),null;case 10:return Oa(n.type),null;case 22:case 23:return jn(n),Uu(),e!==null&&F(Mr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Oa(At),null;case 25:return null;default:return null}}function hp(e,n){switch(xu(n),n.tag){case 3:Oa(At),be();break;case 26:case 27:case 5:Ee(n);break;case 4:be();break;case 31:n.memoizedState!==null&&jn(n);break;case 13:jn(n);break;case 19:F(_t);break;case 10:Oa(n.type);break;case 22:case 23:jn(n),Uu(),e!==null&&F(Mr);break;case 24:Oa(At)}}function Rs(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var d=l.next;a=d;do{if((a.tag&e)===e){l=void 0;var h=a.create,x=a.inst;l=h(),x.destroy=l}a=a.next}while(a!==d)}}catch(T){Qe(n,n.return,T)}}function ir(e,n,a){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&e)===e){var x=l.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,d=n;var H=a,W=T;try{W()}catch(le){Qe(d,H,le)}}}l=l.next}while(l!==h)}}catch(le){Qe(n,n.return,le)}}function mp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{r0(n,a)}catch(l){Qe(e,e.return,l)}}}function pp(e,n,a){a.props=Hr(e.type,e.memoizedProps),a.state=e.memoizedState;
vendor: 19,352 bytes, line 49
49try{a.componentWillUnmount()}catch(l){Qe(e,n,l)}}function Ls(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(d){Qe(e,n,d)}}function ba(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(d){Qe(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Qe(e,n,d)}else a.current=null}function gp(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(d){Qe(e,e.return,d)}}function pd(e,n,a){try{var l=e.stateNode;N8(l,e.type,a,n),l[ot]=n}catch(d){Qe(e,e.return,d)}}function vp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function gd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(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.tag===27&&fr(e.type)||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 vd(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Ta));else if(l!==4&&(l===27&&fr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(vd(e,n,a),e=e.sibling;e!==null;)vd(e,n,a),e=e.sibling}function Ao(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ao(e,n,a),e=e.sibling;e!==null;)Ao(e,n,a),e=e.sibling}function yp(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);qt(n,l,a),n[jt]=e,n[ot]=a}catch(h){Qe(e,e.return,h)}}var Ua=!1,Ct=!1,yd=!1,bp=typeof WeakSet=="function"?WeakSet:Set,kt=null;function l8(e,n){if(e=e.containerInfo,zd=Go,e=Lm(e),du(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var x=0,T=-1,H=-1,W=0,le=0,ce=e,te=null;t:for(;;){for(var ae;ce!==a||d!==0&&ce.nodeType!==3||(T=x+d),ce!==h||l!==0&&ce.nodeType!==3||(H=x+l),ce.nodeType===3&&(x+=ce.nodeValue.length),(ae=ce.firstChild)!==null;)te=ce,ce=ae;for(;;){if(ce===e)break t;if(te===a&&++W===d&&(T=x),te===h&&++le===l&&(H=x),(ae=ce.nextSibling)!==null)break;ce=te,te=ce.parentNode}ce=ae}a=T===-1||H===-1?null:{start:T,end:H}}else a=null}a=a||{start:0,end:0}}else a=null;for(Pd={focusedElem:e,selectionRange:a},Go=!1,kt=n;kt!==null;)if(n=kt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,kt=e;else for(;kt!==null;){switch(n=kt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,a=n,d=h.memoizedProps,h=h.memoizedState,l=a.stateNode;try{var ye=Hr(a.type,d);e=l.getSnapshotBeforeUpdate(ye,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(Te){Qe(a,a.return,Te)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)qd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,kt=e;break}kt=n.return}}function _p(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:za(e,a),l&4&&Rs(5,a);break;case 1:if(za(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){Qe(a,a.return,x)}else{var d=Hr(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Qe(a,a.return,x)}}l&64&&mp(a),l&512&&Ls(a,a.return);break;case 3:if(za(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{r0(e,n)}catch(x){Qe(a,a.return,x)}}break;case 27:n===null&&l&4&&yp(a);case 26:case 5:za(e,a),n===null&&l&4&&gp(a),l&512&&Ls(a,a.return);break;case 12:za(e,a);break;case 31:za(e,a),l&4&&Ep(e,a);break;case 13:za(e,a),l&4&&wp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=g8.bind(null,a),I8(e,a))));break;case 22:if(l=a.memoizedState!==null||Ua,!l){n=n!==null&&n.memoizedState!==null||Ct,d=Ua;var h=Ct;Ua=l,(Ct=n)&&!h?Pa(e,a,(a.subtreeFlags&8772)!==0):za(e,a),Ua=d,Ct=h}break;case 30:break;default:za(e,a)}}function Sp(e){var n=e.alternate;n!==null&&(e.alternate=null,Sp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&P(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,un=!1;function Ha(e,n,a){for(a=a.child;a!==null;)xp(e,n,a),a=a.sibling}function xp(e,n,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Gt,a)}catch{}switch(a.tag){case 26:Ct||ba(a,n),Ha(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ct||ba(a,n);var l=ct,d=un;fr(a.type)&&(ct=a.stateNode,un=!1),Ha(e,n,a),Ps(a.stateNode),ct=l,un=d;break;case 5:Ct||ba(a,n);case 6:if(l=ct,d=un,ct=null,Ha(e,n,a),ct=l,un=d,ct!==null)if(un)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(a.stateNode)}catch(h){Qe(a,n,h)}else try{ct.removeChild(a.stateNode)}catch(h){Qe(a,n,h)}break;case 18:ct!==null&&(un?(e=ct,m1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ii(e)):m1(ct,a.stateNode));break;case 4:l=ct,d=un,ct=a.stateNode.containerInfo,un=!0,Ha(e,n,a),ct=l,un=d;break;case 0:case 11:case 14:case 15:ir(2,a,n),Ct||ir(4,a,n),Ha(e,n,a);break;case 1:Ct||(ba(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&pp(a,n,l)),Ha(e,n,a);break;case 21:Ha(e,n,a);break;case 22:Ct=(l=Ct)||a.memoizedState!==null,Ha(e,n,a),Ct=l;break;default:Ha(e,n,a)}}function Ep(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ii(e)}catch(a){Qe(n,n.return,a)}}}function wp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){Qe(n,n.return,a)}}function o8(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new bp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new bp),n;default:throw Error(s(435,e.tag))}}function To(e,n){var a=o8(e);n.forEach(function(l){if(!a.has(l)){a.add(l);var d=v8.bind(null,e,l);l.then(d,d)}})}function dn(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var d=a[l],h=e,x=n,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(fr(T.type)){ct=T.stateNode,un=!1;break e}break;case 5:ct=T.stateNode,un=!1;break e;case 3:case 4:ct=T.stateNode.containerInfo,un=!0;break e}T=T.return}if(ct===null)throw Error(s(160));xp(h,x,d),ct=null,un=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)jp(n,e),n=n.sibling}var ia=null;function jp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dn(n,e),fn(e),l&4&&(ir(3,e,e.return),Rs(3,e),ir(5,e,e.return));break;case 1:dn(n,e),fn(e),l&512&&(Ct||a===null||ba(a,a.return)),l&64&&Ua&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var d=ia;if(dn(n,e),fn(e),l&512&&(Ct||a===null||ba(a,a.return)),l&4){var h=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":h=d.getElementsByTagName("title")[0],(!h||h[_e]||h[jt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(l),d.head.insertBefore(h,d.querySelector("head > title"))),qt(h,l,a),h[jt]=e,Me(h),l=h;break e;case"link":var x=j1("link","href",d).get(l+(a.href||""));if(x){for(var T=0;T<x.length;T++)if(h=x[T],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(T,1);break t}}h=d.createElement(l),qt(h,l,a),d.head.appendChild(h);break;case"meta":if(x=j1("meta","content",d).get(l+(a.content||""))){for(T=0;T<x.length;T++)if(h=x[T],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(T,1);break t}}h=d.createElement(l),qt(h,l,a),d.head.appendChild(h);break;default:throw Error(s(468,l))}h[jt]=e,Me(h),l=h}e.stateNode=l}else A1(d,e.type,e.stateNode);else e.stateNode=w1(d,l,e.memoizedProps);else h!==l?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,l===null?A1(d,e.type,e.stateNode):w1(d,l,e.memoizedProps)):l===null&&e.stateNode!==null&&pd(e,e.memoizedProps,a.memoizedProps)}break;case 27:dn(n,e),fn(e),l&512&&(Ct||a===null||ba(a,a.return)),a!==null&&l&4&&pd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(dn(n,e),fn(e),l&512&&(Ct||a===null||ba(a,a.return)),e.flags&32){d=e.stateNode;try{ii(d,"")}catch(ye){Qe(e,e.return,ye)}}l&4&&e.stateNode!=null&&(d=e.memoizedProps,pd(e,d,a!==null?a.memoizedProps:d)),l&1024&&(yd=!0);break;case 6:if(dn(n,e),fn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ye){Qe(e,e.return,ye)}}break;case 3:if(qo=null,d=ia,ia=$o(n.containerInfo),dn(n,e),ia=d,fn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(n.containerInfo)}catch(ye){Qe(e,e.return,ye)}yd&&(yd=!1,Ap(e));break;case 4:l=ia,ia=$o(e.stateNode.containerInfo),dn(n,e),fn(e),ia=l;break;case 12:dn(n,e),fn(e);break;case 31:dn(n,e),fn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,To(e,l)));break;case 13:dn(n,e),fn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Co=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,To(e,l)));break;case 22:d=e.memoizedState!==null;var H=a!==null&&a.memoizedState!==null,W=Ua,le=Ct;if(Ua=W||d,Ct=le||H,dn(n,e),Ct=le,Ua=W,fn(e),l&8192)e:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||H||Ua||Ct||zr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){H=a=n;try{if(h=H.stateNode,d)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=H.stateNode;var ce=H.memoizedProps.style,te=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;T.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(ye){Qe(H,H.return,ye)}}}else if(n.tag===6){if(a===null){H=n;try{H.stateNode.nodeValue=d?"":H.memoizedProps}catch(ye){Qe(H,H.return,ye)}}}else if(n.tag===18){if(a===null){H=n;try{var ae=H.stateNode;d?p1(ae,!0):p1(H.stateNode,!1)}catch(ye){Qe(H,H.return,ye)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,To(e,a))));break;case 19:dn(n,e),fn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,To(e,l)));break;case 30:break;case 21:break;default:dn(n,e),fn(e)}}function fn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(vp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var d=a.stateNode,h=gd(e);Ao(e,h,d);break;case 5:var x=a.stateNode;a.flags&32&&(ii(x,""),a.flags&=-33);var T=gd(e);Ao(e,T,x);break;case 3:case 4:var H=a.stateNode.containerInfo,W=gd(e);vd(e,W,H);break;default:throw Error(s(161))}}catch(le){Qe(e,e.return,le)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ap(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function za(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)_p(e,n.alternate,n),n=n.sibling}function zr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ir(4,n,n.return),zr(n);break;case 1:ba(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&pp(n,n.return,a),zr(n);break;case 27:Ps(n.stateNode);case 26:case 5:ba(n,n.return),zr(n);break;case 22:n.memoizedState===null&&zr(n);break;case 30:zr(n);break;default:zr(n)}e=e.sibling}}function Pa(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,d=e,h=n,x=h.flags;switch(h.tag){case 0:case 11:case 15:Pa(d,h,a),Rs(4,h);break;case 1:if(Pa(d,h,a),l=h,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(W){Qe(l,l.return,W)}if(l=h,d=l.updateQueue,d!==null){var T=l.stateNode;try{var H=d.shared.hiddenCallbacks;if(H!==null)for(d.shared.hiddenCallbacks=null,d=0;d<H.length;d++)a0(H[d],T)}catch(W){Qe(l,l.return,W)}}a&&x&64&&mp(h),Ls(h,h.return);break;case 27:yp(h);case 26:case 5:Pa(d,h,a),a&&l===null&&x&4&&gp(h),Ls(h,h.return);break;case 12:Pa(d,h,a);break;case 31:Pa(d,h,a),a&&x&4&&Ep(d,h);break;case 13:Pa(d,h,a),a&&x&4&&wp(d,h);break;case 22:h.memoizedState===null&&Pa(d,h,a),Ls(h,h.return);break;case 30:break;default:Pa(d,h,a)}n=n.sibling}}function bd(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&vs(a))}function _d(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&vs(e))}function sa(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Tp(e,n,a,l),n=n.sibling}function Tp(e,n,a,l){var d=n.flags;switch(n.tag){case 0:case 11:case 15:sa(e,n,a,l),d&2048&&Rs(9,n);break;case 1:sa(e,n,a,l);break;case 3:sa(e,n,a,l),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&vs(e)));break;case 12:if(d&2048){sa(e,n,a,l),e=n.stateNode;try{var h=n.memoizedProps,x=h.id,T=h.onPostCommit;typeof T=="function"&&T(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(H){Qe(n,n.return,H)}}else sa(e,n,a,l);break;case 31:sa(e,n,a,l);break;case 13:sa(e,n,a,l);break;case 23:break;case 22:h=n.stateNode,x=n.alternate,n.memoizedState!==null?h._visibility&2?sa(e,n,a,l):Os(e,n):h._visibility&2?sa(e,n,a,l):(h._visibility|=2,ji(e,n,a,l,(n.subtreeFlags&10256)!==0||!1)),d&2048&&bd(x,n);break;case 24:sa(e,n,a,l),d&2048&&_d(n.alternate,n);break;default:sa(e,n,a,l)}}function ji(e,n,a,l,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,x=n,T=a,H=l,W=x.flags;switch(x.tag){case 0:case 11:case 15:ji(h,x,T,H,d),Rs(8,x);break;case 23:break;case 22:var le=x.stateNode;x.memoizedState!==null?le._visibility&2?ji(h,x,T,H,d):Os(h,x):(le._visibility|=2,ji(h,x,T,H,d)),d&&W&2048&&bd(x.alternate,x);break;case 24:ji(h,x,T,H,d),d&&W&2048&&_d(x.alternate,x);break;default:ji(h,x,T,H,d)}n=n.sibling}}function Os(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,d=l.flags;switch(l.tag){case 22:Os(a,l),d&2048&&bd(l.alternate,l);break;case 24:Os(a,l),d&2048&&_d(l.alternate,l);break;default:Os(a,l)}n=n.sibling}}var Ms=8192;function Ai(e,n,a){if(e.subtreeFlags&Ms)for(e=e.child;e!==null;)Np(e,n,a),e=e.sibling}function Np(e,n,a){switch(e.tag){case 26:Ai(e,n,a),e.flags&Ms&&e.memoizedState!==null&&Y8(a,ia,e.memoizedState,e.memoizedProps);break;case 5:Ai(e,n,a);break;case 3:case 4:var l=ia;ia=$o(e.stateNode.containerInfo),Ai(e,n,a),ia=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ms,Ms=16777216,Ai(e,n,a),Ms=l):Ai(e,n,a));break;default:Ai(e,n,a)}}function Cp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Ds(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];kt=l,Lp(l,e)}Cp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rp(e),e=e.sibling}function Rp(e){switch(e.tag){case 0:case 11:case 15:Ds(e),e.flags&2048&&ir(9,e,e.return);break;case 3:Ds(e);break;case 12:Ds(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,No(e)):Ds(e);break;default:Ds(e)}}function No(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];kt=l,Lp(l,e)}Cp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ir(8,n,n.return),No(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,No(n));break;default:No(n)}e=e.sibling}}function Lp(e,n){for(;kt!==null;){var a=kt;switch(a.tag){case 0:case 11:case 15:ir(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:vs(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,kt=l;else e:for(a=e;kt!==null;){l=kt;var d=l.sibling,h=l.return;if(Sp(l),l===a){kt=null;break e}if(d!==null){d.return=h,kt=d;break e}kt=h}}}var c8={getCacheForType:function(e){var n=$t(At),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return $t(At).controller.signal}},u8=typeof WeakMap=="function"?WeakMap:Map,Fe=0,et=null,Ie=null,ze=0,Ye=0,An=null,sr=!1,Ti=!1,Sd=!1,$a=0,yt=0,lr=0,Pr=0,xd=0,Tn=0,Ni=0,ks=null,hn=null,Ed=!1,Co=0,Op=0,Ro=1/0,Lo=null,or=null,Ot=0,cr=null,Ci=null,Ba=0,wd=0,jd=null,Mp=null,Is=0,Ad=null;function Nn(){return(Fe&2)!==0&&ze!==0?ze&-ze:O.T!==null?Od():ns()}function Dp(){if(Tn===0)if((ze&536870912)===0||$e){var e=In;In<<=1,(In&3932160)===0&&(In=262144),Tn=e}else Tn=536870912;return e=wn.current,e!==null&&(e.flags|=32),Tn}function mn(e,n,a){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),ur(e,ze,Tn,!1)),Ya(e,a),((Fe&2)===0||e!==et)&&(e===et&&((Fe&2)===0&&(Pr|=a),yt===4&&ur(e,ze,Tn,!1)),_a(e))}function kp(e,n,a){if((Fe&6)!==0)throw Error(s(327));var l=!a&&(n&127)===0&&(n&e.expiredLanes)===0||pa(e,n),d=l?h8(e,n):Nd(e,n,!0),h=l;do{if(d===0){Ti&&!l&&ur(e,n,0,!1);break}else{if(a=e.current.alternate,h&&!d8(a)){d=Nd(e,n,!1),h=!1;continue}if(d===2){if(h=n,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var T=e;d=ks;var H=T.current.memoizedState.isDehydrated;
vendor: 34,983 bytes, lines 49-50
49if(H&&(Ri(T,x).flags|=256),x=Nd(T,x,!1),x!==2){if(Sd&&!H){T.errorRecoveryDisabledLanes|=h,Pr|=h,d=4;break e}h=hn,hn=d,h!==null&&(hn===null?hn=h:hn.push.apply(hn,h))}d=x}if(h=!1,d!==2)continue}}if(d===1){Ri(e,0),ur(e,n,0,!0);break}e:{switch(l=e,h=d,h){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:ur(l,n,Tn,!sr);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(d=Co+300-pt(),10<d)){if(ur(l,n,Tn,!sr),Ga(l,0,!0)!==0)break e;Ba=n,l.timeoutHandle=f1(Ip.bind(null,l,a,hn,Lo,Ed,n,Tn,Pr,Ni,sr,h,"Throttled",-0,0),d);break e}Ip(l,a,hn,Lo,Ed,n,Tn,Pr,Ni,sr,h,null,-0,0)}}break}while(!0);_a(e)}function Ip(e,n,a,l,d,h,x,T,H,W,le,ce,te,ae){if(e.timeoutHandle=-1,ce=n.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ta},Np(n,h,ce);var ye=(h&62914560)===h?Co-pt():(h&4194048)===h?Op-pt():0;if(ye=Q8(ce,ye),ye!==null){Ba=h,e.cancelPendingCommit=ye(Fp.bind(null,e,n,h,a,l,d,x,T,H,le,ce,null,te,ae)),ur(e,h,x,!W);return}}Fp(e,n,h,a,l,d,x,T,H)}function d8(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var d=a[l],h=d.getSnapshot;d=d.value;try{if(!xn(h(),d))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ur(e,n,a,l){n&=~xd,n&=~Pr,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var d=n;0<d;){var h=31-gt(d),x=1<<h;l[h]=-1,d&=~x}a!==0&&es(e,a,n)}function Oo(){return(Fe&6)===0?(Us(0),!1):!0}function Td(){if(Ie!==null){if(Ye===0)var e=Ie.return;else e=Ie,La=Lr=null,qu(e),_i=null,bs=0,e=Ie;for(;e!==null;)hp(e.alternate,e),e=e.return;Ie=null}}function Ri(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,L8(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ba=0,Td(),et=e,Ie=a=Ca(e.current,null),ze=n,Ye=0,An=null,sr=!1,Ti=pa(e,n),Sd=!1,Ni=Tn=xd=Pr=lr=yt=0,hn=ks=null,Ed=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var d=31-gt(l),h=1<<d;n|=e[d],l&=~h}return $a=n,Jl(),a}function Up(e,n){Re=null,O.H=Ts,n===bi||n===so?(n=Wm(),Ye=3):n===Lu?(n=Wm(),Ye=4):Ye=n===id?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,An=n,Ie===null&&(yt=1,So(e,Bn(n,e.current)))}function Hp(){var e=wn.current;return e===null?!0:(ze&4194048)===ze?Zn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Zn:!1}function zp(){var e=O.H;return O.H=Ts,e===null?Ts:e}function Pp(){var e=O.A;return O.A=c8,e}function Mo(){yt=4,sr||(ze&4194048)!==ze&&wn.current!==null||(Ti=!0),(lr&134217727)===0&&(Pr&134217727)===0||et===null||ur(et,ze,Tn,!1)}function Nd(e,n,a){var l=Fe;Fe|=2;var d=zp(),h=Pp();(et!==e||ze!==n)&&(Lo=null,Ri(e,n)),n=!1;var x=yt;e:do try{if(Ye!==0&&Ie!==null){var T=Ie,H=An;switch(Ye){case 8:Td(),x=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(n=!0);var W=Ye;if(Ye=0,An=null,Li(e,T,H,W),a&&Ti){x=0;break e}break;default:W=Ye,Ye=0,An=null,Li(e,T,H,W)}}f8(),x=yt;break}catch(le){Up(e,le)}while(!0);return n&&e.shellSuspendCounter++,La=Lr=null,Fe=l,O.H=d,O.A=h,Ie===null&&(et=null,ze=0,Jl()),x}function f8(){for(;Ie!==null;)$p(Ie)}function h8(e,n){var a=Fe;Fe|=2;var l=zp(),d=Pp();et!==e||ze!==n?(Lo=null,Ro=pt()+500,Ri(e,n)):Ti=pa(e,n);e:do try{if(Ye!==0&&Ie!==null){n=Ie;var h=An;t:switch(Ye){case 1:Ye=0,An=null,Li(e,n,h,1);break;case 2:case 9:if(Xm(h)){Ye=0,An=null,Bp(n);break}n=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),_a(e)},h.then(n,n);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Xm(h)?(Ye=0,An=null,Bp(n)):(Ye=0,An=null,Li(e,n,h,7));break;case 5:var x=null;switch(Ie.tag){case 26:x=Ie.memoizedState;case 5:case 27:var T=Ie;if(x?T1(x):T.stateNode.complete){Ye=0,An=null;var H=T.sibling;if(H!==null)Ie=H;else{var W=T.return;W!==null?(Ie=W,Do(W)):Ie=null}break t}}Ye=0,An=null,Li(e,n,h,5);break;case 6:Ye=0,An=null,Li(e,n,h,6);break;case 8:Td(),yt=6;break e;default:throw Error(s(462))}}m8();break}catch(le){Up(e,le)}while(!0);return La=Lr=null,O.H=l,O.A=d,Fe=a,Ie!==null?0:(et=null,ze=0,Jl(),yt)}function m8(){for(;Ie!==null&&!Ht();)$p(Ie)}function $p(e){var n=dp(e.alternate,e,$a);e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function Bp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=ip(a,n,n.pendingProps,n.type,void 0,ze);break;case 11:n=ip(a,n,n.pendingProps,n.type.render,n.ref,ze);break;case 5:qu(n);default:hp(a,n),n=Ie=Pm(n,$a),n=dp(a,n,$a)}e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function Li(e,n,a,l){La=Lr=null,qu(n),_i=null,bs=0;var d=n.return;try{if(n8(e,d,n,a,ze)){yt=1,So(e,Bn(a,e.current)),Ie=null;return}}catch(h){if(d!==null)throw Ie=d,h;yt=1,So(e,Bn(a,e.current)),Ie=null;return}n.flags&32768?($e||l===1?e=!0:Ti||(ze&536870912)!==0?e=!1:(sr=e=!0,(l===2||l===9||l===3||l===6)&&(l=wn.current,l!==null&&l.tag===13&&(l.flags|=16384))),qp(n,e)):Do(n)}function Do(e){var n=e;do{if((n.flags&32768)!==0){qp(n,sr);return}e=n.return;var a=i8(n.alternate,n,$a);if(a!==null){Ie=a;return}if(n=n.sibling,n!==null){Ie=n;return}Ie=n=e}while(n!==null);yt===0&&(yt=5)}function qp(e,n){do{var a=s8(e.alternate,e);if(a!==null){a.flags&=32767,Ie=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=a}while(e!==null);yt=6,Ie=null}function Fp(e,n,a,l,d,h,x,T,H){e.cancelPendingCommit=null;do ko();while(Ot!==0);if((Fe&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(h=n.lanes|n.childLanes,h|=gu,Wi(e,a,h,x,T,H),e===et&&(Ie=et=null,ze=0),Ci=n,cr=e,Ba=a,wd=h,jd=d,Mp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,y8(_n,function(){return Qp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,d=Y.p,Y.p=2,x=Fe,Fe|=4;try{l8(e,n,a)}finally{Fe=x,Y.p=d,O.T=l}}Ot=1,Vp(),Zp(),Gp()}}function Vp(){if(Ot===1){Ot=0;var e=cr,n=Ci,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var d=Fe;Fe|=4;try{jp(n,e);var h=Pd,x=Lm(e.containerInfo),T=h.focusedElem,H=h.selectionRange;if(x!==T&&T&&T.ownerDocument&&Rm(T.ownerDocument.documentElement,T)){if(H!==null&&du(T)){var W=H.start,le=H.end;if(le===void 0&&(le=W),"selectionStart"in T)T.selectionStart=W,T.selectionEnd=Math.min(le,T.value.length);else{var ce=T.ownerDocument||document,te=ce&&ce.defaultView||window;if(te.getSelection){var ae=te.getSelection(),ye=T.textContent.length,Te=Math.min(H.start,ye),Je=H.end===void 0?Te:Math.min(H.end,ye);!ae.extend&&Te>Je&&(x=Je,Je=Te,Te=x);var G=Cm(T,Te),$=Cm(T,Je);if(G&&$&&(ae.rangeCount!==1||ae.anchorNode!==G.node||ae.anchorOffset!==G.offset||ae.focusNode!==$.node||ae.focusOffset!==$.offset)){var J=ce.createRange();J.setStart(G.node,G.offset),ae.removeAllRanges(),Te>Je?(ae.addRange(J),ae.extend($.node,$.offset)):(J.setEnd($.node,$.offset),ae.addRange(J))}}}}for(ce=[],ae=T;ae=ae.parentNode;)ae.nodeType===1&&ce.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ce.length;T++){var oe=ce[T];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Go=!!zd,Pd=zd=null}finally{Fe=d,Y.p=l,O.T=a}}e.current=n,Ot=2}}function Zp(){if(Ot===2){Ot=0;var e=cr,n=Ci,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var d=Fe;Fe|=4;try{_p(e,n.alternate,n)}finally{Fe=d,Y.p=l,O.T=a}}Ot=3}}function Gp(){if(Ot===4||Ot===3){Ot=0,Dn();var e=cr,n=Ci,a=Ba,l=Mp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ot=5:(Ot=0,Ci=cr=null,Yp(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(or=null),aa(a),n=n.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Gt,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=O.T,d=Y.p,Y.p=2,O.T=null;try{for(var h=e.onRecoverableError,x=0;x<l.length;x++){var T=l[x];h(T.value,{componentStack:T.stack})}}finally{O.T=n,Y.p=d}}(Ba&3)!==0&&ko(),_a(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===Ad?Is++:(Is=0,Ad=e):Is=0,Us(0)}}function Yp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,vs(n)))}function ko(){return Vp(),Zp(),Gp(),Qp()}function Qp(){if(Ot!==5)return!1;var e=cr,n=wd;wd=0;var a=aa(Ba),l=O.T,d=Y.p;try{Y.p=32>a?32:a,O.T=null,a=jd,jd=null;var h=cr,x=Ba;if(Ot=0,Ci=cr=null,Ba=0,(Fe&6)!==0)throw Error(s(331));var T=Fe;if(Fe|=4,Rp(h.current),Tp(h,h.current,x,a),Fe=T,Us(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Gt,h)}catch{}return!0}finally{Y.p=d,O.T=l,Yp(e,n)}}function Kp(e,n,a){n=Bn(a,n),n=rd(e.stateNode,n,2),e=nr(e,n,2),e!==null&&(Ya(e,2),_a(e))}function Qe(e,n,a){if(e.tag===3)Kp(e,e,a);else for(;n!==null;){if(n.tag===3){Kp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(or===null||!or.has(l))){e=Bn(a,e),a=X0(2),l=nr(n,a,2),l!==null&&(J0(a,l,n,e),Ya(l,2),_a(l));break}}n=n.return}}function Cd(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new u8;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(a)||(Sd=!0,d.add(a),e=p8.bind(null,e,n,a),n.then(e,e))}function p8(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,et===e&&(ze&a)===a&&(yt===4||yt===3&&(ze&62914560)===ze&&300>pt()-Co?(Fe&2)===0&&Ri(e,0):xd|=a,Ni===ze&&(Ni=0)),_a(e)}function Xp(e,n){n===0&&(n=na()),e=Nr(e,n),e!==null&&(Ya(e,n),_a(e))}function g8(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Xp(e,a)}function v8(e,n){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Xp(e,a)}function y8(e,n){return st(e,n)}var Io=null,Oi=null,Rd=!1,Uo=!1,Ld=!1,dr=0;function _a(e){e!==Oi&&e.next===null&&(Oi===null?Io=Oi=e:Oi=Oi.next=e),Uo=!0,Rd||(Rd=!0,_8())}function Us(e,n){if(!Ld&&Uo){Ld=!0;do for(var a=!1,l=Io;l!==null;){if(e!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var x=l.suspendedLanes,T=l.pingedLanes;h=(1<<31-gt(42|e)+1)-1,h&=d&~(x&~T),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,t1(l,h))}else h=ze,h=Ga(l,l===et?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||pa(l,h)||(a=!0,t1(l,h));l=l.next}while(a);Ld=!1}}function b8(){Jp()}function Jp(){Uo=Rd=!1;var e=0;dr!==0&&R8()&&(e=dr);for(var n=pt(),a=null,l=Io;l!==null;){var d=l.next,h=Wp(l,n);h===0?(l.next=null,a===null?Io=d:a.next=d,d===null&&(Oi=a)):(a=l,(e!==0||(h&3)!==0)&&(Uo=!0)),l=d}Ot!==0&&Ot!==5||Us(e),dr!==0&&(dr=0)}function Wp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-gt(h),T=1<<x,H=d[x];H===-1?((T&a)===0||(T&l)!==0)&&(d[x]=lt(T,n)):H<=n&&(e.expiredLanes|=T),h&=~T}if(n=et,a=ze,a=Ga(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&mt(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||pa(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&mt(l),aa(a)){case 2:case 8:a=xt;break;case 32:a=_n;break;case 268435456:a=Sn;break;default:a=_n}return l=e1.bind(null,e),a=st(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&mt(l),e.callbackPriority=2,e.callbackNode=null,2}function e1(e,n){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ko()&&e.callbackNode!==a)return null;var l=ze;return l=Ga(e,e===et?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(kp(e,l,n),Wp(e,pt()),e.callbackNode!=null&&e.callbackNode===a?e1.bind(null,e):null)}function t1(e,n){if(ko())return null;kp(e,n,!0)}function _8(){O8(function(){(Fe&6)!==0?st(bn,b8):Jp()})}function Od(){if(dr===0){var e=vi;e===0&&(e=ta,ta<<=1,(ta&261888)===0&&(ta=256)),dr=e}return dr}function n1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fl(""+e)}function a1(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function S8(e,n,a,l,d){if(n==="submit"&&a&&a.stateNode===d){var h=n1((d[ot]||null).action),x=l.submitter;x&&(n=(n=x[ot]||null)?n1(n.formAction):x.getAttribute("formAction"),n!==null&&(h=n,x=null));var T=new Yl("action","action",null,l,d);e.push({event:T,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(dr!==0){var H=x?a1(d,x):new FormData(d);Ju(a,{pending:!0,data:H,method:d.method,action:h},null,H)}}else typeof h=="function"&&(T.preventDefault(),H=x?a1(d,x):new FormData(d),Ju(a,{pending:!0,data:H,method:d.method,action:h},h,H))},currentTarget:d}]})}}for(var Md=0;Md<pu.length;Md++){var Dd=pu[Md],x8=Dd.toLowerCase(),E8=Dd[0].toUpperCase()+Dd.slice(1);ra(x8,"on"+E8)}ra(Dm,"onAnimationEnd"),ra(km,"onAnimationIteration"),ra(Im,"onAnimationStart"),ra("dblclick","onDoubleClick"),ra("focusin","onFocus"),ra("focusout","onBlur"),ra(zb,"onTransitionRun"),ra(Pb,"onTransitionStart"),ra($b,"onTransitionCancel"),ra(Um,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hs="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(" "),w8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hs));function r1(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],d=l.event;l=l.listeners;e:{var h=void 0;if(n)for(var x=l.length-1;0<=x;x--){var T=l[x],H=T.instance,W=T.currentTarget;if(T=T.listener,H!==h&&d.isPropagationStopped())break e;h=T,d.currentTarget=W;try{h(d)}catch(le){Xl(le)}d.currentTarget=null,h=H}else for(x=0;x<l.length;x++){if(T=l[x],H=T.instance,W=T.currentTarget,T=T.listener,H!==h&&d.isPropagationStopped())break e;h=T,d.currentTarget=W;try{h(d)}catch(le){Xl(le)}d.currentTarget=null,h=H}}}}function Ue(e,n){var a=n[ai];a===void 0&&(a=n[ai]=new Set);var l=e+"__bubble";a.has(l)||(i1(n,e,2,!1),a.add(l))}function kd(e,n,a){var l=0;n&&(l|=4),i1(a,e,l,n)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function Id(e){if(!e[Ho]){e[Ho]=!0,zt.forEach(function(a){a!=="selectionchange"&&(w8.has(a)||kd(a,!1,e),kd(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ho]||(n[Ho]=!0,kd("selectionchange",!1,n))}}function i1(e,n,a,l){switch(D1(n)){case 2:var d=J8;break;case 8:d=W8;break;default:d=Xd}a=d.bind(null,n,a,e),d=void 0,!nu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?e.addEventListener(n,a,{capture:!0,passive:d}):e.addEventListener(n,a,!0):d!==void 0?e.addEventListener(n,a,{passive:d}):e.addEventListener(n,a,!1)}function Ud(e,n,a,l,d){var h=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var T=l.stateNode.containerInfo;if(T===d)break;if(x===4)for(x=l.return;x!==null;){var H=x.tag;if((H===3||H===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;T!==null;){if(x=ue(T),x===null)return;if(H=x.tag,H===5||H===6||H===26||H===27){l=h=x;continue e}T=T.parentNode}}l=l.return}um(function(){var W=h,le=eu(a),ce=[];e:{var te=Hm.get(e);if(te!==void 0){var ae=Yl,ye=e;switch(e){case"keypress":if(Zl(a)===0)break e;case"keydown":case"keyup":ae=vb;break;case"focusin":ye="focus",ae=su;break;case"focusout":ye="blur",ae=su;break;case"beforeblur":case"afterblur":ae=su;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=hm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=ib;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=_b;break;case Dm:case km:case Im:ae=ob;break;case Um:ae=xb;break;case"scroll":case"scrollend":ae=ab;break;case"wheel":ae=wb;break;case"copy":case"cut":case"paste":ae=ub;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=pm;break;case"toggle":case"beforetoggle":ae=Ab}var Te=(n&4)!==0,Je=!Te&&(e==="scroll"||e==="scrollend"),G=Te?te!==null?te+"Capture":null:te;Te=[];for(var $=W,J;$!==null;){var oe=$;if(J=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||J===null||G===null||(oe=ss($,G),oe!=null&&Te.push(zs($,oe,J))),Je)break;$=$.return}0<Te.length&&(te=new ae(te,ye,null,a,le),ce.push({event:te,listeners:Te}))}}if((n&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",ae=e==="mouseout"||e==="pointerout",te&&a!==Wc&&(ye=a.relatedTarget||a.fromElement)&&(ue(ye)||ye[ja]))break e;if((ae||te)&&(te=le.window===le?le:(te=le.ownerDocument)?te.defaultView||te.parentWindow:window,ae?(ye=a.relatedTarget||a.toElement,ae=W,ye=ye?ue(ye):null,ye!==null&&(Je=u(ye),Te=ye.tag,ye!==Je||Te!==5&&Te!==27&&Te!==6)&&(ye=null)):(ae=null,ye=W),ae!==ye)){if(Te=hm,oe="onMouseLeave",G="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(Te=pm,oe="onPointerLeave",G="onPointerEnter",$="pointer"),Je=ae==null?te:Ze(ae),J=ye==null?te:Ze(ye),te=new Te(oe,$+"leave",ae,a,le),te.target=Je,te.relatedTarget=J,oe=null,ue(le)===W&&(Te=new Te(G,$+"enter",ye,a,le),Te.target=J,Te.relatedTarget=Je,oe=Te),Je=oe,ae&&ye)t:{for(Te=j8,G=ae,$=ye,J=0,oe=G;oe;oe=Te(oe))J++;oe=0;for(var we=$;we;we=Te(we))oe++;for(;0<J-oe;)G=Te(G),J--;for(;0<oe-J;)$=Te($),oe--;for(;J--;){if(G===$||$!==null&&G===$.alternate){Te=G;break t}G=Te(G),$=Te($)}Te=null}else Te=null;ae!==null&&s1(ce,te,ae,Te,!1),ye!==null&&Je!==null&&s1(ce,Je,ye,Te,!0)}}e:{if(te=W?Ze(W):window,ae=te.nodeName&&te.nodeName.toLowerCase(),ae==="select"||ae==="input"&&te.type==="file")var Be=Em;else if(Sm(te))if(wm)Be=Ib;else{Be=Db;var Se=Mb}else ae=te.nodeName,!ae||ae.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?W&&Jc(W.elementType)&&(Be=Em):Be=kb;if(Be&&(Be=Be(e,W))){xm(ce,Be,a,le);break e}Se&&Se(e,te,W),e==="focusout"&&W&&te.type==="number"&&W.memoizedProps.value!=null&&Xc(te,"number",te.value)}switch(Se=W?Ze(W):window,e){case"focusin":(Sm(Se)||Se.contentEditable==="true")&&(ci=Se,fu=W,ms=null);break;case"focusout":ms=fu=ci=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Om(ce,a,le);break;case"selectionchange":if(Hb)break;case"keydown":case"keyup":Om(ce,a,le)}var Le;if(ou)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else oi?bm(e,a)&&(Pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Pe="onCompositionStart");Pe&&(gm&&a.locale!=="ko"&&(oi||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&oi&&(Le=dm()):(Qa=le,au="value"in Qa?Qa.value:Qa.textContent,oi=!0)),Se=zo(W,Pe),0<Se.length&&(Pe=new mm(Pe,e,null,a,le),ce.push({event:Pe,listeners:Se}),Le?Pe.data=Le:(Le=_m(a),Le!==null&&(Pe.data=Le)))),(Le=Nb?Cb(e,a):Rb(e,a))&&(Pe=zo(W,"onBeforeInput"),0<Pe.length&&(Se=new mm("onBeforeInput","beforeinput",null,a,le),ce.push({event:Se,listeners:Pe}),Se.data=Le)),S8(ce,e,W,a,le)}r1(ce,n)})}function zs(e,n,a){return{instance:e,listener:n,currentTarget:a}}function zo(e,n){for(var a=n+"Capture",l=[];e!==null;){var d=e,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=ss(e,a),d!=null&&l.unshift(zs(e,d,h)),d=ss(e,n),d!=null&&l.push(zs(e,d,h))),e.tag===3)return l;e=e.return}return[]}function j8(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function s1(e,n,a,l,d){for(var h=n._reactName,x=[];a!==null&&a!==l;){var T=a,H=T.alternate,W=T.stateNode;if(T=T.tag,H!==null&&H===l)break;T!==5&&T!==26&&T!==27||W===null||(H=W,d?(W=ss(a,h),W!=null&&x.unshift(zs(a,W,H))):d||(W=ss(a,h),W!=null&&x.push(zs(a,W,H)))),a=a.return}x.length!==0&&e.push({event:n,listeners:x})}var A8=/\r\n?/g,T8=/\u0000|\uFFFD/g;function l1(e){return(typeof e=="string"?e:""+e).replace(A8,` 50`).replace(T8,"")}function o1(e,n){return n=l1(n),l1(e)===n}function Xe(e,n,a,l,d,h){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||ii(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&ii(e,""+l);break;case"className":Bl(e,"class",l);break;case"tabIndex":Bl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bl(e,a,l);break;case"style":om(e,l,h);break;case"data":if(n!=="object"){Bl(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fl(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(a==="formAction"?(n!=="input"&&Xe(e,n,"name",d.name,d,null),Xe(e,n,"formEncType",d.formEncType,d,null),Xe(e,n,"formMethod",d.formMethod,d,null),Xe(e,n,"formTarget",d.formTarget,d,null)):(Xe(e,n,"encType",d.encType,d,null),Xe(e,n,"method",d.method,d,null),Xe(e,n,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ta);break;case"onScroll":l!=null&&Ue("scroll",e);break;case"onScrollEnd":l!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Fl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),$l(e,"popover",l);break;case"xlinkActuate":Aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Aa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Aa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Aa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Aa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$l(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=tb.get(a)||a,$l(e,a,l))}}function Hd(e,n,a,l,d,h){switch(a){case"style":om(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?ii(e,l):(typeof l=="number"||typeof l=="bigint")&&ii(e,""+l);break;case"onScroll":l!=null&&Ue("scroll",e);break;case"onScrollEnd":l!=null&&Ue("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ta);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),h=e[ot]||null,h=h!=null?h[a]:null,typeof h=="function"&&e.removeEventListener(n,h,d),typeof l=="function")){typeof h!="function"&&h!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,d);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):$l(e,a,l)}}}function qt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var l=!1,d=!1,h;for(h in a)if(a.hasOwnProperty(h)){var x=a[h];if(x!=null)switch(h){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Xe(e,n,h,x,a,null)}}d&&Xe(e,n,"srcSet",a.srcSet,a,null),l&&Xe(e,n,"src",a.src,a,null);return;case"input":Ue("invalid",e);var T=h=x=d=null,H=null,W=null;for(l in a)if(a.hasOwnProperty(l)){var le=a[l];if(le!=null)switch(l){case"name":d=le;break;case"type":x=le;break;case"checked":H=le;break;case"defaultChecked":W=le;break;case"value":h=le;break;case"defaultValue":T=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,n));break;default:Xe(e,n,l,le,a,null)}}rm(e,h,T,H,W,x,d,!1);return;case"select":Ue("invalid",e),l=x=h=null;for(d in a)if(a.hasOwnProperty(d)&&(T=a[d],T!=null))switch(d){case"value":h=T;break;case"defaultValue":x=T;break;case"multiple":l=T;default:Xe(e,n,d,T,a,null)}n=h,a=x,e.multiple=!!l,n!=null?ri(e,!!l,n,!1):a!=null&&ri(e,!!l,a,!0);return;case"textarea":Ue("invalid",e),h=d=l=null;for(x in a)if(a.hasOwnProperty(x)&&(T=a[x],T!=null))switch(x){case"value":l=T;break;case"defaultValue":d=T;break;case"children":h=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:Xe(e,n,x,T,a,null)}sm(e,l,d,h);return;case"option":for(H in a)if(a.hasOwnProperty(H)&&(l=a[H],l!=null))switch(H){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Xe(e,n,H,l,a,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(l=0;l<Hs.length;l++)Ue(Hs[l],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in a)if(a.hasOwnProperty(W)&&(l=a[W],l!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Xe(e,n,W,l,a,null)}return;default:if(Jc(n)){for(le in a)a.hasOwnProperty(le)&&(l=a[le],l!==void 0&&Hd(e,n,le,l,a,void 0));return}}for(T in a)a.hasOwnProperty(T)&&(l=a[T],l!=null&&Xe(e,n,T,l,a,null))}function N8(e,n,a,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,x=null,T=null,H=null,W=null,le=null;for(ae in a){var ce=a[ae];if(a.hasOwnProperty(ae)&&ce!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":H=ce;default:l.hasOwnProperty(ae)||Xe(e,n,ae,null,l,ce)}}for(var te in l){var ae=l[te];if(ce=a[te],l.hasOwnProperty(te)&&(ae!=null||ce!=null))switch(te){case"type":h=ae;break;case"name":d=ae;break;case"checked":W=ae;break;case"defaultChecked":le=ae;break;case"value":x=ae;break;case"defaultValue":T=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,n));break;default:ae!==ce&&Xe(e,n,te,ae,l,ce)}}Kc(e,x,T,H,W,le,h,d);return;case"select":ae=x=T=te=null;for(h in a)if(H=a[h],a.hasOwnProperty(h)&&H!=null)switch(h){case"value":break;case"multiple":ae=H;default:l.hasOwnProperty(h)||Xe(e,n,h,null,l,H)}for(d in l)if(h=l[d],H=a[d],l.hasOwnProperty(d)&&(h!=null||H!=null))switch(d){case"value":te=h;break;case"defaultValue":T=h;break;case"multiple":x=h;default:h!==H&&Xe(e,n,d,h,l,H)}n=T,a=x,l=ae,te!=null?ri(e,!!a,te,!1):!!l!=!!a&&(n!=null?ri(e,!!a,n,!0):ri(e,!!a,a?[]:"",!1));return;case"textarea":ae=te=null;for(T in a)if(d=a[T],a.hasOwnProperty(T)&&d!=null&&!l.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Xe(e,n,T,null,l,d)}for(x in l)if(d=l[x],h=a[x],l.hasOwnProperty(x)&&(d!=null||h!=null))switch(x){case"value":te=d;break;case"defaultValue":ae=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==h&&Xe(e,n,x,d,l,h)}im(e,te,ae);return;case"option":for(var ye in a)if(te=a[ye],a.hasOwnProperty(ye)&&te!=null&&!l.hasOwnProperty(ye))switch(ye){case"selected":e.selected=!1;break;default:Xe(e,n,ye,null,l,te)}for(H in l)if(te=l[H],ae=a[H],l.hasOwnProperty(H)&&te!==ae&&(te!=null||ae!=null))switch(H){case"selected":e.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:Xe(e,n,H,te,l,ae)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in a)te=a[Te],a.hasOwnProperty(Te)&&te!=null&&!l.hasOwnProperty(Te)&&Xe(e,n,Te,null,l,te);for(W in l)if(te=l[W],ae=a[W],l.hasOwnProperty(W)&&te!==ae&&(te!=null||ae!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(s(137,n));break;default:Xe(e,n,W,te,l,ae)}return;default:if(Jc(n)){for(var Je in a)te=a[Je],a.hasOwnProperty(Je)&&te!==void 0&&!l.hasOwnProperty(Je)&&Hd(e,n,Je,void 0,l,te);for(le in l)te=l[le],ae=a[le],!l.hasOwnProperty(le)||te===ae||te===void 0&&ae===void 0||Hd(e,n,le,te,l,ae);return}}for(var G in a)te=a[G],a.hasOwnProperty(G)&&te!=null&&!l.hasOwnProperty(G)&&Xe(e,n,G,null,l,te);for(ce in l)te=l[ce],ae=a[ce],!l.hasOwnProperty(ce)||te===ae||te==null&&ae==null||Xe(e,n,ce,te,l,ae)}function c1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C8(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var d=a[l],h=d.transferSize,x=d.initiatorType,T=d.duration;if(h&&T&&c1(x)){for(x=0,T=d.responseEnd,l+=1;l<a.length;l++){var H=a[l],W=H.startTime;if(W>T)break;var le=H.transferSize,ce=H.initiatorType;le&&c1(ce)&&(H=H.responseEnd,x+=le*(H<T?1:(T-W)/(H-W)))}if(--l,n+=8*(h+x)/(d.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var zd=null,Pd=null;function Po(e){return e.nodeType===9?e:e.ownerDocument}function u1(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d1(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function $d(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Bd=null;function R8(){var e=window.event;return e&&e.type==="popstate"?e===Bd?!1:(Bd=e,!0):(Bd=null,!1)}var f1=typeof setTimeout=="function"?setTimeout:void 0,L8=typeof clearTimeout=="function"?clearTimeout:void 0,h1=typeof Promise=="function"?Promise:void 0,O8=typeof queueMicrotask=="function"?queueMicrotask:typeof h1<"u"?function(e){return h1.resolve(null).then(e).catch(M8)}:f1;function M8(e){setTimeout(function(){throw e})}function fr(e){return e==="head"}function m1(e,n){var a=n,l=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(d),Ii(n);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ps(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ps(a);for(var h=a.firstChild;h;){var x=h.nextSibling,T=h.nodeName;h[_e]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=x}}else a==="body"&&Ps(e.ownerDocument.body);a=d}while(a);Ii(n)}function p1(e,n){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function qd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":qd(a),P(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function D8(e,n,a,l){for(;
vendor: 10,811 bytes, line 50
50e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[_e])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function k8(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Gn(e.nextSibling),e===null))return null;return e}function g1(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gn(e.nextSibling),e===null))return null;return e}function Fd(e){return e.data==="$?"||e.data==="$~"}function Vd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I8(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Zd=null;function v1(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return Gn(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function y1(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function b1(e,n,a){switch(n=Po(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ps(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);P(e)}var Yn=new Map,_1=new Set;function $o(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qa=Y.d;Y.d={f:U8,r:H8,D:z8,C:P8,L:$8,m:B8,X:F8,S:q8,M:V8};function U8(){var e=qa.f(),n=Oo();return e||n}function H8(e){var n=pe(e);n!==null&&n.tag===5&&n.type==="form"?U0(n):qa.r(e)}var Mi=typeof document>"u"?null:document;function S1(e,n,a){var l=Mi;if(l&&typeof n=="string"&&n){var d=Pn(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),_1.has(d)||(_1.add(d),e={rel:e,crossOrigin:a,href:n},l.querySelector(d)===null&&(n=l.createElement("link"),qt(n,"link",e),Me(n),l.head.appendChild(n)))}}function z8(e){qa.D(e),S1("dns-prefetch",e,null)}function P8(e,n){qa.C(e,n),S1("preconnect",e,n)}function $8(e,n,a){qa.L(e,n,a);var l=Mi;if(l&&e&&n){var d='link[rel="preload"][as="'+Pn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Pn(a.imageSizes)+'"]')):d+='[href="'+Pn(e)+'"]';var h=d;switch(n){case"style":h=Di(e);break;case"script":h=ki(e)}Yn.has(h)||(e=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),Yn.set(h,e),l.querySelector(d)!==null||n==="style"&&l.querySelector($s(h))||n==="script"&&l.querySelector(Bs(h))||(n=l.createElement("link"),qt(n,"link",e),Me(n),l.head.appendChild(n)))}}function B8(e,n){qa.m(e,n);var a=Mi;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Pn(l)+'"][href="'+Pn(e)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ki(e)}if(!Yn.has(h)&&(e=y({rel:"modulepreload",href:e},n),Yn.set(h,e),a.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bs(h)))return}l=a.createElement("link"),qt(l,"link",e),Me(l),a.head.appendChild(l)}}}function q8(e,n,a){qa.S(e,n,a);var l=Mi;if(l&&e){var d=ft(l).hoistableStyles,h=Di(e);n=n||"default";var x=d.get(h);if(!x){var T={loading:0,preload:null};if(x=l.querySelector($s(h)))T.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},a),(a=Yn.get(h))&&Gd(e,a);var H=x=l.createElement("link");Me(H),qt(H,"link",e),H._p=new Promise(function(W,le){H.onload=W,H.onerror=le}),H.addEventListener("load",function(){T.loading|=1}),H.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Bo(x,n,l)}x={type:"stylesheet",instance:x,count:1,state:T},d.set(h,x)}}}function F8(e,n){qa.X(e,n);var a=Mi;if(a&&e){var l=ft(a).hoistableScripts,d=ki(e),h=l.get(d);h||(h=a.querySelector(Bs(d)),h||(e=y({src:e,async:!0},n),(n=Yn.get(d))&&Yd(e,n),h=a.createElement("script"),Me(h),qt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function V8(e,n){qa.M(e,n);var a=Mi;if(a&&e){var l=ft(a).hoistableScripts,d=ki(e),h=l.get(d);h||(h=a.querySelector(Bs(d)),h||(e=y({src:e,async:!0,type:"module"},n),(n=Yn.get(d))&&Yd(e,n),h=a.createElement("script"),Me(h),qt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function x1(e,n,a,l){var d=(d=de.current)?$o(d):null;if(!d)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Di(a.href),a=ft(d).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Di(a.href);var h=ft(d).hoistableStyles,x=h.get(e);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=d.querySelector($s(e)))&&!h._p&&(x.instance=h,x.state.loading=5),Yn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yn.set(e,a),h||Z8(d,e,a,x.state))),n&&l===null)throw Error(s(528,""));return x}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ki(a),a=ft(d).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Di(e){return'href="'+Pn(e)+'"'}function $s(e){return'link[rel="stylesheet"]['+e+"]"}function E1(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Z8(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),qt(n,"link",a),Me(n),e.head.appendChild(n))}function ki(e){return'[src="'+Pn(e)+'"]'}function Bs(e){return"script[async]"+e}function w1(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+Pn(a.href)+'"]');if(l)return n.instance=l,Me(l),l;var d=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Me(l),qt(l,"style",d),Bo(l,a.precedence,e),n.instance=l;case"stylesheet":d=Di(a.href);var h=e.querySelector($s(d));if(h)return n.state.loading|=4,n.instance=h,Me(h),h;l=E1(a),(d=Yn.get(d))&&Gd(l,d),h=(e.ownerDocument||e).createElement("link"),Me(h);var x=h;return x._p=new Promise(function(T,H){x.onload=T,x.onerror=H}),qt(h,"link",l),n.state.loading|=4,Bo(h,a.precedence,e),n.instance=h;case"script":return h=ki(a.src),(d=e.querySelector(Bs(h)))?(n.instance=d,Me(d),d):(l=a,(d=Yn.get(h))&&(l=y({},a),Yd(l,d)),e=e.ownerDocument||e,d=e.createElement("script"),Me(d),qt(d,"link",l),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,Bo(l,a.precedence,e));return n.instance}function Bo(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,x=0;x<l.length;x++){var T=l[x];if(T.dataset.precedence===n)h=T;else if(h!==d)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Gd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Yd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var qo=null;function j1(e,n,a){if(qo===null){var l=new Map,d=qo=new Map;d.set(a,l)}else d=qo,l=d.get(a),l||(l=new Map,d.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var h=a[d];if(!(h[_e]||h[jt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(n)||"";x=e+x;var T=l.get(x);T?T.push(h):l.set(x,[h])}}return l}function A1(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function G8(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function T1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y8(e,n,a,l){if(a.type==="stylesheet"&&(typeof l.media!="str
50ing"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Di(l.href),h=n.querySelector($s(d));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Fo.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=h,Me(h);return}h=n.ownerDocument||n,l=E1(l),(d=Yn.get(d))&&Gd(l,d),h=h.createElement("link"),Me(h);var x=h;x._p=new Promise(function(T,H){x.onload=T,x.onerror=H}),qt(h,"link",l),a.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Fo.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var Qd=0;function Q8(e,n){return e.stylesheets&&e.count===0&&Zo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Zo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Qd===0&&(Qd=62500*C8());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Qd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function Fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vo=null;function Zo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vo=new Map,n.forEac
vendor: 9,858 bytes, line 50
50h(K8,e),Vo=null,Fo.call(e))}function K8(e,n){if(!(n.state.loading&4)){var a=Vo.get(e);if(a)var l=a.get(null);else{a=new Map,Vo.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var x=d[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),l=x)}l&&a.set(null,l)}d=n.instance,x=d.getAttribute("data-precedence"),h=a.get(x)||l,h===l&&a.set(null,d),a.set(x,d),this.count++,l=Fo.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),h?h.parentNode.insertBefore(d,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var qs={$$typeof:M,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function X8(e,n,a,l,d,h,x,T,H){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ji(0),this.hiddenUpdates=Ji(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function N1(e,n,a,l,d,h,x,T,H,W,le,ce){return e=new X8(e,n,a,x,H,W,le,ce,T),n=1,h===!0&&(n|=24),h=En(3,null,null,n),e.current=h,h.stateNode=e,n=Nu(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:l,isDehydrated:a,cache:n},Ou(h),e}function C1(e){return e?(e=fi,e):fi}function R1(e,n,a,l,d,h){d=C1(d),l.context===null?l.context=d:l.pendingContext=d,l=tr(n),l.payload={element:a},h=h===void 0?null:h,h!==null&&(l.callback=h),a=nr(e,l,n),a!==null&&(mn(a,e,n),Ss(a,e,n))}function L1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Kd(e,n){L1(e,n),(e=e.alternate)&&L1(e,n)}function O1(e){if(e.tag===13||e.tag===31){var n=Nr(e,67108864);n!==null&&mn(n,e,67108864),Kd(e,67108864)}}function M1(e){if(e.tag===13||e.tag===31){var n=Nn();n=ln(n);var a=Nr(e,n);a!==null&&mn(a,e,n),Kd(e,n)}}var Go=!0;function J8(e,n,a,l){var d=O.T;O.T=null;var h=Y.p;try{Y.p=2,Xd(e,n,a,l)}finally{Y.p=h,O.T=d}}function W8(e,n,a,l){var d=O.T;O.T=null;var h=Y.p;try{Y.p=8,Xd(e,n,a,l)}finally{Y.p=h,O.T=d}}function Xd(e,n,a,l){if(Go){var d=Jd(l);if(d===null)Ud(e,n,l,Yo,a),k1(e,l);else if(t6(d,e,n,a,l))l.stopPropagation();else if(k1(e,l),n&4&&-1<e6.indexOf(e)){for(;d!==null;){var h=pe(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=Ft(h.pendingLanes);if(x!==0){var T=h;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var H=1<<31-gt(x);T.entanglements[1]|=H,x&=~H}_a(h),(Fe&6)===0&&(Ro=pt()+500,Us(0))}}break;case 31:case 13:T=Nr(h,2),T!==null&&mn(T,h,2),Oo(),Kd(h,2)}if(h=Jd(l),h===null&&Ud(e,n,l,Yo,a),h===d)break;d=h}d!==null&&l.stopPropagation()}else Ud(e,n,l,null,a)}}function Jd(e){return e=eu(e),Wd(e)}var Yo=null;function Wd(e){if(Yo=null,e=ue(e),e!==null){var n=u(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=f(n),e!==null)return e;e=null}else if(a===31){if(e=p(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Yo=e,null}function D1(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kn()){case bn:return 2;case xt:return 8;case _n:case ma:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var ef=!1,hr=null,mr=null,pr=null,Fs=new Map,Vs=new Map,gr=[],e6="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".split(" ");function k1(e,n){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":Fs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(n.pointerId)}}function Zs(e,n,a,l,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:h,targetContainers:[d]},n!==null&&(n=pe(n),n!==null&&O1(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function t6(e,n,a,l,d){switch(n){case"focusin":return hr=Zs(hr,e,n,a,l,d),!0;case"dragenter":return mr=Zs(mr,e,n,a,l,d),!0;case"mouseover":return pr=Zs(pr,e,n,a,l,d),!0;case"pointerover":var h=d.pointerId;return Fs.set(h,Zs(Fs.get(h)||null,e,n,a,l,d)),!0;case"gotpointercapture":return h=d.pointerId,Vs.set(h,Zs(Vs.get(h)||null,e,n,a,l,d)),!0}return!1}function I1(e){var n=ue(e.target);if(n!==null){var a=u(n);if(a!==null){if(n=a.tag,n===13){if(n=f(a),n!==null){e.blockedOn=n,as(e.priority,function(){M1(a)});return}}else if(n===31){if(n=p(a),n!==null){e.blockedOn=n,as(e.priority,function(){M1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Jd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Wc=l,a.target.dispatchEvent(l),Wc=null}else return n=pe(a),n!==null&&O1(n),e.blockedOn=a,!1;n.shift()}return!0}function U1(e,n,a){Qo(e)&&a.delete(n)}function n6(){ef=!1,hr!==null&&Qo(hr)&&(hr=null),mr!==null&&Qo(mr)&&(mr=null),pr!==null&&Qo(pr)&&(pr=null),Fs.forEach(U1),Vs.forEach(U1)}function Ko(e,n){e.blockedOn===n&&(e.blockedOn=null,ef||(ef=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n6)))}var Xo=null;function H1(e){Xo!==e&&(Xo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Xo===e&&(Xo=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],d=e[n+2];if(typeof l!="function"){if(Wd(l||a)===null)continue;break}var h=pe(a);h!==null&&(e.splice(n,3),n-=3,Ju(h,{pending:!0,data:d,method:a.method,action:l},l,d))}}))}function Ii(e){function n(H){return Ko(H,e)}hr!==null&&Ko(hr,e),mr!==null&&Ko(mr,e),pr!==null&&Ko(pr,e),Fs.forEach(n),Vs.forEach(n);for(var a=0;a<gr.length;a++){var l=gr[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<gr.length&&(a=gr[0],a.blockedOn===null);)I1(a),a.blockedOn===null&&gr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var d=a[l],h=a[l+1],x=d[ot]||null;if(typeof h=="function")x||H1(a);else if(x){var T=null;if(h&&h.hasAttribute("formAction")){if(d=h,x=h[ot]||null)T=x.formAction;else if(Wd(d)!==null)continue}else T=x.action;typeof T=="function"?a[l+1]=T:(a.splice(l,3),l-=3),H1(a)}}}function z1(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(x){return d=x})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function tf(e){this._internalRoot=e}Jo.prototype.render=tf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=Nn();R1(a,l,e,n,null,null)},Jo.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;R1(e.current,2,null,e,null,null),Oo(),n[ja]=null}};function Jo(e){this._internalRoot=e}Jo.prototype.unstable_scheduleHydration=function(e){if(e){var n=ns();e={blockedOn:null,target:e,priority:n};for(var a=0;a<gr.length&&n!==0&&n<gr[a].priority;a++);gr.splice(a,0,e),a===0&&I1(e)}};var P1=r.version;if(P1!=="19.2.0")throw Error(s(527,P1,"19.2.0"));Y.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var a6={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.0"};
50if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wo.isDisabled&&Wo.supportsFiber)try{Gt=Wo.inject(a6),Et=Wo}catch{}}return Ys.createRoot=function(e,n){if(!c(e))throw Error(s(299));var a=!1,l="",d=G0,h=Y0,x=Q0;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=N1(e,1,!1,null,null,a,l,null,d,h,x,z1),e[ja]=n.current,Id(e),new tf(n)},Ys.hydrateRoot=function(e,n,a){if(!c(e))throw Error(s(299));var l=!1,d="",h=G0,x=Y0,T=Q0,H=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError),a.formState!==void 0&&(H=a.formState)),n=N1(e,1,!0,n,a??null,l,d,H,h,x,T,z1),n.context=C1(null),a=n.current,l=Nn(),l=ln(l),d=tr(l),d.callback=null,nr(a,d,l),a=l,n.current.lanes=a,Ya(n,a),_a(n),e[ja]=n.current,Id(e),new Jo(n)},Ys.version="19.2.0",Ys}var K1;function f6(){if(K1)return af.exports;K1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch{}}return t(),af.exports=d6(),af.exports}var h6=f6();/*! Capacitor: https://capacitorjs.com/ - MIT License */var Fi;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Fi||(Fi={}));class cf extends Error{constructor(r,i,s){super(r),this.message=r,this.code=i,this.data=s}}const m6=t=>{var r,i;return t?.androidBridge?"android":!((i=(r=t?.webkit)===null||r===void 0?void 0:r.messageHandlers)===null||i===void 0)&&i.bridge?"ios":"web"},p6=t=>{const r=t.CapacitorCustomPlatform||null,i=t.Capacitor||{},s=i.Plugins=i.Plugins||{},c=()=>r!==null?r.name:m6(t),u=()=>c()!=="web",f=y=>{const S=g.get(y);return!!(S?.platforms.has(c())||p(y))},p=y=>{var S;return(S=i.PluginHeaders)===null||S===void 0?void 0:S.find(w=>w.name===y)},m=y=>t.console.error(y),g=new Map,v=(y,S={})=>{const w=g.get(y);if(w)return w.proxy;const E=c(),b=p(y);let j;const N=async()=>(!j&&E in S?j=typeof S[E]=="function"?j=await S[E]():j=S[E]:r!==null&&!j&&"web"in S&&(j=typeof S.web=="function"?j=await S.web():j=S.web),j),C=(I,U)=>{var L,B;if(b){const Q=b?.methods.find(K=>U===K.name);if(Q)return Q.rtype==="promise"?K=>i.nativePromise(y,U.toString(),K):(K,D)=>i.nativeCallback(y,U.toString(),K,D);if(I)return(L=I[U])===null||L===void 0?void 0:L.bind(I)}else{if(I)return(B=I[U])===null||B===void 0?void 0:B.bind(I);throw new cf(`"${y}" plugin is not implemented on ${E}`,Fi.Unimplemented)}},M=I=>{let U;const L=(...B)=>{const Q=N().then(K=>{const D=C(K,I);if(D){const q=D(...B);return U=q?.remove,q}else throw new cf(`"${y}.${I}()" is not implemented on ${E}`,Fi.Unimplemented)});return I==="addListener"&&(Q.remove=async()=>U()),Q};return L.toString=()=>`${I.toString()}() { [capacitor code] }`,Object.defineProperty(L,"name",{value:I,writable:!1,configurable:!1}),L},R=M("addListener"),z=M("removeListener"),V=(I,U)=>{const L=R({eventName:I},U),B=async()=>{const K=await L;z({eventName:I,callbackId:K},U)},Q=new Promise(K=>L.then(()=>K({remove:B})));return Q.remove=async()=>{await B()},Q},k=new Proxy({},{get(I,U){switch(U){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return b?V:R;case"removeListener":return z;default:return M(U)}}});return s[y]=k,g.set(y,{name:y,proxy:k,platforms:new Set([...Object.keys(S),...b?[E]:[]])}),k};return i.convertFileSrc||(i.convertFileSrc=y=>y),i.getPlatform=c,i.handleError=m,i.isNativePlatform=u,i.isPluginAvailable=f,i.registerPlugin=v,i.Exception=cf,i.DEBUG=!!i.DEBUG,i.isLoggingEnabled=!!i.isLoggingEnabled,i},g6=t=>t.Capacitor=p6(t),Ge=g6(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),On=Ge.registerPlugin;class Iv{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(r,i){let s=!1;this.listeners[r]||(this.listeners[r]=[],s=!0),this.listeners[r].push(i);const u=this.windowListeners[r];u&&!u.registered&&this.addWindowListener(u),s&&this.sendRetainedArgumentsForEvent(r);const f=async()=>this.removeListener(r,i);return Promise.resolve({remove:f})}async removeAllListeners(){this.listeners={};for(const r in this.windowListeners)this.removeWindowListener(this.windowListeners[r]);this.windowListeners={}}notifyListeners(r,i,s){const c=this.listeners[r];if(!c){if(s){let u=this.retainedEventArguments[r];u||(u=[]),u.push(i),this.retainedEventArguments[r]=u}return}c.forEach(u=>u(i))}hasListeners(r){var i;return!!(!((i=this.listeners[r])===null||i===void 0)&&i.length)}registerWindowListener(r,i){this.windowListeners[i]={registered:!1,windowEventName:r,pluginEventName:i,handler:s=>{this.notifyListeners(i,s)}}}unimplemented(r="not implemented"){return new Ge.Exception(r,Fi.Unimplemented)}unavailable(r="not available"){return new Ge.Exception(r,Fi.Unavailable)}async removeListener(r,i){const s=this.listeners[r];if(!s)return;const c=s.indexOf(i);this.listeners[r].splice(c,1),this.listeners[r].length||this.removeWindowListener(this.windowListeners[r])}addWindowListener(r){window.addEventListener(r.windowEventName,r.handler),r.registered=!0}removeWindowListener(r){r&&(window.removeEventListener(r.windowEventName,r.handler),r.registered=!1)}sendRetainedArgumentsForEvent(r){const i=this.retainedEventArguments[r];
50i&&(delete this.retainedEventArguments[r],i.forEach(s=>{this.notifyListeners(r,s)}))}}const X1=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),J1=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class v6 extends Iv{async getCookies(){const r=document.cookie,i={};return r.split(";").forEach(s=>{if(s.length<=0)return;let[c,u]=s.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");c=J1(c).trim(),u=J1(u).trim(),i[c]=u}),i}async setCookie(r){try{const i=X1(r.key),s=X1(r.value),c=`; expires=${(r.expires||"").replace("expires=","")}`,u=(r.path||"/").replace("path=",""),f=r.url!=null&&r.url.length>0?`domain=${r.url}`:"";document.cookie=`${i}=${s||""}${c}; path=${u}; ${f};`}catch(i){return Promise.reject(i)}}async deleteCookie(r){try{document.cookie=`${r.key}=; Max-Age=0`}catch(i){return Promise.reject(i)}}async clearCookies(){try{const r=document.cookie.split(";")||[];for(const i of r)document.cookie=i.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(r){return Promise.reject(r)}}async clearAllCookies(){try{await this.clearCookies()}catch(r){return Promise.reject(r)}}}On("CapacitorCookies",{web:()=>new v6});const y6=async t=>new Promise((r,i)=>{const s=new FileReader;s.onload=()=>{const c=s.result;r(c.indexOf(",")>=0?c.split(",")[1]:c)},s.onerror=c=>i(c),s.readAsDataURL(t)}),b6=(t={})=>{const r=Object.keys(t);return Object.keys(t).map(c=>c.toLocaleLowerCase()).reduce((c,u,f)=>(c[u]=t[r[f]],c),{})},_6=(t,r=!0)=>t?Object.entries(t).reduce((s,c)=>{const[u,f]=c;let p,m;return Array.isArray(f)?(m="",f.forEach(g=>{p=r?encodeURIComponent(g):g,m+=`${u}=${p}&`}),m.slice(0,-1)):(p=r?encodeURIComponent(f):f,m=`${u}=${p}`),`${s}&${m}`},"").substr(1):null,S6=(t,r={})=>{const i=Object.assign({method:t.method||"GET",headers:t.headers},r),c=b6(t.headers)["content-type"]||"";if(typeof t.data=="string")i.body=t.data;else if(c.includes("application/x-www-form-urlencoded")){const u=new URLSearchParams;for(const[f,p]of Object.entries(t.data||{}))u.set(f,p);i.body=u.toString()}else if(c.includes("multipart/form-data")||t.data instanceof FormData){const u=new FormData;if(t.data instanceof FormData)t.data.forEach((p,m)=>{u.append(m,p)});else for(const p of Object.keys(t.data))u.append(p,t.data[p]);i.body=u;const f=new Headers(i.headers);f.delete("content-type"),i.headers=f}else(c.includes("application/json")||typeof t.data=="object")&&(i.body=JSON.stringify(t.data));return i};class x6 extends Iv{async request(r){const i=S6(r,r.webFetchExtra),s=_6(r.params,r.shouldEncodeUrlParams),c=s?`${r.url}?${s}`:r.url,u=await fetch(c,i),f=u.headers.get("content-type")||"";let{responseType:p="text"}=u.ok?r:{};f.includes("application/json")&&(p="json");let m,g;switch(p){case"arraybuffer":case"blob":g=await u.blob(),m=await y6(g);break;case"json":m=await u.json();break;case"document":case"text":default:m=await u.text()}const v={};return u.headers.forEach((y,S)=>{v[S]=y}),{data:m,headers:v,status:u.status,url:u.url}}async get(r){return this.request(Object.assign(Object.assign({},r),{method:"GET"}))}async post(r){return this.request(Object.assign(Object.assign({},r),{method:"POST"}))}async put(r){return this.request(Object.assign(Object.assign({},r),{method:"PUT"}))}async patch(r){return this.request(Object.assign(Object.assign({},r),{method:"PATCH"}))}async delete(r){return this.request(Object.assign(Object.assign({},r),{method:"DELETE"}))}}const E6=On("CapacitorHttp",{web:()=>new x6}),w6="modulepreload",j6=function(t){return"/"+t},W1={},ke=function(r,i,s){let c=Promise.resolve();if(i&&i.length>0){let m=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),p=f?.nonce||f?.getAttribute("nonce");c=m(i.map(g=>{if(g=j6(g),g in W1)return;W1[g]=!0;const v=g.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":w6,v||(S.as="script"),S.crossOrigin="",S.href=g,p&&S.setAttribute("nonce",p),document.head.appendChild(S),v)return new Promise((w,E)=>
50{S.addEventListener("load",w),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return c.then(f=>{for(const p of f||[])p.status==="rejected"&&u(p.reason);return r().catch(u)})},mh=On("App",{web:()=>ke(()=>import("./web-D4XM7rjB.js"),[]).then(t=>new t.AppWeb)});var eg;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(eg||(eg={}));var tg;(function(t){t.None="NONE",t.Slide="SLIDE",t.Fade="FADE"})(tg||(tg={}));const A6=On("StatusBar");function T6(t){if(typeof window>"u"||!t)return;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});const r=document.createElement("script");r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${t}`,document.head.appendChild(r)}const N6=On("NavigationBarInfo");var _=hh();const bt=Tl(_);var Uv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ng=bt.createContext&&bt.createContext(Uv),C6=["attr","size","title"];function R6(t,r){if(t==null)return{};var i=L6(t,r),s,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(c=0;c<u.length;c++)s=u[c],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function L6(t,r){if(t==null)return{};var i={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){if(r.indexOf(s)>=0)continue;i[s]=t[s]}return i}function wc(){return wc=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},wc.apply(this,arguments)}function ag(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);r&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),i.push.apply(i,s)}return i}function jc(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?ag(Object(i),!0).forEach(function(s){O6(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ag(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}function O6(t,r,i){return r=M6(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function M6(t){var r=D6(t,"string");return typeof r=="symbol"?r:r+""}function D6(t,r){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,r);
vendor: 9,207 bytes, line 50
50if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Hv(t){return t&&t.map((r,i)=>bt.createElement(r.tag,jc({key:i},r.attr),Hv(r.child)))}function fe(t){return r=>bt.createElement(k6,wc({attr:jc({},t.attr)},r),Hv(t.child))}function k6(t){var r=i=>{var{attr:s,size:c,title:u}=t,f=R6(t,C6),p=c||i.size||"1em",m;return i.className&&(m=i.className),t.className&&(m=(m?m+" ":"")+t.className),bt.createElement("svg",wc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,f,{className:m,style:jc(jc({color:t.color||i.color},i.style),t.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),u&&bt.createElement("title",null,u),t.children)};return ng!==void 0?bt.createElement(ng.Consumer,null,i=>r(i)):r(Uv)}function zv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},child:[]}]})(t)}function Pv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,128a28,28,0,1,1-28-28A28,28,0,0,1,156,128ZM128,76a28,28,0,1,0-28-28A28,28,0,0,0,128,76Zm0,104a28,28,0,1,0,28,28A28,28,0,0,0,128,180Z"},child:[]}]})(t)}function Nl(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"},child:[]}]})(t)}function I6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"},child:[]}]})(t)}function U6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},child:[]}]})(t)}function H6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z"},child:[]}]})(t)}function Ff(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"},child:[]}]})(t)}function z6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"},child:[]}]})(t)}function Ac(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.12,142.65a22.43,22.43,0,0,0-19.55-3.88l-4.32,1C227,119.55,238,99.51,238,80c0-25.36-20.39-46-45.46-46A45.51,45.51,0,0,0,156,52a45.51,45.51,0,0,0-36.54-18C94.39,34,74,54.64,74,80c0,11.38,3.63,22.49,11.29,34.36a29.73,29.73,0,0,0-16.56,8.43L45.52,146H16A14,14,0,0,0,2,160v40a14,14,0,0,0,14,14H120a6,6,0,0,0,1.46-.18l64-16a7.16,7.16,0,0,0,.89-.3L225.17,181l.33-.15a22.6,22.6,0,0,0,3.62-38.18ZM119.46,46a33.16,33.16,0,0,1,31,20.28,6,6,0,0,0,11.1,0,33.16,33.16,0,0,1,31-20.28C210.68,46,226,61.57,226,80c0,20.24-16.18,43-46.8,65.75l-14.87,3.42A26,26,0,0,0,140,114H99.67C90.36,101.67,86,90.81,86,80,86,61.57,101.32,46,119.46,46ZM14,200V160a2,2,0,0,1,2-2H42v44H16A2,2,0,0,1,14,200Zm206.28-30-38.2,16.27L119.26,202H54V154.49l23.21-23.22A17.88,17.88,0,0,1,89.94,126H140a14,14,0,0,1,0,28H112a6,6,0,0,0,0,12h32a6,6,0,0,0,1.34-.15l67-15.41.24-.06A10.6,10.6,0,0,1,220.28,170Z"},child:[]}]})(t)}function RA(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},child:[]}]})(t)}function yl(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"},child:[]}]})(t)}function bl(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208ZM90.34,125.66a8,8,0,0,1,0-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35A8,8,0,0,1,90.34,125.66Z"},child:[]}]})(t)}function P6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"},child:[]}]})(t)}function $v(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-64-56a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"},child:[]}]})(t)}function Cl(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-68-76a12,12,0,1,1-12-12A12,12,0,0,1,140,132Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,132ZM96,172a12,12,0,1,1-12-12A12,12,0,0,1,96,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,172Z"},child:[]}]})(t)}function Hi(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-48-56a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,152Z"},child:[]}]})(t)}function ph(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(t)}function $6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},child:[]}]})(t)}function Vf(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},child:[]}]})(t)}function B6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"},child:[]}]})(t)}function q6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"},child:[]}]})(t)}function uf(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24
50-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"},child:[]}]})(t)}function F6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"},child:[]}]})(t)}function V6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z"},child:[]}]})(t)}function Z6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(t)}function G6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},child:[]}]})(t)}function Y6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},child:[]}]})(t)}function Q6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96H80a8,8,0,0,1,0,16H56v96H200V112H176a8,8,0,0,1,0-16h24A16,16,0,0,1,216,112ZM93.66,69.66,120,43.31V136a8,8,0,0,0,16,0V43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66Z"},child:[]}]})(t)}function Tc(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"},child:[]}]})(t)}function Zf(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},child:[]}]})(t)}function K6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},child:[]}]})(t)}function LA(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"},child:[]}]})(t)}function Bv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},child:[]}]})(t)}function X6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M230.33,141.06a24.34,24.34,0,0,0-18.61-4.77C230.5,117.33,240,98.48,240,80c0-26.47-21.29-48-47.46-48A47.58,47.58,0,0,0,156,48.75,47.58,47.58,0,0,0,119.46,32C93.29,32,72,53.53,72,80c0,11,3.24,21.69,10.06,33a31.87,31.87,0,0,0-14.75,8.4L44.69,144H16A16,16,0,0,0,0,160v40a16,16,0,0,0,16,16H120a7.93,7.93,0,0,0,1.94-.24l64-16a6.94,6.94,0,0,0,1.19-.4L226,182.82l.44-.2a24.6,24.6,0,0,0,3.93-41.56ZM119.46,48A31.15,31.15,0,0,1,148.6,67a8,8,0,0,0,14.8,0,31.15,31.15,0,0,1,29.14-19C209.59,48,224,62.65,224,80c0,19.51-15.79,41.58-45.66,63.9l-11.09,2.55A28,28,0,0,0,140,112H100.68C92.05,100.36,88,90.12,88,80,88,62.65,102.41,48,119.46,48ZM16,160H40v40H16Zm203.43,8.21-38,16.18L119,200H56V155.31l22.63-22.62A15.86,15.86,0,0,1,89.94,128H140a12,12,0,0,1,0,24H112a8,8,0,0,0,0,16h32a8.32,8.32,0,0,0,1.79-.2l67-15.41.31-.08a8.6,8.6,0,0,1,6.3,15.9Z"},child:[]}]})(t)}function gh(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88,88,0,0,1,128,40h.67a87.71,87.71,0,0,1,87,80H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h16a24,24,0,0,0,24-24V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm152,48a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24Z"},child:[]}]})(t)}function Rl(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"},child:[]}]})(t)}function rg(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},child:[]}]})(t)}function J6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},child:[]}]})(t)}function vc(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},child:[]}]})(t)}function OA(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,224H150.54A266.56,266.56,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25a88,88,0,0,0-176,0c0,31.4,14.51,64.68,42,96.25A266.56,266.56,0,0,0,105.46,224H56a8,8,0,0,0,0,16H200a8,8,0,0,0,0-16ZM56,104a72,72,0,0,1,144,0c0,57.23-55.47,105-72,118C111.47,209,56,161.23,56,104Zm112,0a40,40,0,1,0-40,40A40,40,0,0,0,168,104Zm-64,0a24,24,0,1,1,24,24A24,24,0,0,1,104,104Z"},child:[]}]})(t)}function vh(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M228.92,49.69a8,8,0,0,0-6.86-1.45L160.93,63.52,99.58,32.84a8,8,0,0,0-5.52-.6l-64,16A8,8,0,0,0,24,56V200a8,8,0,0,0,9.94,7.76l61.13-15.28,61.35,30.68A8.15,8.15,0,0,0,160,224a8,8,0,0,0,1.94-.24l64-16A8,8,0,0,0,232,200V56A8,8,0,0,0,228.92,49.69ZM104,52.94l48,24V203.06l-48-24ZM40,62.25l48-12v127.5l-48,12Zm176,131.5-48,12V78.25l48-12Z"},child:[]}]})(t)}function qv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"},child:[]}]})(t)}function W6(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Zm-32-80a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Z"},child:[]}]})(t)}function e_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"},child:[]}]})(t)}function t_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34ZM88,216a32,32,0,1,1,32-32A32,32,0,0,1,88,216ZM200,101.25l-64-19.2V50.75L200,70Z"},child:[]}]})(t)}function Fv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M212.92,17.69a8,8,0,0,0-6.86-1.45l-128,32A8,8,0,0,0,72,56V166.08A36,36,0,1,0,88,196V110.25l112-28v51.83A36,36,0,1,0,216,164V24A8,8,0,0,0,212.92,17.69ZM52,216a20,20,0,1,1,20-20A20,20,0,0,1,52,216ZM88,93.75V62.25l112-28v31.5ZM180,184a20,20,0,1,1,20-20A20,20,0,0,1,180,184Z"},child:[]}]})(t)}function Gf(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"},child:[]}]})(t)}function n_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M168,128a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,128Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16ZM216,40V200a32,32,0,0,1-32,32H72a32,32,0,0,1-32-32V40a8,8,0,0,1,8-8H72V24a8,8,0,0,1,16,0v8h32V24a8,8,0,0,1,16,0v8h32V24a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,40Zm-16,8H184v8a8,8,0,0,1-16,0V48H136v8a8,8,0,0,1-16,0V48H88v8a8,8,0,0,1-16,0V48H56V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16Z"},child:[]}]})(t)}function a_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},child:[]}]})(t)}function r_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l
50-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"},child:[]}]})(t)}function i_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"},child:[]}]})(t)}function s_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},child:[]}]})(t)}function Vv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72H160a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm72,48H40a8,8,0,0,0,0,16h72a8,8,0,0,0,0-16Zm135.66-57.7a8,8,0,0,1-10,5.36L208,122.75V192a32.05,32.05,0,1,1-16-27.69V112a8,8,0,0,1,10.3-7.66l40,12A8,8,0,0,1,247.66,126.3ZM192,192a16,16,0,1,0-16,16A16,16,0,0,0,192,192Z"},child:[]}]})(t)}function Pi(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"},child:[]}]})(t)}function l_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Zm-32-80a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"},child:[]}]})(t)}function o_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"},child:[]}]})(t)}function yh(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M210.78,39.25l-130.25-23A16,16,0,0,0,62,29.23l-29.75,169a16,16,0,0,0,13,18.53l130.25,23h0a16,16,0,0,0,18.54-13l29.75-169A16,16,0,0,0,210.78,39.25ZM178.26,224h0L48,201,77.75,32,208,55ZM89.34,58.42a8,8,0,0,1,9.27-6.48l83,14.65a8,8,0,0,1-1.39,15.88,8.36,8.36,0,0,1-1.4-.12l-83-14.66A8,8,0,0,1,89.34,58.42ZM83.8,89.94a8,8,0,0,1,9.27-6.49l83,14.66A8,8,0,0,1,174.67,114a7.55,7.55,0,0,1-1.41-.13l-83-14.65A8,8,0,0,1,83.8,89.94Zm-5.55,31.51A8,8,0,0,1,87.52,115L129,122.29a8,8,0,0,1-1.38,15.88,8.27,8.27,0,0,1-1.4-.12l-41.5-7.33A8,8,0,0,1,78.25,121.45Z"},child:[]}]})(t)}function MA(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.66,109.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,112H165a88,88,0,0,0-85.23,66,8,8,0,0,1-15.5-4A103.94,103.94,0,0,1,165,96h39.71L170.34,61.66a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,109.66ZM192,208H40V88a8,8,0,0,0-16,0V216a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16Z"},child:[]}]})(t)}function bh(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200ZM176,88a48,48,0,0,1-96,0,8,8,0,0,1,16,0,32,32,0,0,0,64,0,8,8,0,0,1,16,0Z"},child:[]}]})(t)}function c_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},child:[]}]})(t)}function u_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"},child:[]}]})(t)}function d_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55ZM208,128a39.93,39.93,0,0,1-10,26.46,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.58A40,40,0,0,1,208,128Z"},child:[]}]})(t)}function f_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Z"},child:[]}]})(t)}function h_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36Zm101.66-61.3a8,8,0,0,1-11.32,11.32L224,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L212.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L224,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L235.31,128Z"},child:[]}]})(t)}function ig(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13
50-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"},child:[]}]})(t)}function Zv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232,104a8,8,0,0,0,8-8V64a16,16,0,0,0-16-16H32A16,16,0,0,0,16,64V96a8,8,0,0,0,8,8,24,24,0,0,1,0,48,8,8,0,0,0-8,8v32a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V160a8,8,0,0,0-8-8,24,24,0,0,1,0-48ZM32,167.2a40,40,0,0,0,0-78.4V64H88V192H32Zm192,0V192H104V64H224V88.8a40,40,0,0,0,0,78.4Z"},child:[]}]})(t)}function m_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"},child:[]}]})(t)}function p_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},child:[]}]})(t)}function g_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"},child:[]}]})(t)}function v_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"},child:[]}]})(t)}function _r(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm0-144a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0,72.08,72.08,0,0,1,72-72,8,8,0,0,1,0,16Zm72,56a72.08,72.08,0,0,1-72,72,8,8,0,0,1,0-16,56.06,56.06,0,0,0,56-56,8,8,0,0,1,16,0Zm-40,0a32,32,0,1,0-32,32A32,32,0,0,0,160,128Zm-48,0a16,16,0,1,1,16,16A16,16,0,0,1,112,128Z"},child:[]}]})(t)}function y_(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},child:[]}]})(t)}function Gv(t){return fe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},child:[]}]})(t)}const Qs={log:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},debug:(...t)=>{},info:(...t)=>{}};function tt(t){return{log:(...r)=>Qs.log(`[${t}]`,...r),warn:(...r)=>Qs.warn(`[${t}]`,...r),error:(...r)=>Qs.error(`[${t}]`,...r),debug:(...r)=>Qs.debug(`[${t}]`,...r),info:(...r)=>Qs.info(`[${t}]`,...r)}}function Yv(t){return t.name==="ChunkLoadError"||t instanceof TypeError&&t.message.includes("dynamically imported module")||t instanceof SyntaxError&&t.message.includes("Unexpected token '<'")}function xe({children:t="Button",size:r="medium",variant:i="solid",color:s="default",disabled:c=!1,leftIcon:u,rightIcon:f,onClick:p,type:m="button",...g}){const v=`cr-btn cr-btn--${r} cr-btn--${i} cr-btn--${s}`;return o.jsxs("button",{type:m,className:v,disabled:c,onClick:p,...g,children:[u&&o.jsx("span",{className:"cr-btn__icon cr-btn__icon--left",children:u}),o.jsx("span",{className:"cr-btn__text",children:t}),f&&o.jsx("span",{className:"cr-btn__icon cr-btn__icon--right",children:f})]})}
50function _h({displayText:t,title:r,description:i,actions:s,extras:c}){return o.jsx("div",{className:"page-layout-single",children:o.jsxs("div",{className:"error-page-container",children:[o.jsx("div",{className:"error-page-number",children:t}),o.jsx("h1",{className:"error-page-title",children:r}),o.jsx("p",{className:"error-page-description",children:i}),o.jsx("div",{className:"error-page-actions",children:s}),c]})})}const b_=tt("ErrorBoundary");class __ extends _.Component{constructor(r){super(r),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r,errorInfo:null}}componentDidCatch(r,i){const s="chirp-chunk-reload-attempted";if(Yv(r)&&!sessionStorage.getItem(s)){sessionStorage.setItem(s,"1"),window.location.reload();return}b_.error("ErrorBoundary caught an error:",r,i),this.setState({error:r,errorInfo:i})}handleReload=()=>{window.location.reload()};handleGoHome=()=>{window.location.href="/"};render(){if(this.state.hasError){const{error:r,errorInfo:i}=this.state;return o.jsx(_h,{displayText:o.jsxs(o.Fragment,{children:[o.jsx(_r,{}),o.jsx(_r,{}),"ps"]}),title:"Something went wrong",description:"We're sorry for the inconvenience. An unexpected error has occurred. Please try reloading the page, or return to the home page.",actions:o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"solid",color:"secondary",size:"medium",onClick:this.handleReload,children:"Reload Page"}),o.jsx(xe,{variant:"outline",color:"default",size:"medium",onClick:this.handleGoHome,children:"Go to Home"})]}),extras:void 0})}return this.props.children}}/** 51 * react-router v7.15.0 52 * 53 * Copyright (c) Remix Software Inc. 54 * 55 * This source code is licensed under the MIT license found in the 56 * LICENSE.md file in the root directory of this source tree. 57 * 58 * @license MIT 59 */var sg="popstate";function lg(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function S_(t={}){function r(s,c){let u=c.state?.masked,{pathname:f,search:p,hash:m}=u||s.location;return Nc("",{pathname:f,search:p,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function i(s,c){return typeof c=="string"?c:Vi(c)}return Qv(r,i,null,t)}function x_(t={}){function r(c,u){let{pathname:f="/",search:p="",hash:m=""}=Xr(c.location.hash.substring(1));return!f.startsWith("/")&&!f.startsWith(".")&&(f="/"+f),Nc("",{pathname:f,search:p,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function i(c,u){let f=c.document.querySelector("base"),p="";if(f&&f.getAttribute("href")){let m=c.location.href,g=m.indexOf("#");p=g===-1?m:m.slice(0,g)}return p+"#"+(typeof u=="string"?u:Vi(u))}function s(c,u){Ln(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return Qv(r,i,s,t)}function ut(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Ln(t,r){if(!t)try{throw new Error(r)}catch{}}function E_(){return Math.random().toString(36).substring(2,10)}function og(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Nc(t,r,i=null,s,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Xr(r):r,state:i,key:r&&r.key||s||E_(),mask:c}}function Vi({pathname:t="/",search:r="",hash:i=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Xr(t){let r={};if(t){let i=t.indexOf("#");i>=0&&(r.hash=t.substring(i),t=t.substring(0,i));let s=t.indexOf("?");s>=0&&(r.search=t.substring(s),t=t.substring(0,s)),t&&(r.pathname=t)}return r}function Qv(t,r,i,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,f=c.history,p="POP",m=null,g=v();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function v(){return(f.state||{idx:null}).idx}function y(){p="POP";let j=v(),N=j==null?null:j-g;g=j,m&&m({action:p,location:b.location,delta:N})}function S(j,N){p="PUSH";let C=lg(j)?j:Nc(b.location,j,N);i&&i(C,j),g=v()+1;let M=og(C,g),R=b.createHref(C.mask||C);try{f.pushState(M,"",R)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;c.location.assign(R)}u&&m&&m({action:p,location:b.location,delta:1})}function w(j,N){p="REPLACE";let C=lg(j)?j:Nc(b.location,j,N);i&&i(C,j),g=v();let M=og(C,g),R=b.createHref(C.mask||C);f.replaceState(M,"",R),u&&m&&m({action:p,location:b.location,delta:0})}function E(j){return w_(j)}let b={get action(){return p},get location(){return t(c,f)},listen(j){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(sg,y),m=j,()=>{c.removeEventListener(sg,y),m=null}},createHref(j){return r(c,j)},createURL:E,encodeLocation(j){let N=E(j);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:S,replace:w,go(j){return f.go(j)}};return b}function w_(t,r=!1){let i="http://localhost";
59typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ut(i,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:Vi(t);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Kv(t,r,i="/"){return j_(t,r,i,!1)}function j_(t,r,i,s,c){let u=typeof r=="string"?Xr(r):r,f=Za(u.pathname||"/",i);if(f==null)return null;let p=A_(t),m=null,g=H_(f);for(let v=0;m==null&&v<p.length;++v)m=I_(p[v],g,s);return m}function A_(t){let r=Xv(t);return T_(r),r}function Xv(t,r=[],i=[],s="",c=!1){let u=(f,p,m=c,g)=>{let v={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&m)return;ut(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let y=da([s,v.relativePath]),S=i.concat(v);f.children&&f.children.length>0&&(ut(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Xv(f.children,r,S,y,m)),!(f.path==null&&!f.index)&&r.push({path:y,score:D_(y,f.index),routesMeta:S})};return t.forEach((f,p)=>{if(f.path===""||!f.path?.includes("?"))u(f,p);else for(let m of Jv(f.path))u(f,p,!0,m)}),r}function Jv(t){let r=t.split("/");if(r.length===0)return[];let[i,...s]=r,c=i.endsWith("?"),u=i.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let f=Jv(s.join("/")),p=[];return p.push(...f.map(m=>m===""?u:[u,m].join("/"))),c&&p.push(...f),p.map(m=>t.startsWith("/")&&m===""?"/":m)}function T_(t){t.sort((r,i)=>r.score!==i.score?i.score-r.score:k_(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var N_=/^:[\w-]+$/,C_=3,R_=2,L_=1,O_=10,M_=-2,cg=t=>t==="*";function D_(t,r){let i=t.split("/"),s=i.length;return i.some(cg)&&(s+=M_),r&&(s+=R_),i.filter(c=>!cg(c)).reduce((c,u)=>c+(N_.test(u)?C_:u===""?L_:O_),s)}function k_(t,r){return t.length===r.length&&t.slice(0,-1).every((s,c)=>s===r[c])?t[t.length-1]-r[r.length-1]:0}function I_(t,r,i=!1){let{routesMeta:s}=t,c={},u="/",f=[];for(let p=0;p<s.length;++p){let m=s[p],g=p===s.length-1,v=u==="/"?r:r.slice(u.length)||"/",y=Cc({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},v),S=m.route;if(!y&&g&&i&&!s[s.length-1].route.index&&(y=Cc({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!y)return null;
59Object.assign(c,y.params),f.push({params:c,pathname:da([u,y.pathname]),pathnameBase:B_(da([u,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(u=da([u,y.pathnameBase]))}return f}function Cc(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,s]=U_(t.path,t.caseSensitive,t.end),c=r.match(i);if(!c)return null;let u=c[0],f=u.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((g,{paramName:v,isOptional:y},S)=>{if(v==="*"){let E=p[S]||"";f=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const w=p[S];return y&&!w?g[v]=void 0:g[v]=(w||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:f,pattern:t}}function U_(t,r=!1,i=!0){Ln(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,m,g,v)=>{if(s.push({paramName:p,isOptional:m!=null}),m){let y=v.charAt(g+f.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function H_(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Ln(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function Za(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,s=t.charAt(i);return s&&s!=="/"?null:t.slice(i)||"/"}var z_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function P_(t,r="/"){let{pathname:i,search:s="",hash:c=""}=typeof t=="string"?Xr(t):t,u;return i?(i=Wv(i),i.startsWith("/")?u=ug(i.substring(1),"/"):u=ug(i,r)):u=r,{pathname:u,search:q_(s),hash:F_(c)}}function ug(t,r){let i=Rc(r).split("/");return t.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function df(t,r,i,s){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $_(t){return t.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Sh(t){let r=$_(t);return r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase)}function Pc(t,r,i,s=!1){let c;typeof t=="string"?c=Xr(t):(c={...t},ut(!c.pathname||!c.pathname.includes("?"),df("?","pathname","search",c)),ut(!c.pathname||!c.pathname.includes("#"),df("#","pathname","hash",c)),ut(!c.search||!c.search.includes("#"),df("#","search","hash",c)));let u=t===""||c.pathname==="",f=u?"/":c.pathname,p;if(f==null)p=i;else{let y=r.length-1;if(!s&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),y-=1;c.pathname=S.join("/")}p=y>=0?r[y]:"/"}let m=P_(c,p),g=f&&f!=="/"&&f.endsWith("/"),v=(u||f===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(g||v)&&(m.pathname+="/"),m}var Wv=t=>t.replace(/\/\/+/g,"/"),da=t=>Wv(t.join("/")),Rc=t=>t.replace(/\/+$/,""),B_=t=>Rc(t).replace(/^\/*/,"/"),q_=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,F_=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,V_=class{constructor(t,r,i,s=!1){this.status=t,this.statusText=r||"",this.internal=s,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Z_(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function G_(t){let r=t.map(i=>i.route.path).filter(Boolean);return da(r)||"/"}var ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ty(t,r){let i=t;if(typeof i!="string"||!z_.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let s=i,c=!1;if(ey)try{let u=new URL(window.location.href),f=i.startsWith("//")?new URL(u.protocol+i):new URL(i),p=Za(f.pathname,r);f.origin===u.origin&&p!=null?i=p+f.search+f.hash:c=!0}catch{Ln(!1,`<Link to="${i}">
59 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ny=["POST","PUT","PATCH","DELETE"];new Set(ny);var Y_=["GET",...ny];new Set(Y_);var Gi=_.createContext(null);Gi.displayName="DataRouter";var $c=_.createContext(null);$c.displayName="DataRouterState";var ay=_.createContext(!1);function Q_(){return _.useContext(ay)}var ry=_.createContext({isTransitioning:!1});ry.displayName="ViewTransition";var K_=_.createContext(new Map);K_.displayName="Fetchers";var X_=_.createContext(null);X_.displayName="Await";var Mn=_.createContext(null);Mn.displayName="Navigation";var Ll=_.createContext(null);Ll.displayName="Location";var ea=_.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var xh=_.createContext(null);xh.displayName="RouteError";var iy="REACT_ROUTER_ERROR",J_="REDIRECT",W_="ROUTE_ERROR_RESPONSE";function eS(t){if(t.startsWith(`${iy}:${J_}:{`))try{let r=JSON.parse(t.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function tS(t){if(t.startsWith(`${iy}:${W_}:{`))try{let r=JSON.parse(t.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new V_(r.status,r.statusText,r.data)}catch{}}function nS(t,{relative:r}={}){ut(Yi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=_.useContext(Mn),{hash:c,pathname:u,search:f}=Ol(t,{relative:r}),p=u;return i!=="/"&&(p=u==="/"?i:da([i,u])),s.createHref({pathname:p,search:f,hash:c})}function Yi(){return _.useContext(Ll)!=null}function Ut(){return ut(Yi(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Ll).location}var sy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ly(t){_.useContext(Mn).static||_.useLayoutEffect(t)}function yn(){let{isDataRoute:t}=_.useContext(ea);return t?yS():aS()}function aS(){ut(Yi(),"useNavigate() may be used only in the context of a <Router> component.");let t=_.useContext(Gi),{basename:r,navigator:i}=_.useContext(Mn),{matches:s}=_.useContext(ea),{pathname:c}=Ut(),u=JSON.stringify(Sh(s)),f=_.useRef(!1);return ly(()=>{f.current=!0}),_.useCallback((m,g={})=>{if(Ln(f.current,sy),!f.current)return;if(typeof m=="number"){i.go(m);return}let v=Pc(m,JSON.parse(u),c,g.relative==="path");t==null&&r!=="/"&&(v.pathname=v.pathname==="/"?r:da([r,v.pathname])),(g.replace?i.replace:i.push)(v,g.state,g)},[r,i,u,c,t])}var rS=_.createContext(null);function iS(t){let r=_.useContext(ea).outlet;return _.useMemo(()=>r&&_.createElement(rS.Provider,{value:t},r),[r,t])}function sS(){let{matches:t}=_.useContext(ea);return t[t.length-1]?.params??{}}function Ol(t,{relative:r}={}){let{matches:i}=_.useContext(ea),{pathname:s}=Ut(),c=JSON.stringify(Sh(i));return _.useMemo(()=>Pc(t,JSON.parse(c),s,r==="path"),[t,c,s,r])}function lS(t,r){return oy(t,r)}function oy(t,r,i){ut(Yi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=_.useContext(Mn),{matches:c}=_.useContext(ea),u=c[c.length-1],f=u?u.params:{},p=u?u.pathname:"/",m=u?u.pathnameBase:"/",g=u&&u.route;{let j=g&&g.path||"";uy(p,!g||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 60 61Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let v=Ut(),y;if(r){let j=typeof r=="string"?Xr(r):r;ut(m==="/"||j.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),y=j}else y=v;let S=y.pathname||"/",w=S;if(m!=="/"){let j=m.replace(/^\//,"").split("/");w="/"+S.replace(/^\//,"").split("/").slice(j.length).join("/")}let E=i&&i.state.matches.length?i.state.matches.map(j=>Object.assign(j,{route:i.manifest[j.route.id]||j.route})):Kv(t,{pathname:w});Ln(g||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Ln(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=fS(E&&E.map(j=>Object.assign({},j,{params:Object.assign({},f,j.params),pathname:da([m,s.encodeLocation?s.encodeLocation(j.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:da([m,s.encodeLocation?s.encodeLocation(j.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),c,i);return r&&b?_.createElement(Ll.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},b):b}function oS(){let t=vS(),r=Z_(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},f=null;return f=_.createElement(_.Fragment,null,_.createElement("p",null,"ð¿ Hey developer ð"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:u},"ErrorBoundary")," or"," ",_.createElement("code",{style:u},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application
61Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},r),i?_.createElement("pre",{style:c},i):null,f)}var cS=_.createElement(oS,null),cy=class extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError&&this.props.onError(t,r)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const i=tS(t.digest);i&&(t=i)}let r=t!==void 0?_.createElement(ea.Provider,{value:this.props.routeContext},_.createElement(xh.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?_.createElement(uS,{error:t},r):r}};cy.contextType=ay;var ff=new WeakMap;function uS({children:t,error:r}){let{basename:i}=_.useContext(Mn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=eS(r.digest);if(s){let c=ff.get(r);if(c)throw c;let u=ty(s.location,i);if(ey&&!ff.get(r))if(u.isExternal||s.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw ff.set(r,f),f}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return t}function dS({routeContext:t,match:r,children:i}){let s=_.useContext(Gi);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),_.createElement(ea.Provider,{value:t},i)}function fS(t,r=[],i){let s=i?.state;if(t==null){if(!s)return null;if(s.errors)t=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)t=s.matches;else return null}let c=t,u=s?.errors;if(u!=null){let v=c.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);ut(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let f=!1,p=-1;if(i&&s){f=s.renderFallback;for(let v=0;v<c.length;v++){let y=c[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=v),y.route.id){let{loaderData:S,errors:w}=s,E=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!w||w[y.route.id]===void 0);if(y.route.lazy||E){i.isStatic&&(f=!0),p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}}let m=i?.onError,g=s&&m?(v,y)=>{m(v,{location:s.location,params:s.matches?.[0]?.params??{},pattern:G_(s.matches),errorInfo:y})}:void 0;return c.reduceRight((v,y,S)=>{let w,E=!1,b=null,j=null;s&&(w=u&&y.route.id?u[y.route.id]:void 0,b=y.route.errorElement||cS,f&&(p<0&&S===0?(uy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,j=null):p===S&&(E=!0,j=y.route.hydrateFallbackElement||null)));let N=r.concat(c.slice(0,S+1)),C=()=>{let M;return w?M=b:E?M=j:y.route.Component?M=_.createElement(y.route.Component,null):y.route.element?M=y.route.element:M=v,_.createElement(dS,{match:y,routeContext:{outlet:v,matches:N,isDataRoute:s!=null},children:M})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?_.createElement(cy,{location:s.location,revalidation:s.revalidation,component:b,error:w,children:C(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:g}):C()},null)}function Eh(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hS(t){let r=_.useContext(Gi);return ut(r,Eh(t)),r}function mS(t){let r=_.useContext($c);return ut(r,Eh(t)),r}function pS(t){let r=_.useContext(ea);return ut(r,Eh(t)),r}function wh(t){let r=pS(t),i=r.matches[r.matches.length-1];return ut(i.route.id,`${t} can only be used on routes that contain a unique "id"`),i.route.id}function gS(){return wh("useRouteId")}function vS(){let t=_.useContext(xh),r=mS("useRouteError"),i=wh("useRouteError");return t!==void 0?t:r.errors?.[i]}function yS(){let{router:t}=hS("useNavigate"),r=wh("useNavigate"),i=_.useRef(!1);return ly(()=>{i.current=!0}),_.useCallback(async(c,u={})=>{Ln(i.current,sy),i.current&&(typeof c=="number"?await t.navigate(c):await t.navigate(c,{fromRouteId:r,...u}))},[t,r])}var dg={};function uy(t,r,i){!r&&!dg[t]&&(dg[t]=!0,Ln(!1,i))}_.memo(bS);function bS({routes:t,manifest:r,future:i,state:s,isStatic:c,onError:u}){return oy(t,void 0,{manifest:r,state:s,isStatic:c,onError:u})}function ul({to:t,replace:r,state:i,relative:s}){ut(Yi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=_.useContext(Mn);Ln(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=_.useContext(ea),{pathname:f}=Ut(),p=yn(),m=Pc(t,Sh(u),f,s==="path"),g=JSON.stringify(m);return _.useEffect(()=>{p(JSON.parse(g),{replace:r,state:i,relative:s})},[p,g,s,r,i]),null}function dy(t){return iS(t.context)}function je(t){ut(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function fy({basename:t="/",children:r=null,location:i,navigationType:s="POP",navigator:c,static:u=!1,useTransitions:f}){ut(!Yi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=t.replace(/^\/*/,"/"),m=_.useMemo(()=>({basename:p,navigator:c,static:u,useTransitions:f,future:{}}),[p,c,u,f]);typeof i=="string"&&(i=Xr(i));let{pathname:g="/",search:v="",hash:y="",state:S=null,key:w="default",mask:E}=i,b=_.useMemo(()=>{let j=Za(g,p);return j==null?null:{location:{pathname:j,search:v,hash:y,state:S,key:w,mask:E},navigationType:s}},[p,g,v,y,S,w,s,E]);
61return Ln(b!=null,`<Router basename="${p}"> is not able to match the URL "${g}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:_.createElement(Mn.Provider,{value:m},_.createElement(Ll.Provider,{children:r,value:b}))}function _S({children:t,location:r}){return lS(Yf(t),r)}function Yf(t,r=[]){let i=[];return _.Children.forEach(t,(s,c)=>{if(!_.isValidElement(s))return;let u=[...r,c];if(s.type===_.Fragment){i.push.apply(i,Yf(s.props.children,u));return}ut(s.type===je,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=Yf(s.props.children,u)),i.push(f)}),i}var yc="get",bc="application/x-www-form-urlencoded";function Bc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function SS(t){return Bc(t)&&t.tagName.toLowerCase()==="button"}function xS(t){return Bc(t)&&t.tagName.toLowerCase()==="form"}function ES(t){return Bc(t)&&t.tagName.toLowerCase()==="input"}function wS(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function jS(t,r){return t.button===0&&(!r||r==="_self")&&!wS(t)}function Qf(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((r,i)=>{let s=t[i];return r.concat(Array.isArray(s)?s.map(c=>[i,c]):[[i,s]])},[]))}function AS(t,r){let i=Qf(t);return r&&r.forEach((s,c)=>{i.has(c)||r.getAll(c).forEach(u=>{i.append(c,u)})}),i}var ec=null;function TS(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var NS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hf(t){return t!=null&&!NS.has(t)?(Ln(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bc}"`),null):t}function CS(t,r){let i,s,c,u,f;if(xS(t)){let p=t.getAttribute("action");s=p?Za(p,r):null,i=t.getAttribute("method")||yc,c=hf(t.getAttribute("enctype"))||bc,u=new FormData(t)}else if(SS(t)||ES(t)&&(t.type==="submit"||t.type==="image")){let p=t.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||p.getAttribute("action");if(s=m?Za(m,r):null,i=t.getAttribute("formmethod")||p.getAttribute("method")||yc,c=hf(t.getAttribute("formenctype"))||hf(p.getAttribute("enctype"))||bc,u=new FormData(p,t),!TS()){let{name:g,type:v,value:y}=t;if(v==="image"){let S=g?`${g}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else g&&u.append(g,y)}}else{if(Bc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=yc,s=null,c=bc,f=t}return u&&c==="text/plain"&&(f=u,u=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:u,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jh(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function hy(t,r,i,s){let c=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&Za(c.pathname,r)==="/"?c.pathname=`${Rc(r)}/_root.${s}`:c.pathname=`${Rc(c.pathname)}.${s}`,c}async function RS(t,r){if(t.id in r)return r[t.id];try{let i=await import(t.module);return r[t.id]=i,i}catch{return window.__reactRouterContext&&window.__reactRouterContext.
61isSpaMode,window.location.reload(),new Promise(()=>{})}}function LS(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function OS(t,r,i){let s=await Promise.all(t.map(async c=>{let u=r.routes[c.route.id];if(u){let f=await RS(u,i);return f.links?f.links():[]}return[]}));return IS(s.flat(1).filter(LS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function fg(t,r,i,s,c,u){let f=(m,g)=>i[g]?m.route.id!==i[g].route.id:!0,p=(m,g)=>i[g].pathname!==m.pathname||i[g].route.path?.endsWith("*")&&i[g].params["*"]!==m.params["*"];return u==="assets"?r.filter((m,g)=>f(m,g)||p(m,g)):u==="data"?r.filter((m,g)=>{let v=s.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(f(m,g)||p(m,g))return!0;if(m.route.shouldRevalidate){let y=m.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function MS(t,r,{includeHydrateFallback:i}={}){return DS(t.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function DS(t){return[...new Set(t)]}function kS(t){let r={},i=Object.keys(t).sort();for(let s of i)r[s]=t[s];return r}function IS(t,r){let i=new Set;return new Set(r),t.reduce((s,c)=>{let u=JSON.stringify(kS(c));return i.has(u)||(i.add(u),s.push({key:u,link:c})),s},[])}function Ah(){let t=_.useContext(Gi);return jh(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function US(){let t=_.useContext($c);return jh(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Th=_.createContext(void 0);Th.displayName="FrameworkContext";function Nh(){let t=_.useContext(Th);return jh(t,"You must render this element inside a <HydratedRouter> element"),t}function HS(t,r){let i=_.useContext(Th),[s,c]=_.useState(!1),[u,f]=_.useState(!1),{onFocus:p,onBlur:m,onMouseEnter:g,onMouseLeave:v,onTouchStart:y}=r,S=_.useRef(null);_.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let b=N=>{N.forEach(C=>{f(C.isIntersecting)})},j=new IntersectionObserver(b,{threshold:.5});return S.current&&j.observe(S.current),()=>{j.disconnect()}}},[t]),_.useEffect(()=>{if(s){let b=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(b)}}},[s]);let w=()=>{c(!0)},E=()=>{c(!1),f(!1)};return i?t!=="intent"?[u,S,{}]:[u,S,{onFocus:Ks(p,w),onBlur:Ks(m,E),onMouseEnter:Ks(g,w),onMouseLeave:Ks(v,E),onTouchStart:Ks(y,w)}]:[!1,S,{}]}function Ks(t,r){return i=>{t&&t(i),i.defaultPrevented||r(i)}}function zS({page:t,...r}){let i=Q_(),{router:s}=Ah(),c=_.useMemo(()=>Kv(s.routes,t,s.basename),[s.routes,t,s.basename]);return c?i?_.createElement($S,{page:t,matches:c,...r}):_.createElement(BS,{page:t,matches:c,...r}):null}function PS(t){let{manifest:r,routeModules:i}=Nh(),[s,c]=_.useState([]);return _.useEffect(()=>{let u=!1;return OS(t,r,i).then(f=>{u||c(f)}),()=>{u=!0}},[t,r,i]),s}function $S({page:t,matches:r,...i}){let s=Ut(),{future:c}=Nh(),{basename:u}=Ah(),f=_.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let p=hy(t,u,c.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,g=[];for(let v of r)typeof v.route.shouldRevalidate=="function"?m=!0:g.push(v.route.id);return m&&g.length>0&&p.searchParams.set("_routes",g.join(",")),[p.pathname+p.search]},[u,c.unstable_trailingSlashAwareDataRequests,t,s,r]);return _.createElement(_.Fragment,null,f.map(p=>_.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...i})))}function BS({page:t,matches:r,...i}){let s=Ut(),{future:c,manifest:u,routeModules:f}=Nh(),{basename:p}=Ah(),{loaderData:m,matches:g}=US(),v=_.useMemo(()=>fg(t,r,g,u,s,"data"),[t,r,g,u,s]),y=_.useMemo(()=>fg(t,r,g,u,s,"assets"),[t,r,g,u,s]),S=_.useMemo(()=>
61{if(t===s.pathname+s.search+s.hash)return[];let b=new Set,j=!1;if(r.forEach(C=>{let M=u.routes[C.route.id];!M||!M.hasLoader||(!v.some(R=>R.route.id===C.route.id)&&C.route.id in m&&f[C.route.id]?.shouldRevalidate||M.hasClientLoader?j=!0:b.add(C.route.id))}),b.size===0)return[];let N=hy(t,p,c.unstable_trailingSlashAwareDataRequests,"data");return j&&b.size>0&&N.searchParams.set("_routes",r.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[N.pathname+N.search]},[p,c.unstable_trailingSlashAwareDataRequests,m,s,u,v,r,t,f]),w=_.useMemo(()=>MS(y,u),[y,u]),E=PS(y);return _.createElement(_.Fragment,null,S.map(b=>_.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...i})),w.map(b=>_.createElement("link",{key:b,rel:"modulepreload",href:b,...i})),E.map(({key:b,link:j})=>_.createElement("link",{key:b,nonce:i.nonce,...j,crossOrigin:j.crossOrigin??i.crossOrigin})))}function qS(...t){return r=>{t.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var FS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{FS&&(window.__reactRouterVersion="7.15.0")}catch{}function VS({basename:t,children:r,useTransitions:i,window:s}){let c=_.useRef();c.current==null&&(c.current=S_({window:s,v5Compat:!0}));let u=c.current,[f,p]=_.useState({action:u.action,location:u.location}),m=_.useCallback(g=>{i===!1?p(g):_.startTransition(()=>p(g))},[i]);return _.useLayoutEffect(()=>u.listen(m),[u,m]),_.createElement(fy,{basename:t,children:r,location:f.location,navigationType:f.action,navigator:u,useTransitions:i})}function ZS({basename:t,children:r,useTransitions:i,window:s}){let c=_.useRef();c.current==null&&(c.current=x_({window:s,v5Compat:!0}));let u=c.current,[f,p]=_.useState({action:u.action,location:u.location}),m=_.useCallback(g=>{i===!1?p(g):_.startTransition(()=>p(g))},[i]);return _.useLayoutEffect(()=>u.listen(m),[u,m]),_.createElement(fy,{basename:t,children:r,location:f.location,navigationType:f.action,navigator:u,useTransitions:i})}var my=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zr=_.forwardRef(function({onClick:r,discover:i="render",prefetch:s="none",relative:c,reloadDocument:u,replace:f,mask:p,state:m,target:g,to:v,preventScrollReset:y,viewTransition:S,defaultShouldRevalidate:w,...E},b){let{basename:j,navigator:N,useTransitions:C}=_.useContext(Mn),M=typeof v=="string"&&my.test(v),R=ty(v,j);v=R.to;let z=nS(v,{relative:c}
61),V=Ut(),k=null;if(p){let q=Pc(p,[],V.mask?V.mask.pathname:"/",!0);j!=="/"&&(q.pathname=q.pathname==="/"?j:da([j,q.pathname])),k=N.createHref(q)}let[I,U,L]=HS(s,E),B=KS(v,{replace:f,mask:p,state:m,target:g,preventScrollReset:y,relative:c,viewTransition:S,defaultShouldRevalidate:w,useTransitions:C});function Q(q){r&&r(q),q.defaultPrevented||B(q)}let K=!(R.isExternal||u),D=_.createElement("a",{...E,...L,href:(K?k:void 0)||R.absoluteURL||z,onClick:K?Q:r,ref:qS(b,U),target:g,"data-discover":!M&&i==="render"?"true":void 0});return I&&!M?_.createElement(_.Fragment,null,D,_.createElement(zS,{page:z})):D});Zr.displayName="Link";var GS=_.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:s="",end:c=!1,style:u,to:f,viewTransition:p,children:m,...g},v){let y=Ol(f,{relative:g.relative}),S=Ut(),w=_.useContext($c),{navigator:E,basename:b}=_.useContext(Mn),j=w!=null&&tx(y)&&p===!0,N=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,C=S.pathname,M=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(C=C.toLowerCase(),M=M?M.toLowerCase():null,N=N.toLowerCase()),M&&b&&(M=Za(M,b)||M);const R=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let z=C===N||!c&&C.startsWith(N)&&C.charAt(R)==="/",V=M!=null&&(M===N||!c&&M.startsWith(N)&&M.charAt(N.length)==="/"),k={isActive:z,isPending:V,isTransitioning:j},I=z?r:void 0,U;typeof s=="function"?U=s(k):U=[s,z?"active":null,V?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let L=typeof u=="function"?u(k):u;return _.createElement(Zr,{...g,"aria-current":I,className:U,ref:v,style:L,to:f,viewTransition:p},typeof m=="function"?m(k):m)});GS.displayName="NavLink";var YS=_.forwardRef(({discover:t="render",fetcherKey:r,navigate:i,reloadDocument:s,replace:c,state:u,method:f=yc,action:p,onSubmit:m,relative:g,preventScrollReset:v,viewTransition:y,defaultShouldRevalidate:S,...w},E)=>{let{useTransitions:b}=_.useContext(Mn),j=WS(),N=ex(p,{relative:g}),C=f.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&my.test(p),R=z=>{if(m&&m(z),z.defaultPrevented)return;z.preventDefault();let V=z.nativeEvent.submitter,k=V?.getAttribute("formmethod")||f,I=()=>j(V||z.currentTarget,{fetcherKey:r,method:k,navigate:i,replace:c,state:u,relative:g,preventScrollReset:v,viewTransition:y,defaultShouldRevalidate:S});b&&i!==!1?_.startTransition(()=>I()):I()};return _.createElement("form",{ref:E,method:C,action:N,onSubmit:s?m:R,...w,"data-discover":!M&&t==="render"?"true":void 0})});YS.displayName="Form";function QS(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function py(t){let r=_.useContext(Gi);return ut(r,QS(t)),r}function KS(t,{target:r,replace:i,mask:s,state:c,preventScrollReset:u,relative:f,viewTransition:p,defaultShouldRevalidate:m,useTransitions:g}={}){let v=yn(),y=Ut(),S=Ol(t,{relative:f});return _.useCallback(w=>{if(jS(w,r)){w.preventDefault();let E=i!==void 0?i:Vi(y)===Vi(S),b=()=>v(t,{replace:E,mask:s,state:c,preventScrollReset:u,relative:f,viewTransition:p,defaultShouldRevalidate:m});g?_.startTransition(()=>b()):b()}},[y,v,S,i,s,c,r,t,u,f,p,m,g])}function DA(t){Ln(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=_.useRef(Qf(t)),i=_.useRef(!1),s=Ut(),c=_.useMemo(()=>AS(s.search,i.current?null:r.current),[s.search]),u=yn(),f=_.useCallback((p,m)=>{const g=Qf(typeof p=="function"?p(new URLSearchParams(c)):p);i.current=!0,u("?"+g,m)},[u,c]);return[c,f]}var XS=0,JS=()=>`__${String(++XS)}__`;function WS(){let{router:t}=py("useSubmit"),{basename:r}=_.useContext(Mn),i=gS(),s=t.fetch,c=t.navigate;return _.useCallback(async(u,f={})=>{let{action:p,method:m,encType:g,formData:v,body:y}=CS(u,r);if(f.navigate===!1){let S=f.fetcherKey||JS();await s(S,i,f.action||p,{defaultShouldRevalidate:f.defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:v,body:y,formMethod:f.method||m,formEncType:f.encType||g,flushSync:f.flushSync})}else await c(f.action||p,{defaultShouldRevalidate:f.defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:v,body:y,formMethod:f.method||m,formEncType:f.encType||g,replace:f.replace,state:f.state,fromRouteId:i,flushSync:f.flushSync,viewTransition:f.viewTransition})},[s,c,r,i])}function ex(t,{relative:r}={}){let{basename:i}=_.useContext(Mn),s=_.useContext(ea);ut(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...Ol(t||".",{relative:r})},f=Ut();if(t==null){u.search=f.search;let p=new URLSearchParams(u.search),m=p.getAll("index");if(m.some(v=>v==="")){p.delete("index"),m.filter(y=>
61y).forEach(y=>p.append("index",y));let v=p.toString();u.search=v?`?${v}`:""}}return(!t||t===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:da([i,u.pathname])),Vi(u)}function tx(t,{relative:r}={}){let i=_.useContext(ry);ut(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=py("useViewTransitionState"),c=Ol(t,{relative:r});if(!i.isTransitioning)return!1;let u=Za(i.currentLocation.pathname,s)||i.currentLocation.pathname,f=Za(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Cc(c.pathname,f)!=null||Cc(c.pathname,u)!=null}var mf,hg;function nx(){if(hg)return mf;hg=1;var t=typeof Element<"u",r=typeof Map=="function",i=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(u,f){if(u===f)return!0;if(u&&f&&typeof u=="object"&&typeof f=="object"){if(u.constructor!==f.constructor)return!1;var p,m,g;if(Array.isArray(u)){if(p=u.length,p!=f.length)return!1;for(m=p;m--!==0;)if(!c(u[m],f[m]))return!1;return!0}var v;if(r&&u instanceof Map&&f instanceof Map){if(u.size!==f.size)return!1;for(v=u.entries();!(m=v.next()).done;)if(!f.has(m.value[0]))return!1;for(v=u.entries();!(m=v.next()).done;)if(!c(m.value[1],f.get(m.value[0])))return!1;return!0}if(i&&u instanceof Set&&f instanceof Set){if(u.size!==f.size)return!1;for(v=u.entries();!(m=v.next()).done;)if(!f.has(m.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(f)){if(p=u.length,p!=f.length)return!1;for(m=p;m--!==0;)if(u[m]!==f[m])return!1;return!0}if(u.constructor===RegExp)return u.source===f.source&&u.flags===f.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof f.valueOf=="function")return u.valueOf()===f.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof f.toString=="function")return u.toString()===f.toString();if(g=Object.keys(u),p=g.length,p!==Object.keys(f).length)return!1;for(m=p;m--!==0;)if(!Object.prototype.hasOwnProperty.call(f,g[m]))return!1;if(t&&u instanceof Element)return!1;for(m=p;m--!==0;)if(!((g[m]==="_owner"||g[m]==="__v"||g[m]==="__o")&&u.$$typeof)&&!c(u[g[m]],f[g[m]]))return!1;return!0}return u!==u&&f!==f}return mf=function(f,p){try{return c(f,p)}catch(m){if((m.message||"").match(/stack|recursion/i))return!1;throw m}},mf}var ax=nx();const rx=Tl(ax);var pf,mg;function ix(){if(mg)return pf;mg=1;var t=function(r,i,s,c,u,f,p,m){if(!r){var g;if(i===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[s,c,u,f,p,m],y=0;g=new Error(i.replace(/%s/g,function(){return v[y++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return pf=t,pf}var sx=ix();const pg=Tl(sx);var gf,gg;function lx(){return gg||(gg=1,gf=function(r,i,s,c){var u=s?s.call(c,r,i):void 0;if(u!==void 0)return!!u;if(r===i)return!0;if(typeof r!="object"||!r||typeof i!="object"||!i)return!1;var f=Object.keys(r),p=Object.keys(i);if(f.length!==p.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(i),g=0;g<f.length;g++){var v=f[g];if(!m(v))return!1;var y=r[v],S=i[v];if(u=s?s.call(c,y,S,v):void 0,u===!1||u===void 0&&y!==S)return!1}return!0}),gf}var ox=lx();const cx=Tl(ox);var gy=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(gy||{}),vf={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"]}},vg=Object.values(gy),Ch={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ux=Object.entries(Ch).reduce((t,[r,i])=>(t[i]=r,t),{}),ua="data-rh",$i={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Bi=(t,r)=>{for(let i=t.length-1;i>=0;i-=1){const s=t[i];if(Object.prototype.hasOwnProperty.call(s,r))return s[r]}return null},dx=t=>{let r=Bi(t,"title");const i=Bi(t,$i.TITLE_TEMPLATE);if(Array.isArray(r)&&(r=r.join("")),i&&r)return i.replace(/%s/g,()=>r);const s=Bi(t,$i.DEFAULT_TITLE);return r||s||void 0},fx=t=>Bi(t,$i.ON_CHANGE_CLIENT_STATE)||(()=>{}),yf=(t,r)=>r.filter(i=>typeof i[t]<"u").map(i=>i[t]).reduce((i,s)=>({...i,...s}),{}),hx=(t,r)=>r.filter(i=>typeof i.base<"u").map(i=>i.base).reverse().reduce((i,s)=>{if(!i.length){const c=Object.keys(s);for(let u=0;u<c.length;u+=1){const p=c[u].toLowerCase();if(t.indexOf(p)!==-1&&s[p])return i.concat(s)}}return i},[]),mx=t=>console&&typeof console.warn=="function"&&void 0,Xs=(t,r,i)=>{const s={};return i.filter(c=>Array.isArray(c[t])?!0:(typeof c[t]<"u"&&mx(`Helmet: ${t} should be of type "Array". Instead found type "${typeof c[t]}"`),!1)).map(c=>c[t]).reverse().reduce((c,u)=>{const f={};u.filter(m=>{let g;const v=Object.keys(m);for(let S=0;S<v.length;S+=1){const w=v[S],E=w.toLowerCase();r.indexOf(E)!==-1&&!(g==="rel"&&m[g].toLowerCase()==="canonical")&&!(E==="rel"&&m[E].toLowerCase()==="stylesheet")&&(g=E),r.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(g=w)}if(!g||!m[g])return!1;const y=m[g].toLowerCase();return s[g]||(s[g]={}),f[g]||(f[g]={}),s[g][y]?!1:(f[g][y]=!0,!0)}
61).reverse().forEach(m=>c.push(m));const p=Object.keys(f);for(let m=0;m<p.length;m+=1){const g=p[m],v={...s[g],...f[g]};s[g]=v}return c},[]).reverse()},px=(t,r)=>{if(Array.isArray(t)&&t.length){for(let i=0;i<t.length;i+=1)if(t[i][r])return!0}return!1},gx=t=>({baseTag:hx(["href"],t),bodyAttributes:yf("bodyAttributes",t),defer:Bi(t,$i.DEFER),encode:Bi(t,$i.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:yf("htmlAttributes",t),linkTags:Xs("link",["rel","href"],t),metaTags:Xs("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:Xs("noscript",["innerHTML"],t),onChangeClientState:fx(t),scriptTags:Xs("script",["src","innerHTML"],t),styleTags:Xs("style",["cssText"],t),title:dx(t),titleAttributes:yf("titleAttributes",t),prioritizeSeoTags:px(t,$i.PRIORITIZE_SEO_TAGS)}),vy=t=>Array.isArray(t)?t.join(""):t,vx=(t,r)=>{const i=Object.keys(t);for(let s=0;s<i.length;s+=1)if(r[i[s]]&&r[i[s]].includes(t[i[s]]))return!0;return!1},bf=(t,r)=>Array.isArray(t)?t.reduce((i,s)=>(vx(s,r)?i.priority.push(s):i.default.push(s),i),{priority:[],default:[]}):{default:t,priority:[]},yg=(t,r)=>({...t,[r]:void 0}),yx=["noscript","script","style"],Kf=(t,r=!0)=>r===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),yy=t=>Object.keys(t).reduce((r,i)=>{const s=typeof t[i]<"u"?`${i}="${t[i]}"`:`${i}`;return r?`${r} ${s}`:s},""),bx=(t,r,i,s)=>{const c=yy(i),u=vy(r);return c?`<${t} ${ua}="true" ${c}>${Kf(u,s)}</${t}>`:`<${t} ${ua}="true">${Kf(u,s)}</${t}>`},_x=(t,r,i=!0)=>r.reduce((s,c)=>{const u=c,f=Object.keys(u).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,v)=>{const y=typeof u[v]>"u"?v:`${v}="${Kf(u[v],i)}"`;return g?`${g} ${y}`:y},""),p=u.innerHTML||u.cssText||"",m=yx.indexOf(t)===-1;return`${s}<${t} ${ua}="true" ${f}${m?"/>":`>${p}</${t}>`}`},""),by=(t,r={})=>Object.keys(t).reduce((i,s)=>{const c=Ch[s];return i[c||s]=t[s],i},r),Sx=(t,r,i)=>{const s={key:r,[ua]:!0},c=by(i,s);return[bt.createElement("title",c,r)]},_c=(t,r)=>r.map((i,s)=>{const c={key:s,[ua]:!0};
61return Object.keys(i).forEach(u=>{const p=Ch[u]||u;if(p==="innerHTML"||p==="cssText"){const m=i.innerHTML||i.cssText;c.dangerouslySetInnerHTML={__html:m}}else c[p]=i[u]}),bt.createElement(t,c)}),Kn=(t,r,i=!0)=>{switch(t){case"title":return{toComponent:()=>Sx(t,r.title,r.titleAttributes),toString:()=>bx(t,r.title,r.titleAttributes,i)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>by(r),toString:()=>yy(r)};default:return{toComponent:()=>_c(t,r),toString:()=>_x(t,r,i)}}},xx=({metaTags:t,linkTags:r,scriptTags:i,encode:s})=>{const c=bf(t,vf.meta),u=bf(r,vf.link),f=bf(i,vf.script);return{priorityMethods:{toComponent:()=>[..._c("meta",c.priority),..._c("link",u.priority),..._c("script",f.priority)],toString:()=>`${Kn("meta",c.priority,s)} ${Kn("link",u.priority,s)} ${Kn("script",f.priority,s)}`},metaTags:c.default,linkTags:u.default,scriptTags:f.default}},Ex=t=>{const{baseTag:r,bodyAttributes:i,encode:s=!0,htmlAttributes:c,noscriptTags:u,styleTags:f,title:p="",titleAttributes:m,prioritizeSeoTags:g}=t;let{linkTags:v,metaTags:y,scriptTags:S}=t,w={toComponent:()=>{},toString:()=>""};return g&&({priorityMethods:w,linkTags:v,metaTags:y,scriptTags:S}=xx(t)),{priority:w,base:Kn("base",r,s),bodyAttributes:Kn("bodyAttributes",i,s),htmlAttributes:Kn("htmlAttributes",c,s),link:Kn("link",v,s),meta:Kn("meta",y,s),noscript:Kn("noscript",u,s),script:Kn("script",S,s),style:Kn("style",f,s),title:Kn("title",{title:p,titleAttributes:m},s)}},Xf=Ex,tc=[],_y=!!(typeof window<"u"&&window.document&&window.document.createElement),Jf=class{instances=[];canUseDOM=_y;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?tc:this.instances,add:t=>{(this.canUseDOM?tc:this.instances).push(t)},remove:t=>{const r=(this.canUseDOM?tc:this.instances).indexOf(t);(this.canUseDOM?tc:this.instances).splice(r,1)}}};constructor(t,r){this.context=t,this.canUseDOM=r||!1,r||(t.helmet=Xf({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},wx={},Sy=bt.createContext(wx),xy=class Ey extends _.Component{static canUseDOM=_y;helmetData;constructor(r){super(r),this.helmetData=new Jf(this.props.context||{},Ey.canUseDOM)}render(){return bt.createElement(Sy.Provider,{value:this.helmetData.value},this.props.children)}},Ui=(t,r)=>{const i=document.head||document.querySelector("head"),s=i.querySelectorAll(`${t}[${ua}]`),c=[].slice.call(s),u=[];let f;return r&&r.length&&r.forEach(p=>{const m=document.createElement(t);for(const g in p)if(Object.prototype.hasOwnProperty.call(p,g))if(g==="innerHTML")m.innerHTML=p.innerHTML;else if(g==="cssText")m.styleSheet?m.styleSheet.cssText=p.cssText:m.appendChild(document.createTextNode(p.cssText));else{const v=g,y=typeof p[v]>"u"?"":p[v];m.setAttribute(g,y)}m.setAttribute(ua,"true"),c.some((g,v)=>(f=v,m.isEqualNode(g)))?c.splice(f,1):u.push(m)}),c.forEach(p=>p.parentNode?.removeChild(p)),u.forEach(p=>i.appendChild(p)),{oldTags:c,newTags:u}},Wf=(t,r)=>{const i=document.getElementsByTagName(t)[0];if(!i)return;const s=i.getAttribute(ua),c=s?s.split(","):[],u=[...c],f=Object.keys(r);for(const p of f){const m=r[p]||"";i.getAttribute(p)!==m&&i.setAttribute(p,m),c.indexOf(p)===-1&&c.push(p);const g=u.indexOf(p);g!==-1&&u.splice(g,1)}for(let p=u.length-1;p>=0;p-=1)i.removeAttribute(u[p]);c.length===u.length?i.removeAttribute(ua):i.getAttribute(ua)!==f.join(",")&&i.setAttribute(ua,f.join(","))},jx=(t,r)=>{typeof t<"u"&&document.title!==t&&(document.title=vy(t)),Wf("title",r)},bg=(t,r)=>{const{baseTag:i,bodyAttributes:s,htmlAttributes:c,linkTags:u,metaTags:f,noscriptTags:p,onChangeClientState:m,scriptTags:g,styleTags:v,title:y,titleAttributes:S}=t;Wf("body",s),Wf("html",c),jx(y,S);const w={baseTag:Ui("base",i),linkTags:Ui("link",u),metaTags:Ui("meta",f),noscriptTags:Ui("noscript",p),scriptTags:Ui("script",g),styleTags:Ui("style",v)},E={},b={};
61Object.keys(w).forEach(j=>{const{newTags:N,oldTags:C}=w[j];N.length&&(E[j]=N),C.length&&(b[j]=w[j].oldTags)}),r&&r(),m(t,E,b)},Js=null,Ax=t=>{Js&&cancelAnimationFrame(Js),t.defer?Js=requestAnimationFrame(()=>{bg(t,()=>{Js=null})}):(bg(t),Js=null)},Tx=Ax,_g=class extends _.Component{rendered=!1;shouldComponentUpdate(t){return!cx(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let i=null;const s=gx(t.get().map(c=>{const u={...c.props};return delete u.context,u}));xy.canUseDOM?Tx(s):Xf&&(i=Xf(s)),r(i)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},qc=class extends _.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!rx(yg(this.props,"helmetData"),yg(t,"helmetData"))}mapNestedChildrenToProps(t,r){if(!r)return null;switch(t.type){case"script":case"noscript":return{innerHTML:r};case"style":return{cssText:r};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,r,i,s){return{...r,[t.type]:[...r[t.type]||[],{...i,...this.mapNestedChildrenToProps(t,s)}]}}mapObjectTypeChildren(t,r,i,s){switch(t.type){case"title":return{...r,[t.type]:s,titleAttributes:{...i}};case"body":return{...r,bodyAttributes:{...i}};case"html":return{...r,htmlAttributes:{...i}};default:return{...r,[t.type]:{...i}}}}mapArrayTypeChildrenToProps(t,r){let i={...r};return Object.keys(t).forEach(s=>{i={...i,[s]:t[s]}}),i}warnOnInvalidChildren(t,r){return pg(vg.some(i=>t.type===i),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${vg.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),pg(!r||typeof r=="string"||Array.isArray(r)&&!r.some(i=>typeof i!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,r){let i={};return bt.Children.forEach(t,s=>{if(!s||!s.props)return;const{children:c,...u}=s.props,f=Object.keys(u).reduce((m,g)=>(m[ux[g]||g]=u[g],m),{});let{type:p}=s;
vendor: 25,834 bytes, line 61
61switch(typeof p=="symbol"?p=p.toString():this.warnOnInvalidChildren(s,c),p){case"Symbol(react.fragment)":r=this.mapChildrenToProps(c,r);break;case"link":case"meta":case"noscript":case"script":case"style":i=this.flattenArrayTypeChildren(s,i,f,c);break;default:r=this.mapObjectTypeChildren(s,r,f,c);break}}),this.mapArrayTypeChildrenToProps(i,r)}render(){const{children:t,...r}=this.props;let i={...r},{helmetData:s}=r;if(t&&(i=this.mapChildrenToProps(t,i)),s&&!(s instanceof Jf)){const c=s;s=new Jf(c.context,!0),delete i.helmetData}return s?bt.createElement(_g,{...i,context:s.value}):bt.createElement(Sy.Consumer,null,c=>bt.createElement(_g,{...i,context:c}))}},Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nx={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Cx=class{#e=Nx;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,r){return this.#e.setTimeout(t,r)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,r){return this.#e.setInterval(t,r)}clearInterval(t){this.#e.clearInterval(t)}},Fr=new Cx;function Rx(t){setTimeout(t,0)}var Gr=typeof window>"u"||"Deno"in globalThis;function Xt(){}function Lx(t,r){return typeof t=="function"?t(r):t}function eh(t){return typeof t=="number"&&t>=0&&t!==1/0}function wy(t,r){return Math.max(t+(r||0)-Date.now(),0)}function yr(t,r){return typeof t=="function"?t(r):t}function Xn(t,r){return typeof t=="function"?t(r):t}function Sg(t,r){const{type:i="all",exact:s,fetchStatus:c,predicate:u,queryKey:f,stale:p}=t;if(f){if(s){if(r.queryHash!==Rh(f,r.options))return!1}else if(!_l(r.queryKey,f))return!1}if(i!=="all"){const m=r.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof p=="boolean"&&r.isStale()!==p||c&&c!==r.state.fetchStatus||u&&!u(r))}function xg(t,r){const{exact:i,status:s,predicate:c,mutationKey:u}=t;if(u){if(!r.options.mutationKey)return!1;if(i){if(Yr(r.options.mutationKey)!==Yr(u))return!1}else if(!_l(r.options.mutationKey,u))return!1}return!(s&&r.state.status!==s||c&&!c(r))}function Rh(t,r){return(r?.queryKeyHashFn||Yr)(t)}function Yr(t){return JSON.stringify(t,(r,i)=>th(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function _l(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>_l(t[i],r[i])):!1}var Ox=Object.prototype.hasOwnProperty;function jy(t,r,i=0){if(t===r)return t;if(i>500)return r;const s=Eg(t)&&Eg(r);if(!s&&!(th(t)&&th(r)))return r;const u=(s?t:Object.keys(t)).length,f=s?r:Object.keys(r),p=f.length,m=s?new Array(p):{};let g=0;for(let v=0;v<p;v++){const y=s?v:f[v],S=t[y],w=r[y];if(S===w){m[y]=S,(s?v<u:Ox.call(t,y))&&g++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){m[y]=w;continue}const E=jy(S,w,i+1);m[y]=E,E===S&&g++}return u===p&&g===u?t:m}function Lc(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const i in t)if(t[i]!==r[i])return!1;return!0}function Eg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function th(t){if(!wg(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!wg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function wg(t){return Object.prototype.toString.call(t)==="[object Object]"}function Mx(t){return new Promise(r=>{Fr.setTimeout(r,t)})}function nh(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?jy(t,r):r}function Dx(t){return t}function kx(t,r,i=0){const s=[...t,r];return i&&s.length>i?s.slice(1):s}function Ix(t,r,i=0){const s=[r,...t];return i&&s.length>i?s.slice(0,-1):s}var Lh=Symbol();function Ay(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Lh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Oh(t,r){return typeof t=="function"?t(...r):!!t}function Ux(t,r,i){let s=!1,c;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(c??=r(),s||(s=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),t}var Hx=class extends Qi{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!Gr&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Mh=new Hx;function ah(){let t,r;const i=new Promise((c,u)=>{t=c,r=u});i.status="pending",i.catch(()=>{});function s(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{s({status:"fulfilled",value:c}),t(c)},i.reject=c=>{s({status:"rejected",reason:c}),r(c)},i}var zx=Rx;function Px(){let t=[],r=0,i=p=>{p()},s=p=>{p()},c=zx;const u=p=>{r?t.push(p):c(()=>{i(p)})},f=()=>{const p=t;t=[],p.length&&c(()=>{s(()=>{p.forEach(m=>{i(m)})})})};return{batch:p=>{let m;r++;try{m=p()}finally{r--,r||f()}return m},batchCalls:p=>(...m)=>{u(()=>{p(...m)})},schedule:u,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var Mt=Px(),$x=class extends Qi{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!Gr&&window.addEventListener){const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#e}},Oc=new $x;function Bx(t){return Math.min(1e3*2**t,3e4)}function Ty(t){return(t??"online")==="online"?Oc.isOnline():!0}var rh=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ny(t){let r=!1,i=0,s;const c=ah(),u=()=>c.status!=="pending",f=b=>{if(!u()){const j=new rh(b);S(j),t.onCancel?.(j)}},p=()=>{r=!0},m=()=>{r=!1},g=()=>Mh.isFocused()&&(t.networkMode==="always"||Oc.isOnline())&&t.canRun(),v=()=>Ty(t.networkMode)&&t.canRun(),y=b=>{u()||(s?.(),c.resolve(b))},S=b=>{u()||(s?.(),c.reject(b))},w=()=>new Promise(b=>{s=j=>{(u()||g())&&b(j)},t.onPause?.()}).then(()=>{s=void 0,u()||t.onContinue?.()}),E=()=>{if(u())return;let b;const j=i===0?t.initialPromise:void 0;try{b=j??t.fn()}catch(N){b=Promise.reject(N)}Promise.resolve(b).then(y).catch(N=>{if(u())return;const C=t.retry??(Gr?0:3),M=t.retryDelay??Bx,R=typeof M=="function"?M(i,N):M,z=C===!0||typeof C=="number"&&i<C||typeof C=="function"&&C(i,N);if(r||!z){S(N);return}i++,t.onFail?.(i,N),Mx(R).then(()=>g()?void 0:w()).then(()=>{r?S(N):E()})})};return{promise:c,status:()=>c.status,cancel:f,continue:()=>(s?.(),c),cancelRetry:p,continueRetry:m,canStart:v,start:()=>(v()?E():w().then(E),c)}}var Cy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eh(this.gcTime)&&(this.#e=Fr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Gr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fr.clearTimeout(this.#e),this.#e=void 0)}},qx=class extends Cy{#e;#t;#n;#r;#a;#s;#l;constructor(t){super(),this.#l=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Ag(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Ag(this.options);r.data!==void 0&&(this.setState(jg(r.data,r.dataUpdatedAt)),this.#e=r)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const i=nh(this.state.data,t,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),i}setState(t,r){this.#i({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(Xt).catch(Xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Xn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!wy(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const i=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#l=!0,i.signal)})},c=()=>{const p=Ay(this.options,r),g=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#l=!1,this.options.persister?this.options.persister(p,g,this):p(g)},f=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:c};return s(p),p})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#i({type:"fetch",meta:f.fetchOptions?.meta}),this.#a=Ny({initialPromise:r?.initialPromise,fn:f.fetchFn,onCancel:p=>{p instanceof rh&&p.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(p,m)=>{this.#i({type:"failed",failureCount:p,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof rh){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#i({type:"error",error:p}),this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#i(t){const r=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Ry(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...jg(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?s:void 0,s;case"error":const c=t.error;return{...i,error:c,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=r(this.state),Mt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Ry(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ty(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function jg(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ag(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,i=r!==void 0,s=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Fx=class extends Qi{constructor(t,r){super(),this.options=r,this.#e=t,this.#i=null,this.#l=ah(),this.bindMethods(),this.setOptions(r)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#s;#l;#i;#p;#f;#h;#c;#u;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Tg(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ih(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ih(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const r=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),r._defaulted&&!Lc(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Ng(this.#t,i,this.options,r)&&this.#d(),this.updateResult(),s&&(this.#t!==i||Xn(this.options.enabled,this.#t)!==Xn(r.enabled,this.#t)||yr(this.options.staleTime,this.#t)!==yr(r.staleTime,this.#t))&&this.#g();const c=this.#v();s&&(this.#t!==i||Xn(this.options.enabled,this.#t)!==Xn(r.enabled,this.#t)||c!==this.#o)&&this.#y(c)}getOptimisticResult(t){const r=this.#e.getQueryCache().build(this.#e,t),i=this.createResult(r,t);return Zx(this,i)&&(this.#r=i,this.#s=this.options,this.#a=this.#t.state),i}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),r?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#e.defaultQueryOptions(t),i=this.#e.getQueryCache().build(this.#e,r);return i.fetch().then(()=>this.createResult(i,r))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(t){this.#x();let r=this.#t.fetch(this.options,t);return t?.throwOnError||(r=r.catch(Xt)),r}#g(){this.#_();const t=yr(this.options.staleTime,this.#t);if(Gr||this.#r.isStale||!eh(t))return;const i=wy(this.#r.dataUpdatedAt,t)+1;this.#c=Fr.setTimeout(()=>{this.#r.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#o=t,!(Gr||Xn(this.options.enabled,this.#t)===!1||!eh(this.#o)||this.#o===0)&&(this.#u=Fr.setInterval(()=>{(this.options.refetchIntervalInBackground||Mh.isFocused())&&this.#d()},this.#o))}#b(){this.#g(),this.#y(this.#v())}#_(){this.#c&&(Fr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Fr.clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const i=this.#t,s=this.options,c=this.#r,u=this.#a,f=this.#s,m=t!==i?t.state:this.#n,{state:g}=t;let v={...g},y=!1,S;if(r._optimisticResults){const I=this.hasListeners(),U=!I&&Tg(t,r),L=I&&Ng(t,i,r,s);(U||L)&&(v={...v,...Ry(g.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:w,errorUpdatedAt:E,status:b}=v;S=v.data;let j=!1;if(r.placeholderData!==void 0&&S===void 0&&b==="pending"){let I;c?.isPlaceholderData&&r.placeholderData===f?.placeholderData?(I=c.data,j=!0):I=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,I!==void 0&&(b="success",S=nh(c?.data,I,r),y=!0)}if(r.select&&S!==void 0&&!j)if(c&&S===u?.data&&r.select===this.#p)S=this.#f;else try{this.#p=r.select,S=r.select(S),S=nh(c?.data,S,r),this.#f=S,this.#i=null}catch(I){this.#i=I}this.#i&&(w=this.#i,S=this.#f,E=Date.now(),b="error");const N=v.fetchStatus==="fetching",C=b==="pending",M=b==="error",R=C&&N,z=S!==void 0,k={status:b,fetchStatus:v.fetchStatus,isPending:C,isSuccess:b==="success",isError:M,isInitialLoading:R,isLoading:R,data:S,dataUpdatedAt:v.dataUpdatedAt,error:w,errorUpdatedAt:E,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:N,isRefetching:N&&!C,isLoadingError:M&&!z,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:M&&z,isStale:Dh(t,r),refetch:this.refetch,promise:this.#l,isEnabled:Xn(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=k.data!==void 0,U=k.status==="error"&&!I,L=K=>{U?K.reject(k.error):I&&K.resolve(k.data)},B=()=>{const K=this.#l=k.promise=ah();L(K)},Q=this.#l;switch(Q.status){case"pending":t.queryHash===i.queryHash&&L(Q);break;case"fulfilled":(U||k.data!==Q.value)&&B();break;case"rejected":(!U||k.error!==Q.reason)&&B();break}}return k}updateResult(){const t=this.#r,r=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Lc(r,t))return;this.#r=r;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const u=new Set(c??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const p=f;return this.#r[p]!==t[p]&&u.has(p)})};this.#E({listeners:i()})}#x(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const r=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(t){Mt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Vx(t,r){return Xn(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Tg(t,r){return Vx(t,r)||t.state.data!==void 0&&ih(t,r,r.refetchOnMount)}function ih(t,r,i){if(Xn(r.enabled,t)!==!1&&yr(r.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&Dh(t,r)}return!1}function Ng(t,r,i,s){return(t!==r||Xn(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&Dh(t,i)}function Dh(t,r){return Xn(r.enabled,t)!==!1&&t.isStaleByTime(yr(r.staleTime,t))}function Zx(t,r){return!Lc(t.getCurrentResult(),r)}function Cg(t){return{onFetch:(r,i)=>{const s=r.options,c=r.fetchOptions?.meta?.fetchMore?.direction,u=r.state.data?.pages||[],f=r.state.data?.pageParams||[];let p={pages:[],pageParams:[]},m=0;const g=async()=>{let v=!1;const y=E=>{Ux(E,()=>r.signal,()=>v=!0)},S=Ay(r.options,r.fetchOptions),w=async(E,b,j)=>{if(v)return Promise.reject();if(b==null&&E.pages.length)return Promise.resolve(E);const C=(()=>{const V={client:r.client,queryKey:r.queryKey,pageParam:b,direction:j?"backward":"forward",meta:r.options.meta};return y(V),V})(),M=await S(C),{maxPages:R}=r.options,z=j?Ix:kx;return{pages:z(E.pages,M,R),pageParams:z(E.pageParams,b,R)}};if(c&&u.length){const E=c==="backward",b=E?Gx:Rg,j={pages:u,pageParams:f},N=b(s,j);p=await w(j,N,E)}else{const E=t??u.length;do{const b=m===0?f[0]??s.initialPageParam:Rg(s,p);if(m>0&&b==null)break;p=await w(p,b),m++}while(m<E)}return p};r.options.persister?r.fetchFn=()=>r.options.persister?.(g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i):r.fetchFn=g}}}function Rg(t,{pages:r,pageParams:i}){const s=r.length-1;return r.length>0?t.getNextPageParam(r[s],r,i[s],i):void 0}function Gx(t,{pages:r,pageParams:i}){return r.length>0?t.getPreviousPageParam?.(r[0],r,i[0],i):void 0}var Yx=class extends Cy{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Ly(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(r=>r!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#a({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ny({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#a({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#r.canStart();try{if(s)r();else{this.#a({type:"pending",variables:t,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,i);const f=await this.options.onMutate?.(t,i);f!==this.state.context&&this.#a({type:"pending",context:f,variables:t,isPaused:c})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,t,this.state.context,this,i),await this.options.onSuccess?.(u,t,this.state.context,i),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(u,null,t,this.state.context,i),this.#a({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,t,this.state.context,this,i)}catch(f){Promise.reject(f)}try{await this.options.onError?.(u,t,this.state.context,i)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,i)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,u,t,this.state.context,i)}catch(f){Promise.reject(f)}throw this.#a({type:"error",error:u}),u}finally{this.#n.runNext(this)}}#a(t){const r=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Mt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Ly(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qx=class extends Qi{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,r,i){const s=new Yx({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:i});return this.add(s),s}add(t){this.#e.add(t);const r=nc(t);if(typeof r=="string"){const i=this.#t.get(r);i?i.push(t):this.#t.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const r=nc(t);if(typeof r=="string"){const i=this.#t.get(r);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&this.#t.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=nc(t);
61if(typeof r=="string"){const s=this.#t.get(r)?.find(c=>c.state.status==="pending");return!s||s===t}else return!0}runNext(t){const r=nc(t);return typeof r=="string"?this.#t.get(r)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Mt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const r={exact:!0,...t};return this.getAll().find(i=>xg(r,i))}findAll(t={}){return this.getAll().filter(r=>xg(t,r))}notify(t){Mt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Mt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Xt))))}};function nc(t){return t.options.scope?.id}var Kx=class extends Qi{#e;#t=void 0;#n;#r;constructor(r,i){super(),this.#e=r,this.setOptions(i),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const i=this.options;this.options=this.#e.defaultMutationOptions(r),Lc(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Yr(i.mutationKey)!==Yr(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#s(r)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(r,i){return this.#r=i,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??Ly();this.#t={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#s(r){Mt.batch(()=>{if(this.#r&&this.hasListeners()){const i=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(r?.type==="success"){try{this.#r.onSuccess?.(r.data,i,s,c)}catch(u){Promise.reject(u)}try{this.#r.onSettled?.(r.data,null,i,s,c)}catch(u){Promise.reject(u)}}else if(r?.type==="error"){try{this.#r.onError?.(r.error,i,s,c)}catch(u){Promise.reject(u)}try{this.#r.onSettled?.(void 0,r.error,i,s,c)}catch(u){Promise.reject(u)}}}this.listeners.forEach(i=>{i(this.#t)})})}},Xx=class extends Qi{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,r,i){const s=r.queryKey,c=r.queryHash??Rh(s,r);let u=this.get(c);return u||(u=new qx({client:t,queryKey:s,queryHash:c,options:t.defaultQueryOptions(r),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#e.get(t.queryHash);r&&(t.destroy(),r===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(i=>Sg(r,i))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(i=>Sg(t,i)):r}notify(t){Mt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Jx=class{#e;#t;#n;#r;#a;#s;#l;#i;constructor(t={}){this.#e=t.queryCache||new Xx,this.#t=t.mutationCache||new Qx,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=Mh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Oc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#e.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=this.#e.build(this,r),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(yr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:r,state:i})=>{const s=i.data;return[r,s]})}setQueryData(t,r,i){const s=this.defaultQueryOptions({queryKey:t}),u=this.#e.get(s.queryHash)?.state.data,f=Lx(r,u);if(f!==void 0)return this.#e.build(this,s).setData(f,{...i,manual:!0})}
vendor: 6,813 bytes, line 61
61setQueriesData(t,r,i){return Mt.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,r,i)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#e.get(r.queryHash)?.state}removeQueries(t){const r=this.#e;Mt.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=this.#e;return Mt.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},s=Mt.batch(()=>this.#e.findAll(t).map(c=>c.cancel(i)));return Promise.all(s).then(Xt).catch(Xt)}invalidateQueries(t,r={}){return Mt.batch(()=>(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},s=Mt.batch(()=>this.#e.findAll(t).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let u=c.fetch(void 0,i);return i.throwOnError||(u=u.catch(Xt)),c.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(Xt)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=this.#e.build(this,r);return i.isStaleByTime(yr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Xt).catch(Xt)}fetchInfiniteQuery(t){return t.behavior=Cg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Xt).catch(Xt)}ensureInfiniteQueryData(t){return t.behavior=Cg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Oc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#r.set(Yr(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],i={};return r.forEach(s=>{_l(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,r){this.#a.set(Yr(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],i={};return r.forEach(s=>{_l(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Rh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Lh&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Oy=_.createContext(void 0),Jr=t=>{const r=_.useContext(Oy);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Wx=({client:t,children:r})=>(_.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),o.jsx(Oy.Provider,{value:t,children:r})),My=_.createContext(!1),e4=()=>_.useContext(My);My.Provider;function t4(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var n4=_.createContext(t4()),a4=()=>_.useContext(n4),r4=(t,r,i)=>{const s=i?.state.error&&typeof t.throwOnError=="function"?Oh(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(r.isReset()||(t.retryOnMount=!1))},i4=t=>{_.useEffect(()=>{t.clearReset()},[t])},s4=({result:t,errorResetBoundary:r,throwOnError:i,query:s,suspense:c})=>t.isError&&!r.isReset()&&!t.isFetching&&s&&(c&&t.data===void 0||Oh(i,[t.error,s])),l4=t=>{if(t.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},o4=(t,r)=>t.isLoading&&t.isFetching&&!r,c4=(t,r)=>t?.suspense&&r.isPending,Lg=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function u4(t,r,i){const s=e4(),c=a4(),u=Jr(),f=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const p=u.getQueryCache().get(f.queryHash);f._optimisticResults=s?"isRestoring":"optimistic",l4(f),r4(f,c,p),i4(c);const m=!u.getQueryCache().get(f.queryHash),[g]=_.useState(()=>new r(u,f)),v=g.getOptimisticResult(f),y=!s&&t.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(S=>{const w=y?g.subscribe(Mt.batchCalls(S)):Xt;return g.updateResult(),w},[g,y]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),_.useEffect(()=>{g.setOptions(f)},[f,g]),c4(f,v))throw Lg(f,g,c);if(s4({result:v,errorResetBoundary:c,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw v.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(f,v),f.experimental_prefetchInRender&&!Gr&&o4(v,s)&&(m?Lg(f,g,c):p?.promise)?.catch(Xt).finally(()=>{g.updateResult()}),f.notifyOnChangeProps?v:g.trackResult(v)}function Oe(t,r){return u4(t,Fx)}function Dy(t,r){const i=Jr(),[s]=_.useState(()=>new Kx(i,t));_.useEffect(()=>{s.setOptions(t)},[s,t]);const c=_.useSyncExternalStore(_.useCallback(f=>s.subscribe(Mt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=_.useCallback((f,p)=>{s.mutate(f,p).catch(Xt)},[s]);if(c.error&&Oh(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}function Mc(t){(t==="device"?window.matchMedia("(prefers-color-scheme: dark)").matches:t==="dark")?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")}function ky(t,r){try{return t.getItem(r)}catch{return null}}function Iy(t,r,i){try{t.setItem(r,i)}catch{}}function Uy(t,r){try{t.removeItem(r)}catch{}}const Wt={getItem:t=>ky(localStorage,t),setItem:(t,r)=>Iy(localStorage,t,r),removeItem:t=>Uy(localStorage,t)},Qr={getItem:t=>ky(sessionStorage,t),setItem:(t,r)=>Iy(sessionStorage,t,r),removeItem:t=>Uy(sessionStorage,t)};function IA(t){return t?Wt:Qr}const Rt={DARK_MODE:"chirp-dark-mode",STREAMING_QUALITY:"chirp-streaming-quality",PROFILE_PENDING_SYNC:"chirp-profile-pending-sync",APP_ICON:"chirp-app-icon",AUTH_TOKEN:"chirp-auth-token",AUDIO_VOLUME:"chirp-audio-volume"},dl={DARK_MODE:"light",STREAMING_QUALITY:"128",AUDIO_VOLUME:1},kh="https://chirpng-prod-cms.chirpradio.org",it=`${kh}/api`,It=it;function d4(){return Wt.getItem(Rt.AUTH_TOKEN)}function f4(t){Wt.setItem(Rt.AUTH_TOKEN,t)}function h4(){Wt.removeItem(Rt.AUTH_TOKEN)}function fa(t){const i=Ge.isNativePlatform()?d4():null;if(i){const s=new Headers(t?.headers);return s.set("Authorization",`JWT ${i}`),{...t,headers:s}}return{...t,credentials:"include"}}const Br={LISTENERS_ME:`${it}/listeners/me`,LISTENERS_LOGIN:`${it}/listeners/login`,LISTENERS_LOGOUT:`${it}
61/listeners/logout`,LISTENERS_REGISTER:`${it}/listeners/signup`,MEDIA_UPLOAD:`${it}/media`,LISTENERS_VERIFY:`${it}/listeners/verify`,LISTENERS_REQUEST_EMAIL_CHANGE:`${it}/listeners/request-email-change`,LISTENERS_VERIFY_EMAIL_CHANGE:`${it}/listeners/verify-email-change`,LISTENERS_CANCEL_EMAIL_CHANGE:`${it}/listeners/cancel-email-change`},Fc="https://peridot.streamguys1.com:5185/live",m4="https://peridot.streamguys1.com:5180/live-64kb";async function vn(t,r,i){const s=It.startsWith("http")?`${It}/${t}`:`${window.location.origin}${It}/${t}`,c=new URL(s);r&&Object.entries(r).forEach(([p,m])=>{c.searchParams.append(p,String(m))}),r?.limit||c.searchParams.append("limit","100");const u=await fetch(c.toString(),{signal:i});if(!u.ok)throw new Error(`Failed to fetch ${t}: ${u.statusText}`);return(await u.json()).docs}async function p4(t,r){const i=It.startsWith("http")?`${It}/${t}`:`${window.location.origin}${It}/${t}`,s=await fetch(i,{signal:r});if(!s.ok)throw new Error(`Failed to fetch ${t}: ${s.statusText}`);return s.json()}async function Dt(t,r,i){const s=It.startsWith("http")?`${It}/${t}`:`${window.location.origin}${It}/${t}`,c=new URL(s);r&&Object.entries(r).forEach(([f,p])=>{c.searchParams.append(f,String(p))}),r?.limit||c.searchParams.append("limit","100");const u=await fetch(c.toString(),{signal:i});if(!u.ok)throw new Error(`Failed to fetch ${t}: ${u.statusText}`);return u.json()}async function UA(t,r,i){const s=It.startsWith("http")?`${It}/${t}/${r}`:`${window.location.origin}${It}/${t}/${r}`,c=await fetch(s,fa({method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}));if(!c.ok){const u=await c.text();throw new Error(`Failed to update ${t}/${r}: ${c.statusText} - ${u}`)}return c.json()}async function HA(t){const r=It.startsWith("http")?`${It}/submit-song-request`:`${window.location.origin}${It}/submit-song-request`,i=await fetch(r,fa({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}));if(!i.ok)throw new Error("Failed to submit song request. Please try again.");return i.json()}async function zA(t){const r=It.startsWith("http")?`${It}/contact`:`${window.location.origin}${It}/contact`,i=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await i.json();if(!i.ok||!s.success)throw new Error(s.error||"Failed to send message. Please try again.");return{success:!0}}const zi=tt("cmsListeners");function qi(t){return t?typeof t=="string"&&(t.startsWith("http")||t.startsWith("/"))?t:typeof t=="object"&&t!==null&&"url"in t?t.url:"":""}function Ih(t){return{...t,id:String(t.id),musicCollection:Array.isArray(t.musicCollection)?t.musicCollection:[],favoriteDJs:Array.isArray(t.favoriteDJs)?t.favoriteDJs.map(r=>typeof r=="object"&&r.djId?r.djId:String(r)):[],preferences:t.preferences||{}}}async function PA(t){try{const r=await fetch(`${it}/listeners/${t}`,fa());if(!r.ok){if(r.status===404)return null;throw new Error(`Failed to fetch listener: ${r.statusText}`)}const i=await r.json();return Ih(i)}catch(r){return zi.error("[cmsListeners] Error fetching listener by ID:",r),null}}async function Hy(t,r){try{zi.log("[cmsListeners] Updating listener:",t,"with data:",JSON.stringify(r,null,2));const i=await fetch(`${it}/listeners/${t}`,fa({method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}));if(zi.log("[cmsListeners] Update response status:",i.status,i.statusText),!i.ok){const c=await i.text();throw zi.error("[cmsListeners] Update failed with error:",c),new Error(`Failed to update listener ${t}: ${i.statusText} - ${c}`)}const s=await i.json();return zi.log("[cmsListeners] Update successful:",s),Ih(s)}catch(i){throw zi.error("[cmsListeners] Error updating listener:",i),i}}const Sc=tt("useCurrentListener");async function g4(t){try{const r=await fetch(`${it}/djs?where[listener][equals]=${t.id}&depth=1`,fa());if(!r.ok)return t;const s=(await r.json()).docs?.[0];return s?{...t,isDJ:!0,djDocId:s.id,djId:s.djId,djName:s.djName,showName:s.showName,djExcerpt:s.djExcerpt,djBio:s.djBio,djDonationLink:s.djDonationLink,showTime:s.showSchedules,profileImage:s.profileImage,fullProfileImage:s.fullProfileImage,profileImageOrientation:s.profileImageOrientation||t.profileImageOrientation,socialLinks:s.socialLinks||t.socialLinks}:t}catch(r){return Sc.error("Failed to fetch DJ data:",r),t}}async function v4(){Sc.log("Fetching /listeners/me from:",Br.LISTENERS_ME);const t=await fetch(`${Br.LISTENERS_ME}?depth=1`,fa());if(Sc.log("/listeners/me response status:",t.status),t.status===401)return null;if(!t.ok)throw new Error("Failed to fetch listener");const r=await t.json();if(Sc.log("/listeners/me response user:",r.user?.email,r.user?.firstName,r.user?.lastName),!r.user)return null;const i=Ih(r.user);return g4(i)}function xr(){return Oe({queryKey:["listener","me"],queryFn:v4,staleTime:3e4,retry:!1,refetchOnWindowFocus:!0})}const ac=tt("AuthContext");function y4(t){Wt.removeItem(Rt.DARK_MODE),Wt.removeItem(Rt.STREAMING_QUALITY),Wt.removeItem(Rt.PROFILE_PENDING_SYNC),Qr.setItem(Rt.DARK_MODE,dl.DARK_MODE),Qr.setItem(Rt.STREAMING_QUALITY,dl.
61STREAMING_QUALITY),Mc(dl.DARK_MODE)}function b4(t){const r=t?.darkMode;(r==="light"||r==="dark"||r==="device")&&(Wt.setItem(Rt.DARK_MODE,r),Qr.removeItem(Rt.DARK_MODE),Mc(r))}const zy=_.createContext(void 0);function _4({children:t}){const r=Jr(),{data:i,isPending:s}=xr(),[c,u]=_.useState(!1);_.useEffect(()=>{s||u(i!=null)},[i,s]);const f=_.useCallback(()=>{fetch(Br.LISTENERS_LOGOUT,fa({method:"POST"})).catch(S=>{ac.warn("Server-side logout failed (local state cleared regardless):",S)}),h4(),u(!1),r.setQueryData(["listener","me"],null),y4()},[r]),p=_.useCallback(async S=>{if(!i?.email)return!1;try{return(await fetch(Br.LISTENERS_LOGIN,fa({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i.email,password:S})}))).ok}catch{return!1}},[i?.email]),m=_.useCallback(async(S,w)=>{try{const E=await fetch(`${Br.LISTENERS_LOGIN}?depth=1`,fa({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:S,password:w})}));if(!E.ok)return E.status===401?{success:!1,error:"Invalid email or password"}:{success:!1,error:"Login failed. Please try again."};const b=await E.json();if(b.user){b.token&&Ge.isNativePlatform()&&f4(b.token);const j={...b.user,memberSince:b.user.memberSince||b.user.createdAt};return r.invalidateQueries({queryKey:["listener","me"]}),u(!0),b4(j.preferences),{success:!0}}return{success:!1,error:"Invalid response from server"}}catch(E){return ac.error("Login error:",E),{success:!1,error:"Network error. Please check your connection."}}},[r]),g=_.useCallback(async(S,w,E)=>{try{const b=await fetch(Br.LISTENERS_REGISTER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:S,password:w,turnstileToken:E})});if(!b.ok){let j="Sign up failed. Please try again.";try{const N=await b.json();N?.error&&(j=N.error)}catch{}return{success:!1,error:j}}return{success:!0}}catch(b){return ac.error("Sign up error:",b),{success:!1,error:"Network error. Please check your connection."}}},[]),v=_.useCallback(async S=>{try{return(await fetch(`${Br.LISTENERS_VERIFY}/${S}`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok?{success:!0}:{success:!1,error:"This verification link is invalid or has expired. Please try signing up again."}}catch(w){return ac.error("Email verification network error:",w),{success:!1,error:"Network error. Please check your connection and try again."}}},[]),y=_.useMemo(()=>({isLoggedIn:c,isAuthPending:s,loginWithPassword:m,signUpWithPassword:g,verifyEmail:v,signOut:f,verifyPassword:p}),[c,s,m,g,v,f,p]);return o.jsx(zy.Provider,{value:y,children:t})}function Wr(){const t=_.useContext(zy);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const Py=_.createContext(void 0),$y="chirp-cart";function S4(){try{const t=Wt.getItem($y);if(t)return JSON.parse(t)}catch{}return[]}function x4(t){Wt.setItem($y,JSON.stringify(t))}function E4({children:t}){const[r,i]=_.useState(S4),s=_.useCallback(v=>{i(y=>{const S=v(y);return x4(S),S})},[]),c=_.useCallback(v=>{const y=`${v.name}-${v.size||"nosize"}-${Date.now()}`;s(S=>[...S,{...v,id:y}])},[s]),u=_.useCallback(v=>{s(y=>y.filter((S,w)=>w!==v))},[s]),f=_.useCallback(()=>{s(()=>[])},[s]),p=_.useCallback(()=>r.reduce((v,y)=>v+y.quantity,0),[r]),m=_.useCallback(()=>r.reduce((v,y)=>v+y.price*y.quantity,0),[r]),g=_.useMemo(()=>({items:r,addToCart:c,removeItem:u,emptyCart:f,getTotalItems:p,getTotalPrice:m}),[r,c,u,f,p,m]);return o.jsx(Py.Provider,{value:g,children:t})}function w4(){const t=_.useContext(Py);if(t===void 0)throw new Error("useCart must be used within a CartProvider");return t}const By=_.createContext(void 0);function j4({children:t}){const[r,i]=_.useState({isVisible:!1,message:"",type:"success",duration:5e3,nonce:0}),[s,c]=_.useState({isOpen:!1,title:"",message:"",confirmText:"Confirm",cancelText:"Cancel",onConfirm:void 0,onCancel:void 0,size:"small"}),u=_.useCallback(({message:y,type:S="success",duration:w=5e3})=>{i(E=>({isVisible:!0,message:y,type:S,duration:w,nonce:E.nonce+1}))},[]),f=_.useCallback(()=>{i(y=>({...y,isVisible:!1}))},[]),p=_.useCallback(({title:y,message:S,confirmText:w="Confirm",cancelText:E="Cancel",onConfirm:b,onCancel:j,size:N="small"})=>{c({isOpen:!0,title:y,message:S,confirmText:w,cancelText:E,onConfirm:b,onCancel:j,size:N})},[]),m=_.useCallback(()=>{c(y=>({...y,isOpen:!1,onConfirm:void 0,onCancel:void 0}))},[]);_.useEffect(()=>(window.showToast=(y,S="success",w=5e3)=>{i(E=>({isVisible:!0,message:y,type:S,duration:w,nonce:E.nonce+1}))},()=>{delete window.showToast}),[]);const g=_.useMemo(()=>({...r,onClose:f}),[r,f]),v=_.useMemo(()=>({showToast:u,showModal:p,hideModal:m,toastState:g,modalState:s}),[u,p,m,g,s]);return o.jsx(By.Provider,{value:v,children:t})}function rn(){const t=_.useContext(By);if(!t)throw new Error("useNotification must be used within a NotificationProvider");return t}const Sa=On("NativeAudioPlayer"),ol=On("NativeAudioBridge",{web:()=>({play:async()=>{},pause:async()=>{},stop:async()=>{},isPlaying:async()=>({isPlaying:!1}),addListener:()=>({remove:()=>{}})})}),qy=On("NowPlayingPlugin"),Fy=Object.freeze(Object.defineProperty({__proto__:null,default:qy},Symbol.toStringTag,{value:"Module"})),A4=On("ChirpMediaPlugin"),ve=tt("AudioPlaybackContext");let fl=!1,rc=!1,ic=null;async function Og(t){if(fl){ve.log("Native player already initialized, skipping");return}return rc&&ic?(ve.log("Native player initialization in progress, waiting..."),ic):(rc=!0,ve.log("Initializing native player with URL:",t),ic=new Promise((r,i)=>{Sa.setStreamUrl({url:t}).then(()=>{ve.log("Native player initialized successfully"),fl=!0,rc=!1,r()}).catch(s=>{ve.error("Failed to initialize native player:",s),rc=!1,i(s)})}),ic)}const Uh=_.createContext(void 0);function T4({children:t,defaultStreamUrl:r=Fc}
61){const i=_.useCallback(()=>(Wt.getItem(Rt.STREAMING_QUALITY)||Qr.getItem(Rt.STREAMING_QUALITY)||dl.STREAMING_QUALITY)==="64"?m4:r,[r]),[s,c]=_.useState(null),u=_.useCallback(q=>c(q),[]),{showToast:f}=rn(),[p,m]=_.useState(i()),[g,v]=_.useState(!1),[y,S]=_.useState(!1),[w,E]=_.useState(!1),b=_.useRef(null),[j,N]=_.useState(()=>{const q=Wt.getItem(Rt.AUDIO_VOLUME),O=q!=null?parseFloat(q):NaN;return Number.isFinite(O)?Math.max(0,Math.min(1,O)):dl.AUDIO_VOLUME}),C=_.useCallback(q=>{const O=Math.max(0,Math.min(1,Number.isFinite(q)?q:1));N(O),b.current&&(b.current.volume=O);try{Wt.setItem(Rt.AUDIO_VOLUME,String(O))}catch{}},[]),M=_.useRef(null),R=_.useRef(null),z=_.useRef(null),V=_.useRef(!1),k=_.useRef(!1),I=_.useRef(p),U=_.useRef(!1);k.current=w,I.current=p,U.current=g;const L=_.useRef(!1);_.useEffect(()=>{const q=Ge.getPlatform()==="ios",O=Ge.getPlatform()==="android",Y=Z=>{ve.log("Playback state changed from native:",Z.isPlaying),v(Z.isPlaying)};if(q){let Z,ee;return Sa.addListener("playbackStateChanged",Y).then(ne=>{Z=()=>ne.remove()}),Sa.addListener("bufferingStateChanged",ne=>{ve.log("Buffering state changed from native:",ne.isBuffering),S(ne.isBuffering)}).then(ne=>{ee=()=>ne.remove()}),()=>{Z?.(),ee?.()}}else if(O){let Z,ee;return A4.getCurrentState().then(ne=>{ve.log("Syncing webview with existing service state:",ne),ne.isPlaying!==U.current&&(ve.log(`Service playing=${ne.isPlaying}, webview=${U.current} - syncing to service state`),v(ne.isPlaying))}).catch(ne=>{ve.error("Failed to get current service state:",ne)}),ol.addListener("playbackStateChanged",Y).then(ne=>{Z=()=>ne.remove()}),qy.addListener("mediaCommand",ne=>{if(ve.log("Media command from Android Auto/lock screen:",ne.command),ne.command==="play"&&R.current){if(!L.current){ve.log("Android Auto play command ignored - user has not explicitly started playback yet");return}ve.log("Android Auto triggered play - calling play() method"),R.current().catch(A=>{ve.error("Failed to handle Android Auto play command:",A)})}else ne.command==="pause"&&z.current&&(ve.log("Android Auto triggered pause - calling pause() method"),z.current())}).then(ne=>{ee=()=>ne.remove()}),()=>{Z?.(),ee?.()}}},[]),_.useEffect(()=>{const q=g,O=Ge.getPlatform(),Y=O==="ios",Z=O==="android";if(ve.log("Initializing audio player for platform:",O,`isAndroid=${Z}, isIOS=${Y}`),E(!1),Y){ve.log("Using native AVPlayer for iOS"),ve.log("Stream URL:",p);const ee=()=>{q&&(ve.log("Stopping playback before URL change..."),Sa.pause().catch(ne=>{ve.error("Error pausing before URL change:",ne)})),Sa.setStreamUrl({url:p}).then(()=>(ve.log("Native player URL updated to:",p),fl=!1,Og(p))).then(()=>{ve.log("Native player ready"),E(!0),q&&(ve.log("Restarting playback after stream change..."),Sa.play().then(()=>ve.log("Playback restarted successfully")).catch(ne=>{ve.error("Error restarting native audio:",ne),v(!1)}))}).catch(ne=>{ve.error("Error updating native player URL:",ne),E(!0)})};Sa.getPlaybackState().then(ne=>{if(ne.isPlaying){ve.log("Native player already playing â syncing state without disrupting"),v(!0),E(!0),fl=!0;return}ee()}).catch(ne=>{ve.error("Failed to get native playback state:",ne),ee()})}else if(Z)ve.log("Using native audio bridge for Android"),E(!0),q&&(ve.log("Restarting playback after stream change..."),ol.play().then(()=>ve.log("Playback restarted successfully")).catch(ee=>{ve.error("Error restarting native audio:",ee),v(!1)}));else{ve.log("Creating new HTML5 audio player for web with URL:",p),b.current&&(ve.log("Stopping old audio player..."),b.current.pause(),b.current.src="",b.current=null);const ee=new Audio(p);ee.autoplay=!1,ee.loop=!1,ee.preload="none",ee.volume=j,ee.setAttribute("playsinline","true"),ee.removeAttribute("title");const ne=()=>S(!0),A=()=>S(!1),F=()=>S(!1),X=()=>S(!1);ee.addEventListener("waiting",ne),ee.addEventListener("playing",A),ee.addEventListener("error",F),ee.addEventListener("pause",X),M.current={onWaiting:ne,onPlaying:A,onError:F,onPause:X},ve.log("New audio player created, volume:",ee.volume),b.current=ee,E(!0),q&&(ve.log("Restarting playback with new stream URL..."),ee.play().then(()=>{ve.log("Playback restarted successfully"),v(!0)}).catch(ie=>{ve.error("Error restarting audio after stream change:",ie),v(!1)}))}return()=>{if(!Y&&!Z&&b.current){const ee=b.current,ne=M.current;ne&&(ee.removeEventListener("waiting",ne.onWaiting),ee.removeEventListener("playing",ne.onPlaying),ee.removeEventListener("error",ne.onError),ee.removeEventListener("pause",ne.onPause),M.current=null),ee.pause(),ee.src="",b.current=null}}},[p]),_.useEffect(()=>{ve.log("[AudioPlaybackContext] Setting up quality change listener");const q=O=>{if(O.key===Rt.STREAMING_QUALITY){const Y=i();Y!==I.current&&(ve.log("Stream URL changed to:",Y),m(Y))}if(O.key===Rt.AUDIO_VOLUME&&O.newValue!=null){const Y=parseFloat(O.newValue);if(Number.isFinite(Y)){const Z=Math.max(0,Math.min(1,Y));N(Z),b.current&&(b.current.volume=Z)}}};return ve.log("[AudioPlaybackContext] Listener setup complete"),window.addEventListener("storage",q),()=>{ve.log("[AudioPlaybackContext] Cleaning up listeners"),window.removeEventListener("storage",q)}},[i]);const B=_.useCallback(async()=>
61{if(L.current=!0,!k.current){ve.log("Player not ready yet, waiting...");const Z=Date.now();for(;!k.current&&Date.now()-Z<3e3;)await new Promise(ee=>setTimeout(ee,100));if(!k.current)throw ve.error("Player initialization timeout"),new Error("Player not initialized")}const q=Ge.getPlatform();ve.log("Play called, platform:",q);const O=q==="ios",Y=q==="android";if(ve.log(`isAndroid=${Y}, isIOS=${O}`),O){ve.log("Taking iOS native path");try{v(!0),S(!0),await Sa.play(),u("stream")}catch(Z){ve.error("NativeAudioPlayer.play() failed:",Z);try{fl=!1,await Og(I.current);const ee=await Sa.play();ve.log("Recovery successful:",ee),v(!0)}catch(ee){throw ve.error("Recovery failed:",ee),v(!1),ee}}}else if(Y){ve.log("Taking Android native path - calling NativeAudioBridge.play()");try{v(!0),ve.log("About to call NativeAudioBridge.play()..."),await ol.play(),ve.log("NativeAudioBridge.play() returned successfully"),u("stream")}catch(Z){throw ve.error("NativeAudioBridge.play() failed:",Z),v(!1),Z}}else if(b.current){ve.log("Taking web audio path (HTML5)");try{S(!0),ve.log("Reconnecting to live edge..."),b.current.pause(),b.current.src="",b.current.load(),b.current.src=`${I.current}?t=${Date.now()}`,b.current.load(),await b.current.play(),v(!0),u("stream"),ve.log("Web audio playing successfully")}catch(Z){throw ve.error("Web audio failed:",Z),Z}}else throw ve.error("No audio player available - audioRef.current is null"),new Error("Audio player not initialized")},[u]),Q=_.useCallback(()=>{const q=Ge.getPlatform();ve.log("Pause called, platform:",q),q==="ios"?(ve.log("Pausing iOS native player"),v(!1),S(!1),Sa.pause().catch(Z=>{ve.error("Error pausing native audio:",Z),v(!0)})):q==="android"?(ve.log("Pausing Android native player via NativeAudioBridge"),v(!1),ol.pause().catch(Z=>{ve.error("Error pausing native audio:",Z),v(!0)})):b.current&&(ve.log("Pausing web audio (HTML5)"),b.current.pause(),v(!1))},[]),K=_.useCallback(async()=>{if(V.current){ve.log("Ignoring toggle - transition already in progress");return}V.current=!0;try{U.current?Q():await B()}catch{f({message:"Unable to play stream. Please try again.",type:"error",duration:5e3})}finally{setTimeout(()=>{V.current=!1},300)}},[B,Q,f]);_.useEffect(()=>{R.current=B,z.current=Q},[B,Q]),_.useEffect(()=>{s!==null&&s!=="stream"&&U.current&&Q()},[s,Q]),_.useEffect(()=>{const q=new WeakSet,O=A=>{if(q.has(A))return;q.add(A);const F=A.src||"";try{if(F.includes("youtube.com")){try{const X=new URL(F);if(!X.searchParams.has("enablejsapi")){X.searchParams.set("enablejsapi","1"),q.delete(A),A.src=X.toString();return}}catch{}A.contentWindow?.postMessage(JSON.stringify({event:"listening",id:A.id||"yt-embed",channel:"widget"}),"https://www.youtube.com")}else F.includes("soundcloud.com")&&A.contentWindow?.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),"https://w.soundcloud.com")}catch{}},Y=A=>{A.addEventListener("load",()=>O(A),{once:!0}),A.contentWindow&&O(A)};document.querySelectorAll("iframe").forEach(A=>Y(A));const Z=new MutationObserver(A=>{for(const F of A)for(const X of F.addedNodes)X instanceof HTMLIFrameElement&&Y(X),X instanceof HTMLElement&&X.querySelectorAll("iframe").forEach(ie=>Y(ie))});Z.observe(document.body,{childList:!0,subtree:!0});const ee=new Set,ne=A=>{try{const F=A.origin||"";if(F.includes("soundcloud.com")&&typeof A.data=="string"){const X=JSON.parse(A.data);if(X.method==="ready"&&X.widgetId&&!ee.has(X.widgetId)){ee.add(X.widgetId),document.querySelectorAll("iframe").forEach(ie=>{ie.src?.includes("soundcloud.com")&&ie.contentWindow&&ie.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),"https://w.soundcloud.com")});return}if(X.method==="play"||X.event==="play"){u("soundcloud-embed");return}}if(F.includes("youtube.com")&&typeof A.data=="string"){const X=JSON.parse(A.data);if(X.event==="infoDelivery"&&X.info?.playerState===1){u("youtube-embed");return}if(X.event==="initialDelivery"&&X.info?.playerState===1){u("youtube-embed");return}}}catch{}};return window.addEventListener("message",ne),()=>{window.removeEventListener("message",ne),Z.disconnect()}},[u]);const D=_.useMemo(()=>({isPlaying:g,isBuffering:y,streamUrl:p,play:B,pause:Q,togglePlayPause:K,setIsPlaying:v,activeSource:s,claimExclusion:u,volume:j,setVolume:C}),[g,y,p,B,Q,K,s,u,j,C]);return o.jsx(Uh.Provider,{value:D,children:t})}function N4(){const t=_.useContext(Uh);if(t===void 0)throw new Error("useAudioPlayback must be used within an AudioPlaybackProvider");return t}function Cn(t,r=""){return t==null?r:String(t).trim()}function C4(t,r=!1){return t==null?r:typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true"||t==="1":typeof t=="number"?t!==0:r}function Mg(t){return t?typeof t=="string"?t.trim():typeof t=="object"&&t.url||null:null}const R4=tt("TracksPlayedDB"),L4=`${it}/tracks-played`;function O4(t){return{id:t.id,playlistEventId:Cn(t.playlistEventId)||void 0,artistName:Cn(t.artistName),trackName:Cn(t.trackName),albumName:Cn(t.albumName)||void 0,labelName:Cn(t.labelName)||void 0,notes:Cn(t.notes)||void 0,albumArtUrl:Cn(t.albumArtUrl)||void 0,djName:Cn(t.djName,"CHIRP Radio"),djId:Cn(t.djId)||void 0,receivedAt:Cn(t.receivedAt)||void 0,isLocal:C4(t.isLocal),playedAt:Cn(t.playedAt,new Date().toISOString()),createdAt:Cn(t.createdAt)||void 0,updatedAt:Cn(t.updatedAt)||void 0}}async function Hh(t){const{page:r=1,limit:i=200,djId:s,djName:c,sinceDate:u,searchTerm:f}=t||{};let p=`${L4}?sort=-playedAt&limit=${i}&page=${r}`;if(s&&u?(p+=`&where[and][0][djId][equals]=${encodeURIComponent(s)}`,p+=`&where[and][1][playedAt][greater_than_equal]=${encodeURIComponent(u)}`):s?p+=`&where[djId][equals]=${encodeURIComponent(s)}`:c&&u?(p+=`&where[and][0][djName][equals]=${encodeURIComponent(c)}`,p+=`&where[and][1][playedAt][greater_than_equal]=${encodeURIComponent(u)}`):c?p+=`&where[djName][equals]=${encodeURIComponent(c)}`:u&&(p+=`&where[playedAt][greater_than_equal]=${encodeURIComponent(u)}`),f){const v=encodeURIComponent(f);p+=`&where[or][0][artistName][like]=${v}&where[or][1][trackName][like]=${v}`}const m=await E6.get({url:p,headers:{Accept:"application/json"}});if(m.status!==200||!m.data)throw R4.error(`CMS tracks-played returned status ${m.status}`),new Error(`Failed to fetch tracks played: ${m.status}`);const g=m.data;return{docs:g.docs.map(O4),totalDocs:g.totalDocs,limit:g.limit,totalPages:g.totalPages,page:g.page,pagingCounter:g.pagingCounter,hasPrevPage:g.hasPrevPage,hasNextPage:g.hasNextPage,prevPage:g.prevPage,nextPage:g.nextPage}}function M4(t){const r={sun:0,sunday:0,mon:1,monday:1,tue:2,tuesday:2,wed:3,wednesday:3,thu:4,thursday:4,fri:5,friday:5,sat:6,saturday:6},i=t.match(/(\w+)\s+(\d{1,2}):(\d{2})\s*-\s*(\d{1,2}):(\d{2})/);if(i){const[,j,N,C,M,R]=i,z=r[j.toLowerCase()];if(z===void 0)throw new Error(`Invalid day: ${j}`);const V=parseInt(N,10),k=parseInt(C,10);let I=parseInt(M,10);const U=parseInt(R,10);return I===0&&U===0&&(I=24),{day:z,startHour:V,startMinute:k,endHour:I,endMinute:U}}const s=t.match(/(\w+)\s+(\d+):?(\d+)?\s*([ap]m)\s*-\s*(\d+):?(\d+)?\s*([ap]m)/i);if(!s)throw new Error(`Invalid show time format: ${t}`);const[,c,u,f,p,m,g,v]=s,y=r[c.toLowerCase()];if(y===void 0)throw new Error(`Invalid day: ${c}`);let S=parseInt(u,10);const w=f?parseInt(f,10):0;let E=parseInt(m,10);const b=g?parseInt(g,10):0;return p.toLowerCase()==="pm"&&S!==12?S+=12:p.toLowerCase()==="am"&&S===12&&(S=0),v.toLowerCase()==="pm"&&E!==12?E+=12:v.toLowerCase()==="am"&&E===12&&(E=0),{day:y,startHour:S,startMinute:w,endHour:E,endMinute:b}}function D4(t){const r=new Date,i=r.getDay(),s=(t-i+7)%7||7,c=new Date(r);return c.setDate(r.getDate()+s),c}function Dg(t){const r=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),c=String(t.getHours()).padStart(2,"0"),u=String(t.getMinutes()).padStart(2,"0"),f=String(t.getSeconds()).padStart(2,"0");return`${r}${i}${s}T${c}${u}${f}`}function Vy(t){const r=t.getUTCFullYear(),i=String(t.getUTCMonth()+1).padStart(2,"0"),s=String(t.getUTCDate()).padStart(2,"0"),c=String(t.getUTCHours()).padStart(2,"0"),u=String(t.getUTCMinutes()).padStart(2,"0"),f=String(t.getUTCSeconds()).padStart(2,"0");return`${r}${i}${s}T${c}${u}${f}Z`}function kg(t){const r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"America/Chicago"}).formatToParts(t),i=s=>r.find(c=>c.type===s)?.value??"00";return`${i("year")}${i("month")}${i("day")}T${i("hour")}${i("minute")}${i("second")}`}function k4(t){const{djName:r,showName:i,showTime:s}=t,{day:c,startHour:u,startMinute:f,endHour:p,endMinute:m}=M4(s),g=D4(c);g.setHours(u,f,0,0);const v=new Date(g);v.setHours(p,m,0,0);const y=i?`${i} with ${r}`:`${r} on CHIRP Radio`,S=i?`Listen to ${i} with ${r} on CHIRP Radio`:`Listen to ${r} on CHIRP Radio`;return["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//CHIRP Radio//DJ Show Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","X-WR-CALNAME:CHIRP Radio DJ Shows","X-WR-TIMEZONE:America/Chicago","BEGIN:VTIMEZONE","TZID:America/Chicago","BEGIN:STANDARD","DTSTART:19701101T020000","RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","TZOFFSETFROM:-0500","TZOFFSETTO:-0600","END:STANDARD","BEGIN:DAYLIGHT","DTSTART:19700308T020000","RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","TZOFFSETFROM:-0600","TZOFFSETTO:-0500","END:DAYLIGHT","END:VTIMEZONE","BEGIN:VEVENT",`UID:${Date.now()}-${r.replace(/\s+/g,"-")}@chirpradio.org`,`DTSTAMP:${Vy(new Date)}`,`DTSTART;TZID=America/Chicago:${Dg(g)}`,`DTEND;TZID=America/Chicago:${Dg(v)}`,`SUMMARY:${y}`,`DESCRIPTION:${S}`,"LOCATION:CHIRP Radio - chirpradio.org","STATUS:CONFIRMED","RRULE:FREQ=WEEKLY","END:VEVENT","END:VCALENDAR"].join(`\r 62`)}function zh(t){const r=t.showTime.split(",")[0].trim(),i=k4({...t,showTime:r}),s=new Blob([i],{type:"text/calendar;charset=utf-8"}),c=URL.createObjectURL(s),u=document.createElement("a");u.href=c,u.download=`chirp-${t.djName.replace(/\s+/g,"-").toLowerCase()}.ics`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(c)}function I4(t){const{title:r,date:i,venue:s,venueAddress:c,description:u}=t,f=new Date(i),p=new Date(f.getTime()+7200*1e3),m=s&&c?`${s}, ${c}`:s||"CHIRP Radio Event";return["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//CHIRP Radio//Event Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","X-WR-TIMEZONE:America/Chicago","BEGIN:VTIMEZONE","TZID:America/Chicago","BEGIN:STANDARD","DTSTART:19701101T020000","RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","TZOFFSETFROM:-0500","TZOFFSETTO:-0600","END:STANDARD","BEGIN:DAYLIGHT","DTSTART:19700308T020000","RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","TZOFFSETFROM:-0600","TZOFFSETTO:-0500","END:DAYLIGHT","END:VTIMEZONE","BEGIN:VEVENT",`UID:${Date.now()}-${r.replace(/\s+/g,"-")}@chirpradio.org`,`DTSTAMP:${Vy(new Date)}`,`DTSTART;TZID=America/Chicago:${kg(f)}`,`DTEND;TZID=America/Chicago:${kg(p)}
62`,`SUMMARY:${r}`,u?`DESCRIPTION:${u}`:"",`LOCATION:${m}`,"STATUS:CONFIRMED","END:VEVENT","END:VCALENDAR"].filter(Boolean).join(`\r 63`)}function $A(t){const r=I4(t),i=new Blob([r],{type:"text/calendar;charset=utf-8"}),s=URL.createObjectURL(i),c=document.createElement("a");c.href=s,c.download=`chirp-event-${t.title.replace(/\s+/g,"-").toLowerCase()}.ics`,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(s)}function Dc(t){if(/^\d{1,2}:\d{2}$/.test(t)){const[f,p]=t.split(":");return`${f.padStart(2,"0")}:${p}`}const r=new Date(t);if(!isNaN(r.getTime())){const f=r.getUTCHours(),p=r.getUTCMinutes();return`${f.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`}const i=t.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);if(!i)return t;let s=parseInt(i[1]);const c=i[2],u=i[3].toUpperCase();return u==="PM"&&s!==12&&(s+=12),u==="AM"&&s===12&&(s=0),`${s.toString().padStart(2,"0")}:${c}`}function Ig(t){if(/^\d{1,2}:\d{2}$/.test(t)){const[f,p]=t.split(":").map(Number);return f*60+p}const r=new Date(t);if(!isNaN(r.getTime()))return r.getUTCHours()*60+r.getUTCMinutes();const i=t.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);if(!i)return 0;let s=parseInt(i[1]);const c=parseInt(i[2]),u=i[3].toUpperCase();return u==="PM"&&s!==12&&(s+=12),u==="AM"&&s===12&&(s=0),s*60+c}function sc(t){const r=t.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);if(!r)return t;const i=parseInt(r[1]),s=r[2],c=r[3].toUpperCase();if(i===12&&s==="00")return c==="PM"?"12n":"12m";const u=i===12?12:i,f=s==="00"?"":`:${s}`;return`${u}${f}${c==="AM"?"am":"pm"}`}function Vc(t){if(!t)return"";if(t.includes(","))return t.split(",").map(s=>Vc(s.trim())).join(", ");const r=t.match(/(\w{3,})\s+(\d{1,2}):(\d{2})\s*-\s*(\d{1,2}):(\d{2})/i);if(r){const s=r[1].substring(0,3),c=parseInt(r[2]),u=r[3],f=parseInt(r[4]),p=r[5],m=c>=12?"PM":"AM",g=f>=12?"PM":"AM",v=c%12||12,y=f%12||12,S=`${v}:${u} ${m}`,w=`${y}:${p} ${g}`,E=sc(S),b=sc(w);return`${s} ${E} - ${b}`}const i=t.match(/(\w{3,})\s+(\d{1,2}):?(\d{2})?\s*(AM|PM)\s*-\s*(\d{1,2}):?(\d{2})?\s*(AM|PM)/i);if(i){const s=i[1].substring(0,3),c=sc(`${i[2]}:${i[3]||"00"} ${i[4]}`),u=sc(`${i[5]}:${i[6]||"00"} ${i[7]}`);return`${s} ${c} - ${u}`}return t}function lc(t){const r=t.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);if(!r)return t;const i=parseInt(r[1]),s=r[2],c=r[3].toUpperCase();if(i===12&&s==="00")return c==="PM"?"12n":"12m";const u=i===12?12:i,f=s==="00"?"":`:${s}`;return`${u}${f}${c==="AM"?"a":"p"}`}function Zy(t){if(!t)return"";if(t.includes(","))return t.split(",").map(c=>Zy(c.trim())).join(", ");const r={Mon:"M",Tue:"T",Wed:"W",Thu:"R",Fri:"F",Sat:"Sa",Sun:"Su"},i=t.match(/(\w{3,})\s+(\d{1,2}):(\d{2})\s*-\s*(\d{1,2}):(\d{2})/i);if(i){const c=r[i[1].substring(0,3)]||i[1].charAt(0),u=parseInt(i[2]),f=i[3],p=parseInt(i[4]),m=i[5],g=u>=12?"PM":"AM",v=p>=12?"PM":"AM",y=u%12||12,S=p%12||12,w=lc(`${y}:${f} ${g}`),E=lc(`${S}:${m} ${v}`);return`${c} ${w} - ${E}`}const s=t.match(/(\w{3,})\s+(\d{1,2}):?(\d{2})?\s*(AM|PM)\s*-\s*(\d{1,2}):?(\d{2})?\s*(AM|PM)/i);if(s){const c=r[s[1].substring(0,3)]||s[1].charAt(0),u=lc(`${s[2]}:${s[3]||"00"} ${s[4]}`),f=lc(`${s[5]}:${s[6]||"00"} ${s[7]}`);return`${c} ${u} - ${f}`}return t}function Gy(t){if(!t||t.length===0)return;const r={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"},i=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];return[...t].sort((s,c)=>i.indexOf(s.dayOfWeek)-i.indexOf(c.dayOfWeek)).map(s=>{const c=r[s.dayOfWeek]||s.dayOfWeek,u=Dc(s.startTime),f=Dc(s.endTime);return`${c} ${u} - ${f}`}).join(", ")}function U4(t,r,i,s,c){if(!t)return;const u=t.split(",").map(f=>f.trim());if(u.length!==1)return u.map(f=>({displayTime:Vc(f),displayTimeShort:Zy(f),onAddToCalendar:()=>{try{zh({djName:r,showName:i,showTime:f}),c?.()}catch(p){s?.(p)}}}))}function Yy(){return Oe({queryKey:["cms","articles","filterOptions"],queryFn:({signal:t})=>p4("article-filter-options",t),staleTime:1e3*60*60})}function H4(t,r=8,i){return Oe({queryKey:["cms","articles","paginated",t,r,i],queryFn:({signal:s})=>{const c={page:t+1,limit:r};return i?.tag&&(c.tag=i.tag),i?.category&&(c.category=i.category),i?.fromMonth&&i?.fromYear&&(c.fromMonth=i.fromMonth,c.fromYear=i.fromYear),i?.toMonth&&i?.toYear&&(c.toMonth=i.toMonth,c.toYear=i.toYear),i?.search&&(c.search=i.search),Dt("articles-filtered",c,s)}})}function z4(t){return Oe({queryKey:["cms","articles","bySlug",t],queryFn:async({signal:r})=>(await Dt("articles",{"where[slug][equals]":t,limit:1,depth:2,draft:"true","where[_status][equals]":"published"},r)).docs[0]??null,enabled:!!t})}function Qy(t=3,r){return Oe({queryKey:["cms","articles","recent",t,r],queryFn:async({signal:i})=>{const s={sort:"-publishedDate",limit:r?t+1:t,depth:1,draft:"true","where[_status][equals]":"published"};return r&&(s["where[slug][not_equals]"]=r),(await Dt("articles",s,i)).docs.slice(0,t)}})}function BA(){return Oe({queryKey:["cms","articles","oldestDate"],queryFn:async({signal:t})=>(await Dt("articles",{sort:"publishedDate",limit:1,depth:0,draft:"true","where[_status][equals]":"published"},t)).docs[0]?.publishedDate??null,staleTime:1e3*60*60})}function qA(){const{data:t,isLoading:r,error:i}=Yy();return{data:t?.categories,isLoading:r,error:i}}function FA(){const{data:t,isLoading:r,error:i}=Yy();return{data:t?.tags,isLoading:r,error:i}}function Ph(){const t=new Date;return t.setHours(0,0,0,0),t.toISOString()}function P4(t,r=11,i){return Oe({queryKey:["cms","events","paginated",t,r,i],queryFn:({signal:s})=>{const c={sort:"date",limit:r,page:t+1,depth:1,"where[date][greater_than_equal]":Ph(),draft:"true","where[_status][equals]":"published"};return i?.category&&(c["where[category.name][equals]"]=i.category),i?.search&&(c["where[or][0][title][like]"]=i.search,c["where[or][1][excerpt][like]"]=i.search),Dt("events",c,s)}})}function $4(t){return Oe({queryKey:["cms","events","bySlug",t],queryFn:async({signal:r})=>(await Dt("events",{"where[slug][equals]":t,limit:1,depth:2,draft:"true","where[_status][equals]":"published"},r)).docs[0]??null,enabled:!!t})}function Ky(t=3,r){return Oe({queryKey:["cms","events","recent",t,r],queryFn:async({signal:i})=>{const s={sort:"date",limit:r?t+1:t,depth:1,"where[date][greater_than]":Ph(),draft:"true","where[_status][equals]":"published"};return r&&(s["where[slug][not_equals]"]=r),(await Dt("events",s,i)).docs.slice(0,t)}})}function B4(){return Oe({queryKey:["cms","events","featured-upcoming"],queryFn:async({signal:t})=>{const r={sort:"date",limit:1,depth:1,"where[featured][equals]":"true","where[date][greater_than]":Ph(),draft:"true","where[_status][equals]":"published"};return(await Dt("events",r,t)).docs[0]??null}})}function q4(t,r=11,i){return Oe({queryKey:["cms","podcasts","paginated",t,r,i],queryFn:({signal:s})=>{const c={page:t+1,limit:r};return i?.tag&&(c.tag=i.tag),i?.category&&(c.category=i.category),i?.fromMonth&&i?.fromYear&&(c.fromMonth=i.fromMonth,c.fromYear=i.fromYear),i?.toMonth&&i?.toYear&&(c.toMonth=i.toMonth,c.toYear=i.toYear),i?.search&&(c.search=i.search),Dt("podcasts-filtered",c,s)}})}
63function F4(t){return Oe({queryKey:["cms","podcasts","bySlug",t],queryFn:async({signal:r})=>(await Dt("podcasts",{"where[slug][equals]":t,limit:1,depth:2,draft:"true","where[_status][equals]":"published"},r)).docs[0]??null,enabled:!!t})}function V4(t=3,r){return Oe({queryKey:["cms","podcasts","recent",t,r],queryFn:async({signal:i})=>{const s={sort:"-publishedDate",limit:r?t+1:t,depth:1,draft:"true","where[_status][equals]":"published"};return r&&(s["where[slug][not_equals]"]=r),(await Dt("podcasts",s,i)).docs.slice(0,t)}})}function VA(){return Oe({queryKey:["cms","podcasts","oldestDate"],queryFn:async({signal:t})=>(await Dt("podcasts",{sort:"publishedDate",limit:1,depth:0,draft:"true","where[_status][equals]":"published"},t)).docs[0]?.publishedDate??null,staleTime:1e3*60*60})}function ZA(){return Oe({queryKey:["cms","podcasts","tags"],queryFn:async({signal:t})=>{const r=await vn("podcasts",{sort:"-publishedDate",limit:2e3,depth:1,draft:"true","where[_status][equals]":"published"},t),i=new Set;for(const s of r)if(Array.isArray(s.tagRefs))for(const c of s.tagRefs)typeof c=="object"&&c!==null&&c.name&&c.isActive!==!1&&i.add(c.name);return[...i].sort()},staleTime:1e3*60*60})}function Z4(){return Oe({queryKey:["cms","spotlights","active"],queryFn:async({signal:t})=>{const r=new Date,s=(await vn("spotlights",{"where[isDefault][not_equals]":"true",sort:"sortOrder",limit:20,depth:1},t)).filter(u=>!(u.startDate&&new Date(u.startDate)>r||u.endDate&&new Date(u.endDate)<r));if(s.length>0)return s;const c=await vn("spotlights",{"where[isDefault][equals]":"true",limit:1,depth:1},t);return c.length>0?c:[]},staleTime:1e3*60,refetchInterval:1e3*60})}function G4(){return Oe({queryKey:["cms","djs"],queryFn:({signal:t})=>vn("djs",{depth:1,limit:200},t)})}function Y4(){return Oe({queryKey:["cms","products"],staleTime:0,queryFn:async({signal:t})=>vn("products",{limit:1e3,sort:"sortOrder",draft:"true","where[_status][equals]":"published"},t)})}function Q4(t){return Oe({queryKey:["cms","pages",t],queryFn:async({signal:r})=>(await vn("pages",{"where[slug][equals]":t,draft:"true","where[_status][equals]":"published",limit:1},r))[0]??null,enabled:!!t})}const K4=t=>!t||typeof t=="string"||typeof t=="number"?null:t.endDate??t.date??null,X4=t=>{const i=K4(t.relatedEvent)??t.expiresAt;if(!i)return null;const s=Date.parse(i);return Number.isNaN(s)?null:new Date(s)},Xy=(t,r)=>{const i=X4(t);return i?i.getTime()>=r.getTime():!0},GA=(t,r)=>{if(!t||t.length===0)return!0;const i=t.filter(s=>s.blockType==="contestCard");return i.length===0?!0:i.every(s=>!Xy(s,r))};function Jy(){return Oe({queryKey:["cms","activeContestsByEventId"],queryFn:async({signal:t})=>{const s=(await vn("pages",{"where[slug][equals]":"contests",limit:1,depth:2},t))[0]?.layout??[],c=new Map,u=new Date;for(const f of s){if(f.blockType!=="contestCard"||!f.entryUrl||!f.relatedEvent||!Xy(f,u))continue;const p=typeof f.relatedEvent=="object"?f.relatedEvent.id:f.relatedEvent;if(p==null)continue;const m=String(p);c.has(m)||c.set(m,{entryUrl:f.entryUrl,title:f.title,prizeDescription:f.prizeDescription})}return c},staleTime:300*1e3})}function YA(t){const{data:r}=Jy();return t==null?null:r?.get(String(t))??null}const J4=it;function Ml(){return Oe({queryKey:["cms","siteSettings"],queryFn:async({signal:t})=>{const r=await fetch(`${J4}/globals/siteSettings?depth=2`,{signal:t});if(!r.ok)throw new Error(`Failed to fetch siteSettings: ${r.status}`);return r.json()}})}const W4=it;function eE(){return Oe({queryKey:["cms","authenticationSettings"],queryFn:async({signal:t})=>{const r=await fetch(`${W4}/globals/authenticationSettings`,{signal:t});if(!r.ok)throw new Error(`Failed to fetch authentication settings: ${r.status}`);return r.json()}})}const tE=it;function nE(){return Oe({queryKey:["cms","mobileAppSettings"],queryFn:async({signal:t})=>{const r=await fetch(`${tE}/globals/mobileAppSettings?depth=1`,{signal:t});if(!r.ok)throw new Error(`Failed to fetch mobile app settings: ${r.status}`);return r.json()}})}function Wy(){return Oe({queryKey:["cms","showSchedules"],queryFn:({signal:t})=>vn("showSchedules",{depth:2,sort:"dayOfWeek,startTime",limit:500},t)}
63)}function aE(t){return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}function e2(t){const r=aE(t);return Oe({queryKey:["cms","redirects",r],queryFn:async({signal:i})=>(await vn("redirects",{"where[or][0][from][equals]":r,"where[or][1][from][equals]":`${r}/`,limit:1},i))[0]??null,enabled:!!r,retry:1})}function rE(t=!0){return Oe({queryKey:["cms","weeklyCharts","latest"],enabled:t,queryFn:({signal:r})=>vn("weeklyCharts",{sort:"-createdAt",limit:1,page:1,depth:1},r).then(i=>i[0]??null)})}function iE(t,r=5,i){return Oe({queryKey:["cms","weeklyCharts","paginated",t,r,i],placeholderData:Dx,queryFn:({signal:s})=>{const c={sort:"-createdAt",limit:r,page:t+1,depth:0};if(i){const[u,f]=i.split("-"),p=`${u}-${f}-01T00:00:00.000Z`,m=parseInt(f,10)+1,g=m>12?parseInt(u,10)+1:parseInt(u,10),v=m>12?1:m,y=`${g}-${String(v).padStart(2,"0")}-01T00:00:00.000Z`;c["where[createdAt][greater_than_equal]"]=p,c["where[createdAt][less_than]"]=y}return Dt("weeklyCharts",c,s)}})}const sE=it;function lE(){return Oe({queryKey:["cms","socialSharing"],queryFn:async({signal:t})=>{const r=await fetch(`${sE}/globals/socialSharing?depth=1`,{signal:t});if(!r.ok)throw new Error(`Failed to fetch socialSharing: ${r.status}`);return r.json()},staleTime:600*1e3})}function Zc(t){const r=t.showSchedules||[],i=r.length>0?r.map(s=>{const c=oE[s.dayOfWeek]||s.dayOfWeek,u=Dc(s.startTime),f=Dc(s.endTime);return`${c} ${u} - ${f}`}).join(", "):"";return{id:t.id?.toString()||"",djId:t.djId??null,djName:t.djName||"DJ",showName:t.showName||"",showTime:i,showSchedules:r,excerpt:t.djExcerpt||"",description:t.djBio||"",donationLink:t.djDonationLink||"",imageSrc:qi(t.profileImage),fullImageSrc:qi(t.fullProfileImage)||qi(t.profileImage),profileImageOrientation:t.profileImageOrientation||"square",slug:t.slug,socialLinks:t.socialLinks??void 0}}function t2(){const{data:t,isLoading:r,error:i}=G4();return{data:t??void 0,loading:r,error:i}}const oE={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function QA(){const{data:t,loading:r,error:i}=t2();return{data:_.useMemo(()=>{if(t)return t.filter(c=>(c.showSchedules||[]).length>0).map(Zc).sort((c,u)=>c.djName.localeCompare(u.djName))},[t]),loading:r,error:i}}function KA(){const{data:t,loading:r,error:i}=t2();return{data:_.useMemo(()=>t?.filter(c=>(c.showSchedules||[]).length===0).map(Zc).sort((c,u)=>c.djName.localeCompare(u.djName)),[t]),loading:r,error:i}}function ei(t){const r=_.useMemo(()=>[...new Set(t.filter(Boolean))].sort(),[t]),{data:i}=Oe({queryKey:["djs","by-chirp-ids",r],queryFn:async({signal:s})=>{if(r.length===0)return[];const c={limit:50,depth:0};return r.forEach((f,p)=>{c[`where[djId][in][${p}]`]=f}),(await vn("djs",c,s)).map(Zc)},enabled:r.length>0,staleTime:300*1e3});return _.useMemo(()=>{const s=new Map;for(const c of i??[])c.djId!=null&&s.set(String(c.djId),c);return s},[i])}function XA(t){return Oe({queryKey:["cms","djs","favorites",t],queryFn:async({signal:r})=>{const i={depth:1};t.forEach((f,p)=>{i[`where[djId][in][${p}]`]=f});const c=(await vn("djs",i,r)).map(Zc),u=new Map(c.map(f=>[String(f.djId),f]));return t.map(f=>u.get(f)).filter(Boolean)},enabled:t.length>0})}const cE=5e3,uE=6,hl={all:()=>["tracks-played"],recentlyPlayed:()=>["tracks-played","recently-played"],hourBlocks:t=>["tracks-played","hour-blocks",{page:t}]};function dE(t){const r=new Date(t),i=w=>new Intl.DateTimeFormat("en-US",{timeZone:"America/Chicago",...w}).format(r),s=i({year:"numeric",month:"2-digit",day:"2-digit"}).replace(/(\d+)\/(\d+)\/(\d+)/,"$3-$1-$2"),c=parseInt(i({hour:"numeric",hour12:!1})),u=`${s}-${String(c).padStart(2,"0")}`,f=i({weekday:"short"}),p=i({month:"short",day:"numeric"}),m=c===0?12:c>12?c-12:c,g=c<12?"am":"pm",v=(c+1)%24,y=v===0?12:v>12?v-12:v,S=v<12?"am":"pm";return{hourKey:u,label:`${f}, ${p} · ${m}${g}`,startTime:`${m}:00${g}`,endTime:`${y}:00${S}`,hour24:c}}function JA(t,r){const i=new Map;for(const s of t){if(!s.playedAt)continue;const{hourKey:c,label:u,startTime:f,endTime:p}=dE(s.playedAt);if(!i.has(c)){const m=s.djId?r?.get(s.djId):void 0,g=m?.showName||"",v=m?.slug,y=m?.djName||s.djName||"Unknown DJ",S=y==="CHIRP DJ"?"NiteOwl":y;i.set(c,{hourKey:c,label:u,startTime:f,endTime:p,djName:S,djSlug:v,djId:s.djId,showName:g,tracks:[]})}i.get(c).tracks.push(s)}return Array.from(i.values())}
63function Ki(){const t=Jr(),r=_.useRef(void 0),{data:i,isLoading:s,error:c}=Oe({queryKey:hl.recentlyPlayed(),queryFn:async()=>{const f=await Hh({page:1,limit:uE}),p=new Set;return f.docs.filter(m=>{const g=m.playlistEventId??String(m.id);return p.has(g)?!1:(p.add(g),!0)})},refetchInterval:cE,refetchOnWindowFocus:!0}),u=i?.[0]??null;return _.useEffect(()=>{if(!Ge.isNativePlatform())return;const f=mh.addListener("appStateChange",({isActive:p})=>{p&&t.invalidateQueries({queryKey:hl.recentlyPlayed()})});return()=>{f.then(p=>p.remove())}},[t]),_.useEffect(()=>{const f=u?.id;r.current!==void 0&&f!==r.current&&t.invalidateQueries({queryKey:["tracks-played","hour-blocks"]}),r.current=f},[u?.id,t]),{data:u,tracks:i??[],isLoading:s,error:c}}function fE(){const t=new Date;return t.setMonth(t.getMonth()-3),t.toISOString()}const _f=fE();function hE(t){const r=Jr(),{data:i,isLoading:s}=Oe({queryKey:hl.hourBlocks(t),queryFn:async({signal:m})=>{const g=`${it}/tracks-played/by-hour?page=${t}&blocksPerPage=6&since=${encodeURIComponent(_f)}`,v=await fetch(g,{signal:m});if(!v.ok)throw new Error(`Failed to fetch tracks by hour: ${v.status}`);return v.json()},staleTime:6e4});_.useEffect(()=>{i?.hasNextPage&&r.prefetchQuery({queryKey:hl.hourBlocks(t+1),queryFn:()=>fetch(`${it}/tracks-played/by-hour?page=${t+1}&blocksPerPage=6&since=${encodeURIComponent(_f)}`).then(m=>m.json())}),t>1&&r.prefetchQuery({queryKey:hl.hourBlocks(t-1),queryFn:()=>fetch(`${it}/tracks-played/by-hour?page=${t-1}&blocksPerPage=6&since=${encodeURIComponent(_f)}`).then(m=>m.json())})},[t,i?.hasNextPage,r]);const c=_.useMemo(()=>i?.blocks??[],[i?.blocks]),u=_.useMemo(()=>[...new Set(c.flatMap(m=>m.tracks.map(g=>g.dj_id)).filter(m=>!!m))],[c]),f=ei(u);return{visibleGroups:_.useMemo(()=>c.map(m=>{const g=m.tracks[0],v=g?.dj_id?f?.get(g.dj_id):void 0,y=g?.dj_name||"Unknown DJ";return{hourKey:m.hourKey,label:m.label,startTime:m.startTime,endTime:m.endTime,djName:y==="CHIRP DJ"?"NiteOwl":y,djSlug:v?.slug,djId:g?.dj_id??void 0,showName:v?.showName||"",tracks:m.tracks.map(S=>({id:S.id,playlistEventId:S.playlist_event_id??void 0,artistName:S.artist_name??"",trackName:S.track_name??"",albumName:S.album_name??void 0,labelName:S.label_name??void 0,notes:S.notes??void 0,albumArtUrl:S.album_art_url??void 0,djName:S.dj_name??"CHIRP Radio",djId:S.dj_id??void 0,isLocal:S.is_local??!1,playedAt:S.played_at??new Date().toISOString()}))}}),[c,f]),currentPage:t,totalPages:i?.totalPages??1,isLoading:s,hasMore:i?.hasNextPage??!1}}const mE=300,pE=100;function WA(t){const[r,i]=_.useState("");_.useEffect(()=>{const p=t.trim();if(p.length===0){i("");return}const m=setTimeout(()=>i(p),mE);return()=>clearTimeout(m)},[t]);const s=r.length>0,{data:c,isLoading:u,isFetching:f}=Oe({queryKey:["tracks-played","search",r],queryFn:()=>Hh({searchTerm:r,limit:pE}),enabled:s,staleTime:30*1e3});return{results:c?.docs??[],totalDocs:c?.totalDocs??0,isLoading:s&&(u||f),isSearching:s}}function gE(){const t=Jr();return Dy({mutationFn:async({nextCollection:r})=>{const i=t.getQueryData(["listener","me"]);if(!i?.id)throw new Error("Not logged in");await Hy(String(i.id),{musicCollection:r})},onMutate:async({action:r,track:i})=>{await t.cancelQueries({queryKey:["listener","me"]});const s=t.getQueryData(["listener","me"]);return t.setQueryData(["listener","me"],c=>{if(!c)return c;const u=c.musicCollection??[];return{...c,musicCollection:r==="add"?[...u,i]:u.filter(f=>!(f.artistName===i.artistName&&f.trackName===i.trackName))}}),{snapshot:s}},onError:(r,i,s)=>{s?.snapshot!==void 0&&t.setQueryData(["listener","me"],s.snapshot)},onSettled:()=>t.invalidateQueries({queryKey:["listener","me"]})})}function $h(t){const{data:r}=xr(),{mutate:i}=gE(),s=!!(t&&r?.musicCollection?.some(u=>u.artistName===t.artistName&&u.trackName===t.trackName)),c=_.useCallback(u=>{if(!r)return;const f=r.musicCollection??[],p=s?"remove":"add",m=s?f.filter(g=>!(g.artistName===u.artistName&&g.trackName===u.trackName)):[...f,u];i({track:u,action:p,nextCollection:m})},[r,s,i]);return{isInCollection:s,toggleCollection:c}}function n2(t){let r=5381;for(let i=0;i<t.length;i++)r=r*33^t.charCodeAt(i);return Math.abs(r>>>0)}const Ug=["/images/album-art/album-art-01.webp","/images/album-art/album-art-02.webp","/images/album-art/album-art-03.webp","/images/album-art/album-art-04.webp","/images/album-art/album-art-05.webp","/images/album-art/album-art-06.webp"];function Va(t){return Ug[n2(t.join("|"))%Ug.length]}const a2=_.createContext(void 0);function r2(){const t=_.useContext(a2);if(!t)throw new Error("useTracksPlayed must be used within TracksPlayedProvider");return t}function eT(){return r2()}function vE({children:t,streamUrl:r=Fc,autoFetch:i=!1}){return o.jsx(T4,{defaultStreamUrl:r,children:o.jsx(yE,{autoFetch:i,children:t})})}function yE({children:t,autoFetch:r}){const{data:i,isLoading:s}=Ki(),c=ei(i?.djId?[i.djId]:[]),[u,f]=_.useState({dj:"",show:"",artist:"",track:"",album:"",label:"",albumArt:"",isLocal:!1}),[p,m]=_.useState(!0),[g,v]=_.useState(!1);_.useEffect(()=>{if(r&&i){const S=i,w={dj:S.djName||"",djId:S.djId,show:(S.djId?c.get(S.djId)?.showName:void 0)||"",artist:S.artistName||"",track:S.trackName||"",album:S.albumName||"",label:S.labelName||"",albumArt:S.albumArtUrl||"",isLocal:S.isLocal||!1,playedAtGmt:S.playedAt||void 0};f(E=>E.artist!==w.artist||E.track!==w.track||E.album!==w.album||E.albumArt!==w.albumArt||E.dj!==w.dj||E.djId!==w.djId||E.show!==w.show||E.label!==w.label||E.isLocal!==w.isLocal?w:E),g||(v(!0),m(!1))}!g&&s&&m(!0)},[r,i,s,g,c]),_.useEffect(()=>{if(!(Ge.getPlatform()==="android"))return;let w;return ol.addListener("metadataChanged",E=>{f(b=>{const j={dj:E.dj||b.dj,show:b.show,artist:E.artist||b.artist,track:E.title||b.track,album:E.album||b.album,label:E.label||b.label,albumArt:E.albumArtUrl||b.albumArt,isLocal:b.isLocal};return b.artist!==j.artist||b.track!==j.track||b.album!==j.album||b.label!==j.label||b.dj!==j.dj||b.albumArt!==j.albumArt?j:b})}).then(E=>{w=()=>E.remove()}),()=>{w?.()}},[]);const y=_.useMemo(()=>({currentData:u,isLoading:p}),[u,p]);return o.jsx(a2.Provider,{value:y,children:t})}function bE(){const{isPlaying:t,isBuffering:r,play:i,pause:s,togglePlayPause:c,volume:u,setVolume:f}=N4(),{isLoading:p,currentData:m}=r2(),{showToast:g}=rn(),v=m.artist&&m.track?{artistName:m.artist,trackName:m.track}:void 0,{isInCollection:y,toggleCollection:S}=$h(v),w=_.useCallback(()=>
63{if(!m.artist||!m.track)return;const E=m.albumArt||Va([m.artist,m.track]),b={artistName:m.artist,trackName:m.track,albumName:m.album,labelName:m.label,albumArt:E,isLocal:m.isLocal,dateAdded:new Date().toISOString()};S(b),g({message:y?`Removed ${m.track} from your collection`:`Added ${m.track} to your collection`,type:"success",duration:3e3})},[m,y,S,g]);return _.useMemo(()=>({isPlaying:t,isBuffering:r,play:i,pause:s,togglePlayPause:c,volume:u,setVolume:f,isLoading:p,currentData:m,isTrackAdded:y,toggleAddTrack:w}),[t,r,i,s,c,u,f,p,m,y,w])}function i2(t,r={}){const{onEscape:i,autoFocus:s=!0}=r,c=_.useRef(null),u=_.useRef(!1),f=_.useRef(i);f.current=i;const p=_.useCallback(m=>{if(m.key==="Escape"){f.current?.();return}if(m.key!=="Tab")return;const g=c.current;if(!g)return;const v=g.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(v.length===0)return;const y=v[0],S=v[v.length-1];m.shiftKey&&document.activeElement===y?(m.preventDefault(),S.focus()):!m.shiftKey&&document.activeElement===S&&(m.preventDefault(),y.focus())},[]);return _.useEffect(()=>{if(!t){u.current=!1;return}return document.addEventListener("keydown",p),s&&!u.current&&c.current&&(c.current.focus(),u.current=!0),()=>{document.removeEventListener("keydown",p)}},[t,s,p]),c}function s2(t,r){_.useEffect(()=>{if(!t)return;const i=r.current;if(!i)return;let s=i;for(;s&&s.parentElement&&s.parentElement!==document.body;)s=s.parentElement;const c=[];for(const u of Array.from(document.body.children))u instanceof HTMLElement&&u!==s&&(u.hasAttribute("inert")||u.hasAttribute("data-modal-scrim")||(u.setAttribute("inert",""),c.push(u)));return()=>{for(const u of c)u.removeAttribute("inert")}},[t,r])}function en({children:t,variant:r="light",size:i="medium",squared:s=!1,className:c="",style:u,"aria-hidden":f,"aria-pressed":p,"aria-disabled":m,onClick:g}){const v=`cr-chip cr-chip--${r} cr-chip--${i} ${s?"cr-chip--squared":""} ${g?"cr-chip--clickable":""} ${c}`,y=g?"button":"div";return o.jsx(y,{className:v,"aria-hidden":f,"aria-pressed":p,"aria-disabled":m,onClick:g,type:g?"button":void 0,children:o.jsx("span",{className:"cr-chip__text",style:u,children:t})})}function Xi(t,r){const i=t?.trim()||"",s=r?.trim()||"",c=i.includes(":")?i.split(":")[0].trim():i;return s&&s!==""?{djName:c,showName:s}:i.includes(":")?{djName:c,showName:i.split(":").slice(1).join(":").trim()}:{djName:c,showName:""}}const xc={scrollDistance:"0px",animDuration:"0s",isOverflowing:!1};function kc({djName:t="",showName:r="",isOnAir:i=!0,statusText:s="On-Air",isFavorite:c=!1,onFavoriteClick:u}){const f=Xi(t,r),p=f.djName,m=f.showName,g=_.useRef(null),v=_.useRef(null),y=_.useRef(null),S=_.useRef(null),w=_.useRef(null),E=_.useRef(null),[b,j]=_.useState(void 0),[N,C]=_.useState(void 0),[M,R]=_.useState(xc),[z,V]=_.useState(xc),k=_.useCallback(()=>{const I=v.current,U=S.current,L=U?.parentElement,B=g.current;if(!I||!U||!L||!B)return;const Q=y.current,K=w.current,D=m&&m.trim()!=="";U.style.width="auto",K&&(K.style.width="auto");const q=I.scrollWidth,O=D&&Q?Q.scrollWidth:0,Y=window.getComputedStyle(B),Z=parseInt(Y.gap)||12,ee=E.current?.offsetWidth??60,ne=window.getComputedStyle(L),A=D?parseInt(ne.gap)||12:0,F=B.clientWidth-ee-Z;let X,ie;if(!D)X=Math.min(q,F),ie=0;else if(q+O+A<=F)X=q,ie=O;else{const de=(F-A)/2;q<=de&&O>de?(X=q,ie=F-q-A):O<=de&&q>de?(ie=O,X=F-O-A):(X=de,ie=de)}j(X),C(D?ie:void 0),U.style.width=`${X}px`,K&&D&&(K.style.width=`${ie}px`),R(Hg(I,U)),V(D&&Q&&K?Hg(Q,K):xc)},[m]);return _.useEffect(()=>{const I=g.current;if(!I)return;const U=()=>k();document.fonts?.ready.then(U);const L=new ResizeObserver(U);return L.observe(I),()=>{L.disconnect()}},[p,m,k]),o.jsxs("div",{className:"cr-current-dj",ref:g,children:[u&&o.jsx("button",{className:`cr-current-dj__heart-btn${c?" cr-current-dj__heart-btn--active":""}`,onClick:I=>{I.preventDefault(),I.stopPropagation(),u()},"aria-label":c?"Unfavorite DJ":"Favorite DJ",children:c?o.jsx(Nl,{}):o.jsx(Rl,{})}),o.jsxs("div",{className:"cr-current-dj__info",children:[i&&p&&o.jsx("span",{className:"sr-only",children:"On air now: "}),o.jsx("div",{className:"cr-current-dj__name-container",ref:S,style:{width:b!==void 0?`${b}px`:void 0},children:o.jsx("div",{className:`cr-current-dj__name${M.isOverflowing?" has-overflow":""}`,ref:v,style:M.isOverflowing?{"--scroll-distance":M.scrollDistance,"--animation-duration":M.animDuration}:void 0,children:p})}),m&&o.jsx("div",{className:"cr-current-dj__show-container",ref:w,style:{width:N!==void 0?`${N}px`:void 0},children:o.jsx("div",{className:`cr-current-dj__show${z.isOverflowing?" has-overflow":""}`,ref:y,style:z.isOverflowing?{"--scroll-distance":z.scrollDistance,"--animation-duration":z.animDuration}:void 0,children:m})})]}),i&&o.jsx("div",{className:"cr-current-dj__status",ref:E,children:o.jsx(en,{variant:"primary","aria-hidden":!0,
63children:s})})]})}function Hg(t,r){if(!(t.scrollWidth>r.clientWidth+10))return xc;const c=-(t.scrollWidth-r.clientWidth+20),u=t.scrollWidth-r.clientWidth,f=Math.max(12,12+u/100*4);return{scrollDistance:`${c}px`,animDuration:`${f}s`,isOverflowing:!0}}function br({variant:t="menu",layout:r="icon-left",text:i="MENU",icon:s,onClick:c,className:u="",disabled:f=!1,"aria-label":p}){const m=()=>{if(s)return s;switch(t){case"close":return o.jsx(zv,{});case"dots":return o.jsx(Pv,{});case"menu":default:return o.jsxs("div",{className:"cr-menu-button__dots-container","aria-hidden":"true",children:[o.jsx("div",{className:"cr-menu-button__dot"}),o.jsx("div",{className:"cr-menu-button__dot"}),o.jsx("div",{className:"cr-menu-button__dot"})]})}},g=["cr-menu-button",`cr-menu-button--${t}`,`cr-menu-button--${r}`,u].filter(Boolean).join(" ");return o.jsxs("button",{className:g,onClick:c,disabled:f,"aria-label":p||(t==="close"?"Close":"Menu"),children:[o.jsx("div",{className:"cr-menu-button__icon",children:m()}),r!=="icon-only"&&o.jsx("span",{className:"cr-menu-button__text",children:i})]})}var Vr=kv();function l2({isVisible:t=!1,onClick:r,opacity:i=.75,zIndex:s=1e3,className:c="",children:u,center:f=!0,padding:p=!0,animationDuration:m=.2}){if(!t)return null;const g=["cr-scrim",f&&"cr-scrim--center",p&&"cr-scrim--padding",c].filter(Boolean).join(" "),v={backgroundColor:`rgba(0, 0, 0, ${i})`,zIndex:s,animationDuration:`${m}s`};return Vr.createPortal(o.jsx("div",{className:g,style:v,onClick:r,onKeyDown:y=>{y.key==="Escape"&&r?.()},role:"presentation","data-modal-scrim":"true",children:u}),document.body)}function Bh({title:t="",children:r,showDjInfo:i=!1,djName:s="",showName:c="",isOnAir:u=!0,statusText:f="On-Air",className:p="",size:m="default",variant:g,onClose:v,showCloseButton:y=!0,scrimOpacity:S=.75,scrimOnClick:w,isOpen:E=!1}){const b=_.useId(),j=i2(E,{onEscape:v});s2(E,j);const N=["cr-modal",`cr-modal--${m}`,g?`cr-modal--${g}`:"",p].filter(Boolean).join(" ");return E?o.jsx(l2,{isVisible:E,opacity:S,onClick:w,center:!0,padding:!0,children:o.jsxs("div",{ref:j,className:N,role:"dialog","aria-modal":"true","aria-labelledby":b,tabIndex:-1,onClick:C=>C.stopPropagation(),children:[o.jsxs("div",{className:"cr-modal__header",children:[o.jsxs("div",{className:"cr-modal__header-content",children:[o.jsx("div",{className:"cr-modal__title-section",children:o.jsx("h2",{id:b,className:"cr-modal__title",children:t})}),i&&o.jsx("div",{className:"cr-modal__dj-info",children:o.jsx(kc,{djName:s,showName:c,isOnAir:u,statusText:f})})]}),y&&o.jsx("div",{className:"cr-modal__close",children:o.jsx(br,{variant:"close",layout:"icon-only",onClick:v,className:"cr-modal__close-button"})})]}),o.jsx("div",{className:"cr-modal__content",children:r})]})}):null}function _E({type:t="success",title:r="Action completed",message:i="",linkText:s="",linkHref:c="#",onLinkClick:u,onClose:f,showDismiss:p=!0,isVisible:m=!0,duration:g=5e3}){const[v,y]=bt.useState(!1);_.useEffect(()=>{if(m&&y(!1),m&&g>0&&f){const N=setTimeout(()=>{y(!0)},g-300),C=setTimeout(()=>{f()},g);return()=>{clearTimeout(N),clearTimeout(C)}}},[m,g,f]);const S=()=>{switch(t){case"remove":return o.jsx(W6,{});case"success":case"add":return o.jsx(V6,{});case"save":return o.jsx(z6,{});case"info":return o.jsx(rg,{});case"warning":case"error":return o.jsx(y_,{});default:return o.jsx(rg,{})}},w=()=>{switch(t){case"remove":case"success":case"add":case"save":return"cr-toast--success";case"info":return"cr-toast--info";case"warning":return"cr-toast--warning";case"error":return"cr-toast--error";default:return"cr-toast--info"}},E=N=>{u&&(N.preventDefault(),u())},b=()=>{f&&f()};return o.jsxs("div",{className:`cr-toast ${w()} ${v?"cr-toast--fade-out":""}`,role:"alert","aria-live":t==="error"?"assertive":"polite",style:{"--toast-duration":`${g}ms`},children:[o.jsxs("div",{className:"cr-toast__content",children:[o.jsx("div",{className:"cr-toast__icon",children:S()}),o.jsxs("div",{className:"cr-toast__text",children:[o.jsx("div",{className:"cr-toast__title",children:r}),i&&o.jsxs("div",{className:"cr-toast__message",children:[i,s&&o.jsxs(o.Fragment,{children:[" ",o.jsx("a",{href:c,className:"cr-toast__link",onClick:E,children:s}),"."]})]})]})]}
63),p&&o.jsx("div",{className:"cr-toast__dismiss",children:o.jsx(br,{variant:"close",layout:"icon-only",onClick:b,className:"cr-toast__dismiss-button"})})]})}function o2(){const t=Jr();return Dy({mutationFn:async({nextFavoriteDJs:r})=>{const i=t.getQueryData(["listener","me"]);if(!i?.id)throw new Error("Not logged in");await Hy(String(i.id),{favoriteDJs:r.map(s=>({djId:s}))})},onMutate:async({djId:r,isFavorite:i})=>{await t.cancelQueries({queryKey:["listener","me"]});const s=t.getQueryData(["listener","me"]);return t.setQueryData(["listener","me"],c=>{if(!c)return c;const u=c.favoriteDJs??[];return{...c,favoriteDJs:i?[...u,r]:u.filter(f=>f!==r)}}),{snapshot:s}},onError:(r,i,s)=>{s?.snapshot!==void 0&&t.setQueryData(["listener","me"],s.snapshot)},onSettled:()=>t.invalidateQueries({queryKey:["listener","me"]})})}function c2(t){const{data:r}=xr(),{mutate:i}=o2(),{showToast:s}=rn(),c=!!(t&&r?.favoriteDJs?.includes(t)),u=_.useCallback(()=>{if(!t||!r)return;const f=r.favoriteDJs??[],p=c?f.filter(m=>m!==t):[...f,t];i({djId:t,isFavorite:!c,nextFavoriteDJs:p}),s({message:c?"DJ removed from favorites":"DJ added to favorites!",type:"success",duration:3e3})},[t,r,c,i,s]);return{isFavorited:c,toggleFavorite:u}}function u2(){const{data:t}=xr(),{mutate:r}=o2(),{isLoggedIn:i,loginWithPassword:s,signUpWithPassword:c}=Wr(),{showToast:u}=rn(),[f,p]=_.useState(!1),[m,g]=_.useState("login"),v=_.useMemo(()=>t?.favoriteDJs??[],[t?.favoriteDJs]),y=_.useCallback(E=>{if(!i){g("login"),p(!0);return}if(!t)return;const b=v.includes(E),j=b?v.filter(N=>N!==E):[...v,E];r({djId:E,isFavorite:!b,nextFavoriteDJs:j}),u({message:b?"DJ removed from favorites":"DJ added to favorites!",type:"success",duration:3e3})},[i,t,v,r,u]),S=_.useCallback(async(E,b)=>{(await s(E,b)).success&&p(!1)},[s]),w=_.useCallback(async(E,b,j)=>{await c(E,b,j)},[c]);return{favoriteDjIds:v,handleFavoriteDjClick:y,loginModalProps:{isOpen:f,onClose:()=>p(!1),onLogin:S,onSignUp:w,initialMode:m}}}var zg;(function(t){t[t.Min=1]="Min",t[t.Low=2]="Low",t[t.Default=3]="Default",t[t.High=4]="High",t[t.Max=5]="Max"})(zg||(zg={}));var Pg;(function(t){t[t.Secret=-1]="Secret",t[t.Private=0]="Private",t[t.Public=1]="Public"})(Pg||(Pg={}));const Ws=On("FirebaseMessaging",{web:()=>ke(()=>import("./web-BKpnHNVk.js"),__vite__mapDeps([0,1])).then(t=>new t.FirebaseMessagingWeb)}),Rn=tt("push");async function $g(){const{getToken:t}=await ke(async()=>{const{getToken:c}=await import("./index.esm-B6wEIc0_.js").then(u=>u.f);return{getToken:c}},[]),{firebaseMessaging:r}=await ke(async()=>{const{firebaseMessaging:c}=await import("./firebase-DYM3YH6j.js");return{firebaseMessaging:c}},__vite__mapDeps([2,1]));if(!r)return null;const i="ypC6mBsa6O9_PFs82soRu5eoAw8HKV0PI-RF9NNgAYI",s=await navigator.serviceWorker.register("/firebase-messaging-sw.js");return await navigator.serviceWorker.ready,t(r,{vapidKey:i,serviceWorkerRegistration:s})}async function SE(){const{deleteToken:t}=await ke(async()=>{const{deleteToken:i}=await import("./index.esm-B6wEIc0_.js").then(s=>s.f);return{deleteToken:i}},[]),{firebaseMessaging:r}=await ke(async()=>{const{firebaseMessaging:i}=await import("./firebase-DYM3YH6j.js");return{firebaseMessaging:i}},__vite__mapDeps([2,1]));r&&await t(r).catch(()=>{})}async function oc(t,r){const i=await fetch(`${it}/push-subscriptions/register`,fa({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:t,token:r,userAgent:navigator.userAgent})}));if(!i.ok){const s=await i.text().catch(()=>"");throw new Error(`[push] CMS registration failed: ${i.status} ${s}`)}}async function Bg(t){const r=await fetch(`${it}/push-subscriptions/register`,fa({method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}));r.ok||Rn.warn("CMS unregister failed:",r.status)}function xE(t){if(t==="ios")return/iPad/.test(navigator.userAgent)?"iPad":"iPhone";if(t==="android")return"Android";const r=navigator.userAgent;return/Edg\//.test(r)?"Edge":/OPR\/|Opera/.test(r)?"Opera":/Firefox\//.test(r)?"Firefox":/Chrome\//.test(r)?"Chrome":/Safari\//.test(r)?"Safari":"this browser"}function EE(t){const[r,i]=_.useState("default"),[s,c]=_.useState(!1),u=_.useRef(null),p=_.useRef(Ge.getPlatform()).current,m=p==="ios"||p==="android",g=m||"serviceWorker"
63in navigator&&"Notification"in window;_.useEffect(()=>{!m||!t||(async()=>{try{Rn.log("Native mount â platform:",p,"listenerId:",t);const{receive:w}=await Ws.checkPermissions();if(Rn.log("Permission status:",w),w==="granted"){i("granted"),Rn.log("Getting FCM token...");const{token:E}=await Ws.getToken();Rn.log("FCM token:",E),u.current=E,c(!0),Rn.log("Registering token with CMS..."),await oc(p,E),Rn.log("CMS registration complete")}else w==="denied"?(i("denied"),Rn.warn("Notification permission denied")):Rn.log("Permission not yet requested:",w)}catch(w){Rn.error("Mount registration failed:",w)}})()},[m,t,p]),_.useEffect(()=>{m||!g||!t||Notification.permission!=="granted"||(async()=>{try{const w=await $g();if(!w)return;u.current=w,await oc("web",w),c(!0)}catch(w){Rn.error("Web mount registration failed:",w)}})()},[m,g,t]);const v=_.useCallback(async()=>{if(!g||!t)return!1;c(!0);try{if(m){const{receive:b}=await Ws.requestPermissions();if(b!=="granted")return i(b==="denied"?"denied":"default"),c(!1),!1;i("granted");const{token:j}=await Ws.getToken();return u.current=j,await oc(p,j),!0}const w=await Notification.requestPermission();if(i(w),w!=="granted")return c(!1),!1;const E=await $g();return E?(u.current=E,await oc("web",E),!0):(c(!1),!1)}catch(w){return Rn.error("Subscribe error:",w),c(!1),!1}},[g,m,t,p]),y=_.useCallback(async()=>{if(!g)return;const w=u.current;c(!1),u.current=null;try{if(m){w&&await Bg(w),await Ws.deleteToken();return}await SE(),w&&await Bg(w)}catch(E){Rn.error("Unsubscribe error:",E),u.current=w,c(!0)}},[g,m]),S=xE(p);return{permission:r,isSubscribed:s,deviceLabel:S,subscribe:v,unsubscribe:y,isSupported:g}}function wE(){const{toastState:t,modalState:r,hideModal:i}=rn(),{data:s=null}=xr();EE(s?.id??null);const c=()=>{r.onConfirm&&r.onConfirm(),i()},u=()=>{r.onCancel&&r.onCancel(),i()};return o.jsxs(o.Fragment,{children:[o.jsx(Bh,{isOpen:r.isOpen,onClose:u,scrimOnClick:u,title:r.title,size:r.size,showCloseButton:!0,children:o.jsxs("div",{className:"cr-modal__body",children:[o.jsx("p",{className:"cr-modal__text",children:r.message}),o.jsxs("div",{className:"cr-modal__actions cr-modal__actions--space-between cr-modal__actions--gap",children:[o.jsx(xe,{variant:"outline",color:"default",size:"medium",onClick:u,children:r.cancelText}),o.jsx(xe,{variant:"solid",color:"primary",size:"medium",onClick:c,children:r.confirmText})]})]})}),t.isVisible&&t.onClose&&o.jsx(_E,{title:t.message,type:t.type,isVisible:t.isVisible,onClose:()=>t.onClose?.(),duration:t.duration,showDismiss:!0},t.nonce)]})}function jE(){const{pathname:t}=Ut();return _.useEffect(()=>{window.scrollTo(0,0)},[t]),null}function tn(t){!t||typeof t!="string"||/^https?:\/\//i.test(t)&&window.open(t,"_blank","noopener,noreferrer")}function Zi(t){if(!(!t||typeof t!="string")&&(/^https?:\/\//i.test(t)||t.startsWith("/"))){window.location.href=t;return}}const AE=tt("RedirectChecker");function TE(){const t=Ut(),r=yn(),{data:i}=e2(t.pathname);return _.useEffect(()=>{const s=t.pathname;if(i){AE.log(`[RedirectChecker] Found redirect for ${s}`);let c="";if(i.to.type==="reference"&&i.to.reference){const{relationTo:u,value:f}=i.to.reference;if(typeof f=="object"&&f!==null&&"slug"in f){const p=f.slug;u==="pages"?c=`/${p}`:u==="articles"?c=`/blog/${p}`:u==="events"?c=`/events/${p}`:u==="podcasts"&&(c=`/podcasts/${p}`)}}else i.to.url&&(c=i.to.url);c&&(c.startsWith("http://")||c.startsWith("https://")?Zi(c):r(c,{replace:!0}))}},[t.pathname,i,r]),null}function tT(){const{data:t}=xr();return{data:t??null,loading:!1,error:null}}const d2=t=>!t||!Array.isArray(t.roles)?!1:t.roles.some(r=>r==="volunteer"||r==="dj");function NE(){return o.jsx("div",{className:"forbidden-page",children:o.jsx("div",{className:"page-layout-single",children:o.jsxs("div",{className:"error-page-container",children:[o.jsxs("div",{className:"error-page-number",children:["4",o.jsx(_r,{}),"3"]}),o.jsx("h1",{className:"error-page-title",children:"Access Denied"}),o.jsx("p",{className:"error-page-description",children:"You don't have access to this page."})]})})})}function CE({children:t}){const{data:r,isPending:i}=xr(),s=Ut();return i?null:r?d2(r)?o.jsx(o.Fragment,{children:t}):o.jsx(NE,{}):o.jsx(ul,{to:"/profile",state:{from:s},replace:!0})}const RE=tt("RouteErrorBoundary");class f2 extends _.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,i){const s="chirp-chunk-reload-attempted";if(Yv(r)&&!sessionStorage.getItem(s)){sessionStorage.setItem(s,"1"),window.location.reload();return}RE.error("Route error:",r,i)}handleRetry=()=>{this.setState({hasError:!1,error:null})};render(){return this.state.hasError?o.jsx(_h,{displayText:o.jsxs(o.Fragment,{children:[o.jsx(_r,{}),o.jsx(_r,{}),"ps"]}),title:"Something went wrong",description:"This page encountered an error. You can try again or navigate to another page.",actions:o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"solid",color:"secondary",size:"medium",onClick:this.handleRetry,children:"Try Again"}),o.jsx(xe,{variant:"outline",color:"default",size:"medium",onClick:()=>{window.location.href="/"},children:"Go Home"})]}),extras:void 0}):this.props.children}}const h2=On("OpenExternal");function LE({storeUrl:t}){const i=Ge.getPlatform()==="ios"?"App Store":"Play Store";_.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);const s=()=>{t&&h2.open({url:t}).catch(()=>{window.open(t,"_blank")})};return Vr.createPortal(o.jsx("div",{className:"force-update-overlay",role:"alertdialog","aria-modal":"true","aria-labelledby":"force-update-title","aria-describedby":"force-update-desc",children:o.jsx("div",{className:"force-update-modal",children:o.jsxs("div",{className:"force-update-body",children:[o.jsx("h2",{id:"force-update-title",className:"force-update-title",children:"Update Required"}),o.jsx("p",{id:"force-update-desc",className:"force-update-message",children:"A new version of the CHIRP Radio app is available for download. Please update to keep listening!"}),t&&o.jsxs("button",{className:"force-update-button",onClick:s,type:"button",children:["Update on ",i]})]})})}),document.body)}var Sf,qg;
63function m2(){if(qg)return Sf;qg=1;var t={};return Sf=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...i)=>{}:()=>{},Sf}var xf,Fg;function p2(){if(Fg)return xf;Fg=1;const t="2.0.0",r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,c=r-6;return xf={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:i,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},xf}var cc={exports:{}},Vg;function OE(){return Vg||(Vg=1,(function(t,r){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:c}=p2(),u=m2();r=t.exports={};const f=r.re=[],p=r.safeRe=[],m=r.src=[],g=r.safeSrc=[],v=r.t={};let y=0;const S="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",c],[S,s]],E=j=>{for(const[N,C]of w)j=j.split(`${N}*`).join(`${N}{0,${C}}`).split(`${N}+`).join(`${N}{1,${C}}`);return j},b=(j,N,C)=>{const M=E(N),R=y++;u(j,R,N),v[j]=R,m[R]=N,g[R]=M,f[R]=new RegExp(N,C?"g":void 0),p[R]=new RegExp(M,C?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${S}*`),b("MAINVERSION",`(${m[v.NUMERICIDENTIFIER]})\\.(${m[v.NUMERICIDENTIFIER]})\\.(${m[v.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${m[v.NUMERICIDENTIFIERLOOSE]})\\.(${m[v.NUMERICIDENTIFIERLOOSE]})\\.(${m[v.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${m[v.NONNUMERICIDENTIFIER]}|${m[v.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${m[v.NONNUMERICIDENTIFIER]}|${m[v.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${m[v.PRERELEASEIDENTIFIER]}(?:\\.${m[v.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${m[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[v.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${S}+`),b("BUILD",`(?:\\+(${m[v.BUILDIDENTIFIER]}(?:\\.${m[v.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${m[v.MAINVERSION]}${m[v.PRERELEASE]}?${m[v.BUILD]}?`),b("FULL",`^${m[v.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${m[v.MAINVERSIONLOOSE]}${m[v.PRERELEASELOOSE]}?${m[v.BUILD]}?`),b("LOOSE",`^${m[v.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${m[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${m[v.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${m[v.XRANGEIDENTIFIER]})(?:\\.(${m[v.XRANGEIDENTIFIER]})(?:\\.(${m[v.XRANGEIDENTIFIER]})(?:${m[v.PRERELEASE]})?${m[v.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${m[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[v.XRANGEIDENTIFIERLOOSE]})(?:${m[v.PRERELEASELOOSE]})?${m[v.BUILD]}?)?)?`),b("XRANGE",`^${m[v.GTLT]}\\s*${m[v.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${m[v.GTLT]}\\s*${m[v.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),b("COERCE",`${m[v.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",m[v.COERCEPLAIN]+`(?:${m[v.PRERELEASE]})?(?:${m[v.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",m[v.COERCE],!0),b("COERCERTLFULL",m[v.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${m[v.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",b("TILDE",`^${m[v.LONETILDE]}${m[v.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${m[v.LONETILDE]}${m[v.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${m[v.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",b("CARET",`^${m[v.LONECARET]}${m[v.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${m[v.LONECARET]}${m[v.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${m[v.GTLT]}\\s*(${m[v.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${m[v.GTLT]}\\s*(${m[v.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${m[v.GTLT]}\\s*(${m[v.LOOSEPLAIN]}|${m[v.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${m[v.XRANGEPLAIN]})\\s+-\\s+(${m[v.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${m[v.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[v.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(cc,cc.exports)),cc.exports}var Ef,Zg;function ME(){if(Zg)return Ef;Zg=1;const t=Object.freeze({loose:!0}),r=Object.freeze({});return Ef=s=>s?typeof s!="object"?t:s:r,Ef}var wf,Gg;function DE(){if(Gg)return wf;Gg=1;const t=/^[0-9]+$/,r=(s,c)=>{if(typeof s=="number"&&typeof c=="number")return s===c?0:s<c?-1:1;const u=t.test(s),f=t.test(c);return u&&f&&(s=+s,c=+c),s===c?0:u&&!f?-1:f&&!u?1:s<c?-1:1};return wf={compareIdentifiers:r,rcompareIdentifiers:(s,c)=>r(c,s)},wf}var jf,Yg;function kE(){if(Yg)return jf;Yg=1;const t=m2(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=p2(),{safeRe:s,t:c}=OE(),u=ME(),{compareIdentifiers:f}=DE();class p{constructor(g,v){if(v=u(v),g instanceof p){if(g.loose===!!v.loose&&g.includePrerelease===!!v.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>r)throw new TypeError(`version is longer than ${r} characters`);t("SemVer",g,v),this.options=v,this.loose=!!v.loose,this.includePrerelease=!!v.includePrerelease;const y=g.trim().match(v.loose?s[c.LOOSE]:s[c.FULL]);if(!y)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+y[1],this.minor=+y[2],this.patch=+y[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");y[4]?this.prerelease=y[4].split(".").map(S=>{if(/^[0-9]+$/.test(S)){const w=+S;if(w>=0&&w<i)return w}return S}):this.prerelease=[],this.build=y[5]?y[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof p)){if(typeof g=="string"&&g===this.version)return 0;g=new p(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof p||(g=new p(g,this.options)),this.major<g.major?-1:this.major>g.major?1:this.minor<g.minor?-1:this.minor>g.minor?1:this.patch<g.patch?-1:this.patch>g.patch?1:0}comparePre(g){if(g instanceof p||(g=new p(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let v=0;do{const y=this.prerelease[v],S=g.prerelease[v];
63if(t("prerelease compare",v,y,S),y===void 0&&S===void 0)return 0;if(S===void 0)return 1;if(y===void 0)return-1;if(y===S)continue;return f(y,S)}while(++v)}compareBuild(g){g instanceof p||(g=new p(g,this.options));let v=0;do{const y=this.build[v],S=g.build[v];if(t("build compare",v,y,S),y===void 0&&S===void 0)return 0;if(S===void 0)return 1;if(y===void 0)return-1;if(y===S)continue;return f(y,S)}while(++v)}inc(g,v,y){if(g.startsWith("pre")){if(!v&&y===!1)throw new Error("invalid increment argument: identifier is empty");if(v){const S=`-${v}`.match(this.options.loose?s[c.PRERELEASELOOSE]:s[c.PRERELEASE]);if(!S||S[1]!==v)throw new Error(`invalid identifier: ${v}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",v,y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",v,y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",v,y),this.inc("pre",v,y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",v,y),this.inc("pre",v,y);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const S=Number(y)?1:0;if(this.prerelease.length===0)this.prerelease=[S];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(v===this.prerelease.join(".")&&y===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(S)}}if(v){let w=[v,S];y===!1&&(w=[v]),f(this.prerelease[0],v)===0?isNaN(this.prerelease[1])&&(this.prerelease=w):this.prerelease=w}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return jf=p,jf}var Af,Qg;function IE(){if(Qg)return Af;Qg=1;const t=kE();return Af=(i,s,c)=>new t(i,c).compare(new t(s,c)),Af}var Tf,Kg;function UE(){if(Kg)return Tf;Kg=1;const t=IE();return Tf=(i,s,c)=>t(i,s,c)<0,Tf}var HE=UE();const zE=Tl(HE);function PE(t){const[r,i]=_.useState({required:!1,storeUrl:null});return _.useEffect(()=>{if(!Ge.isNativePlatform()||!t?.minimumRequired)return;const{iosMinVersion:s,androidMinVersion:c,iosStoreUrl:u,androidStoreUrl:f}=t.minimumRequired,p=Ge.getPlatform(),m=p==="ios"?s:c,g=p==="ios"?u??null:f??null;m&&mh.getInfo().then(v=>{zE(v.version,m)&&i({required:!0,storeUrl:g})}).catch(()=>{})},[t]),r}const Xg=On("SplashScreen",{web:()=>ke(()=>import("./web-D0BUwWkC.js"),[]).then(t=>new t.SplashScreenWeb)});function Ea({variant:t="horizontal",color:r="primary",className:i=""}){const s=f=>{const p={horizontal:"/images/chirp-logos/CHIRP_Logo_FM URL_horizontal.svg","horizontal-reversed":"/images/chirp-logos/CHIRP_Logo_FM URL_horizontal-reversed.svg",vertical:"/images/chirp-logos/CHIRP_Logo_FM URL_vertical.svg","vertical-reversed":"/images/chirp-logos/CHIRP_Logo_FM URL_vertical-reversed.svg",record:"/images/chirp-logos/CHIRP_Logo_FM URL_record.svg",bird:"/images/chirp-logos/CHIRP-bird.svg"};return p[f]||p.horizontal},c=(f,p)=>{const m={horizontal:"CHIRP Radio horizontal logo","horizontal-reversed":"CHIRP Radio horizontal reversed logo",vertical:"CHIRP Radio vertical logo","vertical-reversed":"CHIRP Radio vertical reversed logo",record:"CHIRP Radio record logo",bird:"CHIRP Radio bird icon"},g=m[f]||m.horizontal;return p==="white"?`${g} (white)`:g},u=()=>`cr-logo cr-logo--${t} ${r==="white"?"cr-logo--white":"cr-logo--primary"} ${i}`;return o.jsx("div",{className:u(),children:o.jsx("img",{src:s(t),alt:c(t,r),className:"cr-logo__image"})})}function Jg({pageTitle:t="",onMenuClick:r,onLogoClick:i,variant:s="default",actionButton:c}){const u=Ge.getPlatform()==="android",f=["cr-mobile-header",`cr-mobile-header--${s}
63`,u?"cr-mobile-header--android":""].filter(Boolean).join(" ");return o.jsxs("header",{className:f,children:[o.jsx("button",{className:"cr-mobile-header__logo",onClick:i,type:"button","aria-label":"Go to homepage",children:o.jsx(Ea,{variant:"vertical",className:"cr-mobile-header__logo-image"})}),o.jsxs("div",{className:"cr-mobile-header__title-section",children:[o.jsx("div",{className:"cr-mobile-header__page-title",children:t}),c&&o.jsx("div",{className:"cr-mobile-header__action",children:c})]}),o.jsx(br,{variant:"menu",layout:"icon-right",text:"MENU",onClick:r})]})}function uc(t){return Number.isFinite(t)?Math.max(0,Math.min(1,t)):1}function $E({value:t}){const r={size:16,"aria-hidden":!0};return t===0?o.jsx(h_,{...r}):t<=.33?o.jsx(f_,{...r}):t<=.66?o.jsx(d_,{...r}):o.jsx(u_,{...r})}function BE({value:t,defaultValue:r=1,onChange:i,hidden:s}){const c=_.useContext(Uh),u=t!==void 0&&i!==void 0,f=!u&&c!==void 0,[p,m]=_.useState(uc(r)),g=u?uc(t):f?uc(c.volume):p,[v,y]=_.useState(!1),S=_.useRef(null),w=_.useRef(null),E=_.useRef(null),b=_.useCallback(V=>{const k=uc(V);u?i(k):f?c.setVolume(k):(m(k),i?.(k))},[u,f,c,i]),j=V=>{b(parseFloat(V.target.value))},N=_.useCallback(()=>{y(!0),setTimeout(()=>w.current?.focus(),50)},[]),C=_.useCallback((V=!0)=>{y(!1),V&&setTimeout(()=>S.current?.focus(),0)},[]),M=V=>{V.stopPropagation(),v?C():N()};if(_.useEffect(()=>{if(!v)return;const V=k=>{k.key==="Escape"&&(k.stopPropagation(),C(!0))};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[v,C]),_.useEffect(()=>{if(!v)return;const V=k=>{E.current&&(E.current.contains(k.target)||C(!1))};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[v,C]),s)return null;const R=Math.round(g*100),z=g===0?"Muted. Click to adjust.":`Volume: ${R}%. Click to adjust.`;return o.jsxs("div",{ref:E,className:`cr-volume ${v?"cr-volume--open":""}`,role:"group","aria-label":"Player volume",children:[o.jsx("div",{className:"cr-volume__pill","aria-hidden":!v,children:o.jsxs("div",{className:"cr-volume__slider-wrap",children:[o.jsx("span",{className:"cr-volume__readout","aria-hidden":"true",children:g===0?"Mute":`${R}%`}),o.jsx("input",{ref:w,type:"range",className:"cr-volume__slider",min:0,max:1,step:.01,value:g,onChange:j,"aria-label":"Player volume","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":g,"aria-valuetext":g===0?"Muted":`${R} percent`,style:{"--fill":`${R}%`}})]})}),o.jsx("button",{ref:S,type:"button",className:"cr-volume__button",onClick:M,"aria-label":z,"aria-expanded":v,"aria-haspopup":"dialog",children:o.jsx($E,{value:g})})]})}const qE=tt("useLoginRequired");function Gc(){const[t,r]=_.useState(!1),{isLoggedIn:i,loginWithPassword:s,signUpWithPassword:c}=Wr(),{showToast:u}=rn(),{data:f}=Ml();return{isLoggedIn:i,showLoginModal:t,requireLogin:y=>i?(y(),!0):(r(!0),!1),handleLogin:async(y,S)=>{try{const w=await s(y,S);w.success?(r(!1),u({message:f?.loginSuccessMessage||"Successfully logged in!",type:"success",duration:3e3})):u({message:w.error||"Login failed",type:"error",duration:5e3})}catch(w){qE.error("Login error:",w),u({message:"An error occurred during login",type:"error",duration:5e3})}},handleSignUp:async(y,S,w)=>{const E=await c(y,S,w);if(!E.success)throw new Error(E.error||"Sign up failed")},closeModal:()=>{r(!1)}}}var FE=({as:t="div",...r},i)=>o.jsx(t,{...r,ref:i}),VE=_.forwardRef(FE),ZE="https://challenges.cloudflare.com/turnstile/v0/api.js",qh="cf-turnstile-script",GE="cf-turnstile",Fh="onloadTurnstileCallback",g2=t=>!!document.getElementById(t),YE=({render:t="explicit",onLoadCallbackName:r=Fh,scriptOptions:{nonce:i="",defer:s=!0,async:c=!0,id:u="",appendTo:f,onError:p,crossOrigin:m=""}={}})=>{let g=u||qh;if(g2(g))return;let v=document.createElement("script");
63v.id=g,v.src=`${ZE}?onload=${r}&render=${t}`,!document.querySelector(`script[src="${v.src}"]`)&&(v.defer=!!s,v.async=!!c,i&&(v.nonce=i),m&&(v.crossOrigin=m),p&&(v.onerror=p,delete window[r]),(f==="body"?document.body:document.getElementsByTagName("head")[0]).appendChild(v))},$r={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 QE(t){if(t!=="invisible"&&t!=="interactionOnly")return t}function KE(t=qh){let[r,i]=_.useState(!1);return _.useEffect(()=>{let s=()=>{g2(t)&&i(!0)},c=new MutationObserver(s);return c.observe(document,{childList:!0,subtree:!0}),s(),()=>{c.disconnect()}},[t]),r}var ml="unloaded",v2,XE=new Promise((t,r)=>{v2={resolve:t,reject:r},ml==="ready"&&t(void 0)}),Wg=(t=Fh)=>(ml==="unloaded"&&(ml="loading",window[t]=()=>{v2.resolve(),ml="ready",delete window[t]}),XE),y2=_.forwardRef((t,r)=>{let{scriptOptions:i,options:s={},siteKey:c,onWidgetLoad:u,onSuccess:f,onExpire:p,onError:m,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:S,onLoadScript:w,id:E,style:b,as:j="div",injectScript:N=!0,rerenderOnCallbackChange:C=!1,...M}=t,R=s.size,z=_.useCallback(()=>typeof R>"u"?{}:s.execution==="execute"?$r.invisible:s.appearance==="interaction-only"?$r.interactionOnly:$r[R],[s.execution,R,s.appearance]),[V,k]=_.useState(z()),I=_.useRef(null),[U,L]=_.useState(!1),B=_.useRef(void 0),Q=_.useRef(!1),K=E||GE,D=_.useRef({onSuccess:f,onError:m,onExpire:p,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:S});_.useEffect(()=>{C||(D.current={onSuccess:f,onError:m,onExpire:p,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:S})});let q=i?.id||qh,O=KE(q),Y=i?.onLoadCallbackName||Fh,Z=s.appearance||"always",ee=_.useMemo(()=>({sitekey:c,action:s.action,cData:s.cData,theme:s.theme||"auto",language:s.language||"auto",tabindex:s.tabIndex,"response-field":s.responseField,"response-field-name":s.responseFieldName,size:QE(R),retry:s.retry||"auto","retry-interval":s.retryInterval||8e3,"refresh-expired":s.refreshExpired||"auto","refresh-timeout":s.refreshTimeout||"auto",execution:s.execution||"render",appearance:s.appearance||"always","feedback-enabled":s.feedbackEnabled??!0,callback:A=>{Q.current=!0,C?f?.(A):D.current.onSuccess?.(A)},"error-callback":C?m:(...A)=>D.current.onError?.(...A),"expired-callback":C?p:(...A)=>D.current.onExpire?.(...A),"before-interactive-callback":C?g:(...A)=>D.current.onBeforeInteractive?.(...A),"after-interactive-callback":C?v:(...A)=>D.current.onAfterInteractive?.(...A),"unsupported-callback":C?y:(...A)=>D.current.onUnsupported?.(...A),"timeout-callback":C?S:(...A)=>D.current.onTimeout?.(...A)}),[s.action,s.appearance,s.cData,s.execution,s.language,s.refreshExpired,s.responseField,s.responseFieldName,s.retry,s.retryInterval,s.tabIndex,s.theme,s.feedbackEnabled,s.refreshTimeout,c,R,C,C?f:null,C?m:null,C?p:null,C?g:null,C?v:null,C?y:null,C?S:null]),ne=_.useCallback(()=>typeof window<"u"&&!!window.turnstile,[]);return _.useEffect(function(){N&&!U&&(Wg(Y),YE({onLoadCallbackName:Y,scriptOptions:{...i,id:q}}))},[N,U,i,q,Y]),_.useEffect(function(){ml!=="ready"&&Wg(Y).then(()=>L(!0)).catch(console.error)},[Y]),_.useEffect(function(){if(!I.current||!U)return;let A=!1;return(async()=>{if(A||!I.current)return;let F=window.turnstile.render(I.current,ee);B.current=F,B.current&&u?.(B.current)})(),()=>{A=!0,B.current&&(window.turnstile.remove(B.current),Q.current=!1)}},[K,U,ee]),_.useImperativeHandle(r,()=>{let{turnstile:A}=window;return{getResponse(){if(!(!A?.getResponse||!B.current||!ne()))return A.getResponse(B.current)},async getResponsePromise(F=3e4,X=100){return new Promise((ie,re)=>{let de,se=async()=>{if(Q.current&&window.turnstile&&B.current)try{let ge=window.turnstile.getResponse(B.current);return de&&clearTimeout(de),ge?ie(ge):re(new Error("No response received"))}catch{return de&&clearTimeout(de),re(new Error("Failed to get response"))}de||(de=setTimeout(()=>{de&&clearTimeout(de),re(new Error("Timeout"))},F)),await new Promise(ge=>setTimeout(ge,X)),await se()};se()})},reset(){if(!(!A?.reset||!B.current||!ne())){s.execution==="execute"&&k($r.invisible);try{Q.current=!1,A.reset(B.current)}catch{}}},remove(){!A?.remove||!B.current||!ne()||(k($r.invisible),Q.current=!1,A.remove(B.current),B.current=null)}
63,render(){if(!A?.render||!I.current||!ne()||B.current)return;let F=A.render(I.current,ee);return B.current=F,B.current&&u?.(B.current),s.execution!=="execute"&&k(R?$r[R]:{}),F},execute(){s.execution==="execute"&&(!A?.execute||!I.current||!B.current||!ne()||(A.execute(I.current,ee),k(R?$r[R]:{})))},isExpired(){return!A?.isExpired||!B.current||!ne()?!1:A.isExpired(B.current)}}},[B,s.execution,R,ee,I,ne,U,u]),_.useEffect(()=>{if(U||!O)return;if(window.turnstile){L(!0);return}let A=setInterval(()=>{window.turnstile&&(L(!0),clearInterval(A))},50);return()=>{clearInterval(A)}},[U,O]),_.useEffect(()=>{k(z())},[s.execution,R,Z]),_.useEffect(()=>{!O||typeof w!="function"||w()},[O]),o.jsx(VE,{ref:I,as:j,id:K,style:{...V,...b},...M})});y2.displayName="Turnstile";function b2({day:t,isActive:r=!1,isToday:i=!1,onClick:s,options:c=[],selectedValue:u=null,onSelectionChange:f,layout:p="horizontal",variant:m="schedule",size:g="small",className:v="",ariaLabel:y="Options"}){const[S,w]=_.useState(typeof window<"u"?window.innerWidth:1200);if(_.useEffect(()=>{let j=0;const N=()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>w(window.innerWidth))};return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N),cancelAnimationFrame(j)}},[]),t&&!c.length)return E();return b();function E(){const j=()=>S<540?t?.slice(0,1).toUpperCase():S<=768?t?.slice(0,3).toUpperCase():t,N=()=>r?"solid":i?"outline":"text",C=()=>r||i?"secondary":"default";return o.jsx("div",{className:`cr-dj-schedule-tab ${r?"cr-dj-schedule-tab--active":""} ${i&&!r?"cr-dj-schedule-tab--today":""} ${v}`,children:o.jsx(xe,{variant:N(),color:C(),size:"small",onClick:s,role:"tab","aria-selected":r,children:j()})})}function b(){const j=["cr-button-group",`cr-button-group--${p}`,`cr-button-group--${m}`,v].filter(Boolean).join(" "),N=C=>{u!==C&&f?.(C)};return o.jsx("div",{className:j,role:"group","aria-label":y,children:c.map(C=>{const M=u===C.value;return o.jsx(xe,{variant:M?"solid":"text",color:M?"secondary":"default",size:g,onClick:()=>N(C.value),leftIcon:C.leftIcon,rightIcon:C.rightIcon,children:C.label},C.value)})})}}const JE="5820844800999424",ev=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function WE(t=4){const{data:r}=Wy();return _.useMemo(()=>{if(!r||r.length===0)return[];const i=new Date,s=new Intl.DateTimeFormat("en-US",{timeZone:"America/Chicago",weekday:"long",hour:"numeric",minute:"numeric",hour12:!1}).formatToParts(i),c=s.find(w=>w.type==="weekday")?.value?.toLowerCase()||"",u=parseInt(s.find(w=>w.type==="hour")?.value||"0",10),f=parseInt(s.find(w=>w.type==="minute")?.value||"0",10),p=u*60+f,m=ev.indexOf(c),g=w=>{if(!w)return 0;const E=w.match(/^(\d{1,2}):(\d{2})$/);if(E)return parseInt(E[1],10)*60+parseInt(E[2],10);const b=w.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i);if(b){let j=parseInt(b[1],10);const N=parseInt(b[2],10);return b[3].toUpperCase()==="PM"&&j<12&&(j+=12),b[3].toUpperCase()==="AM"&&j===12&&(j=0),j*60+N}return 0},v=[];for(const w of r){const E=w.dj;if(!E||typeof E=="string"||typeof E=="number")continue;const b=String(E.djId||""),j=String(E.djName||"");if(b===JE||j.toLowerCase().includes("niteowl")||j.toLowerCase().includes("nite owl"))continue;const N=(w.dayOfWeek||"").toLowerCase(),C=ev.indexOf(N);if(C===-1)continue;const M=g(w.startTime);let R=C-m;R<0&&(R+=7);let z=R*24*60+(M-p);z<=0&&(z+=10080),v.push({schedule:w,minutesUntil:z})}v.sort((w,E)=>w.minutesUntil-E.minutesUntil);const y=new Set,S=[];for(const{schedule:w}of v){const E=w.dj,b=String(E.id||E.djId||E.djName);if(!y.has(b)&&(y.add(b),S.push({...E,imageSrc:qi(E.profileImage),showSchedules:[w],showTime:w.startTime?`${w.dayOfWeek} ${w.startTime}`:void 0}),S.length>=t))break}return S},[r,t])}function _2(){const{data:t,isLoading:r,error:i}=Ki(),s=ei(t?.djId?[t.djId]:[]);return{data:_.useMemo(()=>{if(!t)return;const u=t.djId&&s.get(t.djId)?.showName||"",f=Xi(t.djName||"",u);return{djName:f.djName,showName:f.showName}},[t,s]),loading:r,error:i}}function nT(t){const{data:r,isLoading:i,error:s}=Q4(t);return{data:r??void 0,isLoading:i,error:s}}function aT(t,r=8,i){const{data:s,isLoading:c,error:u}=H4(t,r,i);return{data:s??void 0,loading:c,error:u}}function rT(t){const{data:r,isLoading:i,error:s}=z4(t);return{data:r??void 0,loading:i,error:s}}function iT(t=3,r){const{data:i,isLoading:s,error:c}=Qy(t,r);return{data:i??void 0,loading:s,error:c}}function sT(t,r=11,i){const{data:s,isLoading:c,error:u}=P4(t,r,i);return{data:s??void 0,loading:c,error:u}}function lT(t){const{data:r,isLoading:i,error:s}=$4(t);return{data:r??void 0,loading:i,error:s}}function oT(t=3,r){const{data:i,isLoading:s,error:c}=Ky(t,r);return{data:i??void 0,loading:s,error:c}}function cT(t,r=11,i){const{data:s,isLoading:c,error:u}=q4(t,r,i);return{data:s??void 0,loading:c,error:u}}function uT(t){const{data:r,isLoading:i,error:s}
63=F4(t);return{data:r??void 0,loading:i,error:s}}function dT(t=3,r){const{data:i,isLoading:s,error:c}=V4(t,r);return{data:i??void 0,loading:s,error:c}}function fT(){const{data:t,isLoading:r,error:i}=Y4();return{data:t??void 0,loading:r,error:i}}function ti(){const{data:t,isLoading:r,error:i}=Ml();return{data:t??null,loading:r,error:i}}function e3(){const{data:t,isLoading:r,error:i}=eE();return{data:t??null,loading:r,error:i}}function t3(){const{data:t,isLoading:r,error:i}=nE();return{data:t??null,loading:r,error:i}}function n3(){const{data:t,isLoading:r,error:i}=Wy();return{data:t??void 0,loading:r,error:i}}function hT(t,r=5,i){const{data:s,isLoading:c,error:u}=iE(t,r,i);return{data:s??void 0,loading:c,error:u}}function mT(t=!0){const{data:r,isLoading:i,error:s}=rE(t);return{data:r??null,loading:i,error:s}}function a3(){const{data:t,isLoading:r,error:i}=lE();return{data:t??null,loading:r,error:i}}function r3({permalink:t}){return _.useEffect(()=>{const r=window;if(r.instgrm){r.instgrm.Embeds.process();return}if(!document.querySelector('script[src="https://www.instagram.com/embed.js"]')){const i=document.createElement("script");i.src="https://www.instagram.com/embed.js",i.async=!0,document.body.appendChild(i)}},[t]),o.jsx("div",{className:"lexical-instagram-block",children:o.jsx("blockquote",{className:"instagram-media","data-instgrm-permalink":t,"data-instgrm-version":"14",style:{width:"100%",maxWidth:"540px",margin:"1rem auto"}})})}function Sl(t){if(!t||typeof t!="string")return!1;const r=t.trim();return r.startsWith("/")?!0:/^(https?:\/\/|mailto:|tel:)/i.test(r)}function S2(t){if(!t||typeof t!="string")return!1;const r=t.trim().toLowerCase();return r.startsWith("mailto:")||r.startsWith("tel:")}function pl(t){if(!Sl(t))return{href:"#"};const r=t.trim();if(r.startsWith("/"))return{href:r};if(S2(r))return{href:r};try{const i=new URL(r);return i.hostname==="chirpradio.org"||i.hostname.endsWith(".chirpradio.org")?{href:r}:{href:r,target:"_blank",rel:"noopener noreferrer"}}catch{return{href:"#"}}}const i3=["www.youtube.com","youtube.com","youtu.be","www.youtube-nocookie.com","youtube-nocookie.com","player.vimeo.com","vimeo.com","w.soundcloud.com","bandcamp.com"];function s3(t){try{const r=new URL(t);return r.protocol!=="https:"?!1:i3.includes(r.hostname)}catch{return!1}}function Qn(t,r=""){return t?t.map((i,s)=>l3(i,`${r}${s}`)):null}function l3(t,r){if(!t)return null;if(t.type==="text"){const s=t.format||0;let c=t.text;return s&1&&(c=o.jsx("strong",{children:c},"b")),s&2&&(c=o.jsx("em",{children:c},"i")),s&4&&(c=o.jsx("s",{children:c},"s")),s&8&&(c=o.jsx("u",{children:c},"u")),s&16&&(c=o.jsx("code",{children:c},"code")),o.jsx(bt.Fragment,{children:c},r)}if(t.type==="linebreak")return o.jsx("br",{},r);if(t.type==="upload"){const s=t.value;return s?.url?o.jsx("figure",{className:"lexical-image",children:o.jsx("img",{src:s.url,alt:s.alt||"",width:s.width,height:s.height})},r):null}if(t.type==="block"){const s=t.fields??{};switch(s.blockType){case"instagramBlock":{const c=s.permalink;return c?o.jsx(r3,{permalink:c},r):null}case"embedBlock":{const c=s.url;if(!c||!s3(c))return null;const u=(()=>{if(!c.includes("youtube.com"))return c;try{const p=new URL(c);return p.searchParams.set("enablejsapi","1"),p.toString()}catch{return c}})(),f=s.alt||"Embedded content";return o.jsx("div",{className:"lexical-embed-block lexical-embed-block--video",children:o.jsx("iframe",{src:u,title:f,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})},r)}case"imageBlock":{const c=s.image;if(!c?.url)return null;const u=s.width||"33%",f=s.alignment||"left",p=f==="left"?"0 1rem 1rem 0":"0 0 1rem 1rem";return o.jsx("figure",{className:"lexical-image-block",style:{float:f,width:u,margin:p},children:o.jsx("img",{src:c.url,alt:c.alt||""})},r)}case"imageLinkBlock":{const c=s.image;if(!c?.url)return null;const u=s.url,f=o.jsx("img",{src:c.url,alt:c.alt||""});return Sl(u)?o.jsx("figure",{className:"lexical-image-link-block",children:o.jsx("a",{...pl(u),children:f})},r):o.jsx("figure",{className:"lexical-image-link-block",children:f},r)}case"richListBlock":{const c=s.listType,u=s.items??[],f=c==="ordered"?"ol":"ul";return o.jsx(f,{className:"lexical-rich-list",children:u.map((p,m)=>{const v=p.content?.root?.children;if(v?.length===1&&v[0].type==="paragraph"){const y=v[0].children;return o.jsx("li",{children:Qn(y,`${r}-${m}-`)},m)}return o.jsx("li",{children:o.jsx(xl,{content:p.content})},m)})},r)}case"missingImageBlock":return null;default:return null}}const i=t.children;switch(t.type){case"root":return o.jsx(bt.Fragment,{children:Qn(i,`${r}-`)},r);case"paragraph":return o.jsx("p",{children:Qn(i,`${r}-`)},r);case"heading":{const s=t.tag||"h1";return o.jsx(s,{children:Qn(i,`${r}-`)},r)}case"list":{const s=t.tag==="ol"?"ol":"ul";return o.jsx(s,{children:Qn(i,`${r}-`)},r)}case"listitem":return o.jsx("li",{children:Qn(i,`${r}-`)},r);case"link":{const s=t.fields,c=s?.url??t.url;if(!Sl(c))return o.jsx("span",{children:Qn(i,`${r}-`)},r);const u=pl(c),p=s?.newTab&&!u.target&&!S2(c)?{...u,target:"_blank",rel:"noopener noreferrer"}:u;return o.jsx("a",{...p,title:t.title,children:Qn(i,`${r}-`)},r)}case"quote":return o.jsx("blockquote",{children:Qn(i,`${r}-`)},r);case"code":return o.jsx("code",{children:Qn(i,`${r}-`)},r);default:return o.jsx(bt.Fragment,{children:Qn(i,`${r}-`)},r)}}function xl({content:t,className:r}){if(!t)return null;const i=typeof t=="string"?o.jsx("p",{children:t}):typeof t=="object"&&"root"in t?o.jsx(o.Fragment,{children:Qn(t.root.children)}):null;return i?r?o.jsx("div",{className:r,children:i}):o.jsx(o.Fragment,{children:i}):null}const tv=tt("CrLoginRequiredModal"),Nf="0x4AAAAAADPXcktfrdqBsqnd";function Jn({isOpen:t,onClose:r,onLogin:i,onSignUp:s,initialMode:c="login"}){const{data:u}=e3(),[f,p]=_.useState(c),[m,g]=_.useState(""),[v,y]=_.useState({}),[S,w]=_.useState(!1),[E,b]=_.useState(!1),[j,N]=_.useState(!1);_.useEffect(()=>{t&&(p(c),N(!1))},[t,c]);const[C,M]=_.useState(()=>localStorage.getItem("chirp_login_email")||""),[R,z]=_.useState(""),[V,k]=_.useState(""),[I,U]=_.useState(!1),[L,B]=_.useState(!1),[Q,K]=_.useState(void 0),D=_.useRef(null),[q,O]=_.useState({}),Y=u?.loginModal?.loginMessage??"Log in to your CHIRP Radio listener account to add songs to your collection.",Z=u?.loginModal?.signupMessage??"Create a CHIRP Radio listener account to save songs to your collection and more.",ee=()=>{K(void 0),D.current?.reset()},ne=re=>{p(re),O({}),ee()},A=async re=>{re.preventDefault();const de={};if(m?/\S+@\S+\.\S+/.test(m)||(de.email="Please enter a valid email address"):de.email="Email is required",Object.keys(de).length>0){y(de);return}w(!0);try{await fetch(`${kh}/api/listeners/forgot-password`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:m})}),b(!0),y({})}catch(se){tv.error("Forgot password error:",se),y({email:"Network error. Please try again."})}finally{w(!1)}},F=()=>{p("login"),g(""),y({}),b(!1)},X=async re=>{re.preventDefault();const de={};if(C?/\S+@\S+\.\S+/.test(C)||(de.email="Please enter a valid email address"):de.email="Email is required",R?f==="signup"&&R.length<8&&(de.password="Password must be at least 8 characters"):de.password="Password is required",f==="signup"&&R!==V&&(de.confirmPassword="Passwords do not match"),f==="signup"&&Nf&&!Q&&(de.turnstile="Please complete the security check"),Object.keys(de).length>0){O(de);return}try{if(f==="login"){if(typeof i!="function")throw new Error(`onLogin is not a function, it is: ${typeof i}`);await i(C,R),localStorage.setItem("chirp_login_email",C)}else{if(typeof s!="function")throw new Error(`onSignUp is not a function, it is: ${typeof s}`);await s(C,R,Q),N(!0);return}}catch(se){tv.error("[LoginRequiredModal] Error:",se),ee();return}z(""),k(""),O({})},ie=()=>{z(""),k(""),O({}),g(""),y({}),b(!1),N(!1),ee(),p("login"),r()};return o.jsx(o.Fragment,{children:o.jsx(Bh,{isOpen:t,onClose:ie,scrimOnClick:ie,title:j?"Verify Your Email"
63:f==="forgot"?"Reset Password":f==="login"?"Log In":"Sign Up",size:"small",children:o.jsx("div",{className:"cr-modal__body",children:o.jsx("div",{className:"login-modal",children:f==="forgot"?o.jsx(o.Fragment,{children:E?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"login-modal__message",children:"If an account exists with that email address, we've sent you a password reset link. Please check your inbox and spam folder."}),o.jsx("div",{className:"cr-modal__actions",children:o.jsx(xe,{type:"button",variant:"solid",color:"secondary",size:"medium",onClick:F,children:"Back to Log In"})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"login-modal__message",children:"Enter your email address and we'll send you a link to reset your password."}),o.jsxs("form",{onSubmit:A,className:"login-modal__form",children:[o.jsxs("div",{className:"login-modal__field",children:[o.jsxs("label",{htmlFor:"forgot-email",className:"login-modal__label",children:["Email ",o.jsx("span",{className:"login-modal__required",children:"*"})]}),o.jsx("input",{type:"email",id:"forgot-email",className:`login-modal__input ${v.email?"login-modal__input--error":""}`,value:m,onChange:re=>g(re.target.value),placeholder:"Enter your email",disabled:S}),v.email&&o.jsx("span",{className:"login-modal__error",children:v.email})]}),o.jsxs("div",{className:"cr-modal__actions cr-modal__actions--space-between cr-modal__actions--gap",children:[o.jsx(xe,{type:"button",variant:"outline",color:"default",size:"medium",onClick:F,disabled:S,children:"Back to Log In"}),o.jsx(xe,{type:"submit",variant:"solid",color:"secondary",size:"medium",disabled:S,children:S?"Sending...":"Send Reset Link"})]})]})]})}):j?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"login-modal__message",children:o.jsx("strong",{children:"Account created!"})}),o.jsxs("div",{className:"login-modal__message",children:["We sent a verification link to ",o.jsx("strong",{children:C}),". Please check your inbox and spam folder, then click the link to activate your account."]}),o.jsx("div",{className:"login-modal__message login-modal__message--hint",children:"Look for an email from CHIRP Radio to verify your account. You won't be able to log in until your email is verified."}),o.jsx("div",{className:"cr-modal__actions",children:o.jsx(xe,{type:"button",variant:"solid",color:"secondary",size:"medium",onClick:ie,children:"Got It"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(xl,{content:f==="login"?Y:Z,className:"login-modal__message"}),o.jsx("div",{className:"login-modal__mode-toggle",children:o.jsx(b2,{options:[{label:"Log In",value:"login"},{label:"Sign Up",value:"signup"}],selectedValue:f,onSelectionChange:ne,layout:"horizontal",variant:"schedule",size:"medium",ariaLabel:"Choose login or sign up"})}),o.jsxs("div",{role:"status","aria-live":"polite",className:"sr-only",children:[f==="login"&&"Log in form",f==="signup"&&"Sign up form"]}),o.jsxs("form",{onSubmit:X,className:"login-modal__form",children:[o.jsxs("div",{className:"login-modal__field",children:[o.jsxs("label",{htmlFor:"email",className:"login-modal__label",children:["Email ",o.jsx("span",{className:"login-modal__required",children:"*"})]}),o.jsx("input",{type:"email",id:"email",autoCapitalize:"none",className:`login-modal__input ${q.email?"login-modal__input--error":""}`,value:C,onChange:re=>M(re.target.value),placeholder:"Enter your email"}),q.email&&o.jsx("span",{className:"login-modal__error",children:q.email})]}),o.jsxs("div",{className:"login-modal__field",children:[o.jsxs("label",{htmlFor:"password",className:"login-modal__label",children:["Password ",o.jsx("span",{className:"login-modal__required",children:"*"})]}),o.jsxs("div",{className:"login-modal__password-wrapper",children:[o.jsx("input",{type:I?"text":"password",id:"password",autoCapitalize:"none",className:`login-modal__input ${q.password?"login-modal__input--error":""}`,value:R,onChange:re=>z(re.target.value),placeholder:f==="login"?"Enter your password":"Create a password (min 8 characters)"}),o.jsx("button",{type:"button",className:"login-modal__password-toggle",onClick:()=>U(!I),"aria-label":I?"Hide password":"Show password",children:I?o.jsx(Tc,{size:20}):o.jsx(Zf,{size:20})})]}),q.password&&o.jsx("span",{className:"login-modal__error",children:q.password})]}),f==="signup"&&o.jsxs("div",{className:"login-modal__field",children:[o.jsxs("label",{htmlFor:"confirmPassword",className:"login-modal__label",children:["Confirm Password ",o.jsx("span",{className:"login-modal__required",children:"*"})]}),o.jsxs("div",{className:"login-modal__password-wrapper",children:[o.jsx("input",{type:L?"text":"password",id:"confirmPassword",autoCapitalize:"none",className:`login-modal__input ${q.confirmPassword?"login-modal__input--error":""}`,value:V,onChange:re=>k(re.target.value),placeholder:"Re-enter your password"}),o.jsx("button",{type:"button",className:"login-modal__password-toggle",onClick:()=>B(!L),"aria-label":L?"Hide password":"Show password",children:L?o.jsx(Tc,{size:20}):o.jsx(Zf,{size:20})})]}),q.confirmPassword&&o.jsx("span",{className:"login-modal__error",children:q.confirmPassword})]}),f==="signup"&&Nf&&o.jsxs("div",{className:"login-modal__field login-modal__turnstile",children:[o.jsx(y2,{ref:D,siteKey:Nf,onSuccess:K,onExpire:()=>K(void 0),onError:()=>K(void 0)}),q.turnstile&&o.jsx("span",{className:"login-modal__error",children:q.turnstile})]}),f==="login"&&o.jsx("div",{className:"login-modal__forgot-password",children:o.jsx("button",{type:"button",className:"login-modal__forgot-link",onClick:()=>{g(C),p("forgot")},children:"Forgot password?"})}),o.jsxs("div",{className:"cr-modal__actions cr-modal__actions--space-between cr-modal__actions--gap",children:[o.jsx(xe,{type:"button",variant:"outline",color:"default",size:"medium",onClick:ie,children:"Cancel"}),o.jsx(xe,{type:"submit",variant:"solid",color:"secondary",size:"medium",children:f==="login"?"Log In":"Sign Up"})]})]})]})})})})})}function gl(t,r,i){const s=i?"Remove":"Add",c=i?"from":"to";return!t||!r?`${s} this track ${c}
63 your collection`:`${s} ${t} by ${r} ${c} your collection`}const nv=tt("CrTrackInfo");function qr({variant:t="full",trackName:r="",artistName:i="",albumName:s="",labelName:c="",albumArt:u="",isLocal:f=!1,isAdded:p,onToggleAdd:m,showVolume:g=!1,className:v=""}){const{requireLogin:y,showLoginModal:S,handleLogin:w,handleSignUp:E,closeModal:b}=Gc(),{showToast:j}=rn(),{isInCollection:N,toggleCollection:C}=$h({artistName:i,trackName:r}),M=p!==void 0?p:N,R=_.useRef(null),z=_.useRef(null),V=_.useRef(null),k=_.useRef(null),I=_.useRef(null),U=_.useRef(null),L=_.useRef(null),B=_.useRef(null),Q=_.useRef(null),K=_.useRef(null);_.useEffect(()=>{const ee=(re,de,se)=>{if(re&&de){de.offsetWidth,re.offsetWidth;const be=re.scrollWidth>de.clientWidth+5;if(nv.log(`[CrTrackInfo] Overflow check ${se||"unknown"}:`,{scrollWidth:re.scrollWidth,clientWidth:de.clientWidth,isOverflowing:be}),be){const Ne=-(re.scrollWidth-de.clientWidth+20);re.style.setProperty("--scroll-distance",`${Ne}px`);const Ee=re.scrollWidth-de.clientWidth,me=Math.max(12,12+Ee/100*4);re.style.setProperty("--animation-duration",`${me}s`),re.classList.add("has-overflow"),nv.log(`[CrTrackInfo] Added overflow animation to ${se||"unknown"}: distance=${Ne}px, duration=${me}s`)}else re.classList.remove("has-overflow"),re.style.removeProperty("--scroll-distance"),re.style.removeProperty("--animation-duration")}},ne=()=>{ee(R.current,U.current,"track"),ee(z.current,L.current,"artist"),ee(V.current,B.current,"album"),ee(k.current,Q.current,"label"),ee(I.current,K.current,"details")},A=setTimeout(ne,800);document.fonts&&document.fonts.ready&&document.fonts.ready.then(ne);let F=0;const X=new ResizeObserver(()=>{cancelAnimationFrame(F),F=requestAnimationFrame(ne)});return[U.current,L.current,B.current,Q.current,K.current].forEach(re=>{re&&X.observe(re)}),()=>{clearTimeout(A),cancelAnimationFrame(F),X.disconnect()}},[r,i,s,c,t,f]);const D=()=>{y(()=>{if(m){m(!M);return}const ee=u||Va([i||"",r||""]);C({artistName:i,trackName:r,albumName:s,labelName:c,albumArt:ee,isLocal:f,dateAdded:new Date().toISOString()}),j({message:M?`Removed ${r} from your collection`:`Added ${r} to your collection`,type:"success",duration:3e3})})},q=()=>o.jsxs("div",{className:"cr-track-info__text",children:[o.jsx("div",{className:"cr-track-info__track-container",ref:U,children:o.jsx("div",{className:"cr-track-info__track-scrolling",ref:R,children:r})}),o.jsx("div",{className:"cr-track-info__row",children:o.jsxs("div",{className:"cr-track-info__artist-container",children:[o.jsx("div",{className:"cr-track-info__artist-scroll-container",ref:L,children:o.jsx("div",{className:"cr-track-info__artist-scrolling",ref:z,children:i})}),f&&o.jsx("div",{className:"cr-track-info__chip-container",children:o.jsx(en,{variant:"primary",size:"small",squared:!0,children:"LOCAL"})})]})}),(s||c)&&o.jsx("div",{className:"cr-track-info__details-container",ref:K,children:o.jsxs("div",{className:"cr-track-info__details-scrolling",ref:I,children:[s&&o.jsx("span",{className:"cr-track-info__album",children:s}),s&&c&&o.jsx("span",{className:"cr-track-info__separator",children:" "}),c&&o.jsx("span",{className:"cr-track-info__label",children:c})]})})]}),O=()=>o.jsxs("div",{className:"cr-track-info__text",children:[o.jsxs("div",{className:"cr-track-info__row",children:[o.jsx("div",{className:"cr-track-info__track-container",ref:U,children:o.jsx("div",{className:"cr-track-info__track-scrolling",ref:R,children:r})}),g&&o.jsx("div",{className:"cr-track-info__actions-inline cr-track-info__actions-inline--volume",children:o.jsx(BE,{})})]}),o.jsxs("div",{className:"cr-track-info__row",children:[o.jsxs("div",{className:"cr-track-info__artist-container",children:[o.jsx("div",{className:"cr-track-info__artist-scroll-container",ref:L,children:o.jsx("div",{className:"cr-track-info__artist-scrolling",ref:z,children:i})}),f&&o.jsx("div",{className:"cr-track-info__chip-container",children:o.jsx(en,{variant:"primary",size:"small",squared:!0,children:"LOCAL"})})]}),m!==void 0&&o.jsx("div",{className:"cr-track-info__actions-inline",children:o.jsx(xe,{variant:"text",size:"xsmall",color:"secondary",rightIcon:M?void 0:o.jsx(Pi,{className:"w-4 h-4"}),onClick:D,"aria-label":gl(r,i,M),children:M?"REMOVE":"ADD"})})]})]}),Y=()=>o.jsxs("div",{className:"cr-track-info__text",children:[o.jsx("div",{className:"cr-track-info__track-container",ref:U,children:o.jsx("div",{className:"cr-track-info__track-scrolling",ref:R,children:r})}),o.jsx("div",{className:"cr-track-info__row",children:o.jsxs("div",{className:"cr-track-info__artist-container",children:[o.jsx("div",{className:"cr-track-info__artist-scroll-container",ref:L,children:o.jsx("div",{className:"cr-track-info__artist-scrolling",ref:z,children:i})}),f&&o.jsx("div",{className:"cr-track-info__chip-container",children:o.jsx(en,{variant:"primary",size:"small",squared:!0,children:"LOCAL"})})]})}),(s||c)&&o.jsxs("div",{className:"cr-track-info__row",children:[o.jsxs("div",{className:"cr-track-info__details-stacked",children:[s&&o.jsx("div",{className:"cr-track-info__details-container",ref:B,children:o.jsx("div",{className:"cr-track-info__details-scrolling",ref:V,children:o.jsx("span",{className:"cr-track-info__album",children:s})})}),c&&o.jsx("div",{className:"cr-track-info__details-container",ref:Q,children:o.jsx("div",{className:"cr-track-info__details-scrolling",ref:k,children:o.jsx("span",{className:"cr-track-info__label",children:c})})})]}),m!==void 0&&o.jsx("div",{className:"cr-track-info__action-container",children:o.jsx(xe,{variant:"text",size:"xsmall",color:"secondary",rightIcon:M?void 0:o.jsx(Pi,{className:"w-4 h-4"}),onClick:D,"aria-label":gl(r,i,M),children:M?"REMOVE":"ADD"})})]})]}),Z=()=>
63{switch(t){case"minimal":return O();case"stacked":return Y();case"full":default:return q()}};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`cr-track-info cr-track-info--${t} ${v}`,children:o.jsxs("div",{className:"cr-track-info__content",children:[Z(),t==="full"&&m!==void 0&&o.jsx("div",{className:"cr-track-info__actions",children:o.jsx(xe,{variant:"text",size:"xsmall",color:"secondary",rightIcon:M?void 0:o.jsx(Pi,{className:"w-4 h-4"}),onClick:D,"aria-label":gl(r,i,M),children:M?"REMOVE":"ADD"})})]})}),o.jsx(Jn,{isOpen:S,onClose:b,onLogin:w,onSignUp:E})]})}const gn=tt("AlbumArtFallback"),x2=t=>new Promise(r=>{const i=new Image,s=setTimeout(()=>{i.src="",r(!1)},5e3);i.onload=()=>{clearTimeout(s),r(!0)},i.onerror=()=>{clearTimeout(s),r(!1)},i.src=t}),av=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^\w\s]/g,"").replace(/\s+/g," ").trim(),Ic=(t,r)=>{const i=av(t),s=av(r);return!!(i===s||i.includes(s)||s.includes(i))},o3=async(t,r)=>{try{const s=`https://itunes.apple.com/search?term=${encodeURIComponent(`${t} ${r}`)}&media=music&entity=album&limit=3`;gn.log("Trying iTunes API:",{artist:t,album:r});const u=await(await fetch(s)).json();if(u.results&&u.results.length>0)for(const f of u.results){if(!f.artworkUrl100)continue;const p=f.artistName||"",m=f.collectionName||"",g=Ic(t,p),v=Ic(r,m);if(g&&v){const y=f.artworkUrl100.replace("100x100","600x600");if(await x2(y))return gn.log("â iTunes art found and validated:",{artist:p,album:m,url:y}),y;gn.log("â iTunes art URL failed to load")}else gn.log("â iTunes result skipped (names don't match):",{expected:{artist:t,album:r},got:{artist:p,album:m}})}return null}catch(i){const s=i instanceof Error?i.message:String(i);return!s.includes("CORS")&&!s.includes("Failed to fetch")&&gn.log("â iTunes API error:",i),null}},c3=async(t,r)=>{try{const s=`https://musicbrainz.org/ws/2/release/?query=${encodeURIComponent(`${t} ${r}`)}&fmt=json&limit=3`;gn.log("Trying MusicBrainz API:",{artist:t,album:r});const u=await(await fetch(s)).json();if(u.releases&&u.releases.length>0)for(const f of u.releases){const p=f.title||"",m=f["artist-credit"]?.[0]?.name||"",g=Ic(t,m),v=Ic(r,p);if(g&&v){const S=`https://coverartarchive.org/release/${f.id}/front`;if(await x2(S))return gn.log("â MusicBrainz art found and validated:",{artist:m,album:p,url:S}),S;gn.log("â MusicBrainz art URL failed to load")}else gn.log("â MusicBrainz result skipped (names don't match):",{expected:{artist:t,album:r},got:{artist:m,album:p}})}return null}catch(i){return gn.log("â MusicBrainz API error:",i),null}},u3=(t,r=!1)=>!r||!t.includes("lastfm.freetls.fastly.net")?t:t.replace(/\/i\/u\/[^/]+\//,"/i/u/480x480/"),d3=async(t,r,i,s=!1,c="")=>{if(t&&t.trim()!==""){const f=u3(t,s);return gn.log("Using Last.fm URL:",f),{url:f,source:"lastfm"}}if(r&&i){{gn.log("Trying iTunes fallback...");const f=await o3(r,i);if(f)return{url:f,source:"itunes"}}{gn.log("Trying MusicBrainz fallback...");const f=await c3(r,i);if(f)return{url:f,source:"musicbrainz"}}}const u=Va([r,c]);return gn.log("All services failed, using track fallback:",u),{url:u,source:"fallback"}},la=tt("useCrossfadeImage");function E2(t,r){try{const i=sessionStorage.getItem(t);if(i)return JSON.parse(i)}catch{}return r}function f3(t,r){try{sessionStorage.setItem(t,JSON.stringify(r))}catch{}}function Cf(t,r){const i=E2(t,{});f3(t,{...i,...r})}function w2({src:t,artist:r,track:i,album:s,cacheKey:c,logPrefix:u,onResolve:f}){const p=E2(c,{frontSrc:"",backSrc:"",frontIsVisible:!0,hasLoadedFirstImage:!1,trackId:""});p.trackId&&(String(p.trackId).includes("Artist Name")||String(p.trackId).includes("Song Name"))&&(la.log(`[${u}] Clearing stale cache with default placeholder data`),sessionStorage.removeItem(c),p.frontSrc="",p.backSrc="",p.frontIsVisible=!0,p.hasLoadedFirstImage=!1,p.trackId="");const[m,g]=_.useState(p.frontSrc||""),[v,y]=_.useState(p.backSrc||""),[S,w]=_.useState(p.frontIsVisible??!0),[E,b]=_.useState(!1),[j,N]=_.useState(p.hasLoadedFirstImage??!1),[C,M]=_.useState(""),R=_.useRef(p.trackId||""),z=_.useRef(!1),V=_.useRef(""),k=_.useRef(new Set),I=_.useRef(null),U=_.useRef(p.frontIsVisible??!0);_.useEffect(()=>{U.current=S},[S]);const L=_.useCallback(B=>{U.current?(y(B),Cf(c,{backSrc:B,frontIsVisible:!1,hasLoadedFirstImage:!0}),N(!0),w(!1),U.current=!1):(g(B),Cf(c,{frontSrc:B,frontIsVisible:!0,hasLoadedFirstImage:!0}),N(!0),w(!0),U.current=!0)},[c]);return _.useEffect(()=>{let B=!1;const Q=`${r||"unknown"}|${i||"unknown"}`,K=()=>{B=!0;for(const q of k.current)q.onload=null,q.onerror=null,q.src="";k.current.clear(),I.current&&(clearTimeout(I.current),I.current=null)};if(t&&t.startsWith("http")){if(la.log(`[${u}] Using URL directly from API:`,t),R.current=Q,j&&t&&(U.current?m:v)===t)return la.log(`[${u}] Image already displayed, skipping`),V.current=t,K;if(j&&t&&m===t&&v===t)return la.log(`[${u}] Image on both layers, skipping`),V.current=t,K;const q=new Image;k.current.add(q);const O=()=>{q.onload=null,q.onerror=null,k.current.delete(q)};return q.onload=()=>
63{if(B){O();return}la.log(`[${u}] Image loaded successfully:`,t),V.current=t;try{sessionStorage.setItem("chirp-last-validated-url",t)}catch{}M(""),b(!1),z.current=!1,L(t),O()},q.onerror=()=>{if(B){O();return}la.log(`[${u}] Image failed to load, using track fallback`),M(""),L(Va([r||"",i||""])),O()},q.src=t,K}return!t&&(!r||r==="unknown")&&(!i||i==="unknown")?(la.log(`[${u}] No src and no track data yet, waiting for context...`),K):(Q===R.current||(R.current=Q,Cf(c,{trackId:Q}),z.current||E)||(z.current=!0,(async()=>{try{let q;if(t&&typeof t=="string"&&t.trim()!=="")la.log(`[${u}] Using album art URL directly from context:`,t),q={url:t,source:"context"};else{const O=Ge.isNativePlatform();q=await d3(t,r||"",s||"",O,i||""),la.log(`[${u}] Album art resolved:`,q.source)}if(B){la.log(`[${u}] Resolution cancelled - stale data`);return}if(f&&q.url&&f(q.url),!E){b(!0);const O=new Image;k.current.add(O);const Y=()=>{O.onload=null,O.onerror=null,k.current.delete(O)};O.onload=()=>{if(B){Y();return}L(q.url),M(""),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{I.current=null,b(!1)},500),Y()},O.onerror=()=>{if(B){Y();return}M(Va([r||"",i||""])),b(!1),Y()},O.src=q.url}}catch(q){if(B)return;la.log(`[${u}] Error resolving album art:`,q),M(Va([r||"",i||""]))}finally{z.current=!1}})()),K)},[t,r,i,s,L]),{frontSrc:m,backSrc:v,frontIsVisible:S,hasLoadedFirstImage:j,fallbackSrc:C}}const h3=tt("useStreamingPlayer");function m3({autoFetch:t,trackName:r,artistName:i,albumName:s,labelName:c,albumArt:u,isLocal:f,djName:p,djId:m,showName:g}){const{isPlaying:v,isBuffering:y,isLoading:S,currentData:w,isTrackAdded:E,togglePlayPause:b,toggleAddTrack:j}=bE(),{isLoggedIn:N,loginWithPassword:C,signUpWithPassword:M}=Wr(),{showToast:R}=rn(),{data:z}=Ml(),[V,k]=_.useState(!1),[I,U]=_.useState(!1),[L,B]=_.useState("");return _.useEffect(()=>{h3.log("[useStreamingPlayer] Resolved album art updated:",L)},[L]),_.useEffect(()=>{N&&I&&(j(),U(!1))},[N,I,j]),{isPlaying:v,isBuffering:y,isLoading:S,displayData:t?w:{track:r,artist:i,album:s,label:c,albumArt:u,isLocal:f,dj:p,djId:m,show:g},contextIsTrackAdded:E,resolvedAlbumArt:L,setResolvedAlbumArt:B,showLoginModal:V,handlePlayPause:Z=>{Z.stopPropagation(),b()},handleToggleAdd:()=>{if(!N){U(!0),k(!0);return}j()},handleLoginModalClose:()=>{k(!1),U(!1)},handleLogin:async(Z,ee)=>{const ne=await C(Z,ee);ne.success?(k(!1),R({message:z?.loginSuccessMessage||"Successfully logged in!",type:"success",duration:3e3})):R({message:ne.error||"Login failed",type:"error",duration:5e3})},handleSignUp:async(Z,ee,ne)=>{const A=await M(Z,ee,ne);if(!A.success)throw new Error(A.error||"Sign up failed");U(!1)}}}function Sr(t){return!t||typeof t!="string"||/^(javascript|data|vbscript):/i.test(t.trim())?"":t.replace(/[\n\r]/g,"").replace(/\\/g,"%5C").replace(/'/g,"%27").replace(/\)/g,"%29").replace(/\(/g,"%28")}const p3=({size:t=60})=>o.jsxs("svg",{width:t,height:t,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"cr-play-pause__spinner",children:[o.jsx("circle",{cx:"30",cy:"30",r:"27",stroke:"currentColor",strokeWidth:"3",opacity:"0.3"}),o.jsx("path",{d:"M30 3C15.088 3 3 15.088 3 30",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),g3=({size:t=60})=>o.jsxs("svg",{width:t,height:t,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_3524_68836)",children:o.jsx("path",{d:"M45.0028 29.9999L22.4986 45.0027V14.9972L45.0028 29.9999ZM30 0C13.4506 0 0 13.4506 0 30C0 46.5494 13.4506 60 30 60C46.5494 60 60 46.5494 60 30C60 13.4506 46.5494 0 30 0ZM30 3.73954C44.5224 3.73954 56.2605 15.4777 56.2605 30C56.2605 44.5223 44.5224 56.2604 30 56.2604C15.4776 56.2604 3.73954 44.5223 3.73954 30C3.73954 15.4777 15.4776 3.73954 30 3.73954Z",fill:"currentColor"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_3524_68836",children:o.jsx("rect",{width:"60",height:"60",fill:"white"})})})]}),v3=({size:t=60})=>o.jsxs("svg",{width:t,height:t,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_3524_68834)",children:o.jsx("path",{d:"M33.7507 18.7479H41.2521V41.2521H33.7507V18.7479ZM18.7479 18.7479H26.2493V41.2521H18.7479V18.7479ZM30 0C13.4506 0 0 13.4506 0 30C0 46.5494 13.4506 60 30 60C46.5494 60 60 46.5494 60 30C60 13.4506 46.5494 0 30 0ZM30 3.73948C44.5224 3.73948 56.2605 15.4776 56.2605 30C56.2605 44.5223 44.5224 56.2604 30 56.2604C15.4776 56.2604 3.73953 44.5223 3.73953 30C3.73953 15.4776 15.4776 3.73948 30 3.73948Z",fill:"currentColor"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_3524_68834",children:o.jsx("rect",{width:"60",height:"60",fill:"white"})})})]});function y3({isPlaying:t=!1,isBuffering:r=!1,onClick:i,size:s=60,className:c="",trackTitle:u,artistName:f}
63){const p=["cr-play-pause",c].filter(Boolean).join(" "),m=u&&f?` ${u} by ${f}`:"",g=r?`Loading${m}`:t?`Pause${m}`:`Play${m}`,v=y=>{r||i?.(y)};return o.jsx("button",{className:p,onClick:v,"aria-label":g,"aria-pressed":r?void 0:t,"aria-disabled":r||void 0,style:{width:s,height:s},children:r?o.jsx(p3,{size:s}):t?o.jsx(v3,{size:s}):o.jsx(g3,{size:s})})}const el=({isPlaying:t,isBuffering:r=!1,onClick:i,size:s=60,trackTitle:c,artistName:u})=>o.jsx(y3,{className:"cr-player__play-button",isPlaying:t,isBuffering:r,onClick:i,size:s,trackTitle:c,artistName:u}),tl=({src:t,artist:r,track:i,album:s,className:c,style:u,isLarge:f=!1,onResolve:p})=>{const{frontSrc:m,backSrc:g,frontIsVisible:v,hasLoadedFirstImage:y,fallbackSrc:S}=w2({src:t,artist:r,track:i,album:s,cacheKey:"chirp-album-art-cache",logPrefix:"AlbumArt",onResolve:p});return S?o.jsx("div",{className:`cr-player__album-art-container ${c}`,style:u,children:o.jsx("img",{src:S,alt:"Album Art",className:"cr-player__album-art-front",style:{opacity:1}})}):!y&&!m&&!g?o.jsx("div",{className:`cr-player__album-art-container ${c}`,style:u}):o.jsxs("div",{className:`cr-player__album-art-container ${c}`,style:u,children:[g&&o.jsx("img",{src:g,alt:"Album Art",className:"cr-player__album-art-back",style:{opacity:v?0:1}}),m&&o.jsx("img",{src:m,alt:"Album Art",className:"cr-player__album-art-front",style:{opacity:v?1:0}})]})},b3=({src:t,artist:r,track:i,album:s})=>{const{frontSrc:c,backSrc:u,frontIsVisible:f}=w2({src:t,artist:r,track:i,album:s,cacheKey:"chirp-bg-cache",logPrefix:"Backgroun
63dImage"});return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"cr-player__background cr-player__background-back",style:{backgroundImage:u?`url('${Sr(u)}')`:"none",opacity:f?0:1}}),o.jsx("div",{className:"cr-player__background cr-player__background-front",style:{backgroundImage:c?`url('${Sr(c)}')`:"none",opacity:f?1:0}})]})};function El({variant:t="full-player",djName:r="",djId:i,showName:s="",artistName:c="",trackName:u="",albumName:f="",labelName:p="",albumArt:m="",autoFetch:g=!1,isLocal:v=!1}){const y=`now-playing-heading-${_.useId()}`,{isPlaying:S,isBuffering:w,isLoading:E,displayData:b,contextIsTrackAdded:j,resolvedAlbumArt:N,setResolvedAlbumArt:C,showLoginModal:M,handlePlayPause:R,handleToggleAdd:z,handleLoginModalClose:V,handleLogin:k,handleSignUp:I}=m3({autoFetch:g,trackName:u,artistName:c,albumName:f,labelName:p,albumArt:m,isLocal:v,djName:r,djId:i,showName:s}),U=b.djId,L=ei(U?[U]:[]),B=!!(U&&L.get(U)?.slug),{favoriteDjIds:Q,handleFavoriteDjClick:K,loginModalProps:D}=u2(),q=!!(U&&Q.includes(U)),O=()=>o.jsxs(o.Fragment,{children:[o.jsx(b3,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,isLoading:E}),o.jsx("div",{className:"cr-player__color-overlay"})]}),Y=()=>o.jsxs("div",{className:"cr-player__full",children:[o.jsx(O,{}),o.jsxs("div",{className:"cr-player__content",children:[o.jsx("div",{className:"cr-player__album-container",children:o.jsx(tl,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,className:"cr-player__album-art",style:{},onResolve:C})}),o.jsx("div",{className:"cr-player__track-info-container",children:o.jsx(qr,{trackName:b.track,artistName:b.artist,albumName:b.album,labelName:b.label,albumArt:N||b.albumArt,isLocal:b.isLocal,isAdded:j,onToggleAdd:z,className:E?"cr-track-info--loading":""})}),o.jsx(el,{isPlaying:S,isBuffering:w,onClick:R,trackTitle:b.track,artistName:b.artist})]})]}),Z=()=>o.jsxs("div",{className:"cr-player__slim",children:[o.jsx(O,{}),o.jsxs("div",{className:"cr-player__content",children:[o.jsx("div",{className:"cr-player__album-container",children:o.jsx(tl,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,className:"cr-player__album-art",style:{},onResolve:C})}),o.jsx("div",{className:"cr-player__track-info-container",children:o.jsx(qr,{trackName:b.track,artistName:b.artist,albumArt:N||b.albumArt,variant:"minimal",isLocal:b.isLocal,isAdded:j,onToggleAdd:z,showVolume:!0,className:`${E?"cr-track-info--loading":""}`})}),o.jsx(el,{isPlaying:S,isBuffering:w,onClick:R,trackTitle:b.track,artistName:b.artist})]})]}),ee=()=>o.jsxs("div",{className:"cr-player__mini",children:[o.jsx(O,{}),o.jsxs("div",{className:"cr-player__content",children:[o.jsx("div",{className:"cr-player__album-container",children:o.jsx(tl,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,className:"cr-player__album-art",style:{},onResolve:C})}),o.jsx("div",{className:"cr-player__track-info-container",children:o.jsx(qr,{trackName:b.track,artistName:b.artist,albumArt:N||b.albumArt,variant:"minimal",isLocal:b.isLocal,isAdded:j,onToggleAdd:z,className:`${E?"cr-track-info--loading":""}`})}),o.jsx(el,{isPlaying:S,isBuffering:w,onClick:R,size:40,trackTitle:b.track,artistName:b.artist})]})]}),ne=()=>o.jsxs("div",{className:"cr-player__mobile",children:[o.jsx(O,{}),o.jsxs("div",{className:"cr-player__mobile-content",children:[o.jsx(Zr,{to:"/app/recently-played",className:"cr-player__dj-info",style:{textDecoration:"none",color:"inherit"},children:o.jsx(kc,{djName:b.dj,showName:b.show,isOnAir:!0,statusText:"On-Air",isFavorite:q,onFavoriteClick:B&&U?()=>K(U):void 0})}),o.jsx("div",{className:"cr-player__album-large",children:o.jsx(tl,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,className:"cr-player__album-art-large",style:{},isLarge:!0})}),o.jsx("div",{className:"cr-player__track-info-container cr-player__track-info-container--left-aligned",children:o.jsx(qr,{trackName:b.track,artistName:b.artist,albumName:b.album,labelName:b.label,albumArt:N||b.albumArt,variant:"stacked",isLocal:b.isLocal,isAdded:j,onToggleAdd:z,className:E?"cr-track-info--loading":""})}),o.jsx("div",{className:"cr-player__controls",children:o.jsx(el,{isPlaying:S,isBuffering:w,onClick:R,size:100,trackTitle:b.track,artistName:b.artist})})]})]}),A=()=>
63o.jsxs("div",{className:"cr-player__android-auto",children:[o.jsx(O,{}),o.jsxs("div",{className:"cr-player__android-auto-content",children:[o.jsxs("div",{className:"cr-player__android-auto-header",children:[o.jsx("div",{className:"cr-player__android-auto-logo",children:o.jsx(Ea,{variant:"horizontal-reversed"})}),o.jsx("div",{className:"cr-player__android-auto-dj",children:o.jsx(kc,{djName:b.dj,showName:b.show,isOnAir:!0,statusText:"On-Air",isFavorite:q,onFavoriteClick:B&&U?()=>K(U):void 0})})]}),o.jsxs("div",{className:"cr-player__android-auto-media",children:[o.jsx("div",{className:"cr-player__android-auto-album",children:o.jsx(tl,{src:b.albumArt,artist:b.artist,track:b.track,album:b.album,className:"cr-player__album-art",style:{}})}),o.jsx("div",{className:"cr-player__android-auto-track",children:o.jsx(qr,{trackName:b.track,artistName:b.artist,albumName:b.album,labelName:b.label,albumArt:N||b.albumArt,variant:"stacked",isLocal:b.isLocal,isAdded:j,onToggleAdd:void 0,className:E?"cr-track-info--loading":""})})]}),o.jsx("div",{className:"cr-player__android-auto-controls",children:o.jsx(el,{isPlaying:S,isBuffering:w,onClick:R,size:120,trackTitle:b.track,artistName:b.artist})})]})]}),F=()=>{switch(t){case"slim-player":return Z();case"mini-player":case"ios-mini-player":return ee();case"mobile-player":return ne();case"android-auto":return A();case"full-player":default:return Y()}};return o.jsxs(o.Fragment,{children:[o.jsxs("article",{"aria-labelledby":y,children:[o.jsx("h2",{id:y,className:"visually-hidden",children:"Now Playing"}),o.jsx("div",{className:`cr-player cr-player--${t} ${E?"cr-player--loading":""} ${g?"cr-player--auto-fetch":""}`,children:F()})]}),o.jsx(Jn,{isOpen:M,onClose:V,onLogin:k,onSignUp:I}),o.jsx(Jn,{...D})]})}function j2(){try{return yn()}catch{return null}}function Vh(){try{return Ut()}catch{return null}}function _3(){return{navigate:j2(),location:Vh()}}let dc=0;function S3(t){_.useEffect(()=>{if(t)return dc++,document.body.style.overflow="hidden",()=>{dc--,dc<=0&&(dc=0,document.body.style.overflow="")}},[t])}function x3(){return o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[o.jsx("path",{d:"M5 12h14"}),o.jsx("path",{d:"m12 5 7 7-7 7"})]})}const E3="https://chirpradio.app.neoncrm.com/login",w3=tt("CrSidebar"),j3=[{label:"Podcast",url:"/podcasts"},{label:"DJs",url:"/djs"},{label:"Schedule",url:"/schedule"},{label:"Events",url:"/events"},{label:"Blog",url:"/blog"},{label:"Store",url:"/store"},{label:"Ways to Give",url:"/other-ways-to-give"}];function A2({isOpen:t=!1,variant:r="web",onClose:i,onLogoClick:s,onNavigate:c,onNavigateToUrl:u,onDonateClick:f,isLoggedIn:p=!1,onLoginClick:m,onSignUpClick:g,mainNavLinks:v,secondaryNavLinks:y,waysToGiveLinks:S,aboutLinks:w,mobileWebLinks:E}){const b=Vh();S3(t);const j=r==="mobile",N=i2(t,{onEscape:i});s2(t,N);const C=L=>{c?.(L),i?.()},M=L=>{u?.(L),i?.()},R=v??[],z=y??[],V=S??[],k=w??[],I=!E||E.length===0;I&&j&&w3.warn("mobileWebLinks empty/undefined â falling back to hardcoded defaults. CMS Site Settings â Navigation â mobileWebLinks may be unset or unreachable.");const U=I?j3:E;if(j){const L=["cr-sidebar","cr-sidebar--mobile","cr-sidebar--mobile-slide",t?"cr-sidebar--open":"cr-sidebar--closed"].filter(Boolean).join(" ");return o.jsxs(o.Fragment,{children:[t&&o.jsx("div",{className:"cr-sidebar__backdrop",onClick:i,role:"presentation"}),o.jsx("div",{ref:N,className:L,role:"dialog","aria-modal":"true","aria-label":"Navigation menu",tabIndex:-1,children:o.jsxs("div",{className:"cr-sidebar__content",children:[o.jsx("div",{className:"cr-sidebar__close-button",children:o.jsx(br,{variant:"close",layout:"icon-right",text:"CLOSE",onClick:i})}),o.jsxs("div",{className:"cr-sidebar__header",children:[o.jsx("button",{className:"cr-sidebar__logo-section",onClick:()=>{s&&s(),i?.()},type:"button","aria-label":"Go to homepage",children:o.jsx(Ea,{variant:"horizontal",color:"primary"})}),o.jsxs("div",{className:"cr-sidebar__mobile-sections",children:[o.jsx("button",{className:`cr-sidebar__mobile-nav-item ${b?.pathname==="/app"?"cr-sidebar__mobile-nav-item--active":""}`,onClick:()=>C("now-playing"),children:"Now Playing"}),o.jsx("button",{className:`cr-sidebar__mobile-nav-item ${b?.pathname==="/app/recently-played"?"cr-sidebar__mobile-nav-item--active":""}`,onClick:()=>C("recently-played"),children:"Recently Played"}),o.jsx("button",{className:`cr-sidebar__mobile-nav-item ${b?.pathname==="/app/my-collection"?"cr-sidebar__mobile-nav-item--active":""}`,onClick:()=>C("your-collection"),children:"Your Collection"})]}),o.jsx("div",{className:"cr-sidebar__divider"})]}),o.jsxs("nav",{className:"cr-sidebar__mobile-nav","aria-label":"All sections",children:[U.map(B=>o.jsx("button",{className:"cr-sidebar__mobile-nav-link",onClick:()=>M(B.url),children:B.label},B.url)),o.jsx("div",{className:"cr-sidebar__donate-section",children:o.jsx(xe,{size:"small",variant:"solid",color:"primary",leftIcon:o.jsx(Ac,{}),onClick:()=>{f?(f(),i?.()):C("donate")},children:"Support Chirp Radio"})}),o.jsx("div",{className:"cr-sidebar__request-section",children:o.jsx(xe,{size:"small",variant:"solid",color:"secondary",leftIcon:o.jsx(Ff,{}),onClick:()=>C("request"),children:"Make a Request"})})]}),o.jsxs("div",{className:"cr-sidebar__footer cr-sidebar__footer--mobile",children:[p?o.jsx(xe,{size:"xsmall",variant:"text",color:"default",leftIcon:o.jsx(Bv,{}),onClick:()=>C("account-settings"),children:"Account Settings"}):o.jsxs("div",{className:"cr-sidebar__auth-buttons",children:[o.jsx(xe,{size:"xsmall",variant:"text",color:"default",onClick:()=>{m?.(),i?.()},children:"Log In"}),o.jsx(xe,{size:"xsmall",variant:"solid",color:"secondary",onClick:()=>{g?.(),i?.()},children:"Sign Up"})]}),o.jsxs("button",{className:"cr-sidebar__footer-chirp",onClick:()=>C("home"),children:[o.jsx(Ea,{variant:"bird",color:"primary",className:"cr-sidebar__footer-bird"}),o.jsx("span",{className:"cr-sidebar__footer-chirp-text",children:"Chirpradio.org"})]})]})]})})]})}return o.jsx(o.Fragment,{children:o.jsx("div",{ref:N,className:`cr-sidebar ${t?"cr-sidebar--open":"cr-sidebar--closed"}`,role:"dialog","aria-modal":"true","aria-label":"Navigation menu",tabIndex:-1,inert:!t,children:o.jsxs("div",{className:"cr-sidebar__content",children:[o.jsx("div",{className:"cr-sidebar__close-button",children:o.jsx(br,{variant:"close",layout:"icon-right",text:"CLOSE",onClick:i})}),o.jsxs("div",{className:"cr-sidebar__header",children:[o.jsxs("button",{className:"cr-sidebar__logo-section",onClick:s,type:"button","aria-label":"Go to homepage",children:[o.jsx(Ea,{variant:"vertical",color:"primary"}),o.jsx("span",{className:"cr-sidebar__home-text",children:"Home"})]}),o.jsx("div",{className:"cr-sidebar__divider"})]}),o.jsxs("nav",{className:"cr-sidebar__main-nav","aria-label":"All sections",children:[o.jsx("div",{className:"cr-sidebar__nav-section",children:R.map(L=>o.jsx("button",{className:`cr-sidebar__nav-title ${b?.pathname===L.url?"cr-sidebar__nav-title--active":""}`,onClick:()=>M(L.url),children:L.label},L.url))}),o.jsx("div",{className:"cr-sidebar__divider"}),o.jsx("div",{className:"cr-sidebar__nav-section",children:o.jsx("div",{className:"cr-sidebar__nav-items",children:z.map(L=>o.jsx("button",{className:`cr-sidebar__nav-item ${b?.pathname===L.url?"cr-sidebar__nav-item--active":""}`,onClick:()=>M(L.url),children:L.label},L.url))})}),o.jsx("div",{className:"cr-sidebar__divider"}),o.jsxs("div",{className:"cr-sidebar__nav-section",children:[o.jsx("div",{className:"cr-sidebar__donate-section",children:o.jsx(xe,{size:"small",variant:"solid",color:"primary",leftIcon:o.jsx(Ac,{}),onClick:()=>{f?(f(),i?.()):c?.("donate")},children:"DONATE"})}),V.map(L=>o.jsx("button",{className:`cr-sidebar__nav-subtitle ${b?.pathname===L.url?"cr-sidebar__nav-subtitle--active":""}`,onClick:()=>M(L.url),children:L.label},L.url)),o.jsx("div",{className:"cr-sidebar__donate-section",children:o.jsx(xe,{size:"xsmall",variant:"outline",color:"secondary",rightIcon:o.jsx(x3,{}),onClick:()=>tn(E3),"aria-label":"Donation Account Login (opens in new tab)",children:"Donation Account Login"})})]}),o.jsx("div",{className:"cr-sidebar__divider"}),o.jsx("div",{className:"cr-sidebar__nav-section",children:k.map(L=>o.jsx("button",{className:`cr-sidebar__nav-subtitle ${b?.pathname===L.url?"cr-sidebar__nav-subtitle--active":""}`,onClick:()=>M(L.url),children:L.label},L.url))}),o.jsx("div",{className:"cr-sidebar__divider"}),o.jsx("div",{className:"cr-sidebar__request-section",children:o.jsx(xe,{size:"small",variant:"solid",color:"secondary",leftIcon:o.jsx(Ff,{}),onClick:()=>c?.("request"),children:"Request a Song"})})]})]})})})}const fc=tt("CrMobileAppFrame");function A3({variant:t="interior",pageTitle:r="CHIRP Radio",headerActionButton:i,onLogoClick:s,streamingPlayerProps:c={},children:u,contentTitle:f="Welcome to CHIRP Radio",contentSubtitle:p="Chicago Independent Radio Project",onNavigate:m,onNavigateToUrl:g,mobileWebLinks:v}){const[y,S]=_.useState(!1),w=_.useRef(null),E=Ge.getPlatform()==="android",{toastState:b}=rn(),{isLoggedIn:j,loginWithPassword:N,signUpWithPassword:C}=Wr(),[M,R]=_.useState(!1),[z,V]=_.useState("login"),k=()=>{V("login"),R(!0)},I=()=>{V("signup"),R(!0)},U=async(Z,ee)=>{(await N(Z,ee)).success&&R(!1)},L=async(Z,ee,ne)=>{await C(Z,ee,ne)},B=()=>{b.onClose?.(),S(!0)},Q=()=>{S(!1)};_.useEffect(()=>{if(E&&t==="interior"&&w.current){const Z=setTimeout(()=>{if(w.current){w.current.offsetHeight,w.current.style.setProperty("--safe-area-applied","1");const ee=window.getComputedStyle(w.current),ne=getComputedStyle(document.documentElement).getPropertyValue("--safe-area-inset-bottom");fc.log("[CHIRP_NAV_BAR] Footer player computed paddingBottom:",ee.paddingBottom),fc.log("[CHIRP_NAV_BAR] CSS variable --safe-area-inset-bottom:",ne),fc.log("[CHIRP_NAV_BAR] .env(safe-area-inset-bottom):",getComputedStyle(w.current).getPropertyValue("padding-bottom"));const A=window.getComputedStyle(w.current,"::after");fc.log("[CHIRP_NAV_BAR] ::after element height:",A.height)}},100);return()=>clearTimeout(Z)}},[E,t]);const K=Ge.getPlatform()==="ios";let D="mini-player";t==="landing"?D="mobile-player":K&&(D="ios-mini-player");const q=_.useMemo(()=>({variant:D,artistName:"",trackName:"",albumName:"",labelName:"",djName:"",showName:"",albumArt:"",autoFetch:!0,apiUrl:"https://storage.googleapis.com/chirpradio-public/playlist.json",streamUrl:Fc,isTrackAdded:!1,isLocal:!1,...c}),[D,c]),O=()=>o.jsxs("div",{className:"cr-mobile-frame cr-mobile-frame--landing",children:[o.jsx("div",{className:"cr-mobile-frame__header",children:o.jsx(Jg,{pageTitle:r,onMenuClick:B,onLogoClick:s,variant:"transparent",actionButton:i})}),o.jsx("div",{className:"cr-mobile-frame__background-player",children:o.jsx(El,{...q})})]}),Y=()=>o.jsxs("div",{className:"cr-mobile-frame cr-mobile-frame--interior",children:[o.jsx("div",{className:"cr-mobile-frame__header",children:o.jsx(Jg,{pageTitle:r,onMenuClick:B,onLogoClick:s,actionButton:i})}),o.jsx("div",{className:"cr-mobile-frame__content",children:u||o.jsxs("div",{className:"cr-mobile-frame__default-content",children:[o.jsxs("div",{className:"cr-mobile-frame__content-header",children:[o.jsx("h1",{className:"cr-mobile-frame__content-title",children:f}),p&&o.jsx("p",{className:"cr-mobile-frame__content-subtitle",children:p})]}),o.jsxs("div",{className:"cr-mobile-frame__content-sections",children:[o.jsxs("div",{className:"cr-mobile-frame__content-section",children:[o.jsx("h2",{children:"Featured Content"}),o.jsx("div",{className:"cr-mobile-frame__placeholder",children:o.jsx("p",{children:"Featured shows, playlists, or highlighted content will appear here"})})]}),o.jsxs("div",{className:"cr-mobile-frame__content-section",children:[o.jsx("h2",{children:"Recent Shows"}),o.jsx("div",{className:"cr-mobile-frame__placeholder",children:o.jsx("p",{children:"Recent show archives and on-demand content"})})]}),o.jsxs("div",{className:"cr-mobile-frame__content-section",children:[o.jsx("h2",{children:"Community"}),o.jsx("div",{className:"cr-mobile-frame__placeholder",children:o.jsx("p",{children:"Community updates, volunteer opportunities, and announcements"})})]}),o.jsxs("div",{className:"cr-mobile-frame__content-section",children:[o.jsx("h2",{children:"About CHIRP"}),o.jsx("div",{className:"cr-mobile-frame__placeholder",children:o.jsx("p",{children:"Information about Chicago Independent Radio Project, our mission, and how to get involved"})})]})]})]})}),o.jsx("div",{className:"cr-mobile-frame__footer-player",ref:w,children:o.jsx(El,{...q})})]});return o.jsxs(o.Fragment,{children:[t==="landing"?O():Y(),o.jsx(A2,{isOpen:y,variant:"mobile",onClose:Q,onLogoClick:s,onNavigate:m,onNavigateToUrl:g,mobileWebLinks:v,isLoggedIn:j,onLoginClick:k,onSignUpClick:I}),o.jsx(Jn,{isOpen:M,onClose:()=>R(!1),onLogin:U,onSignUp:L,initialMode:z})]})}function T3(t){return new Promise((r,i)=>{if(!t||t.trim()===""||t==="null"||t==="undefined"||!t.startsWith("http")){i(new Error("Invalid image URL"));return}const s=new Image;s.onload=()=>{r(t)},s.onerror=()=>{i(new Error(`Failed to load image: ${t}`))},s.src=t})}function N3(t){return new Promise((r,i)=>{const s=t.filter(u=>u&&u.trim()!==""&&u!=="null"&&u!=="undefined"&&u.startsWith("http"));if(s.length===0){i(new Error("No valid image URLs provided"));return}const c=u=>{if(u>=s.length){i(new Error("All images failed to load"));return}T3(s[u]).then(r).catch(()=>c(u+1))};c(0)})}const Kt=tt("MobileApp"),C3=async()=>{Kt.log("Preloading now playing data from CMS...");try{const r=(await Hh({page:1,limit:1})).docs;if(!r||r.length===0)throw new Error("No tracks returned from CMS");const i=r[0];Kt.log("Loaded track:",i.artistName,"-",i.trackName);let s="";if(i.albumArtUrl)try{s=await N3([i.albumArtUrl])}catch{}let c;if(i.djId)try{c=(await vn("djs",{"where[djId][equals]":i.djId,limit:1,depth:0}))[0]?.djName||void 0}catch{}const u={dj:c||i.djName||"Unknown DJ",show:"",artist:i.artistName||"Unknown Artist",track:i.trackName||"Unknown Track",album:i.albumName||"Unknown Release",label:i.labelName||"Unknown Label",albumArt:s,isLocal:i.isLocal||!1,timestamp:Date.now()};return sessionStorage.setItem("chirp-now-playing",JSON.stringify(u)),u}catch(t){return Kt.error("Error preloading now playing data:",t),null}};function R3(){const t=yn(),r=Ut(),[i,s]=_.useState(!1);_.useEffect(()=>
63{Kt.log("[SPLASH] MobileApp mounted"),t("/app");const E=sessionStorage.getItem("chirp-splash-shown")==="true";Kt.log("[SPLASH] Has shown splash this session:",E),(async()=>{const j=C3();E?(Kt.log("[SPLASH] Subsequent load - hide splash immediately after data"),await j,Ge.isNativePlatform()&&await Xg.hide().catch(N=>Kt.warn("[SPLASH] Failed to hide splash screen:",N)),Kt.log("[SPLASH] Splash hidden")):(Kt.log("[SPLASH] First load - waiting 2s and for data preload"),await Promise.all([new Promise(N=>setTimeout(N,2e3)),j]),Kt.log("[SPLASH] Wait complete, data preloaded"),Ge.isNativePlatform()&&(Kt.log("[SPLASH] Hiding Capacitor splash with fade"),await Xg.hide().catch(N=>Kt.warn("[SPLASH] Failed to hide splash screen:",N)),Kt.log("[SPLASH] Capacitor splash hidden")),sessionStorage.setItem("chirp-splash-shown","true"),Kt.log("[SPLASH] All splash transitions complete")),s(!0)})()},[]);const c=r.pathname==="/app"||r.pathname==="/app/now-playing",u=()=>{switch(r.pathname){case"/app":case"/app/now-playing":return"Now Playing";case"/app/recently-played":return"Recently Played";case"/app/my-collection":return"Your Collection";case"/app/request":return"Make a Request";case"/app/settings":return"Account Settings";default:return"CHIRP Radio"}},f="https://chirpng-prod.chirpradio.org",p=E=>{h2.open({url:E}).catch(b=>{Kt.error("Failed to open external URL:",b),window.open(E,"_blank")})},{data:m}=ti(),{data:g}=t3(),v=PE(g),y=g?.navigation?.webLinks,S=E=>{if(/^https?:\/\//i.test(E)){p(E);return}const b=E.startsWith("/")?E:`/${E}`;p(`${f}${b}`)},w=E=>{if(E==="donate"){const M=m?.donate?.donateUrl||void 0||"https://chirpradio.app.neoncrm.com/forms/41";m?.donate?.donateOpenInNewTab!==!1?p(M):Zi(M);return}
63const j={"now-playing":"/app","recently-played":"/app/recently-played","your-collection":"/app/my-collection",request:"/app/request","account-settings":"/app/settings"}[E];if(j){t(j);return}const C={home:f,playlist:`${f}/playlist`,podcast:`${f}/podcasts`,djs:`${f}/djs`,schedule:`${f}/schedule`,events:`${f}/events`,articles:`${f}/blog`,"ways-to-give":`${f}/other-ways-to-give`,"vinyl-circle":`${f}/vinyl-circle`,shop:`${f}/store`,about:`${f}/about`,"other-ways-to-listen":`${f}/other-ways-to-listen`,contact:`${f}/contact`,"become-volunteer":`${f}/volunteer`}[E];C&&p(C)};return i?o.jsxs(o.Fragment,{children:[o.jsx(A3,{variant:c?"landing":"interior",pageTitle:u(),onLogoClick:()=>t("/app"),onNavigate:w,onNavigateToUrl:S,mobileWebLinks:y,children:o.jsx(f2,{children:o.jsx(dy,{})})}),v.required&&o.jsx(LE,{storeUrl:v.storeUrl})]}):o.jsx("div",{style:{background:"#ea1c2c",width:"100vw",height:"100dvh"}})}function rv({src:t,alt:r="Avatar",isLoggedIn:i=!1,initials:s,size:c=32}){const u={"--cr-avatar-size":`${c}px`},f=Math.round(c/3);return i?t?o.jsx("div",{className:"cr-avatar cr-avatar--logged-in",style:u,children:o.jsx("img",{src:t,alt:r,className:"cr-avatar__image"})}):o.jsx("div",{className:"cr-avatar cr-avatar--logged-in cr-avatar--initials",style:u,children:o.jsx("span",{className:"cr-avatar__initials",style:{fontSize:f},children:s||"?"})}):o.jsx("div",{className:"cr-avatar cr-avatar--logged-out",style:u,children:o.jsx("div",{className:"cr-avatar__logo",children:o.jsx(Ea,{variant:"bird"})})})}function Rf(t,r,i){return t&&r?`${t[0]}${r[0]}`.toUpperCase():t?t[0].toUpperCase():i?i.slice(0,2).toUpperCase():"?"}function Zh({options:t=[],onSelect:r,theme:i="light",className:s=""}){const c=f=>{r&&r(f)},u=["cr-select",`cr-select--${i}`,s].filter(Boolean).join(" ");return o.jsx("div",{className:u,children:o.jsx("ul",{className:"cr-select__options",role:"menu",children:t.map(f=>o.jsx("li",{className:"cr-select__option-wrapper",role:"none",children:o.jsx("button",{type:"button",className:`cr-select__option ${f.isActive?"cr-select__option--active":""}`,onClick:()=>c(f),role:"menuitem",children:f.label})},f.value))})})}function T2(){return o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",focusable:"false",children:o.jsx("path",{d:"m6 9 6 6 6-6"})})}const L3=tt("CrAccount");function O3({isLoggedIn:t=!1,userName:r="",userAvatar:i="",onProfileClick:s,onFavoritesClick:c,onSignOutClick:u,trailingSlot:f}){const[p,m]=_.useState(!1),g=Vh(),[v,y]=_.useState(!1),S=_.useRef(null);_.useEffect(()=>{if(!t)return;const I=L=>{S.current&&!S.current.contains(L.target)&&y(!1)},U=L=>{L.key==="Escape"&&y(!1)};return document.addEventListener("mousedown",I),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",I),document.removeEventListener("keydown",U)}},[t]);const w=()=>{m(!0)},{loginWithPassword:E,signUpWithPassword:b}=Wr(),{showToast:j}=rn(),{data:N}=Ml(),C=async(I,U)=>{try{const L=await E(I,U);L.success?(m(!1),j({message:N?.loginSuccessMessage||"Successfully logged in!",type:"success",duration:3e3})):j({message:L.error||"Login failed",type:"error",duration:5e3})}catch(L){L3.error("[CrAccount] Login error:",L),j({message:"An error occurred during login",type:"error",duration:5e3})}},M=async(I,U,L)=>{const B=await b(I,U,L);if(!B.success)throw new Error(B.error||"Sign up failed")};if(!t)return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"cr-account",children:[o.jsx(rv,{isLoggedIn:!1}),o.jsx(xe,{size:"xsmall",variant:"text",color:"default",onClick:w,children:"Log In"})]}),o.jsx(Jn,{isOpen:p,onClose:()=>m(!1),onLogin:C,onSignUp:M})]});const R=[{label:"Your Profile",value:"profile",onClick:s,isActive:g?.pathname==="/profile"},{label:"Your Collection",value:"collection",onClick:c,isActive:g?.pathname==="/collection"},{label:"Sign Out",value:"signout",onClick:u,isActive:!1}],z=I=>{I.onClick&&I.onClick(),y(!1)},V=r.split(" "),k=V.length>=2?Rf(V[0],V[1]):r.includes("@")?Rf(void 0,void 0,r):Rf(r);return o.jsxs("div",{className:"cr-account",children:[o.jsx(rv,{src:i||void 0,alt:r,isLoggedIn:!0,initials:k}
63),o.jsxs("div",{className:"cr-account__dropdown-wrapper",ref:S,children:[o.jsxs(xe,{size:"xsmall",variant:"outline",color:"default",rightIcon:o.jsx(T2,{}),onClick:()=>y(!v),"aria-expanded":v,"aria-haspopup":"true",children:["Hello ",r]}),v&&o.jsx("div",{className:"cr-account__dropdown-menu",children:o.jsx(Zh,{options:R,onSelect:z})})]}),f]})}function M3({isLoggedIn:t=!0,userName:r="",userAvatar:i,onProfileClick:s,onFavoritesClick:c,onSignOutClick:u,djName:f="",showName:p="",isOnAir:m=!0,statusText:g="On-Air",accountTrailingSlot:v}){return o.jsx("div",{className:"cr-top-banner",children:o.jsxs("div",{className:"cr-top-banner__container",children:[o.jsx("div",{className:"cr-top-banner__left",children:o.jsx(O3,{isLoggedIn:t,userName:r,userAvatar:i,onProfileClick:s,onFavoritesClick:c,onSignOutClick:u,trailingSlot:v})}),o.jsx("div",{className:"cr-top-banner__right",children:o.jsx(kc,{djName:f,showName:p,isOnAir:m,statusText:g})})]})})}function D3({streamingPlayerProps:t={variant:"slim-player",artistName:"Artist Name",trackName:"Song Name",isTrackAdded:!1,autoFetch:!1}}){const r=j2();return o.jsx("div",{className:"cr-logo-banner",children:o.jsxs("div",{className:"cr-logo-banner__container",children:[r?o.jsxs(Zr,{to:"/",className:"cr-logo-banner__logo-container",children:[o.jsx("div",{className:"cr-logo-banner__logo-horizontal",children:o.jsx(Ea,{variant:"horizontal-reversed",color:"white"})}),o.jsx("div",{className:"cr-logo-banner__logo-vertical",children:o.jsx(Ea,{variant:"vertical-reversed",color:"white"})})]}):o.jsxs("div",{className:"cr-logo-banner__logo-container",children:[o.jsx("div",{className:"cr-logo-banner__logo-horizontal",children:o.jsx(Ea,{variant:"horizontal-reversed",color:"white"})}),o.jsx("div",{className:"cr-logo-banner__logo-vertical",children:o.jsx(Ea,{variant:"vertical-reversed",color:"white"})})]}),o.jsx("div",{className:"cr-logo-banner__player-container",children:o.jsx(El,{...t},"header-player")})]})})}function iv({badgeCount:t=0,showBadge:r=!0,size:i="36",onClick:s,className:c="",ariaLabel:u}){const f=v=>{s&&s(v)},p={24:"sm",36:"md",48:"lg",60:"xl"},g=["cr-cart-icon",p[i]?`cr-cart-icon--${p[i]}`:"",c].filter(Boolean).join(" ");return o.jsxs("div",{className:g,onClick:f,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":u||(r&&t>0?`Shopping cart with ${t} items`:"Shopping cart"),onKeyDown:s?v=>{v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),f(v))}:void 0,style:{"--cart-icon-size":`${i}px`},children:[o.jsxs("svg",{width:i,height:i,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"cr-cart-icon__svg",children:[o.jsx("path",{d:"M5.79588 24.6828C4.50896 19.5351 3.8655 16.9613 5.21675 15.2306C6.568 13.5 9.22105 13.5 14.5272 13.5H21.4732C26.7793 13.5 29.4324 13.5 30.7836 15.2306C32.1349 16.9613 31.4914 19.5351 30.2045 24.6828C29.386 27.9568 28.9767 29.5938 27.756 30.5469C26.5354 31.5 24.848 31.5 21.4732 31.5H14.5272C11.1524 31.5 9.465 31.5 8.24432 30.5469C7.02364 29.5938 6.61439 27.9568 5.79588 24.6828Z",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{opacity:"0.5",d:"M29.25 14.25L28.1844 10.342C27.7735 8.83507 27.5681 8.08162 27.1467 7.5142C26.727 6.94909 26.1568 6.51351 25.5012 6.25728C24.8429 6 24.0619 6 22.5 6M6.75 14.25L7.81559 10.342C8.22648 8.83507 8.43192 8.08162 8.85331 7.5142C9.27299 6.94909 9.84323 6.51351 10.4988 6.25728C11.1571 6 11.9381 6 13.5 6",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M13.5 6C13.5 5.17157 14.1716 4.5 15 4.5H21C21.8284 4.5 22.5 5.17157 22.5 6C22.5 6.82843 21.8284 7.5 21 7.5H15C14.1716 7.5 13.5 6.82843 13.5 6Z",stroke:"currentColor",strokeWidth:"1.5"})]}),r&&o.jsx("span",{className:"cr-cart-icon__badge",children:t})]})}function k3({children:t="Select",leftIcon:r,options:i=[],onSelect:s,size:c="medium",variant:u="solid",color:f="default",disabled:p=!1,theme:m="light",className:g="",textCase:v="uppercase",...y}){const[S,w]=_.useState(!1),[E,b]=_.useState(!1),j=_.useRef(null),N=_.useRef(null),C=_.useRef(null),M=()=>{b(!0),C.current=setTimeout(()=>{w(!1),b(!1)},150)};_.useEffect(()=>{function L(B){j.current&&!j.current.contains(B.target)&&M()}if(S)return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[S]),_.useEffect(()=>{function L(B){B.key==="Escape"&&M()}if(S)return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[S]),_.useEffect(()=>()=>{N.current&&clearTimeout(N.current),C.current&&clearTimeout(C.current)},[]);const R=()=>{p||(S||E?M():(w(!0),b(!1)))},z=L=>{C.current&&(clearTimeout(C.current),C.current=null),N.current&&(clearTimeout(N.current),N.current=null),w(!1),b(!1),s&&s(L)},V=()=>{S&&!E&&(N.current=setTimeout(()=>{M()},150))},k=()=>{N.current&&(clearTimeout(N.current),N.current=null),E&&(C.current&&(clearTimeout(C.current),C.current=null),b(!1))},I=["cr-select-button-interaction",v==="normal"?"cr-select-button-interaction--normal-case":"",g].filter(
63Boolean).join(" "),U=["cr-select-button-interaction__menu",E?"cr-select-button-interaction__menu--closing":""].filter(Boolean).join(" ");return o.jsxs("div",{className:I,ref:j,onMouseLeave:V,onMouseEnter:k,onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||M()},children:[o.jsx(xe,{size:c,variant:u,color:f,disabled:p,leftIcon:r,rightIcon:o.jsx(ph,{}),onClick:R,"aria-expanded":S,"aria-haspopup":"true",...y,children:t}),(S||E)&&o.jsx("div",{className:U,children:o.jsx(Zh,{options:i,onSelect:z,theme:m})})]})}const I3=10;function sh(t,r,i="-createdAt"){const s={limit:I3,depth:1,sort:i};return r.forEach((c,u)=>{s[`where[or][${u}][${c}][like]`]=t}),s}function hc(t,r,i="-createdAt"){return{...sh(t,r,i),draft:"true","where[_status][equals]":"published"}}const mc={article:"Blog",event:"Events",dj:"DJs",podcast:"Podcasts",shop:"Shop",weeklyChart:"Charts"};function U3(t,r){const[i,s]=_.useState("");_.useEffect(()=>{const K=setTimeout(()=>s(t.trim()),300);return()=>clearTimeout(K)},[t]);const c=i.length>=2,{data:u,isFetching:f}=Oe({queryKey:["search","articles",i],queryFn:({signal:K})=>Dt("articles",hc(i,["title","excerpt"],"-publishedDate"),K),enabled:c,staleTime:6e4}),{data:p,isFetching:m}=Oe({queryKey:["search","events",i],queryFn:({signal:K})=>Dt("events",hc(i,["title","excerpt"],"-createdAt"),K),enabled:c,staleTime:6e4}),{data:g,isFetching:v}=Oe({queryKey:["search","djs",i],queryFn:({signal:K})=>Dt("djs",sh(i,["djName","djExcerpt","showName"]),K),enabled:c,staleTime:6e4}),{data:y,isFetching:S}=Oe({queryKey:["search","podcasts",i],queryFn:({signal:K})=>Dt("podcasts",hc(i,["title","excerpt","host"],"-publishedDate"),K),enabled:c,staleTime:6e4}),{data:w,isFetching:E}=Oe({queryKey:["search","products",i],queryFn:({signal:K})=>Dt("products",hc(i,["title"]),K),enabled:c,staleTime:6e4}),{data:b,isFetching:j}=Oe({queryKey:["search","weeklyCharts",i],queryFn:({signal:K})=>Dt("weeklyCharts",sh(i,["title"],"-createdAt"),K),enabled:c,staleTime:6e4}),N=u?.docs,C=p?.docs,M=g?.docs,R=y?.docs,z=w?.docs,V=b?.docs,k=_.useMemo(()=>{if(!c)return[];const K=[];return N?.forEach(D=>{K.push({id:String(D.id??D.slug),type:"article",title:D.title,de
63scription:D.excerpt,image:Mg(D.featuredImage)||void 0,url:`/blog/${D.slug}`,data:D})}),C?.forEach(D=>{const q=typeof D.venue=="object"&&D.venue!==null?D.venue.name:void 0;K.push({id:String(D.id??D.slug),type:"event",title:D.title,subtitle:q,description:D.excerpt,image:Mg(D.featuredImage)||D.featuredImageUrl||void 0,url:`/events/${D.slug||D.id}`,data:D})}),M?.forEach(D=>{const q=D.profileImage,O=typeof q=="object"&&q!==null&&"url"in q?q.url:void 0;K.push({id:String(D.id??""),type:"dj",title:D.djName,subtitle:D.showName,description:D.djExcerpt,image:O,url:`/djs/${D.slug||D.id}`,data:D})}),R?.forEach(D=>{const q=D.featuredImage,O=typeof q=="object"&&q!==null&&"url"in q?q.url:D.featuredImageUrl??void 0;K.push({id:String(D.id??D.slug),type:"podcast",title:D.title,subtitle:D.host?typeof D.host=="object"?D.host.name:D.host:void 0,description:D.excerpt,image:O,url:`/podcasts/${D.slug||D.id}`,data:D})}),z?.forEach(D=>{const q=D.priceInUSD!=null?D.priceInUSD/100:NaN,O=Array.isArray(D.gallery)&&D.gallery[0]?D.gallery[0].image?.url:void 0;K.push({id:D.id??D.slug??"",type:"shop",title:D.title,subtitle:isNaN(q)?D.category:`$${q.toFixed(2)}`,image:O||void 0,url:`/store/${D.slug||D.id}`,data:D})}),V?.forEach(D=>{K.push({id:D.id?.toString()||"",type:"weeklyChart",title:D.title,url:"/playlist",data:D})}),K},[c,N,C,M,R,z,V]),I=_.useMemo(()=>r?k.filter(K=>r.has(K.type)):k,[k,r]),U=_.useMemo(()=>{const K={};for(const D of I)K[D.type]||(K[D.type]=[]),K[D.type].push(D);return K},[I]),L=_.useMemo(()=>{if(!c)return{};const K=[["article",u],["event",p],["dj",g],["podcast",y],["shop",w],["weeklyChart",b]],D={};for(const[q,O]of K)O?.totalDocs!=null&&(D[q]=O.totalDocs);return D},[c,u,p,g,y,w,b]),B=_.useMemo(()=>{let K=0;for(const[D,q]of Object.entries(L))r&&!r.has(D)||(K+=q);return K},[L,r]);return{results:I,groupedResults:U,isSearching:c&&(f||m||v||S||E||j),totalResults:B,totalByType:L}}function H3({onMenuClick:t,onSearchClick:r,onPlaylistClick:i,onEventsClick:s,onArticlesClick:c,onPodcastsClick:u,onStoreClick:f,onWaysToGiveClick:p,onDonateClick:m,donateUrl:g,donateOpenInNewTab:v=!0,storeBadgeCount:y=5,showStoreBadge:S=!0,variant:w="desktop",mainNavLinks:E,waysToGiveLinks:b}){const{navigate:j,location:N}=_3(),[C,M]=_.useState(!1),[R,z]=_.useState(""),[V,k]=_.useState(new Set(["article","event","dj","podcast","shop","weeklyChart"])),I=_.useRef(null),{results:U,groupedResults:L,isSearching:B,totalResults:Q,totalByType:K}=U3(R,V),D=se=>{k(ge=>{const be=new Set(ge);return be.has(se)?be.size>1&&be.delete(se):be.add(se),be})},q={"/playlist":i,"/events":s,"/blog":c,"/podcasts":u},O=se=>se.startsWith("http://")||se.startsWith("https://"),Y=E??[],Z=b&&b.length>0?[{label:"Donate",value:"donate",route:"/donate",isActive:N?.pathname==="/donate"},...b.map(se=>({label:se.label,value:se.url,route:se.url,isActive:N?.pathname===se.url}))]:[],ee=N&&Z.some(se=>se.route!=="/donate"&&N.pathname===se.route),ne=se=>{if(se.value==="donate"){g?v?tn(g):Zi(g):m?.();return}se.route?O(se.route)?tn(se.route):j?j(se.route):p&&p():p&&p()},A=()=>{M(!0),r&&r()},F=()=>{M(!1),z("")},X=se=>{se.preventDefault()},ie=se=>{se&&j&&(j(se),F())},re=se=>{switch(se){case"article":return o.jsx(Gf,{});case"event":return o.jsx($v,{});case"dj":return o.jsx(gh,{});case"podcast":return o.jsx(qv,{});case"shop":return o.jsx(bh,{});default:return o.jsx(Gf,{})}},de=se=>{switch(se){case"article":return"/blog";case"event":return"/events";case"dj":return"/djs";case"podcast":return"/podcasts";case"shop":return"/store";case"weeklyChart":return"/playlist"}};return _.useEffect(()=>{C&&I.current&&I.current.focus()},[C]),o.jsxs("nav",{className:`cr-main-nav cr-main-nav--${w}`,"aria-label":"Primary",children:[o.jsxs("div",{className:"cr-main-nav__container",children:[o.jsxs("div",{className:"cr-main-nav__left",children:[o.jsx(br,{variant:"dots",layout:"icon-left",text:"Menu",onClick:t}),Y.map(se=>O(se.url)?o.jsx("a",{href:se.url,target:"_blank",rel:"noopener noreferrer",className:"cr-main-nav__nav-link",children:se.label},se.url):j?o.jsx(Zr,{to:se.url,className:`cr-main-nav__nav-link ${N?.pathname.startsWith(se.url)?"cr-main-nav__nav-link--active":""}`,children:se.label},se.url):o.jsx("button",{className:"cr-main-nav__nav-link",onClick:q[se.url],children:se.label},se.url)),o.jsx(br,{variant:"dots",layout:"icon-only",icon:o.jsx(vc,{}),onClick:A,className:"cr-main-nav__search-button"})]}),o.jsxs("div",{className:"cr-main-nav__right",children:[o.jsx(br,{variant:"dots",layout:"icon-only",icon:o.jsx(vc,{}),onClick:A,className:"cr-main-nav__search-button cr-main-nav__search-button--responsive"}),j?o.jsxs(Zr,{to:"/store",className:`cr-main-nav__store-button ${N?.pathname.startsWith("/store")?"cr-main-nav__store-button--active":""}`,"aria-label":S&&y>0?`Store - ${y} items in cart`:"Store",children:[o.jsx("span",{className:"cr-main-nav__store-text",children:"Store"}),o.jsx(iv,{badgeCount:y,showBadge:S,size:"36",className:"cr-main-nav__store-icon"})]}):o.jsxs("button",{className:"cr-main-nav__store-button",onClick:f,"aria-label":S&&y>0?`Store - ${y} items in cart`:"Store",children:[o.jsx("span",{className:"cr-main-nav__store-text",children:"Store"}),o.jsx(iv,{badgeCount:y,showBadge:S,size:"36",className:"cr-main-nav__store-icon"})]}),o.jsx(k3,{options:Z,onSelect:ne,variant:"text",color:"default",size:"small",theme:"light",textCase:"normal",className:`cr-main-nav__ways-dropdown ${ee?"cr-main-nav__ways-dropdown--active":""}`,children:"Ways to Give"}),o.jsx(xe,{variant:"solid",color:"primary",size:"medium",onClick:()=>{g?v?tn(g):Zi(g):m?.()},children:"Donate"})]})]}),o.jsx(Bh,{isOpen:C,onClose:F,scrimOnClick:F,title:"Search",size:"default",className:"cr-main-nav__search-modal",children:o.jsxs("div",{className:"cr-main-nav__search-container",children:[o.jsxs("form",{onSubmit:X,className:"cr-main-nav__search-form",children:[o.jsx(vc,{className:"cr-main-nav__search-icon"}),o.jsx("input",{ref:I,type:"text",className:"cr-main-nav__search-input",placeholder:"Search CHIRP...","aria-label":"Search",value:R,onChange:se=>z(se.target.value)}),R&&o.jsx("button",{type:"button",className:"cr-main-nav__search-clear",onClick:()=>z(""),"aria-label":"Clear search",children:o.jsx(Gv,{})})]}),R&&R.length>=2&&o.jsx("div",{className:"cr-main-nav__search-hint",children:B?"Searching...":U.length>0?Q>U.length?`${U.length} of ${Q} results`:`${U.length} result${U.length!==1?"s":""}`:`No results for "${R}"`}),o.jsx("div",{className:"cr-main-nav__search-filters",role:"group","aria-label":"Filter by type",children:Object.keys(mc).map(se=>{const ge=K[se]??0,be=V.has(se),Ne=R.length>=2&&!B&&ge===0,Ee=R.length>=2&&!B;return o.jsxs(en,{size:"small",variant:be?"secondary":"light",className:`cr-main-nav__search-filter${Ne?" cr-main-nav__search-filter--empty":""}${be?"":" cr-main-nav__search-filter--outline"}`,onClick:Ne?void 0:()=>D(se),"aria-pressed":be,"aria-disabled":Ne||void 0,children:[mc[se],Ee?` ${ge}`:""]},se)})}),R&&R.length>=2&&!B&&U.length>0&&o.jsx("div",{className:"cr-main-nav__search-results",children:Object.keys(mc).map(se=>{const ge=L[se];if(!ge||ge.length===0)return null;const be=K[se]??0,Ne=be>ge.length;return o.jsxs("div",{className:"cr-main-nav__search-group",children:[o.jsxs("div",{className:"cr-main-nav__search-group-header",children:[o.jsxs("span",{className:"cr-main-nav__search-group-header-left",children:[o.jsx("span",{className:"cr-main-nav__search-result-icon",children:re(se)}),mc[se]," (",Ne?`${ge.length} of ${be}`:ge.length,")"]}),Ne&&o.jsx("button",{className:"cr-main-nav__search-view-all",onClick:()=>ie(`${de(se)}?search=${encodeURIComponent(R)}`),children:"View all â"})]}),ge.map(Ee=>o.jsxs("button",{className:"cr-main-nav__search-result",onClick:()=>ie(Ee.url),children:[Ee.image?o.jsx("img",{src:Ee.image,alt:Ee.title,className:"cr-main-nav__search-result-image",loading:"lazy",onError:me=>{me.currentTarget.style.display="none"}}):o.jsx("div",{className:"cr-main-nav__search-result-image cr-main-nav__search-result-image--placeholder",children:re(Ee.type)}),o.jsxs("div",{className:"cr-main-nav__search-result-content",children:[o.jsx("div",{className:"cr-main-nav__search-result-title",children:Ee.title}),Ee.subtitle&&o.jsx("div",{className:"cr-main-nav__search-result-subtitle",children:Ee.subtitle})]})]},`${Ee.type}-${Ee.id}`))]},se)})})]})})]})}function z3({isLoggedIn:t=!0,userName:r="",userAvatar:i,djName:s="",showName:c="",isOnAir:u=!0,statusText:f="On-Air",streamingPlayerProps:p={variant:"slim-player",artistName:"",trackName:"",isTrackAdded:!1,autoFetch:!1},storeBadgeCount:m=5,showStoreBadge:g=!0,onMenuClick:v,onPlaylistClick:y,onEventsClick:S,onArticlesClick:w,onSearchClick:E,onStoreClick:b,onWaysToGiveClick:j,onDonateClick:N,donateUrl:C,donateOpenInNewTab:M,onProfileClick:R,onFavoritesClick:z,onSignOutClick:V,mainNavLinks:k,waysToGiveLinks:I,trailingNavSlot:U}){return o.jsxs("header",{className:"cr-app-header",children:[o.jsx(M3,{isLoggedIn:t,userName:r,userAvatar:i,djName:s,showName:c,isOnAir:u,statusText:f,onProfileClick:R,onFavoritesClick:z,onSignOutClick:V,accountTrailingSlot:U}),o.jsx(D3,{streamingPlayerProps:p}),o.jsx(H3,{onMenuClick:v,onPlaylistClick:y,onEventsClick:S,onArticlesClick:w,onSearchClick:E,onStoreClick:b,storeBadgeCount:m,onWaysToGiveClick:j,onDonateClick:N,donateUrl:C,donateOpenInNewTab:M,showStoreBadge:g,mainNavLinks:k,waysToGiveLinks:I})]})}
63function P3(t){return fe({attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M800 112.962C800 50.575 749.425 0 687.038 0H112.962C50.575 0 0 50.575 0 112.962v574.076C0 749.426 50.575 800 112.962 800h574.076C749.425 800 800 749.426 800 687.038zM662.759 348.916c-51.615.577-99.71-15.027-141.938-43.927v202.874c0 90.166-61.72 167.62-148.996 187.848-119.068 27.165-219.864-58.954-232.577-161.835-13.294-102.884 52.322-193.051 152.892-213.281 19.651-4.045 49.209-4.045 64.458-.577v108.661c-4.692-1.153-9.086-2.31-13.709-2.888-39.304-6.937-77.371 12.715-92.977 48.55-15.605 35.838-5.16 77.451 26.629 101.73 26.586 20.806 56.085 23.694 86.14 9.822 30.057-13.291 46.21-37.567 49.676-70.512.578-4.622.546-9.826.546-15.028V110.206c0-10.981.086-10.502 11.068-10.502h86.12c6.36 0 8.673.915 9.25 8.433 4.621 67.047 55.526 124.147 120.838 132.818 6.937 1.155 14.369 1.613 22.58 2.19z",transform:"translate(112 112)"},child:[]}]})(t)}function $3(t){return fe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"},child:[]}]})(t)}function B3(t){return fe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(t)}function q3(t){return fe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(t)}function F3(t){return fe({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"},child:[]}]})(t)}function sv(t){return fe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z"},child:[]}]})(t)}function V3(t){return fe({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.994 6.124a9.23 9.23 0 00-.24-2.19c-.317-1.31-1.062-2.31-2.18-3.043a5.022 5.022 0 00-1.877-.726 10.496 10.496 0 00-1.564-.15c-.04-.003-.083-.01-.124-.013H5.986c-.152.01-.303.017-.455.026-.747.043-1.49.123-2.193.4-1.336.53-2.3 1.452-2.865 2.78-.192.448-.292.925-.363 1.408-.056.392-.088.785-.1 1.18 0 .032-.007.062-.01.
63093v12.223c.01.14.017.283.027.424.05.815.154 1.624.497 2.373.65 1.42 1.738 2.353 3.234 2.801.42.127.856.187 1.293.228.555.053 1.11.06 1.667.06h11.03a12.5 12.5 0 001.57-.1c.822-.106 1.596-.35 2.295-.81a5.046 5.046 0 001.88-2.207c.186-.42.293-.87.37-1.324.113-.675.138-1.358.137-2.04-.002-3.8 0-7.595-.003-11.393zm-6.423 3.99v5.712c0 .417-.058.827-.244 1.206-.29.59-.76.962-1.388 1.14-.35.1-.706.157-1.07.173-.95.045-1.773-.6-1.943-1.536a1.88 1.88 0 011.038-2.022c.323-.16.67-.25 1.018-.324.378-.082.758-.153 1.134-.24.274-.063.457-.23.51-.516a.904.904 0 00.02-.193c0-1.815 0-3.63-.002-5.443a.725.725 0 00-.026-.185c-.04-.15-.15-.243-.304-.234-.16.01-.318.035-.475.066-.76.15-1.52.303-2.28.456l-2.325.47-1.374.278c-.016.003-.032.01-.048.013-.277.077-.377.203-.39.49-.002.042 0 .086 0 .13-.002 2.602 0 5.204-.003 7.805 0 .42-.047.836-.215 1.227-.278.64-.77 1.04-1.434 1.233-.35.1-.71.16-1.075.172-.96.036-1.755-.6-1.92-1.544-.14-.812.23-1.685 1.154-2.075.357-.15.73-.232 1.108-.31.287-.06.575-.116.86-.177.383-.083.583-.323.6-.714v-.15c0-2.96 0-5.922.002-8.882 0-.123.013-.25.042-.37.07-.285.273-.448.546-.518.255-.066.515-.112.774-.165.733-.15 1.466-.296 2.2-.444l2.27-.46c.67-.134 1.34-.27 2.01-.403.22-.043.442-.088.663-.106.31-.025.523.17.554.482.008.073.012.148.012.223.002 1.91.002 3.822 0 5.732z"},child:[]}]})(t)}function Z3(t){return fe({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},child:[]}]})(t)}const lv=tt("CrSocialIcon"),G3={facebook:{icon:$3,color:"#1877f2",label:"Facebook"},instagram:{icon:B3,color:"#e4405f",label:"Instagram"},twitter:{icon:sv,color:"#000000",colorDark:"#FFFFFF",label:"X"},"twitter-x":{icon:sv,color:"#000000",colorDark:"#FFFFFF",label:"X"},bluesky:{icon:Z3,color:"#00a8e8",label:"Bluesky"},tiktok:{icon:P3,color:"var(--cr-ink)",label:"TikTok"},linkedin:{icon:q3,color:"#0077b5",label:"LinkedIn"},youtube:{icon:H6,color:"#FF0000",label:"YouTube"},spotify:{icon:F3,color:"#1DB954",label:"Spotify"},"apple-music":{icon:V3,color:"#FA2D48",label:"Apple Music"}};function N2({platform:t,size:r=24,url:i,onClick:s,className:c="",ariaLabel:u,iconMedia:f,label:p,...m}){const g=["cr-social-icon",c].filter(Boolean).join(" "),v=E=>{s&&t&&(E.preventDefault(),s(t,i||""))};let y,S;if(t==="other"){if(!f?.url)return lv.warn('CrSocialIcon: platform "other" requires iconMedia; rendering nothing.'),null;S=p||f.alt||"Social media link",y=o.jsx("img",{className:"cr-social-icon__svg cr-social-icon__svg--media",src:f.url,alt:f.alt||S,width:r,height:r,style:{"--cr-social-icon-size":`${r}px`}})}else{const E=G3[t];if(!E)return lv.warn(`CrSocialIcon: Unknown platform "${t}"`),null;const b=E.icon;S=E.label,y=o.jsx(b,{className:"cr-social-icon__svg",size:r,style:{"--cr-social-icon-color":E.color,..."colorDark"in E&&{"--cr-social-icon-color-dark":E.colorDark},"--cr-social-icon-size":`${r}px`}})}const w={className:g,"aria-label":u||`${S} social media link`,...m};return i&&!s?o.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",...w,children:y}):s?o.jsx("button",{type:"button",onClick:v,...w,children:y}):o.jsx("span",{...w,children:y})}const Y3=tt("Eec"),Q3=({isOpen:t,onClose:r})=>{_.useEffect(()=>(t?(i(),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),_.useEffect(()=>{const s=c=>{c.key==="Escape"&&t&&r()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t,r]);const i=()=>{try{const s=new(window.AudioContext||window.webkitAudioContext);[523.25,659.25,783.99,1046.5].forEach((u,f)=>{const p=s.createOscillator(),m=s.createGain();p.type="square",p.frequency.setValueAtTime(u,s.currentTime+f*.1),m.gain.setValueAtTime(.1,s.currentTime+f*.1),m.gain.exponentialRampToValueAtTime(.01,s.currentTime+f*.1+.2),p.connect(m),m.connect(s.destination),p.start(s.currentTime+f*.1),p.stop(s.currentTime+f*.1+.2)})}catch{Y3.log("Audio context not available")}};return t?Vr.createPortal(o.jsx("div",{className:"easter-egg-overlay",onClick:r,children:o.jsxs("div",{className:"easter-egg-modal",onClick:s=>s.stopPropagation(),children:[o.jsx("div",{className:"easter-egg-header",children:o.jsx("div",{className:"easter-egg-title",children:"â
Achievement Unlocked â
"})}),o.jsxs("div",{className:"easter-egg-content",children:[o.jsx("div",{className:"easter-egg-pixel-art",children:o.jsx(Nl,{className:"easter-egg-pixel-heart"})}),o.jsxs("div",{className:"easter-egg-credits",children:[o.jsx("div",{children:"Created with Love for CHI
63RP Radio by"}),o.jsx("div",{className:"easter-egg-name",children:"Ryan Wilson"}),o.jsx("div",{className:"easter-egg-name",children:"Aric Peters"}),o.jsx("div",{className:"easter-egg-name",children:"James Carman"}),o.jsx("div",{className:"easter-egg-name",children:"Steve Berardelli"}),o.jsx("div",{className:"easter-egg-year",children:"Built 2025 â 2026"})]}),o.jsxs("div",{className:"easter-egg-achievement",children:[o.jsx(ig,{className:"easter-egg-achievement-star"}),o.jsxs("div",{className:"easter-egg-achievement-content",children:[o.jsx("div",{className:"easter-egg-achievement-title",children:"Team Effort"}),o.jsx("div",{className:"easter-egg-achievement-desc",children:"Built by Callibrity"})]}),o.jsx(ig,{className:"easter-egg-achievement-star"})]}),o.jsx("div",{className:"easter-egg-close-hint",children:"[ CLICK OUTSIDE TO CONTINUE ]"})]})]})}),document.body):null},K3=({version:t,className:r=""})=>{const[i,s]=_.useState(0),[c,u]=_.useState(!1),f=_.useRef(null),p=()=>{const m=i+1;if(s(m),f.current&&clearTimeout(f.current),m===7){u(!0),s(0);return}f.current=setTimeout(()=>{s(0)},2e3)};return _.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]),o.jsxs(o.Fragment,{children:[o.jsx("span",{className:`version-number ${r}`,children:o.jsxs("button",{className:"version-number__button",onClick:p,"aria-label":"Version number",children:[o.jsxs("span",{className:"version-number__text",children:["v",t]}),i>=3&&o.jsx("span",{className:"version-number__counter","aria-live":"polite",children:i})]})}),o.jsx(Q3,{isOpen:c,onClose:()=>u(!1)})]})},X3=[{platform:"facebook",url:"https://www.facebook.com/chirpradio",label:"Facebook"},{platform:"instagram",url:"https://www.instagram.com/chirpradio",label:"Instagram"},{platform:"twitter",url:"https://x.com/chirpradio",label:"X"},{platform:"bluesky",url:"https://bsky.app/profile/chirpradio.org",label:"Bluesky"},{platform:"linkedin",url:"https://www.linkedin.com/company/chirpradio/",label:"LinkedIn"}],J3=[{label:"Privacy Policy",url:"/privacy-policy"},{label:"Terms of Service",url:"/terms-of-service"},{label:"Sitemap",url:"/sitemap"},{label:"Text-only version",url:"https://text.chirpradio.org"}],W3=({onCallibrityClick:t})=>{const r=new Date().getFullYear(),i=yn(),{data:s,loading:c}=ti(),u=s?.socialLinks?.length?s.socialLinks:X3,f=s?.footerTextLinks?.length?s.footerTextLinks:J3,p=m=>{m.startsWith("http://")||m.startsWith("https://")?tn(m):i(m)};return c?null:o.jsx("footer",{className:"cr-footer cr-bg-textured cr-bg-rice-d100",children:o.jsxs("div",{className:"cr-footer__container",children:[o.jsxs("div",{className:"cr-footer__left",children:[o.jsx("div",{className:"cr-footer__copyright",children:o.jsxs("p",{children:[s?.copyrightText?.replace("{year}",r.toString())||`©2008â${r} Chicago Independent Radio Project. CHIRP, CHIRP Radio, and Chicago Independent Radio Project are registered trademarks.`," ",o.jsx(K3,{version:"3.0.1",className:"cr-footer__version"})]})}),o.jsx("div",{className:"cr-footer__attribution",children:o.jsx("p",{children:f.map((m,g)=>o.jsxs("span",{children:[g>0&&o.jsx("span",{className:"cr-footer__separator",children:" | "}),o.jsx("button",{type:"button",className:"cr-footer__link-button",onClick:()=>p(m.url),children:m.label})]},m.url))})}),o.jsx("div",{className:"cr-footer__social",children:u.map(m=>{const g=m.iconMedia,v=g&&typeof g=="object"&&"url"in g?g:null;return o.jsx(N2,{platform:m.platform,url:m.url,size:32,className:"cr-footer__social-button",iconMedia:v,label:m.label},m.platform)})})]}),o.jsxs("div",{className:"cr-footer__middle",children:[s?.showChirpFilmFestLogo&&o.jsx("button",{className:"cr-footer__event-image cr-footer__event-image--film-fest",onClick:()=>{s.chirpFilmFestLogoUrl&&tn(s.chirpFilmFestLogoUrl)},"aria-label":"CHIRP Film Fest",children:o.jsx("img",{src:String(s.chirpFilmFestLogo?.url||"/images/chirp-logos/chirp-film-fest.jpg"),alt:"CHIRP Film Fest Logo"})}),s?.showFirstTimeLogo&&o.jsx("button",{className:"cr-footer__event-image cr-footer__event-image--first-time",onClick:()=>{s.firstTimeLogoUrl&&tn(s.firstTimeLogoUrl)},"aria-label":"First Time Listening",children:o.jsx("img",{src:String(s.firstTimeLogo?.url||"/images/chirp-logos/FirstTimeLogo.webp"),alt:"First Time Listening Logo"})})]}),o.jsxs("div",{className:"cr-footer__right",children:[o.jsx("div",{className:"cr-footer__callibrity-text",children:o.jsxs("p",{children:["Chirp Radio web and mobile apps created by"," ",o.jsx("a",{href:"https://callibrity.com",target:"_blank",rel:"noopener noreferrer",children:"callibrity.com"}),"."]})}),o.jsx("button",{className:"cr-footer__callibrity-logo",onClick:t,"aria-label":"Visit Callibrity website",children:o.jsx("img",{src:"/images/callibrity-logo/Callibrity-Plum.svg",alt:"Callibrity Logo",width:"181",height:"30"})}),o.jsx("div",{className:"cr-footer__tagline",children:"Curiosity is in Our Programming"})]})]})})},ew=({showAdditionalLogos:t=!1,additionalLogos:r=[]}
63)=>{const{data:i,loading:s}=ti(),c=r;if(s)return null;const u=i?.footerSupport;return o.jsxs("div",{className:"cr-support",children:[u?.content?o.jsx("div",{className:"cr-support__primary-text",children:o.jsx(xl,{content:u.content})}):o.jsx("div",{className:"cr-support__primary-text",children:o.jsxs("p",{children:[o.jsx("span",{children:"CHIRP is partially supported by a "}),o.jsx("span",{className:"cr-support__grant-name",children:"CityArts Grant from the City of Chicago Department of Cultural Affairs & Special Events"}),o.jsx("span",{children:", as well as through funding from the "}),o.jsx("span",{className:"cr-support__grant-name",children:"Illinois Arts Council"}),o.jsx("span",{children:"."})]})}),o.jsxs("div",{className:"cr-support__main-logos",children:[u?.showDCaseLogo&&(()=>{const f=o.jsx("img",{className:"cr-support__logo-image",src:u.dCaseLogo?.url||"/images/support-logos/DCASE-HORIZ-COLOR.webp",alt:"Chicago Department of Cultural Affairs & Special Events"});return o.jsx("div",{className:"cr-support__logo cr-support__logo--dcase",children:Sl(u.dCaseLogoUrl)?o.jsx("a",{...pl(u.dCaseLogoUrl),children:f}):f})})(),u?.showIlArtsCouncilLogo&&(()=>{const f=o.jsx("img",{className:"cr-support__logo-image",src:u.ilArtsCouncilLogo?.url||"/images/support-logos/Blk and Green IAC Logo.webp",alt:"Illinois Arts Council"});return o.jsx("div",{className:"cr-support__logo cr-support__logo--iac",children:Sl(u.ilArtsCouncilLogoUrl)?o.jsx("a",{...pl(u.ilArtsCouncilLogoUrl),children:f}):f})})()]}),u?.additionalLogos&&u.additionalLogos.length>0&&o.jsxs("div",{className:"cr-support__additional-section",children:[o.jsx("div",{className:"cr-support__additional-text",children:o.jsx("p",{children:"Additional funding for CHIRP provided by..."})}),o.jsx("div",{className:"cr-support__additional-logos",children:u.additionalLogos.filter(f=>f.logo?.url).slice(0,3).map((f,p)=>o.jsx("div",{className:"cr-support__additional-logo",children:f.logoUrl?o.jsx("a",{...pl(f.logoUrl),children:o.jsx("img",{src:f.logo?.url,alt:f.alt||`Additional supporter ${p+1}`,className:"cr-support__additional-logo-image"})}):o.jsx("img",{src:f.logo?.url,alt:f.alt||`Additional supporter ${p+1}`,className:"cr-support__additional-logo-image"})},f.id||p))})]}),t&&c.length>0&&!u?.additionalLogos&&o.jsxs("div",{className:"cr-support__additional-section",children:[o.jsx("div",{className:"cr-support__additional-text",children:o.jsx("p",{children:"Additional funding for CHIRP provided by..."})}),o.jsx("div",{className:"cr-support__additional-logos",children:c.slice(0,3).map(f=>o.jsx("div",{className:"cr-support__additional-logo",children:o.jsx("img",{src:f.src,alt:f.alt||"Additional supporter",className:"cr-support__additional-logo-image"})},f.src))})]})]})},tw=tt("UseRandomAdvertisement");function nw(){const[t,r]=_.useState(null),[i,s]=_.useState(!0),[c,u]=_.useState(null);return _.useEffect(()=>{(async()=>{try{s(!0);const p=await fetch(`${kh}/api/advertisements/random`);if(!p.ok)throw new Error("Failed to fetch advertisement");const{doc:m}=await p.json();tw.log("useRandomAdvertisement: selected ad:",m?.name??"none"),r(m??null)}catch(p){u(p instanceof Error?p:new Error("Unknown error")),r(null)}finally{s(!1)}})()},[]),{advertisement:t,loading:i,error:c}}const C2=t=>!t||typeof t=="string"?null:{id:t.id,src:t.image?.url,alt:t.alt||t.image?.alt||"",href:t.href},R2=({variant:t="compact",contentType:r="image",src:i,videoSrc:s,alt:c="Advertisement",href:u,className:f="",showPartnerBadge:p=!1,loading:m=!1,muted:g=!0,autoPlay:v=!0,loop:y=!0,onLoad:S,onError:w,onClick:E,onImpression:b})=>{const[j,N]=_.useState(!1),[,C]=_.useState(!1),[M,R]=_.useState(!1),z=_.useRef(null),V=_.useRef(b);V.current=b,_.useEffect(()=>{if(M)return;const D=new IntersectionObserver(([q])=>{q.isIntersecting&&!M&&(R(!0),V.current?.())},{threshold:.5});return z.current&&D.observe(z.current),()=>D.disconnect()},[M]);const k=()=>{C(!0),N(!1),S?.()},I=()=>{N(!0),C(!1),w?.()},U=D=>{E?.(D),u&&!D.defaultPrevented&&(tn(u),D.preventDefault())},L=D=>{D.target===D.currentTarget&&u&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),tn(u))},Q=m?o.jsxs("div",{className:"cr-ad-space__loading",children:[o.jsx("div",{className:"cr-ad-space__loading-spinner"}),o.jsx("span",{className:"cr-ad-space__loading-text",children:"Loading ad..."})]}):j?o.jsxs("div",{className:"cr-ad-space__error",children:[o.jsx(Tc,{className:"cr-ad-space__error-icon"}),o.jsx("span",{className:"cr-ad-space__error-text",children:"Ad failed to load"})]}):r==="video"&&s?o.jsx("video",{src:s,className:"cr-ad-space__video",muted:g,autoPlay:v,loop:y,playsInl
63ine:!0,onLoadedData:k,onError:I,"aria-label":c}):i?o.jsx("img",{src:i,alt:c,className:"cr-ad-space__image",onLoad:k,onError:I,loading:"lazy"}):null;if(!Q&&!m&&!j)return null;const K=o.jsxs("div",{ref:z,className:`cr-ad-space ad-container-responsive ${p?"":f}`,onClick:U,onKeyDown:L,role:u?"link":"img",tabIndex:u?0:-1,"aria-label":u?`Advertisement: ${c}`:c,children:[o.jsx("div",{className:"cr-ad-space__container",children:Q}),o.jsx("a",{href:"#main-content",className:"cr-ad-space__skip-link","aria-label":"Skip advertisement",children:"Skip Ad"})]});return p?o.jsxs("div",{className:`cr-ad-space-partner ${t==="full"?"cr-ad-space-partner--full":""} ${f}`,children:[K,o.jsx("div",{className:"cr-ad-space-partner__label",children:"CHIRP Partner"})]}):K};function aw(t){return`${it}/advertisements/${encodeURIComponent(t)}/view`}function rw(t){return`${it}/advertisements/${encodeURIComponent(t)}/click`}function L2(t){t&&fetch(aw(t),{method:"POST",keepalive:!0}).catch(()=>{})}function O2(t){if(!t)return;const r=rw(t);typeof navigator<"u"&&typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(r)||fetch(r,{method:"POST",keepalive:!0}).catch(()=>{})}const ov=tt("AdContainer");function iw({advertisement:t,variant:r,responsive:i,showPartnerBadge:s}){const c=C2(t);if(!c)return null;const u=c.id;return o.jsx(R2,{...c,variant:r,showPartnerBadge:s,className:i?"ad-container-responsive":"",onImpression:u?()=>L2(u):void 0,onClick:u?()=>O2(u):void 0})}function sw({variant:t,responsive:r,showPartnerBadge:i}){const{advertisement:s,loading:c}=nw();if(c)return null;const u=C2(s);if(!u)return null;const f=u.id;return o.jsx(R2,{...u,variant:t,showPartnerBadge:i,className:r?"ad-container-responsive":"",onImpression:f?()=>L2(f):void 0,onClick:f?()=>O2(f):void 0})}function Lf({advertisement:t,variant:r,responsive:i,showPartnerBadge:s}){return t?o.jsx(iw,{advertisement:t,variant:r,responsive:i,showPartnerBadge:s}):o.jsx(sw,{variant:r,responsive:i,showPartnerBadge:s})}function lw({slot:t,variant:r="full",responsive:i=!1,showPartnerBadge:s=!0}){if(!t?.enabled)return null;const c={variant:r,responsive:i,showPartnerBadge:s};return t.adCount==="2"?(ov.log("AdContainer: rendering dual ads"),o.jsxs("div",{className:"ad-container-group",children:[o.jsx(Lf,{advertisement:t.advertisement,...c}),o.jsx(Lf,{advertisement:t.advertisement2,...c})]})):(ov.log("AdContainer: rendering single ad"),o.jsx(Lf,{advertisement:t.advertisement,...c}))}const ow=({showAdditionalLogos:t=!1,additionalLogos:r=[],className:i="",...s})=>{const{data:c,loading:u}=ti();return u?null:o.jsxs("div",{className:`cr-support-with-ads ${i}`,...s,children:[o.jsx("div",{className:"cr-support-with-ads__support",children:o.jsx(ew,{showAdditionalLogos:t,additionalLogos:r})}),o.jsx("div",{className:"cr-support-with-ads__ads",children:o.jsx(lw,{slot:c?.footerSupport?.ad,variant:"compact"})})]})},cw=t=>t.startsWith("http://")||t.startsWith("https://");function uw({links:t}){const r=yn(),i=Ut(),[s,c]=_.useState(!1),u=_.useRef(null);if(_.useEffect(()=>{if(!s)return;const m=v=>{u.current&&!u.current.contains(v.target)&&c(!1)},g=v=>{v.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",m),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",g)}},[s]),!t||t.length===0)return null;const f=t.map(m=>({label:m.label,value:m.url,isActive:i.pathname===m.url})),p=m=>{c(!1),m.value&&(cw(m.value)?tn(m.value):r(m.value))};return o.jsxs("div",{className:"cr-account__dropdown-wrapper",ref:u,children:[o.jsx(xe,{size:"xsmall",variant:"outline",color:"default",rightIcon:o.jsx(T2,{}),onClick:()=>c(!s),"aria-expanded":s,"aria-haspopup":"true",children:"Volunteer"}),s&&o.jsx("div",{className:"cr-account__dropdown-menu",children:o.jsx(Zh,{options:f,onSelect:p})})]})}const M2=({children:t})=>{const r=yn(),{getTotalItems:i}=w4(),{isLoggedIn:s,signOut:c}=Wr(),{data:u}=xr(),{showToast:f}=rn(),{data:p}=Ki(),m=ei(p?.djId?[p.djId]:[]),{data:g}=ti(),[v,y]=_.useState(!1),[S,w]=_.useState(!1),E=i();_.useEffect(()=>{},[]),_.useEffect(()=>{let L=0;const B=()=>{cancelAnimationFrame(L),L=requestAnimationFrame(()=>{const Q=document.querySelector(".cr-app-header"),K=Q?Q.offsetHeight:200;w(window.scrollY>K)})};return window.addEventListener("scroll",B),()=>{window.removeEventListener("scroll",B),cancelAnimationFrame(L)}},[]),_.useEffect(()=>{const L=sessionStorage.getItem("chirp-show-signout-toast"),B=sessionStorage.getItem("chirp-show-login-toast"),Q=sessionStorage.getItem("chirp-show-signup-toast");L==="true"&&(sessionStorage.removeItem("chirp-show-signout-toast"),f({message:g?.logoutSuccessMessage||"Successfully signed out",type:"success",duration:3e3})),B==="true"&&(sessionStorage.removeItem("chirp-show-login-toast"),f({message:g?.loginSuccessMessage||"Successfully logged in",type:"success",duration:3e3})),Q==="true"&&(sessionStorage.removeItem("chirp-show-signup-toast"),f({message:g?.signupSuccessMessage||"Account created! Check your email to verify your account.",type:"success",duration:3e3}))},[f,g]);const b=()=>{y(!0)},j=()=>{y(!1)},N=()=>r("/profile"),C=()=>r("/collection"),M=()=>{c(),f({message:g?.logoutSuccessMessage||"Successfully signed out",type:"success",duration:3e3}),window.location.pathname.startsWith("/app")&&r("/app")},R=()=>tn("https://callibrity.com"),z=()=>{if(u)return u.djName||`${u.firstName||""} ${u.lastName||""}`.trim()||u.username||u.email.split("@")[0]},V=()=>u&&qi(u.profileImage||u.fullProfileImage)||void 0,k=_.useMemo(()=>({variant:"slim-player",autoFetch:!0}),[]),I=_.useMemo(()=>
63{if(!p)return{djName:void 0,showName:void 0};const L=p.djId?m.get(p.djId):void 0,B=L?.showName||"",Q=L?.djName,K=Xi(Q||p.djName||"",B);return{djName:K.djName,showName:K.showName}},[p,m]),U=()=>{const L=g?.donate?.donateUrl||void 0||"https://chirpradio.app.neoncrm.com/forms/41";g?.donate?.donateOpenInNewTab!==!1?tn(L):Zi(L)};return o.jsxs("div",{className:"web-layout-wrapper",children:[o.jsx(z3,{djName:I.djName,showName:I.showName,streamingPlayerProps:k,onMenuClick:b,storeBadgeCount:E,showStoreBadge:!0,isLoggedIn:s,userName:z(),userAvatar:V(),donateUrl:g?.donate?.donateUrl,donateOpenInNewTab:g?.donate?.donateOpenInNewTab,onDonateClick:U,onProfileClick:N,onFavoritesClick:C,onSignOutClick:M,mainNavLinks:g?.navigation?.mainNavLinks,waysToGiveLinks:g?.navigation?.waysToGiveLinks,trailingNavSlot:d2(u)?o.jsx(uw,{links:g?.navigation?.volunteerNavLinks}):void 0}),o.jsx(A2,{variant:"web",isOpen:v,onClose:j,onDonateClick:U,onLogoClick:()=>{r("/"),j()},mainNavLinks:g?.navigation?.mainNavLinks,secondaryNavLinks:g?.navigation?.secondaryNavLinks,waysToGiveLinks:g?.navigation?.waysToGiveLinks,aboutLinks:g?.navigation?.aboutLinks,onNavigateToUrl:L=>{L.startsWith("http://")||L.startsWith("https://")?tn(L):r(L),j()},onNavigate:L=>{const Q={home:"/",playlist:"/playlist",podcast:"/podcasts",djs:"/djs",schedule:"/schedule",charts:"/charts",events:"/events",articles:"/blog","ways-to-give":"/other-ways-to-give","vinyl-circle":"/vinyl-circle",shop:"/store",about:"/about","other-ways-to-listen":"/other-ways-to-listen",contests:"/contests",contact:"/contact","become-volunteer":"/volunteer",request:"/request-song"}[L];Q&&(r(Q),j())}}),o.jsx(l2,{isVisible:v,onClick:j,zIndex:999,center:!1,padding:!1}),o.jsx("main",{id:"main-content",tabIndex:-1,children:o.jsx(f2,{children:t||o.jsx(dy,{})})}),o.jsxs("div",{className:"web-layout-footer-container",children:[o.jsx("div",{className:"support-with-ads-wrapper",children:o.jsx(ow,{})}),o.jsx(W3,{onCallibrityClick:R}),o.jsx("div",{className:"web-layout-subfooter"})]}),o.jsx("div",{className:`web-layout-bottom-player ${S?"web-layout-bottom-player--visible":""}`,children:o.jsx(El,{variant:"mini-player",autoFetch:!0},"bottom-player")})]})};function cv({isFavorite:t=!1,onClick:r,size:i="small"}){return o.jsxs("button",{className:`cr-favorite-btn cr-favorite-btn--${i}${t?" cr-favorite-btn--active":""}`,onClick:s=>{s.stopPropagation(),s.preventDefault(),r?.()},"aria-label":t?"Unfavorite":"Favorite",type:"button",children:[o.jsxs("span",{className:"cr-favorite-btn__icon",children:[o.jsx(Rl,{className:"cr-favorite-btn__heart-empty"}),o.jsx(Nl,{className:"cr-favorite-btn__heart-fill"})]}),o.jsx("span",{className:"cr-favorite-btn__label",children:"FAVORITE"})]})}function Jt(t){if(!t)return"";const r={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","’":"â","‘":"â","”":"â","“":"â"," ":" ","—":"â","–":"â","…":"â¦","©":"©","®":"®","™":"â¢","•":"â¢","°":"°","¶":"¶","§":"§","€":"â¬","£":"£","¥":"Â¥"};let i=t;for(const[s,c]of Object.entries(r))i=i.replace(new RegExp(s,"g"),c);return i=i.replace(/&#(\d+);/g,(s,c)=>String.fromCharCode(parseInt(c,10))),i=i.replace(/&#x([0-9a-f]+);/gi,(s,c)=>String.fromCharCode(parseInt(c,16))),i}function D2({size:t="large",isLoading:r=!1,showTitle:i,djName:s="",djExcerpt:c="",showBio:u=!0,djBio:f="",showTime:p="",showTimes:m,buttonText:g="Profile",imageSrc:v,onRequestClick:y,onMoreClick:S,onDjDetailsClick:w,onAddToCalendarClick:E,isCHIRP:b=!1,isFavorite:j=!1,isOnAir:N=!1,compact:C=!1,onFavoriteClick:M}){const R=c||f,z=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--large cr-dj-overview--loading cr-bg-dust-d100",role:"status","aria-label":"Loading DJ information",children:[o.jsx("div",{className:"cr-dj-overview__image cr-dj-overview__skeleton"}),o.jsxs("div",{className:"cr-dj-overview__content",children:[o.jsx("div",{className:"cr-dj-overview__skeleton cr-dj-overview__skeleton--title-bar"}),o.jsx("div",{className:"cr-dj-overview__skeleton cr-dj-overview__skeleton--name-bar"}),o.jsx("div",{className:"cr-dj-overview__skeleton cr-dj-overview__skeleton--bio-bar"}),o.jsx("div",{className:"cr-dj-overview__skeleton cr-dj-overview__skeleton--bio-bar cr-dj-overview__skeleton--bio-bar-short"})]})]}),V=m&&m.length>1,k=v||Va([s]);if((t==="large"||t==="medium-card")&&r)return z();const I=()=>o.jsxs("div",{className:`cr-dj-overview cr-dj-overview--${t==="medium-card"?"medium-card":"large"}${i?" cr-dj-overview--has-title":""}${b?" cr-dj-overview--chirp":""}${C&&t!=="medium-card"?" cr-dj-overview--compact":""} cr-bg-dust-d100`,children:[o.jsxs("div",{className:"cr-dj-overview__image",style:k?{backgroundImage:`url('${k}')`}:{},children:[N&&o.jsx("div",{className:"cr-dj-overview__on-air-badge",children:o.jsx(en,{variant:"primary",children:"On-Air"})}),!b&&M&&o.jsx("div",{className:"cr-dj-overview__favorite-btn",children:o.jsx(cv,{isFavorite:j,onClick:M,size:"small"})})]}),o.jsxs("div",{className:"cr-dj-overview__content",children:[i&&o.jsx("div",{className:"cr-dj-overview__title",children:i}),o.jsx("div",{className:"cr-dj-overview__dj-name",children:s}),!C&&t!=="medium-card"&&R&&o.jsx("div",{className:`cr-dj-overview__dj-bio${V?" cr-dj-overview__dj-bio--single-line":""}`,children:Jt(R)}),o.jsx("div",{className:"cr-dj-overview__show-time-wrapper",children:C&&m&&m.length>0?o.jsxs(o.Fragment,{children:[o.jsx("time",{className:"cr-dj-overview__show-time",children:m.map(D=>D.displayTime).join(", ")}),!b&&o.jsx("button",{className:"cr-dj-overview__add-calendar-btn",onClick:m[0].onAddToCalendar,"aria-label":"Add to calendar",children:o.jsx(Hi,{})})]}):m&&m.length>0?o.jsx("div",{className:"schedule-times-container",children:m.map(D=>o.jsxs("div",{className:"schedule-time-item",children:[o.jsxs("time",{className:"cr-dj-overview__show-time",children:[o.jsx("span",{className:"cr-dj-overview__time-full",children:D.displayTime}),D.displayTimeShort&&o.jsx("span",{className:"cr-dj-overview__time-short",children:D.displayTimeShort})]}),!b&&o.jsx("button",{className:"cr-dj-overview__add-calendar-btn",onClick:D.onAddToCalendar,"aria-label":`Add ${D.displayTime} to calendar`,children:o.jsx(Hi,{})})]},D.displayTime))}):o.jsxs(o.Fragment,{children:[o.jsx("time",{className:"cr-dj-overview__show-time",children:p}),!b&&o.jsx("button",{className:"cr-dj-overview__add-calendar-btn",onClick:E,"aria-label":"Add to calendar",children:o.jsx(Hi,{})})]})}),!b&&(!C&&t!=="medium-card"&&y||S)&&o.jsxs("div",{className:"cr-dj-overview__actions",children:[!C&&t!=="medium-card"&&y&&o.jsx(xe,{size:"xsmall",variant:"text",color:"secondary",onClick:y,children:"Request Song"}),S&&o.jsx(xe,{size:"xsmall",variant:"text",color:"default",onClick:S,children:g})]})]})]}),U=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--medium",children:[o.jsxs("div",{className:"cr-dj-overview__image cr-dj-overview__image--circular",style:k?{backgroundImage:`url('${k}')`}:{},children:[N&&o.jsx("div",{className:"cr-dj-overview__on-air-badge",children:o.jsx(en,{variant:"primary",size:"small",children:"On-Air"})}),!b&&M&&o.jsx("div",{className:"cr-dj-overview__favorite-btn",children:o.jsx(cv,{isFavorite:j,onClick:M,size:"small"})})]}),o.jsxs("div",{className:"cr-dj-overview__content",children:[i&&o.jsx("div",{className:"cr-dj-overview__title",children:i}),o.jsx("div",{className:"cr-dj-overview__dj-name",children:s}),u&&R&&o.jsx("div",{className:`cr-dj-overview__dj-bio${V?" cr-dj-overview__dj-bio--single-line":""}`,children:Jt(R)}),o.jsx("div",{className:"cr-dj-overview__show-time-wrapper",children:m&&m.length>0?o.jsx("div",{className:"schedule-times-container",children:m.map(D=>o.jsxs("div",{className:"schedule-time-item",children:[o.jsxs("time",{className:"cr-dj-overview__show-time",children:[o.jsx("span",{className:"cr-dj-overview__time-full",children:D.displayTime}),D.displayTimeShort&&o.jsx("span",{className:"cr-dj-overview__time-short",children:D.displayTimeShort})]}),o.jsx("button",{className:"cr-dj-overview__add-calendar-btn",onClick:D.onAddToCalendar,"aria-label":`Add ${D.displayTime} to calendar`,children:o.jsx(Hi,{})})]},D.displayTime))}):o.jsxs(o.Fragment,{children:[o.jsx("time",{className:"cr-dj-overview__show-time",children:p}),o.jsx("button",{className:"cr-dj-overview__add-calendar-btn",onClick:E,"aria-label":"Add to calendar",children:o.jsx(Hi,{})})]})}),!b&&S&&o.jsx(xe,{size:"small",variant:"outline",color:"default",rightIcon:o.jsx(Vf,{}),onClick:S,children:g})]})]}),L=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--xsmall-1col",children:[o.jsx("div",{className:"cr-dj-overview__dj-name",children:s}),R&&o.jsx("div",{className:"cr-dj-overview__dj-bio",children:Jt(R)}),o.jsx("time",{className:"cr-dj-overview__show-time",children:p})]}),B=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--xsmall-2col",children:[o.jsx("time",{className:"cr-dj-overview__show-time cr-dj-overview__show-time--left",children:p}),o.jsxs("div",{className:"cr-dj-overview__content",children:[o.jsx("div",{className:"cr-dj-overview__dj-name",children:s}),R&&o.jsx("div",{className:"cr-dj-overview__dj-bio",children:Jt(R)}),S&&o.jsx(xe,{size:"small",variant:"outline",color:"default",rightIcon:o.jsx(Vf,{}),onClick:S,children:g})]})]}),Q=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--schedule",children:[o.jsx("time",{className:"cr-dj-overview__show-time",children:p}),o.jsxs("div",{className:"cr-dj-overview__body",children:[k?o.jsx("img",{className:"cr-dj-overview__image cr-dj-overview__image--schedule",src:k,alt:`${s} avatar`}):o.jsx("div",{className:"cr-dj-overview__image cr-dj-overview__image--schedule"}),o.jsxs("div",{className:"cr-dj-overview__meta",children:[o.jsx("div",{className:"cr-dj-overview__dj-name",children:s}),i&&o.jsx("div",{className:"cr-dj-overview__show-title",children:i}),!b&&o.jsx("div",{className:"cr-dj-overview__button-wrapper",children:o.jsx(xe,{size:"xsmall",variant:"text",color:"default",rightIcon:o.jsx(gh,{}),onClick:D=>{D&&w?.(D)},children:"PROFILE"})})]})]})]}),K=()=>o.jsxs("div",{className:"cr-dj-overview cr-dj-overview--small",children:[o.jsx("div",{className:"cr-dj-overview__image cr-dj-overview__image--circular cr-dj-overview__image--small",style:k?{backgroundImage:`url('${k}')`}:{}}),o.jsx("div",{className:"cr-dj-overview__content",children:o.jsx("div",{className:"cr-dj-overview__dj-name",children:s})})]});switch(t){case"large":return I();case"medium-card":return I();case"medium":return U();case"small":return K();case"xsmall-1col":return L();case"xsmall-2col":return B();case"schedule":return Q();default:return I()}}function dw({currentAmount:t=0,targetAmount:r=0,onDonateClick:i,variant:s="default",className:c=""}){const[u,f]=_.useState(!1),[p,m]=_.useState(!1),g=_.useRef(null),v=Math.min(t/r*100,100),y=w=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(w);_.useEffect(()=>{const w=new IntersectionObserver(([b])=>{b.isIntersecting&&!u&&(m(!0),f(!0))},{threshold:.1}),E=g.current;return E&&w.observe(E),()=>{E&&w.unobserve(E)}},[u]);const S=["cr-donation-bar",`cr-donation-bar--${s}
63`,c].filter(Boolean).join(" ");return o.jsxs("div",{ref:g,className:S,onClick:i,role:i?"button":void 0,tabIndex:i?0:void 0,onKeyDown:i?w=>{w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),i())}:void 0,"aria-label":`Donation progress: ${y(t)} raised of ${y(r)} goal, ${Math.round(v)}% complete`,children:[o.jsxs("div",{className:"cr-donation-bar__container",children:[o.jsx("div",{className:"cr-donation-bar__current-white",children:o.jsx("span",{className:"cr-donation-bar__amount cr-donation-bar__amount--white",children:y(t)})}),o.jsx("div",{className:"cr-donation-bar__progress",children:o.jsx("div",{className:`cr-donation-bar__fill ${p?"cr-donation-bar__fill--animate":""}`,style:{"--progress-width":`${v}%`},"aria-hidden":"true",children:o.jsx("div",{className:"cr-donation-bar__current-red",children:o.jsx("span",{className:"cr-donation-bar__amount cr-donation-bar__amount--red",children:y(t)})})})}),o.jsx("div",{className:"cr-donation-bar__target",children:o.jsx("span",{className:"cr-donation-bar__amount",children:y(r)})})]}),o.jsxs("span",{className:"sr-only",children:[Math.round(v),"% of goal reached"]})]})}function fw({variant:t="donation",widthVariant:r="full",textureBackground:i="cr-bg-natural-a500",headlineText:s="It's our fifteenth anniversary!",bodyText:c="Celebrate our history & help us plan for the future!",showLink:u=!0,linkText:f="Donate Today!",linkUrl:p="#",buttonCount:m="two",button1Text:g="SMART SPEAKER",button1Icon:v="speaker",button1OnClick:y,button2Text:S="MOBILE",button2Icon:w="mobile",button2OnClick:E,currentAmount:b=7271,targetAmount:j=48e3,onDonateClick:N,className:C="",contestImageUrl:M,contestImageAlt:R="Contest image"}){const z=()=>`cr-texture-offset-${s.split("").reduce((B,Q)=>B+Q.charCodeAt(0),0)%8+1}`,V=["cr-announcement",`cr-announcement--${t}`,`cr-announcement--${r}`,"cr-bg-textured",i,z(),C].filter(Boolean).join(" "),k={PiArrowRight:yl,PiArrowSquareUp:bl,PiCaretLeft:$6,PiCaretRight:Vf,PiCaretUp:q6,PiCaretDown:ph,PiCaretUpDown:B6,PiX:Gv,PiXBold:zv,PiMagnifyingGlass:vc,PiDotsThreeOutlineVerticalFill:Pv,PiPlus:o_,PiMinus:e_,PiCalendarBlank:P6,PiCalendarDot:$v,PiCalendarDots:Cl,PiCalendarPlus:Hi,PiTicket:Zv,PiVinylRecord:_r,PiMusicNote:t_,PiMusicNotes:Fv,PiPlaylist:Vv,PiPlayFill:U6,PiPauseFill:I6,PiHeadphones:gh,PiMicrophone:qv,PiHeart:Rl,PiHeartFill:Nl,PiHandHeart:X6,PiHandHeartLight:Ac,PiUser:v_,PiUserCircle:g_,PiChatCircleText:F6,PiChatCircleTextLight:Ff,PiSignIn:c_,PiReadCvLogo:yh,PiNotepad:n_,PiPaperclip:i_,PiNewspaper:Gf,PiMapTrifold:vh,PiPaperPlaneRight:a_,PiPaperPlaneTilt:r_,PiGear:Bv,PiFloppyDisk:K6,PiPencilSimple:s_,PiUploadSimple:p_,PiShoppingBag:bh,PiEye:Zf,PiEyeSlash:Tc,PiDownload:Y6,PiDownloadSimple:G6,PiExport:Q6,PiPlusCircle:Pi,PiPlusSquare:l_},I=U=>{if(U in k){const L=k[U];return o.jsx(L,{size:24})}return U==="speaker"?o.jsx("svg",{className:"cr-announcement__icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.407 3.158a23.987 23.987 0 0 0-8.815 0l-.215.04a4.084 4.084 0 0 0-3.31 3.546l-.017.137c-.4 3.494-.4 7.023 0 10.518a3.964 3.964 0 0 0 3.453 3.477l1.015.127c.498.062.737.092.975.116 1.667.175 3.347.175 5.014 0 .238-.024.476-.054.974-.116l.906-.113a4.088 4.088 0 0 0 3.562-3.6l.018-.153c.389-3.49.377-7.013-.034-10.501a3.951 3.951 0 0 0-3.203-3.417l-.323-.06Zm-9.09-1.474a25.486 25.486 0 0 1 9.366 0l.323.06a5.451 5.451 0 0 1 4.416 4.716c.425 3.601.437 7.24.035 10.843l-.017.154a5.588 5.588 0 0 1-4.867 4.921l-.917.115c-.485.06-.74.092-.994.118-1.77.185-3.555.185-5.325 0-.254-.026-.508-.058-.994-.118l-1.026-.128A5.464 5.464 0 0 1 2.56 17.57a47.681 47.681 0 0 1 0-10.86l.016-.137a5.583 5.583 0 0 1 4.526-4.849l.215-.04Zm-.892 3.834a.75.75 0 0 1 1.057-.093C8.059 5.908 9.676 6.75 12 6.75s3.941-.842 4.518-1.325a.75.75 0 1 1 .963 1.15C16.62 7.297 14.657 8.25 12 8.25c-2.656 0-4.62-.953-5.482-1.675a.75.75 0 0 1-.093-1.057Z",clipRule:"evenodd"})}):o.jsxs("svg",{className:"cr-announcement__icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"-2 0 22 22",children:[o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z"})]})};return t==="contest"?o.jsxs("div",{className:V,children:[o.jsx("h2",{className:"cr-announcement__headline",children:s}),o.jsxs("div",{className:"cr-announcement__wrapper",children:[M&&o.jsx("div",{className:"cr-announcement__contest-image",children:o.jsx("img",{src:M,alt:R})}),o.jsxs("div",{className:"cr-announcement__contest-content",children:[o.jsx(xl,{content:c,className:"cr-announcement__body"}),o.jsxs("div",{className:"cr-announcement__contest-buttons",children:[o.jsx(xe,{variant:"solid",color:"secondary",size:"medium",onClick:y,children:g}),o.jsx(xe,{variant:"text",color:"secondary",size:"medium",onClick:E,children:S})]})]})]})]}):o.jsxs("div",{className:V,children:[o.jsx("h2",{className:"cr-announcement__headline",children:s}),o.jsxs("div",{className:"cr-announcement__wrapper",children:[o.jsxs("div",{className:"cr-announcement__content",children:[o.jsx(xl,{content:c,className:"cr-announcement__body"}),u&&o.jsx("div",{className:"cr-announcement__link-wrapper",children:o.jsx(xe,{variant:"text",color:"secondary",size:"small",leftIcon:o.jsx(Ac,{}),rightIcon:o.jsx(yl,{}),onClick:()=>{p&&Zi(p)},children:f})})]}),o.jsxs("div",{className:"cr-announcement__buttons",children:[m==="two"&&o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"outline",color:"secondary",size:"medium",rightIcon:I(v),onClick:y,children:g}),o.jsx(xe,{variant:"outline",color:"secondary",size:"medium",rightIcon:I(w),onClick:E,children:S})]}),m==="one"&&o.jsx(xe,{variant:"outline",color:"secondary",size:"medium",rightIcon:I(v),onClick:y,children:g})]})]}),t==="donation"&&o.jsx("div",{className:"cr-announcement__donation",children:o.jsx(dw,{currentAmount:b,targetAmount:j,onDonateClick:N,variant:"reverse"})})]})}const uv=["/images/fallback-art/fallback-art-01.webp","/images/fallback-art/fallback-art-02.webp","/images/fallback-art/fallback-art-03.webp","/images/fallback-art/fallback-art-04.webp","/images/fallback-art/fallback-art-05.webp","/images/fallback-art/fallback-art-06.webp"];function Gh(t){const r=n2(String(t))%uv.length;return uv[r]}const hw=["large","card","thumbnail"],Yh=(t,r)=>{if(typeof t.featuredImage=="object"&&t.featuredImage&&"url"in t.featuredImage){const i=t.featuredImage;if(r){const s=i.sizes?.[r]?.url;if(s)return s;for(const c of hw){if(c===r)continue;const u=i.sizes?.[c]?.url;if(u)return u}}return i.url}return typeof t.featuredImage=="string"?t.featuredImage:t.featuredImageUrl},k2=t=>{if(typeof t.category=="object"&&t.category&&"name"in t.category)return t.category.name;if(typeof t.category=="string")return t.category},I2=t=>{if(!Array.isArray(t.tagRefs)||t.tagRefs.length===0)return;const r=t.tagRefs.map(i=>typeof i=="object"&&i!==null?i.name:void 0).filter(i=>!!i);return r.length>0?r:void 0},mw=(t,r)=>{const i=Yh(t,r);return i||Gh(t.id??t.title??"event")},pw=t=>k2(t)||void 0,gw=t=>t.venue?typeof t.venue=="object"&&"name"in t.venue?t.venue.name:typeof t.venue=="string"?t.venue:t.location:t.location,pT=t=>{if(!(!t.venue||typeof t.venue!="object"))return"address"in t.venue?t.venue.address:void 0},gT=t=>{if(!(!t.venue||typeof t.venue!="object"))return"city"in t.venue?t.venue.city:void 0},vT=t=>{if(!(!t.venue||typeof t.venue!="object"))return"state"in t.venue?t.venue.state:void 0},yT=t=>
63{if(!(!t.venue||typeof t.venue!="object"))return"phone"in t.venue?t.venue.phone:void 0},bT=t=>{if(!(!t.venue||typeof t.venue!="object"))return"website"in t.venue?t.venue.website:void 0},vw=t=>t.ageRestriction||void 0,_T=t=>t.ticketUrl?.trim()||void 0,yw=(t,r)=>{const i=Yh(t,r);return i||Gh(t.id??t.title??"article")},ST=t=>k2(t),xT=t=>I2(t),ET=t=>t.publishedDate?new Date(t.publishedDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}):void 0,wT=(t,r)=>{const i=Yh({featuredImage:t.featuredImage,featuredImageUrl:t.featuredImageUrl},r);return i||Gh(t.id??t.title??"podcast")},jT=t=>I2(t),AT=t=>t.publishedDate?new Date(t.publishedDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}):void 0,Dl="America/Chicago",U2=(t,r)=>{const i={year:"numeric",month:"numeric",day:"numeric",timeZone:Dl};return new Date(t).toLocaleDateString("en-US",i)===new Date(r).toLocaleDateString("en-US",i)},dv=t=>{const r=i=>new Date(t).toLocaleDateString("en-US",{...i,timeZone:Dl});return{month:r({month:"short"}),day:r({day:"numeric"}),year:r({year:"numeric"})}},TT=(t,r)=>{const i=new Date(t);if(r&&new Date(r)>i&&!U2(t,r)){const s=dv(t),c=dv(r);return s.year!==c.year?`${s.month} ${s.day}, ${s.year} â ${c.month} ${c.day}, ${c.year}`:s.month!==c.month?`${s.month} ${s.day} â ${c.month} ${c.day}, ${c.year}`:`${s.month} ${s.day} â ${c.day}, ${c.year}`}return i.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:Dl})},Of=t=>new Date(t).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric",timeZone:Dl}),nl=t=>new Date(t).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",timeZone:Dl}),NT=(t,r)=>r&&new Date(r)>new Date(t)&&!U2(t,r)?{dateStart:`${Of(t)} â`,dateEnd:Of(r),timeLine:`${nl(t)} to ${nl(r)}`}:{dateStart:Of(t),timeLine:r?`${nl(t)} to ${nl(r)}`:nl(t)},bw=t=>t?{variant:t.variant,textureBackground:t.textureBackground,headlineText:t.headlineText,bodyText:t.bodyText,showLink:t.showLink,linkText:t.linkText,linkUrl:t.linkUrl,buttonCount:t.buttonCount,button1Text:t.button1Text,button1Icon:t.button1Icon,button2Text:t.button2Text,button2Icon:t.button2Icon,currentAmount:t.currentAmount,targetAmount:t.targetAmount}:null;function _w({announcement:t,widthVariant:r,className:i}){if(!t)return null;const s=new Date;if(t.startDate&&s<new Date(t.startDate)||t.endDate&&s>new Date(t.endDate))return null;const c=bw(t);if(!c)return null;switch(t.variant){case"donation":case"motivation":case"contest":default:return o.jsx(fw,{...c,widthVariant:r,className:i})}}function Mf({eyebrowText:t="",title:r="",titleTag:i="h2",titleSize:s="xl",showEyebrow:c=!0,showActionButton:u=!0,actionButtonText:f="Edit",actionButtonIcon:p,actionButtonSize:m="medium",onActionClick:g,className:v="",children:y}){const S=["cr-page-header",v].filter(Boolean).join(" "),w=["cr-page-header__title",`cr-title-${s}`].filter(Boolean).join(" "),E=i;return o.jsxs("div",{className:S,children:[o.jsxs("div",{className:"cr-page-header__text",children:[c&&o.jsx("div",{className:"cr-page-header__eyebrow",children:t}),o.jsx(E,{className:w,children:r})]}),y?o.jsx("div",{className:"cr-page-header__action",children:y}):u&&o.jsx("div",{className:"cr-page-header__action",children:o.jsx(xe,{size:m,variant:"outline",color:"default",rightIcon:p,onClick:g,children:f})})]})}const Sw=On("Share",{web:()=>ke(()=>import("./web-CVJ-UrnU.js"),[]).then(t=>new t.ShareWeb)});function Qh(t){return t.toString().replace(/\+/g,"%20")}function xw(t,r){const i=new URLSearchParams;return t&&i.set("text",t),i.set("url",r),`https://twitter.com/intent/tweet?${Qh(i)}`}function Ew(t){const r=new URLSearchParams;return r.set("u",t),`https://www.facebook.com/sharer/sharer.php?${Qh(r)}`}function ww(t,r){const i=new URLSearchParams;return i.set("text",`${t?t+" ":""}${r}`),`https://bsky.app/intent/compose?${Qh(i)}`}const jw=150;function Uc({title:t,subtitle:r,thumbnailUrl:i,thumbnailShape:s="square",url:c,shareText:u,isOpen:f,onClose:p,anchorRef:m}){const[g,v]=_.useState(!1),[y,S]=_.useState(!1),[w,E]=_.useState({top:0,left:0}),b=_.useRef(null),{showToast:j}=rn(),N=_.useCallback(()=>{v(!0),setTimeout(()=>{v(!1),S(!1),p()},jw)},[p]);if(_.useEffect(()=>{if(!f||!m?.current)return;const k=()=>{const I=m.current.getBoundingClientRect(),U=b.current,L=U?.offsetWidth||300,B=U?.offsetHeight||280,Q=8;let K=I.right-L;K<Q&&(K=Q),K+L>window.innerWidth-Q&&(K=window.innerWidth-L-Q);let D;I.top-B-Q>0?D=I.top-B-4:D=I.bottom+4,E({top:D,left:K})};return k(),window.addEventListener("scroll",k,!0),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k)}},[f,m]),_.useEffect(()=>{f&&Ge.isNativePlatform()&&Sw.share({title:t,text:u,url:c,dialogTitle:"Share"}).finally(()=>{p()})},[f,t,u,c,p]),_.useEffect(()=>{if(!f)return;const k=()=>N();return window.addEventListener("scroll",k,!0),()=>window.removeEventListener("scroll",k,!0)},[f,N]),_.useEffect(()=>{if(!f)return;const k=I=>{b.current&&!b.current.contains(I.target)&&N()};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[f,N]),_.useEffect(()=>{if(!f)return;const k=I=>{I.key==="Escape"&&N()};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,N]),!f&&!g||Ge.isNativePlatform())return null;const C=async()=>{try{await navigator.clipboard.writeText(c),S(!0),setTimeout(()=>{S(!1),N(),j({message:"Link copied to clipboard!",type:"success",duration:3e3})},1500)}catch{j({message:"Failed to copy link",type:"error",duration:3e3})}},M=u?`${u} via @CHIRPRadio`:void 0,R={"twitter-x":xw(M,c),facebook:Ew(c),bluesky:ww(u,c)},z=k=>{const I=R[k];I&&(window.open(I,"_blank","noopener,noreferrer,width=600,height=400"),N())},V=o.jsxs("div",{ref:b,className:`cr-share-popover${g?" cr-share-popover--closing":""}
63`,style:m?{top:w.top,left:w.left}:void 0,role:"dialog","aria-label":"Share",children:[(i||r||t)&&o.jsxs("div",{className:"cr-share-popover__preview",children:[i&&o.jsx("img",{src:i,alt:"",className:`cr-share-popover__thumbnail${s==="circle"?" cr-share-popover__thumbnail--circle":""}`}),o.jsxs("div",{className:"cr-share-popover__meta",children:[r&&o.jsx("p",{className:"cr-share-popover__subtitle",children:r}),o.jsx("p",{className:"cr-share-popover__title",children:t})]})]}),o.jsxs("div",{className:"cr-share-popover__socials",children:[o.jsxs("button",{className:"cr-share-popover__copy",onClick:C,type:"button",children:[o.jsx("span",{className:"cr-share-popover__copy-icon",children:y?o.jsx(Z6,{size:18}):o.jsx(J6,{size:18})}),o.jsx("span",{className:`cr-share-popover__copy-label${y?" cr-share-popover__copy-label--copied":""}`,children:y?"Copied!":"Copy link"})]}),["twitter-x","facebook","bluesky"].map(k=>o.jsx(N2,{platform:k,size:24,onClick:()=>z(k)},k))]})]});return m?Vr.createPortal(V,document.body):V}function kl({preheader:t,title:r="",titleTag:i="h2",titleSize:s="md",showPreheader:c=!0,textLayout:u="stacked",height:f="tall",backgroundColor:p="textured",showTicketButton:m=!0,showShareButton:g=!0,ticketButtonText:v="Buy Tix",shareButtonText:y="Share",ticketButtonVariant:S="outline",ticketButtonIcon:w,ticketUrl:E,extraButton:b,shareUrl:j,shareThumbnailUrl:N,shareThumbnailShape:C,shareText:M,onTicketClick:R,onShareClick:z,className:V="",isFavorite:k=!1}){const[I,U]=_.useState(!1),L=_.useRef(null),B=u,Q=()=>{R?R():E&&tn(E)},K=()=>{z?z():U(!0)},D=()=>p!=="textured"?"":`cr-texture-offset-${r.split("").reduce((ne,A)=>ne+A.charCodeAt(0),0)%8+1}`,q=["cr-card-title-banner",`cr-card-title-banner--${f}`,`cr-card-title-banner--${B}`,p==="textured"?`cr-bg-textured cr-bg-natural-light ${D()}`:"",p==="light"?"cr-bg-light":"",V].filter(Boolean).join(" "),O=i,Y=`cr-card-title-banner__title cr-card-title-banner__title--${s}`;return o.jsx("div",{className:q,children:o.jsxs("div",{className:"cr-card-title-banner__container",children:[o.jsxs("div",{className:"cr-card-title-banner__content",children:[c&&t&&o.jsx("div",{className:"cr-card-title-banner__preheader",children:t}),o.jsxs("div",{className:"flex-align-end",children:[o.jsx(O,{className:Y,children:r}),k&&o.jsx(en,{variant:"secondary-light",size:"small",squared:!0,children:"FAVORITE"})]})]}),o.jsxs("div",{className:"cr-card-title-banner__actions",children:[b&&o.jsx(xe,{size:"small",variant:b.variant??"outline",color:b.color??"secondary",leftIcon:b.icon,"aria-label":b.ariaLabel,onClick:Z=>{Z?.stopPropagation(),b.onClick()},children:b.text}),m&&(E||R)&&o.jsx(xe,{size:"small",variant:S,color:"secondary",rightIcon:w||o.jsx(Zv,{}),onClick:Z=>{Z?.stopPropagation(),Q()},children:v}),g&&o.jsxs("div",{className:"cr-share-popover-anchor",ref:L,children:[o.jsx(xe,{size:"small",variant:"outline",color:"secondary",rightIcon:o.jsx(bl,{}),onClick:Z=>{Z?.stopPropagation(),K()},children:y}),o.jsx(Uc,{title:r,subtitle:t,thumbnailUrl:N,thumbnailShape:C,url:j||window.location.href,shareText:M,isOpen:I,onClose:()=>U(!1),anchorRef:L})]})]})]})})}function H2(t,r){const i=_.useRef(null);return _.useEffect(()=>{if(!t)return;const s=i.current;if(!s)return;const c=s.querySelector(r);if(!c)return;let u=0;const f=()=>{cancelAnimationFrame(u),u=requestAnimationFrame(()=>{const{scrollLeft:b,scrollWidth:j,clientWidth:N}=c,C=j>N,M=b<=5,R=b+N>=j-5;s.setAttribute("data-overflow-right",String(C&&!R)),s.setAttribute("data-overflow-left",String(C&&!M))})};let p=!1,m=0,g=0;const v=b=>{p=!0,m=b.pageX-c.offsetLeft,g=c.scrollLeft,c.style.cursor="grabbing",c.style.userSelect="none"},y=()=>{p=!1,c.style.cursor="grab"},S=()=>{p=!1,c.style.cursor="grab"},w=b=>{if(!p)return;b.preventDefault();const N=(b.pageX-c.offsetLeft-m)*2;c.scrollLeft=g-N};c.addEventListener("scroll",f),c.addEventListener("mousedown",v),c.addEventListener("mouseleave",y),c.addEventListener("mouseup",S),c.addEventListener("mousemove",w);const E=new ResizeObserver(f);return E.observe(s),f(),setTimeout(f,0),()=>{cancelAnimationFrame(u),c.removeEventListener("scroll",f),c.removeEventListener("mousedown",v),c.removeEventListener("mouseleave",y),c.removeEventListener("mouseup",S),c.removeEventListener("mousemove",w),E.disconnect()}},[t,r]),i}function Hc({dateTime:t="",venue:r="",ageRestriction:i="",authorBy:s="",eventDate:c="",tags:u=[],device:f="desktop",type:p="event",showShareButton:m=!0,onVenueClick:g,onShareClick:v,onTagClick:y,shareTitle:S="",shareSubtitle:w,shareUrl:E,shareThumbnailUrl:b,shareThumbnailShape:j,shareText:N}){const[C,M]=_.useState(!1),R=_.useRef(null),z=H2(u&&u.length>
630,".cr-card-details__tags"),V=["cr-card-details",`cr-card-details--${f}`,`cr-card-details--${p}`].filter(Boolean).join(" ");return o.jsx("div",{className:V,children:o.jsxs("div",{className:"cr-card-details__container",children:[o.jsxs("div",{className:"cr-card-details__content",children:[o.jsxs("div",{className:"cr-card-details__event-row",children:[o.jsxs("div",{className:"cr-card-details__datetime",children:[o.jsx(Cl,{className:"cr-card-details__icon cr-card-details__icon--calendar"}),o.jsx("span",{className:"cr-card-details__datetime-text",children:t})]}),r&&o.jsxs("button",{type:"button",className:"cr-card-details__venue",onClick:()=>g?.(),children:[o.jsx(vh,{className:"cr-card-details__icon cr-card-details__icon--map"}),o.jsx("span",{className:"cr-card-details__venue-text",children:r})]}),i&&o.jsx(en,{variant:"secondary",size:"large",children:typeof i=="string"?i:i.age})]}),o.jsxs("div",{className:"cr-card-details__article-row",children:[o.jsxs("div",{className:"cr-card-details__author-date",children:[o.jsx("span",{className:"cr-card-details__author",children:s}),o.jsx("span",{className:"cr-card-details__date",children:c})]}),u&&u.length>0&&o.jsx("div",{className:"cr-card-details__tags-wrapper",onClick:k=>k.stopPropagation(),ref:z,children:o.jsx("div",{className:"cr-card-details__tags",children:u.map((k,I)=>{const U=k;return o.jsx(en,{variant:"secondary",size:"medium",onClick:y?L=>{L.stopPropagation(),y(U)}:void 0,children:U},I)})})})]})]}),m&&o.jsx("div",{className:"cr-card-details__actions",children:o.jsxs("div",{className:"cr-share-popover-anchor",ref:R,children:[o.jsx(xe,{size:"small",variant:"outline",color:"secondary",leftIcon:o.jsx(bl,{}),onClick:k=>{k?.stopPropagation(),v?v():M(!0)},children:"Share"}),o.jsx(Uc,{title:S,subtitle:w,thumbnailUrl:b,thumbnailShape:j,url:E||window.location.href,shareText:N,isOpen:C,onClose:()=>M(!1),anchorRef:R})]})})]})})}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:z2,setPrototypeOf:fv,isFrozen:Aw,getPrototypeOf:Tw,getOwnPropertyDescriptor:Nw}=Object;let{freeze:nn,seal:Wn,create:lh}=Object,{apply:oh,construct:ch}=typeof Reflect<"u"&&Reflect;nn||(nn=function(r){return r});Wn||(Wn=function(r){return r});oh||(oh=function(r,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return r.apply(i,c)});ch||(ch=function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new r(...s)});const pc=an(Array.prototype.forEach),Cw=an(Array.prototype.lastIndexOf),hv=an(Array.prototype.pop),al=an(Array.prototype.push),Rw=an(Array.prototype.splice),Ec=an(String.prototype.toLowerCase),Df=an(String.prototype.toString),kf=an(String.prototype.match),rl=an(String.prototype.replace),Lw=an(String.prototype.indexOf),Ow=an(String.prototype.trim),ca=an(Object.prototype.hasOwnProperty),Qt=an(RegExp.prototype.test),il=Mw(TypeError);function an(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return oh(t,r,s)}}function Mw(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return ch(t,i)}}function De(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ec;fv&&fv(t,null);let s=r.length;for(;s--;){let c=r[s];if(typeof c=="string"){const u=i(c);u!==c&&(Aw(r)||(r[s]=u),c=u)}t[c]=!0}return t}function Dw(t){for(let r=0;r<t.length;r++)ca(t,r)||(t[r]=null);return t}function xa(t){const r=lh(null);for(const[i,s]of z2(t))ca(t,i)&&(Array.isArray(s)?r[i]=Dw(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=xa(s):r[i]=s);return r}function sl(t,r){for(;t!==null;){const s=Nw(t,r);if(s){if(s.get)return an(s.get);if(typeof s.value=="function")return an(s.value)}t=Tw(t)}function i(){return null}return i}const mv=nn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),If=nn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uf=nn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kw=nn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hf=nn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Iw=nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pv=nn(["#text"]),gv=nn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
63spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zf=nn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vv=nn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),gc=nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Uw=Wn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hw=Wn(/<%[\w\W]*|[\w\W]*%>/gm),zw=Wn(/\$\{[\w\W]*/gm),Pw=Wn(/^data-[\-\w.\u00B7-\uFFFF]+$/),$w=Wn(/^aria-[\-\w]+$/),P2=Wn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bw=Wn(/^(?:\w+script|data):/i),qw=Wn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$2=Wn(/^html$/i),Fw=Wn(/^[a-z][.\w]*(-[.\w]+)+$/i);var yv=Object.freeze({__proto__:null,ARIA_ATTR:$w,ATTR_WHITESPACE:qw,CUSTOM_ELEMENT:Fw,DATA_ATTR:Pw,DOCTYPE_NAME:$2,ERB_EXPR:Hw,IS_ALLOWED_URI:P2,IS_SCRIPT_OR_DATA:Bw,MUSTACHE_EXPR:Uw,TMPLIT_EXPR:zw});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},Vw=function(){return typeof window>"u"?null:window},Zw=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const u="dompurify"+(s?"#"+s:"");try{return r.createPolicy(u,{createHTML(f){return f},createScriptURL(f){return f}})}catch{return null}},bv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function B2(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vw();const r=_e=>B2(_e);if(r.version="3.3.1",r.removed=[],!t||!t.document||t.document.nodeType!==ll.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t;const s=i,c=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:f,Node:p,Element:m,NodeFilter:g,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:y,DOMParser:S,trustedTypes:w}=t,E=m.prototype,b=sl(E,"cloneNode"),j=sl(E,"remove"),N=sl(E,"nextSibling"),C=sl(E,"childNodes"),M=sl(E,"parentNode");if(typeof f=="function"){const _e=i.createElement("template");_e.content&&_e.content.ownerDocument&&(i=_e.content.ownerDocument)}let R,z="";const{implementation:V,createNodeIterator:k,createDocumentFragment:I,getElementsByTagName:U}
vendor: 9,301 bytes, line 63
63=i,{importNode:L}=s;let B=bv();r.isSupported=typeof z2=="function"&&typeof M=="function"&&V&&V.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:K,TMPLIT_EXPR:D,DATA_ATTR:q,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:ee}=yv;let{IS_ALLOWED_URI:ne}=yv,A=null;const F=De({},[...mv,...If,...Uf,...Hf,...pv]);let X=null;const ie=De({},[...gv,...zf,...vv,...gc]);let re=Object.seal(lh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,se=null;const ge=Object.seal(lh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let be=!0,Ne=!0,Ee=!1,me=!0,he=!1,Ae=!0,He=!1,Ve=!1,nt=!1,We=!1,dt=!1,st=!1,mt=!0,Ht=!1;const Dn="user-content-";let pt=!0,kn=!1,bn={},xt=null;const _n=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ma=null;const Sn=De({},["audio","video","img","source","image","track"]);let Zt=null;const sn=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let gt=wt,Er=!1,wr=null;const ni=De({},[Gt,Et,wt],Df);let ta=De({},["mi","mo","mn","ms","mtext"]),In=De({},["annotation-xml"]);const wa=De({},["title","style","font","a","script"]);let Ft=null;const Ga=["application/xhtml+xml","text/html"],pa="text/html";let lt=null,na=null;const Ji=i.createElement("form"),Ya=function(P){return P instanceof RegExp||P instanceof Function},Wi=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(na&&na===P)){if((!P||typeof P!="object")&&(P={}),P=xa(P),Ft=Ga.indexOf(P.PARSER_MEDIA_TYPE)===-1?pa:P.PARSER_MEDIA_TYPE,lt=Ft==="application/xhtml+xml"?Df:Ec,A=ca(P,"ALLOWED_TAGS")?De({},P.ALLOWED_TAGS,lt):F,X=ca(P,"ALLOWED_ATTR")?De({},P.ALLOWED_ATTR,lt):ie,wr=ca(P,"ALLOWED_NAMESPACES")?De({},P.ALLOWED_NAMESPACES,Df):ni,Zt=ca(P,"ADD_URI_SAFE_ATTR")?De(xa(sn),P.ADD_URI_SAFE_ATTR,lt):sn,ma=ca(P,"ADD_DATA_URI_TAGS")?De(xa(Sn),P.ADD_DATA_URI_TAGS,lt):Sn,xt=ca(P,"FORBID_CONTENTS")?De({},P.FORBID_CONTENTS,lt):_n,de=ca(P,"FORBID_TAGS")?De({},P.FORBID_TAGS,lt):xa({}),se=ca(P,"FORBID_ATTR")?De({},P.FORBID_ATTR,lt):xa({}),bn=ca(P,"USE_PROFILES")?P.USE_PROFILES:!1,be=P.ALLOW_ARIA_ATTR!==!1,Ne=P.ALLOW_DATA_ATTR!==!1,Ee=P.ALLOW_UNKNOWN_PROTOCOLS||!1,me=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=P.SAFE_FOR_TEMPLATES||!1,Ae=P.SAFE_FOR_XML!==!1,He=P.WHOLE_DOCUMENT||!1,We=P.RETURN_DOM||!1,dt=P.RETURN_DOM_FRAGMENT||!1,st=P.RETURN_TRUSTED_TYPE||!1,nt=P.FORCE_BODY||!1,mt=P.SANITIZE_DOM!==!1,Ht=P.SANITIZE_NAMED_PROPS||!1,pt=P.KEEP_CONTENT!==!1,kn=P.IN_PLACE||!1,ne=P.ALLOWED_URI_REGEXP||P2,gt=P.NAMESPACE||wt,ta=P.MATHML_TEXT_INTEGRATION_POINTS||ta,In=P.HTML_INTEGRATION_POINTS||In,re=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Ya(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Ya(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Ne=!1),dt&&(We=!0),bn&&(A=De({},pv),X=[],bn.html===!0&&(De(A,mv),De(X,gv)),bn.svg===!0&&(De(A,If),De(X,zf),De(X,gc)),bn.svgFilters===!0&&(De(A,Uf),De(X,zf),De(X,gc)),bn.mathMl===!0&&(De(A,Hf),De(X,vv),De(X,gc))),P.ADD_TAGS&&(typeof P.ADD_TAGS=="function"?ge.tagCheck=P.ADD_TAGS:(A===F&&(A=xa(A)),De(A,P.ADD_TAGS,lt))),P.ADD_ATTR&&(typeof P.ADD_ATTR=="function"?ge.attributeCheck=P.ADD_ATTR:(X===ie&&(X=xa(X)),De(X,P.ADD_ATTR,lt))),P.ADD_URI_SAFE_ATTR&&De(Zt,P.ADD_URI_SAFE_ATTR,lt),P.FORBID_CONTENTS&&(xt===_n&&(xt=xa(xt)),De(xt,P.FORBID_CONTENTS,lt)),P.ADD_FORBID_CONTENTS&&(xt===_n&&(xt=xa(xt)),De(xt,P.ADD_FORBID_CONTENTS,lt)),pt&&(A["#text"]=!0),He&&De(A,["html","head","body"]),A.table&&(De(A,["tbody"]),delete de.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=P.TRUSTED_TYPES_POLICY,z=R.createHTML("")}else R===void 0&&(R=Zw(w,c)),R!==null&&typeof z=="string"&&(z=R.createHTML(""));nn&&nn(P),na=P}},es=De({},[...If,...Uf,...kw]),ts=De({},[...Hf,...Iw]),Ul=function(P){let ue=M(P);(!ue||!ue.tagName)&&(ue={namespaceURI:gt,tagName:"template"});const pe=Ec(P.tagName),Ze=Ec(ue.tagName);return wr[P.namespaceURI]?P.namespaceURI===Et?ue.namespaceURI===wt?pe==="svg":ue.namespaceURI===Gt?pe==="svg"&&(Ze==="annotation-xml"||ta[Ze]):!!es[pe]:P.namespaceURI===Gt?ue.namespaceURI===wt?pe==="math":ue.namespaceURI===Et?pe==="math"&&In[Ze]:!!ts[pe]:P.namespaceURI===wt?ue.namespaceURI===Et&&!In[Ze]||ue.namespaceURI===Gt&&!ta[Ze]?!1:!ts[pe]&&(wa[pe]||!es[pe]):!!(Ft==="application/xhtml+xml"&&wr[P.namespaceURI]):!1},ln=function(P){al(r.removed,{element:P});try{M(P).removeChild(P)}catch{j(P)}},aa=function(P,ue){try{al(r.removed,{attribute:ue.getAttributeNode(P),from:ue})}catch{al(r.removed,{attribute:null,from:ue})}if(ue.removeAttribute(P),P==="is")if(We||dt)try{ln(ue)}catch{}else try{ue.setAttribute(P,"")}catch{}},ns=function(P){let ue=null,pe=null;if(nt)P="<remove></remove>"+P;else{const Me=kf(P,/^[\r\n\t ]+/);pe=Me&&Me[0]}Ft==="application/xhtml+xml"&>===wt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const Ze=R?R.createHTML(P):P;if(gt===wt)try{ue=new S().parseFromString(Ze,Ft)}catch{}if(!ue||!ue.documentElement){ue=V.createDocument(gt,"template",null);try{ue.documentElement.innerHTML=Er?z:Ze}catch{}}const ft=ue.body||ue.documentElement;return P&&pe&&ft.insertBefore(i.createTextNode(pe),ft.childNodes[0]||null),gt===wt?U.call(ue,He?"html":"body")[0]:He?ue.documentElement:ft},as=function(P){return k.call(P.ownerDocument||P,P,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Un=function(P){return P instanceof y&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof v)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},jt=function(P){return typeof p=="function"&&P instanceof p};function ot(_e,P,ue){pc(_e,pe=>{pe.call(r,P,ue,na)})}const ja=function(P){let ue=null;if(ot(B.beforeSanitizeElements,P,null),Un(P))return ln(P),!0;const pe=lt(P.nodeName);if(ot(B.uponSanitizeElement,P,{tagName:pe,allowedTags:A}),Ae&&P.hasChildNodes()&&!jt(P.firstElementChild)&&Qt(/<[/\w!]/g,P.innerHTML)&&Qt(/<[/\w!]/g,P.textContent)||P.nodeType===ll.progressingInstruction||Ae&&P.nodeType===ll.comment&&Qt(/<[/\w]/g,P.data))return ln(P),!0;if(!(ge.tagCheck instanceof Function&&ge.tagCheck(pe))&&(!A[pe]||de[pe])){if(!de[pe]&&Hl(pe)&&(re.tagNameCheck instanceof RegExp&&Qt(re.tagNameCheck,pe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pe)))return!1;if(pt&&!xt[pe]){const Ze=M(P)||P.parentNode,ft=C(P)||P.childNodes;if(ft&&Ze){const Me=ft.length;for(let zt=Me-1;zt>=0;--zt){const Hn=b(ft[zt],!0);Hn.__removalCount=(P.__removalCount||0)+1,Ze.insertBefore(Hn,N(P))}}}return ln(P),!0}return P instanceof m&&!Ul(P)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Qt(/<\/no(script|embed|frames)/i,P.innerHTML)?(ln(P),!0):(he&&P.nodeType===ll.text&&(ue=P.textContent,pc([Q,K,D],Ze=>{ue=rl(ue,Ze," ")}),P.textContent!==ue&&(al(r.removed,{element:P.cloneNode()}),P.textContent=ue)),ot(B.afterSanitizeElements,P,null),!1)},ai=function(P,ue,pe){if(mt&&(ue==="id"||ue==="name")&&(pe in i||pe in Ji))return!1;if(!(Ne&&!se[ue]&&Qt(q,ue))){if(!(be&&Qt(O,ue))){if(!(ge.attributeCheck instanceof Function&&ge.attributeCheck(ue,P))){if(!X[ue]||se[ue]){if(!(Hl(P)&&(re.tagNameCheck instanceof RegExp&&Qt(re.tagNameCheck,P)||re.tagNameCheck instanceof Function&&re.tagNameCheck(P))&&(re.attributeNameCheck instanceof RegExp&&Qt(re.attributeNameCheck,ue)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(ue,P))||ue==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Qt(re.tagNameCheck,pe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pe))))return!1}else if(!Zt[ue]){if(!Qt(ne,rl(pe,Z,""))){if(!((ue==="src"||ue==="xlink:href"||ue==="href")&&P!=="script"&&Lw(pe,"data:")===0&&ma[P])){if(!(Ee&&!Qt(Y,rl(pe,Z,"")))){if(pe)return!1}}}}}}}return!0},Hl=function(P){return P!=="annotation-xml"&&kf(P,ee)},zl=function(P){ot(B.beforeSanitizeAttributes,P,null);const{attributes:ue}=P;if(!ue||Un(P))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let Ze=ue.length;for(;Ze--;
63){const ft=ue[Ze],{name:Me,namespaceURI:zt,value:Hn}=ft,on=lt(Me),ga=Hn;let Lt=Me==="value"?ga:Ow(ga);if(pe.attrName=on,pe.attrValue=Lt,pe.keepAttr=!0,pe.forceKeepAttr=void 0,ot(B.uponSanitizeAttribute,P,pe),Lt=pe.attrValue,Ht&&(on==="id"||on==="name")&&(aa(Me,P),Lt=Dn+Lt),Ae&&Qt(/((--!?|])>)|<\/(style|title|textarea)/i,Lt)){aa(Me,P);continue}if(on==="attributename"&&kf(Lt,"href")){aa(Me,P);continue}if(pe.forceKeepAttr)continue;if(!pe.keepAttr){aa(Me,P);continue}if(!me&&Qt(/\/>/i,Lt)){aa(Me,P);continue}he&&pc([Q,K,D],is=>{Lt=rl(Lt,is," ")});const rs=lt(P.nodeName);if(!ai(rs,on,Lt)){aa(Me,P);continue}if(R&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!zt)switch(w.getAttributeType(rs,on)){case"TrustedHTML":{Lt=R.createHTML(Lt);break}case"TrustedScriptURL":{Lt=R.createScriptURL(Lt);break}}if(Lt!==ga)try{zt?P.setAttributeNS(zt,Me,Lt):P.setAttribute(Me,Lt),Un(P)?ln(P):hv(r.removed)}catch{aa(Me,P)}}ot(B.afterSanitizeAttributes,P,null)},Pl=function _e(P){let ue=null;const pe=as(P);for(ot(B.beforeSanitizeShadowDOM,P,null);ue=pe.nextNode();)ot(B.uponSanitizeShadowNode,ue,null),ja(ue),zl(ue),ue.content instanceof u&&_e(ue.content);ot(B.afterSanitizeShadowDOM,P,null)};return r.sanitize=function(_e){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=null,pe=null,Ze=null,ft=null;if(Er=!_e,Er&&(_e="<!-->"),typeof _e!="string"&&!jt(_e))if(typeof _e.toString=="function"){if(_e=_e.toString(),typeof _e!="string")throw il("dirty is not a string, aborting")}else throw il("toString is not a function");if(!r.isSupported)return _e;if(Ve||Wi(P),r.removed=[],typeof _e=="string"&&(kn=!1),kn){if(_e.nodeName){const Hn=lt(_e.nodeName);if(!A[Hn]||de[Hn])throw il("root node is forbidden and cannot be sanitized in-place")}}else if(_e instanceof p)ue=ns("<!---->"),pe=ue.ownerDocument.importNode(_e,!0),pe.nodeType===ll.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?ue=pe:ue.appendChild(pe);else{if(!We&&!he&&!He&&_e.indexOf("<")===-1)return R&&st?R.createHTML(_e):_e;if(ue=ns(_e),!ue)return We?null:st?z:""}ue&&nt&&ln(ue.firstChild);const Me=as(kn?_e:ue);for(;Ze=Me.nextNode();)ja(Ze),zl(Ze),Ze.content instanceof u&&Pl(Ze.content);if(kn)return _e;if(We){if(dt)for(ft=I.call(ue.ownerDocument);ue.firstChild;)ft.appendChild(ue.firstChild);else ft=ue;return(X.shadowroot||X.shadowrootmode)&&(ft=L.call(s,ft,!0)),ft}let zt=He?ue.outerHTML:ue.innerHTML;return He&&A["!doctype"]&&ue.ownerDocument&&ue.ownerDocument.doctype&&ue.ownerDocument.doctype.name&&Qt($2,ue.ownerDocument.doctype.name)&&(zt="<!DOCTYPE "+ue.ownerDocument.doctype.name+`> 64`+zt),he&&pc([Q,K,D],Hn=>{zt=rl(zt,Hn," ")}),R&&st?R.createHTML(zt):zt},r.setConfig=function(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wi(_e),Ve=!0},r.clearConfig=function(){na=null,Ve=!1},r.isValidAttribute=function(_e,P,ue){na||Wi({});const pe=lt(_e),Ze=lt(P);return ai(pe,Ze,ue)},r.addHook=function(_e,P){typeof P=="function"&&al(B[_e],P)},r.removeHook=function(_e,P){if(P!==void 0){const ue=Cw(B[_e],P);return ue===-1?void 0:Rw(B[_e],ue,1)[0]}return hv(B[_e])},r.removeHooks=function(_e){B[_e]=[]},r.removeAllHooks=function(){B=bv()},r}var Pf=B2();const Gw=new Set(["www.youtube.com","youtube.com","youtu.be","www.youtube-nocookie.com","youtube-nocookie.com","player.vimeo.com","vimeo.com","w.soundcloud.com","bandcamp.com"]);function Yw(t){if(!t)return!1;try{const r=new URL(t);return r.protocol!=="https:"?!1:Gw.has(r.hostname)}catch{return!1}}function Qw(t){Pf.addHook("uponSanitizeElement",(r,i)=>{if(i.tagName!=="iframe")return;const s=r.getAttribute?.("src")??null;Yw(s)||r.remove?.()});try{return Pf.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["style","allow","allowfullscreen","src","target"]})}finally{Pf.removeHook("uponSanitizeElement")}}function _v({backgroundImage:t,captionPosition:r,imageCaption:i,showPhotoCredit:s,photographerName:c,imageError:u,isFallbackImage:f,imageFill:p}){const m=s&&c?`Photo credit - ${c}`:i,g={backgroundImage:t?`url('${Sr(Jt(t))}')`:"none"};return p==="cover"?(g.backgroundSize="cover",g.backgroundRepeat="no-repeat"):p==="contain"&&(g.backgroundSize="contain",g.backgroundRepeat="no-repeat"),o.jsxs("div",{className:"cr-card__image-wrapper",children:[o.jsx("div",{className:`cr-card__image ${u?"cr-card__image--error":""} ${f?"cr-card__image--fallback":""}`,style:g,children:r==="overlay"&&s&&m&&o.jsx("div",{className:"cr-card__image-caption cr-card__image-caption--overlay",children:m})}),r==="bottom"&&s&&m&&o.jsx("div",{className:"cr-card__image-caption",children:m})]})}function Kw(t){let r=t;r=r.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>");const s=r.split(` 65 66`).map(c=>{const u=c.split(` 67`);return u.every(p=>p.trim()===""||/^\d+\.\s/.test(p))&&u.some(p=>/^\d+\.\s/.test(p))?`<ol>${u.filter(m=>/^\d+\.\s/.test(m)).map(m=>`<li>${m.replace(/^\d+\.\s/,"")}</li>`).join("")}</ol>`:c.trim()?`<p>${c}</p>`:""}).filter(c=>c!=="");return Qw(s.join(""))}function Xw(t){const{componentClasses:r,imageError:i,isFallbackImage:s,handleClick:c,handleKeyDown:u,onClick:f,title:p,eyebrow:m,preheader:g,titleTag:v,titleSize:y,bannerHeight:S,textLayout:w,bannerBackgroun
67dColor:E,showName:b,scheduleInfo:j,bannerButtonText:N,shareButtonText:C,bannerButtonVariant:M,bannerButtonIcon:R,ticketUrl:z,extraButton:V,shareUrl:k,shareThumbnailUrl:I,shareThumbnailShape:U,shareText:L,showTicketButton:B,showShareButton:Q,showEyebrow:K,showCardDetails:D,onBannerTicketClick:q,onBannerShareClick:O,isFavorite:Y,type:Z,authorBy:ee,eventDate:ne,tags:A,dateTime:F,venue:X,onVenueClick:ie,onTagClick:re,showMeta:de,metaContent:se,timeSlot:ge,imagePosition:be,imageFill:Ne,backgroundImage:Ee,captionPosition:me,showPhotoCredit:he,photographerName:Ae,imageCaption:He,excerpt:Ve,content:nt,contentNode:We,contentSummary:dt,footer:st}=t,mt=bt.useMemo(()=>o.jsxs("div",{className:"cr-card__article-header",children:[o.jsx(kl,{preheader:m||g||void 0,title:p,titleTag:v,titleSize:y,height:S,textLayout:w,backgroundColor:E==="none"?"none":E,showPreheader:K,showTicketButton:B,showShareButton:Q,extraButton:V,ticketButtonText:N,shareButtonText:C,ticketButtonVariant:M,ticketButtonIcon:R,ticketUrl:z,shareUrl:k,shareThumbnailUrl:I,shareThumbnailShape:U,shareText:L,onTicketClick:q,onShareClick:O,isFavorite:Y}),(b||j)&&o.jsxs("div",{className:"cr-card__dj-meta",children:[b&&o.jsx("div",{className:"cr-card__show-name",children:b}),j&&o.jsx("div",{className:"cr-card__schedule-info",children:j})]})]}),[m,g,p,v,y,S,w,E,b,j,N,C,M,R,z,k,I,U,L,B,Q,K,q,O,Y]),Ht=bt.useMemo(()=>o.jsxs("div",{className:"cr-card__meta-info",children:[o.jsx("div",{className:"cr-card__meta-content",children:se}),o.jsx("div",{className:"cr-card__time-slot",children:ge})]}),[se,ge]),Dn={backgroundImage:Ee,captionPosition:me,imageCaption:He,showPhotoCredit:he,photographerName:Ae,imageError:i,isFallbackImage:s,imageFill:Ne};return o.jsxs("div",{className:r,onClick:c,onKeyDown:u,tabIndex:f?0:void 0,role:f?"button":void 0,"aria-label":f?`View ${p}`:void 0,children:[mt,D&&Z==="article"&&o.jsx(Hc,{type:"article",authorBy:ee,eventDate:ne,tags:A,showShareButton:!1,onTagClick:re}),D&&Z==="event"&&o.jsx(Hc,{type:"event",dateTime:F,venue:X,onVenueClick:ie,showShareButton:!1}),Z!=="dj"&&de&&Ht,o.jsxs("div",{className:"cr-card__article-content",children:[be==="full"&&o.jsx("div",{className:"cr-card__article-image-full",children:o.jsx(_v,{...Dn})}),o.jsxs("div",{className:"cr-card__article-text",children:[(be==="left"||be==="right")&&o.jsx("div",{className:`cr-card__article-image cr-card__article-image--${be}`,children:o.jsx(_v,{...Dn})}),Ve&&o.jsx("p",{className:"cr-card__content-excerpt",children:Jt(Ve)}),We&&o.jsx("div",{className:"cr-card__content-text",children:We}),!We&&nt&&o.jsx("div",{className:"cr-card__content-text",dangerouslySetInnerHTML:{__html:Kw(nt)}}),!Ve&&!We&&!nt&&o.jsx("p",{className:"cr-card__content-text",children:Jt(dt)})]})]}),st&&o.jsx("div",{className:"cr-card__footer",children:st})]})}function Jw(t){const{componentClasses:r,imageError:i,isFallbackImage:s,activeImageAspectRatio:c,handleClick:u,handleKeyDown:f,onClick:p,title:m,preheader:g,titleTag:v,titleSize:y,bannerHeight:S,textLayout:w,bannerBackgroundColor:E,backgroundImage:b,contentSummary:j,continueButtonText:N}=t;return o.jsxs("div",{className:r,onClick:u,onKeyDown:f,tabIndex:p?0:void 0,role:p?"button":void 0,"aria-label":p?`View ${m}`:void 0,children:[o.jsx("div",{className:"cr-card__small-banner",children:o.jsx(kl,{preheader:g,title:m,titleTag:v,titleSize:y,height:S,textLayout:w,backgroundColor:E,showTicketButton:!1,showShareButton:!1,className:"cr-card__small-banner-collapsed"})}),o.jsxs("div",{className:"cr-card__small-main",children:[o.jsx("div",{className:`cr-card__small-image cr-card__small-image--${c.replace(":","-")}`,children:o.jsx("div",{className:`cr-card__image ${i?"cr-card__image--error":""} ${s?"cr-card__image--fallback":""}`,style:{backgroundImage:b?`url('${Sr(Jt(b))}')`:"none"}})}),o.jsxs("div",{className:"cr-card__small-content",children:[o.jsx("p",{className:"cr-card__content-summary cr-card__content-summary--six-lines",children:Jt(j)}),o.jsx("div",{className:"cr-card__small-continue",children:o.jsx(xe,{size:"xsmall",variant:"text",color:"secondary",rightIcon:o.jsx(yl,{}),onClick:C=>{C?.stopPropagation(),p?.()},children:N})})]})]})]})}function Ww(t){const{componentClasses:r,imageError:i,isFallbackImage:s,activeImageAspectRatio:c,handleClick:u,handleKeyDown:f,onClick:p,title:m,preheader:g,titleTag:v,titleSize:y,bannerHeight:S,textLayout:w,bannerBackgroun
67dColor:E,shareButtonText:b,onBannerShareClick:j,shareThumbnailUrl:N,shareThumbnailShape:C,shareText:M,type:R,showMetaTop:z,authorBy:V,eventDate:k,dateTime:I,venue:U,onVenueClick:L,backgroundImage:B,contentSummary:Q,ageRestriction:K,onShareClick:D,tags:q,tagsWrapperRef:O,onTagClick:Y,extraButton:Z,showTicketButton:ee,ticketUrl:ne}=t,[A,F]=_.useState(!1),X=_.useRef(null),ie=t.shareUrl||window.location.href;return o.jsxs("div",{className:r,onClick:u,onKeyDown:f,tabIndex:p?0:void 0,role:p?"button":void 0,"aria-label":p?`View ${m}`:void 0,children:[o.jsx("div",{className:"cr-card__narrow-banner",children:o.jsx(kl,{preheader:g,title:m,titleTag:v,titleSize:y,height:S,textLayout:w,backgroundColor:E,showTicketButton:ee,ticketUrl:ne,showShareButton:R==="article"&&!z,shareButtonText:b,shareThumbnailUrl:N,shareThumbnailShape:C,shareText:M,onShareClick:j})}),R==="article"&&z?o.jsx("div",{className:"cr-card__narrow-date-location",children:o.jsxs("div",{className:"cr-card__narrow-date-location-content",children:[o.jsx("div",{className:"cr-card__narrow-datetime",children:o.jsx("span",{className:"cr-card__narrow-text",children:V})}),o.jsx("div",{className:"cr-card__narrow-datetime",children:o.jsx("span",{className:"cr-card__narrow-text",children:k})})]})}):R!=="article"?o.jsx("div",{className:"cr-card__narrow-date-location",children:o.jsxs("div",{className:"cr-card__narrow-date-location-content",children:[o.jsxs("div",{className:"cr-card__narrow-datetime",children:[o.jsx(Cl,{className:"cr-card__narrow-icon"}),o.jsx("span",{className:"cr-card__narrow-text",children:I})]}),o.jsxs("button",{type:"button",className:"cr-card__narrow-venue",onClick:()=>L?.(),children:[o.jsx(vh,{className:"cr-card__narrow-icon"}),o.jsx("span",{className:"cr-card__narrow-venue-text",children:U})]})]})}):null,o.jsx("div",{className:`cr-card__narrow-image cr-card__narrow-image--${c.replace(":","-")}`,children:o.jsx("div",{className:`cr-card__image ${i?"cr-card__image--error":""} ${s?"cr-card__image--fallback":""}`,style:{backgroundImage:B?`url('${Sr(Jt(B))}')`:"none"}})}),o.jsx("div",{className:"cr-card__narrow-content",children:o.jsx("p",{className:"cr-card__content-summary cr-card__content-summary--unclamped",children:Jt(Q)})}),o.jsx("div",{className:"cr-card__narrow-age-share",children:o.jsx("div",{className:"cr-card__narrow-age-share-content",children:R==="article"?o.jsxs(o.Fragment,{children:[!z&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"cr-card__narrow-datetime",children:o.jsx("span",{className:"cr-card__narrow-text",children:V})}),o.jsx("div",{className:"cr-card__narrow-datetime",children:o.jsx("span",{className:"cr-card__narrow-text",children:k})})]}),q&&q.length>0&&o.jsx("div",{className:"cr-card__tags-wrapper",onClick:re=>re.stopPropagation(),ref:O,children:o.jsx("div",{className:"cr-card__tags-scroll-container",children:q.map((re,de)=>{const se=re;return o.jsx(en,{variant:"secondary",size:"medium",onClick:Y?ge=>{ge.stopPropagation(),Y(se)}:void 0,children:se},de)})})}),z&&o.jsxs("div",{className:"cr-share-popover-anchor",ref:X,children:[o.jsx(xe,{size:"small",variant:"outline",color:"secondary",leftIcon:o.jsx(bl,{}),onClick:re=>{re?.stopPropagation(),D?D(re):F(!0)},children:b}),o.jsx(Uc,{title:m||"",subtitle:g,thumbnailUrl:N,thumbnailShape:C,url:ie,shareText:M,isOpen:A,onClose:()=>F(!1),anchorRef:X})]})]}):o.jsxs(o.Fragment,{children:[K&&o.jsx(en,{variant:"secondary",size:"large",children:typeof K=="string"?K:K.age}),Z&&o.jsx(xe,{size:"small",variant:Z.variant??"outline",color:Z.color??"secondary",leftIcon:Z.icon,"aria-label":Z.ariaLabel,onClick:re=>{re?.stopPropagation(),Z.onClick()},children:Z.text}),o.jsxs("div",{className:"cr-share-popover-anchor",ref:X,children:[o.jsx(xe,{size:"small",variant:"outline",color:"secondary",leftIcon:o.jsx(bl,{}),onClick:re=>{re?.stopPropagation(),D?D(re):F(!0)},children:b}),o.jsx(Uc,{title:m||"",subtitle:g,thumbnailUrl:N,thumbnailShape:C,url:ie,shareText:M,isOpen:A,onClose:()=>F(!1),anchorRef:X})]})]})})})]})}function ej(t){const{componentClasses:r,activeImageAspectRatio:i,handleClick:s,handleKeyDown:c,onClick:u,title:f,preheader:p,titleTag:m,titleSize:g,bannerHeight:v,textLayout:y,bannerBackgroun
67dColor:S,showShareButton:w,shareButtonText:E,onBannerShareClick:b,shareThumbnailUrl:j,shareThumbnailShape:N,shareText:C,backgroundImage:M,contentSummary:R,type:z,dateTime:V,venue:k,ageRestriction:I,authorBy:U,eventDate:L,tags:B,onVenueClick:Q,onShareClick:K,onTagClick:D,showTicketButton:q=!1,ticketUrl:O,extraButton:Y,bannerButtonText:Z,bannerButtonVariant:ee,bannerButtonIcon:ne,onBannerTicketClick:A}=t;return o.jsxs("div",{className:r,onClick:s,onKeyDown:c,tabIndex:u?0:void 0,role:u?"button":void 0,"aria-label":u?`View ${f}`:void 0,children:[o.jsx("div",{className:"cr-card__top-banner",children:o.jsx(kl,{preheader:p,title:f,titleTag:m,titleSize:g,height:v,textLayout:y,backgroundColor:S,showTicketButton:q,ticketUrl:O,extraButton:Y,ticketButtonText:Z,ticketButtonVariant:ee,ticketButtonIcon:ne,onTicketClick:A,showShareButton:w,shareButtonText:E,shareThumbnailUrl:j,shareThumbnailShape:N,shareText:C,onShareClick:b})}),o.jsxs("div",{className:"cr-card__main-section",children:[o.jsx("div",{className:"cr-card__wide-image-wrapper",children:o.jsx("div",{className:`cr-card__wide-image cr-card__wide-image--${i.replace(":","-")}`,style:{backgroundImage:M?`url('${Sr(Jt(M))}')`:"none"}})}),o.jsx("div",{className:"cr-card__content-area",children:o.jsx("p",{className:"cr-card__content-summary cr-card__content-summary--unclamped",children:Jt(R)})})]}),o.jsx("div",{className:"cr-card__bottom-details",children:o.jsx(Hc,{type:z,device:"desktop",dateTime:V,venue:k,ageRestriction:I,authorBy:U,eventDate:L,tags:B,showShareButton:!1,onVenueClick:Q,onShareClick:K,onTagClick:D})})]})}function tj(t){const{componentClasses:r,imageError:i,isFallbackImage:s,handleClick:c,handleKeyDown:u,onClick:f,title:p,preheader:m,titleTag:g,titleSize:v,bannerHeight:y,textLayout:S,bannerButtonText:w,shareButtonText:E,showTicketButton:b,ticketUrl:j,showShareButton:N,extraButton:C,onBannerTicketClick:M,onBannerShareClick:R,shareThumbnailUrl:z,shareThumbnailShape:V,shareText:k,backgroundImage:I,contentSummary:U,type:L,dateTime:B,venue:Q,ageRestriction:K,authorBy:D,eventDate:q,tags:O,onVenueClick:Y,onShareClick:Z,onTagClick:ee}=t;return o.jsxs("div",{className:r,onClick:c,onKeyDown:u,tabIndex:f?0:void 0,role:f?"button":void 0,"aria-label":f?`View ${p}`:void 0,children:[o.jsx("div",{className:"cr-card__image-container",children:o.jsxs("div",{className:`cr-card__image ${i?"cr-card__image--error":""} ${s?"cr-card__image--fallback":""}`,style:{backgroundImage:I?`url('${Sr(Jt(I))}')`:"none"},children:[o.jsx("div",{className:"cr-card__details-overlay",children:o.jsx(Hc,{type:L,device:"desktop",dateTime:B,venue:Q,ageRestriction:K,authorBy:D,eventDate:q,tags:O,showShareButton:!1,onVenueClick:Y,onShareClick:Z,onTagClick:ee})}),o.jsx("div",{className:"cr-card__content-overlay",children:o.jsx("p",{className:"cr-card__content-summary",children:Jt(U)})})]})}),o.jsx("div",{className:"cr-card__banner",children:o.jsx(kl,{preheader:m,title:p,titleTag:g,titleSize:v,height:y,textLayout:S,backgroundColor:"none",showTicketButton:b,ticketUrl:j,showShareButton:N,extraButton:C,ticketButtonText:w,shareButtonText:E,shareThumbnailUrl:z,shareThumbnailShape:V,shareText:k,onTicketClick:M,onShareClick:R})})]})}const Sv=tt("CrCard");function nj(t){const[r,i]=_.useState(!1);return _.useEffect(()=>{if(!t){i(!1);return}const s=new Image;return s.onload=()=>{Sv.log("[CrCard] Image loaded successfully:",t),i(!1)},s.onerror=c=>{Sv.error("[CrCard] Image failed to load:",t,c),i(!0)},s.src=t,()=>{s.onload=null,s.onerror=null}},[t]),r}function xv({backgroundImage:t="/images/fallback-art/fallback-art-01.webp",imageCaption:r="",showPhotoCredit:i=!1,photographerName:s,dateTime:c="",venue:u,ageRestriction:f,contentSummary:p="",excerpt:m,content:g,contentNode:v,metaContent:y="",timeSlot:S="",showMeta:w=!1,showMetaTop:E=!1,authorBy:b="",eventDate:j="",tags:N=[],eyebrow:C,preheader:M,title:R="",titleTag:z="h2",titleSize:V="md",showName:k,scheduleInfo:I,bannerButtonText:U="Buy Tix",shareButtonText:L="Share",continueButtonText:B="Continue Reading",bannerButtonVariant:Q="outline",bannerButtonIcon:K,ticketUrl:D,extraButton:q,shareUrl:O,shareThumbnailUrl:Y,shareThumbnailShape:Z,shareText:ee,showShareButton:ne=!0,showTicketButton:A=!0,showCardDetail
67s:F=!0,showEyebrow:X=!0,onBannerTicketClick:ie,onBannerShareClick:re,onVenueClick:de,onShareClick:se,onTagClick:ge,onClick:be,variant:Ne="default",imagePosition:Ee="none",imageFill:me,imageSize:he="large",captionPosition:Ae="bottom",imageAspectRatio:He="16:9",articleImageAspectRatio:Ve="16:9",type:nt="event",bannerHeight:We="narrow",textLayout:dt="inline",bannerBackgroundColor:st="textured",className:mt="",isFavorite:Ht=!1,footer:Dn}){const pt=H2(Ne==="narrow"&&nt==="article"&&N&&N.length>0,".cr-card__tags-scroll-container"),kn=nj(t),bn=t?.startsWith("/images/fallback-art/")??!1,xt=Ne==="article"?Ve:Ne==="small"?"1:1":He,_n=()=>{be&&be()},ma=sn=>{sn.target===sn.currentTarget&&(sn.key==="Enter"||sn.key===" ")&&(sn.preventDefault(),_n())},Zt={componentClasses:bt.useMemo(()=>["cr-card",`cr-card--${Ne}`,Ne==="article"&&`cr-card--article-${Ee}`,Ne==="article"&&`cr-card--article-${he}`,`cr-card--${xt.replace(":","-")}`,be&&"cr-card--clickable",mt].filter(Boolean).join(" "),[Ne,Ee,he,xt,be,mt]),imageError:kn,isFallbackImage:bn,activeImageAspectRatio:xt,handleClick:_n,handleKeyDown:ma,backgroundImage:t,imageCaption:r,showPhotoCredit:i,photographerName:s,dateTime:c,venue:u,ageRestriction:f,contentSummary:p,excerpt:m,content:g,contentNode:v,metaContent:y,timeSlot:S,showMeta:w,showMetaTop:E,authorBy:b,eventDate:j,tags:N,eyebrow:C,preheader:M,title:R,titleTag:z,titleSize:V,showName:k,scheduleInfo:I,bannerButtonText:U,shareButtonText:L,continueButtonText:B,bannerButtonVariant:Q,bannerButtonIcon:K,ticketUrl:D,extraButton:q,shareUrl:O,shareThumbnailUrl:Y,shareThumbnailShape:Z,shareText:ee,onBannerTicketClick:ie,onBannerShareClick:re,onVenueClick:de,onShareClick:se,onTagClick:ge,onClick:be,imagePosition:Ee,imageFill:me,imageSize:he,captionPosition:Ae,type:nt,bannerHeight:We,textLayout:dt,bannerBackgroundColor:st,showTicketButton:A,showShareButton:ne,showCardDetails:F,showEyebrow:X,isFavorite:Ht,tagsWrapperRef:pt,footer:Dn};switch(Ne){case"article":return o.jsx(Xw,{...Zt});case"small":return o.jsx(Jw,{...Zt});case"narrow":return o.jsx(Ww,{...Zt});case"wide":return o.jsx(ej,{...Zt});default:return o.jsx(tj,{...Zt})}}function aj(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ev(t){return aj(t)||Array.isArray(t)}function rj(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Kh(t,r){const i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),u=JSON.stringify(Object.keys(r.breakpoints||{}));return c!==u?!1:i.every(f=>{const p=t[f],m=r[f];return typeof p=="function"?`${p}`==`${m}`:!Ev(p)||!Ev(m)?p===m:Kh(p,m)})}function wv(t){return t.concat().sort((r,i)=>r.name>i.name?1:-1).map(r=>r.options)}function ij(t,r){if(t.length!==r.length)return!1;const i=wv(t),s=wv(r);return i.every((c,u)=>{const f=s[u];return Kh(c,f)})}function Xh(t){return typeof t=="number"}function uh(t){return typeof t=="string"}function Yc(t){return typeof t=="boolean"}function jv(t){return Object.prototype.toString.call(t)==="[object Object]"}function ht(t){return Math.abs(t)}function Jh(t){return Math.sign(t)}function vl(t,r){return ht(t-r)}function sj(t,r){if(t===0||r===0||ht(t)<=ht(r))return 0;const i=vl(ht(t),ht(r));return ht(i/t)}function lj(t){return Math.round(t*100)/100}function wl(t){return jl(t).map(Number)}function ha(t){return t[Il(t)]}function Il(t){return Math.max(0,t.length-1)}function Wh(t,r){return r===Il(t)}function Av(t,r=0){return Array.from(Array(t),(i,s)=>r+s)}function jl(t){return Object.keys(t)}function q2(t,r){return[t,r].reduce((i,s)=>(jl(s).forEach(c=>{const u=i[c],f=s[c],p=jv(u)&&jv(f);i[c]=p?q2(u,f):f}),i),{})}function dh(t,r){return typeof r.MouseEvent<"u"&&t instanceof r.MouseEvent}function oj(t,r){const i={start:s,center:c,end:u};function s(){return 0}function c(m){return u(m)/2}function u(m){return r-m}function f(m,g){return uh(t)?i[t](m):t(r,m,g)}return{measure:f}}function Al(){let t=[];function r(c,u,f,p={passive:!0}){let m;if("addEventListener"in c)c.addEventListener(u,f,p),m=()=>c.removeEventListener(u,f,p);else{const g=c;g.addListener(f),m=()=>g.removeListener(f)}return t.push(m),s}function i(){t=t.filter(c=>c())}const s={add:r,clear:i};return s}function cj(t,r,i,s){const c=Al(),u=1e3/60;let f=null,p=0,m=0;function g(){c.add(t,"visibilitychange",()=>{t.hidden&&E()})}function v(){w(),c.clear()}function y(j){if(!m)return;f||(f=j,i(),i());const N=j-f;
vendor: 15,441 bytes, line 67
67for(f=j,p+=N;p>=u;)i(),p-=u;const C=p/u;s(C),m&&(m=r.requestAnimationFrame(y))}function S(){m||(m=r.requestAnimationFrame(y))}function w(){r.cancelAnimationFrame(m),f=null,p=0,m=0}function E(){f=null,p=0}return{init:g,destroy:v,start:S,stop:w,update:i,render:s}}function uj(t,r){const i=r==="rtl",s=t==="y",c=s?"y":"x",u=s?"x":"y",f=!s&&i?-1:1,p=v(),m=y();function g(E){const{height:b,width:j}=E;return s?b:j}function v(){return s?"top":i?"right":"left"}function y(){return s?"bottom":i?"left":"right"}function S(E){return E*f}return{scroll:c,cross:u,startEdge:p,endEdge:m,measureSize:g,direction:S}}function Kr(t=0,r=0){const i=ht(t-r);function s(g){return g<t}function c(g){return g>r}function u(g){return s(g)||c(g)}function f(g){return u(g)?s(g)?t:r:g}function p(g){return i?g-i*Math.ceil((g-r)/i):g}return{length:i,max:r,min:t,constrain:f,reachedAny:u,reachedMax:c,reachedMin:s,removeOffset:p}}function F2(t,r,i){const{constrain:s}=Kr(0,t),c=t+1;let u=f(r);function f(S){return i?ht((c+S)%c):s(S)}function p(){return u}function m(S){return u=f(S),y}function g(S){return v().set(p()+S)}function v(){return F2(t,p(),i)}const y={get:p,set:m,add:g,clone:v};return y}function dj(t,r,i,s,c,u,f,p,m,g,v,y,S,w,E,b,j,N,C){const{cross:M,direction:R}=t,z=["INPUT","SELECT","TEXTAREA"],V={passive:!1},k=Al(),I=Al(),U=Kr(50,225).constrain(w.measure(20)),L={mouse:300,touch:400},B={mouse:500,touch:600},Q=E?43:25;let K=!1,D=0,q=0,O=!1,Y=!1,Z=!1,ee=!1;function ne(me){if(!C)return;function he(He){(Yc(C)||C(me,He))&&de(He)}const Ae=r;k.add(Ae,"dragstart",He=>He.preventDefault(),V).add(Ae,"touchmove",()=>{},V).add(Ae,"touchend",()=>{}).add(Ae,"touchstart",he).add(Ae,"mousedown",he).add(Ae,"touchcancel",ge).add(Ae,"contextmenu",ge).add(Ae,"click",be,!0)}function A(){k.clear(),I.clear()}function F(){const me=ee?i:r;I.add(me,"touchmove",se,V).add(me,"touchend",ge).add(me,"mousemove",se,V).add(me,"mouseup",ge)}function X(me){const he=me.nodeName||"";return z.includes(he)}function ie(){return(E?B:L)[ee?"mouse":"touch"]}function re(me,he){const Ae=y.add(Jh(me)*-1),He=v.byDistance(me,!E).distance;return E||ht(me)<U?He:j&&he?He*.5:v.byIndex(Ae.get(),0).distance}function de(me){const he=dh(me,s);ee=he,Z=E&&he&&!me.buttons&&K,K=vl(c.get(),f.get())>=2,!(he&&me.button!==0)&&(X(me.target)||(O=!0,u.pointerDown(me),g.useFriction(0).useDuration(0),c.set(f),F(),D=u.readPoint(me),q=u.readPoint(me,M),S.emit("pointerDown")))}function se(me){if(!dh(me,s)&&me.touches.length>=2)return ge(me);const Ae=u.readPoint(me),He=u.readPoint(me,M),Ve=vl(Ae,D),nt=vl(He,q);if(!Y&&!ee&&(!me.cancelable||(Y=Ve>nt,!Y)))return ge(me);const We=u.pointerMove(me);Ve>b&&(Z=!0),g.useFriction(.3).useDuration(.75),p.start(),c.add(R(We)),me.preventDefault()}function ge(me){const Ae=v.byDistance(0,!1).index!==y.get(),He=u.pointerUp(me)*ie(),Ve=re(R(He),Ae),nt=sj(He,Ve),We=Q-10*nt,dt=N+nt/50;Y=!1,O=!1,I.clear(),g.useDuration(We).useFriction(dt),m.distance(Ve,!E),ee=!1,S.emit("pointerUp")}function be(me){Z&&(me.stopPropagation(),me.preventDefault(),Z=!1)}function Ne(){return O}return{init:ne,destroy:A,pointerDown:Ne}}function fj(t,r){let s,c;function u(y){return y.timeStamp}function f(y,S){const E=`client${(S||t.scroll)==="x"?"X":"Y"}`;return(dh(y,r)?y:y.touches[0])[E]}function p(y){return s=y,c=y,f(y)}function m(y){const S=f(y)-f(c),w=u(y)-u(s)>170;return c=y,w&&(s=y),S}function g(y){if(!s||!c)return 0;const S=f(c)-f(s),w=u(y)-u(s),E=u(y)-u(c)>170,b=S/w;return w&&!E&&ht(b)>.1?b:0}return{pointerDown:p,pointerMove:m,pointerUp:g,readPoint:f}}function hj(){function t(i){const{offsetTop:s,offsetLeft:c,offsetWidth:u,offsetHeight:f}=i;return{top:s,right:c+u,bottom:s+f,left:c,width:u,height:f}}return{measure:t}}function mj(t){function r(s){return t*(s/100)}return{measure:r}}function pj(t,r,i,s,c,u,f){const p=[t].concat(s);let m,g,v=[],y=!1;function S(j){return c.measureSize(f.measure(j))}function w(j){if(!u)return;g=S(t),v=s.map(S);function N(C){for(const M of C){if(y)return;const R=M.target===t,z=s.indexOf(M.target),V=R?g:v[z],k=S(R?t:s[z]);if(ht(k-V)>=.5){j.reInit(),r.emit("resize");break}}}m=new ResizeObserver(C=>{(Yc(u)||u(j,C))&&N(C)}),i.requestAnimationFrame(()=>{p.forEach(C=>m.observe(C))})}function E(){y=!0,m&&m.disconnect()}return{init:w,destroy:E}}function gj(t,r,i,s,c,u){let f=0,p=0,m=c,g=u,v=t.get(),y=0;function S(){const V=s.get()-t.get(),k=!m;let I=0;return k?(f=0,i.set(s),t.set(s),I=V):(i.set(t),f+=V/m,f*=g,v+=f,t.add(f),I=v-y),p=Jh(I),y=v,z}function w(){const V=s.get()-r.get();return ht(V)<.001}function E(){return m}function b(){return p}function j(){return f}function N(){return M(c)}function C(){return R(u)}function M(V){return m=V,z}function R(V){return g=V,z}const z={direction:b,duration:E,velocity:j,seek:S,settled:w,useBaseFriction:C,useBaseDuration:N,useFriction:R,useDuration:M};return z}function vj(t,r,i,s,c){const u=c.measure(10),f=c.measure(50),p=Kr(.1,.99);let m=!1;function g(){return!(m||!t.reachedAny(i.get())||!t.reachedAny(r.get()))}function v(w){if(!g())return;const E=t.reachedMin(r.get())?"min":"max",b=ht(t[E]-r.get()),j=i.get()-r.get(),N=p.constrain(b/f);i.subtract(j*N),!w&&ht(j)<u&&(i.set(t.constrain(i.get())),s.useDuration(25).useBaseFriction())}function y(w){m=!w}return{shouldConstrain:g,constrain:v,toggleActive:y}}function yj(t,r,i,s,c){const u=Kr(-r+t,0),f=y(),p=v(),m=S();function g(E,b){return vl(E,b)<=1}function v(){const E=f[0],b=ha(f),j=f.lastIndexOf(E),N=f.indexOf(b)+1;return Kr(j,N)}function y(){return i.map((E,b)=>{const{min:j,max:N}=u,C=u.constrain(E),M=!b,R=Wh(i,b);return M?N:R||g(j,C)?j:g(N,C)?N:C}).map(E=>parseFloat(E.toFixed(3)))}function S(){if(r<=t+c)return[u.max];if(s==="keepSnaps")return f;const{min:E,max:b}=p;return f.slice(E,b)}return{snapsContained:m,scrollContainLimit:p}}function bj(t,r,i){const s=r[0],c=i?s-t:ha(r);return{limit:Kr(c,s)}}function _j(t,r,i,s){const u=r.min+.1,f=r.max+.1,{reachedMin:p,reachedMax:m}=Kr(u,f);function g(S){return S===1?m(i.get()):S===-1?p(i.get()):!1}function v(S){if(!g(S))return;const w=t*(S*-1);s.forEach(E=>E.add(w))}return{loop:v}}function Sj(t){const{max:r,length:i}=t;function s(u){const f=u-r;return i?f/-i:0}return{get:s}}function xj(t,r,i,s,c){const{startEdge:u,endEdge:f}=t,{groupSlides:p}=c,m=y().map(r.measure),g=S(),v=w();function y(){return p(s).map(b=>ha(b)[f]-b[0][u]).map(ht)}function S(){return s.map(b=>i[u]-b[u]).map(b=>-ht(b))}function w(){return p(g).map(b=>b[0]).map((b,j)=>b+m[j])}return{snaps:g,snapsAligned:v}}function Ej(t,r,i,s,c,u){const{groupSlides:f}=c,{min:p,max:m}=s,g=v();function v(){const S=f(u),w=!t||r==="keepSnaps";return i.length===1?[u]:w?S:S.slice(p,m).map((E,b,j)=>{const N=!b,C=Wh(j,b);if(N){const M=ha(j[0])+1;return Av(M)}if(C){const M=Il(u)-ha(j)[0]+1;return Av(M,ha(j)[0])}return E})}return{slideRegistry:g}}function wj(t,r,i,s,c){const{reachedAny:u,removeOffset:f,constrain:p}=s;function m(E){return E.concat().sort((b,j)=>ht(b)-ht(j))[0]}function g(E){const b=t?f(E):p(E),j=r.map((C,M)=>({diff:v(C-b,0),index:M})).sort((C,M)=>ht(C.diff)-ht(M.diff)),{index:N}=j[0];return{index:N,distance:b}}function v(E,b){const j=[E,E+i,E-i];if(!t)return E;if(!b)return m(j);const N=j.filter(C=>Jh(C)===b);return N.length?m(N):ha(j)-i}function y(E,b){const j=r[E]-c.get(),N=v(j,b);return{index:E,distance:N}}function S(E,b){const j=c.get()+E,{index:N,distance:C}=g(j),M=!t&&u(j);if(!b||M)return{index:N,distance:E};const R=r[N]-C,z=E+v(R,0);return{index:N,distance:z}}return{byDistance:S,byIndex:y,shortcut:v}}function jj(t,r,i,s,c,u,f){function p(y){const S=y.distance,w=y.index!==r.get();u.add(S),S&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),w&&(i.set(r.get()),r.set(y.index),f.emit("select"))}function m(y,S){const w=c.byDistance(y,S);p(w)}function g(y,S){const w=r.clone().set(y),E=c.byIndex(w.get(),S);p(E)}return{distance:m,index:g}}function Aj(t,r,i,s,c,u,f,p){const m={passive:!0,capture:!0};let g=0;function v(w){if(!p)return;function E(b){if(new Date().getTime()-g>10)return;f.emit("slideFocusStart"),t.scrollLeft=0;const C=i.findIndex(M=>M.includes(b));Xh(C)&&(c.useDuration(0),s.index(C,0),f.emit("slideFocus"))}u.add(document,"keydown",y,!1),r.forEach((b,j)=>{u.add(b,"focus",N=>{(Yc(p)||p(w,N))&&E(j)},m)})}function y(w){w.code==="Tab"&&(g=new Date().getTime())}return{init:v}}function cl(t){let r=t;function i(){return r}function s(m){r=f(m)}function c(m){r+=f(m)}function u(m){r-=f(m)}function f(m){return Xh(m)?m:m.get()}return{get:i,set:s,add:c,subtract:u}}function V2(t,r){const i=t.scroll==="x"?f:p,s=r.style;let c=null,u=!1;function f(S){return`translate3d(${S}px,0px,0px)`}function p(S){return`translate3d(0px,${S}px,0px)`}function m(S){if(u)return;const w=lj(t.direction(S));w!==c&&(s.transform=i(w),c=w)}function g(S){u=!S}function v(){u||(s.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:m,toggleActive:g}}function Tj(t,r,i,s,c,u,f,p,m){const v=wl(c),y=wl(c).reverse(),S=N().concat(C());function w(k,I){return k.reduce((U,L)=>U-c[L],I)}function E(k,I){return k.reduce((U,L)=>w(U,I)>0?U.concat([L]):U,[])}function b(k){return u.map((I,U)=>({start:I-s[U]+.5+k,end:I+r-.5+k}))}function j(k,I,U){const L=b(I);return k.map(B=>{const Q=U?0:-i,K=U?i:0,D=U?"end":"start",q=L[B][D];return{index:B,loopPoint:q,slideLocation:cl(-1),translate:V2(t,m[B]),target:()=>p.get()>q?Q:K}})}function N(){const k=f[0],I=E(y,k);return j(I,i,!1)}function C(){const k=r-f[0]-1,I=E(v,k);return j(I,-i,!0)}function M(){return S.every(({index:k})=>{const I=v.filter(U=>U!==k);return w(I,r)<=.1})}function R(){S.forEach(k=>{const{target:I,translate:U,slideLocation:L}=k,B=I();B!==L.get()&&(U.to(B),L.set(B))})}function z(){S.forEach(k=>k.translate.clear())}return{canLoop:M,clear:z,loop:R,loopPoints:S}}function Nj(t,r,i){let s,c=!1;function u(m){if(!i)return;function g(v){for(const y of v)if(y.type==="childList"){m.reInit(),r.emit("slidesChanged");break}}s=new MutationObserver(v=>{c||(Yc(i)||i(m,v))&&g(v)}),s.observe(t,{childList:!0})}function f(){s&&s.disconnect(),c=!0}return{init:u,destroy:f}}function Cj(t,r,i,s){const c={};let u=null,f=null,p,m=!1;function g(){p=new IntersectionObserver(E=>{m||(E.forEach(b=>{const j=r.indexOf(b.target);c[j]=b}),u=null,f=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:s}),r.forEach(E=>p.observe(E))}function v(){p&&p.disconnect(),m=!0}function y(E){return jl(c).reduce((b,j)=>{const N=parseInt(j),{isIntersecting:C}=c[N];return(E&&C||!E&&!C)&&b.push(N),b},[])}function S(E=!0){if(E&&u)return u;if(!E&&f)return f;const b=y(E);return E&&(u=b),E||(f=b),b}return{init:g,destroy:v,get:S}}function Rj(t,r,i,s,c,u){const{measureSize:f,startEdge:p,endEdge:m}=t,g=i[0]&&c,v=E(),y=b(),S=i.map(f),w=j();function E(){if(!g)return 0;const C=i[0];return ht(r[p]-C[p])}function b(){if(!g)return 0;const C=u.getComputedStyle(ha(s));return parseFloat(C.getPropertyValue(`margin-${m}`))}function j(){return i.map((C,M,R)=>{const z=!M,V=Wh(R,M);return z?S[M]+v:V?S[M]+y:R[M+1][p]-C[p]}).map(ht)}return{slideSizes:S,slideSizesWithGaps:w,startGap:v,endGap:y}}function Lj(t,r,i,s,c,u,f,p,m){const{startEdge:g,endEdge:v,direction:y}=t,S=Xh(i);function w(N,C){return wl(N).filter(M=>M%C===0).map(M=>N.slice(M,M+C))}function E(N){return N.length?wl(N).reduce((C,M,R)=>{const z=ha(C)||0,V=z===0,k=M===Il(N),I=c[g]-u[z][g],U=c[g]-u[M][v],L=!s&&V?y(f):0,B=!s&&k?y(p):0,Q=ht(U-B-(I+L));return R&&Q>r+m&&C.push(M),k&&C.push(N.length),C},[]).map((C,M,R)=>{const z=Math.max(R[M-1]||0);return N.slice(z,C)}):[]}function b(N){return S?w(N,i):E(N)}return{groupSlides:b}}function Oj(t,r,i,s,c,u,f){const{align:p,axis:m,direction:g,startIndex:v,loop:y,duration:S,dragFree:w,dragThreshold:E,inViewThreshold:b,slidesToScroll:j,skipSnaps:N,containScroll:C,watchResize:M,watchSlides:R,watchDrag:z,watchFocus:V}=u,k=2,I=hj(),U=I.measure(r),L=i.map(I.measure),B=uj(m,g),Q=B.measureSize(U),K=mj(Q),D=oj(p,Q),q=!y&&!!C,O=y||!!C,{slideSizes:Y,slideSizesWithGaps:Z,startGap:ee,endGap:ne}=Rj(B,U,L,i,O,c),A=Lj(B,Q,j,y,U,L,ee,ne,k),{snaps:F,snapsAligned:X}=xj(B,D,U,L,A),ie=-ha(F)+ha(Z),{snapsContained:re,scrollContainLimit:de}=yj(Q,ie,X,C,k),se=q?re:X,{limit:ge}=bj(ie,se,y),be=F2(Il(se),v,y),Ne=be.clone(),Ee=wl(i),me=({dragHandler:Sn,scrollBody:Zt,scrollBounds:sn,options:{loop:Gt}})=>{Gt||sn.constrain(Sn.pointerDown()),Zt.seek()},he=({scrollBody:Sn,translate:Zt,location:sn,offsetLocation:Gt,previousLocation:Et,scrollLooper:wt,slideLooper:gt,dragHandler:Er,animation:wr,eventHandler:ni,scrollBounds:ta,options:{loop:In}},wa)=>{const Ft=Sn.settled(),Ga=!ta.shouldConstrain(),pa=In?Ft:Ft&&Ga,lt=pa&&!Er.pointerDown();lt&&wr.stop();const na=sn.get()*wa+Et.get()*(1-wa);Gt.set(na),In&&(wt.loop(Sn.direction()),gt.loop()),Zt.to(Gt.get()),lt&&ni.emit("settle"),pa||ni.emit("scroll")},Ae=cj(s,c,()=>me(ma),Sn=>he(ma,Sn)),He=.68,Ve=se[be.get()],nt=cl(Ve),We=cl(Ve),dt=cl(Ve),st=cl(Ve),mt=gj(nt,dt,We,st,S,He),Ht=wj(y,se,ie,ge,st),Dn=jj(Ae,be,Ne,mt,Ht,st,f),pt=Sj(ge),kn=Al(),bn=Cj(r,i,f,b),{slideRegistry:xt}=Ej(q,C,se,de,A,Ee),_n=Aj(t,i,xt,Dn,mt,kn,f,V),ma={ownerDocument:s,ownerWindow:c,eventHandler:f,containerRect:U,slideRects:L,animation:Ae,axis:B,dragHandler:dj(B,t,s,c,st,fj(B,c),nt,Ae,Dn,mt,Ht,be,f,K,w,E,N,He,z),eventStore:kn,percentOfView:K,index:be,indexPrevious:Ne,limit:ge,location:nt,offsetLocation:dt,previousLocation:We,options:u,resizeHandler:pj(r,f,c,i,B,M,I),scrollBody:mt,scrollBounds:vj(ge,dt,st,mt,K),scrollLooper:_j(ie,ge,dt,[nt,dt,We,st]),scrollProgress:pt,scrollSnapList:se.map(pt.get),scrollSnaps:se,scrollTarget:Ht,scrollTo:Dn,slideLooper:Tj(B,Q,ie,Y,Z,F,se,dt,i),slideFocus:_n,slidesHandler:Nj(r,f,R),slidesInView:bn,slideIndexes:Ee,slideRegistry:xt,slidesToScroll:A,target:st,translate:V2(B,r)};return ma}function Mj(){let t={},r;function i(g){r=g}function s(g){return t[g]||[]}function c(g){return s(g).forEach(v=>v(r,g)),m}function u(g,v){return t[g]=s(g).concat([v]),m}function f(g,v){return t[g]=s(g).filter(y=>y!==v),m}function p(){t={}}const m={init:i,emit:c,off:f,on:u,clear:p};return m}const Dj={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function kj(t){function r(u,f){return q2(u,f||{})}function i(u){const f=u.breakpoints||{},p=jl(f).filter(m=>t.matchMedia(m).matches).map(m=>f[m]).reduce((m,g)=>r(m,g),{});return r(u,p)}function s(u){return u.map(f=>jl(f.breakpoints||{})).reduce((f,p)=>f.concat(p),[]).map(t.matchMedia)}return{mergeOptions:r,optionsAtMedia:i,optionsMediaQueries:s}}function Ij(t){let r=[];function i(u,f){return r=f.filter(({options:p})=>t.optionsAtMedia(p).active!==!1),r.forEach(p=>p.init(u,t)),f.reduce((p,m)=>Object.assign(p,{[m.name]:m}),{})}function s(){r=r.filter(u=>u.destroy())}return{init:i,destroy:s}}function zc(t,r,i){const s=t.ownerDocument,c=s.defaultView,u=kj(c),f=Ij(u),p=Al(),m=Mj(),{mergeOptions:g,optionsAtMedia:v,optionsMediaQueries:y}=u,{on:S,off:w,emit:E}=m,b=B;let j=!1,N,C=g(Dj,zc.globalOptions),M=g(C),R=[],z,V,k;function I(){const{container:Ee,slides:me}=M;V=(uh(Ee)?t.querySelector(Ee):Ee)||t.children[0];const Ae=uh(me)?V.querySelectorAll(me):me;k=[].slice.call(Ae||V.children)}function U(Ee){const me=Oj(t,V,k,s,c,Ee,m);if(Ee.loop&&!me.slideLooper.canLoop()){const he=Object.assign({},Ee,{loop:!1});return U(he)}return me}function L(Ee,me){j||(C=g(C,Ee),M=v(C),R=me||R,I(),N=U(M),y([C,...R.map(({options:he})=>
vendor: 5,594 bytes, line 67
67he)]).forEach(he=>p.add(he,"change",B)),M.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(Ne),N.eventHandler.init(Ne),N.resizeHandler.init(Ne),N.slidesHandler.init(Ne),N.options.loop&&N.slideLooper.loop(),V.offsetParent&&k.length&&N.dragHandler.init(Ne),z=f.init(Ne,R)))}function B(Ee,me){const he=A();Q(),L(g({startIndex:he},Ee),me),m.emit("reInit")}function Q(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),f.destroy(),p.clear()}function K(){j||(j=!0,p.clear(),Q(),m.emit("destroy"),m.clear())}function D(Ee,me,he){!M.active||j||(N.scrollBody.useBaseFriction().useDuration(me===!0?0:M.duration),N.scrollTo.index(Ee,he||0))}function q(Ee){const me=N.index.add(1).get();D(me,Ee,-1)}function O(Ee){const me=N.index.add(-1).get();D(me,Ee,1)}function Y(){return N.index.add(1).get()!==A()}function Z(){return N.index.add(-1).get()!==A()}function ee(){return N.scrollSnapList}function ne(){return N.scrollProgress.get(N.offsetLocation.get())}function A(){return N.index.get()}function F(){return N.indexPrevious.get()}function X(){return N.slidesInView.get()}function ie(){return N.slidesInView.get(!1)}function re(){return z}function de(){return N}function se(){return t}function ge(){return V}function be(){return k}const Ne={canScrollNext:Y,canScrollPrev:Z,containerNode:ge,internalEngine:de,destroy:K,off:w,on:S,emit:E,plugins:re,previousScrollSnap:F,reInit:b,rootNode:se,scrollNext:q,scrollPrev:O,scrollProgress:ne,scrollSnapList:ee,scrollTo:D,selectedScrollSnap:A,slideNodes:be,slidesInView:X,slidesNotInView:ie};return L(r,i),setTimeout(()=>m.emit("init"),0),Ne}zc.globalOptions=void 0;function em(t={},r=[]){const i=_.useRef(t),s=_.useRef(r),[c,u]=_.useState(),[f,p]=_.useState(),m=_.useCallback(()=>{c&&c.reInit(i.current,s.current)},[c]);return _.useEffect(()=>{Kh(i.current,t)||(i.current=t,m())},[t,m]),_.useEffect(()=>{ij(s.current,r)||(s.current=r,m())},[r,m]),_.useEffect(()=>{if(rj()&&f){zc.globalOptions=em.globalOptions;const g=zc(f,i.current,s.current);return u(g),()=>g.destroy()}else u(void 0)},[f,u]),[p,c]}em.globalOptions=void 0;function Tv(t,r,i){return Math.min(Math.max(t,r),i)}function $f(t){return typeof t=="number"&&!isNaN(t)}function Z2(t={}){let c,u=[],f,p=0,m=0,g=0,v=!1,y,S;function w(D){c=D;const q=c.selectedScrollSnap(),{scrollBody:O,containerRect:Y,axis:Z}=c.internalEngine(),ee=Z.measureSize(Y);f=Tv(ee*.75,200,500),v=!1,u=c.scrollSnapList().map((ne,A)=>A===q?1:0),y=O.settled,S=c.scrollProgress,O.settled=B,c.scrollProgress=Q,c.on("select",C).on("slideFocus",b).on("pointerDown",N).on("pointerUp",j),R(),b()}function E(){const{scrollBody:D}=c.internalEngine();D.settled=y,c.scrollProgress=S,c.off("select",C).off("slideFocus",b).off("pointerDown",N).off("pointerUp",j),c.slideNodes().forEach(q=>{const O=q.style;O.opacity="",O.transform="",O.pointerEvents="",q.getAttribute("style")||q.removeAttribute("style")})}function b(){const D=c.selectedScrollSnap();V(D,1)}function j(){v=!1}function N(){v=!1,p=0,m=0}function C(){const D=c.internalEngine().scrollBody.duration();m=D?0:1,v=!0,D||b()}function M(D){const{axis:q}=c.internalEngine();return`translate${q.scroll.toUpperCase()}(${q.direction(D)}px)`}function R(){const{translate:D,slideLooper:q}=c.internalEngine();D.clear(),D.toggleActive(!1),q.loopPoints.forEach(({translate:O})=>{O.clear(),O.toggleActive(!1)})}function z(D){const{scrollSnaps:q,location:O,target:Y}=c.internalEngine();!$f(D)||u[D]<.5||(O.set(q[D]),Y.set(O))}function V(D,q){c.scrollSnapList().forEach((Y,Z)=>{const ee=Math.abs(q),ne=u[Z],A=Z===D,F=A?ne+ee:ne-ee,X=Tv(F,0,1);u[Z]=X;const ie=A&&v,re=c.previousScrollSnap();ie&&(u[re]=1-X),A&&I(D,X),k(Z)})}function k(D){const q=c.internalEngine().slideRegistry[D],{scrollSnaps:O,containerRect:Y}=c.internalEngine(),Z=u[D];q.forEach(ee=>{const ne=c.slideNodes()[ee].style,A=parseFloat(Z.toFixed(2)),F=A>0,X=F?O[D]:Y.width+2,ie=M(X);F&&(ne.transform=ie),ne.opacity=A.toString(),ne.pointerEvents=Z>.5?"auto":"none",F||(ne.transform=ie)})}function I(D,q){const{index:O,dragHandler:Y,scrollSnaps:Z}=c.internalEngine(),ee=Y.pointerDown(),ne=1/(Z.length-1);let A=D,F=ee?c.selectedScrollSnap():c.previousScrollSnap();if(ee&&A===F){const re=Math.sign(p)*-1;A=F,F=O.clone().set(F).add(re).get()}const X=F*ne,ie=(A-F)*ne;g=X+ie*q}function U(){const{dragHandler:D,index:q,scrollBody:O}=c.internalEngine(),Y=c.selectedScrollSnap();if(!D.pointerDown())return Y;const Z=Math.sign(O.velocity()),ee=Math.sign(p),ne=q.clone().set(Y).add(Z*-1).get();return!Z||!ee?null:ee===Z?ne:Y}function L(D){const{dragHandler:q,scrollBody:O}=D.internalEngine(),Y=q.pointerDown(),Z=O.velocity(),ee=O.duration(),ne=U(),A=!$f(ne);if(Y){if(!Z)return;p+=Z,m=Math.abs(Z/f),z(ne)}if(!Y){if(!ee||A)return;m+=(1-u[ne])/ee,m*=.68}A||V(ne,m)}function B(){const{target:D,location:q}=c.internalEngine(),O=D.get()-q.get(),Y=Math.abs(O)>=1,Z=U(),ee=!$f(Z);return L(c),ee||Y?!1:u[Z]>.999}function Q(){return g}return{name:"fade",options:t,init:w,destroy:E}}Z2.globalOptions=void 0;const Uj={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Hj(t,r){const i=t.scrollSnapList();return typeof r=="number"?i.map(()=>r):r(i,t)}function zj(t,r){const i=t.rootNode();return r&&r(i)||i}function tm(t={}){let r,i,s,c,u=null,f=0,p=!1,m=!1,g=!1,v=!1;function y(D,q){i=D;const{mergeOptions:O,optionsAtMedia:Y}=q,Z=O(Uj,tm.globalOptions),ee=O(Z,t);
67if(r=Y(ee),i.scrollSnapList().length<=1)return;v=r.jump,s=!1,c=Hj(i,r.delay);const{eventStore:ne,ownerDocument:A}=i.internalEngine(),F=!!i.internalEngine().options.watchDrag,X=zj(i,r.rootNode);ne.add(A,"visibilitychange",N),F&&i.on("pointerDown",M),F&&!r.stopOnInteraction&&i.on("pointerUp",R),r.stopOnMouseEnter&&ne.add(X,"mouseenter",z),r.stopOnMouseEnter&&!r.stopOnInteraction&&ne.add(X,"mouseleave",V),r.stopOnFocusIn&&i.on("slideFocusStart",j),r.stopOnFocusIn&&!r.stopOnInteraction&&ne.add(i.containerNode(),"focusout",b),r.playOnInit&&b()}function S(){i.off("pointerDown",M).off("pointerUp",R).off("slideFocusStart",j),j(),s=!0,p=!1}function w(){const{ownerWindow:D}=i.internalEngine();D.clearTimeout(f),f=D.setTimeout(B,c[i.selectedScrollSnap()]),u=new Date().getTime(),i.emit("autoplay:timerset")}function E(){const{ownerWindow:D}=i.internalEngine();D.clearTimeout(f),f=0,u=null,i.emit("autoplay:timerstopped")}function b(){if(!s){if(C()){g=!0;return}p||i.emit("autoplay:play"),w(),p=!0}}function j(){s||(p&&i.emit("autoplay:stop"),E(),p=!1)}function N(){if(C())return g=p,j();g&&b()}function C(){const{ownerDocument:D}=i.internalEngine();return D.visibilityState==="hidden"}function M(){m||j()}function R(){m||b()}function z(){m=!0,j()}function V(){m=!1,b()}function k(D){typeof D<"u"&&(v=D),b()}function I(){p&&j()}function U(){p&&b()}function L(){return p}function B(){const{index:D}=i.internalEngine(),q=D.clone().add(1).get(),O=i.scrollSnapList().length-1,Y=r.stopOnLastSnap&&q===O;if(i.canScrollNext()?i.scrollNext(v):i.scrollTo(0,v),i.emit("autoplay:select"),Y)return j();b()}function Q(){if(!u)return null;const D=c[i.selectedScrollSnap()],q=new Date().getTime()-u;return D-q}return{name:"autoplay",options:t,init:y,destroy:S,play:k,stop:I,reset:U,isPlaying:L,timeUntilNext:Q}}tm.globalOptions=void 0;const Pj="5820844800999424";function G2(){const{data:t}=n3(),{data:r}=Ki(),i=r?.djId,s=!i||i===Pj,{data:c=null,isLoading:u}=Oe({queryKey:["djs","on-air",i],queryFn:async({signal:m})=>(await vn("djs",{"where[djId][equals]":i,limit:1,depth:1},m))[0]??null,enabled:!s,staleTime:300*1e3}),f=_.useMemo(()=>{if(!t||t.length===0)return null;const m=new Date,g=new Intl.DateTimeFormat("en-US",{weekday:"long",timeZone:"America/Chicago"}).format(m).toLowerCase(),v=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric",hour12:!1,timeZone:"America/Chicago"}).formatToParts(m),y=parseInt(v.find(b=>b.type==="hour")?.value??"0"),S=parseInt(v.find(b=>b.type==="minute")?.value??"0"),w=y*60+S;return t.find(b=>{if(b.dayOfWeek.toLowerCase()!==g)return!1;const j=Ig(b.startTime),N=Ig(b.endTime);return N<j?w>=j||w<N:w>=j&&w<N})||null},[t]),p=_.useMemo(()=>f&&typeof f.dj=="object"?f.dj:null,[f]);return{currentDJMember:c,scheduledDJ:p,isLoading:u}}const $j="/assets/hero-gradient-bg-DU-Hg8Xj.mp4";function Nv(t){if(!t)return null;if(t.linkType==="external")return t.url?{href:t.url,external:!0}:null;const r=t.page;return r&&typeof r=="object"&&r.slug?{href:`/${r.slug}`,external:!1}:t.customUrl?{href:t.customUrl,external:!1}:null}function Bj({eyebrow:t,headline:r,body:i,link1:s,link2:c,backgroundVideo:u,backgroundImage:f,textColor:p="light",slides:m,autoRotate:g=!1,rotateInterval:v=8}){const y=yn(),{showToast:S}=rn(),{requireLogin:w,showLoginModal:E,handleLogin:b,handleSignUp:j,closeModal:N}=Gc(),{data:C}=ti(),{data:M}=Ki(),{data:R}=_2(),{currentDJMember:z,scheduledDJ:V,isLoading:k}=G2(),I=ei(M?.djId?[M.djId]:[]),{isFavorited:U,toggleFavorite:L}=c2(z?.djId!=null?String(z.djId):void 0),Q=!!M&&(!M.djId||M.djId==="5820844800999424"),K=!!z,D=_.useMemo(()=>{if(!M)return null;const he=M.djId?I.get(M.djId):void 0,Ae=he?.showName||"",He=he?.djName,Ve=Xi(He||M.djName||"",Ae);return{dj:Ve.djName,show:Ve.showName}},[M,I]),q=Q?"/images/chirp-logos/NiteOwl_Logo.webp":qi(z?.profileImage)||void 0,O=_.useMemo(()=>{if(Q)return C?.onAir?.niteOwlBio??void 0;if(k)return;if(!K){const Ae=C?.onAir?.unknownDjBios;return Ae&&Ae.length>0?Ae[Math.floor(Math.random()*Ae.length)].bio:void 0}const he=z?.djExcerpt||z?.djBio;return typeof he=="string"?he:void 0},[Q,K,k,z,C?.onAir]),Y=z||V,Z=Gy(Y?.showSchedules)??Y?.showTime,ee=z?.djName?z.djName.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):null,ne=()=>{w(L)},A=_.useMemo(()=>m&&m.length>0?m:[{eyebrow:t,headline:r,body:i,link1:s,link2:c,backgroundVideo:u,backgroundImage:f,textColor:p}],[m,t,r,i,s,c,u,f,p]),F=A.length>1&&g,[X,ie]=em({loop:!0,watchDrag:!1}
67,F?[Z2(),tm({delay:v*1e3,stopOnInteraction:!1,stopOnMouseEnter:!0,stopOnFocusIn:!0})]:[]),[re,de]=_.useState(0),se=_.useCallback(()=>{ie&&de(ie.selectedScrollSnap())},[ie]);_.useEffect(()=>{if(ie)return ie.on("select",se),se(),()=>{ie.off("select",se)}},[ie,se]);const ge=_.useCallback(he=>{ie&&ie.scrollTo(he)},[ie]),be=he=>{const Ae=he.backgroundVideo||$j;return he.backgroundImage?o.jsx("div",{className:"cr-spotlight__bg-image",style:{backgroundImage:`url(${he.backgroundImage})`}}):o.jsx("video",{className:"cr-spotlight__video",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":"true",children:o.jsx("source",{src:Ae,type:"video/mp4"})})},Ne=he=>{const Ae=he.textColor??"light",He=Nv(he.link1),Ve=Nv(he.link2),nt=!!(he.link1?.text&&He),We=!!(he.link2?.text&&Ve),dt=nt||We,st=mt=>{mt.external?window.open(mt.href,"_blank","noopener,noreferrer"):y(mt.href)};return o.jsxs("div",{className:`cr-spotlight__content ${Ae==="dark"?"cr-spotlight__content--dark":""}`,children:[he.eyebrow&&o.jsx("div",{className:"cr-spotlight__eyebrow",children:he.eyebrow}),he.headline&&o.jsx("h2",{className:"cr-spotlight__headline",children:he.headline}),o.jsxs("div",{className:"cr-spotlight__ctas",children:[he.body&&o.jsx("div",{className:"cr-spotlight__body-wrapper",children:o.jsx("p",{className:"cr-spotlight__body",children:he.body})}),dt&&o.jsxs("div",{className:"cr-spotlight__buttons",children:[nt&&o.jsx(xe,{size:"small",variant:"outline",color:"secondary",rightIcon:o.jsx(yl,{}),onClick:()=>st(He),children:he.link1.text}),We&&o.jsx(xe,{size:"small",variant:"solid",color:"secondary",rightIcon:o.jsx(yl,{}),onClick:()=>st(Ve),children:he.link2.text})]})]}),F&&o.jsx("div",{className:"cr-spotlight__dots",children:A.map((mt,Ht)=>o.jsx("button",{className:`cr-spotlight__dot ${Ht===re?"cr-spotlight__dot--active":""}`,"aria-label":`Go to slide ${Ht+1}`,onClick:()=>ge(Ht)},Ht))})]})},Ee=()=>o.jsx("div",{className:"cr-spotlight__dj",children:R&&D&&o.jsx(D2,{size:"large",isLoading:k&&!Q,showTitle:Q?void 0:D.show||R.showName,djName:Q?"NiteOwl":D.dj||R.djName,djBio:O,showTime:Vc(Z),imageSrc:q,isCHIRP:Q,onRequestClick:Q?void 0:()=>y("/request-song"),onMoreClick:K&&ee?()=>y(`/djs/${ee}`):void 0,onFavoriteClick:K?ne:void 0,isFavorite:U,onAddToCalendarClick:Z?()=>{try{zh({djName:D.dj||R.djName,showName:D.show||R.showName,showTime:Z}),S({message:"Calendar event downloaded!",type:"success",duration:3e3})}catch{S({message:"Unable to create calendar event.",type:"error",duration:5e3})}}:void 0},M?.djId??"niteowl")});if(!F){const he=A[0];return o.jsxs(o.Fragment,{children:[o.jsxs("section",{className:"cr-spotlight","aria-label":"Spotlight",children:[be(he),o.jsx("div",{className:"cr-spotlight__overlay"}),o.jsxs("div",{className:"cr-spotlight__container",children:[Ne(he),Ee()]})]}),o.jsx(Jn,{isOpen:E,onClose:N,onLogin:b,onSignUp:j})]})}const me=A[re];return o.jsxs(o.Fragment,{children:[o.jsxs("section",{className:"cr-spotlight","aria-label":"Spotlight","aria-roledescription":"carousel",children:[o.jsx("div",{className:"cr-spotlight__carousel",ref:X,children:o.jsx("div",{className:"cr-spotlight__carousel-container",children:A.map((he,Ae)=>o.jsxs("div",{className:"cr-spotlight__slide",role:"group","aria-roledescription":"slide","aria-label":`Slide ${Ae+1} of ${A.length}${he.headline?`: ${he.headline}`:""}`,children:[be(he),o.jsx("div",{className:"cr-spotlight__overlay"})]},Ae))})}),o.jsxs("div",{className:"cr-spotlight__container",children:[Ne(me),Ee()]}),A.length>1&&g&&o.jsx("div",{className:"cr-spotlight__progress cr-spotlight__progress--active",style:{"--spotlight-duration":`${v}s`}},re)]}),o.jsx(Jn,{isOpen:E,onClose:N,onLogin:b,onSignUp:j})]})}function Y2(t){const[r,i]=_.useState(()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(t).matches);return _.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia(t),c=u=>{i(u.matches)};return i(s.matches),s.addEventListener("change",c),()=>{s.removeEventListener("change",c)}},[t]),r}function Bf({src:t,hashKey:r,className:i}){const s=Va(r),[c,u]=_.useState(!1);return _.useEffect(()=>{u(!1)},[t]),o.jsx("img",{src:c||!t?s:t,alt:"","aria-hidden":"true",className:i,onError:()=>u(!0)})}function fh({albumArt:t,artistName:r="",trackName:i="",albumName:s="",labelName:c="",notes:u,isAdded:f,isLocal:p=!1,onToggleAdd:m,timeAgo:g="",showTime:v=!0,variant:y="default",currentlyPlaying:S=!1,className:w=""}){const{requireLogin:E,showLoginModal:b,handleLogin:j,handleSignUp:N,closeModal:C}=Gc(),{showToast:M}=rn(),{isInCollection:R,toggleCollection:z}=$h({artistName:r,trackName:i}),V=200,k=_.useId(),[I,U]=_.useState(!1),[L,B]=_.useState(!1),[Q,K]=_.useState({top:0,left:0}),D=_.useRef(null),q=_.useRef(null),O=_.useRef(null),Y=()=>{if(I){U(!1);return}const A=D.current?.getBoundingClientRect(),F=q.current?.getBoundingClientRect();A&&F&&K({top:F.top+window.scrollY,left:A.left+A.width/2+window.scrollX}),B(!0),requestAnimationFrame(()=>U(!0))};_.useEffect(()=>{if(I||!L)return;const A=setTimeout(()=>B(!1),V);return()=>clearTimeout(A)},[I,L]),_.useEffect(()=>{if(!I)return;const A=ie=>{const re=ie.target;q.current?.contains(re)||O.current?.contains(re)||U(!1)},F=ie=>{ie.key==="Escape"&&U(!1)},X=()=>U(!1);return document.addEventListener("pointerdown",A),document.addEventListener("keydown",F),window.addEventListener("scroll",X,!0),window.addEventListener("resize",X),()=>{document.removeEventListener("pointerdown",A),document.removeEventListener("keydown",F),window.removeEventListener("scroll",X,!0),window.removeEventListener("resize",X)}},[I]);const Z=()=>{E(()=>
67{if(m){m();return}const A=t||Va([r||"",i||""]);z({artistName:r,trackName:i,albumName:s,labelName:c,albumArt:A,isLocal:p,dateAdded:new Date().toISOString()}),M({message:R?`Removed ${i} from your collection`:`Added ${i} to your collection`,type:"success",duration:3e3})})},ee=Y2("(max-width: 768px)"),ne=y==="table"&&ee?"default":y;return _.useEffect(()=>{U(!1),B(!1)},[ne]),ne==="table"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`cr-playlist-item cr-playlist-item--table ${S?"cr-playlist-item--currently-playing":""} ${w}`,role:"row",children:[o.jsx("div",{className:"cr-playlist-item__table-album-art",role:"cell",children:o.jsx(Bf,{src:t,hashKey:[r,i],className:"cr-playlist-item__image"})}),o.jsxs("div",{className:"cr-playlist-item__table-main",role:"cell",children:[o.jsxs("div",{className:"cr-playlist-item__table-grid",children:[o.jsxs("div",{className:"cr-playlist-item__table-left",children:[o.jsx("div",{className:"cr-playlist-item__table-artist",children:r}),o.jsx("div",{className:"cr-playlist-item__table-track",children:i})]}),o.jsxs("div",{className:"cr-playlist-item__table-time",children:[p&&o.jsx(en,{variant:"primary",size:"small",squared:!0,children:"LOCAL"}),v&&g&&o.jsx("time",{children:g})]}),o.jsxs("div",{className:"cr-playlist-item__table-right",children:[o.jsx("div",{className:"cr-playlist-item__table-album",children:s}),o.jsx("div",{className:"cr-playlist-item__table-label",children:c})]})]}),u&&o.jsxs("div",{className:"cr-playlist-item__table-notes",children:[o.jsx("span",{className:"cr-playlist-item__table-notes-label",children:"Notes:"})," ",u]})]}),o.jsx("div",{className:"cr-playlist-item__table-action",role:"cell",children:o.jsx(xe,{variant:"text",size:"xsmall",color:"secondary",rightIcon:R?void 0:o.jsx(Pi,{}),onClick:Z,"aria-label":gl(i,r,R),children:R?"REMOVE":"ADD"})}),o.jsxs("div",{ref:D,className:"cr-playlist-item__mobile-fallback",children:[o.jsx(qr,{variant:"full",trackName:i,artistName:r,albumName:s,labelName:c,albumArt:t,isLocal:p,onToggleAdd:Z}),o.jsxs("div",{className:"cr-playlist-item__mobile-meta",children:[v&&g&&o.jsx("time",{className:"cr-playlist-item__time",children:g}),u&&o.jsx("button",{ref:q,type:"button",className:"cr-playlist-item__card-notes-trigger","aria-label":"Show DJ notes","aria-expanded":I,"aria-haspopup":"dialog","aria-controls":k,onClick:Y,children:o.jsx(uf,{})})]})]})]}),o.jsx(Jn,{isOpen:b,onClose:C,onLogin:j,onSignUp:N}),L&&u&&Vr.createPortal(o.jsxs("div",{ref:O,id:k,className:`cr-playlist-item__card-notes-popover ${I?"cr-playlist-item__card-notes-popover--open":""}`,role:"dialog","aria-label":"DJ notes",style:{top:Q.top,left:Q.left},children:[o.jsx("span",{className:"cr-playlist-item__card-notes-label",children:"Notes:"})," ",u]}),document.body)]}):y==="card"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:D,className:`cr-playlist-item cr-playlist-item--card ${S?"cr-playlist-item--currently-playing":""} ${w}`,children:[o.jsx("div",{className:"cr-playlist-item__card-background",style:{backgroundImage:`url('${Sr(t)}')`}}),o.jsx("div",{className:"cr-playlist-item__card-overlay"}),o.jsxs("div",{className:"cr-playlist-item__card-album-art",children:[o.jsx(Bf,{src:t,hashKey:[r,i],className:"cr-playlist-item__image"}),p&&o.jsx("div",{className:"cr-playlist-item__card-local-badge",children:o.jsx(en,{variant:"primary",size:"small",squared:!0,children:"LOCAL"})})]}),o.jsxs("div",{className:"cr-playlist-item__card-content",children:[o.jsx("div",{className:"cr-playlist-item__card-track",children:i}),o.jsx("div",{className:"cr-playlist-item__card-artist",children:r}),o.jsx("div",{className:"cr-playlist-item__card-album",children:s}),o.jsxs("div",{className:"cr-playlist-item__card-label",children:["(",c,")"]}),o.jsxs("div",{className:"cr-playlist-item__card-footer",children:[v&&g&&o.jsx("time",{className:"cr-playlist-item__card-time",children:g}),u&&o.jsx("button",{ref:q,type:"button",className:"cr-playlist-item__card-notes-trigger","aria-label":"Show DJ notes","aria-expanded":I,"aria-haspopup":"dialog","aria-controls":k,onClick:Y,children:o.jsx(uf,{})}),o.jsx("div",{className:"cr-playlist-item__card-action",children:o.jsx(xe,{variant:"text",size:"xsmall",color:"secondary",rightIcon:R?void 0:o.jsx(Pi,{}),onClick:Z,"aria-label":gl(i,r,R),children:R?"REMOVE":"ADD"})})]})]})]}),o.jsx(Jn,{isOpen:b,onClose:C,onLogin:j,onSignUp:N}
67),L&&u&&Vr.createPortal(o.jsxs("div",{ref:O,id:k,className:`cr-playlist-item__card-notes-popover ${I?"cr-playlist-item__card-notes-popover--open":""}`,role:"dialog","aria-label":"DJ notes",style:{top:Q.top,left:Q.left},children:[o.jsx("span",{className:"cr-playlist-item__card-notes-label",children:"Notes:"})," ",u]}),document.body)]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`cr-playlist-item ${w}`,children:[o.jsx("div",{className:"cr-playlist-item__album-art",children:o.jsx(Bf,{src:t,hashKey:[r,i],className:"cr-playlist-item__image"})}),o.jsxs("div",{className:"cr-playlist-item__content",children:[o.jsx(qr,{variant:"full",trackName:i,artistName:r,albumName:s,labelName:c,albumArt:t,isLocal:p,onToggleAdd:Z}),(v||u)&&o.jsxs("div",{className:"cr-playlist-item__meta",ref:D,children:[v&&g&&o.jsx("time",{className:"cr-playlist-item__time",children:g}),u&&o.jsx("button",{ref:q,type:"button",className:"cr-playlist-item__card-notes-trigger","aria-label":"Show DJ notes","aria-expanded":I,"aria-haspopup":"dialog","aria-controls":k,onClick:Y,children:o.jsx(uf,{})})]})]})]}),L&&u&&Vr.createPortal(o.jsxs("div",{ref:O,id:k,className:`cr-playlist-item__card-notes-popover ${I?"cr-playlist-item__card-notes-popover--open":""}`,role:"dialog","aria-label":"DJ notes",style:{top:Q.top,left:Q.left},children:[o.jsx("span",{className:"cr-playlist-item__card-notes-label",children:"Notes:"})," ",u]}),document.body),o.jsx(Jn,{isOpen:b,onClose:C,onLogin:j,onSignUp:N})]})}function Cv(t){return t.replace(/:00/g,"")}function qj(t){const r=new Date(t);return isNaN(r.getTime())?t:`${r.getMonth()+1}/${r.getDate()}/${String(r.getFullYear()).slice(2)}`}function Q2({startTime:t="",endTime:r="",djName:i="",djProfileUrl:s,showName:c="",date:u,isOnAir:f=!1,isCollapsed:p=!1,showChevron:m=!0,className:g="",isFavorite:v=!1,onFavoriteClick:y,isCHIRP:S=!1}){const w=!!s&&!S;return o.jsxs("div",{className:`cr-playlist-hour-break ${g}`,children:[m&&o.jsx("div",{className:`cr-playlist-hour-break__chevron ${p?"cr-playlist-hour-break__chevron--collapsed":""}`,children:o.jsx(ph,{})}),o.jsxs("span",{className:"cr-playlist-hour-break__time cr-playlist-hour-break__time--full",children:[t," - ",r]}),o.jsxs("span",{className:"cr-playlist-hour-break__time cr-playlist-hour-break__time--compact",children:[Cv(t),"-",Cv(r)]}),o.jsx("span",{className:"cr-playlist-hour-break__separator",children:"â"}),!S&&y&&o.jsx("button",{className:`cr-playlist-hour-break__heart-btn${v?" cr-playlist-hour-break__heart-btn--active":""}`,onClick:E=>{E.stopPropagation(),y()},"aria-label":v?"Unfavorite DJ":"Favorite DJ",children:v?o.jsx(Nl,{}):o.jsx(Rl,{})}),w?o.jsx(Zr,{to:s,className:"cr-playlist-hour-break__dj-link",onClick:E=>E.stopPropagation(),children:i}):o.jsx("span",{className:"cr-playlist-hour-break__dj-link",children:i}),c&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"cr-playlist-hour-break__separator cr-playlist-hour-break__show-separator",children:"â"}),o.jsx("span",{className:"cr-playlist-hour-break__show-name",children:c})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"cr-playlist-hour-break__separator",children:"â"}),o.jsx("span",{className:"cr-playlist-hour-break__date cr-playlist-hour-break__date--full",children:u}),o.jsx("span",{className:"cr-playlist-hour-break__date cr-playlist-hour-break__date--compact",children:qj(u)})]}),f&&o.jsx(en,{variant:"primary","aria-hidden":!0,children:"On-Air"}),o.jsx("div",{className:"cr-playlist-hour-break__line"})]})}function Fj({tracks:t=[],nowPlayingId:r,showViewPlaylistButton:i=!0,onViewPlaylist:s,maxItems:c=6,djName:u="",showName:f="",startTime:p="",endTime:m="",djProfileUrl:g="#"}){const v=_.useRef(null),[y,S]=_.useState(!0),[w,E]=_.useState(!1),[b,j]=_.useState(!1),N=768,C={djName:u,showName:f,startTime:p,endTime:m,djProfileUrl:g};_.useEffect(()=>{let R=0;const z=()=>{cancelAnimationFrame(R),R=requestAnimationFrame(()=>j(window.innerWidth<=N))};return j(window.innerWidth<=N),window.addEventListener("resize",z),()=>{window.removeEventListener("resize",z),cancelAnimationFrame(R)}},[]),_.useEffect(()=>{const R=v.current;if(!R)return;let z=0;const V=()=>{cancelAnimationFrame(z),z=requestAnimationFrame(()=>{const{scrollLeft:k,scrollWidth:I,clientWidth:U}=R,L=I>U,B=k+U>=I-50,Q=k<=10;S(L&&!B),E(L&&!Q)})};return V(),window.addEventListener("resize",V),R.addEventListener("scroll",V),()=>{R.removeEventListener("scroll",V),window.removeEventListener("resize",V),cancelAnimationFrame(z)}},[t.length]);const M=t.slice(0,c);return o.jsx("div",{className:"cr-recently-played cr-bg-textured cr-bg-dust-d300",children:o.jsxs("div",{className:"cr-recently-played__container",children:[o.jsxs("div",{className:"cr-recently-played__header",children:[o.jsx("h2",{className:"cr-recently-played__title",children:"Recently Played"}),i&&o.jsx(xe,{variant:"outline",size:"medium",color:"secondary",rightIcon:o.jsx(Vv,{}),onClick:s,children:"View Playlist"})]}),o.jsx(Q2,{startTime:C.startTime,endTime:C.endTime,djName:C.djName,showName:C.showName,djProfileUrl:C.djProfileUrl,isCollapsed:!1,showChevron:!1}),o.jsx("div",{className:"cr-recently-played__scroll-wrapper","data-overflow-right":y,"data-overflow-left":w,children:o.jsx("div",{className:"cr-recently-played__scroll-container",ref:v,children:o.jsx("div",{className:"cr-recently-played__track-list",children:M.map((R,z)=>o.jsx(fh,{variant:b?"table":"card",albumArt:R.albumArt,artistName:R.artistName,trackName:R.trackName,albumName:R.albumName,labelName:R.labelName,notes:R.notes,isAdded:R.isAdded,isLocal:R.isLocal,timeAgo:R.timeAgo,showTime:!0,currentlyPlaying:r!=null?R.id===r:z===0},R.id??`${R.artistName}-${R.trackName}-${z}`))})})})]})})}const Vj=({title:t,description:r,image:i,url:s,type:c="website"})=>{const{data:u}=a3(),f=u?.siteName||"CHIRP Radio",p=t?`${t} | ${f}`:f,m=r||u?.defaultShareDescription||"",g=i||(u?.defaultShareImage&&typeof u.defaultShareImage=="object"?u.defaultShareImage.url:void 0)||"",v=s||window.location.href,y=u?.twitterHandle||"",S=g?"summary_large_image":"summary";return o.jsxs(qc,{children:[o.jsx("meta",{property:"og:type",content:c}),o.jsx("meta",{property:"og:site_name",content:f}),o.jsx("meta",{property:"og:title",content:p}),m&&o.jsx("meta",{property:"og:description",content:m}),o.jsx("meta",{property:"og:url",content:v}),g&&o.jsx("meta",{property:"og:image",content:g}
67),g&&o.jsx("meta",{property:"og:image:width",content:"1200"}),g&&o.jsx("meta",{property:"og:image:height",content:"630"}),o.jsx("meta",{name:"twitter:card",content:S}),y&&o.jsx("meta",{name:"twitter:site",content:y}),o.jsx("meta",{name:"twitter:title",content:p}),m&&o.jsx("meta",{name:"twitter:description",content:m}),g&&o.jsx("meta",{name:"twitter:image",content:g})]})};function Zj({dj:t}){const{isFavorited:r,toggleFavorite:i}=c2(t.djId!=null?String(t.djId):void 0),s=yn(),{showToast:c}=rn(),u=Gy(t.showSchedules)??t.showTime,f=Xi(t.djName,t.showName||"");return o.jsx(D2,{size:"medium-card",showTitle:f.showName,djName:f.djName,showTime:Vc(u),showTimes:U4(u,t.djName,t.showName,()=>{c({message:"Unable to create calendar event. Please check the show time format.",type:"error",duration:5e3})},()=>{c({message:"Calendar event downloaded!",type:"success",duration:3e3})}),showBio:!1,buttonText:"Profile",imageSrc:t.imageSrc,isFavorite:r,onFavoriteClick:i,onMoreClick:()=>s(`/djs/${t.slug}`),onAddToCalendarClick:()=>{if(u)try{zh({djName:t.djName,showName:t.showName,showTime:u}),c({message:"Calendar event downloaded!",type:"success",duration:3e3})}catch{c({message:"Unable to create calendar event. Please check the show time format.",type:"error",duration:5e3})}}})}const Gj=()=>{const t=yn(),{data:r}=ti(),{data:i,isLoading:s,error:c}=Ky(1),{data:u}=B4(),{data:f}=Jy(),p=_.useMemo(()=>u?[u]:i??[],[u,i]),{data:m,isLoading:g,error:v}=Qy(2),{data:y=[],isLoading:S}=Z4(),{data:w}=_2(),E=WE(4),{showLoginModal:b,handleLogin:j,handleSignUp:N,closeModal:C}=Gc(),{currentDJMember:M,scheduledDJ:R}=G2(),{data:z,tracks:V}=Ki(),k=ei(z?.djId?[z.djId]:[]),I=_.useMemo(()=>{if(!z)return null;const L=z.djId&&k.get(z.djId)?.showName||"",B=Xi(z.djName||"",L);return{dj:B.djName,show:B.showName,artist:z.artistName||"",track:z.trackName||"",album:z.albumName||"",label:z.labelName||"",albumArt:z.albumArtUrl,isLocal:z.isLocal||!1}},[z,k]),U=_.useMemo(()=>V.map(L=>({...L,albumArt:L.albumArtUrl,timeAgo:new Date(L.playedAt).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",timeZone:"America/Chicago"})})),[V]);return _.useEffect(()=>(document.body.classList.add("landing-page"),()=>{document.body.classList.remove("landing-page")}),[]),o.jsxs("div",{className:"landing-page",children:[o.jsx(qc,{children:o.jsx("title",{children:"Home"})}),o.jsx(Vj,{}),o.jsx("h1",{className:"sr-only",children:"CHIRP Radio"}),o.jsx("section",{className:"page-section",children:o.jsx("div",{className:"page-container",children:o.jsx(_w,{announcement:r?.landing?.topAnnouncement})})}),S&&o.jsx("div",{className:"cr-spotlight cr-spotlight--loading","aria-hidden":"true"}),!S&&o.jsx(Bj,{slides:y.map(L=>({eyebrow:L.eyebrow,headline:L.headline,body:L.body,textColor:L.textColor,link1:L.link1,link2:L.link2,backgroundImage:L.backgroundType==="image"&&L.backgroundImage&&typeof L.backgroundImage=="object"?L.backgroundImage.url:void 0})),autoRotate:r?.landing?.spotlightAutoRotate??!1,rotateInterval:r?.landing?.spotlightRotateInterval??8}),o.jsx("section",{className:"page-section",children:o.jsx(Fj,{tracks:U,nowPlayingId:z?.id,djName:I?.dj||R?.djName||w?.djName,showName:R?.showName||w?.showName,startTime:(()=>{const L=new Date,Q=new Date(L.toLocaleString("en-US",{timeZone:"America/Chicago"})).getHours();return Q===0?"12m":Q===12?"12n":Q<12?`${Q}:00am`:`${Q-12}:00pm`})(),endTime:(()=>{const L=new Date,Q=(new Date(L.toLocaleString("en-US",{timeZone:"America/Chicago"})).getHours()+1)%24;return Q===0?"12m":Q===12?"12n":Q<12?`${Q}:00am`:`${Q-12}:00pm`})(),djProfileUrl:M?.id?`/djs/${M.djName?.toLowerCase().replace(/\s+/g,"-")}`:void 0,onViewPlaylist:()=>t("/playlist")})}),o.jsxs("section",{className:"page-layout-3col",children:[o.jsxs("div",{className:"page-layout-3col__column page-layout-3col__column--container",children:[o.jsx(Mf,{showEyebrow:!1,titleTag:"h2",title:"Events",actionButtonText:"More Events",actionButtonIcon:o.jsx(Cl,{}),onActionClick:()=>t("/events")},"events-header"),s&&o.jsx("div",{className:"loading-message",children:"Loading events..."}),!s&&c&&o.jsx("div",{className:"empty-state",children:o.jsx("p",{children:"Unable to load events."})}),p.map((L,B)=>{const Q=L.id!=null?f?.get(String(L.id)):void 0,K=Q?{text:"Enter Contest",icon:o.jsx(m_,{}),variant:"solid",color:"secondary",ariaLabel:`Enter the contest for ${L.title}`,onClick:()=>tn(Q.entryUrl)}:void 0;return o.jsx(xv,{variant:"narrow",textLayout:"stacked",bannerHeight:"tall",imageAspectRatio:"16:9",backgroundImage:mw(L,"card"),preheader:pw(L),title:L.title,dateTime:new Date(L.date).toLocaleStr
67ing("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:"America/Chicago"}),venue:gw(L),ageRestriction:vw(L),contentSummary:L.excerpt,extraButton:K,onClick:()=>t(`/events/${L.slug}`)},L.slug||L.id||`event-${B}`)})]}),o.jsxs("div",{className:"page-layout-3col__column page-layout-3col__column--container page-layout-3col__column--bg page-layout-3col__column--articles cr-bg-textured cr-bg-dust-d100",children:[o.jsx(Mf,{showEyebrow:!1,titleTag:"h2",title:"Blog",actionButtonText:"All Blog Posts",actionButtonIcon:o.jsx(yh,{}),onActionClick:()=>t("/blog")},"articles-header"),g&&o.jsx("div",{className:"loading-message",children:"Loading blog posts..."}),!g&&v&&o.jsx("div",{className:"empty-state",children:o.jsx("p",{children:"Unable to load blog posts."})}),(m??[]).map((L,B)=>o.jsx(xv,{variant:"small",type:"article",textLayout:"stacked",bannerHeight:"tall",titleSize:"sm",imageAspectRatio:"16:9",bannerBackgroundColor:"textured",backgroundImage:yw(L,"card"),preheader:typeof L.category=="string"?L.category:typeof L.category=="object"&&L.category!==null&&"name"in L.c
67ategory?L.category.name:void 0,title:L.title,contentSummary:L.excerpt,onClick:()=>t(`/blog/${L.slug}`)},L.slug||L.id||`article-${B}`))]}),o.jsxs("div",{className:"page-layout-3col__column page-layout-3col__column--container page-layout-3col__column--large-gap",children:[o.jsx(Mf,{showEyebrow:!1,titleTag:"h2",title:"Next DJs",showActionButton:!0,actionButtonText:"Schedule",actionButtonIcon:o.jsx(_r,{}),onActionClick:()=>t("/schedule")},"djs-header"),o.jsx("p",{className:"landing-note",children:"* All times displayed in Central Time"}),o.jsx("div",{className:"cr-dj-overview-wrapper",children:E.map((L,B)=>o.jsx(Zj,{dj:L},L.slug||L.id||`dj-${B}`))})]})]}),o.jsx(Jn,{isOpen:b,onClose:C,onLogin:j,onSignUp:N})]})};function Rv({className:t=""}){return o.jsxs("div",{className:`cr-playlist-table-header ${t}`,role:"row",children:[o.jsx("div",{className:"cr-playlist-table-header__art",role:"columnheader","aria-label":"Album art"}),o.jsxs("div",{className:"cr-playlist-table-header__grid",role:"columnheader","aria-label":"Track",children:[o.jsxs("div",{className:"cr-playlist-table-header__left",children:[o.jsx("div",{className:"cr-playlist-table-header__artist",children:"Artist Name"}),o.jsx("div",{className:"cr-playlist-table-header__track",children:"Title"})]}),o.jsxs("div",{className:"cr-playlist-table-header__time",children:[o.jsx("div",{className:"cr-playlist-table-header__time-label",children:"Time"}),o.jsx("div",{className:"cr-playlist-table-header__played-label",children:"Played"})]}),o.jsxs("div",{className:"cr-playlist-table-header__right",children:[o.jsx("div",{className:"cr-playlist-table-header__album",children:"Album"}),o.jsx("div",{className:"cr-playlist-table-header__label",children:"Label"})]})]}),o.jsxs("div",{className:"cr-playlist-table-header__action",role:"columnheader","aria-label":"Add to collection",children:[o.jsx("div",{className:"cr-playlist-table-header__add-label",children:"Add to"}),o.jsx("div",{className:"cr-playlist-table-header__collection-label",children:"Collection"})]})]})}const Yj=tt("CrPlaylistTable");function Qj({items:t=[],showHeader:r=!0,onItemAddClick:i,groupByHour:s=!1,initialCollapsedKeys:c,variant:u="table",nowPlayingId:f,className:p="",favoriteDjIds:m=[],onFavoriteDjClick:g}){const[v,y]=_.useState(()=>c?Object.fromEntries(c.map(R=>[R,!0])):{}),S=_.useRef({}),w=Y2("(max-width: 768px)"),E=w?void 0:"table",b=w?void 0:"Playlist",j=w?void 0:"rowgroup",N=R=>{y(z=>({...z,[R]:!z[R]}))},C=(R,z)=>{try{const V=new Date,I=new Date(V.toLocaleString("en-US",{timeZone:"America/Chicago"})).getHours(),U=R.match(/(\d+):(\d+)(am|pm)/i);if(!U)return!1;let L=parseInt(U[1]);const B=U[3].toLowerCase();B==="pm"&&L!==12?L+=12:B==="am"&&L===12&&(L=0);const Q=z.match(/(\d+):(\d+)(am|pm)/i);if(!Q)return!1;let K=parseInt(Q[1]);const D=Q[3].toLowerCase();return D==="pm"&&K!==12?K+=12:D==="am"&&K===12&&(K=0),K<L?I>=L||I<K:I>=L&&I<K}catch(V){return Yj.error("Error checking current hour:",V),!1}},M=s?(()=>{const R=[],z=new Set;return t.forEach(V=>{const k=V.hourKey||"unknown";if(!z.has(k))z.add(k),R.push({hourKey:k,hourData:V.hourData||{startTime:"",endTime:""},items:[V]});else{const I=R.find(U=>U.hourKey===k);I&&I.items.push(V)}}),R})():null;return s&&M?o.jsxs("div",{className:`cr-playlist-table ${p}`,role:E,"aria-label":b,children:[r&&o.jsx("div",{role:j,children:o.jsx(Rv,{})}),o.jsx("div",{className:"cr-playlist-table__items",children:M.map(R=>{const{hourKey:z,hourData:V,items:k}=R,I=v[z];return o.jsxs("div",{className:"cr-playlist-table__hour-group",role:j,children:[o.jsx("div",{className:"cr-playlist-table__hour-break-wrapper",onClick:()=>N(z),role:"button","aria-expanded":!I,tabIndex:0,onKeyDown:U=>
67{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),N(z))},children:o.jsx(Q2,{startTime:V.startTime,endTime:V.endTime,djName:V.djName,djProfileUrl:V.djProfileUrl,showName:V.showName,date:V.date,isOnAir:C(V.startTime,V.endTime),isCollapsed:I,isFavorite:!!V.djId&&m.includes(V.djId),onFavoriteClick:V.djId&&V.djProfileUrl&&g?()=>g(V.djId):void 0,isCHIRP:!V.djId})}),o.jsx("div",{className:`cr-playlist-table__hour-items ${I?"cr-playlist-table__hour-items--collapsed":""}`,style:{maxHeight:I?"0px":S.current[z]?.scrollHeight+"px"||"5000px"},children:o.jsx("div",{ref:U=>{S.current[z]=U},className:"cr-playlist-table__hour-items-inner",children:k.map((U,L)=>o.jsx(fh,{variant:u,albumArt:U.albumArtUrl||U.albumArt,artistName:U.artistName,trackName:U.trackName,albumName:U.albumName,labelName:U.labelName,notes:U.notes,timeAgo:U.timeAgo,showTime:U.showTime!==!1,isLocal:U.isLocal,currentlyPlaying:f!=null&&U.id===f,onToggleAdd:i?()=>i(U,L):void 0},U.id||`${z}-${L}`))})})]},z)})})]}):o.jsxs("div",{className:`cr-playlist-table ${p}`,role:E,"aria-label":b,children:[r&&o.jsx("div",{role:j,children:o.jsx(Rv,{})}),o.jsx("div",{className:"cr-playlist-table__items",role:j,children:t.map((R,z)=>o.jsx(fh,{variant:u,albumArt:R.albumArtUrl||R.albumArt,artistName:R.artistName,trackName:R.trackName,albumName:R.albumName,labelName:R.labelName,notes:R.notes,timeAgo:R.timeAgo,showTime:R.showTime!==!1,isLocal:R.isLocal,currentlyPlaying:f!=null&&R.id===f,onToggleAdd:i?()=>i(R,z):void 0},R.id||`${R.artistName}-${R.trackName}-${z}`))})]})}function qf(){const{visibleGroups:t}=hE(1),r=_.useMemo(()=>t.flatMap(p=>p.tracks),[t]),{favoriteDjIds:i,handleFavoriteDjClick:s,loginModalProps:c}=u2(),u=_.useMemo(()=>new Map(t.filter(p=>p.djSlug).map(p=>[p.tracks[0]?.djId??"",{showName:p.showName,slug:p.djSlug}])),[t]),f=_.useMemo(()=>{if(!r||r.length===0)return[];const p=r.map(S=>{const E=new Date(S.playedAt).toLocaleString("en-US",{timeZone:"America/Chicago",hour:"numeric",hour12:!1}),b=parseInt(E.split(",")[1]?.trim()||E),j=b===0?12:b>12?b-12:b,N=b<12?"am":"pm",C=`${j}${N}`;return{...S,hourKey:C}}),m=[...p].sort((S,w)=>new Date(w.playedAt).getTime()-new Date(S.playedAt).getTime()),g=[];m.forEach(S=>{g.includes(S.hourKey)||g.push(S.hourKey)});const v=g.slice(0,2);return p.filter(S=>v.includes(S.hourKey)).sort((S,w)=>new Date(w.playedAt).getTime()-new Date(S.playedAt).getTime()).map(S=>{const w=S.hourKey?.match(/(\d+)(am|pm)/i);let E="12:00am",b="1:00am";if(w){const j=parseInt(w[1]),N=w[2].toLowerCase();E=`${j}:00${N}`,j===12?b=N==="am"?"1:00am":"1:00pm":j===11?b=N==="am"?"12:00pm":"12:00am":b=`${j+1}:00${N}`}return{albumArt:S.albumArtUrl,artistName:S.artistName,trackName:S.trackName,albumName:S.albumName,labelName:S.labelName,isLocal:S.isLocal,timeAgo:new Date(S.playedAt).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",timeZone:"America/Chicago"}),hourKey:S.hourKey,hourData:{startTime:E,endTime:b,djName:S.djName==="CHIRP DJ"?"NiteOwl":S.djName,showName:(S.djId?u.get(S.djId)?.showName:void 0)||void 0,djProfileUrl:S.djId&&u.get(S.djId)?.slug?`/djs/${u.get(S.djId).slug}`:void 0,djId:S.djId}}})},[r,u]);return o.jsxs("div",{className:"now-playing-page",children:[o.jsxs("div",{className:"page-header",children:[o.jsx("h1",{children:"Now Playing"}),o.jsx("p",{children:"Currently streaming on CHIRP Radio"})]}),o.jsx(Qj,{items:f,showHeader:!0,groupByHour:!0,className:"now-playing-page__playlist",favoriteDjIds:i,onFavoriteDjClick:s}),o.jsx(Jn,{...c})]})}function Kj({caption:t="Loading..."}){return o.jsx("div",{className:"loading-indicator",children:o.jsx("span",{className:"loading-indicator__caption",children:t})})}const Lv="/assets/CHIRP-bird-CFVEZfgN.svg",Xj=()=>{const t=yn(),r=Ut(),{data:i}=Ml(),{data:s,isLoading:c}=e2(r.pathname);if(c||s)return o.jsx(Kj,{caption:"Loading page..."});const u=i?.notFoundPageHeading||"Page Not Found",f=i?.notFoundPageMessage||"Sorry, we couldn't find the page you're looking for. It may have been moved, deleted, or never existed in the first place.",p=o.jsxs(o.Fragment,{children:[o.jsx(xe,{size:"large",variant:"outline",color:"default",leftIcon:o.jsx("img",{src:Lv,alt:"CHIRP",className:"icon-md"}),onClick:()=>t("/"),children:"Home"}),o.jsx(xe,{size:"large",variant:"solid",color:"primary",onClick:()=>t(-1),children:"Go Back"})]}),m=o.jsxs("div",{className:"mt-12",children:[o.jsx("h2",{className:"error-page-subtitle",children:"Try These Instead"}),o.jsx(b2,{options:[{label:"Home",value:"home",rightIcon:o.jsx("img",{src:Lv,alt:"",className:"icon-sm"})},{label:"Playlist",value:"playlist",rightIcon:o.jsx(Fv,{})},{label:"Events",value:"events",rightIcon:o.jsx(Cl,{})},{label:"Blog",value:"articles",rightIcon:o.jsx(yh,{})},{label:"Store",value:"store",rightIcon:o.jsx(bh,{})},{label:"Donate",value:"donate",rightIcon:o.jsx(Rl,{})}],onSelectionChange:g=>{t({home:"/",playlist:"/playlist",events:"/events",articles:"/blog",store:"/store",donate:"/donate"}[g]||"/")},layout:"horizontal",variant:"navigation",size:"medium"})]});return o.jsxs("div",{className:"not-found-page",children:[o.jsx(qc,{children:o.jsx("title",{children:u})}),o.jsx(_h,{displayText:o.jsxs(o.Fragment,{children:["4",o.jsx(_r,{}),"4"]}),title:u,description:f,actions:p,extras:m})]})},Jj=()=>o.jsx(El,{variant:"android-auto",autoFetch:!0}),Fa=tt("App"),Wj=_.lazy(()=>ke(()=>import("./RecentlyPlayed-lm47S6SY.js"),[])),Ov=_.lazy(()=>ke(()=>import("./YourCollection-DhgcKO-p.js").then(t=>t.Y),__vite__mapDeps([3,4,5]))),Mv=_.lazy(()=>ke(()=>import("./MakeRequest-DTzdK_Lv.js"),__vite__mapDeps([6,7,8,5]))),Dv=_.lazy(()=>ke(()=>import("./AccountSettings-Cd6QOgqC.js"),__vite__mapDeps([9,10,11,12,5]))),eA=_.lazy(()=>ke(()=>import("./PlaylistPage-BN4FtxZQ.js"),__vite__mapDeps([13,14,15,16,17,18,19]))),tA=_.lazy(()=>ke(()=>import("./StoreCheckoutPage-C17YS7x_.js"),[])),nA=_.lazy(()=>ke(()=>import("./StoreSuccessPage-DMfuOk87.js"),[])),aA=_.lazy(()=>ke(()=>import("./EventsPage-DBT4Ct3Q.js"),__vite__mapDeps([20,21,22,23,16,17,24]))),rA=_.lazy(()=>ke(()=>import("./ArticlesPage-Cv8L1YLQ.js"),__vite__mapDeps([25,21,22,16,17,24,26,27,23]))),iA=_.lazy(()=>ke(()=>import("./DJPage-foYB-Hc_.js"),__vite__mapDeps([28,14,15]))),sA=_.lazy(()=>ke(()=>import("./DJSchedulePage-DdDof4-J.js"),__vite__mapDeps([29,7,30]))),lA=_.lazy(()=>ke(()=>import("./DJDetailPage-nqDeN0oN.js"),__vite__mapDeps([31,21,22,7,11,32]))),oA=_.lazy(()=>ke(()=>
67import("./EventDetailPage-D3wZUZRE.js"),__vite__mapDeps([33,21,22,7,34,35]))),cA=_.lazy(()=>ke(()=>import("./ArticleDetailPage-nwYn96uC.js"),__vite__mapDeps([36,21,22,34,7]))),uA=_.lazy(()=>ke(()=>import("./PodcastPage-D5GtzonA.js"),__vite__mapDeps([37,21,22,16,17,24,26,27,23]))),dA=_.lazy(()=>ke(()=>import("./PodcastDetailPage-CT4YFRj7.js"),__vite__mapDeps([38,21,22,7,34]))),fA=_.lazy(()=>ke(()=>import("./ChartsPage-BQlIt65t.js"),__vite__mapDeps([39,21,22,24,19]))),hA=_.lazy(()=>ke(()=>import("./StorePage-D9elrNXl.js"),__vite__mapDeps([40,41,42,24,43]))),mA=_.lazy(()=>ke(()=>import("./ThankYouPage-CKDzSuKf.js"),__vite__mapDeps([44,21,22]))),pA=_.lazy(()=>ke(()=>import("./StoreDetailPage-Don56_sN.js"),__vite__mapDeps([45,21,22,41,42,34,46]))),gA=_.lazy(()=>ke(()=>import("./ServerErrorPage-Bw-dnx3I.js"),[])),vA=_.lazy(()=>ke(()=>import("./ForbiddenPage-BtCMcdjv.js"),[])),yA=_.lazy(()=>ke(()=>import("./SitemapPage-OGfRRqVD.js"),[])),bA=_.lazy(()=>ke(()=>import("./ResetPasswordPage-DBm66_nU.js"),__vite__mapDeps([47,48]))),_A=_.lazy(()=>ke(()=>import("./VerifyEmailPage-tGary5Rt.js"),__vite__mapDeps([49,50]))),SA=_.lazy(()=>ke(()=>import("./VerifyEmailChangePage-O0qq1Pzm.js"),__vite__mapDeps([51,50]))),oa=_.lazy(()=>ke(()=>import("./PageDetailPage-DyTGeMlo.js"),__vite__mapDeps([52,6,7,8,5,21,22,34,53]))),xA=_.lazy(()=>ke(()=>import("./VolunteerDirectoryPage-BOd-91tv.js"),__vite__mapDeps([54,24,10,55]))),EA=new Jx({defaultOptions:{queries:{staleTime:300*1e3,gcTime:120*1e3,refetchOnWindowFocus:!1}}});function wA(){return o.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:[o.jsx("div",{style:{width:32,height:32,border:"3px solid #e5e7eb",borderTopColor:"#6b7280",borderRadius:"50%",animation:"spin 0.6s linear infinite"}}),o.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg) } }"})]})}function jA(){const t=yn(),r=Ge.isNativePlatform();return _.useEffect(()=>{(async()=>{if(Fa.log("[SPLASH] RootRedirect: Starting platform check at",Date.now()),r){if(Ge.getPlatform()==="android")try{if((await(await ke(async()=>{const{default:f}=await Promise.resolve().then(()=>Fy);return{default:f}},void 0)).default.isAutomotive()).isAutomotive){Fa.log("[SPLASH] RootRedirect: Navigating to Android Auto at",Date.now()),t("/android-auto",{replace:!0});return}}catch(c){Fa.error("[RootRedirect] Failed to detect Android Automotive:",c)}Fa.log("[SPLASH] RootRedirect: Navigating to /app at",Date.now()),t("/app",{replace:!0})}})()},[t,r]),r?null:o.jsx(M2,{children:o.jsx(Gj,{})})}function AA(){const{slug:t}=sS();return o.jsx(ul,{to:`/blog/${t}`,replace:!0})}function TA(){const{isLoggedIn:t,isAuthPending:r}=Wr();return _.useEffect(()=>{if(r)return;const i=t&&(Wt.getItem(Rt.DARK_MODE)||Qr.getItem(Rt.DARK_MODE))||"light";Mc(i);const s=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>{if(!t)return;(Wt.getItem(Rt.DARK_MODE)||Qr.getItem(Rt.DARK_MODE)||"light")==="device"&&Mc("device")};return s.addEventListener("change",c),()=>{s.removeEventListener("change",c)}},[t,r]),null}function NA(){_.useEffect(()=>{(async()=>{if(!(Ge.getPlatform()==="android")){Fa.log("Not Android platform");return}try{const u=(await(await ke(async()=>{const{default:f}=await Promise.resolve().then(()=>Fy);return{default:f}},void 0)).default.isAutomotive()).isAutomotive;Fa.log(`Android Automotive detection: isAutomotive=${u}`),u?(document.body.classList.add("android-automotive"),Fa.log("Android Automotive OS detected - applying car-optimized UI")):(document.body.classList.remove("android-automotive"),Fa.log("Not Android Automotive OS"))}catch(s){Fa.error("Failed to detect Android Automotive:",s)}})()},[]);const t=Ge.isNativePlatform()?ZS:VS;return o.jsxs(xy,{children:[o.jsx(qc,{defaultTitle:"CHIRP Radio 107.1 FM",titleTemplate:"%s | CHIRP Radio 107.1 FM"}),o.jsxs(Wx,{client:EA,children:[o.jsxs(_4,{children:[o.jsx(TA,{}),o.jsxs(j4,{children:[o.jsx(wE,{}),o.jsx(E4,{children:o.jsx(vE,{autoFetch:!0,streamUrl:Fc,children:o.jsxs(t,{children:[o.jsx("a",{href:"#main-content",className:"skip-link",children:"Skip to main content"}),o.jsx(jE,{}),o.jsx(TE,{}),o.jsx(_.Suspense,{fallback:o.jsx(wA,{}
67),children:o.jsxs(_S,{children:[o.jsx(je,{index:!0,element:o.jsx(jA,{})}),o.jsx(je,{path:"/android-auto",element:o.jsx(Jj,{})}),Ge.isNativePlatform()?o.jsxs(je,{path:"/app",element:o.jsx(R3,{}),children:[o.jsx(je,{index:!0,element:o.jsx(qf,{})}),o.jsx(je,{path:"now-playing",element:o.jsx(qf,{})}),o.jsx(je,{path:"recently-played",element:o.jsx(Wj,{})}),o.jsx(je,{path:"my-collection",element:o.jsx(Ov,{})}),o.jsx(je,{path:"request",element:o.jsx(Mv,{})}),o.jsx(je,{path:"settings",element:o.jsx(Dv,{})}),o.jsx(je,{path:"*",element:o.jsx(qf,{})})]}):o.jsx(je,{path:"/app/*",element:o.jsx(ul,{to:"/",replace:!0})}),o.jsxs(je,{element:o.jsx(M2,{}),children:[o.jsx(je,{path:"playlist",element:o.jsx(eA,{})}),o.jsx(je,{path:"listen",element:o.jsx(ul,{to:"/playlist",replace:!0})}),o.jsx(je,{path:"other-ways-to-listen",element:o.jsx(oa,{})}),o.jsx(je,{path:"events",element:o.jsx(aA,{})}),o.jsx(je,{path:"events/:slug",element:o.jsx(oA,{})}),o.jsx(je,{path:"blog",element:o.jsx(rA,{})}),o.jsx(je,{path:"blog/:slug",element:o.jsx(cA,{})}),o.jsx(je,{path:"articles",element:o.jsx(ul,{to:"/blog",replace:!0})}),o.jsx(je,{path:"articles/:slug",element:o.jsx(AA,{})}),o.jsx(je,{path:"podcasts",element:o.jsx(uA,{})}),o.jsx(je,{path:"podcasts/:slug",element:o.jsx(dA,{})}),o.jsx(je,{path:"charts",element:o.jsx(fA,{})}),o.jsx(je,{path:"djs",element:o.jsx(iA,{})}),o.jsx(je,{path:"djs/:id",element:o.jsx(lA,{})}),o.jsx(je,{path:"schedule",element:o.jsx(sA,{})}),o.jsx(je,{path:"store",element:o.jsx(hA,{})}),o.jsx(je,{path:"store/:slug",element:o.jsx(pA,{})}),o.jsx(je,{path:"store/checkout",element:o.jsx(tA,{})}),o.jsx(je,{path:"store/success",element:o.jsx(nA,{})}),o.jsx(je,{path:"donate",element:o.jsx(oa,{})}),o.jsx(je,{path:"vinyl-circle",element:o.jsx(oa,{})}),o.jsx(je,{path:"other-ways-to-give",element:o.jsx(oa,{})}),o.jsx(je,{path:"car-donation",element:o.jsx(oa,{})}),o.jsx(je,{path:"about",element:o.jsx(oa,{})}),o.jsx(je,{path:"contests",element:o.jsx(oa,{})}),o.jsx(je,{path:"contact",element:o.jsx(oa,{})}),o.jsx(je,{path:"profile",element:o.jsx(Dv,{})}),o.jsx(je,{path:"collection",element:o.jsx(Ov,{})}),o.jsx(je,{path:"volunteer-directory",element:o.jsx(CE,{children:o.jsx(xA,{})})}),o.jsx(je,{path:"request-song",element:o.jsx(Mv,{})}),o.jsx(je,{path:"thank-you",element:o.jsx(mA,{})}),o.jsx(je,{path:"privacy-policy",element:o.jsx(oa,{})}),o.jsx(je,{path:"terms-of-service",element:o.jsx(oa,{})}),o.jsx(je,{path:"sitemap",element:o.jsx(yA,{})}),o.jsx(je,{path:"reset-password",element:o.jsx(bA,{})}),o.jsx(je,{path:"verify-email/:token",element:o.jsx(_A,{})}),o.jsx(je,{path:"verify-email-change/:token",element:o.jsx(SA,{})}),o.jsx(je,{path:"403",element:o.jsx(vA,{})}),o.jsx(je,{path:"500",element:o.jsx(gA,{})}),o.jsx(je,{path:":slug",element:o.jsx(oa,{})}),o.jsx(je,{path:"*",element:o.jsx(Xj,{})})]})]})})]})})})]})]}),!1]})]})}const pn=tt("Main");window.addEventListener("vite:preloadError",()=>{window.location.reload()});const K2=Ge.getPlatform(),CA=!0;K2==="web"&&CA&&T6("GTM-56V7M9S");K2==="android"&&(document.body.classList.add("platform-android"),(async()=>{try{const i=(await A6.getInfo()).height??24,s=async()=>{try{return(await N6.getNavigationBarHeight()).height}catch(f){return pn.error("[3BTN] Failed to get nav bar height from native:",f),0}},c=async()=>{const f=await s();document.documentElement.style.setProperty("--safe-area-inset-top",`${i}px`),document.documentElement.style.setProperty("--safe-area-inset-bottom",`${f}px`),document.documentElement.style.setProperty("--safe-area-inset-left","0px"),document.documentElement.style.setProperty("--safe-area-inset-right","0px"),f>100?(document.body.classList.add("nav-three-button"),document.body.classList.remove("nav-gestural"),pn.log("[3BTN] THREE-BUTTON MODE DETECTED"),pn.log("[3BTN] System inset bottom (from Android API):",f+"px"),pn.log("[3BTN] Using system inset directly for padding and background")):(document.body.classList.add("nav-gestural"),document.body.classList.remove("nav-three-button"),pn.log("[3BTN] GESTURAL MODE DETECTED"),pn.log("[3BTN] System inset bottom (from Android API):",f+"px"),pn.log("[3BTN] Minimal or no navigation bar")),pn.log("[3BTN] Screen height:",window.screen.height),pn.log("[3BTN] Window height:",window.innerHeight),pn.log("[3BTN] Status bar height:",i),pn.log("[3BTN] CSS --safe-area-inset-top:",getComputedStyle(document.documentElement).getPropertyValue("--safe-area-inset-top")),pn.log("[3BTN] CSS --safe-area-inset-bottom:",getComputedStyle(document.documentElement).getPropertyValue("--safe-area-inset-bottom"))};c();const u=()=>c();
67window.addEventListener("resize",u),window.visualViewport?.addEventListener("resize",u),mh.addListener("appStateChange",({isActive:f})=>{f&&c()})}catch(r){pn.error("Failed to setup safe area insets:",r)}})());pn.log("[SPLASH] main.tsx: Starting React render at",Date.now());h6.createRoot(document.getElementById("root")).render(o.jsx(__,{children:o.jsx(NA,{})}));export{rT as $,_w as A,BA as B,Mf as C,qA as D,FA as E,aT as F,yw as G,qc as H,xT as I,ET as J,ST as K,Kj as L,QA as M,ul as N,KA as O,m_ as P,_r as Q,bt as R,c2 as S,rn as T,Gy as U,D2 as V,Iv as W,U4 as X,Vc as Y,zh as Z,sS as _,hE as a,oT as a$,Vj as a0,xl as a1,VA as a2,ZA as a3,cT as a4,wT as a5,jT as a6,AT as a7,k2 as a8,en as a9,Hi as aA,NT as aB,yT as aC,bT as aD,OA as aE,Tc as aF,Zf as aG,kh as aH,Ea as aI,fT as aJ,w4 as aK,Ut as aL,T2 as aM,LA as aN,Oe as aO,it as aP,iv as aQ,yl as aR,r_ as aS,eT as aT,e3 as aU,Q4 as aV,kc as aW,HA as aX,fa as aY,rv as aZ,iT as a_,Gv as aa,uT as ab,Sl as ac,pl as ad,xe as ae,hT as af,$6 as ag,Vf as ah,Ml as ai,Lv as aj,RA as ak,xr as al,c_ as am,Wr as an,Jr as ao,Br as ap,S6 as aq,tT as ar,gE as as,Ki as at,WA as au,mT as av,Vv as aw,lT as ax,YA as ay,$A as az,ti as b,dT as b0,On as b1,ke as b2,o2 as b3,XA as b4,Ge as b5,MA as b6,Sw as b7,Zr as b8,b2 as b9,p_ as bA,Bh as bB,K6 as bC,Rf as bD,v_ as bE,n_ as bF,IA as bG,Rt as bH,Qr as bI,Wt as bJ,dl as bK,Mc as bL,UA as bM,PA as bN,EE as bO,n3 as ba,Dc as bb,gh as bc,N4 as bd,I6 as be,U6 as bf,X6 as bg,ei as bh,JA as bi,Hh as bj,Gc as bk,qi as bl,Va as bm,Nl as bn,Rl as bo,N2 as bp,y2 as bq,S2 as br,Zi as bs,Qw as bt,Xy as bu,zA as bv,nT as bw,Xj as bx,GA as by,s_ as bz,u2 as c,tt as d,Qj as e,fw as f,Jn as g,yn as h,DA as i,o as j,Jy as k,sT as l,lw as m,xv as n,_T as o,vw as p,gw as q,_ as r,tn as s,TT as t,t3 as u,pw as v,mw as w,pT as x,gT as y,vT as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.