import{w as vt,a as $t}from"./with-props-XrHcrnxs.js";import{j as a}from"./jsx-runtime-Byf2O5Qf.js";import{r as s,W as V,O as xt}from"./chunk-HA7DTUK3-Cv5eIhAv.js";import{R as A}from"./index-Df0NHxqr.js";import{c as Q}from"./clsx-B-dksMZM.js";import{u as yt,A as wt}from"./audio_provider-5j_L_-LS.js";import{a as Tt,P as jt}from"./play_icon-CcaL4HFC.js";import{W as Et}from"./waveform-C03_8Ncc.js";import{E as Mt}from"./errors-CQnLQ4Mi.js";import{i as Pt,j as kt,k as Lt}from"./index-hgEdn_vF.js";import{aq as Ct}from"./index-CryK06Hj.js";import{F as St}from"./index.es-HLHXff-Q.js";import{p as T}from"./meta_utils-D_IJ7Xw7.js";import"./index-DzGUYBzK.js";import"./conditional_render-C0njI6gk.js";function Xe({colors:e,...t}){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 10 10",...t,children:[a.jsx("path",{d:"M0 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5Z",className:e[0]}),a.jsx("path",{d:"M6 1a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1Z",className:e[1]})]})}function Ie({descriptionHtml:e,...t}){let[n,r]=s.useState(!1);return a.jsxs("section",{...t,children:[a.jsxs("h2",{className:"flex items-center font-mono text-sm/7 font-medium text-slate-900",children:[a.jsx(Xe,{colors:["fill-azure-300","fill-azure-700"],className:"h-2.5 w-2.5"}),a.jsx("span",{className:"ml-2.5",children:"About"})]}),a.jsx("div",{className:Q("mt-2 text-base/7 text-slate-700",!n&&"lg:line-clamp-4"),dangerouslySetInnerHTML:{__html:e}}),!n&&a.jsx("button",{type:"button",className:"text-azure-500 hover:text-azure-700 active:text-azure-900 mt-2 hidden text-sm/6 font-bold lg:inline-block",onClick:()=>r(!0),children:"Show more"})]})}function Ft(e){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",...e,children:[a.jsx("path",{d:"M16 5L19 8M19 8L16 11M19 8H10.5C7.46243 8 5 10.4624 5 13.5C5 15.4826 5.85204 17.2202 7 18.188",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M13 15V19",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16 18V16C16 15.4477 16.4477 15 17 15H18C18.5523 15 19 15.4477 19 16V18C19 18.5523 18.5523 19 18 19H17C16.4477 19 16 18.5523 16 18Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Vt({player:e,amount:t=10}){return a.jsxs("button",{type:"button",className:"group relative rounded-full focus:outline-hidden",onClick:()=>e.seekBy(t),"aria-label":`Fast-forward ${t} seconds`,children:[a.jsx("div",{className:"absolute -inset-4 -left-2 md:hidden"}),a.jsx(Ft,{className:"h-6 w-6 stroke-slate-500 group-hover:stroke-slate-700"})]})}function Dt({muted:e,...t}){return a.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:e?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 6L8 10H6C5.44772 10 5 10.4477 5 11V13C5 13.5523 5.44772 14 6 14H8L12 18V6Z"}),a.jsx("path",{d:"M16 10L19 13",fill:"none"}),a.jsx("path",{d:"M19 10L16 13",fill:"none"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 6L8 10H6C5.44772 10 5 10.4477 5 11V13C5 13.5523 5.44772 14 6 14H8L12 18V6Z"}),a.jsx("path",{d:"M17 7C17 7 19 9 19 12C19 15 17 17 17 17",fill:"none"}),a.jsx("path",{d:"M15.5 10.5C15.5 10.5 16 10.9998 16 11.9999C16 13 15.5 13.5 15.5 13.5",fill:"none"})]})})}function He({player:e}){return a.jsxs("button",{type:"button",className:"group relative rounded-md hover:bg-slate-100 focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:outline-hidden md:order-0",onClick:()=>e.toggleMute(),"aria-label":e.muted?"Unmute":"Mute",children:[a.jsx("div",{className:"absolute -inset-4 md:hidden"}),a.jsx(Dt,{muted:e.muted,className:"h-6 w-6 fill-slate-500 stroke-slate-500 group-hover:fill-slate-700 group-hover:stroke-slate-700"})]})}const ce=[{value:1,icon:function(t){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[a.jsx("path",{d:"M13 1H3C1.89543 1 1 1.89543 1 3V13C1 14.1046 1.89543 15 3 15H13C14.1046 15 15 14.1046 15 13V3C15 1.89543 14.1046 1 13 1Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),a.jsx("path",{d:"M3.75 7.25L5.25 5.77539V11.25"}),a.jsx("path",{d:"M8.75 7.75L11.25 10.25"}),a.jsx("path",{d:"M11.25 7.75L8.75 10.25"})]})}},{value:1.5,icon:function(t){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[a.jsx("path",{d:"M13 1H3C1.89543 1 1 1.89543 1 3V13C1 14.1046 1.89543 15 3 15H13C14.1046 15 15 14.1046 15 13V3C15 1.89543 14.1046 1 13 1Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),a.jsx("path",{d:"M2.75 7.25L4.25 5.77539V11.25"}),a.jsx("path",{d:"M7.5 11C7.5 11.2761 7.27614 11.5 7 11.5C6.72386 11.5 6.5 11.2761 6.5 11C6.5 10.7239 6.72386 10.5 7 10.5C7.27614 10.5 7.5 10.7239 7.5 11Z",strokeWidth:"1"}),a.jsx("path",{d:"M12.25 5.75H9.75V8.25H10.75C11.5784 8.25 12.25 8.92157 12.25 9.75V9.75C12.25 10.5784 11.5784 11.25 10.75 11.25H9.75"})]})}},{value:2,icon:function(t){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[a.jsx("path",{d:"M13 1H3C1.89543 1 1 1.89543 1 3V13C1 14.1046 1.89543 15 3 15H13C14.1046 15 15 14.1046 15 13V3C15 1.89543 14.1046 1 13 1Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),a.jsx("path",{d:"M9.75 8.75L12.25 11.25"}),a.jsx("path",{d:"M12.25 8.75L9.75 11.25"}),a.jsx("path",{d:"M3.75 7.25C3.75 7.25 3.90144 5.75 5.63462 5.75C6.1633 5.75 6.5448 5.95936 6.81973 6.25035C7.67157 7.15197 6.97033 8.47328 6.0238 9.28942L3.75 11.25H7.25"})]})}}];function Nt({player:e}){let[t,n]=s.useState(ce[0]);return a.jsxs("button",{type:"button",className:"relative flex h-6 w-6 items-center justify-center rounded-md text-slate-500 hover:bg-slate-100 hover:text-slate-700 focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:outline-hidden",onClick:()=>{n(r=>{let l=(ce.indexOf(r)+1)%ce.length,i=ce[l];return e.playbackRate(i.value),i})},"aria-label":"Playback rate",children:[a.jsx("div",{className:"absolute -inset-4 md:hidden"}),a.jsx(t.icon,{className:"h-4 w-4"})]})}function Re({player:e}){let t=e.playing?Tt:jt;return a.jsxs("button",{type:"button",className:"group relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-slate-700 hover:bg-slate-900 focus:ring-2 focus:ring-slate-700 focus:ring-offset-2 focus:outline-hidden md:h-14 md:w-14",onClick:()=>e.toggle(),"aria-label":e.playing?"Pause":"Play",children:[a.jsx("div",{className:"absolute -inset-3 md:hidden"}),a.jsx(t,{className:"h-5 w-5 fill-white group-active:fill-white/80 md:h-7 md:w-7"})]})}function It(e){return a.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[a.jsx("path",{d:"M8 5L5 8M5 8L8 11M5 8H13.5C16.5376 8 19 10.4624 19 13.5C19 15.4826 18.148 17.2202 17 18.188"}),a.jsx("path",{d:"M5 15V19"}),a.jsx("path",{d:"M8 18V16C8 15.4477 8.44772 15 9 15H10C10.5523 15 11 15.4477 11 16V18C11 18.5523 10.5523 19 10 19H9C8.44772 19 8 18.5523 8 18Z"})]})}function Ht({player:e,amount:t=10}){return a.jsxs("button",{type:"button",className:"group relative rounded-full focus:outline-hidden",onClick:()=>e.seekBy(-t),"aria-label":`Rewind ${t} seconds`,children:[a.jsx("div",{className:"absolute -inset-4 -right-2 md:hidden"}),a.jsx(It,{className:"h-6 w-6 stroke-slate-500 group-hover:stroke-slate-700"})]})}const pe=typeof document<"u"?v.uselayouteffect:()=>{};var xe;const Rt=(xe=V.useInsertionEffect)!==null&&xe!==void 0?xe:pe;function be(e){const t=s.useRef(null);return Rt(()=>{t.current=e},[e]),s.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const qe={prefix:String(Math.round(Math.random()*1e10)),current:0},Ye=V.createContext(qe),Kt=V.createContext(!1);let ye=new WeakMap;function At(e=!1){let t=s.useContext(Ye),n=s.useRef(null);if(n.current===null&&!e){var r,o;let l=(o=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=ye.get(l);i==null?ye.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,ye.delete(l))}n.current=++t.current}return n.current}function Wt(e){let t=s.useContext(Ye),n=At(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Bt(e){let t=V.useId(),[n]=s.useState(Je()),r=n?"react-aria":`react-aria${qe.prefix}`;return e||`${r}-${t}`}const Ut=typeof V.useId=="function"?Bt:Wt;function zt(){return!1}function Gt(){return!0}function Ot(e){return()=>{}}function Je(){return typeof V.useSyncExternalStore=="function"?V.useSyncExternalStore(Ot,zt,Gt):s.useContext(Kt)}let Zt=!!(typeof window<"u"&&window.document&&window.document.createelement),_=new Map,ae;typeof FinalizationRegistry<"u"&&(ae=new FinalizationRegistry(e=>{_.delete(e)}));function we(e){let[t,n]=s.useState(e),r=s.useRef(null),o=Ut(t),l=s.useRef(null);if(ae&&ae.register(l,o),Zt){const i=_.get(o);i&&!i.includes(r)?i.push(r):_.set(o,[r])}return pe(()=>{let i=o;return()=>{ae&&ae.unregister(l),_.delete(i)}},[o]),s.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),o}function Xt(e,t){if(e===t)return e;let n=_.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=_.get(t);return r?(r.forEach(o=>o.current=e),e):t}function qt(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const I=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},G=e=>e&&"window"in e&&e.window===e?e:I(e).defaultView||window;function Yt(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Jt(e){return Yt(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Qt=!1;function Se(){return Qt}function _t(e,t){if(!Se())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Jt(n)?n=n.host:n=n.parentNode}return!1}const se=(e=document)=>{var t;if(!Se())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Qe(e){return Se()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function B(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=qt(l,i):(o==="classname"||o==="unsafe_classname")&&typeof l=="string"&&typeof i=="string"?t[o]=Q(l,i):o==="id"&&l&&i?t.id=Xt(l,i):t[o]=i!==void 0?i:l}}return t}function Te(e){if(en())e.focus({preventScroll:!0});else{let t=tn(e);e.focus(),nn(t)}}let de=null;function en(){if(de==null){de=!1;try{document.createElement("div").focus({get preventScroll(){return de=!0,!0}})}catch{}}return de}function tn(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Fe(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.useragentdata)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ue(e){let t=null;return()=>(t==null&&(t=e()),t)}const _e=ue(function(){return Fe(/^Mac/i)}),on=ue(function(){return Fe(/^iPhone/i)}),an=ue(function(){return Fe(/^iPad/i)||_e()&&navigator.maxTouchPoints>1}),et=ue(function(){return on()||an()}),ln=ue(function(){return rn(/Android/i)});let W=new Map,je=new Set;function Ke(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=W.get(r.target);o||(o=new Set,W.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=W.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),W.delete(r.target)),W.size===0)){for(let l of je)l();je.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readystate!=="loading"?ke():document.addeventlistener("domcontentloaded",ke));function sn(){for(const[e]of W)"isConnected"in e&&!e.isConnected&&W.delete(e)}function tt(e){requestAnimationFrame(()=>{sn(),W.size===0?e():je.add(e)})}function ge(){let e=s.useRef(new Map),t=s.useCallback((o,l,i,c)=>{let m=c!=null&&c.once?(...$)=>{e.current.delete(i),i(...$)}:i;e.current.set(i,{type:l,eventTarget:o,fn:m,options:c}),o.addEventListener(l,m,c)},[]),n=s.useCallback((o,l,i,c)=>{var m;let $=((m=e.current.get(i))===null||m===void 0?void 0:m.fn)||i;o.removeEventListener(l,,ドルc),e.current.delete(i)},[]),r=s.useCallback(()=>{e.current.forEach((o,l)=>{n(o.eventTarget,o.type,l,o.options)})},[n]);return s.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function un(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=we(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function cn(e,t){pe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function dn(e){return e.pointerType===""&&e.isTrusted?!0:ln()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fn(e,t,n){let r=be(()=>{n&&n(t)});s.useEffect(()=>{var o;let l=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",r),()=>{l==null||l.removeEventListener("reset",r)}},[e,r])}function mn(e,t,n){let[r,o]=s.useState(e||t),l=s.useRef(e!==void 0),i=e!==void 0;s.useEffect(()=>{l.current,l.current=i},[i]);let c=i?e:r,m=s.useCallback((,ドル...f)=>{let b=(p,...d)=>{n&&(Object.is(c,p)||n(p,...d)),i||(c=p)};typeof $=="function"?o((d,...w)=>{let g=$(i?c:d,...w);return b(g,...f),i?d:g}):(i||o($),b(,ドル...f))},[i,c,n]);return[c,m]}function Ve(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function fe(e,t){let n=e,r=0,o=t.toString(),l=o.toLowerCase().indexOf("e-");if(l>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+l;else{let i=o.indexOf(".");i>=0&&(r=o.length-i)}if(r>0){let i=Math.pow(10,r);n=Math.round(n*i)/i}return n}function oe(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,l=fe(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&l>n&&(l=Math.floor(fe(n/r,r))*r):ln&&(l=t+Math.floor(fe((n-t)/r,r))*r),l=fe(l,r),l}function nt(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bn(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function rt(e){let t=s.useRef({isFocused:!1,observer:null});pe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=be(r=>{e==null||e(r)});return s.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,l=i=>{if(t.current.isFocused=!1,o.disabled){let c=nt(i);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let c=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let hn=!1,J="default",Ee="",me=new WeakMap;function pn(e){if(et()){if(J==="default"){const t=I(e);Ee=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}J="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";me.set(e,e.style[t]),e.style[t]="none"}}function gn(e){if(et()){if(J!=="disabled")return;J="restoring",setTimeout(()=>{tt(()=>{if(J==="restoring"){const t=I(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ee||""),Ee="",J="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&me.has(e)){let t=me.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),me.delete(e)}}let Z=null,Me=new Set,ie=new Map,O=!1,Pe=!1;const vn={Tab:!0,Escape:!0};function ve(e,t){for(let n of Me)n(e,t)}function $n(e){return!(e.metaKey||!_e()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function he(e){O=!0,$n(e)&&(Z="keyboard",ve("keyboard",e))}function ee(e){Z="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(O=!0,ve("pointer",e))}function ot(e){dn(e)&&(O=!0,Z="virtual")}function at(e){e.target===window||e.target===document||hn||!e.isTrusted||(!O&&!Pe&&(Z="virtual",ve("virtual",e)),O=!1,Pe=!1)}function lt(){O=!1,Pe=!0}function ke(e){if(typeof window>"u"||typeof document>"u"||ie.get(G(e)))return;const t=G(e),n=I(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){O=!0,r.apply(this,arguments)},n.addEventListener("keydown",he,!0),n.addEventListener("keyup",he,!0),n.addEventListener("click",ot,!0),t.addEventListener("focus",at,!0),t.addEventListener("blur",lt,!1),typeof PointerEvent<"u"&&(n.addeventlistener("pointerdown",ee,!0),n.addeventlistener("pointermove",ee,!0),n.addeventlistener("pointerup",ee,!0)),t.addeventlistener("beforeunload",()=>{it(e)},{once:!0}),ie.set(t,{focus:r})}const it=(e,t)=>{const n=G(e),r=I(e);t&&r.removeEventListener("DOMContentLoaded",t),ie.has(n)&&(n.HTMLElement.prototype.focus=ie.get(n).focus,r.removeEventListener("keydown",he,!0),r.removeEventListener("keyup",he,!0),r.removeEventListener("click",ot,!0),n.removeEventListener("focus",at,!0),n.removeEventListener("blur",lt,!1),typeof PointerEvent<"u"&&(r.removeeventlistener("pointerdown",ee,!0),r.removeeventlistener("pointermove",ee,!0),r.removeeventlistener("pointerup",ee,!0)),ie.delete(n))};function xn(e){const t=I(e);let n;return t.readyState!=="loading"?ke(e):(n=()=>{ke(e)},t.addEventListener("DOMContentLoaded",n)),()=>it(e,n)}typeof document<"u"&&xn();function st(){return Z!=="pointer"}function yn(){return Z}function wn(e){Z=e,ve(e,null)}const Tn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jn(e,t,n){let r=I(n==null?void 0:n.target);const o=typeof window<"u"?g(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?g(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?g(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?g(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!Tn.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!vn[n.key])}function En(e,t,n){ke(),s.useEffect(()=>{let r=(o,l)=>{jn(!!(n!=null&&n.isTextInput),o,l)&&e(st())};return Me.add(r),()=>{Me.delete(r)}},t)}function Mn(e){const t=I(e),n=se(t);if(yn()==="virtual"){let r=n;tt(()=>{se(t)===r&&e.isConnected&&Te(e)})}else Te(e)}function ut(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const l=s.useCallback(m=>{if(m.target===m.currentTarget)return r&&r(m),o&&o(!1),!0},[r,o]),i=rt(l),c=s.useCallback(m=>{const $=I(m.target),f=$?se($):se();m.target===m.currentTarget&&f===Qe(m.nativeEvent)&&(n&&n(m),o&&o(!0),i(m))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:!t&&(r||o)?l:void 0}}}function Ae(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function ct(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ae(e.onKeyDown),onKeyUp:Ae(e.onKeyUp)}}}let Pn=V.createContext(null);function kn(e){let t=s.useContext(Pn)||{};cn(t,e);let{ref:n,...r}=t;return r}function Ln(e,t){let{focusProps:n}=ut(e),{keyboardProps:r}=ct(e),o=B(n,r),l=kn(t),i=e.isDisabled?{}:l,c=s.useRef(e.autoFocus);s.useEffect(()=>{c.current&&t.current&&Mn(t.current),c.current=!1},[t]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:B({...o,tabIndex:m},i)}}function dt(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,l=s.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:c}=ge(),m=s.useCallback(b=>{b.currentTarget.contains(b.target)&&l.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(l.current.isFocusWithin=!1,c(),n&&n(b),o&&o(!1))},[n,o,l,c]),$=rt(m),f=s.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const p=I(b.target),d=se(p);if(!l.current.isFocusWithin&&d===Qe(b.nativeEvent)){r&&r(b),o&&o(!0),l.current.isFocusWithin=!0,$(b);let w=b.currentTarget;i(p,"focus",g=>{if(l.current.isFocusWithin&&!_t(w,g.target)){let y=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});bn(y,w);let h=nt(y);m(h)}},{capture:!0})}},[r,o,,ドルi,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:m}}}function ft(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=s.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:l,removeGlobalListener:i}=ge(),c=be((f,b,p,d)=>{p===0&&d===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:b,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:b,deltaX:p,deltaY:d,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),m=be((f,b)=>{gn(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:b,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:s.useMemo(()=>{let f={},b=()=>{pn(),o.current.didMove=!1};{let d=g=>{if(g.pointerId===o.current.id){var y,h;let D=g.pointerType||"mouse";var j,k;c(g,D,g.pageX-((j=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&j!==void 0?j:0),g.pageY-((k=(h=o.current.lastPosition)===null||h===void 0?void 0:h.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},w=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";m(g,y),o.current.id=null,i(window,"pointermove",d,!1),i(window,"pointerup",w,!1),i(window,"pointercancel",w,!1)}};f.onPointerDown=g=>{g.button===0&&o.current.id==null&&(b(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,l(window,"pointermove",d,!1),l(window,"pointerup",w,!1),l(window,"pointercancel",w,!1))}}let p=(d,w,g)=>{b(),c(d,"keyboard",w,g),m(d,"keyboard")};return f.onKeyDown=d=>{switch(d.key){case"Left":case"ArrowLeft":d.preventDefault(),d.stopPropagation(),p(d,-1,0);break;case"Right":case"ArrowRight":d.preventDefault(),d.stopPropagation(),p(d,1,0);break;case"Up":case"ArrowUp":d.preventDefault(),d.stopPropagation(),p(d,0,-1);break;case"Down":case"ArrowDown":d.preventDefault(),d.stopPropagation(),p(d,0,1);break}},f},[o,l,i,c,m])}}const Cn=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Sn=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Fn(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Cn.has(n.script)}let t=e.split("-")[0];return Sn.has(t)}const Vn=Symbol.for("react-aria.i18n.locale");function mt(){let e=typeof window<"u"&&window[vn]||typeof navigator<"u"&&(navigator.language||navigator.userlanguage)||"en-us";try{intl.datetimeformat.supportedlocalesof([e])}catch{e="en-us"}return{locale:e,direction:fn(e)?"rtl":"ltr"}}let Le=mt(),le=new Set;function We(){Le=mt();for(let e of le)e(Le)}function Dn(){let e=Je(),[t,n]=s.useState(Le);return s.useEffect(()=>(le.size===0&&window.addEventListener("languagechange",We),le.add(n),()=>{le.delete(n),le.size===0&&window.removeEventListener("languagechange",We)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Nn=V.createContext(null);function bt(){let e=Dn();return s.useContext(Nn)||e}function In(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=s.useRef({isFocused:!1,isFocusVisible:t||st()}),[l,i]=s.useState(!1),[c,m]=s.useState(()=>o.current.isFocused&&o.current.isFocusVisible),$=s.useCallback(()=>m(o.current.isFocused&&o.current.isFocusVisible),[]),f=s.useCallback(d=>{o.current.isFocused=d,i(d),$()},[$]);En(d=>{o.current.isFocusVisible=d,$()},[],{isTextInput:n});let{focusProps:b}=ut({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=dt({isDisabled:!r,onFocusWithinChange:f});return{isFocused:l,isFocusVisible:c,focusProps:r?p:b}}function ht(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:l="label"}=e;t=we(t);let i=we(),c={};n&&(r=r?`${i} ${r}`:i,c={id:i,htmlFor:l==="label"?t:void 0});let m=un({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:c,fieldProps:m}}const Hn=0,Rn=100,Kn=1;function An(e){const{isDisabled:t=!1,minValue:n=Hn,maxValue:r=Rn,numberFormatter:o,step:l=Kn,orientation:i="horizontal"}=e;let c=s.useMemo(()=>{let u=(r-n)/10;return u=oe(u,0,u+l,l),Math.max(u,l)},[l,r,n]),m=s.useCallback(u=>u==null?void 0:u.map((x,M)=>{let q=M===0?n:u[M-1],Y=M===u.length-1?r:u[M+1];return oe(x,q,Y,l)}),[n,r,l]),$=s.useMemo(()=>m(Ue(e.value)),[e.value,m]),f=s.useMemo(()=>{var u;return m((u=Ue(e.defaultValue))!==null&&u!==void 0?u:[n])},[e.defaultValue,n,m]),b=ze(e.value,e.defaultValue,e.onChange),p=ze(e.value,e.defaultValue,e.onChangeEnd);const[d,w]=mn(,ドルf,b);let[g]=s.useState(d);const[y,h]=s.useState(new Array(d.length).fill(!1)),j=s.useRef(new Array(d.length).fill(!0)),[k,D]=s.useState(void 0),L=s.useRef(d),E=s.useRef(y);let H=u=>{L.current=u,w(u)},R=u=>{E.current=u,h(u)};function X(u){return(u-n)/(r-n)}function te(u){return u===0?n:d[u-1]}function ne(u){return u===d.length-1?r:d[u+1]}function U(u){return j.current[u]}function K(u,x){j.current[u]=x}function P(u,x){if(t||!U(u))return;const M=te(u),q=ne(u);x=oe(x,M,q,l);let Y=Be(L.current,u,x);H(Y)}function C(u,x){if(t||!U(u))return;x&&(L.current=d);const M=E.current[u];E.current=Be(E.current,u,x),R(E.current),p&&M&&!E.current.some(Boolean)&&p(L.current)}function S(u){return o.format(u)}function v(u,x){P(u,N(x))}function F(u){return Math.round((u-n)/l)*l+n}function N(u){const x=u*(r-n)+n;return Ve(F(x),n,r)}function z(u,x=1){let M=Math.max(x,l);P(u,oe(d[u]+M,n,r,l))}function re(u,x=1){let M=Math.max(x,l);P(u,oe(d[u]-M,n,r,l))}return{values:d,defaultValues:e.defaultValue!==void 0?f:g,getThumbValue:u=>d[u],setThumbValue:P,setThumbPercent:v,isThumbDragging:u=>y[u],setThumbDragging:C,focusedThumb:k,setFocusedThumb:D,getThumbPercent:u=>X(d[u]),getValuePercent:X,getThumbValueLabel:u=>S(d[u]),getFormattedValue:S,getThumbMinValue:te,getThumbMaxValue:ne,getPercentValue:N,isThumbEditable:U,setThumbEditable:K,incrementThumb:z,decrementThumb:re,step:l,pageSize:c,orientation:i,isDisabled:t}}function Be(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Ue(e){if(e!=null)return Array.isArray(e)?e:[e]}function ze(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const Ge={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Wn(e={}){let{style:t,isFocusable:n}=e,[r,o]=s.useState(!1),{focusWithinProps:l}=dt({isDisabled:!n,onFocusWithinChange:c=>o(c)}),i=s.useMemo(()=>r?t:t?{...Ge,...t}:Ge,[r]);return{visuallyHiddenProps:{...l,style:i}}}function Bn(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...l}=e,{visuallyHiddenProps:i}=Wn(e);return V.createElement(n,B(l,i),t)}const De=new WeakMap;function Ce(e,t){let n=De.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function Un(e,t,n){let{labelProps:r,fieldProps:o}=ht(e),l=e.orientation==="vertical";var i;De.set(t,{id:(i=r.id)!==null&&i!==void 0?i:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:c}=bt(),{addGlobalListener:m,removeGlobalListener:$}=ge();const f=s.useRef(null),b=c==="rtl",p=s.useRef(null),{moveProps:d}=ft({onMoveStart(){p.current=null},onMove({deltaX:h,deltaY:j}){if(!n.current)return;let{height:k,width:D}=n.current.getBoundingClientRect(),L=l?k:D;p.current==null&&f.current!=null&&(p.current=t.getThumbPercent(f.current)*L);let E=l?j:h;if((l||b)&&(E=-E),p.current+=E,f.current!=null&&n.current){const H=Ve(p.current/L,0,1);t.setThumbPercent(f.current,H)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let w=s.useRef(void 0),g=(h,j,k,D)=>{if(n.current&&!e.isDisabled&&t.values.every((L,E)=>!t.isThumbDragging(E))){let{height:L,width:E,top:H,left:R}=n.current.getBoundingClientRect(),X=l?L:E,K=((l?D:k)-(l?H:R))/X;(c==="rtl"||l)&&(K=1-K);let P=t.getPercentValue(K),C,S=t.values.findIndex(v=>P-v<0);if(s===0)c=s;else if(S===-1)C=t.values.length-1;else{let v=t.values[S-1],F=t.values[S];Math.abs(v-P)=0&&t.isThumbEditable(C)?(h.preventDefault(),f.current=C,t.setFocusedThumb(C),w.current=j,t.setThumbDragging(f.current,!0),t.setThumbValue(C,P),m(window,"mouseup",y,!1),m(window,"touchend",y,!1),m(window,"pointerup",y,!1)):f.current=null}},y=h=>{var j,k;((k=h.pointerId)!==null&&k!==void 0?k:(j=h.changedTouches)===null||j===void 0?void 0:j[0].identifier)===w.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),$(window,"mouseup",y,!1),$(window,"touchend",y,!1),$(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var h;(h=document.getElementById(Ce(t,0)))===null||h===void 0||h.focus(),wn("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:B({onMouseDown(h){h.button!==0||h.altKey||h.ctrlKey||h.metaKey||g(h,void 0,h.clientX,h.clientY)},onPointerDown(h){h.pointerType==="mouse"&&(h.button!==0||h.altKey||h.ctrlKey||h.metaKey)||g(h,h.pointerId,h.clientX,h.clientY)},onTouchStart(h){g(h,h.changedTouches[0].identifier,h.changedTouches[0].clientX,h.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},d),outputProps:{htmlFor:t.values.map((h,j)=>Ce(t,j)).join(" "),"aria-live":"off"}}}function zn(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:l,trackRef:i,inputRef:c,orientation:m=t.orientation,name:,ドルform:f}=e,b=e.isDisabled||t.isDisabled,p=m==="vertical",{direction:d}=bt(),{addGlobalListener:w,removeGlobalListener:g}=ge(),y=De.get(t);var h;const{labelProps:j,fieldProps:k}=ht({...e,id:Ce(t,n),"aria-labelledby":`${y.id} ${(h=e["aria-labelledby"])!==null&&h!==void 0?h:""}`.trim()}),D=t.values[n],L=s.useCallback(()=>{c.current&&Te(c.current)},[c]),E=t.focusedThumb===n;s.useEffect(()=>{E&&L()},[E,L]);let H=d==="rtl",R=s.useRef(null),{keyboardProps:X}=ct({onKeyDown(v){let{getThumbMaxValue:F,getThumbMinValue:N,decrementThumb:z,incrementThumb:re,setThumbValue:u,setThumbDragging:x,pageSize:M}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(v.key)){v.continuePropagation();return}switch(v.preventDefault(),x(n,!0),v.key){case"PageUp":re(n,M);break;case"PageDown":z(n,M);break;case"Home":u(n,N(n));break;case"End":u(n,F(n));break}x(n,!1)}}),{moveProps:te}=ft({onMoveStart(){R.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:v,deltaY:F,pointerType:N,shiftKey:z}){const{getThumbPercent:re,setThumbPercent:u,decrementThumb:x,incrementThumb:M,step:q,pageSize:Y}=t;if(!i.current)return;let{width:pt,height:gt}=i.current.getBoundingClientRect(),Ne=p?gt:pt;if(R.current==null&&(R.current=re(n)*Ne),N==="keyboard")v>0&&H||v<0&&!h||f>0?x(n,z?Y:q):M(n,z?Y:q);else{let $e=p?F:v;(p||H)&&($e=-$e),R.current+=$e,u(n,Ve(R.current/Ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!b);const{focusableProps:ne}=Ln(B(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),c);let U=s.useRef(void 0),K=v=>{L(),U.current=v,t.setThumbDragging(n,!0),w(window,"mouseup",P,!1),w(window,"touchend",P,!1),w(window,"pointerup",P,!1)},P=v=>{var F,N;((N=v.pointerId)!==null&&N!==void 0?N:(F=v.changedTouches)===null||F===void 0?void 0:F[0].identifier)===U.current&&(L(),t.setThumbDragging(n,!1),g(window,"mouseup",P,!1),g(window,"touchend",P,!1),g(window,"pointerup",P,!1))},C=t.getThumbPercent(n);(p||d==="rtl")&&(C=1-C);let S=b?{}:B(X,te,{onMouseDown:v=>{v.button!==0||v.altKey||v.ctrlKey||v.metaKey||K()},onPointerDown:v=>{v.button!==0||v.altKey||v.ctrlKey||v.metaKey||K(v.pointerId)},onTouchStart:v=>{K(v.changedTouches[0].identifier)}});return fn(c,t.defaultValues[n],v=>{t.setThumbValue(n,v)}),{inputProps:B(ne,k,{type:"range",tabIndex:b?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:,ドルform:f,disabled:b,"aria-orientation":m,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":l||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[y["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:v=>{t.setThumbValue(n,parseFloat(v.target.value))}}),thumbProps:{...S,style:{position:"absolute",[p?"top":"left"]:`${C*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:j,isDragging:t.isThumbDragging(n),isDisabled:b,isFocused:E}}function Oe(e){let t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60);return e=e-t*3600-n*60,[t,n,e]}function Ze(e,t=e){let n=t.slice(t.findIndex(r=>r!==0));return e.slice(e.length-n.length).map(r=>r.toString().padStart(2,"0")).join(":")}function Gn(e){let{state:t,trackRef:n,focusProps:r,isFocusVisible:o,index:l}=e,i=s.useRef(null),{thumbProps:c,inputProps:m}=zn({index:l,trackRef:n,inputRef:i},t);return a.jsx("div",{className:"absolute top-1/2 -translate-x-1/2",style:{left:`${t.getThumbPercent(l)*100}%`},children:a.jsx("div",{...c,onMouseDown:(...$)=>{var f,b;(f=c.onMouseDown)==null||f.call(c,...$),(b=e.onChangeStart)==null||b.call(e)},onPointerDown:(...$)=>{var f,b;(f=c.onPointerDown)==null||f.call(c,...$),(b=e.onChangeStart)==null||b.call(e)},className:Q("h-4 rounded-full",o||t.isThumbDragging(l)?"w-1.5 bg-slate-900":"w-1 bg-slate-700"),children:a.jsx(Bn,{children:a.jsx("input",{ref:i,...B(m,r)})})})})}function On(e){let t=s.useRef(null),n=An(e),{groupProps:r,trackProps:o,labelProps:l,outputProps:i}=Un(e,n,t),{focusProps:c,isFocusVisible:m}=In(),$=Oe(n.getThumbValue(0)),f=Oe(n.getThumbMaxValue(0));return a.jsxs("div",{...r,className:"absolute inset-x-0 bottom-full flex flex-auto touch-none items-center gap-6 md:relative",children:[e.label&&a.jsx("label",{className:"sr-only",...l,children:e.label}),a.jsxs("div",{...o,onMouseDown:(...b)=>{var p,d;(p=o.onMouseDown)==null||p.call(o,...b),(d=e.onChangeStart)==null||d.call(e)},onPointerDown:(...b)=>{var p,d;(p=o.onPointerDown)==null||p.call(o,...b),(d=e.onChangeStart)==null||d.call(e)},ref:t,className:"relative w-full bg-slate-100 md:rounded-full",children:[a.jsx("div",{className:Q("h-2 md:rounded-l-xl md:rounded-r-md",m||n.isThumbDragging(0)?"bg-slate-900":"bg-slate-700"),style:{width:n.getThumbValue(0)===0?0:`calc(${n.getThumbPercent(0)*100}% - ${m||n.isThumbDragging(0)?"0.3125rem":"0.25rem"})`}}),a.jsx(Gn,{index:0,state:n,trackRef:t,onChangeStart:e.onChangeStart,focusProps:c,isFocusVisible:m})]}),a.jsxs("div",{className:"hidden items-center gap-2 md:flex",children:[a.jsx("output",{...i,"aria-live":"off",className:Q("hidden rounded-md px-1 py-0.5 font-mono text-sm/6 md:block",n.getThumbMaxValue(0)===0&&"opacity-0",m||n.isThumbDragging(0)?"bg-slate-100 text-slate-900":"text-slate-500"),children:Ze(,ドルf)}),a.jsx("span",{className:"text-sm/6 text-slate-300","aria-hidden":"true",children:"/"}),a.jsx("span",{className:Q("hidden rounded-md px-1 py-0.5 font-mono text-sm/6 text-slate-500 md:block",n.getThumbMaxValue(0)===0&&"opacity-0"),children:Ze(f)})]})]})}function Zn(e){let t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60);return e=e-t*3600-n*60,[t,n,e]}function Xn(e){let[t,n,r]=Zn(e);return`${t} hour${t===1?"":"s"}, ${n} minute${n===1?"":"s"}, ${r} second${r===1?"":"s"}`}function qn({name:e}){let t=yt(),n=s.useRef(!1),[r,o]=s.useState(t.currentTime);return s.useEffect(()=>{o(null)},[t.currentTime]),t.episode?a.jsxs("div",{className:"flex items-center gap-6 bg-white/90 px-4 py-4 shadow-sm shadow-slate-200/80 ring-slate-900/5 backdrop-blur-xs md:px-6",children:[a.jsx("div",{className:"hidden md:block",children:a.jsx(Re,{player:t})}),a.jsxs("div",{className:"mb-[env(safe-area-inset-bottom)] flex flex-1 flex-col gap-3 overflow-hidden p-1",children:[a.jsx(A,{to:`/podcasts/${e}/${t.episode.slug}`,className:"truncate text-center text-sm/6 font-bold md:text-left",title:t.episode.title,children:t.episode.title}),a.jsxs("div",{className:"flex justify-between gap-6",children:[a.jsx("div",{className:"flex items-center md:hidden",children:a.jsx(He,{player:t})}),a.jsxs("div",{className:"flex flex-none items-center gap-4",children:[a.jsx(Ht,{player:t}),a.jsx("div",{className:"md:hidden",children:a.jsx(Re,{player:t})}),a.jsx(Vt,{player:t})]}),a.jsx(On,{label:"Current time",maxValue:t.duration,step:1,value:[r??t.currentTime],onChange:([l])=>o(l),onChangeEnd:([l])=>{t.seek(l),n.current&&t.play()},numberFormatter:{format:Xn},onChangeStart:()=>{n.current=t.playing,t.pause()}}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:"flex items-center",children:a.jsx(Nt,{player:t})}),a.jsx("div",{className:"hidden items-center md:flex",children:a.jsx(He,{player:t})})]})]})]})]}):null}function Yn(e){return a.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 11 12",...e,children:a.jsx("path",{d:"M5.019 5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm3.29 7c1.175 0 2.12-1.046 1.567-2.083A5.5 5.5 0 0 0 5.019 7 5.5 5.5 0 0 0 .162 9.917C-.39 10.954.554 12 1.73 12h6.578Z"})})}const fr=({data:e,params:{name:t}})=>{const{podcast:n}=e,r=[],{title:o}=n,l=`https://leanpub.com/podcasts/${t}/`,i="The Leanpub Podcast",c="https://leanpub.com/images/podcast_cover.png";return T(r,{title:o}),T(r,{name:"title",content:o}),T(r,{name:"author",content:"Len Epp"}),T(r,{name:"DCTERMS.title",content:o}),T(r,{name:"DCTERMS.description",content:i}),T(r,{name:"DCTERMS.type",content:"podcast"}),T(r,{name:"DCTERMS.creator",content:"Len Epp"}),T(r,{name:"DCTERMS.language",content:"eng"}),T(r,{property:"og:title",content:o}),T(r,{property:"og:type",content:"podcast"}),T(r,{property:"og:image",content:c}),T(r,{property:"og:url",content:l}),T(r,{property:"og:publisher",content:"Leanpub"}),T(r,{property:"og:description",content:i}),T(r,{name:"twitter:card",content:"summary"}),T(r,{name:"twitter:site",content:"@Leanpub"}),T(r,{name:"twitter:title",content:o}),T(r,{name:"twitter:description",content:i}),T(r,{name:"twitter:image",content:c}),T(r,{name:"twitter:url",content:l}),r},mr=vt(function({loaderData:{podcast:t}}){return a.jsx(wt,{children:a.jsxs("div",{className:"w-120 w-full lg:grid lg:grid-cols-[calc(var(--spacing)*112)_minmax(0,1fr)] xl:grid-cols-[calc(var(--spacing)*120)_minmax(0,1fr)]",children:[a.jsxs("header",{className:"bg-slate-50 lg:sticky lg:inset-y-(--header-height) lg:left-0 lg:flex lg:h-[calc(100vh-var(--header-height))] lg:items-start lg:overflow-y-auto",children:[a.jsxs("div",{className:"hidden lg:sticky lg:top-0 lg:flex lg:w-16 lg:flex-none lg:items-center lg:px-12 lg:text-sm/7 lg:whitespace-nowrap lg:[writing-mode:vertical-rl]",children:[a.jsx("span",{className:"font-mono text-slate-500",children:"Hosted by"}),a.jsx("span",{className:"mt-6 flex gap-6 font-bold text-slate-900",children:t.hosts.map((n,r)=>a.jsxs(s.Fragment,{children:[r!==0&&a.jsx("span",{"aria-hidden":"true",className:"text-slate-400",children:"/"}),n]},n))})]}),a.jsxs("div",{className:"relative z-10 mx-auto px-4 pt-10 pb-4 sm:px-6 md:max-w-2xl md:px-4 lg:min-h-full lg:flex-auto lg:border-x lg:border-slate-200 lg:px-8 lg:py-12 xl:px-12",children:[a.jsxs(A,{to:`/podcasts/${t.name}`,className:"relative mx-auto block w-48 overflow-hidden rounded-lg bg-slate-200 shadow-xl shadow-slate-200 sm:w-64 sm:rounded-xl lg:w-auto lg:rounded-2xl","aria-label":"Podcast Homepage",children:[a.jsx("img",{className:"w-full",src:t.coverUrl,alt:`${t.title} Cover Art`,sizes:"(min-width: 1024px) 20rem, (min-width: 640px) 16rem, 12rem"}),a.jsx("div",{className:"absolute inset-0 rounded-lg ring-1 ring-black/10 ring-inset sm:rounded-xl lg:rounded-2xl"})]}),a.jsxs("div",{className:"mt-10 text-center lg:mt-12 lg:text-left",children:[a.jsx("p",{className:"text-xl font-bold text-slate-900",children:a.jsx(A,{to:`/podcasts/${t.name}`,children:t.title})}),a.jsx("p",{className:"mt-3 text-lg/8 font-medium text-slate-700",children:t.subtitle})]}),a.jsx(Ie,{className:"mt-12 hidden lg:block",descriptionHtml:t.descriptionHtml}),a.jsxs("section",{className:"mt-10 lg:mt-12",children:[a.jsxs("h2",{className:"sr-only flex items-center font-mono text-sm/7 font-medium text-slate-900 lg:not-sr-only",children:[a.jsx(Xe,{colors:["fill-indigo-300","fill-blue-300"],className:"h-2.5 w-2.5"}),a.jsx("span",{className:"ml-2.5",children:"Listen"})]}),a.jsx("div",{className:"h-px bg-linear-to-r from-slate-200/0 via-slate-200 to-slate-200/0 lg:hidden"}),a.jsx("ul",{role:"list",className:"mt-4 flex justify-center gap-10 text-base/7 font-medium text-slate-700 sm:gap-8 lg:flex-col lg:gap-4",children:[["Spotify",t.spotifyUrl,Pt],["Apple Podcast",t.itunesUrl,kt],["Google Podcast",t.googleUrl,Lt],["RSS Feed",t.rssFeed,Ct]].map(([n,r,o])=>a.jsx("li",{className:"flex",children:a.jsxs(A,{to:r,className:"group flex items-center","aria-label":n,hideDefaultStyles:!0,children:[a.jsx(St,{className:"h-8 w-8 text-3xl text-slate-400 group-hover:text-slate-600",icon:o}),a.jsx("span",{className:"hidden sm:ml-3 sm:block",children:n})]})},n))}),a.jsxs("p",{className:"pt-6 text-slate-600",children:["Or find us on ",a.jsx(A,{to:t.stitcherUrl,children:"Stitcher"}),","," ",a.jsx(A,{to:t.playerFmUrl,children:"Player FM"}),","," ",a.jsx(A,{to:t.tuneInUrl,children:"TuneIn"}),","," ",a.jsx(A,{to:t.castBox,children:"CastBox"}),", and"," ",a.jsx(A,{to:t.podbay,children:"Podbay"}),"."]})]})]})]}),a.jsxs("main",{className:"top-0 border-t border-slate-200 lg:relative lg:col-span-1 lg:col-start-2 lg:border-t-0",children:[a.jsx(Et,{className:"absolute top-0 left-0 h-20 w-full"}),a.jsx("div",{className:"relative",children:a.jsx(xt,{})})]}),a.jsx("footer",{className:"border-t border-slate-200 bg-slate-50 py-10 pb-40 sm:py-16 sm:pb-32 lg:hidden",children:a.jsxs("div",{className:"mx-auto px-4 sm:px-6 md:max-w-2xl md:px-4",children:[a.jsx(Ie,{descriptionHtml:t.descriptionHtml}),a.jsxs("h2",{className:"mt-8 flex items-center font-mono text-sm/7 font-medium text-slate-900",children:[a.jsx(Yn,{className:"h-3 w-auto fill-slate-300"}),a.jsx("span",{className:"ml-2.5",children:"Hosted by"})]}),a.jsx("div",{className:"mt-2 flex gap-6 text-sm/7 font-bold text-slate-900",children:t.hosts.map((n,r)=>a.jsxs(s.Fragment,{children:[r!==0&&a.jsx("span",{"aria-hidden":"true",className:"text-slate-400",children:"/"}),n]},n))})]})}),a.jsx("div",{className:"sticky inset-x-0 bottom-0 z-10 lg:col-span-1 lg:col-start-2",children:a.jsx(qn,{name:t.name})})]})})}),br=$t(function(){return a.jsx(Mt,{})});export{br as ErrorBoundary,mr as default,fr as meta};

AltStyle によって変換されたページ (->オリジナル) /