diff --git a/assets/AuthWrapper-BdUQe8CT.js b/assets/AuthWrapper-B3tCSxZi.js similarity index 82% rename from assets/AuthWrapper-BdUQe8CT.js rename to assets/AuthWrapper-B3tCSxZi.js index 90edfe60..ccfafbfb 100644 --- a/assets/AuthWrapper-BdUQe8CT.js +++ b/assets/AuthWrapper-B3tCSxZi.js @@ -1,4 +1,4 @@ -import{aw as e,q as r,j as s}from"./index-Bo8UkscO.js";var i=e();const o=r.div` +import{aw as e,q as r,j as s}from"./index-DdR0U16d.js";var i=e();const o=r.div` height: 700px; display: flex; align-items: center; diff --git a/assets/CourseAgenda-DG6Q95Xo.js b/assets/CourseAgenda-B2ujVzgN.js similarity index 62% rename from assets/CourseAgenda-DG6Q95Xo.js rename to assets/CourseAgenda-B2ujVzgN.js index ca1fa7d1..43cbfa5f 100644 --- a/assets/CourseAgenda-DG6Q95Xo.js +++ b/assets/CourseAgenda-B2ujVzgN.js @@ -1,4 +1,4 @@ -import{q as le,f as ce,r as p,j as h,M as ye,s as ue,cb as be,d as b,cc as xe,cd as ge,a5 as Te,a7 as Pe,D as K,a3 as we,ce as Ee,a6 as Ce,v as de,cf as Me,S as Oe,an as re,cg as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as se,ch as ke}from"./index-Bo8UkscO.js";import{A as x,_ as ze,P as Be,a as oe,I as Le,O as Fe,H as He}from"./index-DLruw0EO.js";import{U as $e}from"./Upload-CrRhBbHH.js";const Re=le.div` +import{q as le,f as ce,r as m,j as h,M as ye,s as ue,cb as be,d as b,cc as xe,cd as ge,a5 as Pe,a7 as Te,D as K,a3 as we,ce as Ee,a6 as Ce,v as de,cf as Me,S as Oe,an as re,cg as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as se,ch as ke}from"./index-DdR0U16d.js";import{A as x,_ as ze,P as Be,a as oe,I as Le,O as Fe,H as He}from"./index-HBZ4Cq4Z.js";import{U as $e}from"./Upload-jAUszd-C.js";const Re=le.div` h1 { font-size: 2em; } @@ -21,7 +21,7 @@ import{q as le,f as ce,r as p,j as h,M as ye,s as ue,cb as be,d as b,cc as xe,cd border-top-style: solid; border-top-color: ${({theme:t})=>t.primaryColor}; } -`,Ve=({value:t,onLoad:r,resources:e})=>{const{t:s}=ce(),a=e&&e.length>0;return p.useEffect(()=>{t&&r&&r()},[t,r]),h.jsxs(Re,{children:[t&&h.jsx(ye.MarkdownRenderer,{children:t}),a&&h.jsxs("div",{className:"resources-container",children:[h.jsx(ue.Text,{children:s("CoursePage.Resources")}),e.map(({name:n,url:y})=>h.jsx(be.Download,{href:y,fileName:n}))]})]})};var pe={},H={},U=b&&b.__assign||function(){return U=Object.assign||function(t){for(var r,e=1,s=arguments.length;e0&&n[n.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]{const{t:s}=ce(),a=e&&e.length>0;return m.useEffect(()=>{t&&r&&r()},[t,r]),h.jsxs(Re,{children:[t&&h.jsx(ye.MarkdownRenderer,{children:t}),a&&h.jsxs("div",{className:"resources-container",children:[h.jsx(ue.Text,{children:s("CoursePage.Resources")}),e.map(({name:n,url:y})=>h.jsx(be.Download,{href:y,fileName:n}))]})]})};var pe={},H={},U=b&&b.__assign||function(){return U=Object.assign||function(t){for(var r,e=1,s=arguments.length;e0&&n[n.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1] button { position: fixed; right: 5px; @@ -117,4 +117,4 @@ import{q as le,f as ce,r as p,j as h,M as ye,s as ue,cb as be,d as b,cc as xe,cd height: 100%; } `} -`,Xe=({value:t})=>{const{apiUrl:r}=p.useContext(K.EscolaLMSContext),{t:e}=ce(),[s,a]=p.useState(!1);return h.jsx("div",{className:"scorm-wrapper",children:h.jsxs(We,{fullview:s,children:[h.jsxs(de.Button,{onClick:()=>a(!s),children:[" ",e("Scorm.Resize")," ",h.jsx(Se,{})]}),h.jsx("iframe",{title:t.title,src:`${r}/api/scorm/play/${t.uuid}`})]})})},me=t=>t.reduce((r,e)=>[...r,...me((e==null?void 0:e.lessons)??[]),e],[]),J=t=>t.reduce((r,e)=>[...r,...e.topics??[],...e.lessons?J(e.lessons):[]],[]),ve=(t,r,e=[])=>{const s=[...e],a=t.find(n=>{var y;return(y=n==null?void 0:n.lessons)==null?void 0:y.find(u=>(u==null?void 0:u.id)===(r==null?void 0:r.id))});return a?(s.unshift(a.id),ve(t,a,s)):s},ie=(t,r,e="prev")=>{const s=r.findIndex(n=>n.id===t);return new Map([["prev",r==null?void 0:r[s-1]],["next",r==null?void 0:r[s+1]]]).get(e)},he=fe.createContext({}),Ye=()=>p.useContext(he),Je=[x.TopicType.H5P,x.TopicType.Audio,x.TopicType.Video,x.TopicType.Project,x.TopicType.GiftQuiz,x.TopicType.Pdf],nt=({children:t})=>{var j;const{sendProgress:r,program:e,fetchProgram:s,courseProgressDetails:a,fetchCourseProgress:n}=p.useContext(K.EscolaLMSContext),[y,u]=p.useState(!1),[g,i]=p.useState(!1),{id:_,lessonID:P,topicID:w}=Ie(),M=Ne(),m=(j=a.byId)==null?void 0:j[_],o=p.useMemo(()=>e.value,[e.value]),O=p.useMemo(()=>me((o==null?void 0:o.lessons)??[]),[o==null?void 0:o.lessons]),C=p.useMemo(()=>J((o==null?void 0:o.lessons)??[]),[o==null?void 0:o.lessons]),q=p.useCallback(f=>O.find(T=>T.id===f),[O]),Z=p.useCallback(f=>C.find(T=>T.id===f),[C]),W=p.useMemo(()=>ie(Number(w),C),[C,w]),v=p.useMemo(()=>Z(Number(w)),[Z,w]),X=p.useMemo(()=>ie(Number(w),C,"next"),[C,w]),R=p.useMemo(()=>v&&q(v==null?void 0:v.lesson_id),[q,v]),Y=p.useCallback(f=>{(o==null?void 0:o.id)!==void 0&&(v==null?void 0:v.id)!==void 0&&(u(!1),r(o.id,[{topic_id:v.id,status:x.CourseProgressItemElementStatus.COMPLETE}]),f&&i(!0))},[r,o==null?void 0:o.id,v==null?void 0:v.id]),Q=p.useMemo(()=>((m==null?void 0:m.value)??[]).reduce((f,{status:T,topic_id:E})=>T===x.CourseProgressItemElementStatus.COMPLETE?[...f,E]:f,[]),[m]),V=p.useMemo(()=>{const f=((o==null?void 0:o.lessons)??[]).filter(I=>I.active_from===null||I.active_from&&Ae(new Date,new Date(I.active_from))),T=J(f),{incomplete:E,in_progress:A,complete:S}=T.reduce((I,z)=>{const B=((m==null?void 0:m.value)??[]).find(({topic_id:L})=>L===z.id);if(!B)return I;const N={[x.CourseProgressItemElementStatus.INCOMPLETE]:"incomplete",[x.CourseProgressItemElementStatus.COMPLETE]:"complete",[x.CourseProgressItemElementStatus.IN_PROGRESS]:"in_progress"};return{...I,[N[B.status]]:[...I[N[B.status]],z.id]}},{in_progress:[],incomplete:[],complete:[]});if(A.length)return[...A,...S];const k=E!=null&&E[0]?[E[0]]:[];return[...S,...k]},[o==null?void 0:o.lessons,m==null?void 0:m.value]),l=p.useMemo(()=>R?ve(O,R):[],[R,O]);p.useEffect(()=>{_&&s(Number(_))},[_,s]),p.useEffect(()=>{_&&n(Number(_))},[n,_]),p.useEffect(()=>{v!=null&&v.topicable_type&&u(Je.includes(v==null?void 0:v.topicable_type))},[v==null?void 0:v.topicable_type]),p.useEffect(()=>{var f;if(!w||Number(w)!==(v==null?void 0:v.id)){const T=V.at(-1)??((f=C==null?void 0:C[0])==null?void 0:f.id),E=C.find(({id:A})=>A===T);E&&M.push(`/course/${_}/${E.lesson_id}/${T}`)}},[w,V,C,M,_,v==null?void 0:v.id]);const d=p.useMemo(()=>!!(m!=null&&m.value&&(m!=null&&m.value.every(({status:f})=>f===x.CourseProgressItemElementStatus.COMPLETE))),[m==null?void 0:m.value]),c=p.useMemo(()=>e.loading||(m==null?void 0:m.loading),[e.loading,m==null?void 0:m.loading]);return h.jsx(he.Provider,{value:{courseId:_,flatLessons:O,flatTopics:C,prevTopic:W,currentTopic:v,nextTopic:X,currentLesson:R,currentCourseProgram:o,isNextTopicButtonDisabled:y,setIsNextTopicButtonDisabled:u,completeCurrentTopic:Y,availableTopicsIds:V,finishedTopicsIds:Q,currentLessonParentsIds:l,isCourseFinished:d,isAnyDataLoading:c,showFinish:g},children:t})},at=({topic:t,preview:r=!1})=>{var m;const{courseId:e,nextTopic:s,setIsNextTopicButtonDisabled:a,showFinish:n}=Ye(),{topicPing:y,topicIsFinished:u,h5pProgress:g,fetchCourseProgress:i}=p.useContext(De.EscolaLMSContext),_=!!s,P=t==null?void 0:t.id,w=p.useCallback(o=>{var O;o!=null&&o.statement&&((O=g(String(e),Number(P),o==null?void 0:o.statement))==null||O.then(()=>{i(Number(e))}))},[g,e,P,i]);p.useEffect(()=>{const o=!!(P&&u(P));_&&o&&(a==null||a(!o&&!(t!=null&&t.can_skip)))},[a,P,t==null?void 0:t.can_skip,_,u]),p.useEffect(()=>{if(!r&&!n){const o=()=>P&&!u(P)&&y(P),O=setInterval(()=>{o()},5e3);return o(),()=>clearInterval(O)}},[y,P,u,r,n]);const M=p.useCallback(()=>a==null?void 0:a(!1),[a]);if(!t)return h.jsx(fe.Fragment,{});if(!((m=t.topicable)!=null&&m.value))return h.jsx("pre",{className:"error",children:"Error: topic.topicable?.value is missing"});if(t.topicable_type)switch(t.topicable_type){case x.TopicType.H5P:return h.jsx(He.H5Player,{onXAPI:o=>w==null?void 0:w(o),h5pObject:t.topicable.content,hideActionButtons:!0});case x.TopicType.OEmbed:return h.jsx(h.Fragment,{children:h.jsx(Fe.OEmbedPlayer,{url:t.topicable.value},t.id)});case x.TopicType.RichText:return h.jsx(Ve,{value:t.topicable.value,resources:t.resources});case x.TopicType.Video:return h.jsx(oe.AudioVideoPlayer,{mobile:se,url:t.topicable.url,light:!0,onTopicEnd:M});case x.TopicType.Image:return h.jsx(Le.ImagePlayer,{topic:t,onLoad:()=>{}});case x.TopicType.Audio:return h.jsx(oe.AudioVideoPlayer,{mobile:se,audio:!0,url:t.topicable.url,light:!0,onTopicEnd:M});case x.TopicType.Pdf:return h.jsx(Be.PdfPlayer,{url:t.topicable.url,pageConfig:{className:"course-pdf-player"},onTopicEnd:M});case x.TopicType.Scorm:return h.jsx(Xe,{value:{title:t.title,uuid:t.topicable.uuid}});case x.TopicType.GiftQuiz:return h.jsx(ze,{topic:t,onTopicEnd:M});case x.TopicType.Project:return h.jsx(pe.ProjectPlayer,{course_id:Number(e),topic:t,onSuccess:M,onProjectsChange:M});default:return h.jsx("pre",{children:t.topicable_type})}return h.jsx("pre",{children:"loading... (or error)"})};var rt=ke();export{rt as C,at as a,nt as b,Ye as u}; +`,Xe=({value:t})=>{const{apiUrl:r}=m.useContext(K.EscolaLMSContext),{t:e}=ce(),[s,a]=m.useState(!1);return h.jsx("div",{className:"scorm-wrapper",children:h.jsxs(We,{fullview:s,children:[h.jsxs(de.Button,{onClick:()=>a(!s),children:[" ",e("Scorm.Resize")," ",h.jsx(Se,{})]}),h.jsx("iframe",{title:t.title,src:`${r}/api/scorm/play/${t.uuid}`})]})})},me=t=>t.reduce((r,e)=>[...r,...me((e==null?void 0:e.lessons)??[]),e],[]),J=t=>t.reduce((r,e)=>[...r,...e.topics??[],...e.lessons?J(e.lessons):[]],[]),ve=(t,r,e=[])=>{const s=[...e],a=t.find(n=>{var y;return(y=n==null?void 0:n.lessons)==null?void 0:y.find(u=>(u==null?void 0:u.id)===(r==null?void 0:r.id))});return a?(s.unshift(a.id),ve(t,a,s)):s},ie=(t,r,e="prev")=>{const s=r.findIndex(n=>n.id===t);return new Map([["prev",r==null?void 0:r[s-1]],["next",r==null?void 0:r[s+1]]]).get(e)},he=fe.createContext({}),Ye=()=>m.useContext(he),Je=[x.TopicType.H5P,x.TopicType.Audio,x.TopicType.Video,x.TopicType.Project,x.TopicType.GiftQuiz,x.TopicType.Pdf],nt=({children:t})=>{var j;const{sendProgress:r,program:e,fetchProgram:s,courseProgressDetails:a,fetchCourseProgress:n}=m.useContext(K.EscolaLMSContext),[y,u]=m.useState(!1),[g,i]=m.useState(!1),{id:_,lessonID:T,topicID:w}=Ie(),M=Ne(),v=(j=a.byId)==null?void 0:j[_],o=m.useMemo(()=>e.value,[e.value]),O=m.useMemo(()=>me((o==null?void 0:o.lessons)??[]),[o==null?void 0:o.lessons]),C=m.useMemo(()=>J((o==null?void 0:o.lessons)??[]),[o==null?void 0:o.lessons]),q=m.useCallback(p=>O.find(P=>P.id===p),[O]),Z=m.useCallback(p=>C.find(P=>P.id===p),[C]),W=m.useMemo(()=>ie(Number(w),C),[C,w]),f=m.useMemo(()=>Z(Number(w)),[Z,w]),X=m.useMemo(()=>ie(Number(w),C,"next"),[C,w]),R=m.useMemo(()=>f&&q(f==null?void 0:f.lesson_id),[q,f]),Y=m.useCallback(p=>{(o==null?void 0:o.id)!==void 0&&(f==null?void 0:f.id)!==void 0&&(u(!1),r(o.id,[{topic_id:f.id,status:x.CourseProgressItemElementStatus.COMPLETE}]),p&&i(!0))},[r,o==null?void 0:o.id,f==null?void 0:f.id]),Q=m.useMemo(()=>((v==null?void 0:v.value)??[]).reduce((p,{status:P,topic_id:E})=>P===x.CourseProgressItemElementStatus.COMPLETE?[...p,E]:p,[]),[v]),V=m.useMemo(()=>{const p=((o==null?void 0:o.lessons)??[]).filter(I=>I.active_from===null||I.active_from&&Ae(new Date,new Date(I.active_from))),P=J(p),{incomplete:E,in_progress:A,complete:S}=P.reduce((I,z)=>{const B=((v==null?void 0:v.value)??[]).find(({topic_id:L})=>L===z.id);if(!B)return I;const N={[x.CourseProgressItemElementStatus.INCOMPLETE]:"incomplete",[x.CourseProgressItemElementStatus.COMPLETE]:"complete",[x.CourseProgressItemElementStatus.IN_PROGRESS]:"in_progress"};return{...I,[N[B.status]]:[...I[N[B.status]],z.id]}},{in_progress:[],incomplete:[],complete:[]});if(A.length)return[...A,...S];const k=E!=null&&E[0]?[E[0]]:[];return[...S,...k]},[o==null?void 0:o.lessons,v==null?void 0:v.value]),l=m.useMemo(()=>R?ve(O,R):[],[R,O]);m.useEffect(()=>{_&&s(Number(_))},[_,s]),m.useEffect(()=>{_&&n(Number(_))},[n,_]),m.useEffect(()=>{f!=null&&f.topicable_type&&u(Je.includes(f==null?void 0:f.topicable_type)&&!f.can_skip)},[f==null?void 0:f.can_skip,f==null?void 0:f.topicable_type]),m.useEffect(()=>{var p;if(!w||Number(w)!==(f==null?void 0:f.id)){const P=V.at(-1)??((p=C==null?void 0:C[0])==null?void 0:p.id),E=C.find(({id:A})=>A===P);E&&M.push(`/course/${_}/${E.lesson_id}/${P}`)}},[w,V,C,M,_,f==null?void 0:f.id]);const d=m.useMemo(()=>!!(v!=null&&v.value&&(v!=null&&v.value.every(({status:p})=>p===x.CourseProgressItemElementStatus.COMPLETE))),[v==null?void 0:v.value]),c=m.useMemo(()=>e.loading||(v==null?void 0:v.loading),[e.loading,v==null?void 0:v.loading]);return h.jsx(he.Provider,{value:{courseId:_,flatLessons:O,flatTopics:C,prevTopic:W,currentTopic:f,nextTopic:X,currentLesson:R,currentCourseProgram:o,isNextTopicButtonDisabled:y,setIsNextTopicButtonDisabled:u,completeCurrentTopic:Y,availableTopicsIds:V,finishedTopicsIds:Q,currentLessonParentsIds:l,isCourseFinished:d,isAnyDataLoading:c,showFinish:g},children:t})},at=({topic:t,preview:r=!1})=>{var v;const{courseId:e,nextTopic:s,setIsNextTopicButtonDisabled:a,showFinish:n}=Ye(),{topicPing:y,topicIsFinished:u,h5pProgress:g,fetchCourseProgress:i}=m.useContext(De.EscolaLMSContext),_=!!s,T=t==null?void 0:t.id,w=m.useCallback(o=>{var O;o!=null&&o.statement&&((O=g(String(e),Number(T),o==null?void 0:o.statement))==null||O.then(()=>{i(Number(e))}))},[g,e,T,i]);m.useEffect(()=>{const o=!!(T&&u(T));_&&o&&(a==null||a(!o&&!(t!=null&&t.can_skip)))},[a,T,t==null?void 0:t.can_skip,_,u]),m.useEffect(()=>{if(!r&&!n){const o=()=>T&&!u(T)&&y(T),O=setInterval(()=>{o()},5e3);return o(),()=>clearInterval(O)}},[y,T,u,r,n]);const M=m.useCallback(()=>a==null?void 0:a(!1),[a]);if(!t)return h.jsx(fe.Fragment,{});if(!((v=t.topicable)!=null&&v.value))return h.jsx("pre",{className:"error",children:"Error: topic.topicable?.value is missing"});if(t.topicable_type)switch(t.topicable_type){case x.TopicType.H5P:return h.jsx(He.H5Player,{onXAPI:o=>w==null?void 0:w(o),h5pObject:t.topicable.content,hideActionButtons:!0});case x.TopicType.OEmbed:return h.jsx(h.Fragment,{children:h.jsx(Fe.OEmbedPlayer,{url:t.topicable.value},t.id)});case x.TopicType.RichText:return h.jsx(Ve,{value:t.topicable.value,resources:t.resources});case x.TopicType.Video:return h.jsx(oe.AudioVideoPlayer,{mobile:se,url:t.topicable.url,light:!0,onTopicEnd:M});case x.TopicType.Image:return h.jsx(Le.ImagePlayer,{topic:t,onLoad:()=>{}});case x.TopicType.Audio:return h.jsx(oe.AudioVideoPlayer,{mobile:se,audio:!0,url:t.topicable.url,light:!0,onTopicEnd:M});case x.TopicType.Pdf:return h.jsx(Be.PdfPlayer,{url:t.topicable.url,pageConfig:{className:"course-pdf-player"},onTopicEnd:M});case x.TopicType.Scorm:return h.jsx(Xe,{value:{title:t.title,uuid:t.topicable.uuid}});case x.TopicType.GiftQuiz:return h.jsx(ze,{topic:t,onTopicEnd:M});case x.TopicType.Project:return h.jsx(pe.ProjectPlayer,{course_id:Number(e),topic:t,onSuccess:M,onProjectsChange:M});default:return h.jsx("pre",{children:t.topicable_type})}return h.jsx("pre",{children:"loading... (or error)"})};var rt=ke();export{rt as C,at as a,nt as b,Ye as u}; diff --git a/assets/CourseCard-B9elZN0z.js b/assets/CourseCard-yGz7Jurs.js similarity index 84% rename from assets/CourseCard-B9elZN0z.js rename to assets/CourseCard-yGz7Jurs.js index 314e0ffe..a604991e 100644 --- a/assets/CourseCard-B9elZN0z.js +++ b/assets/CourseCard-yGz7Jurs.js @@ -1,4 +1,4 @@ -import{q as x,r as a,j as t,w as n}from"./index-Bo8UkscO.js";import{S as e}from"./index-ik5KDOYp.js";const o=x.div` +import{q as x,r as a,j as t,w as n}from"./index-DdR0U16d.js";import{S as e}from"./index-D3CJIFqT.js";const o=x.div` max-width: 278px; min-height: 414px; diff --git a/assets/DailyMotion-DMJz2WGk.js b/assets/DailyMotion-BtJnVrAa.js similarity index 95% rename from assets/DailyMotion-DMJz2WGk.js rename to assets/DailyMotion-BtJnVrAa.js index 54277c2d..d07698a6 100644 --- a/assets/DailyMotion-DMJz2WGk.js +++ b/assets/DailyMotion-BtJnVrAa.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-Bo8UkscO.js";import{u as D,p as O}from"./index-DLruw0EO.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-DdR0U16d.js";import{u as D,p as O}from"./index-HBZ4Cq4Z.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/assets/Facebook--OsTad6R.js b/assets/Facebook-CK2SCXhZ.js similarity index 96% rename from assets/Facebook--OsTad6R.js rename to assets/Facebook-CK2SCXhZ.js index 104944b2..921642a0 100644 --- a/assets/Facebook--OsTad6R.js +++ b/assets/Facebook-CK2SCXhZ.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-Bo8UkscO.js";import{u as P,p as m}from"./index-DLruw0EO.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-DdR0U16d.js";import{u as P,p as m}from"./index-HBZ4Cq4Z.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/assets/FilePlayer-CaMaMR3l.js b/assets/FilePlayer-DhspKn4R.js similarity index 98% rename from assets/FilePlayer-CaMaMR3l.js rename to assets/FilePlayer-DhspKn4R.js index 64c670aa..42842974 100644 --- a/assets/FilePlayer-CaMaMR3l.js +++ b/assets/FilePlayer-DhspKn4R.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-Bo8UkscO.js";import{u as O,p as A}from"./index-DLruw0EO.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-DdR0U16d.js";import{u as O,p as A}from"./index-HBZ4Cq4Z.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/assets/Kaltura-DR7uBFBJ.js b/assets/Kaltura-X22AN0tO.js similarity index 95% rename from assets/Kaltura-DR7uBFBJ.js rename to assets/Kaltura-X22AN0tO.js index e274079c..925c00e7 100644 --- a/assets/Kaltura-DR7uBFBJ.js +++ b/assets/Kaltura-X22AN0tO.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-Bo8UkscO.js";import{u as _,p as m}from"./index-DLruw0EO.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-DdR0U16d.js";import{u as _,p as m}from"./index-HBZ4Cq4Z.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/assets/Mixcloud-mamucOSG.js b/assets/Mixcloud-ZHpNDeck.js similarity index 95% rename from assets/Mixcloud-mamucOSG.js rename to assets/Mixcloud-ZHpNDeck.js index d328eb9f..d33029b2 100644 --- a/assets/Mixcloud-mamucOSG.js +++ b/assets/Mixcloud-ZHpNDeck.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-Bo8UkscO.js";import{u as m,p as g}from"./index-DLruw0EO.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-DdR0U16d.js";import{u as m,p as g}from"./index-HBZ4Cq4Z.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/assets/Mux--EvGN2NU.js b/assets/Mux-Dhs7DJdJ.js similarity index 97% rename from assets/Mux--EvGN2NU.js rename to assets/Mux-Dhs7DJdJ.js index c5504758..88c16e14 100644 --- a/assets/Mux--EvGN2NU.js +++ b/assets/Mux-Dhs7DJdJ.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{g as P,ck as E,r as g}from"./index-Bo8UkscO.js";import{p as _}from"./index-DLruw0EO.js";function b(r,e){for(var t=0;ti[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?u(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!x.call(r,s)&&s!==t&&u(r,s,{get:()=>e[s],enumerable:!(i=I(e,s))||i.enumerable});return r},w=(r,e,t)=>(t=r!=null?L(O(r)):{},f(e||!r||!r.__esModule?u(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>f(u({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};R(y,{default:()=>l});var m=D(y),v=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{const a=j.replace("VERSION",s.version);await E(()=>import(`${a}`),__vite__mapDeps([])),this.props.onLoaded()}catch(a){i(a)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:a,width:h,height:c}=this.props,d={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...a.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const C=P(m),T=b({__proto__:null,default:C},[m]);export{T as M}; +import{g as P,ck as E,r as g}from"./index-DdR0U16d.js";import{p as _}from"./index-HBZ4Cq4Z.js";function b(r,e){for(var t=0;ti[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?u(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!x.call(r,s)&&s!==t&&u(r,s,{get:()=>e[s],enumerable:!(i=I(e,s))||i.enumerable});return r},w=(r,e,t)=>(t=r!=null?L(O(r)):{},f(e||!r||!r.__esModule?u(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>f(u({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};R(y,{default:()=>l});var m=D(y),v=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{const a=j.replace("VERSION",s.version);await E(()=>import(`${a}`),__vite__mapDeps([])),this.props.onLoaded()}catch(a){i(a)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:a,width:h,height:c}=this.props,d={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...a.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const C=P(m),T=b({__proto__:null,default:C},[m]);export{T as M}; diff --git a/assets/Preview-DmcmTCvr.js b/assets/Preview-BDeBr8OM.js similarity index 97% rename from assets/Preview-DmcmTCvr.js rename to assets/Preview-BDeBr8OM.js index 32fe9ec2..c978a0fb 100644 --- a/assets/Preview-DmcmTCvr.js +++ b/assets/Preview-BDeBr8OM.js @@ -1 +1 @@ -import{g as y,r as v}from"./index-Bo8UkscO.js";function w(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,I=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,E=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,S=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!j.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(I(r)):{},_(e||!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(E(r,typeof e!="symbol"?e+"":e,t),t),g={};S(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:f}=this.state,l=i.default.isValidElement(e),h={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...h},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...h},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y(m),A=w({__proto__:null,default:D},[m]);export{A as P}; +import{g as y,r as v}from"./index-DdR0U16d.js";function w(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,I=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,E=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,S=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!j.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(I(r)):{},_(e||!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(E(r,typeof e!="symbol"?e+"":e,t),t),g={};S(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:f}=this.state,l=i.default.isValidElement(e),h={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...h},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...h},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y(m),A=w({__proto__:null,default:D},[m]);export{A as P}; diff --git a/assets/PricingCard-DH5RPEzw.js b/assets/PricingCard-CtcAd6qS.js similarity index 98% rename from assets/PricingCard-DH5RPEzw.js rename to assets/PricingCard-CtcAd6qS.js index d5bfd9bb..a468458f 100644 --- a/assets/PricingCard-DH5RPEzw.js +++ b/assets/PricingCard-CtcAd6qS.js @@ -1,4 +1,4 @@ -import{d as i,a5 as P,a4 as w,a6 as C,j as D,g as M}from"./index-Bo8UkscO.js";var f={};(function(o){var d=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},c=i&&i.__assign||function(){return c=Object.assign||function(n){for(var e,r=1,a=arguments.length;r .escolalms-image, & > .escolalms-image img { diff --git a/assets/SoundCloud-CkU7plov.js b/assets/SoundCloud-DzIq0Orz.js similarity index 95% rename from assets/SoundCloud-CkU7plov.js rename to assets/SoundCloud-DzIq0Orz.js index 37227061..c5a35ef8 100644 --- a/assets/SoundCloud-CkU7plov.js +++ b/assets/SoundCloud-DzIq0Orz.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-Bo8UkscO.js";import{u as b,p as v}from"./index-DLruw0EO.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-DdR0U16d.js";import{u as b,p as v}from"./index-HBZ4Cq4Z.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/assets/Streamable-BYLVRhCs.js b/assets/Streamable-Dxl3nYnq.js similarity index 95% rename from assets/Streamable-BYLVRhCs.js rename to assets/Streamable-Dxl3nYnq.js index ee411017..43da4956 100644 --- a/assets/Streamable-BYLVRhCs.js +++ b/assets/Streamable-Dxl3nYnq.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-Bo8UkscO.js";import{u as _,p as b}from"./index-DLruw0EO.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-DdR0U16d.js";import{u as _,p as b}from"./index-HBZ4Cq4Z.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/assets/Tabs-CO-l8TER.js b/assets/Tabs-C_s_LN6Y.js similarity index 98% rename from assets/Tabs-CO-l8TER.js rename to assets/Tabs-C_s_LN6Y.js index e93f4b64..bfefbeed 100644 --- a/assets/Tabs-CO-l8TER.js +++ b/assets/Tabs-C_s_LN6Y.js @@ -1,4 +1,4 @@ -import{d as o,r as R,a5 as B,aH as C,a6 as w,j as F}from"./index-Bo8UkscO.js";var D={};(function(c){var f=o&&o.__makeTemplateObject||function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},u=o&&o.__assign||function(){return u=Object.assign||function(e){for(var n,t=1,r=arguments.length;te.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $a(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ke=e=>e?e+"-":"",$i=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?ke(t)+(a.includes("$")?"":ke(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${ke(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ye]){r.type==null&&(r.type=o[Ye].type);for(const i of o[Ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${ke(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${ke(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ke(this.prefix)+ke(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${ke(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${ke(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?on(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,lc(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class gc extends pc{constructor(...t){super(...t),se(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ei(t)]:r.axisThreshold;n.axis=hc(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),oo={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class vc extends gc{constructor(...t){super(...t),se(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Mt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,yc(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=oo[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Ic(e,t){if(e==null)return{};var n=Dc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Lc(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Ne=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Be=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Ne(t,n))}function Te(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Pe(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function sl(e,t,n,r){const o=ht(e);let i=il(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Pe(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Te(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Ne(d[y],M),P=Ne(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Te(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Te(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=Te(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Pe(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Te(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=Te(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Pe(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Te(e,t),c=await Pt(t,a),l=Pe(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Ne(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Ne(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function ze(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Ae(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(ze(e))}function xr(e){const t=Er(),n=pe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(ze(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||De(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Ae(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Be(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Be(1);t&&(r?Ae(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Be(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Ae(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=De(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Be(1);const u=Be(0),d=xe(r);if((d||!d&&!i)&&((ze(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(De(e)).left+xn(e).scrollLeft}function Cl(e){const t=De(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(De(e));else if(Ae(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Ae(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Ae(a)&&ze(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Ne(d.right,l.right),l.bottom=Ne(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=De(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Be(0);if(r||!r&&!i)if((ze(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(ze(r)==="html"||ze(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:De,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Ae,isRTL:Al};function Il(e,t){let n=null,r;const o=De(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Ne(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:We,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ue,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ue.reference,Ke=ye.floating.style;Ke.setProperty("--radix-popper-available-width",`${Sn}px`),Ke.setProperty("--radix-popper-available-height",`${On}px`),Ke.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ke.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[He,Me]=Ki(Wt),Ve=pt(E);ct(()=>{We&&(Ve==null||Ve())},[We,Ve]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[je,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:We?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:He,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":He,"data-align":Me},_,{ref:P,style:{..._.style,animation:We?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:Se(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Se(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ru(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ku(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F(e,t){if(e==null)return{};var n=Lu(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let U;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Oe=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function Ie(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Oe(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Le(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(Fe(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Le(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(Le(r)));return Le(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Le(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return Le(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Le(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return Le(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return Le(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ns=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Fe(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Fe(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(Fe(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Jt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Re(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Oe(U.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),wf=D("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),xf=D("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Oe(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Re("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):g.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},_s=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ot=function(e){return{h:(t=Cs(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?X(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return Ce(t)&&Ce(n)&&Ce(r)?Po({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(e){if(e===null)return[];for(var t=[],n=0;ne.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $a(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ke=e=>e?e+"-":"",$i=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?ke(t)+(a.includes("$")?"":ke(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${ke(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ye]){r.type==null&&(r.type=o[Ye].type);for(const i of o[Ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${ke(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${ke(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ke(this.prefix)+ke(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${ke(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${ke(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?on(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,lc(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class gc extends pc{constructor(...t){super(...t),se(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ei(t)]:r.axisThreshold;n.axis=hc(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),oo={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class vc extends gc{constructor(...t){super(...t),se(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Mt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,yc(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=oo[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Ic(e,t){if(e==null)return{};var n=Dc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Lc(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Ne=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Be=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Ne(t,n))}function Te(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Pe(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function sl(e,t,n,r){const o=ht(e);let i=il(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Pe(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Te(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Ne(d[y],M),P=Ne(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Te(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Te(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=Te(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Pe(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Te(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=Te(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Pe(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Te(e,t),c=await Pt(t,a),l=Pe(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Ne(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Ne(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function ze(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Ae(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(ze(e))}function xr(e){const t=Er(),n=pe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(ze(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||De(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Ae(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Be(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Be(1);t&&(r?Ae(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Be(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Ae(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=De(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Be(1);const u=Be(0),d=xe(r);if((d||!d&&!i)&&((ze(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(De(e)).left+xn(e).scrollLeft}function Cl(e){const t=De(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(De(e));else if(Ae(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Ae(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Ae(a)&&ze(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Ne(d.right,l.right),l.bottom=Ne(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=De(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Be(0);if(r||!r&&!i)if((ze(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(ze(r)==="html"||ze(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:De,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Ae,isRTL:Al};function Il(e,t){let n=null,r;const o=De(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Ne(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:We,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ue,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ue.reference,Ke=ye.floating.style;Ke.setProperty("--radix-popper-available-width",`${Sn}px`),Ke.setProperty("--radix-popper-available-height",`${On}px`),Ke.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ke.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[He,Me]=Ki(Wt),Ve=pt(E);ct(()=>{We&&(Ve==null||Ve())},[We,Ve]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[je,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:We?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:He,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":He,"data-align":Me},_,{ref:P,style:{..._.style,animation:We?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:Se(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Se(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ru(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ku(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F(e,t){if(e==null)return{};var n=Lu(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let U;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Oe=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function Ie(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Oe(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Le(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(Fe(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Le(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(Le(r)));return Le(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Le(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return Le(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Le(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return Le(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return Le(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ns=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Fe(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Fe(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(Fe(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Jt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Re(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Oe(U.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),wf=D("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),xf=D("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Oe(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Re("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):g.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},_s=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ot=function(e){return{h:(t=Cs(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?X(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return Ce(t)&&Ce(n)&&Ce(r)?Po({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Go(n)];if(e.sizen)return[!1,Go(n)]}return[!0,null]}function Ct(e){return e!=null}function gp(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Ls(a,n),l=Uo(c,1),u=l[0],d=Ns(a,r,o),p=Uo(d,1),h=p[0];return u&&h})}function hn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Qt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function qo(e){e.preventDefault()}function mp(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function bp(e){return e.indexOf("Edge/")!==-1}function vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mp(e)||bp(e)}function we(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ip(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Lr=f.forwardRef(function(e,t){var n=e.children,r=gn(e,Ep),o=Fs(r),i=o.open,s=gn(o,Cp);return f.useImperativeHandle(t,function(){return{open:i}},[i]),g.createElement(f.Fragment,null,n(V(V({},s),{},{open:i})))});Lr.displayName="Dropzone";var zs={disabled:!1,getFilesFromEvent:qd,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Lr.defaultProps=zs;Lr.propTypes={children:H.func,accept:H.oneOfType([H.string,H.arrayOf(H.string)]),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,validator:H.func};var pr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Fs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=V(V({},zs),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,$=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,C=t.noDrag,E=t.noDragEventsBubbling,_=t.validator,S=f.useMemo(function(){return typeof v=="function"?v:Jo},[v]),M=f.useMemo(function(){return typeof b=="function"?b:Jo},[b]),T=f.useRef(null),P=f.useRef(null),R=f.useReducer(Mp,pr),B=Vn(R,2),j=B[0],I=B[1],z=j.isFocused,L=j.isFileDialogActive,Y=j.draggedFiles,q=f.useRef(typeof window<"u"&&window.isSecureContext&&y&&yp()),Ee=function(){!q.current&&L&&setTimeout(function(){if(P.current){var N=P.current.files;N.length||(I({type:"closeDialog"}),M())}},300)};f.useEffect(function(){return window.addEventListener("focus",Ee,!1),function(){window.removeEventListener("focus",Ee,!1)}},[P,L,M,q]);var oe=f.useRef([]),Ft=function(N){T.current&&T.current.contains(N.target)||(N.preventDefault(),oe.current=[])};f.useEffect(function(){return $&&(document.addEventListener("dragover",qo,!1),document.addEventListener("drop",Ft,!1)),function(){$&&(document.removeEventListener("dragover",qo),document.removeEventListener("drop",Ft))}},[T,$]);var yt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O),oe.current=[].concat(Op(oe.current),[O.target]),Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||(I({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),Wt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O);var N=Qt(O);if(N&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return N&&d&&d(O),!1},[d,E]),We=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O);var N=oe.current.filter(function(ie){return T.current&&T.current.contains(ie)}),J=N.indexOf(O.target);J!==-1&&N.splice(J,1),oe.current=N,!(N.length>0)&&(I({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Qt(O)&&u&&u(O))},[T,u,E]),me=f.useCallback(function(O,N){var J=[],ie=[];O.forEach(function(be){var $t=Ls(be,n),et=Vn($t,2),kn=et[0],Tn=et[1],Pn=Ns(be,s,i),Gt=Vn(Pn,2),An=Gt[0],Dn=Gt[1],In=_?_(be):null;if(kn&&An&&!In)J.push(be);else{var Mn=[Tn,Dn];In&&(Mn=Mn.concat(In)),ie.push({file:be,errors:Mn.filter(function(oa){return oa})})}}),(!a&&J.length>1||a&&c>=1&&J.length>c)&&(J.forEach(function(be){ie.push({file:be,errors:[hp]})}),J.splice(0)),I({acceptedFiles:J,fileRejections:ie,type:"setFiles"}),p&&p(J,ie,N),ie.length>0&&m&&m(ie,N),J.length>0&&h&&h(J,N)},[I,a,n,s,i,c,p,h,m,_]),He=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O),oe.current=[],Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||me(N,O)}),I({type:"reset"})},[o,me,E]),Me=f.useCallback(function(){if(q.current){I({type:"openDialog"}),S();var O={multiple:a,types:wp(n)};window.showOpenFilePicker(O).then(function(N){return o(N)}).then(function(N){me(N,null),I({type:"closeDialog"})}).catch(function(N){$p(N)?(M(N),I({type:"closeDialog"})):xp(N)&&(q.current=!1,P.current&&(P.current.value=null,P.current.click()))});return}P.current&&(I({type:"openDialog"}),S(),P.current.value=null,P.current.click())},[I,S,M,y,me,n,a]),Ve=f.useCallback(function(O){!T.current||!T.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),Me())},[T,Me]),Ht=f.useCallback(function(){I({type:"focus"})},[]),Vt=f.useCallback(function(){I({type:"blur"})},[]),Ut=f.useCallback(function(){x||(vp()?setTimeout(Me,0):Me())},[x,Me]),je=function(N){return r?null:N},wt=function(N){return w?null:je(N)},ye=function(N){return C?null:je(N)},Ue=function(N){E&&N.stopPropagation()},Sn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.role,be=O.onKeyDown,$t=O.onFocus,et=O.onBlur,kn=O.onClick,Tn=O.onDragEnter,Pn=O.onDragOver,Gt=O.onDragLeave,An=O.onDrop,Dn=gn(O,_p);return V(V(dr({onKeyDown:wt(we(be,Ve)),onFocus:wt(we($t,Ht)),onBlur:wt(we(et,Vt)),onClick:je(we(kn,Ut)),onDragEnter:ye(we(Tn,yt)),onDragOver:ye(we(Pn,Wt)),onDragLeave:ye(we(Gt,We)),onDrop:ye(we(An,He)),role:typeof ie=="string"&&ie!==""?ie:"button"},J,T),!r&&!w?{tabIndex:0}:{}),Dn)}},[T,Ve,Ht,Vt,Ut,yt,Wt,We,He,w,C,r]),On=f.useCallback(function(O){O.stopPropagation()},[]),Rn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.onChange,be=O.onClick,$t=gn(O,Sp),et=dr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:je(we(ie,He)),onClick:je(we(be,On)),tabIndex:-1},J,P);return V(V({},et),$t)}},[P,n,a,He,r]),Kt=Y.length,Ke=Kt>0&&gp({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),ra=Kt>0&&!Ke;return V(V({},j),{},{isDragAccept:Ke,isDragReject:ra,isFocused:z&&!r,getRootProps:Sn,getInputProps:Rn,rootRef:T,inputRef:P,open:je(Me)})}function Mp(e,t){switch(t.type){case"focus":return V(V({},e),{},{isFocused:!0});case"blur":return V(V({},e),{},{isFocused:!1});case"openDialog":return V(V({},pr),{},{isFileDialogActive:!0});case"closeDialog":return V(V({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return V(V({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return V(V({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return V({},pr);default:return e}}function Jo(){}function jp(e){let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(d!==t){const p=t;t=u?d:Object.assign({},t,d),n.forEach(h=>h(t,p))}},o=()=>t,i=(l,u=o,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function h(){const m=u(t);if(!d(p,m)){const b=p;l(p=m,b)}}return n.add(h),()=>n.delete(h)},c={setState:r,getState:o,subscribe:(l,u,d)=>u||d?i(l,u,d):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const Lp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zo=Lp?f.useEffect:f.useLayoutEffect;function Np(e){const t=typeof e=="function"?jp(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=f.useReducer(v=>v+1,0),s=t.getState(),a=f.useRef(s),c=f.useRef(r),l=f.useRef(o),u=f.useRef(!1),d=f.useRef();d.current===void 0&&(d.current=r(s));let p,h=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),h=!o(d.current,p)),Zo(()=>{h&&(d.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=f.useRef(s);Zo(()=>{const v=()=>{try{const $=t.getState(),x=c.current($);l.current(d.current,x)||(a.current=$,d.current=x,i())}catch{u.current=!0,i()}},y=t.subscribe(v);return t.getState()!==m.current&&v(),y},[]);const b=h?p:d.current;return f.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const Bp=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=s(r.getState());l=p=>{const h=s(p);if(!u(d,h)){const m=d;a(d=h,m)}},c!=null&&c.fireImmediately&&a(d,d)}return o(l)},e(t,n,r)};/*! diff --git a/assets/Twitch-DDdFw0Dl.js b/assets/Twitch-Bzp4XZ_L.js similarity index 95% rename from assets/Twitch-DDdFw0Dl.js rename to assets/Twitch-Bzp4XZ_L.js index e37e600b..536b6851 100644 --- a/assets/Twitch-DDdFw0Dl.js +++ b/assets/Twitch-Bzp4XZ_L.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-Bo8UkscO.js";import{u as C,p as N}from"./index-DLruw0EO.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-DdR0U16d.js";import{u as C,p as N}from"./index-HBZ4Cq4Z.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/assets/Upload-CrRhBbHH.js b/assets/Upload-jAUszd-C.js similarity index 99% rename from assets/Upload-CrRhBbHH.js rename to assets/Upload-jAUszd-C.js index 561dc233..eea18752 100644 --- a/assets/Upload-CrRhBbHH.js +++ b/assets/Upload-jAUszd-C.js @@ -1,4 +1,4 @@ -import{d as i,a5 as $,a2 as L,a6 as U,j as R,r as X,a3 as Z}from"./index-Bo8UkscO.js";var F={};(function(s){var m=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=i&&i.__assign||function(){return l=Object.assign||function(n){for(var e,r=1,t=arguments.length;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-DdR0U16d.js";import{u as b,p as O}from"./index-HBZ4Cq4Z.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/assets/Vimeo-WY-FUd0M.js b/assets/Vimeo-vnktG1_V.js similarity index 96% rename from assets/Vimeo-WY-FUd0M.js rename to assets/Vimeo-vnktG1_V.js index fabd80ac..ef9a0fd4 100644 --- a/assets/Vimeo-WY-FUd0M.js +++ b/assets/Vimeo-vnktG1_V.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-Bo8UkscO.js";import{u as m,p as _}from"./index-DLruw0EO.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-DdR0U16d.js";import{u as m,p as _}from"./index-HBZ4Cq4Z.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/assets/Wistia-Dd1Bmgeq.js b/assets/Wistia-ivHECyS1.js similarity index 96% rename from assets/Wistia-Dd1Bmgeq.js rename to assets/Wistia-ivHECyS1.js index 1530aa03..8b896a35 100644 --- a/assets/Wistia-Dd1Bmgeq.js +++ b/assets/Wistia-ivHECyS1.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-Bo8UkscO.js";import{u as v,p as w}from"./index-DLruw0EO.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-DdR0U16d.js";import{u as v,p as w}from"./index-HBZ4Cq4Z.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/assets/YouTube-BpF0vzzt.js b/assets/YouTube-o9xncYwP.js similarity index 97% rename from assets/YouTube-BpF0vzzt.js rename to assets/YouTube-o9xncYwP.js index a4092d21..b8804936 100644 --- a/assets/YouTube-BpF0vzzt.js +++ b/assets/YouTube-o9xncYwP.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-Bo8UkscO.js";import{u as L,p as Y}from"./index-DLruw0EO.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-DdR0U16d.js";import{u as L,p as Y}from"./index-HBZ4Cq4Z.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/assets/index-DXSphz3L.js b/assets/index-B10JnDDZ.js similarity index 94% rename from assets/index-DXSphz3L.js rename to assets/index-B10JnDDZ.js index 6a0b6bca..536c59f3 100644 --- a/assets/index-DXSphz3L.js +++ b/assets/index-B10JnDDZ.js @@ -1,4 +1,4 @@ -import{q as i,r as l,D as c,j as t,s as r,ad as m,T as x,n as p,ae as d,L as g}from"./index-Bo8UkscO.js";import{a as h}from"./ResponsiveImage-wHQCVyd2.js";const j=i.div` +import{q as i,r as l,D as c,j as t,s as r,ad as m,T as x,n as p,ae as d,L as g}from"./index-DdR0U16d.js";import{a as h}from"./ResponsiveImage-Cj4skSpA.js";const j=i.div` .section-companies { display: flex; justify-content: flex-start; diff --git a/assets/index-C7LDu5YO.js b/assets/index-B8psG9iu.js similarity index 91% rename from assets/index-C7LDu5YO.js rename to assets/index-B8psG9iu.js index ef055420..799c042a 100644 --- a/assets/index-C7LDu5YO.js +++ b/assets/index-B8psG9iu.js @@ -1,4 +1,4 @@ -import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y,ah as G,A as K,aX as Z,Z as U,aY as X,aZ as Y,a_ as J,m as V,n as $,L as F,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-Bo8UkscO.js";import{T as ae}from"./Tabs-CO-l8TER.js";import{C as ne}from"./index-PGMEsYK1.js";import{R as ie}from"./ResponsiveImage-wHQCVyd2.js";import{C as le}from"./index-B7Mx4ryn.js";import{C as de}from"./index-rPhH6DdW.js";import{R as ce}from"./index-DvNYyE7v.js";import{b as me,Q as ue}from"./questionnaires-_0sODp6F.js";import{u as pe}from"./useDownloadCertificate-Gsl9Kioe.js";import{u as ge}from"./useRoles-O1Qe8-YL.js";import{u as H}from"./useSearchParams-CMuS-qVd.js";import{P as xe}from"./index-D6txpOmq.js";import{S as he}from"./swiper-ES8EF7dV.js";import{S as B}from"./swiper-react-dLA_7gCe.js";import{C as D}from"./CourseCard-B9elZN0z.js";import"./base-C7euzKDi.js";import"./index-ik5KDOYp.js";const fe=({courseData:e,visible:d,onClose:t})=>{const{sendProgress:c}=a.useContext(L.EscolaLMSContext),{t:o}=k(),{push:i}=_(),p=a.useCallback(async()=>{await c(e.course.id,e.progress.map(({topic_id:g})=>({topic_id:g,status:0}))),i(`/course/${e.course.id}`)},[e.course.id,e.progress,c,i]);return s.jsx(Q.Modal,{animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,visible:d,onClose:t,children:s.jsxs(s.Fragment,{children:[s.jsx(A.Title,{level:4,children:o("ResetProgressModal.Continue")}),s.jsxs(I.Text,{children:[" ",o("ResetProgressModal.RestartCourse")]}),s.jsxs(W,{$gap:16,children:[s.jsx(v.Button,{mode:"primary",onClick:p,children:o("ResetProgressModal.WantContinue")}),s.jsx(v.Button,{mode:"primary",onClick:t,children:o("ResetProgressModal.Cancel")})]})]})})},Ce=y(G)` +import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y,ah as G,A as K,aX as Z,Z as U,aY as X,aZ as Y,a_ as J,m as V,n as $,L as F,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-DdR0U16d.js";import{T as ae}from"./Tabs-C_s_LN6Y.js";import{C as ne}from"./index-BhJ-dW2f.js";import{R as ie}from"./ResponsiveImage-Cj4skSpA.js";import{C as le}from"./index-GZhcI3y0.js";import{C as de}from"./index-CtKtIhYW.js";import{R as ce}from"./index-DW7ziQAg.js";import{b as me,Q as ue}from"./questionnaires-BOcFjJOw.js";import{u as pe}from"./useDownloadCertificate-DQ0RD7nc.js";import{u as ge}from"./useRoles-Bi4GxnzU.js";import{u as H}from"./useSearchParams-DwoVLtwq.js";import{P as xe}from"./index-Bq7IYj2l.js";import{S as he}from"./swiper-8PJkZR9V.js";import{S as B}from"./swiper-react-BLsnPoYA.js";import{C as D}from"./CourseCard-yGz7Jurs.js";import"./base-C7euzKDi.js";import"./index-D3CJIFqT.js";const fe=({courseData:e,visible:d,onClose:t})=>{const{sendProgress:c}=a.useContext(L.EscolaLMSContext),{t:o}=k(),{push:i}=_(),p=a.useCallback(async()=>{await c(e.course.id,e.progress.map(({topic_id:g})=>({topic_id:g,status:0}))),i(`/course/${e.course.id}`)},[e.course.id,e.progress,c,i]);return s.jsx(Q.Modal,{animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,visible:d,onClose:t,children:s.jsxs(s.Fragment,{children:[s.jsx(A.Title,{level:4,children:o("ResetProgressModal.Continue")}),s.jsxs(I.Text,{children:[" ",o("ResetProgressModal.RestartCourse")]}),s.jsxs(W,{$gap:16,children:[s.jsx(v.Button,{mode:"primary",onClick:p,children:o("ResetProgressModal.WantContinue")}),s.jsx(v.Button,{mode:"primary",onClick:t,children:o("ResetProgressModal.Cancel")})]})]})})},Ce=y(G)` gap: 6px; margin: 0; width: 100%; diff --git a/assets/index-BH8DkdAJ.js b/assets/index-BCHZaDe9.js similarity index 95% rename from assets/index-BH8DkdAJ.js rename to assets/index-BCHZaDe9.js index 2ecdc0c9..62dfb39b 100644 --- a/assets/index-BH8DkdAJ.js +++ b/assets/index-BCHZaDe9.js @@ -1,4 +1,4 @@ -import{q as j,j as e,w as c,T as g,n as E,v as p,r as f,h as M,f as $,i as H,aq as k,Y as P,s as T,l as h,J as v,ar as N,as as z,at as F,au as q,av as A,E as L,o as D,Z as G,C as w,L as B,ak as V,M as J}from"./index-Bo8UkscO.js";import{P as Q}from"./index-B8tRK7-_.js";import{B as U}from"./index-XD7REZpG.js";import{R as Y}from"./ResponsiveImage-wHQCVyd2.js";import{P as I}from"./PricingCard-DH5RPEzw.js";import{C as R}from"./index-CihtPuAx.js";import"./warning-C5gOjCvf.js";import"./index-Dof53sD6.js";import"./index-PGMEsYK1.js";const Z=j.div` +import{q as j,j as e,w as c,T as g,n as E,v as p,r as f,h as M,f as $,i as H,aq as k,Y as P,s as T,l as h,J as v,ar as N,as as z,at as F,au as q,av as A,E as L,o as D,Z as G,C as w,L as B,ak as V,M as J}from"./index-DdR0U16d.js";import{P as Q}from"./index-DdKOa6TA.js";import{B as U}from"./index-CcDf82b6.js";import{R as Y}from"./ResponsiveImage-Cj4skSpA.js";import{P as I}from"./PricingCard-CtcAd6qS.js";import{C as R}from"./index-CMcFPrAH.js";import"./warning-Cy01Vo2F.js";import"./index-CZO-v9Fr.js";import"./index-BhJ-dW2f.js";const Z=j.div` display: flex; align-items: center; flex-wrap: wrap; diff --git a/assets/index-BkD4PSi8.js b/assets/index-BDZORQi9.js similarity index 90% rename from assets/index-BkD4PSi8.js rename to assets/index-BDZORQi9.js index 97c3e765..b81c0a1c 100644 --- a/assets/index-BkD4PSi8.js +++ b/assets/index-BDZORQi9.js @@ -1,4 +1,4 @@ -import{r as o,j as e,q as y,n as u,E as P,h as S,f as b,F as B,l as p,o as E,C as k,L as R,s as C,w as l,M}from"./index-Bo8UkscO.js";import{B as T}from"./index-XD7REZpG.js";import{P as w}from"./index-Q5z7UDcg.js";import{S as c}from"./index-ik5KDOYp.js";function L(t){const n=o.useRef();return o.useEffect(()=>{n.current=t},[t]),n.current}const F=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:5,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:12,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:6,style:{marginBottom:"11px",height:"20px"}})})]}),$=y.section` +import{r as o,j as e,q as y,n as u,E as P,h as S,f as b,F as B,l as p,o as E,C as k,L as R,s as C,w as l,M}from"./index-DdR0U16d.js";import{B as T}from"./index-CcDf82b6.js";import{P as w}from"./index-DuwnFplQ.js";import{S as c}from"./index-D3CJIFqT.js";function L(t){const n=o.useRef();return o.useEffect(()=>{n.current=t},[t]),n.current}const F=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:5,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:12,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:6,style:{marginBottom:"11px",height:"20px"}})})]}),$=y.section` background-color: ${({theme:t})=>t.gray4}; min-height: calc(100vh - 400px); .user-main-sidebar { diff --git a/assets/index-lFh4cs_O.js b/assets/index-BH6C5uk2.js similarity index 93% rename from assets/index-lFh4cs_O.js rename to assets/index-BH6C5uk2.js index 8c5c2afb..fb511ee8 100644 --- a/assets/index-lFh4cs_O.js +++ b/assets/index-BH6C5uk2.js @@ -1,4 +1,4 @@ -import{q as x,j as e,T as u,r as o,D as m,i as y,f as g,l as s,o as h,C as P,w as l,n as d}from"./index-Bo8UkscO.js";import{P as j}from"./index-Q5z7UDcg.js";const b=x.div` +import{q as x,j as e,T as u,r as o,D as m,i as y,f as g,l as s,o as h,C as P,w as l,n as d}from"./index-DdR0U16d.js";import{P as j}from"./index-DuwnFplQ.js";const b=x.div` position: relative; z-index: 0; /* padding: ${t=>t.withTabs?"105px 40px 90px 40px":"165px 40px 30px 40px"}; */ diff --git a/assets/index-Dlnlu5e-.js b/assets/index-BNCH7dEo.js similarity index 98% rename from assets/index-Dlnlu5e-.js rename to assets/index-BNCH7dEo.js index b93f5e96..64ee868c 100644 --- a/assets/index-Dlnlu5e-.js +++ b/assets/index-BNCH7dEo.js @@ -1,4 +1,4 @@ -import{P as d,b as l,cv as Fe,q as Y,r as k,j as n,cw as Me,X as je,f as le,aH as Ee,w as T,aa as Ue,i as we,h as ke,o as Pe,C as Ne,v as oe,l as V,n as ie,an as We,A as q,L as ze,s as ne,T as W,cx as De,aq as ae,y as qe,D as Ve}from"./index-Bo8UkscO.js";import{P as Ye}from"./index-B8tRK7-_.js";import{C as xe}from"./index-DpPQm32o.js";import{B as Ke}from"./index-XD7REZpG.js";import{P as He}from"./index-PGMEsYK1.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-rPhH6DdW.js";import"./swiper-react-dLA_7gCe.js";import"./index-CsJcOuQH.js";import"./swiper-ES8EF7dV.js";function he(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,a)}return r}function ve(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r provider."));return e},pe=l.createContext(null);pe.displayName="CartElementContext";var st=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an provider."));return e},Oe=function(e){var r=e.stripe,a=e.options,o=e.children,s=l.useMemo(function(){return nt(r)},[r]),u=l.useState(null),p=Z(u,2),i=p[0],c=p[1],S=l.useState(null),w=Z(S,2),j=w[0],R=w[1],_=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(a):null}}),h=Z(_,2),C=h[0],O=h[1];l.useEffect(function(){var y=!0,F=function(L){O(function(B){return B.stripe?B:{stripe:L,elements:L.elements(a)}})};return s.tag==="async"&&!C.stripe?s.stripePromise.then(function(N){N&&y&&F(N)}):s.tag==="sync"&&!C.stripe&&F(s.stripe),function(){y=!1}},[s,C,a]);var $=ce(r);l.useEffect(function(){$!==null&&$!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[$,r]);var A=ce(a);return l.useEffect(function(){if(C.elements){var y=Re(a,A,["clientSecret","fonts"]);y&&C.elements.update(y)}},[a,A,C.elements]),l.useEffect(function(){var y=C.stripe;!y||!y._registerWrapper||!y.registerAppInfo||(y._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),y.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[C.stripe]),l.createElement(ue.Provider,{value:C},l.createElement(pe.Provider,{value:{cart:i,setCart:c,cartState:j,setCartState:R}},o))};Oe.propTypes={stripe:d.any,options:d.object};var ee=function(e){var r=l.useContext(ue);return at(r,e)},be=function(e){var r=l.useContext(pe);return st(r,e)},ot=function(){var e=ee("calls useElements()"),r=e.elements;return r},it=function(){var e=ee("calls useStripe()"),r=e.stripe;return r};d.func.isRequired;var b=function(e,r,a){var o=!!a,s=l.useRef(a);l.useEffect(function(){s.current=a},[a]),l.useEffect(function(){if(!o||!e)return function(){};var u=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,u),function(){e.off(r,u)}},[o,r,e,s])},ct=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},m=function(e,r){var a="".concat(ct(e),"Element"),o=function(i){var c=i.id,S=i.className,w=i.options,j=w===void 0?{}:w,R=i.onBlur,_=i.onFocus,h=i.onReady,C=i.onChange,O=i.onEscape,$=i.onClick,A=i.onLoadError,y=i.onLoaderStart,F=i.onNetworksChange,N=i.onCheckout,L=i.onLineItemClick,B=i.onConfirm,K=i.onCancel,f=i.onShippingAddressChange,E=i.onShippingRateChange,I=ee("mounts <".concat(a,">")),M=I.elements,H=l.useState(null),D=Z(H,2),v=D[0],X=D[1],P=l.useRef(null),U=l.useRef(null),de=be("mounts <".concat(a,">")),te=de.setCart,re=de.setCartState;b(v,"blur",R),b(v,"focus",_),b(v,"escape",O),b(v,"click",$),b(v,"loaderror",A),b(v,"loaderstart",y),b(v,"networkschange",F),b(v,"lineitemclick",L),b(v,"confirm",B),b(v,"cancel",K),b(v,"shippingaddresschange",f),b(v,"shippingratechange",E);var G;e==="cart"?G=function(me){re(me),h&&h(me)}:h&&(e==="payButton"?G=h:G=function(){h(v)}),b(v,"ready",G);var Be=e==="cart"?function(g){re(g),C&&C(g)}:C;b(v,"change",Be);var Ie=e==="cart"?function(g){re(g),N&&N(g)}:N;b(v,"checkout",Ie),l.useLayoutEffect(function(){if(P.current===null&&M&&U.current!==null){var g=M.create(e,j);e==="cart"&&te&&te(g),P.current=g,X(g),g.mount(U.current)}},[M,j,te]);var fe=ce(j);return l.useEffect(function(){if(P.current){var g=Re(j,fe,["paymentRequest"]);g&&P.current.update(g)}},[j,fe]),l.useLayoutEffect(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),l.createElement("div",{id:c,className:S,ref:U})},s=function(i){ee("mounts <".concat(a,">")),be("mounts <".concat(a,">"));var c=i.id,S=i.className;return l.createElement("div",{id:c,className:S})},u=r?s:o;return u.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onCheckout:d.func,onLineItemClick:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},u.displayName=a,u.__elementType=e,u},x=typeof window>"u";m("auBankAccount",x);m("card",x);var Ae=m("cardNumber",x),lt=m("cardExpiry",x),ut=m("cardCvc",x);m("fpxBank",x);m("iban",x);m("idealBank",x);m("p24Bank",x);m("epsBank",x);m("payment",x);m("payButton",x);m("paymentRequestButton",x);m("linkAuthentication",x);m("address",x);m("shippingAddress",x);m("cart",x);m("paymentMethodMessaging",x);m("affirmMessage",x);m("afterpayClearpayMessage",x);var _e="https://js.stripe.com/v3",pt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Se="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",dt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(_e,'"]')),r=0;r element.");return o.appendChild(a),a},mt=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:r})},J=null,xt=function(e){return J!==null||(J=new Promise(function(r,a){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(Se),window.Stripe){r(window.Stripe);return}try{var o=dt();o&&e?console.warn(Se):o||(o=ft(e)),o.addEventListener("load",function(){window.Stripe?r(window.Stripe):a(new Error("Stripe.js not available"))}),o.addEventListener("error",function(){a(new Error("Failed to load Stripe.js"))})}catch(s){a(s);return}})),J},ht=function(e,r,a){if(e===null)return null;var o=e.apply(void 0,r);return mt(o,a),o},$e=Promise.resolve().then(function(){return xt(null)}),Le=!1;$e.catch(function(t){Le||console.warn(t)});var vt=function(){for(var e=arguments.length,r=new Array(e),a=0;at.mode==="dark"?t.gray1:t.gray5}; diff --git a/assets/index-C72-Uy01.js b/assets/index-BOFQZ7qD.js similarity index 89% rename from assets/index-C72-Uy01.js rename to assets/index-BOFQZ7qD.js index 2bf6828f..4fdef68d 100644 --- a/assets/index-C72-Uy01.js +++ b/assets/index-BOFQZ7qD.js @@ -1,4 +1,4 @@ -import{q as j,r as m,j as e,n as f,f as C,T as b,b as N,X as P,S as w,w as h,D as v,h as S,o as F,C as T}from"./index-Bo8UkscO.js";import{C as E}from"./index-CnadCGrz.js";import{C as M}from"./index-DzuqAlYx.js";import{F as Q,S as _}from"./index-mrm-aJDu.js";import{u}from"./useSearchParams-CMuS-qVd.js";import{C as $}from"./index-CihtPuAx.js";import{P as k}from"./index-D6txpOmq.js";import"./swiper-react-dLA_7gCe.js";import"./base-C7euzKDi.js";import"./warning-C5gOjCvf.js";import"./index-Dof53sD6.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-PGMEsYK1.js";const B=j("div")` +import{q as j,r as m,j as e,n as f,f as C,T as b,b as N,X as P,S as w,w as h,D as v,h as S,o as F,C as T}from"./index-DdR0U16d.js";import{C as E}from"./index-CTffk5vR.js";import{C as M}from"./index-ibEhBCOW.js";import{F as Q,S as _}from"./index-CIgK6KxT.js";import{u}from"./useSearchParams-DwoVLtwq.js";import{C as $}from"./index-CMcFPrAH.js";import{P as k}from"./index-Bq7IYj2l.js";import"./swiper-react-BLsnPoYA.js";import"./base-C7euzKDi.js";import"./warning-Cy01Vo2F.js";import"./index-CZO-v9Fr.js";import"./ResponsiveImage-Cj4skSpA.js";import"./index-BhJ-dW2f.js";const B=j("div")` display: flex; row-gap: 30px; flex-wrap: wrap; diff --git a/assets/index-KzvqoYJ5.js b/assets/index-BeK4AdO8.js similarity index 96% rename from assets/index-KzvqoYJ5.js rename to assets/index-BeK4AdO8.js index d0e10cd4..2239ff24 100644 --- a/assets/index-KzvqoYJ5.js +++ b/assets/index-BeK4AdO8.js @@ -1,4 +1,4 @@ -import{an as g,q as h,T as b,f as w,r as n,D as v,i as y,j as s,n as P,m as A,c5 as Q,Z as D,c6 as W,c7 as H,s as N,v as z,c8 as R,ax as q,aK as T,c9 as L,L as S,l as $,ca as O,h as V,o as K}from"./index-Bo8UkscO.js";import{u as C,C as U,a as _,b as G}from"./CourseAgenda-DG6Q95Xo.js";import{R as Y}from"./index-DvNYyE7v.js";import{b as Z,Q as J}from"./questionnaires-_0sODp6F.js";import{u as X}from"./useDownloadCertificate-Gsl9Kioe.js";import"./index-DLruw0EO.js";import"./warning-C5gOjCvf.js";import"./ResponsiveImage-wHQCVyd2.js";import"./Upload-CrRhBbHH.js";const ee={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"},m=(e,t)=>g` +import{an as g,q as h,T as b,f as w,r as n,D as v,i as y,j as s,n as P,m as A,c5 as Q,Z as D,c6 as W,c7 as H,s as N,v as z,c8 as R,ax as q,aK as T,c9 as L,L as S,l as $,ca as O,h as V,o as K}from"./index-DdR0U16d.js";import{u as C,C as U,a as _,b as G}from"./CourseAgenda-B2ujVzgN.js";import{R as Y}from"./index-DW7ziQAg.js";import{b as Z,Q as J}from"./questionnaires-BOcFjJOw.js";import{u as X}from"./useDownloadCertificate-DQ0RD7nc.js";import"./index-HBZ4Cq4Z.js";import"./warning-Cy01Vo2F.js";import"./ResponsiveImage-Cj4skSpA.js";import"./Upload-jAUszd-C.js";const ee={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"},m=(e,t)=>g` @media (min-width: ${ee[e]}) { ${t} } diff --git a/assets/index-PGMEsYK1.js b/assets/index-BhJ-dW2f.js similarity index 96% rename from assets/index-PGMEsYK1.js rename to assets/index-BhJ-dW2f.js index c63fa5e3..d4539bb8 100644 --- a/assets/index-PGMEsYK1.js +++ b/assets/index-BhJ-dW2f.js @@ -1,4 +1,4 @@ -import{q as o,j as r}from"./index-Bo8UkscO.js";const l="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5%201H12.5C13.3284%201%2014%201.67157%2014%202.5V12.5C14%2013.3284%2013.3284%2014%2012.5%2014H2.5C1.67157%2014%201%2013.3284%201%2012.5V2.5C1%201.67157%201.67157%201%202.5%201ZM2.5%202C2.22386%202%202%202.22386%202%202.5V8.3636L3.6818%206.6818C3.76809%206.59551%203.88572%206.54797%204.00774%206.55007C4.12975%206.55216%204.24568%206.60372%204.32895%206.69293L7.87355%2010.4901L10.6818%207.6818C10.8575%207.50607%2011.1425%207.50607%2011.3182%207.6818L13%209.3636V2.5C13%202.22386%2012.7761%202%2012.5%202H2.5ZM2%2012.5V9.6364L3.98887%207.64753L7.5311%2011.4421L8.94113%2013H2.5C2.22386%2013%202%2012.7761%202%2012.5ZM12.5%2013H10.155L8.48336%2011.153L11%208.6364L13%2010.6364V12.5C13%2012.7761%2012.7761%2013%2012.5%2013ZM6.64922%205.5C6.64922%205.03013%207.03013%204.64922%207.5%204.64922C7.96987%204.64922%208.35078%205.03013%208.35078%205.5C8.35078%205.96987%207.96987%206.35078%207.5%206.35078C7.03013%206.35078%206.64922%205.96987%206.64922%205.5ZM7.5%203.74922C6.53307%203.74922%205.74922%204.53307%205.74922%205.5C5.74922%206.46693%206.53307%207.25078%207.5%207.25078C8.46693%207.25078%209.25078%206.46693%209.25078%205.5C9.25078%204.53307%208.46693%203.74922%207.5%203.74922Z'%20fill='currentColor'%20/%3e%3c/svg%3e",C=o.div` +import{q as o,j as r}from"./index-DdR0U16d.js";const l="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5%201H12.5C13.3284%201%2014%201.67157%2014%202.5V12.5C14%2013.3284%2013.3284%2014%2012.5%2014H2.5C1.67157%2014%201%2013.3284%201%2012.5V2.5C1%201.67157%201.67157%201%202.5%201ZM2.5%202C2.22386%202%202%202.22386%202%202.5V8.3636L3.6818%206.6818C3.76809%206.59551%203.88572%206.54797%204.00774%206.55007C4.12975%206.55216%204.24568%206.60372%204.32895%206.69293L7.87355%2010.4901L10.6818%207.6818C10.8575%207.50607%2011.1425%207.50607%2011.3182%207.6818L13%209.3636V2.5C13%202.22386%2012.7761%202%2012.5%202H2.5ZM2%2012.5V9.6364L3.98887%207.64753L7.5311%2011.4421L8.94113%2013H2.5C2.22386%2013%202%2012.7761%202%2012.5ZM12.5%2013H10.155L8.48336%2011.153L11%208.6364L13%2010.6364V12.5C13%2012.7761%2012.7761%2013%2012.5%2013ZM6.64922%205.5C6.64922%205.03013%207.03013%204.64922%207.5%204.64922C7.96987%204.64922%208.35078%205.03013%208.35078%205.5C8.35078%205.96987%207.96987%206.35078%207.5%206.35078C7.03013%206.35078%206.64922%205.96987%206.64922%205.5ZM7.5%203.74922C6.53307%203.74922%205.74922%204.53307%205.74922%205.5C5.74922%206.46693%206.53307%207.25078%207.5%207.25078C8.46693%207.25078%209.25078%206.46693%209.25078%205.5C9.25078%204.53307%208.46693%203.74922%207.5%203.74922Z'%20fill='currentColor'%20/%3e%3c/svg%3e",C=o.div` width: 100%; height: 100%; border: 1px solid diff --git a/assets/index-C0u-ZNcE.js b/assets/index-Bp4z1X_W.js similarity index 96% rename from assets/index-C0u-ZNcE.js rename to assets/index-Bp4z1X_W.js index 4786d97c..26277a85 100644 --- a/assets/index-C0u-ZNcE.js +++ b/assets/index-Bp4z1X_W.js @@ -1,4 +1,4 @@ -import{q as m,r as e,D as u,f,j as t,x,Z as M,A as g}from"./index-Bo8UkscO.js";const W=m.div` +import{q as m,r as e,D as u,f,j as t,x,Z as M,A as g}from"./index-DdR0U16d.js";const W=m.div` iframe { width: 100% !important; height: calc(100vh - 76px); diff --git a/assets/index-D6txpOmq.js b/assets/index-Bq7IYj2l.js similarity index 96% rename from assets/index-D6txpOmq.js rename to assets/index-Bq7IYj2l.js index 488f2676..7c721404 100644 --- a/assets/index-D6txpOmq.js +++ b/assets/index-Bq7IYj2l.js @@ -1,4 +1,4 @@ -import{q as k,j as o,L as v,s as w}from"./index-Bo8UkscO.js";const y=k.div` +import{q as k,j as o,L as v,s as w}from"./index-DdR0U16d.js";const y=k.div` display: flex; justify-content: flex-start; align-items: center; diff --git a/assets/index-CbM85lEr.js b/assets/index-BrlDJcGg.js similarity index 90% rename from assets/index-CbM85lEr.js rename to assets/index-BrlDJcGg.js index 4a934dc7..69b8e8e0 100644 --- a/assets/index-CbM85lEr.js +++ b/assets/index-BrlDJcGg.js @@ -1,4 +1,4 @@ -import{q as j,n as m,f as x,i as E,j as e,T as P,s as v,v as f,l as b,w as c,r as a,D as M,Z as w,h as S}from"./index-Bo8UkscO.js";import{T as k}from"./Tabs-CO-l8TER.js";import{E as p}from"./index-DIpJ4xhM.js";import{P as C}from"./index-lFh4cs_O.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-PGMEsYK1.js";import"./index-BlWqUIM7.js";import"./index-rPhH6DdW.js";import"./index-Q5z7UDcg.js";const T=j.div` +import{q as j,n as m,f as x,i as E,j as e,T as P,s as v,v as f,l as b,w as c,r as a,D as M,Z as w,h as S}from"./index-DdR0U16d.js";import{T as k}from"./Tabs-C_s_LN6Y.js";import{E as p}from"./index-CsquLrCJ.js";import{P as C}from"./index-BH6C5uk2.js";import"./ResponsiveImage-Cj4skSpA.js";import"./index-BhJ-dW2f.js";import"./index-naIVnHMf.js";import"./index-CtKtIhYW.js";import"./index-DuwnFplQ.js";const T=j.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-DlJsUL6u.js b/assets/index-CCpOKIya.js similarity index 85% rename from assets/index-DlJsUL6u.js rename to assets/index-CCpOKIya.js index 244fd905..79310e39 100644 --- a/assets/index-DlJsUL6u.js +++ b/assets/index-CCpOKIya.js @@ -1,4 +1,4 @@ -import{q as b,E as $,f as w,r as g,h as y,X as I,i as N,j as s,o as P,C as R,L as a,l as C,s as l,w as i,I as E,T as u,M as k,G as B,n as L,v as S,J as v,U as M,K as z}from"./index-Bo8UkscO.js";import{P as F}from"./index-B8tRK7-_.js";import{R as q}from"./ResponsiveImage-wHQCVyd2.js";import{C as G}from"./index-DpPQm32o.js";import{B as H}from"./index-XD7REZpG.js";import{C as U}from"./index-PGMEsYK1.js";import{C as X}from"./index-B7Mx4ryn.js";import{T as A}from"./index-BlWqUIM7.js";import{C as J}from"./index-rPhH6DdW.js";import"./swiper-react-dLA_7gCe.js";import"./index-CsJcOuQH.js";import"./swiper-ES8EF7dV.js";const K=b.section` +import{q as b,E as $,f as w,r as g,h as y,X as I,i as N,j as s,o as P,C as R,L as a,l as C,s as l,w as i,I as E,T as u,M as k,G as B,n as L,v as S,J as v,U as M,K as z}from"./index-DdR0U16d.js";import{P as F}from"./index-DdKOa6TA.js";import{R as q}from"./ResponsiveImage-Cj4skSpA.js";import{C as G}from"./index-DX00fjMM.js";import{B as H}from"./index-CcDf82b6.js";import{C as U}from"./index-BhJ-dW2f.js";import{C as X}from"./index-GZhcI3y0.js";import{T as A}from"./index-naIVnHMf.js";import{C as J}from"./index-CtKtIhYW.js";import"./swiper-react-BLsnPoYA.js";import"./index-CGAhkVF0.js";import"./swiper-8PJkZR9V.js";const K=b.section` .tutor-avatar { width: 100%; max-width: 100%; diff --git a/assets/index-sb21KuWH.js b/assets/index-CEJ6seiJ.js similarity index 80% rename from assets/index-sb21KuWH.js rename to assets/index-CEJ6seiJ.js index bfe6ed36..7778ddc5 100644 --- a/assets/index-sb21KuWH.js +++ b/assets/index-CEJ6seiJ.js @@ -1 +1 @@ -import{i as c,k as l,f as u,b as p,l as r,j as s,o as d,C as m,w as a,A as x,n as h}from"./index-Bo8UkscO.js";import{A as j,R}from"./AuthWrapper-BdUQe8CT.js";const S=()=>{const{push:t}=c(),{search:e}=l(),n=e&&e.split("&")[0].split("=")[1],o=e&&e.split("&")[1].split("=")[1],{t:i}=u();return p.useEffect(()=>{!o&&t(r.home)},[]),s.jsx(d,{children:s.jsx(j,{children:s.jsx(m,{children:s.jsx(a.Row,{justify:"center",children:s.jsx(a.Col,{md:12,lg:12,children:s.jsx(R.ResetPasswordForm,{onSecondStepSuccess:()=>{t(r.login),x.success(i("LoginPage.ForgotSuccessStep2"))},secondStep:!0,mobile:h,return_url:"#/reset-password",token:o,email:n})})})})})})};export{S as default}; +import{i as c,k as l,f as u,b as p,l as r,j as s,o as d,C as m,w as a,A as x,n as h}from"./index-DdR0U16d.js";import{A as j,R}from"./AuthWrapper-B3tCSxZi.js";const S=()=>{const{push:t}=c(),{search:e}=l(),n=e&&e.split("&")[0].split("=")[1],o=e&&e.split("&")[1].split("=")[1],{t:i}=u();return p.useEffect(()=>{!o&&t(r.home)},[]),s.jsx(d,{children:s.jsx(j,{children:s.jsx(m,{children:s.jsx(a.Row,{justify:"center",children:s.jsx(a.Col,{md:12,lg:12,children:s.jsx(R.ResetPasswordForm,{onSecondStepSuccess:()=>{t(r.login),x.success(i("LoginPage.ForgotSuccessStep2"))},secondStep:!0,mobile:h,return_url:"#/reset-password",token:o,email:n})})})})})})};export{S as default}; diff --git a/assets/index-CsJcOuQH.js b/assets/index-CGAhkVF0.js similarity index 91% rename from assets/index-CsJcOuQH.js rename to assets/index-CGAhkVF0.js index 5aec5ed3..192b2837 100644 --- a/assets/index-CsJcOuQH.js +++ b/assets/index-CGAhkVF0.js @@ -1,4 +1,4 @@ -import{q as a,n as j,j as r,s as d,aq as l}from"./index-Bo8UkscO.js";const o=a.div` +import{q as a,n as j,j as r,s as d,aq as l}from"./index-DdR0U16d.js";const o=a.div` display: flex; flex-direction: column; diff --git a/assets/index-mrm-aJDu.js b/assets/index-CIgK6KxT.js similarity index 97% rename from assets/index-mrm-aJDu.js rename to assets/index-CIgK6KxT.js index f926aeda..a792f8aa 100644 --- a/assets/index-mrm-aJDu.js +++ b/assets/index-CIgK6KxT.js @@ -1,4 +1,4 @@ -import{aM as b,g as l,f as h,j as e,q as m,n,an as u,r as x,D as y,s as k,Q as j}from"./index-Bo8UkscO.js";var w=b();const C=l(w),v=({onSubmit:a})=>{const{t}=h();return e.jsx(C,{placeholder:t("Filters.Search"),onSubmit:a})},S=m("div")` +import{aM as b,g as l,f as h,j as e,q as m,n,an as u,r as x,D as y,s as k,Q as j}from"./index-DdR0U16d.js";var w=b();const C=l(w),v=({onSubmit:a})=>{const{t}=h();return e.jsx(C,{placeholder:t("Filters.Search"),onSubmit:a})},S=m("div")` display: flex; .tags-list { diff --git a/assets/index-CihtPuAx.js b/assets/index-CMcFPrAH.js similarity index 99% rename from assets/index-CihtPuAx.js rename to assets/index-CMcFPrAH.js index ca5e82bd..80f5df01 100644 --- a/assets/index-CihtPuAx.js +++ b/assets/index-CMcFPrAH.js @@ -1,4 +1,4 @@ -import{r as C,a as sn,g as Xn,b as h,b6 as E,b7 as B,ao as ve,b8 as ge,b9 as Ht,ba as de,bb as Gn,bc as H,bd as br,be as Jn,bf as Ct,bg as U,bh as Ne,bi as Te,bj as Kt,bk as Ye,bl as Zn,bm as ea,bn as re,bo as ne,bp as Re,bq as $t,br as ie,bs as qe,bt as ze,R as ta,bu as vt,bv as Qt,bw as er,bx as It,by as ra,bz as Dr,bA as kr,bB as na,bC as aa,bD as pn,bE as Sr,bF as ut,bG as dt,bH as oa,bI as sa,bJ as cn,bK as ln,bL as ia,bM as pa,bN as ca,bO as la,bP as ua,bQ as da,bR as Xe,bS as fa,bT as ha,bU as gt,bV as yt,bW as wt,bX as Cr,bY as _r,bZ as ma,q as ye,b_ as va,b$ as ga,f as ce,j as k,T as ya,s as Vt,ai as un,I as wa,ad as ba,n as Da,ae as ka,aK as dn,X as Sa,b3 as Ca,v as Ee,c0 as fn,D as hn,c1 as _a,c2 as xa,c3 as Ma,c4 as xr,aO as Ea,h as Pa,x as Oa,Z as Na,i as Ta,b0 as Ia,b1 as Ra,L as Ya,G as La}from"./index-Bo8UkscO.js";import{w as Aa}from"./warning-C5gOjCvf.js";import{D as it,a as pt}from"./index-Dof53sD6.js";import{a as Fa}from"./ResponsiveImage-wHQCVyd2.js";import{C as ja}from"./index-PGMEsYK1.js";function Ba(r,n){r.prototype=Object.create(n.prototype),r.prototype.constructor=r,Ut(r,n)}function Ut(r,n){return Ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ut(r,n)}function Wa(r,n){if(r==null)return{};var o={},t=Object.keys(r),e,s;for(s=0;s=0)&&(o[e]=r[e]);return o}function Mr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ha(r,n,o){return r===n?!0:r.correspondingElement?r.correspondingElement.classList.contains(o):r.classList.contains(o)}function Ka(r,n,o){if(r===n)return!0;for(;r.parentNode||r.host;){if(r.parentNode&&Ha(r,n,o))return!0;r=r.parentNode||r.host}return r}function $a(r){return document.documentElement.clientWidth<=r.clientX||document.documentElement.clientHeight<=r.clientY}var Qa=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var n=!1,o=Object.defineProperty({},"passive",{get:function(){n=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,o),window.removeEventListener("testPassiveEventSupport",t,o),n}};function Va(r){return r===void 0&&(r=0),function(){return++r}}var Ua=Va(),qt,ct={},Rt={},qa=["touchstart","touchmove"],za="ignore-react-onclickoutside";function Er(r,n){var o={},t=qa.indexOf(n)!==-1;return t&&qt&&(o.passive=!r.props.preventDefault),o}function _t(r,n){var o,t,e=r.displayName||r.name||"Component";return t=o=function(s){Ba(c,s);function c(i){var p;return p=s.call(this,i)||this,p.__outsideClickHandler=function(l){if(typeof p.__clickOutsideHandlerProp=="function"){p.__clickOutsideHandlerProp(l);return}var f=p.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(l);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(l);return}throw new Error("WrappedComponent: "+e+" lacks a handleClickOutside(event) function for processing outside click events.")},p.__getComponentNode=function(){var l=p.getInstance();return n&&typeof n.setClickOutsideRef=="function"?n.setClickOutsideRef()(l):typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():sn.findDOMNode(l)},p.enableOnClickOutside=function(){if(!(typeof document>"u"||Rt[p._uid])){typeof qt>"u"&&(qt=Qa()),Rt[p._uid]=!0;var l=p.props.eventTypes;l.forEach||(l=[l]),ct[p._uid]=function(f){if(p.componentNode!==null&&(p.props.preventDefault&&f.preventDefault(),p.props.stopPropagation&&f.stopPropagation(),!(p.props.excludeScrollbar&&$a(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Ka(m,p.componentNode,p.props.outsideClickIgnoreClass)===document&&p.__outsideClickHandler(f)}},l.forEach(function(f){document.addEventListener(f,ct[p._uid],Er(Mr(p),f))})}},p.disableOnClickOutside=function(){delete Rt[p._uid];var l=ct[p._uid];if(l&&typeof document<"u"){var f=p.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,l,Er(Mr(p),m))}),delete ct[p._uid]}},p.getRef=function(l){return p.instanceRef=l},p._uid=Ua(),p}var a=c.prototype;return a.getInstance=function(){if(r.prototype&&!r.prototype.isReactComponent)return this;var p=this.instanceRef;return p.getInstance?p.getInstance():p},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var p=this.getInstance();if(n&&typeof n.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=n.handleClickOutside(p),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+e+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var p=this.props;p.excludeScrollbar;var l=Wa(p,["excludeScrollbar"]);return r.prototype&&r.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,C.createElement(r,l)},c}(C.Component),o.displayName="OnClickOutside("+e+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:za,preventDefault:!1,stopPropagation:!1},o.getClass=function(){return r.getClass?r.getClass():r},t}var mn=C.createContext(),vn=C.createContext();function Xa(r){var n=r.children,o=C.useState(null),t=o[0],e=o[1],s=C.useRef(!1);C.useEffect(function(){return function(){s.current=!0}},[]);var c=C.useCallback(function(a){s.current||e(a)},[]);return C.createElement(mn.Provider,{value:t},C.createElement(vn.Provider,{value:c},n))}var gn=function(n){return Array.isArray(n)?n[0]:n},yn=function(n){if(typeof n=="function"){for(var o=arguments.length,t=new Array(o>1?o-1:0),e=1;e"u")return!1;var n=q(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function co(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var t=n.styles[o]||{},e=n.attributes[o]||{},s=n.elements[o];!z(s)||!se(s)||(Object.assign(s.style,t),Object.keys(e).forEach(function(c){var a=e[c];a===!1?s.removeAttribute(c):s.setAttribute(c,a===!0?"":a)}))})}function lo(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(t){var e=n.elements[t],s=n.attributes[t]||{},c=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:o[t]),a=c.reduce(function(i,p){return i[p]="",i},{});!z(e)||!se(e)||(Object.assign(e.style,a),Object.keys(s).forEach(function(i){e.removeAttribute(i)}))})}}const uo={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:lo,requires:["computeStyles"]};function ae(r){return r.split("-")[0]}var xe=Math.max,bt=Math.min,Ae=Math.round;function Xt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Dn(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Fe(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var t=r.getBoundingClientRect(),e=1,s=1;n&&z(r)&&(e=r.offsetWidth>0&&Ae(t.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ae(t.height)/r.offsetHeight||1);var c=Pe(r)?q(r):window,a=c.visualViewport,i=!Dn()&&o,p=(t.left+(i&&a?a.offsetLeft:0))/e,l=(t.top+(i&&a?a.offsetTop:0))/s,f=t.width/e,m=t.height/s;return{width:f,height:m,top:l,right:p+f,bottom:l+m,left:p,x:p,y:l}}function nr(r){var n=Fe(r),o=r.offsetWidth,t=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-t)<=1&&(t=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:t}}function kn(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&rr(o)){var t=n;do{if(t&&r.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function pe(r){return q(r).getComputedStyle(r)}function fo(r){return["table","td","th"].indexOf(se(r))>=0}function we(r){return((Pe(r)?r.ownerDocument:r.document)||window.document).documentElement}function xt(r){return se(r)==="html"?r:r.assignedSlot||r.parentNode||(rr(r)?r.host:null)||we(r)}function Tr(r){return!z(r)||pe(r).position==="fixed"?null:r.offsetParent}function ho(r){var n=/firefox/i.test(Xt()),o=/Trident/i.test(Xt());if(o&&z(r)){var t=pe(r);if(t.position==="fixed")return null}var e=xt(r);for(rr(e)&&(e=e.host);z(e)&&["html","body"].indexOf(se(e))<0;){var s=pe(e);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return e;e=e.parentNode}return null}function tt(r){for(var n=q(r),o=Tr(r);o&&fo(o)&&pe(o).position==="static";)o=Tr(o);return o&&(se(o)==="html"||se(o)==="body"&&pe(o).position==="static")?n:o||ho(r)||n}function ar(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Qe(r,n,o){return xe(r,bt(n,o))}function mo(r,n,o){var t=Qe(r,n,o);return t>o?o:t}function Sn(){return{top:0,right:0,bottom:0,left:0}}function Cn(r){return Object.assign({},Sn(),r)}function _n(r,n){return n.reduce(function(o,t){return o[t]=r,o},{})}var vo=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,Cn(typeof n!="number"?n:_n(n,et))};function go(r){var n,o=r.state,t=r.name,e=r.options,s=o.elements.arrow,c=o.modifiersData.popperOffsets,a=ae(o.placement),i=ar(a),p=[Q,G].indexOf(a)>=0,l=p?"height":"width";if(!(!s||!c)){var f=vo(e.padding,o),m=nr(s),v=i==="y"?$:Q,g=i==="y"?X:G,y=o.rects.reference[l]+o.rects.reference[i]-c[i]-o.rects.popper[l],w=c[i]-o.rects.reference[i],S=tt(s),_=S?i==="y"?S.clientHeight||0:S.clientWidth||0:0,b=y/2-w/2,D=f[v],x=_-m[l]-f[g],M=_/2-m[l]/2+b,P=Qe(D,M,x),O=i;o.modifiersData[t]=(n={},n[O]=P,n.centerOffset=P-M,n)}}function yo(r){var n=r.state,o=r.options,t=o.element,e=t===void 0?"[data-popper-arrow]":t;e!=null&&(typeof e=="string"&&(e=n.elements.popper.querySelector(e),!e)||kn(n.elements.popper,e)&&(n.elements.arrow=e))}const wo={name:"arrow",enabled:!0,phase:"main",fn:go,effect:yo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(r){return r.split("-")[1]}var bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Do(r,n){var o=r.x,t=r.y,e=n.devicePixelRatio||1;return{x:Ae(o*e)/e||0,y:Ae(t*e)/e||0}}function Ir(r){var n,o=r.popper,t=r.popperRect,e=r.placement,s=r.variation,c=r.offsets,a=r.position,i=r.gpuAcceleration,p=r.adaptive,l=r.roundOffsets,f=r.isFixed,m=c.x,v=m===void 0?0:m,g=c.y,y=g===void 0?0:g,w=typeof l=="function"?l({x:v,y}):{x:v,y};v=w.x,y=w.y;var S=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),b=Q,D=$,x=window;if(p){var M=tt(o),P="clientHeight",O="clientWidth";if(M===q(o)&&(M=we(o),pe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",O="scrollWidth")),M=M,e===$||(e===Q||e===G)&&s===Ge){D=X;var Y=f&&M===x&&x.visualViewport?x.visualViewport.height:M[P];y-=Y-t.height,y*=i?1:-1}if(e===Q||(e===$||e===X)&&s===Ge){b=G;var R=f&&M===x&&x.visualViewport?x.visualViewport.width:M[O];v-=R-t.width,v*=i?1:-1}}var W=Object.assign({position:a},p&&bo),J=l===!0?Do({x:v,y},q(o)):{x:v,y};if(v=J.x,y=J.y,i){var K;return Object.assign({},W,(K={},K[D]=_?"0":"",K[b]=S?"0":"",K.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",K))}return Object.assign({},W,(n={},n[D]=_?y+"px":"",n[b]=S?v+"px":"",n.transform="",n))}function ko(r){var n=r.state,o=r.options,t=o.gpuAcceleration,e=t===void 0?!0:t,s=o.adaptive,c=s===void 0?!0:s,a=o.roundOffsets,i=a===void 0?!0:a,p={placement:ae(n.placement),variation:je(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:e,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Ir(Object.assign({},p,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Ir(Object.assign({},p,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const So={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var lt={passive:!0};function Co(r){var n=r.state,o=r.instance,t=r.options,e=t.scroll,s=e===void 0?!0:e,c=t.resize,a=c===void 0?!0:c,i=q(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&p.forEach(function(l){l.addEventListener("scroll",o.update,lt)}),a&&i.addEventListener("resize",o.update,lt),function(){s&&p.forEach(function(l){l.removeEventListener("scroll",o.update,lt)}),a&&i.removeEventListener("resize",o.update,lt)}}const _o={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Co,data:{}};var xo={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(r){return r.replace(/left|right|bottom|top/g,function(n){return xo[n]})}var Mo={start:"end",end:"start"};function Rr(r){return r.replace(/start|end/g,function(n){return Mo[n]})}function or(r){var n=q(r),o=n.pageXOffset,t=n.pageYOffset;return{scrollLeft:o,scrollTop:t}}function sr(r){return Fe(we(r)).left+or(r).scrollLeft}function Eo(r,n){var o=q(r),t=we(r),e=o.visualViewport,s=t.clientWidth,c=t.clientHeight,a=0,i=0;if(e){s=e.width,c=e.height;var p=Dn();(p||!p&&n==="fixed")&&(a=e.offsetLeft,i=e.offsetTop)}return{width:s,height:c,x:a+sr(r),y:i}}function Po(r){var n,o=we(r),t=or(r),e=(n=r.ownerDocument)==null?void 0:n.body,s=xe(o.scrollWidth,o.clientWidth,e?e.scrollWidth:0,e?e.clientWidth:0),c=xe(o.scrollHeight,o.clientHeight,e?e.scrollHeight:0,e?e.clientHeight:0),a=-t.scrollLeft+sr(r),i=-t.scrollTop;return pe(e||o).direction==="rtl"&&(a+=xe(o.clientWidth,e?e.clientWidth:0)-s),{width:s,height:c,x:a,y:i}}function ir(r){var n=pe(r),o=n.overflow,t=n.overflowX,e=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+e+t)}function xn(r){return["html","body","#document"].indexOf(se(r))>=0?r.ownerDocument.body:z(r)&&ir(r)?r:xn(xt(r))}function Ve(r,n){var o;n===void 0&&(n=[]);var t=xn(r),e=t===((o=r.ownerDocument)==null?void 0:o.body),s=q(t),c=e?[s].concat(s.visualViewport||[],ir(t)?t:[]):t,a=n.concat(c);return e?a:a.concat(Ve(xt(c)))}function Gt(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Oo(r,n){var o=Fe(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Yr(r,n,o){return n===wn?Gt(Eo(r,o)):Pe(n)?Oo(n,o):Gt(Po(we(r)))}function No(r){var n=Ve(xt(r)),o=["absolute","fixed"].indexOf(pe(r).position)>=0,t=o&&z(r)?tt(r):r;return Pe(t)?n.filter(function(e){return Pe(e)&&kn(e,t)&&se(e)!=="body"}):[]}function To(r,n,o,t){var e=n==="clippingParents"?No(r):[].concat(n),s=[].concat(e,[o]),c=s[0],a=s.reduce(function(i,p){var l=Yr(r,p,t);return i.top=xe(l.top,i.top),i.right=bt(l.right,i.right),i.bottom=bt(l.bottom,i.bottom),i.left=xe(l.left,i.left),i},Yr(r,c,t));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Mn(r){var n=r.reference,o=r.element,t=r.placement,e=t?ae(t):null,s=t?je(t):null,c=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,i;switch(e){case $:i={x:c,y:n.y-o.height};break;case X:i={x:c,y:n.y+n.height};break;case G:i={x:n.x+n.width,y:a};break;case Q:i={x:n.x-o.width,y:a};break;default:i={x:n.x,y:n.y}}var p=e?ar(e):null;if(p!=null){var l=p==="y"?"height":"width";switch(s){case Le:i[p]=i[p]-(n[l]/2-o[l]/2);break;case Ge:i[p]=i[p]+(n[l]/2-o[l]/2);break}}return i}function Je(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=t===void 0?r.placement:t,s=o.strategy,c=s===void 0?r.strategy:s,a=o.boundary,i=a===void 0?Ga:a,p=o.rootBoundary,l=p===void 0?wn:p,f=o.elementContext,m=f===void 0?Ke:f,v=o.altBoundary,g=v===void 0?!1:v,y=o.padding,w=y===void 0?0:y,S=Cn(typeof w!="number"?w:_n(w,et)),_=m===Ke?Ja:Ke,b=r.rects.popper,D=r.elements[g?_:m],x=To(Pe(D)?D:D.contextElement||we(r.elements.popper),i,l,c),M=Fe(r.elements.reference),P=Mn({reference:M,element:b,strategy:"absolute",placement:e}),O=Gt(Object.assign({},b,P)),Y=m===Ke?O:M,R={top:x.top-Y.top+S.top,bottom:Y.bottom-x.bottom+S.bottom,left:x.left-Y.left+S.left,right:Y.right-x.right+S.right},W=r.modifiersData.offset;if(m===Ke&&W){var J=W[e];Object.keys(R).forEach(function(K){var be=[G,X].indexOf(K)>=0?1:-1,De=[$,X].indexOf(K)>=0?"y":"x";R[K]+=J[De]*be})}return R}function Io(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=o.boundary,s=o.rootBoundary,c=o.padding,a=o.flipVariations,i=o.allowedAutoPlacements,p=i===void 0?bn:i,l=je(t),f=l?a?Nr:Nr.filter(function(g){return je(g)===l}):et,m=f.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=f);var v=m.reduce(function(g,y){return g[y]=Je(r,{placement:y,boundary:e,rootBoundary:s,padding:c})[ae(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Ro(r){if(ae(r)===tr)return[];var n=ft(r);return[Rr(r),n,Rr(n)]}function Yo(r){var n=r.state,o=r.options,t=r.name;if(!n.modifiersData[t]._skip){for(var e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!0:c,i=o.fallbackPlacements,p=o.padding,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,v=o.flipVariations,g=v===void 0?!0:v,y=o.allowedAutoPlacements,w=n.options.placement,S=ae(w),_=S===w,b=i||(_||!g?[ft(w)]:Ro(w)),D=[w].concat(b).reduce(function(Oe,le){return Oe.concat(ae(le)===tr?Io(n,{placement:le,boundary:l,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:y}):le)},[]),x=n.rects.reference,M=n.rects.popper,P=new Map,O=!0,Y=D[0],R=0;R=0,De=be?"width":"height",V=Je(n,{placement:W,boundary:l,rootBoundary:f,altBoundary:m,padding:p}),Z=be?K?G:Q:K?X:$;x[De]>M[De]&&(Z=ft(Z));var rt=ft(Z),ke=[];if(s&&ke.push(V[J]<=0),a&&ke.push(V[Z]<=0,V[rt]<=0),ke.every(function(Oe){return Oe})){Y=W,O=!1;break}P.set(W,ke)}if(O)for(var nt=g?3:1,Pt=function(le){var He=D.find(function(ot){var Se=P.get(ot);if(Se)return Se.slice(0,le).every(function(Ot){return Ot})});if(He)return Y=He,"break"},We=nt;We>0;We--){var at=Pt(We);if(at==="break")break}n.placement!==Y&&(n.modifiersData[t]._skip=!0,n.placement=Y,n.reset=!0)}}const Lo={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function Lr(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function Ar(r){return[$,G,X,Q].some(function(n){return r[n]>=0})}function Ao(r){var n=r.state,o=r.name,t=n.rects.reference,e=n.rects.popper,s=n.modifiersData.preventOverflow,c=Je(n,{elementContext:"reference"}),a=Je(n,{altBoundary:!0}),i=Lr(c,t),p=Lr(a,e,s),l=Ar(i),f=Ar(p);n.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ao};function jo(r,n,o){var t=ae(r),e=[Q,$].indexOf(t)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,c=s[0],a=s[1];return c=c||0,a=(a||0)*e,[Q,G].indexOf(t)>=0?{x:a,y:c}:{x:c,y:a}}function Bo(r){var n=r.state,o=r.options,t=r.name,e=o.offset,s=e===void 0?[0,0]:e,c=bn.reduce(function(l,f){return l[f]=jo(f,n.rects,s),l},{}),a=c[n.placement],i=a.x,p=a.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=i,n.modifiersData.popperOffsets.y+=p),n.modifiersData[t]=c}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function Ho(r){var n=r.state,o=r.name;n.modifiersData[o]=Mn({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const Ko={name:"popperOffsets",enabled:!0,phase:"read",fn:Ho,data:{}};function $o(r){return r==="x"?"y":"x"}function Qo(r){var n=r.state,o=r.options,t=r.name,e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!1:c,i=o.boundary,p=o.rootBoundary,l=o.altBoundary,f=o.padding,m=o.tether,v=m===void 0?!0:m,g=o.tetherOffset,y=g===void 0?0:g,w=Je(n,{boundary:i,rootBoundary:p,padding:f,altBoundary:l}),S=ae(n.placement),_=je(n.placement),b=!_,D=ar(S),x=$o(D),M=n.modifiersData.popperOffsets,P=n.rects.reference,O=n.rects.popper,Y=typeof y=="function"?y(Object.assign({},n.rects,{placement:n.placement})):y,R=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,J={x:0,y:0};if(M){if(s){var K,be=D==="y"?$:Q,De=D==="y"?X:G,V=D==="y"?"height":"width",Z=M[D],rt=Z+w[be],ke=Z-w[De],nt=v?-O[V]/2:0,Pt=_===Le?P[V]:O[V],We=_===Le?-O[V]:-P[V],at=n.elements.arrow,Oe=v&&at?nr(at):{width:0,height:0},le=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Sn(),He=le[be],ot=le[De],Se=Qe(0,P[V],Oe[V]),Ot=b?P[V]/2-nt-Se-He-R.mainAxis:Pt-Se-He-R.mainAxis,$n=b?-P[V]/2+nt+Se+ot+R.mainAxis:We+Se+ot+R.mainAxis,Nt=n.elements.arrow&&tt(n.elements.arrow),Qn=Nt?D==="y"?Nt.clientTop||0:Nt.clientLeft||0:0,ur=(K=W==null?void 0:W[D])!=null?K:0,Vn=Z+Ot-ur-Qn,Un=Z+$n-ur,dr=Qe(v?bt(rt,Vn):rt,Z,v?xe(ke,Un):ke);M[D]=dr,J[D]=dr-Z}if(a){var fr,qn=D==="x"?$:Q,zn=D==="x"?X:G,Ce=M[x],st=x==="y"?"height":"width",hr=Ce+w[qn],mr=Ce-w[zn],Tt=[$,Q].indexOf(S)!==-1,vr=(fr=W==null?void 0:W[x])!=null?fr:0,gr=Tt?hr:Ce-P[st]-O[st]-vr+R.altAxis,yr=Tt?Ce+P[st]+O[st]-vr-R.altAxis:mr,wr=v&&Tt?mo(gr,Ce,yr):Qe(v?gr:hr,Ce,v?yr:mr);M[x]=wr,J[x]=wr-Ce}n.modifiersData[t]=J}}const Vo={name:"preventOverflow",enabled:!0,phase:"main",fn:Qo,requiresIfExists:["offset"]};function Uo(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function qo(r){return r===q(r)||!z(r)?or(r):Uo(r)}function zo(r){var n=r.getBoundingClientRect(),o=Ae(n.width)/r.offsetWidth||1,t=Ae(n.height)/r.offsetHeight||1;return o!==1||t!==1}function Xo(r,n,o){o===void 0&&(o=!1);var t=z(n),e=z(n)&&zo(n),s=we(n),c=Fe(r,e,o),a={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(t||!t&&!o)&&((se(n)!=="body"||ir(s))&&(a=qo(n)),z(n)?(i=Fe(n,!0),i.x+=n.clientLeft,i.y+=n.clientTop):s&&(i.x=sr(s))),{x:c.left+a.scrollLeft-i.x,y:c.top+a.scrollTop-i.y,width:c.width,height:c.height}}function Go(r){var n=new Map,o=new Set,t=[];r.forEach(function(s){n.set(s.name,s)});function e(s){o.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(a){if(!o.has(a)){var i=n.get(a);i&&e(i)}}),t.push(s)}return r.forEach(function(s){o.has(s.name)||e(s)}),t}function Jo(r){var n=Go(r);return po.reduce(function(o,t){return o.concat(n.filter(function(e){return e.phase===t}))},[])}function Zo(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function es(r){var n=r.reduce(function(o,t){var e=o[t.name];return o[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,o},{});return Object.keys(n).map(function(o){return n[o]})}var Fr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var r=arguments.length,n=new Array(r),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,t=kt(r);if(n){var e=kt(this).constructor;o=Reflect.construct(t,arguments,e)}else o=t.apply(this,arguments);return function(s,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(s)}(this,o)}}function Ze(r){return function(n){if(Array.isArray(n))return Yt(n)}(r)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(r)||function(n,o){if(n){if(typeof n=="string")return Yt(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yt(n,o)}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +import{r as C,a as sn,g as Xn,b as h,b6 as E,b7 as B,ao as ve,b8 as ge,b9 as Ht,ba as de,bb as Gn,bc as H,bd as br,be as Jn,bf as Ct,bg as U,bh as Ne,bi as Te,bj as Kt,bk as Ye,bl as Zn,bm as ea,bn as re,bo as ne,bp as Re,bq as $t,br as ie,bs as qe,bt as ze,R as ta,bu as vt,bv as Qt,bw as er,bx as It,by as ra,bz as Dr,bA as kr,bB as na,bC as aa,bD as pn,bE as Sr,bF as ut,bG as dt,bH as oa,bI as sa,bJ as cn,bK as ln,bL as ia,bM as pa,bN as ca,bO as la,bP as ua,bQ as da,bR as Xe,bS as fa,bT as ha,bU as gt,bV as yt,bW as wt,bX as Cr,bY as _r,bZ as ma,q as ye,b_ as va,b$ as ga,f as ce,j as k,T as ya,s as Vt,ai as un,I as wa,ad as ba,n as Da,ae as ka,aK as dn,X as Sa,b3 as Ca,v as Ee,c0 as fn,D as hn,c1 as _a,c2 as xa,c3 as Ma,c4 as xr,aO as Ea,h as Pa,x as Oa,Z as Na,i as Ta,b0 as Ia,b1 as Ra,L as Ya,G as La}from"./index-DdR0U16d.js";import{w as Aa}from"./warning-Cy01Vo2F.js";import{D as it,a as pt}from"./index-CZO-v9Fr.js";import{a as Fa}from"./ResponsiveImage-Cj4skSpA.js";import{C as ja}from"./index-BhJ-dW2f.js";function Ba(r,n){r.prototype=Object.create(n.prototype),r.prototype.constructor=r,Ut(r,n)}function Ut(r,n){return Ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ut(r,n)}function Wa(r,n){if(r==null)return{};var o={},t=Object.keys(r),e,s;for(s=0;s=0)&&(o[e]=r[e]);return o}function Mr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ha(r,n,o){return r===n?!0:r.correspondingElement?r.correspondingElement.classList.contains(o):r.classList.contains(o)}function Ka(r,n,o){if(r===n)return!0;for(;r.parentNode||r.host;){if(r.parentNode&&Ha(r,n,o))return!0;r=r.parentNode||r.host}return r}function $a(r){return document.documentElement.clientWidth<=r.clientX||document.documentElement.clientHeight<=r.clientY}var Qa=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var n=!1,o=Object.defineProperty({},"passive",{get:function(){n=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,o),window.removeEventListener("testPassiveEventSupport",t,o),n}};function Va(r){return r===void 0&&(r=0),function(){return++r}}var Ua=Va(),qt,ct={},Rt={},qa=["touchstart","touchmove"],za="ignore-react-onclickoutside";function Er(r,n){var o={},t=qa.indexOf(n)!==-1;return t&&qt&&(o.passive=!r.props.preventDefault),o}function _t(r,n){var o,t,e=r.displayName||r.name||"Component";return t=o=function(s){Ba(c,s);function c(i){var p;return p=s.call(this,i)||this,p.__outsideClickHandler=function(l){if(typeof p.__clickOutsideHandlerProp=="function"){p.__clickOutsideHandlerProp(l);return}var f=p.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(l);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(l);return}throw new Error("WrappedComponent: "+e+" lacks a handleClickOutside(event) function for processing outside click events.")},p.__getComponentNode=function(){var l=p.getInstance();return n&&typeof n.setClickOutsideRef=="function"?n.setClickOutsideRef()(l):typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():sn.findDOMNode(l)},p.enableOnClickOutside=function(){if(!(typeof document>"u"||Rt[p._uid])){typeof qt>"u"&&(qt=Qa()),Rt[p._uid]=!0;var l=p.props.eventTypes;l.forEach||(l=[l]),ct[p._uid]=function(f){if(p.componentNode!==null&&(p.props.preventDefault&&f.preventDefault(),p.props.stopPropagation&&f.stopPropagation(),!(p.props.excludeScrollbar&&$a(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Ka(m,p.componentNode,p.props.outsideClickIgnoreClass)===document&&p.__outsideClickHandler(f)}},l.forEach(function(f){document.addEventListener(f,ct[p._uid],Er(Mr(p),f))})}},p.disableOnClickOutside=function(){delete Rt[p._uid];var l=ct[p._uid];if(l&&typeof document<"u"){var f=p.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,l,Er(Mr(p),m))}),delete ct[p._uid]}},p.getRef=function(l){return p.instanceRef=l},p._uid=Ua(),p}var a=c.prototype;return a.getInstance=function(){if(r.prototype&&!r.prototype.isReactComponent)return this;var p=this.instanceRef;return p.getInstance?p.getInstance():p},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var p=this.getInstance();if(n&&typeof n.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=n.handleClickOutside(p),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+e+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var p=this.props;p.excludeScrollbar;var l=Wa(p,["excludeScrollbar"]);return r.prototype&&r.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,C.createElement(r,l)},c}(C.Component),o.displayName="OnClickOutside("+e+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:za,preventDefault:!1,stopPropagation:!1},o.getClass=function(){return r.getClass?r.getClass():r},t}var mn=C.createContext(),vn=C.createContext();function Xa(r){var n=r.children,o=C.useState(null),t=o[0],e=o[1],s=C.useRef(!1);C.useEffect(function(){return function(){s.current=!0}},[]);var c=C.useCallback(function(a){s.current||e(a)},[]);return C.createElement(mn.Provider,{value:t},C.createElement(vn.Provider,{value:c},n))}var gn=function(n){return Array.isArray(n)?n[0]:n},yn=function(n){if(typeof n=="function"){for(var o=arguments.length,t=new Array(o>1?o-1:0),e=1;e"u")return!1;var n=q(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function co(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var t=n.styles[o]||{},e=n.attributes[o]||{},s=n.elements[o];!z(s)||!se(s)||(Object.assign(s.style,t),Object.keys(e).forEach(function(c){var a=e[c];a===!1?s.removeAttribute(c):s.setAttribute(c,a===!0?"":a)}))})}function lo(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(t){var e=n.elements[t],s=n.attributes[t]||{},c=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:o[t]),a=c.reduce(function(i,p){return i[p]="",i},{});!z(e)||!se(e)||(Object.assign(e.style,a),Object.keys(s).forEach(function(i){e.removeAttribute(i)}))})}}const uo={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:lo,requires:["computeStyles"]};function ae(r){return r.split("-")[0]}var xe=Math.max,bt=Math.min,Ae=Math.round;function Xt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Dn(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Fe(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var t=r.getBoundingClientRect(),e=1,s=1;n&&z(r)&&(e=r.offsetWidth>0&&Ae(t.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ae(t.height)/r.offsetHeight||1);var c=Pe(r)?q(r):window,a=c.visualViewport,i=!Dn()&&o,p=(t.left+(i&&a?a.offsetLeft:0))/e,l=(t.top+(i&&a?a.offsetTop:0))/s,f=t.width/e,m=t.height/s;return{width:f,height:m,top:l,right:p+f,bottom:l+m,left:p,x:p,y:l}}function nr(r){var n=Fe(r),o=r.offsetWidth,t=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-t)<=1&&(t=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:t}}function kn(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&rr(o)){var t=n;do{if(t&&r.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function pe(r){return q(r).getComputedStyle(r)}function fo(r){return["table","td","th"].indexOf(se(r))>=0}function we(r){return((Pe(r)?r.ownerDocument:r.document)||window.document).documentElement}function xt(r){return se(r)==="html"?r:r.assignedSlot||r.parentNode||(rr(r)?r.host:null)||we(r)}function Tr(r){return!z(r)||pe(r).position==="fixed"?null:r.offsetParent}function ho(r){var n=/firefox/i.test(Xt()),o=/Trident/i.test(Xt());if(o&&z(r)){var t=pe(r);if(t.position==="fixed")return null}var e=xt(r);for(rr(e)&&(e=e.host);z(e)&&["html","body"].indexOf(se(e))<0;){var s=pe(e);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return e;e=e.parentNode}return null}function tt(r){for(var n=q(r),o=Tr(r);o&&fo(o)&&pe(o).position==="static";)o=Tr(o);return o&&(se(o)==="html"||se(o)==="body"&&pe(o).position==="static")?n:o||ho(r)||n}function ar(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Qe(r,n,o){return xe(r,bt(n,o))}function mo(r,n,o){var t=Qe(r,n,o);return t>o?o:t}function Sn(){return{top:0,right:0,bottom:0,left:0}}function Cn(r){return Object.assign({},Sn(),r)}function _n(r,n){return n.reduce(function(o,t){return o[t]=r,o},{})}var vo=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,Cn(typeof n!="number"?n:_n(n,et))};function go(r){var n,o=r.state,t=r.name,e=r.options,s=o.elements.arrow,c=o.modifiersData.popperOffsets,a=ae(o.placement),i=ar(a),p=[Q,G].indexOf(a)>=0,l=p?"height":"width";if(!(!s||!c)){var f=vo(e.padding,o),m=nr(s),v=i==="y"?$:Q,g=i==="y"?X:G,y=o.rects.reference[l]+o.rects.reference[i]-c[i]-o.rects.popper[l],w=c[i]-o.rects.reference[i],S=tt(s),_=S?i==="y"?S.clientHeight||0:S.clientWidth||0:0,b=y/2-w/2,D=f[v],x=_-m[l]-f[g],M=_/2-m[l]/2+b,P=Qe(D,M,x),O=i;o.modifiersData[t]=(n={},n[O]=P,n.centerOffset=P-M,n)}}function yo(r){var n=r.state,o=r.options,t=o.element,e=t===void 0?"[data-popper-arrow]":t;e!=null&&(typeof e=="string"&&(e=n.elements.popper.querySelector(e),!e)||kn(n.elements.popper,e)&&(n.elements.arrow=e))}const wo={name:"arrow",enabled:!0,phase:"main",fn:go,effect:yo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(r){return r.split("-")[1]}var bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Do(r,n){var o=r.x,t=r.y,e=n.devicePixelRatio||1;return{x:Ae(o*e)/e||0,y:Ae(t*e)/e||0}}function Ir(r){var n,o=r.popper,t=r.popperRect,e=r.placement,s=r.variation,c=r.offsets,a=r.position,i=r.gpuAcceleration,p=r.adaptive,l=r.roundOffsets,f=r.isFixed,m=c.x,v=m===void 0?0:m,g=c.y,y=g===void 0?0:g,w=typeof l=="function"?l({x:v,y}):{x:v,y};v=w.x,y=w.y;var S=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),b=Q,D=$,x=window;if(p){var M=tt(o),P="clientHeight",O="clientWidth";if(M===q(o)&&(M=we(o),pe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",O="scrollWidth")),M=M,e===$||(e===Q||e===G)&&s===Ge){D=X;var Y=f&&M===x&&x.visualViewport?x.visualViewport.height:M[P];y-=Y-t.height,y*=i?1:-1}if(e===Q||(e===$||e===X)&&s===Ge){b=G;var R=f&&M===x&&x.visualViewport?x.visualViewport.width:M[O];v-=R-t.width,v*=i?1:-1}}var W=Object.assign({position:a},p&&bo),J=l===!0?Do({x:v,y},q(o)):{x:v,y};if(v=J.x,y=J.y,i){var K;return Object.assign({},W,(K={},K[D]=_?"0":"",K[b]=S?"0":"",K.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",K))}return Object.assign({},W,(n={},n[D]=_?y+"px":"",n[b]=S?v+"px":"",n.transform="",n))}function ko(r){var n=r.state,o=r.options,t=o.gpuAcceleration,e=t===void 0?!0:t,s=o.adaptive,c=s===void 0?!0:s,a=o.roundOffsets,i=a===void 0?!0:a,p={placement:ae(n.placement),variation:je(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:e,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Ir(Object.assign({},p,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Ir(Object.assign({},p,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const So={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var lt={passive:!0};function Co(r){var n=r.state,o=r.instance,t=r.options,e=t.scroll,s=e===void 0?!0:e,c=t.resize,a=c===void 0?!0:c,i=q(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&p.forEach(function(l){l.addEventListener("scroll",o.update,lt)}),a&&i.addEventListener("resize",o.update,lt),function(){s&&p.forEach(function(l){l.removeEventListener("scroll",o.update,lt)}),a&&i.removeEventListener("resize",o.update,lt)}}const _o={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Co,data:{}};var xo={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(r){return r.replace(/left|right|bottom|top/g,function(n){return xo[n]})}var Mo={start:"end",end:"start"};function Rr(r){return r.replace(/start|end/g,function(n){return Mo[n]})}function or(r){var n=q(r),o=n.pageXOffset,t=n.pageYOffset;return{scrollLeft:o,scrollTop:t}}function sr(r){return Fe(we(r)).left+or(r).scrollLeft}function Eo(r,n){var o=q(r),t=we(r),e=o.visualViewport,s=t.clientWidth,c=t.clientHeight,a=0,i=0;if(e){s=e.width,c=e.height;var p=Dn();(p||!p&&n==="fixed")&&(a=e.offsetLeft,i=e.offsetTop)}return{width:s,height:c,x:a+sr(r),y:i}}function Po(r){var n,o=we(r),t=or(r),e=(n=r.ownerDocument)==null?void 0:n.body,s=xe(o.scrollWidth,o.clientWidth,e?e.scrollWidth:0,e?e.clientWidth:0),c=xe(o.scrollHeight,o.clientHeight,e?e.scrollHeight:0,e?e.clientHeight:0),a=-t.scrollLeft+sr(r),i=-t.scrollTop;return pe(e||o).direction==="rtl"&&(a+=xe(o.clientWidth,e?e.clientWidth:0)-s),{width:s,height:c,x:a,y:i}}function ir(r){var n=pe(r),o=n.overflow,t=n.overflowX,e=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+e+t)}function xn(r){return["html","body","#document"].indexOf(se(r))>=0?r.ownerDocument.body:z(r)&&ir(r)?r:xn(xt(r))}function Ve(r,n){var o;n===void 0&&(n=[]);var t=xn(r),e=t===((o=r.ownerDocument)==null?void 0:o.body),s=q(t),c=e?[s].concat(s.visualViewport||[],ir(t)?t:[]):t,a=n.concat(c);return e?a:a.concat(Ve(xt(c)))}function Gt(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Oo(r,n){var o=Fe(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Yr(r,n,o){return n===wn?Gt(Eo(r,o)):Pe(n)?Oo(n,o):Gt(Po(we(r)))}function No(r){var n=Ve(xt(r)),o=["absolute","fixed"].indexOf(pe(r).position)>=0,t=o&&z(r)?tt(r):r;return Pe(t)?n.filter(function(e){return Pe(e)&&kn(e,t)&&se(e)!=="body"}):[]}function To(r,n,o,t){var e=n==="clippingParents"?No(r):[].concat(n),s=[].concat(e,[o]),c=s[0],a=s.reduce(function(i,p){var l=Yr(r,p,t);return i.top=xe(l.top,i.top),i.right=bt(l.right,i.right),i.bottom=bt(l.bottom,i.bottom),i.left=xe(l.left,i.left),i},Yr(r,c,t));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Mn(r){var n=r.reference,o=r.element,t=r.placement,e=t?ae(t):null,s=t?je(t):null,c=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,i;switch(e){case $:i={x:c,y:n.y-o.height};break;case X:i={x:c,y:n.y+n.height};break;case G:i={x:n.x+n.width,y:a};break;case Q:i={x:n.x-o.width,y:a};break;default:i={x:n.x,y:n.y}}var p=e?ar(e):null;if(p!=null){var l=p==="y"?"height":"width";switch(s){case Le:i[p]=i[p]-(n[l]/2-o[l]/2);break;case Ge:i[p]=i[p]+(n[l]/2-o[l]/2);break}}return i}function Je(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=t===void 0?r.placement:t,s=o.strategy,c=s===void 0?r.strategy:s,a=o.boundary,i=a===void 0?Ga:a,p=o.rootBoundary,l=p===void 0?wn:p,f=o.elementContext,m=f===void 0?Ke:f,v=o.altBoundary,g=v===void 0?!1:v,y=o.padding,w=y===void 0?0:y,S=Cn(typeof w!="number"?w:_n(w,et)),_=m===Ke?Ja:Ke,b=r.rects.popper,D=r.elements[g?_:m],x=To(Pe(D)?D:D.contextElement||we(r.elements.popper),i,l,c),M=Fe(r.elements.reference),P=Mn({reference:M,element:b,strategy:"absolute",placement:e}),O=Gt(Object.assign({},b,P)),Y=m===Ke?O:M,R={top:x.top-Y.top+S.top,bottom:Y.bottom-x.bottom+S.bottom,left:x.left-Y.left+S.left,right:Y.right-x.right+S.right},W=r.modifiersData.offset;if(m===Ke&&W){var J=W[e];Object.keys(R).forEach(function(K){var be=[G,X].indexOf(K)>=0?1:-1,De=[$,X].indexOf(K)>=0?"y":"x";R[K]+=J[De]*be})}return R}function Io(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=o.boundary,s=o.rootBoundary,c=o.padding,a=o.flipVariations,i=o.allowedAutoPlacements,p=i===void 0?bn:i,l=je(t),f=l?a?Nr:Nr.filter(function(g){return je(g)===l}):et,m=f.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=f);var v=m.reduce(function(g,y){return g[y]=Je(r,{placement:y,boundary:e,rootBoundary:s,padding:c})[ae(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Ro(r){if(ae(r)===tr)return[];var n=ft(r);return[Rr(r),n,Rr(n)]}function Yo(r){var n=r.state,o=r.options,t=r.name;if(!n.modifiersData[t]._skip){for(var e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!0:c,i=o.fallbackPlacements,p=o.padding,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,v=o.flipVariations,g=v===void 0?!0:v,y=o.allowedAutoPlacements,w=n.options.placement,S=ae(w),_=S===w,b=i||(_||!g?[ft(w)]:Ro(w)),D=[w].concat(b).reduce(function(Oe,le){return Oe.concat(ae(le)===tr?Io(n,{placement:le,boundary:l,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:y}):le)},[]),x=n.rects.reference,M=n.rects.popper,P=new Map,O=!0,Y=D[0],R=0;R=0,De=be?"width":"height",V=Je(n,{placement:W,boundary:l,rootBoundary:f,altBoundary:m,padding:p}),Z=be?K?G:Q:K?X:$;x[De]>M[De]&&(Z=ft(Z));var rt=ft(Z),ke=[];if(s&&ke.push(V[J]<=0),a&&ke.push(V[Z]<=0,V[rt]<=0),ke.every(function(Oe){return Oe})){Y=W,O=!1;break}P.set(W,ke)}if(O)for(var nt=g?3:1,Pt=function(le){var He=D.find(function(ot){var Se=P.get(ot);if(Se)return Se.slice(0,le).every(function(Ot){return Ot})});if(He)return Y=He,"break"},We=nt;We>0;We--){var at=Pt(We);if(at==="break")break}n.placement!==Y&&(n.modifiersData[t]._skip=!0,n.placement=Y,n.reset=!0)}}const Lo={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function Lr(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function Ar(r){return[$,G,X,Q].some(function(n){return r[n]>=0})}function Ao(r){var n=r.state,o=r.name,t=n.rects.reference,e=n.rects.popper,s=n.modifiersData.preventOverflow,c=Je(n,{elementContext:"reference"}),a=Je(n,{altBoundary:!0}),i=Lr(c,t),p=Lr(a,e,s),l=Ar(i),f=Ar(p);n.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ao};function jo(r,n,o){var t=ae(r),e=[Q,$].indexOf(t)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,c=s[0],a=s[1];return c=c||0,a=(a||0)*e,[Q,G].indexOf(t)>=0?{x:a,y:c}:{x:c,y:a}}function Bo(r){var n=r.state,o=r.options,t=r.name,e=o.offset,s=e===void 0?[0,0]:e,c=bn.reduce(function(l,f){return l[f]=jo(f,n.rects,s),l},{}),a=c[n.placement],i=a.x,p=a.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=i,n.modifiersData.popperOffsets.y+=p),n.modifiersData[t]=c}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function Ho(r){var n=r.state,o=r.name;n.modifiersData[o]=Mn({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const Ko={name:"popperOffsets",enabled:!0,phase:"read",fn:Ho,data:{}};function $o(r){return r==="x"?"y":"x"}function Qo(r){var n=r.state,o=r.options,t=r.name,e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!1:c,i=o.boundary,p=o.rootBoundary,l=o.altBoundary,f=o.padding,m=o.tether,v=m===void 0?!0:m,g=o.tetherOffset,y=g===void 0?0:g,w=Je(n,{boundary:i,rootBoundary:p,padding:f,altBoundary:l}),S=ae(n.placement),_=je(n.placement),b=!_,D=ar(S),x=$o(D),M=n.modifiersData.popperOffsets,P=n.rects.reference,O=n.rects.popper,Y=typeof y=="function"?y(Object.assign({},n.rects,{placement:n.placement})):y,R=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,J={x:0,y:0};if(M){if(s){var K,be=D==="y"?$:Q,De=D==="y"?X:G,V=D==="y"?"height":"width",Z=M[D],rt=Z+w[be],ke=Z-w[De],nt=v?-O[V]/2:0,Pt=_===Le?P[V]:O[V],We=_===Le?-O[V]:-P[V],at=n.elements.arrow,Oe=v&&at?nr(at):{width:0,height:0},le=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Sn(),He=le[be],ot=le[De],Se=Qe(0,P[V],Oe[V]),Ot=b?P[V]/2-nt-Se-He-R.mainAxis:Pt-Se-He-R.mainAxis,$n=b?-P[V]/2+nt+Se+ot+R.mainAxis:We+Se+ot+R.mainAxis,Nt=n.elements.arrow&&tt(n.elements.arrow),Qn=Nt?D==="y"?Nt.clientTop||0:Nt.clientLeft||0:0,ur=(K=W==null?void 0:W[D])!=null?K:0,Vn=Z+Ot-ur-Qn,Un=Z+$n-ur,dr=Qe(v?bt(rt,Vn):rt,Z,v?xe(ke,Un):ke);M[D]=dr,J[D]=dr-Z}if(a){var fr,qn=D==="x"?$:Q,zn=D==="x"?X:G,Ce=M[x],st=x==="y"?"height":"width",hr=Ce+w[qn],mr=Ce-w[zn],Tt=[$,Q].indexOf(S)!==-1,vr=(fr=W==null?void 0:W[x])!=null?fr:0,gr=Tt?hr:Ce-P[st]-O[st]-vr+R.altAxis,yr=Tt?Ce+P[st]+O[st]-vr-R.altAxis:mr,wr=v&&Tt?mo(gr,Ce,yr):Qe(v?gr:hr,Ce,v?yr:mr);M[x]=wr,J[x]=wr-Ce}n.modifiersData[t]=J}}const Vo={name:"preventOverflow",enabled:!0,phase:"main",fn:Qo,requiresIfExists:["offset"]};function Uo(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function qo(r){return r===q(r)||!z(r)?or(r):Uo(r)}function zo(r){var n=r.getBoundingClientRect(),o=Ae(n.width)/r.offsetWidth||1,t=Ae(n.height)/r.offsetHeight||1;return o!==1||t!==1}function Xo(r,n,o){o===void 0&&(o=!1);var t=z(n),e=z(n)&&zo(n),s=we(n),c=Fe(r,e,o),a={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(t||!t&&!o)&&((se(n)!=="body"||ir(s))&&(a=qo(n)),z(n)?(i=Fe(n,!0),i.x+=n.clientLeft,i.y+=n.clientTop):s&&(i.x=sr(s))),{x:c.left+a.scrollLeft-i.x,y:c.top+a.scrollTop-i.y,width:c.width,height:c.height}}function Go(r){var n=new Map,o=new Set,t=[];r.forEach(function(s){n.set(s.name,s)});function e(s){o.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(a){if(!o.has(a)){var i=n.get(a);i&&e(i)}}),t.push(s)}return r.forEach(function(s){o.has(s.name)||e(s)}),t}function Jo(r){var n=Go(r);return po.reduce(function(o,t){return o.concat(n.filter(function(e){return e.phase===t}))},[])}function Zo(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function es(r){var n=r.reduce(function(o,t){var e=o[t.name];return o[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,o},{});return Object.keys(n).map(function(o){return n[o]})}var Fr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var r=arguments.length,n=new Array(r),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,t=kt(r);if(n){var e=kt(this).constructor;o=Reflect.construct(t,arguments,e)}else o=t.apply(this,arguments);return function(s,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(s)}(this,o)}}function Ze(r){return function(n){if(Array.isArray(n))return Yt(n)}(r)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(r)||function(n,o){if(n){if(typeof n=="string")return Yt(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yt(n,o)}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yt(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,t=new Array(n);o1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.excludeDateIntervals,c=n.includeDates,a=n.includeDateIntervals,i=n.filterDate;return Et(r,{minDate:o,maxDate:t})||e&&e.some(function(p){return T(r,p)})||s&&s.some(function(p){var l=p.start,f=p.end;return Xe(r,{start:l,end:f})})||c&&!c.some(function(p){return T(r,p)})||a&&!a.some(function(p){var l=p.start,f=p.end;return Xe(r,{start:l,end:f})})||i&&!i(N(r))||!1}function cr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.excludeDates,t=n.excludeDateIntervals;return t&&t.length>0?t.some(function(e){var s=e.start,c=e.end;return Xe(r,{start:s,end:c})}):o&&o.some(function(e){return T(r,e)})||!1}function Nn(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate;return Et(r,{minDate:cn(o),maxDate:fa(t)})||e&&e.some(function(a){return ee(r,a)})||s&&!s.some(function(a){return ee(r,a)})||c&&!c(N(r))||!1}function Lt(r,n,o,t){var e=E(r),s=H(r),c=E(n),a=H(n),i=E(t);return e===c&&e===i?s<=o&&o<=a:e=o||ie:void 0}function ws(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate;return Et(r,{minDate:o,maxDate:t})||e&&e.some(function(a){return St(r,a)})||s&&!s.some(function(a){return St(r,a)})||c&&!c(N(r))||!1}function At(r,n,o){if(!vt(n)||!vt(o))return!1;var t=E(n),e=E(o);return t<=r&&e>=r}function Tn(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate,a=new Date(r,0,1);return Et(a,{minDate:ln(o),maxDate:ha(t)})||e&&e.some(function(i){return fe(a,i)})||s&&!s.some(function(i){return fe(a,i)})||c&&!c(N(a))||!1}function Ft(r,n,o,t){var e=E(r),s=Te(r),c=E(n),a=Te(n),i=E(t);return e===c&&e===i?s<=o&&o<=a:e=o||ie:void 0}function Et(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate;return o&>(r,o)<0||t&>(r,t)>0}function Ur(r,n){return n.some(function(o){return re(o)===re(r)&&ne(o)===ne(r)})}function qr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.excludeTimes,t=n.includeTimes,e=n.filterTime;return o&&Ur(r,o)||t&&!Ur(r,t)||e&&!e(r)||!1}function zr(r,n){var o=n.minTime,t=n.maxTime;if(!o||!t)throw new Error("Both minTime and maxTime props required");var e,s=N(),c=ut(dt(s,ne(r)),re(r)),a=ut(dt(s,ne(o)),re(o)),i=ut(dt(s,ne(t)),re(t));try{e=!Xe(c,{start:a,end:i})}catch{e=!1}return e}function Xr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.includeDates,e=Ye(r,1);return o&&yt(o,e)>0||t&&t.every(function(s){return yt(s,e)>0})||!1}function Gr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.maxDate,t=n.includeDates,e=ge(r,1);return o&&yt(e,o)>0||t&&t.every(function(s){return yt(e,s)>0})||!1}function Jr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.includeDates,e=qe(r,1);return o&&wt(o,e)>0||t&&t.every(function(s){return wt(s,e)>0})||!1}function Zr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.maxDate,t=n.includeDates,e=ze(r,1);return o&&wt(e,o)>0||t&&t.every(function(s){return wt(e,s)>0})||!1}function In(r){var n=r.minDate,o=r.includeDates;if(o&&n){var t=o.filter(function(e){return gt(e,n)>=0});return Cr(t)}return o?Cr(o):n}function Rn(r){var n=r.maxDate,o=r.includeDates;if(o&&n){var t=o.filter(function(e){return gt(e,n)<=0});return _r(t)}return o?_r(o):n}function en(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",o=new Map,t=0,e=r.length;t0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",o=new Map;return r.forEach(function(t){var e=t.date,s=t.holidayName;if(er(e)){var c=I(e,"MM.dd.yyyy"),a=o.get(c)||{};if(!("className"in a)||a.className!==n||(i=a.holidayNames,p=[s],i.length!==p.length||!i.every(function(f,m){return f===p[m]}))){var i,p;a.className=n;var l=a.holidayNames;a.holidayNames=l?[].concat(Ze(l),[s]):[s],o.set(c,a)}}}),o}function Ds(r,n,o,t,e){for(var s=e.length,c=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:Ue,o=Math.ceil(E(r)/n)*n;return{startPeriod:o-(n-1),endPeriod:o}}function rn(r){var n=r.getSeconds(),o=r.getMilliseconds();return pn(r.getTime()-1e3*n-o)}function ks(r,n,o,t){for(var e=[],s=0;s<2*n+1;s++){var c=r+n-s,a=!0;o&&(a=E(o)<=c),t&&a&&(a=E(t)>=c),a&&e.push(c)}return e}var Ss=_t(function(r){F(o,h.Component);var n=j(o);function o(t){var e;L(this,o),u(d(e=n.call(this,t)),"renderOptions",function(){var i=e.props.year,p=e.state.yearsList.map(function(m){return h.createElement("div",{className:i===m?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:m,onClick:e.onChange.bind(d(e),m),"aria-selected":i===m?"true":void 0},i===m?h.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",m)}),l=e.props.minDate?E(e.props.minDate):null,f=e.props.maxDate?E(e.props.maxDate):null;return f&&e.state.yearsList.find(function(m){return m===f})||p.unshift(h.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:e.incrementYears},h.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),l&&e.state.yearsList.find(function(m){return m===l})||p.push(h.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:e.decrementYears},h.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),p}),u(d(e),"onChange",function(i){e.props.onChange(i)}),u(d(e),"handleClickOutside",function(){e.props.onCancel()}),u(d(e),"shiftYears",function(i){var p=e.state.yearsList.map(function(l){return l+i});e.setState({yearsList:p})}),u(d(e),"incrementYears",function(){return e.shiftYears(1)}),u(d(e),"decrementYears",function(){return e.shiftYears(-1)});var s=t.yearDropdownItemNumber,c=t.scrollableYearDropdown,a=s||(c?10:5);return e.state={yearsList:ks(e.props.year,a,e.props.minDate,e.props.maxDate)},e.dropdownRef=C.createRef(),e}return A(o,[{key:"componentDidMount",value:function(){var t=this.dropdownRef.current;if(t){var e=t.children?Array.from(t.children):null,s=e?e.find(function(c){return c.ariaSelected}):null;t.scrollTop=s?s.offsetTop+(s.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}}},{key:"render",value:function(){var t=B({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return h.createElement("div",{className:t,ref:this.dropdownRef},this.renderOptions())}}]),o}()),Cs=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0?l.get(f).holidayNames.join(", "):""}),u(d(t),"getTabIndex",function(a,i){var p=a||t.props.selected,l=i||t.props.preSelection;return(!t.props.showWeekPicker||!t.props.showWeekNumber&&t.isStartOfWeek())&&(t.isKeyboardSelected()||t.isSameDay(p)&&T(l,p))?0:-1}),u(d(t),"handleFocusDay",function(){var a,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=!1;t.getTabIndex()===0&&!i.isInputFocused&&t.isSameDay(t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(p=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(p=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(p=!0),t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()&&(p=!1),t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()&&(p=!1)),p&&((a=t.dayEl.current)===null||a===void 0||a.focus({preventScroll:!0}))}),u(d(t),"renderDayContents",function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(br(t.props.day),t.props.day):br(t.props.day)}),u(d(t),"render",function(){return h.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&h.createElement("span",{className:"holiday-overlay"},t.getTitle()))}),t}return A(o,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(t){this.handleFocusDay(t)}}]),o}(),Ns=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0&&arguments[0]!==void 0?arguments[0]:{},i=!1;t.getTabIndex()===0&&!a.isInputFocused&&T(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(i=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(i=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})}),t}return A(o,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(t){this.handleFocusWeekNumber(t)}},{key:"render",value:function(){var t=this.props,e=t.weekNumber,s=t.ariaLabelPrefix,c=s===void 0?"week ":s,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!t.onClick,"react-datepicker__week-number--selected":T(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return h.createElement("div",{ref:this.weekNumberEl,className:B(a),"aria-label":"".concat(c," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},e)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),o}(),Ts=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c=6,v=!i&&!t.isWeekInMonth(f);if(m||v){if(!t.props.peekNextMonth)break;l=!0}}return a}),u(d(t),"onMonthClick",function(a,i){t.handleDayClick(he(U(t.props.day,i)),a)}),u(d(t),"onMonthMouseEnter",function(a){t.handleDayMouseEnter(he(U(t.props.day,a)))}),u(d(t),"handleMonthNavigation",function(a,i){t.isDisabled(i)||t.isExcluded(i)||(t.props.setPreSelection(i),t.MONTH_REFS[a].current&&t.MONTH_REFS[a].current.focus())}),u(d(t),"onMonthKeyDown",function(a,i){var p=t.props,l=p.selected,f=p.preSelection,m=p.disabledKeyboardNavigation,v=p.showTwoColumnMonthYearPicker,g=p.showFourColumnMonthYearPicker,y=p.setPreSelection,w=a.key;if(w!=="Tab"&&a.preventDefault(),!m){var S=nn(g,v),_=jt[S].verticalNavigationOffset,b=jt[S].grid;switch(w){case"Enter":t.onMonthClick(a,i),y(l);break;case"ArrowRight":t.handleMonthNavigation(i===11?0:i+1,ge(f,1));break;case"ArrowLeft":t.handleMonthNavigation(i===0?11:i-1,Ye(f,1));break;case"ArrowUp":t.handleMonthNavigation(b[0].includes(i)?i+12-_:i-_,Ye(f,_));break;case"ArrowDown":t.handleMonthNavigation(b[b.length-1].includes(i)?i-12+_:i+_,ge(f,_))}}}),u(d(t),"onQuarterClick",function(a,i){t.handleDayClick(Qr(Ne(t.props.day,i)),a)}),u(d(t),"onQuarterMouseEnter",function(a){t.handleDayMouseEnter(Qr(Ne(t.props.day,a)))}),u(d(t),"handleQuarterNavigation",function(a,i){t.isDisabled(i)||t.isExcluded(i)||(t.props.setPreSelection(i),t.QUARTER_REFS[a-1].current&&t.QUARTER_REFS[a-1].current.focus())}),u(d(t),"onQuarterKeyDown",function(a,i){var p=a.key;if(!t.props.disabledKeyboardNavigation)switch(p){case"Enter":t.onQuarterClick(a,i),t.props.setPreSelection(t.props.selected);break;case"ArrowRight":t.handleQuarterNavigation(i===4?1:i+1,ea(t.props.preSelection,1));break;case"ArrowLeft":t.handleQuarterNavigation(i===1?4:i-1,Zn(t.props.preSelection,1))}}),u(d(t),"getMonthClassNames",function(a){var i=t.props,p=i.day,l=i.startDate,f=i.endDate,m=i.selected,v=i.minDate,g=i.maxDate,y=i.preSelection,w=i.monthClassName,S=i.excludeDates,_=i.includeDates,b=w?w(U(p,a)):void 0,D=U(p,a);return B("react-datepicker__month-text","react-datepicker__month-".concat(a),b,{"react-datepicker__month-text--disabled":(v||g||S||_)&&Nn(D,t.props),"react-datepicker__month-text--selected":t.isSelectedMonth(p,a,m),"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&H(y)===a,"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(a),"react-datepicker__month-text--in-range":Lt(l,f,a,p),"react-datepicker__month-text--range-start":t.isRangeStartMonth(a),"react-datepicker__month-text--range-end":t.isRangeEndMonth(a),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(a),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(a),"react-datepicker__month-text--today":t.isCurrentMonth(p,a)})}),u(d(t),"getTabIndex",function(a){var i=H(t.props.preSelection);return t.props.disabledKeyboardNavigation||a!==i?"-1":"0"}),u(d(t),"getQuarterTabIndex",function(a){var i=Te(t.props.preSelection);return t.props.disabledKeyboardNavigation||a!==i?"-1":"0"}),u(d(t),"getAriaLabel",function(a){var i=t.props,p=i.chooseDayAriaLabelPrefix,l=p===void 0?"Choose":p,f=i.disabledDayAriaLabelPrefix,m=f===void 0?"Not available":f,v=i.day,g=U(v,a),y=t.isDisabled(g)||t.isExcluded(g)?m:l;return"".concat(y," ").concat(I(g,"MMMM yyyy"))}),u(d(t),"getQuarterClassNames",function(a){var i=t.props,p=i.day,l=i.startDate,f=i.endDate,m=i.selected,v=i.minDate,g=i.maxDate,y=i.preSelection,w=i.disabledKeyboardNavigation;return B("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter-text--disabled":(v||g)&&ws(Ne(p,a),t.props),"react-datepicker__quarter-text--selected":t.isSelectedQuarter(p,a,m),"react-datepicker__quarter-text--keyboard-selected":!w&&Te(y)===a,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(a),"react-datepicker__quarter-text--in-range":Ft(l,f,a,p),"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(a),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(a)})}),u(d(t),"getMonthContent",function(a){var i=t.props,p=i.showFullMonthYearPicker,l=i.renderMonthContent,f=i.locale,m=i.day,v=On(a,f),g=pr(a,f);return l?l(a,v,g,m):p?g:v}),u(d(t),"getQuarterContent",function(a){var i=t.props,p=i.renderQuarterContent,l=function(f,m){return I(Ne(N(),f),"QQQ",m)}(a,i.locale);return p?p(a,l):l}),u(d(t),"renderMonths",function(){var a=t.props,i=a.showTwoColumnMonthYearPicker,p=a.showFourColumnMonthYearPicker,l=a.day,f=a.selected;return jt[nn(p,i)].grid.map(function(m,v){return h.createElement("div",{className:"react-datepicker__month-wrapper",key:v},m.map(function(g,y){return h.createElement("div",{ref:t.MONTH_REFS[g],key:y,onClick:function(w){t.onMonthClick(w,g)},onKeyDown:function(w){t.onMonthKeyDown(w,g)},onMouseEnter:function(){return t.onMonthMouseEnter(g)},tabIndex:t.getTabIndex(g),className:t.getMonthClassNames(g),role:"option","aria-label":t.getAriaLabel(g),"aria-current":t.isCurrentMonth(l,g)?"date":void 0,"aria-selected":t.isSelectedMonth(l,g,f)},t.getMonthContent(g))}))})}),u(d(t),"renderQuarters",function(){var a=t.props,i=a.day,p=a.selected;return h.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(l,f){return h.createElement("div",{key:f,ref:t.QUARTER_REFS[f],role:"option",onClick:function(m){t.onQuarterClick(m,l)},onKeyDown:function(m){t.onQuarterKeyDown(m,l)},onMouseEnter:function(){return t.onQuarterMouseEnter(l)},className:t.getQuarterClassNames(l),"aria-selected":t.isSelectedQuarter(i,l,p),tabIndex:t.getQuarterTabIndex(l),"aria-current":t.isCurrentQuarter(i,l)?"date":void 0},t.getQuarterContent(l))}))}),u(d(t),"getClassNames",function(){var a=t.props,i=a.selectingDate,p=a.selectsStart,l=a.selectsEnd,f=a.showMonthYearPicker,m=a.showQuarterYearPicker,v=a.showWeekPicker;return B("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(p||l)},{"react-datepicker__monthPicker":f},{"react-datepicker__quarterPicker":m},{"react-datepicker__weekPicker":v})}),t}return A(o,[{key:"render",value:function(){var t=this.props,e=t.showMonthYearPicker,s=t.showQuarterYearPicker,c=t.day,a=t.ariaLabelPrefix,i=a===void 0?"month ":a;return h.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(I(c,"yyyy-MM")),role:"listbox"},e?this.renderMonths():s?this.renderQuarters():this.renderWeeks())}}]),o}(),Fn=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return As.some(function(a){return c.indexOf(a)>=0})})(s.target)&&e.props.onDropdownFocus()}),u(d(e),"getDateInView",function(){var s=e.props,c=s.preSelection,a=s.selected,i=s.openToDate,p=In(e.props),l=Rn(e.props),f=N(),m=i||a||c;return m||(p&&de(f,p)?p:l&&ve(f,l)?l:f)}),u(d(e),"increaseMonth",function(){e.setState(function(s){var c=s.date;return{date:ge(c,1)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"decreaseMonth",function(){e.setState(function(s){var c=s.date;return{date:Ye(c,1)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"handleDayClick",function(s,c,a){e.props.onSelect(s,c,a),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleDayMouseEnter",function(s){e.setState({selectingDate:s}),e.props.onDayMouseEnter&&e.props.onDayMouseEnter(s)}),u(d(e),"handleMonthMouseLeave",function(){e.setState({selectingDate:null}),e.props.onMonthMouseLeave&&e.props.onMonthMouseLeave()}),u(d(e),"handleYearMouseEnter",function(s,c){e.setState({selectingDate:ie(N(),c)}),e.props.onYearMouseEnter&&e.props.onYearMouseEnter(s,c)}),u(d(e),"handleYearMouseLeave",function(s,c){e.props.onYearMouseLeave&&e.props.onYearMouseLeave(s,c)}),u(d(e),"handleYearChange",function(s){e.props.onYearChange&&(e.props.onYearChange(s),e.setState({isRenderAriaLiveMessage:!0})),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(s),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleMonthChange",function(s){e.handleCustomMonthChange(s),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(s),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleCustomMonthChange",function(s){e.props.onMonthChange&&(e.props.onMonthChange(s),e.setState({isRenderAriaLiveMessage:!0}))}),u(d(e),"handleMonthYearChange",function(s){e.handleYearChange(s),e.handleMonthChange(s)}),u(d(e),"changeYear",function(s){e.setState(function(c){var a=c.date;return{date:ie(a,s)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"changeMonth",function(s){e.setState(function(c){var a=c.date;return{date:U(a,s)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"changeMonthYear",function(s){e.setState(function(c){var a=c.date;return{date:ie(U(a,H(s)),E(s))}},function(){return e.handleMonthYearChange(e.state.date)})}),u(d(e),"header",function(){var s=oe(arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.state.date,e.props.locale,e.props.calendarStartDay),c=[];return e.props.showWeekNumbers&&c.push(h.createElement("div",{key:"W",className:"react-datepicker__day-name"},e.props.weekLabel||"#")),c.concat([0,1,2,3,4,5,6].map(function(a){var i=Ct(s,a),p=e.formatWeekday(i,e.props.locale),l=e.props.weekDayClassName?e.props.weekDayClassName(i):void 0;return h.createElement("div",{key:a,className:B("react-datepicker__day-name",l)},p)}))}),u(d(e),"formatWeekday",function(s,c){return e.props.formatWeekDay?function(a,i,p){return i(I(a,"EEEE",p))}(s,e.props.formatWeekDay,c):e.props.useWeekdaysShort?function(a,i){return I(a,"EEE",i)}(s,c):function(a,i){return I(a,"EEEEEE",i)}(s,c)}),u(d(e),"decreaseYear",function(){e.setState(function(s){var c=s.date;return{date:qe(c,e.props.showYearPicker?e.props.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"clearSelectingDate",function(){e.setState({selectingDate:null})}),u(d(e),"renderPreviousButton",function(){if(!e.props.renderCustomHeader){var s;switch(!0){case e.props.showMonthYearPicker:s=Jr(e.state.date,e.props);break;case e.props.showYearPicker:s=function(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_.minDate,D=_.yearItemNumber,x=D===void 0?Ue:D,M=Ie($e(qe(S,x)),x).endPeriod,P=b&&E(b);return P&&P>M||!1}(e.state.date,e.props);break;default:s=Xr(e.state.date,e.props)}if((e.props.forceShowMonthNavigation||e.props.showDisabledMonthNavigation||!s)&&!e.props.showTimeSelectOnly){var c=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=e.decreaseMonth;(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker)&&(a=e.decreaseYear),s&&e.props.showDisabledMonthNavigation&&(c.push("react-datepicker__navigation--previous--disabled"),a=null);var i=e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker,p=e.props,l=p.previousMonthButtonLabel,f=p.previousYearButtonLabel,m=e.props,v=m.previousMonthAriaLabel,g=v===void 0?typeof l=="string"?l:"Previous Month":v,y=m.previousYearAriaLabel,w=y===void 0?typeof f=="string"?f:"Previous Year":y;return h.createElement("button",{type:"button",className:c.join(" "),onClick:a,onKeyDown:e.props.handleOnKeyDown,"aria-label":i?w:g},h.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?e.props.previousYearButtonLabel:e.props.previousMonthButtonLabel))}}}),u(d(e),"increaseYear",function(){e.setState(function(s){var c=s.date;return{date:ze(c,e.props.showYearPicker?e.props.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"renderNextButton",function(){if(!e.props.renderCustomHeader){var s;switch(!0){case e.props.showMonthYearPicker:s=Zr(e.state.date,e.props);break;case e.props.showYearPicker:s=function(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_.maxDate,D=_.yearItemNumber,x=D===void 0?Ue:D,M=Ie(ze(S,x),x).startPeriod,P=b&&E(b);return P&&P0&&arguments[0]!==void 0?arguments[0]:e.state.date,c=["react-datepicker__current-month"];return e.props.showYearDropdown&&c.push("react-datepicker__current-month--hasYearDropdown"),e.props.showMonthDropdown&&c.push("react-datepicker__current-month--hasMonthDropdown"),e.props.showMonthYearDropdown&&c.push("react-datepicker__current-month--hasMonthYearDropdown"),h.createElement("div",{className:c.join(" ")},I(s,e.props.dateFormat,e.props.locale))}),u(d(e),"renderYearDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showYearDropdown&&!s)return h.createElement(Cs,{adjustDateOnChange:e.props.adjustDateOnChange,date:e.state.date,onSelect:e.props.onSelect,setOpen:e.props.setOpen,dropdownMode:e.props.dropdownMode,onChange:e.changeYear,minDate:e.props.minDate,maxDate:e.props.maxDate,year:E(e.state.date),scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),u(d(e),"renderMonthDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showMonthDropdown&&!s)return h.createElement(xs,{dropdownMode:e.props.dropdownMode,locale:e.props.locale,onChange:e.changeMonth,month:H(e.state.date),useShortMonthInDropdown:e.props.useShortMonthInDropdown})}),u(d(e),"renderMonthYearDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showMonthYearDropdown&&!s)return h.createElement(Ps,{dropdownMode:e.props.dropdownMode,locale:e.props.locale,dateFormat:e.props.dateFormat,onChange:e.changeMonthYear,minDate:e.props.minDate,maxDate:e.props.maxDate,date:e.state.date,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown})}),u(d(e),"handleTodayButtonClick",function(s){e.props.onSelect(Vr(),s),e.props.setPreSelection&&e.props.setPreSelection(Vr())}),u(d(e),"renderTodayButton",function(){if(e.props.todayButton&&!e.props.showTimeSelectOnly)return h.createElement("div",{className:"react-datepicker__today-button",onClick:function(s){return e.handleTodayButtonClick(s)}},e.props.todayButton)}),u(d(e),"renderDefaultHeader",function(s){var c=s.monthDate,a=s.i;return h.createElement("div",{className:"react-datepicker__header ".concat(e.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},e.renderCurrentMonth(c),h.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(e.props.dropdownMode),onFocus:e.handleDropdownFocus},e.renderMonthDropdown(a!==0),e.renderMonthYearDropdown(a!==0),e.renderYearDropdown(a!==0)),h.createElement("div",{className:"react-datepicker__day-names"},e.header(c)))}),u(d(e),"renderCustomHeader",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s.monthDate,a=s.i;if(e.props.showTimeSelect&&!e.state.monthContainer||e.props.showTimeSelectOnly)return null;var i=Xr(e.state.date,e.props),p=Gr(e.state.date,e.props),l=Jr(e.state.date,e.props),f=Zr(e.state.date,e.props),m=!e.props.showMonthYearPicker&&!e.props.showQuarterYearPicker&&!e.props.showYearPicker;return h.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:e.props.onDropdownFocus},e.props.renderCustomHeader(Dt(Dt({},e.state),{},{customHeaderCount:a,monthDate:c,changeMonth:e.changeMonth,changeYear:e.changeYear,decreaseMonth:e.decreaseMonth,increaseMonth:e.increaseMonth,decreaseYear:e.decreaseYear,increaseYear:e.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:p,prevYearButtonDisabled:l,nextYearButtonDisabled:f})),m&&h.createElement("div",{className:"react-datepicker__day-names"},e.header(c)))}),u(d(e),"renderYearHeader",function(){var s=e.state.date,c=e.props,a=c.showYearPicker,i=Ie(s,c.yearItemNumber),p=i.startPeriod,l=i.endPeriod;return h.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(p," - ").concat(l):E(s))}),u(d(e),"renderHeader",function(s){switch(!0){case e.props.renderCustomHeader!==void 0:return e.renderCustomHeader(s);case(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker):return e.renderYearHeader(s);default:return e.renderDefaultHeader(s)}}),u(d(e),"renderMonths",function(){var s;if(!e.props.showTimeSelectOnly&&!e.props.showYearPicker){for(var c=[],a=e.props.showPreviousMonths?e.props.monthsShown-1:0,i=Ye(e.state.date,a),p=(s=e.props.monthSelectedIn)!==null&&s!==void 0?s:a,l=0;l0;c.push(h.createElement("div",{key:m,ref:function(y){e.monthContainer=y},className:"react-datepicker__month-container"},e.renderHeader({monthDate:f,i:l}),h.createElement(Is,{chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:e.props.weekAriaLabelPrefix,ariaLabelPrefix:e.props.monthAriaLabelPrefix,onChange:e.changeMonthYear,day:f,dayClassName:e.props.dayClassName,calendarStartDay:e.props.calendarStartDay,monthClassName:e.props.monthClassName,onDayClick:e.handleDayClick,handleOnKeyDown:e.props.handleOnDayKeyDown,onDayMouseEnter:e.handleDayMouseEnter,onMouseLeave:e.handleMonthMouseLeave,onWeekSelect:e.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.state.selectingDate,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,fixedHeight:e.props.fixedHeight,filterDate:e.props.filterDate,preSelection:e.props.preSelection,setPreSelection:e.props.setPreSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumbers:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,peekNextMonth:e.props.peekNextMonth,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,renderDayContents:e.props.renderDayContents,renderMonthContent:e.props.renderMonthContent,renderQuarterContent:e.props.renderQuarterContent,renderYearContent:e.props.renderYearContent,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,showMonthYearPicker:e.props.showMonthYearPicker,showFullMonthYearPicker:e.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:e.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:e.props.showFourColumnMonthYearPicker,showYearPicker:e.props.showYearPicker,showQuarterYearPicker:e.props.showQuarterYearPicker,showWeekPicker:e.props.showWeekPicker,isInputFocused:e.props.isInputFocused,containerRef:e.containerRef,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:g})))}return c}}),u(d(e),"renderYears",function(){if(!e.props.showTimeSelectOnly)return e.props.showYearPicker?h.createElement("div",{className:"react-datepicker__year--container"},e.renderHeader(),h.createElement(Rs,Be({onDayClick:e.handleDayClick,selectingDate:e.state.selectingDate,clearSelectingDate:e.clearSelectingDate,date:e.state.date},e.props,{onYearMouseEnter:e.handleYearMouseEnter,onYearMouseLeave:e.handleYearMouseLeave}))):void 0}),u(d(e),"renderTimeSection",function(){if(e.props.showTimeSelect&&(e.state.monthContainer||e.props.showTimeSelectOnly))return h.createElement(Fn,{selected:e.props.selected,openToDate:e.props.openToDate,onChange:e.props.onTimeChange,timeClassName:e.props.timeClassName,format:e.props.timeFormat,includeTimes:e.props.includeTimes,intervals:e.props.timeIntervals,minTime:e.props.minTime,maxTime:e.props.maxTime,excludeTimes:e.props.excludeTimes,filterTime:e.props.filterTime,timeCaption:e.props.timeCaption,todayButton:e.props.todayButton,showMonthDropdown:e.props.showMonthDropdown,showMonthYearDropdown:e.props.showMonthYearDropdown,showYearDropdown:e.props.showYearDropdown,withPortal:e.props.withPortal,monthRef:e.state.monthContainer,injectTimes:e.props.injectTimes,locale:e.props.locale,handleOnKeyDown:e.props.handleOnKeyDown,showTimeSelectOnly:e.props.showTimeSelectOnly})}),u(d(e),"renderInputTimeSection",function(){var s=new Date(e.props.selected),c=ue(s)&&e.props.selected?"".concat(tn(s.getHours()),":").concat(tn(s.getMinutes())):"";if(e.props.showTimeInput)return h.createElement(Ys,{date:s,timeString:c,timeInputLabel:e.props.timeInputLabel,onChange:e.props.onTimeChange,customTimeInput:e.props.customTimeInput})}),u(d(e),"renderAriaLiveRegion",function(){var s,c=Ie(e.state.date,e.props.yearItemNumber),a=c.startPeriod,i=c.endPeriod;return s=e.props.showYearPicker?"".concat(a," - ").concat(i):e.props.showMonthYearPicker||e.props.showQuarterYearPicker?E(e.state.date):"".concat(pr(H(e.state.date),e.props.locale)," ").concat(E(e.state.date)),h.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e.state.isRenderAriaLiveMessage&&s)}),u(d(e),"renderChildren",function(){if(e.props.children)return h.createElement("div",{className:"react-datepicker__children-container"},e.props.children)}),e.containerRef=h.createRef(),e.state={date:e.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},e}return A(o,[{key:"componentDidMount",value:function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=void t.setState({monthContainer:t.monthContainer}))}},{key:"componentDidUpdate",value:function(t){var e=this;if(!this.props.preSelection||T(this.props.preSelection,t.preSelection)&&this.props.monthSelectedIn===t.monthSelectedIn)this.props.openToDate&&!T(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate});else{var s=!ee(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return s&&e.handleCustomMonthChange(e.state.date)})}}},{key:"render",value:function(){var t=this.props.container||Ls;return h.createElement("div",{style:{display:"contents"},ref:this.containerRef},h.createElement(t,{className:B("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Ue}}}]),o}(),js=function(r){var n=r.icon,o=r.className,t=o===void 0?"":o,e=r.onClick,s="react-datepicker__calendar-icon";return h.isValidElement(n)?h.cloneElement(n,{className:"".concat(n.props.className||""," ").concat(s," ").concat(t),onClick:function(c){typeof n.props.onClick=="function"&&n.props.onClick(c),typeof e=="function"&&e(c)}}):typeof n=="string"?h.createElement("i",{className:"".concat(s," ").concat(n," ").concat(t),"aria-hidden":"true",onClick:e}):h.createElement("svg",{className:"".concat(s," ").concat(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:e},h.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},jn=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),(e=n.call(this,t)).el=document.createElement("div"),e}return A(o,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ta.createPortal(this.props.children,this.el)}}]),o}(),Bs=function(r){return!r.disabled&&r.tabIndex!==-1},Bn=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),u(d(e=n.call(this,t)),"getTabChildren",function(){return Array.prototype.slice.call(e.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Bs)}),u(d(e),"handleFocusStart",function(){var s=e.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),u(d(e),"handleFocusEnd",function(){var s=e.getTabChildren();s&&s.length>1&&s[0].focus()}),e.tabLoopRef=h.createRef(),e}return A(o,[{key:"render",value:function(){return this.props.enableTabLoop?h.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},h.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,h.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),o}(),Ws=function(r){F(o,h.Component);var n=j(o);function o(){return L(this,o),n.apply(this,arguments)}return A(o,[{key:"render",value:function(){var t,e=this.props,s=e.className,c=e.wrapperClassName,a=e.hidePopper,i=e.popperComponent,p=e.popperModifiers,l=e.popperPlacement,f=e.popperProps,m=e.targetComponent,v=e.enableTabLoop,g=e.popperOnKeyDown,y=e.portalId,w=e.portalHost;if(!a){var S=B("react-datepicker-popper",s);t=h.createElement(ms,Be({modifiers:p,placement:l},f),function(b){var D=b.ref,x=b.style,M=b.placement,P=b.arrowProps;return h.createElement(Bn,{enableTabLoop:v},h.createElement("div",{ref:D,style:x,className:S,"data-placement":M,onKeyDown:g},h.cloneElement(i,{arrowProps:P})))})}this.props.popperContainer&&(t=h.createElement(this.props.popperContainer,{},t)),y&&!a&&(t=h.createElement(jn,{portalId:y,portalHost:w},t));var _=B("react-datepicker-wrapper",c);return h.createElement(Xa,{className:"react-datepicker-manager"},h.createElement(vs,null,function(b){var D=b.ref;return h.createElement("div",{ref:D,className:_},m)}),t)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),o}(),an="react-datepicker-ignore-onclickoutside",Hs=_t(Fs),Bt="Date input not valid.",Ks=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),u(d(e=n.call(this,t)),"getPreSelection",function(){return e.props.openToDate?e.props.openToDate:e.props.selectsEnd&&e.props.startDate?e.props.startDate:e.props.selectsStart&&e.props.endDate?e.props.endDate:N()}),u(d(e),"modifyHolidays",function(){var s;return(s=e.props.holidays)===null||s===void 0?void 0:s.reduce(function(c,a){var i=new Date(a.date);return vt(i)?[].concat(Ze(c),[Dt(Dt({},a),{},{date:i})]):c},[])}),u(d(e),"calcInitialState",function(){var s,c=e.getPreSelection(),a=In(e.props),i=Rn(e.props),p=a&&de(c,Re(a))?a:i&&ve(c,Qt(i))?i:c;return{open:e.props.startOpen||!1,preventFocus:!1,preSelection:(s=e.props.selectsRange?e.props.startDate:e.props.selected)!==null&&s!==void 0?s:p,highlightDates:en(e.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),u(d(e),"clearPreventFocusTimeout",function(){e.preventFocusTimeout&&clearTimeout(e.preventFocusTimeout)}),u(d(e),"setFocus",function(){e.input&&e.input.focus&&e.input.focus({preventScroll:!0})}),u(d(e),"setBlur",function(){e.input&&e.input.blur&&e.input.blur(),e.cancelFocusInput()}),u(d(e),"setOpen",function(s){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];e.setState({open:s,preSelection:s&&e.state.open?e.state.preSelection:e.calcInitialState().preSelection,lastPreSelectChange:Wt},function(){s||e.setState(function(a){return{focused:!!c&&a.focused}},function(){!c&&e.setBlur(),e.setState({inputValue:null})})})}),u(d(e),"inputOk",function(){return er(e.state.preSelection)}),u(d(e),"isCalendarOpen",function(){return e.props.open===void 0?e.state.open&&!e.props.disabled&&!e.props.readOnly:e.props.open}),u(d(e),"handleFocus",function(s){e.state.preventFocus||(e.props.onFocus(s),e.props.preventOpenOnFocus||e.props.readOnly||e.setOpen(!0)),e.setState({focused:!0})}),u(d(e),"sendFocusBackToInput",function(){e.preventFocusTimeout&&e.clearPreventFocusTimeout(),e.setState({preventFocus:!0},function(){e.preventFocusTimeout=setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})})}),u(d(e),"cancelFocusInput",function(){clearTimeout(e.inputFocusTimeout),e.inputFocusTimeout=null}),u(d(e),"deferFocusInput",function(){e.cancelFocusInput(),e.inputFocusTimeout=setTimeout(function(){return e.setFocus()},1)}),u(d(e),"handleDropdownFocus",function(){e.cancelFocusInput()}),u(d(e),"handleBlur",function(s){(!e.state.open||e.props.withPortal||e.props.showTimeInput)&&e.props.onBlur(s),e.setState({focused:!1})}),u(d(e),"handleCalendarClickOutside",function(s){e.props.inline||e.setOpen(!1),e.props.onClickOutside(s),e.props.withPortal&&s.preventDefault()}),u(d(e),"handleChange",function(){for(var s=arguments.length,c=new Array(s),a=0;a0&&(g=It(p,l.slice(0,p.length),new Date)),ue(g)||(g=new Date(p))),ue(g)&&w?g:null));e.props.showTimeSelectOnly&&e.props.selected&&S&&!T(S,e.props.selected)&&(S=ra(e.props.selected,{hours:re(S),minutes:ne(S),seconds:Dr(S)})),!S&&i.target.value||(e.props.showWeekPicker&&(S=oe(S,e.props.locale,e.props.calendarStartDay)),e.setSelected(S,i,!0))}}),u(d(e),"handleSelect",function(s,c,a){if(e.props.shouldCloseOnSelect&&!e.props.showTimeSelect&&e.sendFocusBackToInput(),e.props.onChangeRaw&&e.props.onChangeRaw(c),e.props.showWeekPicker&&(s=oe(s,e.props.locale,e.props.calendarStartDay)),e.setSelected(s,c,!1,a),e.props.showDateSelect&&e.setState({isRenderAriaLiveMessage:!0}),!e.props.shouldCloseOnSelect||e.props.showTimeSelect)e.setPreSelection(s);else if(!e.props.inline){e.props.selectsRange||e.setOpen(!1);var i=e.props,p=i.startDate,l=i.endDate;!p||l||de(s,p)||e.setOpen(!1)}}),u(d(e),"setSelected",function(s,c,a,i){var p=s;if(e.props.showYearPicker){if(p!==null&&Tn(E(p),e.props))return}else if(e.props.showMonthYearPicker){if(p!==null&&Nn(p,e.props))return}else if(p!==null&&Mt(p,e.props))return;var l=e.props,f=l.onChange,m=l.selectsRange,v=l.startDate,g=l.endDate;if(!_e(e.props.selected,p)||e.props.allowSameDay||m)if(p!==null&&(!e.props.selected||a&&(e.props.showTimeSelect||e.props.showTimeSelectOnly||e.props.showTimeInput)||(p=$r(p,{hour:re(e.props.selected),minute:ne(e.props.selected),second:Dr(e.props.selected)})),e.props.inline||e.setState({preSelection:p}),e.props.focusSelectedMonth||e.setState({monthSelectedIn:i})),m){var y=v&&!g,w=v&&g;!v&&!g?f([p,null],c):y&&(de(p,v)?f([p,null],c):f([v,p],c)),w&&f([p,null],c)}else f(p,c);a||(e.props.onSelect(p,c),e.setState({inputValue:null}))}),u(d(e),"setPreSelection",function(s){var c=e.props.minDate!==void 0,a=e.props.maxDate!==void 0,i=!0;if(s){e.props.showWeekPicker&&(s=oe(s,e.props.locale,e.props.calendarStartDay));var p=Re(s);if(c&&a)i=mt(s,e.props.minDate,e.props.maxDate);else if(c){var l=Re(e.props.minDate);i=ve(s,l)||_e(p,l)}else if(a){var f=Qt(e.props.maxDate);i=de(s,f)||_e(p,f)}}i&&e.setState({preSelection:s})}),u(d(e),"toggleCalendar",function(){e.setOpen(!e.state.open)}),u(d(e),"handleTimeChange",function(s){var c=e.props.selected?e.props.selected:e.getPreSelection(),a=e.props.selected?s:$r(c,{hour:re(s),minute:ne(s)});e.setState({preSelection:a}),e.props.onChange(a),e.props.shouldCloseOnSelect&&(e.sendFocusBackToInput(),e.setOpen(!1)),e.props.showTimeInput&&e.setOpen(!0),(e.props.showTimeSelectOnly||e.props.showTimeSelect)&&e.setState({isRenderAriaLiveMessage:!0}),e.setState({inputValue:null})}),u(d(e),"onInputClick",function(){e.props.disabled||e.props.readOnly||e.setOpen(!0),e.props.onInputClick()}),u(d(e),"onInputKeyDown",function(s){e.props.onKeyDown(s);var c=s.key;if(e.state.open||e.props.inline||e.props.preventOpenOnFocus){if(e.state.open){if(c==="ArrowDown"||c==="ArrowUp"){s.preventDefault();var a=e.props.showWeekPicker&&e.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',i=e.calendar.componentNode&&e.calendar.componentNode.querySelector(a);return void(i&&i.focus({preventScroll:!0}))}var p=N(e.state.preSelection);c==="Enter"?(s.preventDefault(),e.inputOk()&&e.state.lastPreSelectChange===Wt?(e.handleSelect(p,s),!e.props.shouldCloseOnSelect&&e.setPreSelection(p)):e.setOpen(!1)):c==="Escape"?(s.preventDefault(),e.sendFocusBackToInput(),e.setOpen(!1)):c==="Tab"&&e.setOpen(!1),e.inputOk()||e.props.onInputError({code:1,msg:Bt})}}else c!=="ArrowDown"&&c!=="ArrowUp"&&c!=="Enter"||e.onInputClick()}),u(d(e),"onPortalKeyDown",function(s){s.key==="Escape"&&(s.preventDefault(),e.setState({preventFocus:!0},function(){e.setOpen(!1),setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})}))}),u(d(e),"onDayKeyDown",function(s){e.props.onKeyDown(s);var c=s.key,a=N(e.state.preSelection);if(c==="Enter")s.preventDefault(),e.handleSelect(a,s),!e.props.shouldCloseOnSelect&&e.setPreSelection(a);else if(c==="Escape")s.preventDefault(),e.setOpen(!1),e.inputOk()||e.props.onInputError({code:1,msg:Bt});else if(!e.props.disabledKeyboardNavigation){var i;switch(c){case"ArrowLeft":i=e.props.showWeekPicker?kr(a,1):na(a,1);break;case"ArrowRight":i=e.props.showWeekPicker?Kt(a,1):Ct(a,1);break;case"ArrowUp":i=kr(a,1);break;case"ArrowDown":i=Kt(a,1);break;case"PageUp":i=Ye(a,1);break;case"PageDown":i=ge(a,1);break;case"Home":i=qe(a,1);break;case"End":i=ze(a,1);break;default:i=null}if(!i)return void(e.props.onInputError&&e.props.onInputError({code:1,msg:Bt}));if(s.preventDefault(),e.setState({lastPreSelectChange:Wt}),e.props.adjustDateOnChange&&e.setSelected(i),e.setPreSelection(i),e.props.inline){var p=H(a),l=H(i),f=E(a),m=E(i);p!==l||f!==m?e.setState({shouldFocusDayInline:!0}):e.setState({shouldFocusDayInline:!1})}}}),u(d(e),"onPopperKeyDown",function(s){s.key==="Escape"&&(s.preventDefault(),e.sendFocusBackToInput())}),u(d(e),"onClearClick",function(s){s&&s.preventDefault&&s.preventDefault(),e.sendFocusBackToInput(),e.props.selectsRange?e.props.onChange([null,null],s):e.props.onChange(null,s),e.setState({inputValue:null})}),u(d(e),"clear",function(){e.onClearClick()}),u(d(e),"onScroll",function(s){typeof e.props.closeOnScroll=="boolean"&&e.props.closeOnScroll?s.target!==document&&s.target!==document.documentElement&&s.target!==document.body||e.setOpen(!1):typeof e.props.closeOnScroll=="function"&&e.props.closeOnScroll(s)&&e.setOpen(!1)}),u(d(e),"renderCalendar",function(){return e.props.inline||e.isCalendarOpen()?h.createElement(Hs,{ref:function(s){e.calendar=s},locale:e.props.locale,calendarStartDay:e.props.calendarStartDay,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:e.props.weekAriaLabelPrefix,monthAriaLabelPrefix:e.props.monthAriaLabelPrefix,adjustDateOnChange:e.props.adjustDateOnChange,setOpen:e.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,dateFormat:e.props.dateFormatCalendar,useWeekdaysShort:e.props.useWeekdaysShort,formatWeekDay:e.props.formatWeekDay,dropdownMode:e.props.dropdownMode,selected:e.props.selected,preSelection:e.state.preSelection,onSelect:e.handleSelect,onWeekSelect:e.props.onWeekSelect,openToDate:e.props.openToDate,minDate:e.props.minDate,maxDate:e.props.maxDate,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,startDate:e.props.startDate,endDate:e.props.endDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,filterDate:e.props.filterDate,onClickOutside:e.handleCalendarClickOutside,formatWeekNumber:e.props.formatWeekNumber,highlightDates:e.state.highlightDates,holidays:bs(e.modifyHolidays()),includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,includeTimes:e.props.includeTimes,injectTimes:e.props.injectTimes,inline:e.props.inline,shouldFocusDayInline:e.state.shouldFocusDayInline,peekNextMonth:e.props.peekNextMonth,showMonthDropdown:e.props.showMonthDropdown,showPreviousMonths:e.props.showPreviousMonths,useShortMonthInDropdown:e.props.useShortMonthInDropdown,showMonthYearDropdown:e.props.showMonthYearDropdown,showWeekNumbers:e.props.showWeekNumbers,showYearDropdown:e.props.showYearDropdown,withPortal:e.props.withPortal,forceShowMonthNavigation:e.props.forceShowMonthNavigation,showDisabledMonthNavigation:e.props.showDisabledMonthNavigation,scrollableYearDropdown:e.props.scrollableYearDropdown,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,todayButton:e.props.todayButton,weekLabel:e.props.weekLabel,outsideClickIgnoreClass:an,fixedHeight:e.props.fixedHeight,monthsShown:e.props.monthsShown,monthSelectedIn:e.state.monthSelectedIn,onDropdownFocus:e.handleDropdownFocus,onMonthChange:e.props.onMonthChange,onYearChange:e.props.onYearChange,dayClassName:e.props.dayClassName,weekDayClassName:e.props.weekDayClassName,monthClassName:e.props.monthClassName,timeClassName:e.props.timeClassName,showDateSelect:e.props.showDateSelect,showTimeSelect:e.props.showTimeSelect,showTimeSelectOnly:e.props.showTimeSelectOnly,onTimeChange:e.handleTimeChange,timeFormat:e.props.timeFormat,timeIntervals:e.props.timeIntervals,minTime:e.props.minTime,maxTime:e.props.maxTime,excludeTimes:e.props.excludeTimes,filterTime:e.props.filterTime,timeCaption:e.props.timeCaption,className:e.props.calendarClassName,container:e.props.calendarContainer,yearItemNumber:e.props.yearItemNumber,yearDropdownItemNumber:e.props.yearDropdownItemNumber,previousMonthAriaLabel:e.props.previousMonthAriaLabel,previousMonthButtonLabel:e.props.previousMonthButtonLabel,nextMonthAriaLabel:e.props.nextMonthAriaLabel,nextMonthButtonLabel:e.props.nextMonthButtonLabel,previousYearAriaLabel:e.props.previousYearAriaLabel,previousYearButtonLabel:e.props.previousYearButtonLabel,nextYearAriaLabel:e.props.nextYearAriaLabel,nextYearButtonLabel:e.props.nextYearButtonLabel,timeInputLabel:e.props.timeInputLabel,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderCustomHeader:e.props.renderCustomHeader,popperProps:e.props.popperProps,renderDayContents:e.props.renderDayContents,renderMonthContent:e.props.renderMonthContent,renderQuarterContent:e.props.renderQuarterContent,renderYearContent:e.props.renderYearContent,onDayMouseEnter:e.props.onDayMouseEnter,onMonthMouseLeave:e.props.onMonthMouseLeave,onYearMouseEnter:e.props.onYearMouseEnter,onYearMouseLeave:e.props.onYearMouseLeave,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showTimeInput:e.props.showTimeInput,showMonthYearPicker:e.props.showMonthYearPicker,showFullMonthYearPicker:e.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:e.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:e.props.showFourColumnMonthYearPicker,showYearPicker:e.props.showYearPicker,showQuarterYearPicker:e.props.showQuarterYearPicker,showWeekPicker:e.props.showWeekPicker,showPopperArrow:e.props.showPopperArrow,excludeScrollbar:e.props.excludeScrollbar,handleOnKeyDown:e.props.onKeyDown,handleOnDayKeyDown:e.onDayKeyDown,isInputFocused:e.state.focused,customTimeInput:e.props.customTimeInput,setPreSelection:e.setPreSelection},e.props.children):null}),u(d(e),"renderAriaLiveRegion",function(){var s,c=e.props,a=c.dateFormat,i=c.locale,p=e.props.showTimeInput||e.props.showTimeSelect?"PPPPp":"PPPP";return s=e.props.selectsRange?"Selected start date: ".concat(te(e.props.startDate,{dateFormat:p,locale:i}),". ").concat(e.props.endDate?"End date: "+te(e.props.endDate,{dateFormat:p,locale:i}):""):e.props.showTimeSelectOnly?"Selected time: ".concat(te(e.props.selected,{dateFormat:a,locale:i})):e.props.showYearPicker?"Selected year: ".concat(te(e.props.selected,{dateFormat:"yyyy",locale:i})):e.props.showMonthYearPicker?"Selected month: ".concat(te(e.props.selected,{dateFormat:"MMMM yyyy",locale:i})):e.props.showQuarterYearPicker?"Selected quarter: ".concat(te(e.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(te(e.props.selected,{dateFormat:p,locale:i})),h.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},s)}),u(d(e),"renderDateInput",function(){var s,c=B(e.props.className,u({},an,e.state.open)),a=e.props.customInput||h.createElement("input",{type:"text"}),i=e.props.customInputRef||"ref",p=typeof e.props.value=="string"?e.props.value:typeof e.state.inputValue=="string"?e.state.inputValue:e.props.selectsRange?function(l,f,m){if(!l)return"";var v=te(l,m),g=f?te(f,m):"";return"".concat(v," - ").concat(g)}(e.props.startDate,e.props.endDate,e.props):te(e.props.selected,e.props);return h.cloneElement(a,(u(u(u(u(u(u(u(u(u(u(s={},i,function(l){e.input=l}),"value",p),"onBlur",e.handleBlur),"onChange",e.handleChange),"onClick",e.onInputClick),"onFocus",e.handleFocus),"onKeyDown",e.onInputKeyDown),"id",e.props.id),"name",e.props.name),"form",e.props.form),u(u(u(u(u(u(u(u(u(u(s,"autoFocus",e.props.autoFocus),"placeholder",e.props.placeholderText),"disabled",e.props.disabled),"autoComplete",e.props.autoComplete),"className",B(a.props.className,c)),"title",e.props.title),"readOnly",e.props.readOnly),"required",e.props.required),"tabIndex",e.props.tabIndex),"aria-describedby",e.props.ariaDescribedBy),u(u(u(s,"aria-invalid",e.props.ariaInvalid),"aria-labelledby",e.props.ariaLabelledBy),"aria-required",e.props.ariaRequired)))}),u(d(e),"renderClearButton",function(){var s=e.props,c=s.isClearable,a=s.disabled,i=s.selected,p=s.startDate,l=s.endDate,f=s.clearButtonTitle,m=s.clearButtonClassName,v=m===void 0?"":m,g=s.ariaLabelClose,y=g===void 0?"Close":g;return!c||i==null&&p==null&&l==null?null:h.createElement("button",{type:"button",className:B("react-datepicker__close-icon",v,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":y,onClick:e.onClearClick,title:f,tabIndex:-1})}),e.state=e.calcInitialState(),e.preventFocusTimeout=null,e}return A(o,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(t,e){var s,c;t.inline&&(s=t.selected,c=this.props.selected,s&&c?H(s)!==H(c)||E(s)!==E(c):s!==c)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:en(this.props.highlightDates)}),e.focused||_e(t.selected,this.props.selected)||this.setState({inputValue:null}),e.open!==this.state.open&&(e.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),e.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var t=this.props,e=t.showIcon,s=t.icon,c=t.calendarIconClassname,a=t.toggleCalendarOnIconClick,i=this.state.open;return h.createElement("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":"")},e&&h.createElement(js,Be({icon:s,className:"".concat(c," ").concat(i&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var e=this.state.open?h.createElement(Bn,{enableTabLoop:this.props.enableTabLoop},h.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(e=h.createElement(jn,{portalId:this.props.portalId,portalHost:this.props.portalHost},e)),h.createElement("div",null,this.renderInputContainer(),e)}return h.createElement(Ws,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:t,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ue,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),o}(),$s="input",Wt="navigate";const Qs=ye.div` .react-datepicker { font-family: ${({theme:r})=>r.font}; diff --git a/assets/index-ClES3_Td.js b/assets/index-CPOkjhvu.js similarity index 94% rename from assets/index-ClES3_Td.js rename to assets/index-CPOkjhvu.js index 1edfdff9..6cc9ab17 100644 --- a/assets/index-ClES3_Td.js +++ b/assets/index-CPOkjhvu.js @@ -1 +1 @@ -import{i as y,k as g,f as h,X as j,r as o,D as S,l as E,j as t,o as v,S as V,s as C}from"./index-Bo8UkscO.js";const w=()=>{var f,u;const{push:n}=y(),{search:s}=g(),a=s&&((f=s==null?void 0:s.split("&")[0])==null?void 0:f.split("=")[1]),i=s&&((u=s==null?void 0:s.split("&")[1])==null?void 0:u.split("=")[1]),{t:m}=h(),x=j(),{emailVerify:l}=o.useContext(S.EscolaLMSContext),[c,r]=o.useState({loading:!1,state:"init",isVerified:!1,message:""}),d=o.useCallback(async()=>{r(e=>({...e,loading:!0}));try{const e=a&&i&&await l(String(a),String(i));e&&r(p=>({...p,state:"success",message:e.message,isVerified:!0}))}catch(e){console.error(e)}finally{r(e=>({...e,loading:!1}))}},[a,i,l]);return o.useEffect(()=>{i||n(E.home),a&&i&&d()},[a,i,d,n]),t.jsx(v,{children:t.jsx("div",{className:"profile-authentication-area",children:t.jsx("div",{className:"container",children:t.jsx("div",{className:"row ",children:t.jsx("div",{className:"col-lg-12 col-md-12",children:t.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[c.loading&&t.jsx(V.Spin,{color:x.primaryColor})," ",c.isVerified&&t.jsx(C.Text,{size:"16",children:m("EmailWasVerified")})]})})})})})})};export{w as default}; +import{i as y,k as g,f as h,X as j,r as o,D as S,l as E,j as t,o as v,S as V,s as C}from"./index-DdR0U16d.js";const w=()=>{var f,u;const{push:n}=y(),{search:s}=g(),a=s&&((f=s==null?void 0:s.split("&")[0])==null?void 0:f.split("=")[1]),i=s&&((u=s==null?void 0:s.split("&")[1])==null?void 0:u.split("=")[1]),{t:m}=h(),x=j(),{emailVerify:l}=o.useContext(S.EscolaLMSContext),[c,r]=o.useState({loading:!1,state:"init",isVerified:!1,message:""}),d=o.useCallback(async()=>{r(e=>({...e,loading:!0}));try{const e=a&&i&&await l(String(a),String(i));e&&r(p=>({...p,state:"success",message:e.message,isVerified:!0}))}catch(e){console.error(e)}finally{r(e=>({...e,loading:!1}))}},[a,i,l]);return o.useEffect(()=>{i||n(E.home),a&&i&&d()},[a,i,d,n]),t.jsx(v,{children:t.jsx("div",{className:"profile-authentication-area",children:t.jsx("div",{className:"container",children:t.jsx("div",{className:"row ",children:t.jsx("div",{className:"col-lg-12 col-md-12",children:t.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[c.loading&&t.jsx(V.Spin,{color:x.primaryColor})," ",c.isVerified&&t.jsx(C.Text,{size:"16",children:m("EmailWasVerified")})]})})})})})})};export{w as default}; diff --git a/assets/index-CnadCGrz.js b/assets/index-CTffk5vR.js similarity index 94% rename from assets/index-CnadCGrz.js rename to assets/index-CTffk5vR.js index abf91358..c5bfeaf3 100644 --- a/assets/index-CnadCGrz.js +++ b/assets/index-CTffk5vR.js @@ -1,4 +1,4 @@ -import{q as c,f as l,i as x,j as e,C as g,T as p,n as m,aN as o,J as n,N as r}from"./index-Bo8UkscO.js";import{a as u,S as h}from"./swiper-react-dLA_7gCe.js";const j=c.section` +import{q as c,f as l,i as x,j as e,C as g,T as p,n as m,aN as o,J as n,N as r}from"./index-DdR0U16d.js";import{a as u,S as h}from"./swiper-react-BLsnPoYA.js";const j=c.section` overflow: hidden; @media (max-width: 768px) { diff --git a/assets/index-Dof53sD6.js b/assets/index-CZO-v9Fr.js similarity index 96% rename from assets/index-Dof53sD6.js rename to assets/index-CZO-v9Fr.js index e2aa3715..c6b64497 100644 --- a/assets/index-Dof53sD6.js +++ b/assets/index-CZO-v9Fr.js @@ -1,4 +1,4 @@ -import{q as t,X as l,r as n,j as e,cD as d,s as c,ai as m,I as x}from"./index-Bo8UkscO.js";const f=t.div` +import{q as t,X as l,r as n,j as e,cD as d,s as c,ai as m,I as x}from"./index-DdR0U16d.js";const f=t.div` display: flex; flex-direction: column; diff --git a/assets/index-VLQumBqU.js b/assets/index-C_2rt7P-.js similarity index 86% rename from assets/index-VLQumBqU.js rename to assets/index-C_2rt7P-.js index 347b2d74..6237a45a 100644 --- a/assets/index-VLQumBqU.js +++ b/assets/index-C_2rt7P-.js @@ -1,4 +1,4 @@ -import{r as p,h as _,i as M,k as $,l as A,q as E,j as e,T as B,m as O,n as N,L as H,f as z,o as q,C as I,B as W,M as Q}from"./index-Bo8UkscO.js";import{R as D}from"./ResponsiveImage-wHQCVyd2.js";import{C as F}from"./index-CnadCGrz.js";import{D as y}from"./index-BLyqPjk_.js";import{S as P}from"./swiper-react-dLA_7gCe.js";import{S as L}from"./swiper-ES8EF7dV.js";import{C as G}from"./CourseCard-B9elZN0z.js";import{u as J}from"./useSearchParams-CMuS-qVd.js";import{CourseStatus as u}from"./index-C7LDu5YO.js";import{C as K}from"./index-PGMEsYK1.js";import{C as X}from"./index-rPhH6DdW.js";import"./index-DpPQm32o.js";import"./index-CsJcOuQH.js";import"./useFetchCourses-C-CMvnG8.js";import"./index-ik5KDOYp.js";import"./base-C7euzKDi.js";import"./Tabs-CO-l8TER.js";import"./index-B7Mx4ryn.js";import"./index-DvNYyE7v.js";import"./questionnaires-_0sODp6F.js";import"./useDownloadCertificate-Gsl9Kioe.js";import"./useRoles-O1Qe8-YL.js";import"./index-D6txpOmq.js";const Y=(o=u.ALL)=>{var R,k;const{fetchMyAuthoredCourses:a,myAuthoredCourses:i,fetchPaginatedProgress:m,paginatedProgress:n}=p.useContext(_.EscolaLMSContext),[s,c]=p.useState([]),w=M(),{setQueryParam:f}=J(),{search:b}=$(),h=new URLSearchParams(b),d=h.get("page"),x=h.get("status"),S=p.useMemo(()=>{var t,r;return o===u.AUTHORED?(t=i.list)==null?void 0:t.meta:(r=n.list)==null?void 0:r.meta},[o,(R=i.list)==null?void 0:R.meta,(k=n.list)==null?void 0:k.meta]),g=p.useCallback(t=>{let r="";switch(t){case 1:case 5:break;case 2:r="started";break;case 3:r="planned";break;case 4:r="finished";break}return r},[]);p.useEffect(()=>{m({page:d?parseInt(d):1,per_page:18,status:g(Number(x))}),(o===u.ALL||o===u.AUTHORED)&&a()},[m,o,a,d,x,g]);const j=p.useMemo(()=>{var t;return(((t=n.list)==null?void 0:t.data)||[]).reduce((r,l)=>({...r,[l.course.id?l.course.id:-1]:Math.round((l.progress||[]).reduce((T,U)=>U.status===1?T+1:T,0)/l.progress.length*100)}),{})},[n]),C=p.useCallback(t=>t.map(r=>({...r.course,courseData:r,progress:j[r.course.id?r.course.id:-1]})),[j]);return p.useEffect(()=>{var t,r,l,T;o!==u.AUTHORED?c(C(((t=n.list)==null?void 0:t.data)||[])):o===u.AUTHORED?c(((r=i.list)==null?void 0:r.data)||[]):c([...C(((l=n.list)==null?void 0:l.data)||[]),...((T=i.list)==null?void 0:T.data)||[]])},[o,n,i,C]),{coursesToMap:s,paginationMeta:S,loading:n.loading||i.loading,handlePagination:t=>{f("page",`${t}`),window==null||window.scrollTo(0,0)},redirectToCourses:()=>w.push(A.courses)}},Z=E.div` +import{r as p,h as _,i as M,k as $,l as A,q as E,j as e,T as B,m as O,n as N,L as H,f as z,o as q,C as I,B as W,M as Q}from"./index-DdR0U16d.js";import{R as D}from"./ResponsiveImage-Cj4skSpA.js";import{C as F}from"./index-CTffk5vR.js";import{D as y}from"./index-DfSDa3C0.js";import{S as P}from"./swiper-react-BLsnPoYA.js";import{S as L}from"./swiper-8PJkZR9V.js";import{C as G}from"./CourseCard-yGz7Jurs.js";import{u as J}from"./useSearchParams-DwoVLtwq.js";import{CourseStatus as u}from"./index-B8psG9iu.js";import{C as K}from"./index-BhJ-dW2f.js";import{C as X}from"./index-CtKtIhYW.js";import"./index-DX00fjMM.js";import"./index-CGAhkVF0.js";import"./useFetchCourses-CkVD5k4g.js";import"./index-D3CJIFqT.js";import"./base-C7euzKDi.js";import"./Tabs-C_s_LN6Y.js";import"./index-GZhcI3y0.js";import"./index-DW7ziQAg.js";import"./questionnaires-BOcFjJOw.js";import"./useDownloadCertificate-DQ0RD7nc.js";import"./useRoles-Bi4GxnzU.js";import"./index-Bq7IYj2l.js";const Y=(o=u.ALL)=>{var R,k;const{fetchMyAuthoredCourses:a,myAuthoredCourses:i,fetchPaginatedProgress:m,paginatedProgress:n}=p.useContext(_.EscolaLMSContext),[s,c]=p.useState([]),w=M(),{setQueryParam:f}=J(),{search:b}=$(),h=new URLSearchParams(b),d=h.get("page"),x=h.get("status"),S=p.useMemo(()=>{var t,r;return o===u.AUTHORED?(t=i.list)==null?void 0:t.meta:(r=n.list)==null?void 0:r.meta},[o,(R=i.list)==null?void 0:R.meta,(k=n.list)==null?void 0:k.meta]),g=p.useCallback(t=>{let r="";switch(t){case 1:case 5:break;case 2:r="started";break;case 3:r="planned";break;case 4:r="finished";break}return r},[]);p.useEffect(()=>{m({page:d?parseInt(d):1,per_page:18,status:g(Number(x))}),(o===u.ALL||o===u.AUTHORED)&&a()},[m,o,a,d,x,g]);const j=p.useMemo(()=>{var t;return(((t=n.list)==null?void 0:t.data)||[]).reduce((r,l)=>({...r,[l.course.id?l.course.id:-1]:Math.round((l.progress||[]).reduce((T,U)=>U.status===1?T+1:T,0)/l.progress.length*100)}),{})},[n]),C=p.useCallback(t=>t.map(r=>({...r.course,courseData:r,progress:j[r.course.id?r.course.id:-1]})),[j]);return p.useEffect(()=>{var t,r,l,T;o!==u.AUTHORED?c(C(((t=n.list)==null?void 0:t.data)||[])):o===u.AUTHORED?c(((r=i.list)==null?void 0:r.data)||[]):c([...C(((l=n.list)==null?void 0:l.data)||[]),...((T=i.list)==null?void 0:T.data)||[]])},[o,n,i,C]),{coursesToMap:s,paginationMeta:S,loading:n.loading||i.loading,handlePagination:t=>{f("page",`${t}`),window==null||window.scrollTo(0,0)},redirectToCourses:()=>w.push(A.courses)}},Z=E.div` position: relative; `,V=({titleText:o,slidesPerView:a=4})=>{const{coursesToMap:i,loading:m}=Y(),n=M();return i.length===0?null:e.jsxs(Z,{children:[e.jsx("div",{className:"header-wrapper",children:e.jsx(B.Title,{className:"slider-title",level:1,as:"h2",children:e.jsx("strong",{children:o})})}),m&&e.jsx(L,{slidesPerView:a,children:Array.from({length:6}).map((s,c)=>e.jsx(P,{children:e.jsx(G,{})},c))}),!m&&i&&e.jsx(L,{slidesPerView:a,children:i.map(s=>e.jsx(P,{children:e.jsx(O.NewCourseCard,{mobile:N,id:s.id,image:e.jsx(H,{to:`/courses/${s.id}`,children:s.image_path?e.jsx(D.ResponsiveImage,{path:s.image_path,alt:s.title,srcSizes:[300,600,900]}):e.jsx(K,{})}),title:e.jsx(H,{to:`/courses/${s.id}`,children:e.jsx(B.Title,{level:3,as:"h3",className:"title",children:s.title})}),categories:e.jsx(X,{categories:s.categories,onCategoryClick:c=>{n.push(`/courses/?categories[]=${c}`)}}),progress:s.progress&&s.progress!==100&&!isNaN(s.progress)?{currentProgress:s.progress,maxProgress:100}:void 0})},s.id))})]})},ee=E.div` @media (max-width: 1200px) { diff --git a/assets/index-CCLOV7TM.js b/assets/index-CbBzSgMs.js similarity index 95% rename from assets/index-CCLOV7TM.js rename to assets/index-CbBzSgMs.js index 996b7af2..f55cfc08 100644 --- a/assets/index-CCLOV7TM.js +++ b/assets/index-CbBzSgMs.js @@ -1,4 +1,4 @@ -import{r,D as T,E as q,i as U,al as J,am as A,q as K,n as D,an as Q,ao as X,j as e,b as I,v as B,ap as Y,W as Z,f as V,w as E,M as k,h as W,C as ss,L as es,l as ns,o as H}from"./index-Bo8UkscO.js";import{P as O}from"./index-B8tRK7-_.js";import{C as ts,a as rs}from"./CourseAgenda-DG6Q95Xo.js";import{A as L}from"./index-DLruw0EO.js";import"./Upload-CrRhBbHH.js";import"./warning-C5gOjCvf.js";import"./ResponsiveImage-wHQCVyd2.js";function z(s,n="/course/"){var b,M;const{sendProgress:t,getNextPrevTopic:a,progress:l,courseProgressDetails:d,fetchProgress:w}=r.useContext(T.EscolaLMSContext),[y,v]=r.useState(!1),{lessonID:m,topicID:j}=q(),{push:x}=U(),h=r.useMemo(()=>J((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),f=r.useMemo(()=>A((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),C=m?Number(m):(b=h==null?void 0:h[0])==null?void 0:b.id,c=j?Number(j):(M=f==null?void 0:f[0])==null?void 0:M.id;r.useEffect(()=>{c&&w()},[w,c]);const _=r.useMemo(()=>h.find(o=>o.id===C),[h,C]),u=r.useMemo(()=>f.find(o=>o.id===c),[f,c]),P=r.useMemo(()=>{var o;return((o=f.at(-1))==null?void 0:o.id)===(u==null?void 0:u.id)},[f,u==null?void 0:u.id]),$=r.useCallback(()=>{s.id&&t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{const o=a(Number(c));o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)})},[c,s,x,a,t,n]),i=r.useCallback(()=>{const o=a(Number(c),!1);if(s.id&&(u!=null&&u.can_skip)){t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)});return}o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)},[c,s,x,a,t,n,u]),p=r.useCallback((o=!0)=>{const g=a(Number(c),o);g&&x(`${n}${s.id}/${g==null?void 0:g.lesson_id}/${g==null?void 0:g.id}`)},[C,c,s,s.id,x,n]);return{topic:u,lesson:_,onNextTopic:$,onPrevTopic:i,getNextPrevTopic:a,isNextTopicButtonDisabled:y,disableNextTopicButton:v,onNextTopicPreview:p,sendProgress:t,progress:l,courseProgressDetails:d,isLastTopic:P}}const is=K.aside` +import{r,D as T,E as q,i as U,al as J,am as A,q as K,n as D,an as Q,ao as X,j as e,b as I,v as B,ap as Y,W as Z,f as V,w as E,M as k,h as W,C as ss,L as es,l as ns,o as H}from"./index-DdR0U16d.js";import{P as O}from"./index-DdKOa6TA.js";import{C as ts,a as rs}from"./CourseAgenda-B2ujVzgN.js";import{A as L}from"./index-HBZ4Cq4Z.js";import"./Upload-jAUszd-C.js";import"./warning-Cy01Vo2F.js";import"./ResponsiveImage-Cj4skSpA.js";function z(s,n="/course/"){var b,M;const{sendProgress:t,getNextPrevTopic:a,progress:l,courseProgressDetails:d,fetchProgress:w}=r.useContext(T.EscolaLMSContext),[y,v]=r.useState(!1),{lessonID:m,topicID:j}=q(),{push:x}=U(),h=r.useMemo(()=>J((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),f=r.useMemo(()=>A((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),C=m?Number(m):(b=h==null?void 0:h[0])==null?void 0:b.id,c=j?Number(j):(M=f==null?void 0:f[0])==null?void 0:M.id;r.useEffect(()=>{c&&w()},[w,c]);const _=r.useMemo(()=>h.find(o=>o.id===C),[h,C]),u=r.useMemo(()=>f.find(o=>o.id===c),[f,c]),P=r.useMemo(()=>{var o;return((o=f.at(-1))==null?void 0:o.id)===(u==null?void 0:u.id)},[f,u==null?void 0:u.id]),$=r.useCallback(()=>{s.id&&t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{const o=a(Number(c));o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)})},[c,s,x,a,t,n]),i=r.useCallback(()=>{const o=a(Number(c),!1);if(s.id&&(u!=null&&u.can_skip)){t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)});return}o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)},[c,s,x,a,t,n,u]),p=r.useCallback((o=!0)=>{const g=a(Number(c),o);g&&x(`${n}${s.id}/${g==null?void 0:g.lesson_id}/${g==null?void 0:g.id}`)},[C,c,s,s.id,x,n]);return{topic:u,lesson:_,onNextTopic:$,onPrevTopic:i,getNextPrevTopic:a,isNextTopicButtonDisabled:y,disableNextTopicButton:v,onNextTopicPreview:p,sendProgress:t,progress:l,courseProgressDetails:d,isLastTopic:P}}const is=K.aside` padding-bottom: 100px; .show-agenda-btn { width: 100%; diff --git a/assets/index-XD7REZpG.js b/assets/index-CcDf82b6.js similarity index 82% rename from assets/index-XD7REZpG.js rename to assets/index-CcDf82b6.js index 42a17c5a..1e4ffba8 100644 --- a/assets/index-XD7REZpG.js +++ b/assets/index-CcDf82b6.js @@ -1,4 +1,4 @@ -import{q as o,j as a,cz as s}from"./index-Bo8UkscO.js";const t=o.div` +import{q as o,j as a,cz as s}from"./index-DdR0U16d.js";const t=o.div` margin-bottom: 36px; p { color: ${({theme:r})=>r.mode==="dark"?r.gray5:r.gray2}!important; diff --git a/assets/index-CfeJjs0r.js b/assets/index-CiDh3ghj.js similarity index 94% rename from assets/index-CfeJjs0r.js rename to assets/index-CiDh3ghj.js index 98dd6ae7..b213ad81 100644 --- a/assets/index-CfeJjs0r.js +++ b/assets/index-CiDh3ghj.js @@ -1,4 +1,4 @@ -import{b as L,r as g,D as B,i as N,k as q,q as C,n as P,f as b,j as e,w as S,s as j,m as f,L as R,T as W,N as $,O as k,X as M,Q as H,V as X,o as G,C as O}from"./index-Bo8UkscO.js";import{P as Q}from"./index-D6txpOmq.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-wHQCVyd2.js";import{C as V}from"./index-rPhH6DdW.js";import{C as J}from"./index-PGMEsYK1.js";import{P as K}from"./index-CsJcOuQH.js";import{C as Y}from"./CourseCard-B9elZN0z.js";import{u as Z}from"./useFetchCourses-C-CMvnG8.js";import"./index-ik5KDOYp.js";const z=L.createContext({}),ee=()=>{const{courses:r,params:t,setParams:s,loading:x}=g.useContext(z),{fetchCategories:a,categoryTree:c}=g.useContext(B.EscolaLMSContext),[o,n]=g.useState([]),i=N(),h=q(),y=g.useCallback(l=>{s&&s({...t,order:l})},[t,s]),u=g.useCallback(l=>{s&&s({...t,page:l})},[t,s]),E=g.useCallback(l=>{const d=o.filter(p=>p.id!==l);n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),T=g.useCallback(l=>{const d=o.some(p=>p.id===l.id)?o.filter(p=>p.id!==l.id):[...o,l];n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),v=g.useCallback(()=>{n([]),s&&s({...t,page:1,order:void 0,"categories[]":void 0})},[t,s]),w=g.useCallback(l=>l.flatMap(d=>{const p=w(d.subcategories||[]);return[d,...p]}),[]);return g.useEffect(()=>{const d=_.parse(h.search)["categories[]"];if(d){const D=w(c.list||[]).filter(A=>d.includes(String(A.id)));n(D)}},[h.search,c,w]),g.useEffect(()=>{a()},[a]),g.useEffect(()=>{t&&i.push(`${h.pathname}?${_.stringify(t)}`)},[t,h.pathname,i]),{courses:r,loading:x,prevCategories:o,handleSortChange:y,handlePageChange:u,handleRemoveCategory:E,handleCategoryChange:T,onClearCategories:v,params:t,categoryTree:c}},F=C.section` +import{b as L,r as g,D as B,i as N,k as q,q as C,n as P,f as b,j as e,w as S,s as j,m as f,L as R,T as W,N as $,O as k,X as M,Q as H,V as X,o as G,C as O}from"./index-DdR0U16d.js";import{P as Q}from"./index-Bq7IYj2l.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-Cj4skSpA.js";import{C as V}from"./index-CtKtIhYW.js";import{C as J}from"./index-BhJ-dW2f.js";import{P as K}from"./index-CGAhkVF0.js";import{C as Y}from"./CourseCard-yGz7Jurs.js";import{u as Z}from"./useFetchCourses-CkVD5k4g.js";import"./index-D3CJIFqT.js";const z=L.createContext({}),ee=()=>{const{courses:r,params:t,setParams:s,loading:x}=g.useContext(z),{fetchCategories:a,categoryTree:c}=g.useContext(B.EscolaLMSContext),[o,n]=g.useState([]),i=N(),h=q(),y=g.useCallback(l=>{s&&s({...t,order:l})},[t,s]),u=g.useCallback(l=>{s&&s({...t,page:l})},[t,s]),E=g.useCallback(l=>{const d=o.filter(p=>p.id!==l);n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),T=g.useCallback(l=>{const d=o.some(p=>p.id===l.id)?o.filter(p=>p.id!==l.id):[...o,l];n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),v=g.useCallback(()=>{n([]),s&&s({...t,page:1,order:void 0,"categories[]":void 0})},[t,s]),w=g.useCallback(l=>l.flatMap(d=>{const p=w(d.subcategories||[]);return[d,...p]}),[]);return g.useEffect(()=>{const d=_.parse(h.search)["categories[]"];if(d){const D=w(c.list||[]).filter(A=>d.includes(String(A.id)));n(D)}},[h.search,c,w]),g.useEffect(()=>{a()},[a]),g.useEffect(()=>{t&&i.push(`${h.pathname}?${_.stringify(t)}`)},[t,h.pathname,i]),{courses:r,loading:x,prevCategories:o,handleSortChange:y,handlePageChange:u,handleRemoveCategory:E,handleCategoryChange:T,onClearCategories:v,params:t,categoryTree:c}},F=C.section` margin-bottom: ${P?"50px":"75px"}; `,se=({courses:r,loading:t})=>{const s=N(),{t:x}=b();return r&&!t&&r.length===0?e.jsx(S.Row,{justify:"center",children:e.jsx(j.Text,{size:"18",children:x("NoCourses")})}):t?e.jsx(F,{children:e.jsx(S.Row,{style:{gap:"30px 0"},children:Array.from({length:12}).map((a,c)=>e.jsx(Y,{colProps:{xl:3,lg:4,md:6}},`index-${c}-skeleton`))})}):e.jsx(F,{children:e.jsx(S.Row,{style:{gap:"30px 0"},children:r==null?void 0:r.map(a=>{var c,o,n;return e.jsx(S.Col,{md:6,lg:4,xl:3,children:e.jsx(f.NewCourseCard,{mobile:P,id:a.id,image:e.jsx(R,{to:`/courses/${a.id}`,children:a.image_path?e.jsx(U.ResponsiveImage,{path:a.image_path,alt:a.title,srcSizes:[300,600,900]}):e.jsx(J,{})}),price:a.public?e.jsx("div",{className:"course-price",children:x("FREE")}):e.jsx(K,{price:(c=a.product)==null?void 0:c.price,oldPrice:(o=a.product)==null?void 0:o.price_old,taxRate:(n=a.product)==null?void 0:n.tax_rate}),title:e.jsx(R,{to:`/courses/${a.id}`,children:e.jsx(W.Title,{level:3,as:"h3",className:"title",children:a.title})}),categories:e.jsx(V,{categories:a.categories,onCategoryClick:i=>{s.push(`/courses/?categories[]=${i}`)}})})},a.id)})})})},re=C.div` display: flex; diff --git a/assets/index-DIpJ4xhM.js b/assets/index-CsquLrCJ.js similarity index 78% rename from assets/index-DIpJ4xhM.js rename to assets/index-CsquLrCJ.js index bfe403a9..b32bde06 100644 --- a/assets/index-DIpJ4xhM.js +++ b/assets/index-CsquLrCJ.js @@ -1 +1 @@ -import{i as m,f as l,j as s,G as x,n as g,L as e,ax as u,aK as d,aL as c,U as j,aC as p}from"./index-Bo8UkscO.js";import{a as h}from"./ResponsiveImage-wHQCVyd2.js";import{C}from"./index-PGMEsYK1.js";import{T as $}from"./index-BlWqUIM7.js";import{C as f}from"./index-rPhH6DdW.js";const y=({event:a,actions:n})=>{var i;const o=m(),{t:r}=l();return s.jsx(x,{id:a.id,mobile:g,image:s.jsx(e,{to:`/event/${a.id}`,"aria-label":a.name,children:a.image_path?s.jsx(h,{path:a.image_path,alt:a.name,srcSizes:[300,600,900]}):s.jsx(C,{})}),title:s.jsx(e,{to:`/event/${a.id}`,className:"title",children:s.jsx(u,{level:4,as:"h2",children:a.name})}),categories:s.jsx(f,{categories:a.categories,onCategoryClick:t=>{o.push(`/events/?categories[]=${t}`)}}),tags:s.jsx($,{tags:((i=a.product)==null?void 0:i.tags)||[],onTagClick:t=>o.push(`/events/?tag=${t}`)}),actions:n??s.jsx(s.Fragment,{children:s.jsx(d,{mode:"secondary",onClick:()=>o.push(`/event/${a.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[a.users_count&&a.users_count>0?s.jsx(c,{icon:s.jsx(j,{}),text:`${a.users_count} ${r("Students")}`}):""," ",!!a.place&&s.jsx(c,{icon:s.jsx(p,{}),text:`${a.place}`})]})})};export{y as E}; +import{i as m,f as l,j as s,G as x,n as g,L as e,ax as u,aK as d,aL as c,U as j,aC as p}from"./index-DdR0U16d.js";import{a as h}from"./ResponsiveImage-Cj4skSpA.js";import{C}from"./index-BhJ-dW2f.js";import{T as $}from"./index-naIVnHMf.js";import{C as f}from"./index-CtKtIhYW.js";const y=({event:a,actions:n})=>{var i;const o=m(),{t:r}=l();return s.jsx(x,{id:a.id,mobile:g,image:s.jsx(e,{to:`/event/${a.id}`,"aria-label":a.name,children:a.image_path?s.jsx(h,{path:a.image_path,alt:a.name,srcSizes:[300,600,900]}):s.jsx(C,{})}),title:s.jsx(e,{to:`/event/${a.id}`,className:"title",children:s.jsx(u,{level:4,as:"h2",children:a.name})}),categories:s.jsx(f,{categories:a.categories,onCategoryClick:t=>{o.push(`/events/?categories[]=${t}`)}}),tags:s.jsx($,{tags:((i=a.product)==null?void 0:i.tags)||[],onTagClick:t=>o.push(`/events/?tag=${t}`)}),actions:n??s.jsx(s.Fragment,{children:s.jsx(d,{mode:"secondary",onClick:()=>o.push(`/event/${a.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[a.users_count&&a.users_count>0?s.jsx(c,{icon:s.jsx(j,{}),text:`${a.users_count} ${r("Students")}`}):""," ",!!a.place&&s.jsx(c,{icon:s.jsx(p,{}),text:`${a.place}`})]})})};export{y as E}; diff --git a/assets/index-rPhH6DdW.js b/assets/index-CtKtIhYW.js similarity index 94% rename from assets/index-rPhH6DdW.js rename to assets/index-CtKtIhYW.js index e11661d3..919fd37e 100644 --- a/assets/index-rPhH6DdW.js +++ b/assets/index-CtKtIhYW.js @@ -1,4 +1,4 @@ -import{q as l,r as s,j as o,cz as p}from"./index-Bo8UkscO.js";const m=l("div")` +import{q as l,r as s,j as o,cz as p}from"./index-DdR0U16d.js";const m=l("div")` .more-icon { border: 1px solid; border-radius: 50%; diff --git a/assets/index-ik5KDOYp.js b/assets/index-D3CJIFqT.js similarity index 95% rename from assets/index-ik5KDOYp.js rename to assets/index-D3CJIFqT.js index 312efb8c..6b4b3d64 100644 --- a/assets/index-ik5KDOYp.js +++ b/assets/index-D3CJIFqT.js @@ -1 +1 @@ -import{b as o}from"./index-Bo8UkscO.js";const C=o.createContext({}),x=!0;function N({baseColor:i,highlightColor:l,width:s,height:a,borderRadius:r,circle:y,direction:m,duration:c,enableAnimation:f=x}){const e={};return m==="rtl"&&(e["--animation-direction"]="reverse"),typeof c=="number"&&(e["--animation-duration"]=`${c}s`),f||(e["--pseudo-element-display"]="none"),(typeof s=="string"||typeof s=="number")&&(e.width=s),(typeof a=="string"||typeof a=="number")&&(e.height=a),(typeof r=="string"||typeof r=="number")&&(e.borderRadius=r),y&&(e.borderRadius="50%"),typeof i<"u"&&(e["--base-color"]=i),typeof l<"u"&&(e["--highlight-color"]=l),e}function A({count:i=1,wrapper:l,className:s,containerClassName:a,containerTestId:r,circle:y=!1,style:m,...c}){var f,e,u;const O=o.useContext(C),v={...c};for(const[t,n]of Object.entries(c))typeof n>"u"&&delete v[t];const d={...O,...v,circle:y},$={...m,...N(d)};let h="react-loading-skeleton";s&&(h+=` ${s}`);const g=(f=d.inline)!==null&&f!==void 0?f:!1,p=[],b=Math.ceil(i);for(let t=0;ti&&t===b-1){const k=(e=n.width)!==null&&e!==void 0?e:"100%",S=i%1,w=typeof k=="number"?k*S:`calc(${k} * ${S})`;n={...n,width:w}}const E=o.createElement("span",{className:h,style:n,key:t},"‌");g?p.push(E):p.push(o.createElement(o.Fragment,{key:t},E,o.createElement("br",null)))}return o.createElement("span",{className:a,"data-testid":r,"aria-live":"polite","aria-busy":(u=d.enableAnimation)!==null&&u!==void 0?u:x},l?p.map((t,n)=>o.createElement(l,{key:n},t)):p)}export{A as S}; +import{b as o}from"./index-DdR0U16d.js";const C=o.createContext({}),x=!0;function N({baseColor:i,highlightColor:l,width:s,height:a,borderRadius:r,circle:y,direction:m,duration:c,enableAnimation:f=x}){const e={};return m==="rtl"&&(e["--animation-direction"]="reverse"),typeof c=="number"&&(e["--animation-duration"]=`${c}s`),f||(e["--pseudo-element-display"]="none"),(typeof s=="string"||typeof s=="number")&&(e.width=s),(typeof a=="string"||typeof a=="number")&&(e.height=a),(typeof r=="string"||typeof r=="number")&&(e.borderRadius=r),y&&(e.borderRadius="50%"),typeof i<"u"&&(e["--base-color"]=i),typeof l<"u"&&(e["--highlight-color"]=l),e}function A({count:i=1,wrapper:l,className:s,containerClassName:a,containerTestId:r,circle:y=!1,style:m,...c}){var f,e,u;const O=o.useContext(C),v={...c};for(const[t,n]of Object.entries(c))typeof n>"u"&&delete v[t];const d={...O,...v,circle:y},$={...m,...N(d)};let h="react-loading-skeleton";s&&(h+=` ${s}`);const g=(f=d.inline)!==null&&f!==void 0?f:!1,p=[],b=Math.ceil(i);for(let t=0;ti&&t===b-1){const k=(e=n.width)!==null&&e!==void 0?e:"100%",S=i%1,w=typeof k=="number"?k*S:`calc(${k} * ${S})`;n={...n,width:w}}const E=o.createElement("span",{className:h,style:n,key:t},"‌");g?p.push(E):p.push(o.createElement(o.Fragment,{key:t},E,o.createElement("br",null)))}return o.createElement("span",{className:a,"data-testid":r,"aria-live":"polite","aria-busy":(u=d.enableAnimation)!==null&&u!==void 0?u:x},l?p.map((t,n)=>o.createElement(l,{key:n},t)):p)}export{A as S}; diff --git a/assets/index-Duwys4Oo.js b/assets/index-D67pBxu9.js similarity index 92% rename from assets/index-Duwys4Oo.js rename to assets/index-D67pBxu9.js index 13c9a7f9..31faa9e9 100644 --- a/assets/index-Duwys4Oo.js +++ b/assets/index-D67pBxu9.js @@ -1 +1 @@ -import{aP as C,f as I,r as s,D,j as t,J as r,aQ as h,aR as E,aS as M,aT as S,aU as b,aV as B}from"./index-Bo8UkscO.js";import{P as v}from"./index-lFh4cs_O.js";import"./index-Q5z7UDcg.js";var w=C();const _=()=>{var u;const{t:o}=I(),[n,p]=s.useState(1),[l,f]=s.useState(2),y=n<=1,k=n>=l,[a,c]=s.useState({sort:"Ascending",createdBy:"Personal",done:!0}),{fetchTasks:x,fetchProgress:P,progress:i,fetchProgram:d,tasks:g}=s.useContext(D.EscolaLMSContext),j=[{id:1,content:t.jsx(r.IconText,{icon:a.done===!0?t.jsx(h,{}):t.jsx(E,{}),text:a.done===!0?o("MyProfilePage.HideDone"):o("MyProfilePage.ShowDone"),onClick:()=>c(e=>({...e,done:!e.done}))})}],m=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(M,{}),text:o("MyProfilePage.Ascending"),onClick:()=>c(e=>({...e,sort:"Ascending"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(S,{}),text:o("MyProfilePage.Descending"),onClick:()=>c(e=>({...e,sort:"Descending"}))})}],T=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(b,{}),text:o("MyProfilePage.Personal"),onClick:()=>c(e=>({...e,createdBy:"Personal"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(B,{}),text:o("MyProfilePage.Incoming"),onClick:()=>c(e=>({...e,createdBy:"Incoming"}))})}];return s.useEffect(()=>{var e;x({page:n,per_page:25}),f(Number((e=g.list)==null?void 0:e.meta.last_page)),P()},[P,x,n,(u=g.list)==null?void 0:u.meta.last_page]),s.useEffect(()=>{i.value&&i.value.forEach(e=>d(e.course.id))},[i,d]),t.jsx(v,{title:o("MyProfilePage.MyTasks"),children:t.jsx(w.TasksComponent,{taskShowAction:{options:j,showDone:a.done},sortOptions:{options:m,type:a.sort},createBy:{options:T,type:a.createdBy},tasksPagination:{previousDisabled:y,nextDisabled:k,currentPage:n,lastPage:l,setCurrentPage:p}})})};export{_ as default}; +import{aP as C,f as I,r as s,D,j as t,J as r,aQ as h,aR as E,aS as M,aT as S,aU as b,aV as B}from"./index-DdR0U16d.js";import{P as v}from"./index-BH6C5uk2.js";import"./index-DuwnFplQ.js";var w=C();const _=()=>{var u;const{t:o}=I(),[n,p]=s.useState(1),[l,f]=s.useState(2),y=n<=1,k=n>=l,[a,c]=s.useState({sort:"Ascending",createdBy:"Personal",done:!0}),{fetchTasks:x,fetchProgress:P,progress:i,fetchProgram:d,tasks:g}=s.useContext(D.EscolaLMSContext),j=[{id:1,content:t.jsx(r.IconText,{icon:a.done===!0?t.jsx(h,{}):t.jsx(E,{}),text:a.done===!0?o("MyProfilePage.HideDone"):o("MyProfilePage.ShowDone"),onClick:()=>c(e=>({...e,done:!e.done}))})}],m=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(M,{}),text:o("MyProfilePage.Ascending"),onClick:()=>c(e=>({...e,sort:"Ascending"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(S,{}),text:o("MyProfilePage.Descending"),onClick:()=>c(e=>({...e,sort:"Descending"}))})}],T=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(b,{}),text:o("MyProfilePage.Personal"),onClick:()=>c(e=>({...e,createdBy:"Personal"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(B,{}),text:o("MyProfilePage.Incoming"),onClick:()=>c(e=>({...e,createdBy:"Incoming"}))})}];return s.useEffect(()=>{var e;x({page:n,per_page:25}),f(Number((e=g.list)==null?void 0:e.meta.last_page)),P()},[P,x,n,(u=g.list)==null?void 0:u.meta.last_page]),s.useEffect(()=>{i.value&&i.value.forEach(e=>d(e.course.id))},[i,d]),t.jsx(v,{title:o("MyProfilePage.MyTasks"),children:t.jsx(w.TasksComponent,{taskShowAction:{options:j,showDone:a.done},sortOptions:{options:m,type:a.sort},createBy:{options:T,type:a.createdBy},tasksPagination:{previousDisabled:y,nextDisabled:k,currentPage:n,lastPage:l,setCurrentPage:p}})})};export{_ as default}; diff --git a/assets/index-CJzAET51.js b/assets/index-D8AXo2es.js similarity index 94% rename from assets/index-CJzAET51.js rename to assets/index-D8AXo2es.js index f2a0e45c..1e8e9223 100644 --- a/assets/index-CJzAET51.js +++ b/assets/index-D8AXo2es.js @@ -1,4 +1,4 @@ -import{b as E,E as M,r as n,h as y,j as e,q as b,w as c,L as m,aO as N,s as d,D as x,n as o,T as v,f as u,i as L,l as j,aK as C,J as w,ar as I,N as B,ax as R,ay as p,az as _,aA as $,aB as z,o as D,C as A}from"./index-Bo8UkscO.js";import{P as W}from"./index-B8tRK7-_.js";import{a as q}from"./PricingCard-DH5RPEzw.js";import{P as G}from"./index-CsJcOuQH.js";import{D as O}from"./index-Gh1hdRAR.js";import{B as H}from"./index-XD7REZpG.js";import{a as U}from"./ResponsiveImage-wHQCVyd2.js";import{C as F,T as J}from"./index-DXSphz3L.js";const K=E.createContext({}),V=({children:a})=>{const{id:s}=M(),{fetchProduct:t}=n.useContext(y.EscolaLMSContext);return n.useEffect(()=>{s&&t(Number(s))},[t,s]),e.jsx(K.Provider,{value:{},children:a})};var i=(a=>(a.Consultation="App\\Models\\Consultation",a.StationaryEvent="App\\Models\\StationaryEvent",a.Course="App\\Models\\Course",a.Webinar="App\\Models\\Webinar",a))(i||{});const Q=a=>a.reduce((s,t)=>{const r=t.productable_type,l=s[r]??[];return{...s,[r]:[...l,t]}},{}),X=b(c.Col)` +import{b as E,E as M,r as n,h as y,j as e,q as b,w as c,L as m,aO as N,s as d,D as x,n as o,T as v,f as u,i as L,l as j,aK as C,J as w,ar as I,N as B,ax as R,ay as p,az as _,aA as $,aB as z,o as D,C as A}from"./index-DdR0U16d.js";import{P as W}from"./index-DdKOa6TA.js";import{a as q}from"./PricingCard-CtcAd6qS.js";import{P as G}from"./index-CGAhkVF0.js";import{D as O}from"./index-DGkptNEy.js";import{B as H}from"./index-CcDf82b6.js";import{a as U}from"./ResponsiveImage-Cj4skSpA.js";import{C as F,T as J}from"./index-B10JnDDZ.js";const K=E.createContext({}),V=({children:a})=>{const{id:s}=M(),{fetchProduct:t}=n.useContext(y.EscolaLMSContext);return n.useEffect(()=>{s&&t(Number(s))},[t,s]),e.jsx(K.Provider,{value:{},children:a})};var i=(a=>(a.Consultation="App\\Models\\Consultation",a.StationaryEvent="App\\Models\\StationaryEvent",a.Course="App\\Models\\Course",a.Webinar="App\\Models\\Webinar",a))(i||{});const Q=a=>a.reduce((s,t)=>{const r=t.productable_type,l=s[r]??[];return{...s,[r]:[...l,t]}},{}),X=b(c.Col)` border: 1px solid ${({theme:a})=>a.primaryColor}; margin: 4px auto; padding: 4px; diff --git a/assets/index-DaknJ8Ho.js b/assets/index-DFzjY99C.js similarity index 89% rename from assets/index-DaknJ8Ho.js rename to assets/index-DFzjY99C.js index b61d76a6..3510f859 100644 --- a/assets/index-DaknJ8Ho.js +++ b/assets/index-DFzjY99C.js @@ -1,4 +1,4 @@ -import{b,r as i,h as w,k as v,i as S,j as e,q as C,n as u,f as E,T as P,X as F,S as N,w as j,D as T,o as $,C as k}from"./index-Bo8UkscO.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-CnadCGrz.js";import{C as H}from"./index-DzuqAlYx.js";import{F as L,S as M}from"./index-mrm-aJDu.js";import{E as q}from"./index-DIpJ4xhM.js";import{P as R}from"./index-D6txpOmq.js";import"./swiper-react-dLA_7gCe.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-PGMEsYK1.js";import"./index-BlWqUIM7.js";import"./index-rPhH6DdW.js";const g=b.createContext({}),y=(a={})=>f.stringify(a),I=({children:a})=>{const{fetchStationaryEvents:r,stationaryEvents:s,fetchCategories:t}=i.useContext(w.EscolaLMSContext),n=v(),{push:c}=S();i.useEffect(()=>{t()},[]);const[o,p]=i.useState(),m=(l={})=>({page:1,per_page:8,...l});return i.useEffect(()=>{c(`${n.pathname}?${y(o)}`)},[o,n.pathname]),i.useEffect(()=>{if(n.search&&n.search.split("?")[1]!==y(o)){const l=f.parse(n.search);p(l),r(l||{})}else r(m(o))},[n.search]),e.jsx(g.Provider,{value:{params:o,setParams:p,events:s},children:a})},O=({children:a})=>{const r=C("div")` +import{b,r as i,h as w,k as v,i as S,j as e,q as C,n as u,f as E,T as P,X as F,S as N,w as j,D as T,o as $,C as k}from"./index-DdR0U16d.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-CTffk5vR.js";import{C as H}from"./index-ibEhBCOW.js";import{F as L,S as M}from"./index-CIgK6KxT.js";import{E as q}from"./index-CsquLrCJ.js";import{P as R}from"./index-Bq7IYj2l.js";import"./swiper-react-BLsnPoYA.js";import"./ResponsiveImage-Cj4skSpA.js";import"./index-BhJ-dW2f.js";import"./index-naIVnHMf.js";import"./index-CtKtIhYW.js";const g=b.createContext({}),y=(a={})=>f.stringify(a),I=({children:a})=>{const{fetchStationaryEvents:r,stationaryEvents:s,fetchCategories:t}=i.useContext(w.EscolaLMSContext),n=v(),{push:c}=S();i.useEffect(()=>{t()},[]);const[o,p]=i.useState(),m=(l={})=>({page:1,per_page:8,...l});return i.useEffect(()=>{c(`${n.pathname}?${y(o)}`)},[o,n.pathname]),i.useEffect(()=>{if(n.search&&n.search.split("?")[1]!==y(o)){const l=f.parse(n.search);p(l),r(l||{})}else r(m(o))},[n.search]),e.jsx(g.Provider,{value:{params:o,setParams:p,events:s},children:a})},O=({children:a})=>{const r=C("div")` background: ${({theme:t})=>t.primaryColor}; padding: ${u?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${u?"100px":"40px"}; diff --git a/assets/index-Gh1hdRAR.js b/assets/index-DGkptNEy.js similarity index 78% rename from assets/index-Gh1hdRAR.js rename to assets/index-DGkptNEy.js index 1e1c9817..3cf7d8aa 100644 --- a/assets/index-Gh1hdRAR.js +++ b/assets/index-DGkptNEy.js @@ -1,4 +1,4 @@ -import{q as s,n as t,j as e}from"./index-Bo8UkscO.js";const o=s.div` +import{q as s,n as t,j as e}from"./index-DdR0U16d.js";const o=s.div` width: 100%; left: 0; position: ${t?"fixed":"sticky"}; diff --git a/assets/index-FNDKWpwN.js b/assets/index-DQCShaBU.js similarity index 92% rename from assets/index-FNDKWpwN.js rename to assets/index-DQCShaBU.js index 46056ed3..b7ad1851 100644 --- a/assets/index-FNDKWpwN.js +++ b/assets/index-DQCShaBU.js @@ -1,4 +1,4 @@ -import{q as n,f as o,i,j as t,o as a,C as l,T as c,s as r,v as u,l as x}from"./index-Bo8UkscO.js";const h=n.div` +import{q as n,f as o,i,j as t,o as a,C as l,T as c,s as r,v as u,l as x}from"./index-DdR0U16d.js";const h=n.div` height: calc(100vh - 520px); .content { diff --git a/assets/index-BSF2Iqhr.js b/assets/index-DQcTTBkU.js similarity index 95% rename from assets/index-BSF2Iqhr.js rename to assets/index-DQcTTBkU.js index e811ddaa..c66315c8 100644 --- a/assets/index-BSF2Iqhr.js +++ b/assets/index-DQcTTBkU.js @@ -1,3 +1,3 @@ -import{q as d,r as i,h as x,f as m,X as h,j as s,o as j,C as p,L as r,l as u,s as l,T as f,w as o,S as T,G as g,H as C,I as _}from"./index-Bo8UkscO.js";import{B as v}from"./index-XD7REZpG.js";const y=d.div` +import{q as d,r as i,h as x,f as m,X as h,j as s,o as j,C as p,L as r,l as u,s as l,T as f,w as o,S as T,G as g,H as C,I as _}from"./index-DdR0U16d.js";import{B as v}from"./index-CcDf82b6.js";const y=d.div` margin-bottom: 10px; `,E=()=>{const{tutors:a,fetchTutors:n}=i.useContext(x.EscolaLMSContext),{t}=m(),c=h();return i.useEffect(()=>{n()},[]),s.jsx(j,{children:s.jsx("div",{className:"advisor-area",children:s.jsxs(p,{children:[s.jsx(v,{items:[s.jsx(r,{to:u.home,children:t("Home")}),s.jsx(l.Text,{size:"12",children:t("Tutors")})]}),s.jsx(y,{children:s.jsxs(f.Title,{level:1,children:[" ",t("Tutors")]})}),s.jsxs(o.Row,{children:[a.loading&&s.jsx("div",{style:{display:"flex",justifyContent:"center",width:"100%",minHeight:"500px",flexDirection:"column",alignItems:"center"},className:"loader-wrapper",children:s.jsx(T.Spin,{color:c.primaryColor})}),!a.loading&&(a.list||[]).map(e=>s.jsx(o.Col,{sm:6,md:6,lg:4,children:s.jsx(g,{id:Number(e.id),title:e.name,image:s.jsx(r,{to:`/tutors/${e.id}`,children:e.path_avatar?s.jsx(C,{path:e.path_avatar,srcSizes:[380,380*2]}):s.jsx("img",{className:"tutor-card__avatar",src:_.tutorPlaceholderPath,alt:"tutor_avatar"})}),subtitle:s.jsx(r,{to:`/tutors/${e.id}`,children:s.jsx(l.Text,{size:"16",children:s.jsxs("strong",{children:[e.first_name," ",e.last_name]})})})})},e.id))]})]})})})};export{E as default}; diff --git a/assets/index-D6bh6TPc.js b/assets/index-DTk8krmy.js similarity index 88% rename from assets/index-D6bh6TPc.js rename to assets/index-DTk8krmy.js index d8415bcd..a0db912e 100644 --- a/assets/index-D6bh6TPc.js +++ b/assets/index-DTk8krmy.js @@ -1,4 +1,4 @@ -import{q as f,n as j,j as e,T as P,s as b,L as y,v as T,f as d,b0 as W,b1 as h,aK as p,r,w as g,Z as v,l as M,h as _}from"./index-Bo8UkscO.js";import{P as E}from"./index-lFh4cs_O.js";import{T as D}from"./Tabs-CO-l8TER.js";import{W as C}from"./index-C9HI2UVR.js";import{D as x,a as m}from"./index-Dof53sD6.js";import{W as I}from"./index-C0u-ZNcE.js";import"./index-Q5z7UDcg.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-PGMEsYK1.js";import"./index-BlWqUIM7.js";const A=f.div` +import{q as f,n as j,j as e,T as P,s as b,L as y,v as T,f as d,b0 as W,b1 as h,aK as p,r,w as g,Z as v,l as M,h as _}from"./index-DdR0U16d.js";import{P as E}from"./index-BH6C5uk2.js";import{T as D}from"./Tabs-C_s_LN6Y.js";import{W as C}from"./index-DzRAdE-w.js";import{D as x,a as m}from"./index-CZO-v9Fr.js";import{W as I}from"./index-Bp4z1X_W.js";import"./index-DuwnFplQ.js";import"./ResponsiveImage-Cj4skSpA.js";import"./index-BhJ-dW2f.js";import"./index-naIVnHMf.js";const A=f.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-DvNYyE7v.js b/assets/index-DW7ziQAg.js similarity index 96% rename from assets/index-DvNYyE7v.js rename to assets/index-DW7ziQAg.js index 6ce3c713..307dd8da 100644 --- a/assets/index-DvNYyE7v.js +++ b/assets/index-DW7ziQAg.js @@ -1,4 +1,4 @@ -import{q,f as R,r as p,j as t,T as f,ct as T,s as g,cu as j,ah as y,af as S,v as C,x as N,D as A,A as w}from"./index-Bo8UkscO.js";import{a as k}from"./questionnaires-_0sODp6F.js";const B=q.form` +import{q,f as R,r as p,j as t,T as f,ct as T,s as g,cu as j,ah as y,af as S,v as C,x as N,D as A,A as w}from"./index-DdR0U16d.js";import{a as k}from"./questionnaires-BOcFjJOw.js";const B=q.form` .question-box { &__title { font-size: 24px; diff --git a/assets/index-DpPQm32o.js b/assets/index-DX00fjMM.js similarity index 84% rename from assets/index-DpPQm32o.js rename to assets/index-DX00fjMM.js index da4f6fa1..7c943967 100644 --- a/assets/index-DpPQm32o.js +++ b/assets/index-DX00fjMM.js @@ -1,4 +1,4 @@ -import{cy as R,q as S,i as _,f,j as r,n as l,L as t,T as d,w as x}from"./index-Bo8UkscO.js";import{C as n}from"./index-PGMEsYK1.js";import{R as g}from"./ResponsiveImage-wHQCVyd2.js";import{C as h}from"./index-rPhH6DdW.js";import{S as v}from"./swiper-react-dLA_7gCe.js";import{P as j}from"./index-CsJcOuQH.js";import{S as N}from"./swiper-ES8EF7dV.js";var u=R();const b=S.div` +import{cy as R,q as S,i as _,f,j as r,n as l,L as t,T as d,w as x}from"./index-DdR0U16d.js";import{C as n}from"./index-BhJ-dW2f.js";import{R as g}from"./ResponsiveImage-Cj4skSpA.js";import{C as h}from"./index-CtKtIhYW.js";import{S as v}from"./swiper-react-BLsnPoYA.js";import{P as j}from"./index-CGAhkVF0.js";import{S as N}from"./swiper-8PJkZR9V.js";var u=R();const b=S.div` .swiper { padding: 7px 10px; margin: 0px -15px; diff --git a/assets/index-B8tRK7-_.js b/assets/index-DdKOa6TA.js similarity index 87% rename from assets/index-B8tRK7-_.js rename to assets/index-DdKOa6TA.js index a02abce6..95ebe273 100644 --- a/assets/index-B8tRK7-_.js +++ b/assets/index-DdKOa6TA.js @@ -1,4 +1,4 @@ -import{q as r,X as t,r as n,j as o,S as d}from"./index-Bo8UkscO.js";const s=r.div` +import{q as r,X as t,r as n,j as o,S as d}from"./index-DdR0U16d.js";const s=r.div` position: fixed; top: 0; left: 0; diff --git a/assets/index-Bo8UkscO.js b/assets/index-DdR0U16d.js similarity index 99% rename from assets/index-Bo8UkscO.js rename to assets/index-DdR0U16d.js index 339e5322..62d2e890 100644 --- a/assets/index-Bo8UkscO.js +++ b/assets/index-DdR0U16d.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-VLQumBqU.js","assets/ResponsiveImage-wHQCVyd2.js","assets/index-CnadCGrz.js","assets/swiper-react-dLA_7gCe.js","assets/index-BLyqPjk_.js","assets/index-DpPQm32o.js","assets/index-PGMEsYK1.js","assets/index-rPhH6DdW.js","assets/index-CsJcOuQH.js","assets/swiper-ES8EF7dV.js","assets/swiper-DvoKZ2wl.css","assets/useFetchCourses-C-CMvnG8.js","assets/CourseCard-B9elZN0z.js","assets/index-ik5KDOYp.js","assets/useSearchParams-CMuS-qVd.js","assets/base-C7euzKDi.js","assets/index-C7LDu5YO.js","assets/Tabs-CO-l8TER.js","assets/index-B7Mx4ryn.js","assets/index-DvNYyE7v.js","assets/questionnaires-_0sODp6F.js","assets/useDownloadCertificate-Gsl9Kioe.js","assets/useRoles-O1Qe8-YL.js","assets/index-D6txpOmq.js","assets/index-BCYTAZZS.js","assets/AuthWrapper-BdUQe8CT.js","assets/index-BkD4PSi8.js","assets/index-XD7REZpG.js","assets/index-Q5z7UDcg.js","assets/index-BSF2Iqhr.js","assets/index-DlJsUL6u.js","assets/index-B8tRK7-_.js","assets/index-BlWqUIM7.js","assets/index-CfeJjs0r.js","assets/index-BfAY7YVa.js","assets/PricingCard-DH5RPEzw.js","assets/index-DLruw0EO.js","assets/warning-C5gOjCvf.js","assets/index-BEJM8AhD.css","assets/index-CCLOV7TM.js","assets/CourseAgenda-DG6Q95Xo.js","assets/Upload-CrRhBbHH.js","assets/index-BH8DkdAJ.js","assets/index-CihtPuAx.js","assets/index-Dof53sD6.js","assets/index-By7hXovs.css","assets/index-C72-Uy01.js","assets/index-DzuqAlYx.js","assets/index-mrm-aJDu.js","assets/index-sb21KuWH.js","assets/index-DaknJ8Ho.js","assets/index-DIpJ4xhM.js","assets/index-BXABDQI0.js","assets/index-Gh1hdRAR.js","assets/index-CuUoUa_j.js","assets/index-C9HI2UVR.js","assets/index-BAf4na0h.js","assets/index-DXSphz3L.js","assets/index-C0u-ZNcE.js","assets/index-CD24jjkG.js","assets/index-CJzAET51.js","assets/index-Duwys4Oo.js","assets/index-lFh4cs_O.js","assets/index-B7S9LUfx.js","assets/index-CbM85lEr.js","assets/my-orders-BYqDkrfS.js","assets/my-consultations-CsEZzLH7.js","assets/my-data-CLKDK_Yl.js","assets/index-KzvqoYJ5.js","assets/index-Dlnlu5e-.js","assets/index-D6bh6TPc.js","assets/my-certificates-D_rhKLqo.js"] + __vite__mapDeps.viteFileDeps = ["assets/index-C_2rt7P-.js","assets/ResponsiveImage-Cj4skSpA.js","assets/index-CTffk5vR.js","assets/swiper-react-BLsnPoYA.js","assets/index-DfSDa3C0.js","assets/index-DX00fjMM.js","assets/index-BhJ-dW2f.js","assets/index-CtKtIhYW.js","assets/index-CGAhkVF0.js","assets/swiper-8PJkZR9V.js","assets/swiper-DvoKZ2wl.css","assets/useFetchCourses-CkVD5k4g.js","assets/CourseCard-yGz7Jurs.js","assets/index-D3CJIFqT.js","assets/useSearchParams-DwoVLtwq.js","assets/base-C7euzKDi.js","assets/index-B8psG9iu.js","assets/Tabs-C_s_LN6Y.js","assets/index-GZhcI3y0.js","assets/index-DW7ziQAg.js","assets/questionnaires-BOcFjJOw.js","assets/useDownloadCertificate-DQ0RD7nc.js","assets/useRoles-Bi4GxnzU.js","assets/index-Bq7IYj2l.js","assets/index-ICCi6AqA.js","assets/AuthWrapper-B3tCSxZi.js","assets/index-BDZORQi9.js","assets/index-CcDf82b6.js","assets/index-DuwnFplQ.js","assets/index-DQcTTBkU.js","assets/index-CCpOKIya.js","assets/index-DdKOa6TA.js","assets/index-naIVnHMf.js","assets/index-CiDh3ghj.js","assets/index-ZorihLRX.js","assets/PricingCard-CtcAd6qS.js","assets/index-HBZ4Cq4Z.js","assets/warning-Cy01Vo2F.js","assets/index-BEJM8AhD.css","assets/index-CbBzSgMs.js","assets/CourseAgenda-B2ujVzgN.js","assets/Upload-jAUszd-C.js","assets/index-BCHZaDe9.js","assets/index-CMcFPrAH.js","assets/index-CZO-v9Fr.js","assets/index-By7hXovs.css","assets/index-BOFQZ7qD.js","assets/index-ibEhBCOW.js","assets/index-CIgK6KxT.js","assets/index-CEJ6seiJ.js","assets/index-DFzjY99C.js","assets/index-CsquLrCJ.js","assets/index-paufNVDS.js","assets/index-DGkptNEy.js","assets/index-X0IiEboi.js","assets/index-DzRAdE-w.js","assets/index-Dpmobw00.js","assets/index-B10JnDDZ.js","assets/index-Bp4z1X_W.js","assets/index-N9CDV4dI.js","assets/index-D8AXo2es.js","assets/index-D67pBxu9.js","assets/index-BH6C5uk2.js","assets/index-S6SGatYR.js","assets/index-BrlDJcGg.js","assets/my-orders-DjvNnYZm.js","assets/my-consultations-CqEl1hMS.js","assets/my-data-BWqVmTAa.js","assets/index-BeK4AdO8.js","assets/index-BNCH7dEo.js","assets/index-DTk8krmy.js","assets/my-certificates-BLOMt-4b.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -9358,7 +9358,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho justify-content: center; align-items: center; align-content: center; -`,SJ2=()=>{const{t}=r9();return I.jsx(BJ2,{children:I.jsxs(_J2,{children:[I.jsxs($a.Title,{level:3,children:[" ",t("Loading")]}),I.jsx(_h.Spin,{})]})})},TJ2=_.lazy(()=>n0(()=>import("./index-VLQumBqU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),OJ2=_.lazy(()=>n0(()=>import("./index-B3OxzdAH.js"),__vite__mapDeps([]))),AJ2=_.lazy(()=>n0(()=>import("./index-BCYTAZZS.js"),__vite__mapDeps([24,25]))),kJ2=_.lazy(()=>n0(()=>import("./index-ClES3_Td.js"),__vite__mapDeps([]))),EJ2=_.lazy(()=>n0(()=>import("./index-BkD4PSi8.js"),__vite__mapDeps([26,27,28,13]))),q$=_.lazy(()=>n0(()=>import("./index-FNDKWpwN.js"),__vite__mapDeps([]))),PJ2=_.lazy(()=>n0(()=>import("./index-BSF2Iqhr.js"),__vite__mapDeps([29,27]))),NJ2=_.lazy(()=>n0(()=>import("./index-DlJsUL6u.js"),__vite__mapDeps([30,31,1,5,6,7,3,8,9,10,27,18,32]))),DJ2=_.lazy(()=>n0(()=>import("./index-CfeJjs0r.js"),__vite__mapDeps([33,23,15,1,7,6,8,12,13,11]))),RJ2=_.lazy(()=>n0(()=>import("./index-BfAY7YVa.js"),__vite__mapDeps([34,35,8,36,37,1,38,27,20,7,23,4,5,6,3,9,10,11,12,13]))),jJ2=_.lazy(()=>n0(()=>import("./index-CCLOV7TM.js"),__vite__mapDeps([39,31,40,36,37,1,38,41]))),IJ2=_.lazy(()=>n0(()=>import("./index-BH8DkdAJ.js"),__vite__mapDeps([42,31,27,1,35,43,37,44,6,45]))),FJ2=_.lazy(()=>n0(()=>import("./index-C72-Uy01.js"),__vite__mapDeps([46,2,3,47,48,14,15,43,37,44,1,6,45,23]))),$J2=_.lazy(()=>n0(()=>import("./index-sb21KuWH.js"),__vite__mapDeps([49,25]))),UJ2=_.lazy(()=>n0(()=>import("./index-DaknJ8Ho.js"),__vite__mapDeps([50,15,2,3,47,48,51,1,6,32,7,23]))),WJ2=_.lazy(()=>n0(()=>import("./index-BXABDQI0.js"),__vite__mapDeps([52,31,27,1,35,8,53,18,51,6,32,7]))),qJ2=_.lazy(()=>n0(()=>import("./index-CuUoUa_j.js"),__vite__mapDeps([54,15,2,3,48,55,1,6,32,23]))),GJ2=_.lazy(()=>n0(()=>import("./index-BAf4na0h.js"),__vite__mapDeps([56,57,1,27,35,58,8]))),KJ2=_.lazy(()=>n0(()=>import("./index-CD24jjkG.js"),__vite__mapDeps([59,15,2,3,47,48,23,1,6,32,7]))),YJ2=_.lazy(()=>n0(()=>import("./index-CJzAET51.js"),__vite__mapDeps([60,31,35,8,53,27,1,57]))),ZJ2=_.lazy(()=>n0(()=>import("./index-Duwys4Oo.js"),__vite__mapDeps([61,62,28]))),QJ2=_.lazy(()=>n0(()=>import("./index-B7S9LUfx.js"),__vite__mapDeps([63,62,28]))),XJ2=_.lazy(()=>n0(()=>import("./index-C7LDu5YO.js"),__vite__mapDeps([16,17,6,1,18,7,19,20,21,22,14,15,23,9,3,10,12,13]))),JJ2=_.lazy(()=>n0(()=>import("./index-CbM85lEr.js"),__vite__mapDeps([64,17,51,1,6,32,7,62,28]))),t10=_.lazy(()=>n0(()=>import("./my-orders-BYqDkrfS.js"),__vite__mapDeps([65,62,28]))),e10=_.lazy(()=>n0(()=>import("./my-notifications-DOK8UBt_.js"),__vite__mapDeps([]))),a10=_.lazy(()=>n0(()=>import("./my-consultations-CsEZzLH7.js"),__vite__mapDeps([66,62,28,17,1,6,44,43,37,45,22]))),n10=_.lazy(()=>n0(()=>import("./my-data-CLKDK_Yl.js"),__vite__mapDeps([67,62,28,41]))),r10=_.lazy(()=>n0(()=>import("./index-KzvqoYJ5.js"),__vite__mapDeps([68,40,36,37,1,38,41,19,20,21]))),i10=_.lazy(()=>n0(()=>import("./index-Dlnlu5e-.js"),__vite__mapDeps([69,31,5,6,1,7,3,8,9,10,27]))),o10=_.lazy(()=>n0(()=>import("./index-D6bh6TPc.js"),__vite__mapDeps([70,62,28,17,55,1,6,32,44,58]))),l10=_.lazy(()=>n0(()=>import("./my-certificates-D_rhKLqo.js"),__vite__mapDeps([71,62,28,21]))),c10=t=>v61()==="BrowserRouter"?I.jsx(o61,{...t}):I.jsx(l61,{...t}),s10=window.VITE_APP_BASENAME||"/",h10=()=>{const{home:t,page:e,myProfile:a,myConsultations:n,myOrders:r,tutors:o,tutor:l,courses:c,course:h,preview:s,courseProgram:u,consultation:v,consultations:f,cart:d,reset:z,notFound:g,myNotifications:H,myData:p,login:m,register:M,emailVerify:w,events:x,event:y,myStationaryEvents:V,myTasks:C,myBookmarks:L,webinars:B,webinar:S,myWebinars:T,packages:P,packageProduct:$,myCertificates:W}=l0;return I.jsxs(c10,{basename:s10,children:[I.jsx(d61,{}),I.jsx(_.Suspense,{fallback:I.jsx(SJ2,{}),children:I.jsxs(r61,{children:[I.jsx(zr,{exact:!0,path:t,component:TJ2}),I.jsx(zr,{exact:!0,path:M,component:OJ2}),I.jsx(zr,{exact:!0,path:m,component:AJ2}),I.jsx(zr,{exact:!0,path:z,component:$J2}),I.jsx(zr,{exact:!0,path:w,component:kJ2}),I.jsx(Hn,{exact:!0,path:o,component:PJ2}),I.jsx(Hn,{exact:!0,path:f,component:FJ2}),I.jsx(Hn,{exact:!0,path:v,component:IJ2}),I.jsx(Hn,{exact:!0,path:l,component:NJ2}),I.jsx(Hn,{exact:!0,path:h,component:RJ2}),I.jsx(Hn,{exact:!0,path:s,component:jJ2}),I.jsx(u61,{exact:!0,path:c,component:DJ2}),I.jsx(Hn,{exact:!0,path:x,component:UJ2}),I.jsx(Hn,{exact:!0,path:y,component:WJ2}),I.jsx(Hn,{exact:!0,path:B,component:qJ2}),I.jsx(Hn,{exact:!0,path:S,component:GJ2}),I.jsx(Hn,{exact:!0,path:P,component:KJ2}),I.jsx(Hn,{exact:!0,path:$,component:YJ2}),I.jsx(Mn,{exact:!0,path:a,component:XJ2}),I.jsx(Mn,{exact:!0,path:C,component:ZJ2}),I.jsx(Mn,{exact:!0,path:L,component:QJ2}),I.jsx(Mn,{exact:!0,path:T,component:o10}),I.jsx(Mn,{exact:!0,path:W,component:l10}),I.jsx(Mn,{exact:!0,path:V,component:JJ2}),I.jsx(Mn,{exact:!0,path:n,component:a10}),I.jsx(Mn,{exact:!0,path:r,component:t10}),I.jsx(Mn,{exact:!0,path:H,component:e10}),I.jsx(Mn,{exact:!0,path:p,component:n10}),I.jsx(Mn,{exact:!0,path:u,component:r10}),I.jsx(Mn,{exact:!0,path:d,component:i10}),I.jsx(zr,{exact:!0,path:g,component:q$}),I.jsx(zr,{exact:!0,path:e,component:EJ2}),I.jsx(zr,{exact:!0,component:q$})]})})]})};/*! ***************************************************************************** +`,SJ2=()=>{const{t}=r9();return I.jsx(BJ2,{children:I.jsxs(_J2,{children:[I.jsxs($a.Title,{level:3,children:[" ",t("Loading")]}),I.jsx(_h.Spin,{})]})})},TJ2=_.lazy(()=>n0(()=>import("./index-C_2rt7P-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),OJ2=_.lazy(()=>n0(()=>import("./index-LMnI0wZb.js"),__vite__mapDeps([]))),AJ2=_.lazy(()=>n0(()=>import("./index-ICCi6AqA.js"),__vite__mapDeps([24,25]))),kJ2=_.lazy(()=>n0(()=>import("./index-CPOkjhvu.js"),__vite__mapDeps([]))),EJ2=_.lazy(()=>n0(()=>import("./index-BDZORQi9.js"),__vite__mapDeps([26,27,28,13]))),q$=_.lazy(()=>n0(()=>import("./index-DQCShaBU.js"),__vite__mapDeps([]))),PJ2=_.lazy(()=>n0(()=>import("./index-DQcTTBkU.js"),__vite__mapDeps([29,27]))),NJ2=_.lazy(()=>n0(()=>import("./index-CCpOKIya.js"),__vite__mapDeps([30,31,1,5,6,7,3,8,9,10,27,18,32]))),DJ2=_.lazy(()=>n0(()=>import("./index-CiDh3ghj.js"),__vite__mapDeps([33,23,15,1,7,6,8,12,13,11]))),RJ2=_.lazy(()=>n0(()=>import("./index-ZorihLRX.js"),__vite__mapDeps([34,35,8,36,37,1,38,27,20,7,23,4,5,6,3,9,10,11,12,13]))),jJ2=_.lazy(()=>n0(()=>import("./index-CbBzSgMs.js"),__vite__mapDeps([39,31,40,36,37,1,38,41]))),IJ2=_.lazy(()=>n0(()=>import("./index-BCHZaDe9.js"),__vite__mapDeps([42,31,27,1,35,43,37,44,6,45]))),FJ2=_.lazy(()=>n0(()=>import("./index-BOFQZ7qD.js"),__vite__mapDeps([46,2,3,47,48,14,15,43,37,44,1,6,45,23]))),$J2=_.lazy(()=>n0(()=>import("./index-CEJ6seiJ.js"),__vite__mapDeps([49,25]))),UJ2=_.lazy(()=>n0(()=>import("./index-DFzjY99C.js"),__vite__mapDeps([50,15,2,3,47,48,51,1,6,32,7,23]))),WJ2=_.lazy(()=>n0(()=>import("./index-paufNVDS.js"),__vite__mapDeps([52,31,27,1,35,8,53,18,51,6,32,7]))),qJ2=_.lazy(()=>n0(()=>import("./index-X0IiEboi.js"),__vite__mapDeps([54,15,2,3,48,55,1,6,32,23]))),GJ2=_.lazy(()=>n0(()=>import("./index-Dpmobw00.js"),__vite__mapDeps([56,57,1,27,35,58,8]))),KJ2=_.lazy(()=>n0(()=>import("./index-N9CDV4dI.js"),__vite__mapDeps([59,15,2,3,47,48,23,1,6,32,7]))),YJ2=_.lazy(()=>n0(()=>import("./index-D8AXo2es.js"),__vite__mapDeps([60,31,35,8,53,27,1,57]))),ZJ2=_.lazy(()=>n0(()=>import("./index-D67pBxu9.js"),__vite__mapDeps([61,62,28]))),QJ2=_.lazy(()=>n0(()=>import("./index-S6SGatYR.js"),__vite__mapDeps([63,62,28]))),XJ2=_.lazy(()=>n0(()=>import("./index-B8psG9iu.js"),__vite__mapDeps([16,17,6,1,18,7,19,20,21,22,14,15,23,9,3,10,12,13]))),JJ2=_.lazy(()=>n0(()=>import("./index-BrlDJcGg.js"),__vite__mapDeps([64,17,51,1,6,32,7,62,28]))),t10=_.lazy(()=>n0(()=>import("./my-orders-DjvNnYZm.js"),__vite__mapDeps([65,62,28]))),e10=_.lazy(()=>n0(()=>import("./my-notifications-DWZIvSzS.js"),__vite__mapDeps([]))),a10=_.lazy(()=>n0(()=>import("./my-consultations-CqEl1hMS.js"),__vite__mapDeps([66,62,28,17,1,6,44,43,37,45,22]))),n10=_.lazy(()=>n0(()=>import("./my-data-BWqVmTAa.js"),__vite__mapDeps([67,62,28,41]))),r10=_.lazy(()=>n0(()=>import("./index-BeK4AdO8.js"),__vite__mapDeps([68,40,36,37,1,38,41,19,20,21]))),i10=_.lazy(()=>n0(()=>import("./index-BNCH7dEo.js"),__vite__mapDeps([69,31,5,6,1,7,3,8,9,10,27]))),o10=_.lazy(()=>n0(()=>import("./index-DTk8krmy.js"),__vite__mapDeps([70,62,28,17,55,1,6,32,44,58]))),l10=_.lazy(()=>n0(()=>import("./my-certificates-BLOMt-4b.js"),__vite__mapDeps([71,62,28,21]))),c10=t=>v61()==="BrowserRouter"?I.jsx(o61,{...t}):I.jsx(l61,{...t}),s10=window.VITE_APP_BASENAME||"/",h10=()=>{const{home:t,page:e,myProfile:a,myConsultations:n,myOrders:r,tutors:o,tutor:l,courses:c,course:h,preview:s,courseProgram:u,consultation:v,consultations:f,cart:d,reset:z,notFound:g,myNotifications:H,myData:p,login:m,register:M,emailVerify:w,events:x,event:y,myStationaryEvents:V,myTasks:C,myBookmarks:L,webinars:B,webinar:S,myWebinars:T,packages:P,packageProduct:$,myCertificates:W}=l0;return I.jsxs(c10,{basename:s10,children:[I.jsx(d61,{}),I.jsx(_.Suspense,{fallback:I.jsx(SJ2,{}),children:I.jsxs(r61,{children:[I.jsx(zr,{exact:!0,path:t,component:TJ2}),I.jsx(zr,{exact:!0,path:M,component:OJ2}),I.jsx(zr,{exact:!0,path:m,component:AJ2}),I.jsx(zr,{exact:!0,path:z,component:$J2}),I.jsx(zr,{exact:!0,path:w,component:kJ2}),I.jsx(Hn,{exact:!0,path:o,component:PJ2}),I.jsx(Hn,{exact:!0,path:f,component:FJ2}),I.jsx(Hn,{exact:!0,path:v,component:IJ2}),I.jsx(Hn,{exact:!0,path:l,component:NJ2}),I.jsx(Hn,{exact:!0,path:h,component:RJ2}),I.jsx(Hn,{exact:!0,path:s,component:jJ2}),I.jsx(u61,{exact:!0,path:c,component:DJ2}),I.jsx(Hn,{exact:!0,path:x,component:UJ2}),I.jsx(Hn,{exact:!0,path:y,component:WJ2}),I.jsx(Hn,{exact:!0,path:B,component:qJ2}),I.jsx(Hn,{exact:!0,path:S,component:GJ2}),I.jsx(Hn,{exact:!0,path:P,component:KJ2}),I.jsx(Hn,{exact:!0,path:$,component:YJ2}),I.jsx(Mn,{exact:!0,path:a,component:XJ2}),I.jsx(Mn,{exact:!0,path:C,component:ZJ2}),I.jsx(Mn,{exact:!0,path:L,component:QJ2}),I.jsx(Mn,{exact:!0,path:T,component:o10}),I.jsx(Mn,{exact:!0,path:W,component:l10}),I.jsx(Mn,{exact:!0,path:V,component:JJ2}),I.jsx(Mn,{exact:!0,path:n,component:a10}),I.jsx(Mn,{exact:!0,path:r,component:t10}),I.jsx(Mn,{exact:!0,path:H,component:e10}),I.jsx(Mn,{exact:!0,path:p,component:n10}),I.jsx(Mn,{exact:!0,path:u,component:r10}),I.jsx(Mn,{exact:!0,path:d,component:i10}),I.jsx(zr,{exact:!0,path:g,component:q$}),I.jsx(zr,{exact:!0,path:e,component:EJ2}),I.jsx(zr,{exact:!0,component:q$})]})})]})};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -9394,7 +9394,7 @@ Url: `+Vp(t)),!0)}function Rt0(t,e){return!e||!e.length?!1:Ft0(t).some(function( flex-direction: ${On?"column":"row"}; padding: 0 30px; text-align: ${On?"center":"left"}; -`,f00=({text:t})=>I.jsxs(d00,{children:[I.jsx("div",{children:I.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),I.jsx("div",{children:t?I.jsx(S0.Text,{children:t}):I.jsxs(S0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",I.jsx("br",{}),I.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),g00=_.lazy(()=>n0(()=>import("./ThemeCustomizer-BZWNlf7q.js"),__vite__mapDeps([]))),p00=Om` +`,f00=({text:t})=>I.jsxs(d00,{children:[I.jsx("div",{children:I.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),I.jsx("div",{children:t?I.jsx(S0.Text,{children:t}):I.jsxs(S0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",I.jsx("br",{}),I.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),g00=_.lazy(()=>n0(()=>import("./ThemeCustomizer-Bnmv7G2H.js"),__vite__mapDeps([]))),p00=Om` html, body { margin: 0; padding: 0; diff --git a/assets/index-BLyqPjk_.js b/assets/index-DfSDa3C0.js similarity index 73% rename from assets/index-BLyqPjk_.js rename to assets/index-DfSDa3C0.js index 8eb421ec..962ef0ed 100644 --- a/assets/index-BLyqPjk_.js +++ b/assets/index-DfSDa3C0.js @@ -1,3 +1,3 @@ -import{q as d,i as m,f as p,j as s,T as h,v as x,l as j}from"./index-Bo8UkscO.js";import{C}from"./index-DpPQm32o.js";import{u as f}from"./useFetchCourses-C-CMvnG8.js";import{S}from"./swiper-react-dLA_7gCe.js";import{S as v}from"./swiper-ES8EF7dV.js";import{C as T}from"./CourseCard-B9elZN0z.js";const g=d.div` +import{q as d,i as m,f as p,j as s,T as h,v as x,l as j}from"./index-DdR0U16d.js";import{C}from"./index-DX00fjMM.js";import{u as f}from"./useFetchCourses-CkVD5k4g.js";import{S}from"./swiper-react-BLsnPoYA.js";import{S as v}from"./swiper-8PJkZR9V.js";import{C as T}from"./CourseCard-yGz7Jurs.js";const g=d.div` position: relative; `,H=({titleText:t,params:i,isSlider:a=!0,ctaButton:l,slidesPerView:r=4})=>{const{courses:e,loading:o}=f(i),n=m(),{t:u}=p();return s.jsxs(g,{children:[s.jsxs("div",{className:"header-wrapper",children:[s.jsx(h.Title,{className:"slider-title",level:1,as:"h2",children:s.jsx("strong",{children:t})}),l&&s.jsx(x.Button,{mode:"outline",onClick:()=>n.push(j.courses),children:u("Homepage.AwardedCoursesBtnText")})]}),o&&s.jsx(v,{slidesPerView:r,children:Array.from({length:6}).map((y,c)=>s.jsx(S,{children:s.jsx(T,{})},c))}),!o&&e&&s.jsx(C,{courses:e.data,isSlider:a,slidesPerView:r})]})};export{H as D}; diff --git a/assets/index-BAf4na0h.js b/assets/index-Dpmobw00.js similarity index 95% rename from assets/index-BAf4na0h.js rename to assets/index-Dpmobw00.js index 0ae4312b..101a54f7 100644 --- a/assets/index-BAf4na0h.js +++ b/assets/index-Dpmobw00.js @@ -1,4 +1,4 @@ -import{f as p,j as e,ak as F,T as D,aE as H,r as l,D as j,L as k,l as S,s as C,q as T,w as m,ax as q,n as r,ay as u,az as A,aA as J,aB as G,ai as L,h as R,i as U,Y as w,v as h,J as $,aD as Y,N as K,C as Q,E as V,o as X,aJ as Z}from"./index-Bo8UkscO.js";import{C as b,T as O}from"./index-DXSphz3L.js";import{B as ee}from"./index-XD7REZpG.js";import{a as te}from"./ResponsiveImage-wHQCVyd2.js";import{P as se}from"./PricingCard-DH5RPEzw.js";import{W as ae}from"./index-C0u-ZNcE.js";import{P as oe}from"./index-CsJcOuQH.js";const I=({description:t,title:a})=>{const{t:o}=p();return t?e.jsx(e.Fragment,{children:t&&F(t)!==""&&e.jsxs("section",{className:"with-border",children:[e.jsx(D.Title,{level:4,children:a??o("SectionDescriptionTitle")}),e.jsx(H,{children:t})]})}):null},ie=()=>{const{webinar:t}=l.useContext(j.EscolaLMSContext),{t:a}=p();return t.value?e.jsx(ee,{items:[e.jsx(k,{to:S.home,children:a("Home")}),e.jsx(k,{to:S.webinars,children:a("Menu.Webinars")}),e.jsx(C.Text,{size:"12",children:t.value.name})]}):null},ne=T.div` +import{f as p,j as e,ak as F,T as D,aE as H,r as l,D as j,L as k,l as S,s as C,q as T,w as m,ax as q,n as r,ay as u,az as A,aA as J,aB as G,ai as L,h as R,i as U,Y as w,v as h,J as $,aD as Y,N as K,C as Q,E as V,o as X,aJ as Z}from"./index-DdR0U16d.js";import{C as b,T as O}from"./index-B10JnDDZ.js";import{B as ee}from"./index-CcDf82b6.js";import{a as te}from"./ResponsiveImage-Cj4skSpA.js";import{P as se}from"./PricingCard-CtcAd6qS.js";import{W as ae}from"./index-Bp4z1X_W.js";import{P as oe}from"./index-CGAhkVF0.js";const I=({description:t,title:a})=>{const{t:o}=p();return t?e.jsx(e.Fragment,{children:t&&F(t)!==""&&e.jsxs("section",{className:"with-border",children:[e.jsx(D.Title,{level:4,children:a??o("SectionDescriptionTitle")}),e.jsx(H,{children:t})]})}):null},ie=()=>{const{webinar:t}=l.useContext(j.EscolaLMSContext),{t:a}=p();return t.value?e.jsx(ee,{items:[e.jsx(k,{to:S.home,children:a("Home")}),e.jsx(k,{to:S.webinars,children:a("Menu.Webinars")}),e.jsx(C.Text,{size:"12",children:t.value.name})]}):null},ne=T.div` .webinar-main-info { .image-wrapper { @media (max-width: 991px) { diff --git a/assets/index-Q5z7UDcg.js b/assets/index-DuwnFplQ.js similarity index 97% rename from assets/index-Q5z7UDcg.js rename to assets/index-DuwnFplQ.js index 2011f8ee..80cb04bc 100644 --- a/assets/index-Q5z7UDcg.js +++ b/assets/index-DuwnFplQ.js @@ -1,4 +1,4 @@ -import{q as c,j as s,n as r,r as a,D as x,f as j,i as f,T as v,U as y,cB as u,s as i,l as $}from"./index-Bo8UkscO.js";const k=c.div` +import{q as c,j as s,n as r,r as a,D as x,f as j,i as f,T as v,U as y,cB as u,s as i,l as $}from"./index-DdR0U16d.js";const k=c.div` padding: 11px 6px; background: ${({theme:e})=>e.mode==="dark"?e.dm__cardBackgroundColor:e.white}; border-radius: ${({theme:e})=>e.cardRadius}px; diff --git a/assets/index-C9HI2UVR.js b/assets/index-DzRAdE-w.js similarity index 80% rename from assets/index-C9HI2UVR.js rename to assets/index-DzRAdE-w.js index fed22e47..92e271dd 100644 --- a/assets/index-C9HI2UVR.js +++ b/assets/index-DzRAdE-w.js @@ -1 +1 @@ -import{i as c,f as m,cE as d,j as a,G as x,n as u,L as i,ax as h,aK as j,aL as g,ar as p}from"./index-Bo8UkscO.js";import{a as f}from"./ResponsiveImage-wHQCVyd2.js";import{C}from"./index-PGMEsYK1.js";import{T}from"./index-BlWqUIM7.js";const H=({webinar:s,actions:n,footer:r})=>{const o=c(),{t}=m(),e=s.active_to&&s.deadline&&d(new Date(s.deadline),new Date(s.active_to))||null;return a.jsx(x,{id:s.id,mobile:u,image:a.jsx(i,{to:`/webinar/${s.id}`,"aria-label":s.name,children:s.image_path?a.jsx(f,{path:s.image_path,alt:s.name,srcSizes:[300,600,900]}):a.jsx(C,{})}),title:a.jsx(i,{to:`/webinar/${s.id}`,className:"title",children:a.jsx(h,{level:4,as:"h2",children:s.name})}),tags:a.jsx(T,{tags:s.tags,onTagClick:l=>o.push(`/webinars/?tags[]=${l}`)}),actions:n??a.jsx(a.Fragment,{children:a.jsx(j,{mode:"secondary",onClick:()=>o.push(`/webinar/${s.id}`),children:t("StartNow")})}),footer:r??a.jsx(a.Fragment,{children:!!e&&a.jsx(g,{icon:a.jsx(p,{}),text:`${e} ${t(e===1?"Hour":"Hours")}`})})})};export{H as W}; +import{i as c,f as m,cE as d,j as a,G as x,n as u,L as i,ax as h,aK as j,aL as g,ar as p}from"./index-DdR0U16d.js";import{a as f}from"./ResponsiveImage-Cj4skSpA.js";import{C}from"./index-BhJ-dW2f.js";import{T}from"./index-naIVnHMf.js";const H=({webinar:s,actions:n,footer:r})=>{const o=c(),{t}=m(),e=s.active_to&&s.deadline&&d(new Date(s.deadline),new Date(s.active_to))||null;return a.jsx(x,{id:s.id,mobile:u,image:a.jsx(i,{to:`/webinar/${s.id}`,"aria-label":s.name,children:s.image_path?a.jsx(f,{path:s.image_path,alt:s.name,srcSizes:[300,600,900]}):a.jsx(C,{})}),title:a.jsx(i,{to:`/webinar/${s.id}`,className:"title",children:a.jsx(h,{level:4,as:"h2",children:s.name})}),tags:a.jsx(T,{tags:s.tags,onTagClick:l=>o.push(`/webinars/?tags[]=${l}`)}),actions:n??a.jsx(a.Fragment,{children:a.jsx(j,{mode:"secondary",onClick:()=>o.push(`/webinar/${s.id}`),children:t("StartNow")})}),footer:r??a.jsx(a.Fragment,{children:!!e&&a.jsx(g,{icon:a.jsx(p,{}),text:`${e} ${t(e===1?"Hour":"Hours")}`})})})};export{H as W}; diff --git a/assets/index-B7Mx4ryn.js b/assets/index-GZhcI3y0.js similarity index 69% rename from assets/index-B7Mx4ryn.js rename to assets/index-GZhcI3y0.js index d47c6293..05472c9d 100644 --- a/assets/index-B7Mx4ryn.js +++ b/assets/index-GZhcI3y0.js @@ -1,4 +1,4 @@ -import{q as r,j as t}from"./index-Bo8UkscO.js";const s=r.div` +import{q as r,j as t}from"./index-DdR0U16d.js";const s=r.div` display: flex; justify-content: space-between; width: 100%; diff --git a/assets/index-DLruw0EO.js b/assets/index-HBZ4Cq4Z.js similarity index 99% rename from assets/index-DLruw0EO.js rename to assets/index-HBZ4Cq4Z.js index ea6af306..cf580595 100644 --- a/assets/index-DLruw0EO.js +++ b/assets/index-HBZ4Cq4Z.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/YouTube-BpF0vzzt.js","assets/index-Bo8UkscO.js","assets/index-CNcos34M.css","assets/SoundCloud-CkU7plov.js","assets/Vimeo-WY-FUd0M.js","assets/Mux--EvGN2NU.js","assets/Facebook--OsTad6R.js","assets/Streamable-BYLVRhCs.js","assets/Wistia-Dd1Bmgeq.js","assets/Twitch-DDdFw0Dl.js","assets/DailyMotion-DMJz2WGk.js","assets/Mixcloud-mamucOSG.js","assets/Vidyard-CmM2pCIN.js","assets/Kaltura-DR7uBFBJ.js","assets/FilePlayer-CaMaMR3l.js","assets/Preview-DmcmTCvr.js"] + __vite__mapDeps.viteFileDeps = ["assets/YouTube-o9xncYwP.js","assets/index-DdR0U16d.js","assets/index-CNcos34M.css","assets/SoundCloud-DzIq0Orz.js","assets/Vimeo-vnktG1_V.js","assets/Mux-Dhs7DJdJ.js","assets/Facebook-CK2SCXhZ.js","assets/Streamable-Dxl3nYnq.js","assets/Wistia-ivHECyS1.js","assets/Twitch-Bzp4XZ_L.js","assets/DailyMotion-BtJnVrAa.js","assets/Mixcloud-ZHpNDeck.js","assets/Vidyard-CJHoM7Nl.js","assets/Kaltura-X22AN0tO.js","assets/FilePlayer-DhspKn4R.js","assets/Preview-BDeBr8OM.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var Br=Object.defineProperty;var Ur=(e,i,a)=>i in e?Br(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a;var Ut=(e,i,a)=>(Ur(e,typeof i!="symbol"?i+"":i,a),a),An=(e,i,a)=>{if(!i.has(e))throw TypeError("Cannot "+a)};var j=(e,i,a)=>(An(e,i,"read from private field"),a?a.call(e):i.get(e)),De=(e,i,a)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,a)},Qe=(e,i,a,o)=>(An(e,i,"write to private field"),o?o.call(e,a):i.set(e,a),a);var tn=(e,i,a,o)=>({set _(c){Qe(e,i,c,a)},get _(){return j(e,i,o)}}),Ne=(e,i,a)=>(An(e,i,"access private method"),a);import{d as commonjsGlobal,ci as api,D as react$1,cj as require$$5,r as reactExports,a5 as require$$6$1,a2 as requireLib,j as jsxRuntimeExports,ck as __vitePreload,c as getAugmentedNamespace,cl as propTypesExports,cm as require$$5$1,a as reactDomExports,a3 as require$$3,cn as require$$9,co as clsx,cp as tinyInvariant,a6 as utils$3,cq as require$$2$2,cr as requireContext,aH as provider,S as Spin,cc as require$$0$1,cd as utils$4,cs as require$$2$3,a4 as chromaExports,a9 as require$$1$1}from"./index-Bo8UkscO.js";import{a as warning_1$8}from"./warning-C5gOjCvf.js";import{R as ResponsiveImage}from"./ResponsiveImage-wHQCVyd2.js";var lib$3={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,i,a,o){o===void 0&&(o=a);var c=Object.getOwnPropertyDescriptor(i,a);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(e,o,c)}:function(e,i,a,o){o===void 0&&(o=a),e[o]=i[a]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding$l(i,e,a);return __setModuleDefault$l(i,e),i};Object.defineProperty(lib$3,"__esModule",{value:!0});lib$3.react=API_1=lib$3.API=void 0;var API=__importStar$l(api),API_1=lib$3.API=API,react=__importStar$l(react$1);lib$3.react=react;var OEmbedPlayer={},lib$2={exports:{}},concatMap,hasRequiredConcatMap;function requireConcatMap(){if(hasRequiredConcatMap)return concatMap;hasRequiredConcatMap=1,concatMap=function(i,a){for(var o=[],c=0;c=0&&ge>0){if(o===c)return[he,ge];for(h=[],ee=d.length;te>=0&&!g;)te==he?(h.push(te),he=d.indexOf(o,te+1)):h.length==1?g=[h.pop(),ge]:(_=h.pop(),_=0?he:ge;h.length&&(g=[ee,f])}return g}return balancedMatch}var braceExpansion,hasRequiredBraceExpansion;function requireBraceExpansion(){if(hasRequiredBraceExpansion)return braceExpansion;hasRequiredBraceExpansion=1;var e=requireConcatMap(),i=requireBalancedMatch();braceExpansion=he;var a="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",d="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function _(se){return parseInt(se,10)==se?parseInt(se,10):se.charCodeAt(0)}function ee(se){return se.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(c).split("\\,").join(d).split("\\.").join(h)}function f(se){return se.split(a).join("\\").split(o).join("{").split(c).join("}").split(d).join(",").split(h).join(".")}function g(se){if(!se)return[""];var me=[],ue=i("{","}",se);if(!ue)return se.split(",");var ae=ue.pre,$=ue.body,ie=ue.post,we=ae.split(",");we[we.length-1]+="{"+$+"}";var de=g(ie);return ie.length&&(we[we.length-1]+=de.shift(),we.push.apply(we,de)),me.push.apply(me,we),me}function he(se){return se?(se.substr(0,2)==="{}"&&(se="\\{\\}"+se.substr(2)),q(ee(se),!0).map(f)):[]}function ge(se){return"{"+se+"}"}function te(se){return/^-?0\d/.test(se)}function re(se,me){return se<=me}function be(se,me){return se>=me}function q(se,me){var ue=[],ae=i("{","}",se);if(!ae||/\$$/.test(ae.pre))return[se];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(ae.body),ie=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(ae.body),we=$||ie,de=ae.body.indexOf(",")>=0;if(!we&&!de)return ae.post.match(/,.*\}/)?(se=ae.pre+"{"+ae.body+c+ae.post,q(se)):[se];var m;if(we)m=ae.body.split(/\.\./);else if(m=g(ae.body),m.length===1&&(m=q(m[0],!1).map(ge),m.length===1)){var oe=ae.post.length?q(ae.post,!1):[""];return oe.map(function(ve){return ae.pre+m[0]+ve})}var _e=ae.pre,oe=ae.post.length?q(ae.post,!1):[""],Se;if(we){var Ee=_(m[0]),ye=_(m[1]),je=Math.max(m[0].length,m[1].length),Le=m.length==3?Math.abs(_(m[2])):1,xe=re,Te=ye0){var Pe=new Array(tt+1).join("0");Fe<0?Ke="-"+Pe+Ke.slice(1):Ke=Pe+Ke}}Se.push(Ke)}}else Se=e(m,function(le){return q(le,!1)});for(var ne=0;ne"u"?this.pattern:m,ue(m),_e.nobrace||!/\{(?:(?!\{).)*\}/.test(m)?[m]:a(m)}var me=1024*64,ue=function(m){if(typeof m!="string")throw new TypeError("invalid pattern");if(m.length>me)throw new TypeError("pattern is too long")};re.prototype.parse=$;var ae={};function $(m,_e){ue(m);var oe=this.options;if(m==="**")if(oe.noglobstar)m="*";else return i;if(m==="")return"";var Se="",Ee=!!oe.nocase,ye=!1,je=[],Le=[],xe,Te=!1,Re=-1,Fe=-1,Ke=m.charAt(0)==="."?"":oe.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",tt=this;function Pe(){if(xe){switch(xe){case"*":Se+=d,Ee=!0;break;case"?":Se+=c,Ee=!0;break;default:Se+="\\"+xe;break}tt.debug("clearStateChar %j %j",xe,Se),xe=!1}}for(var ne=0,fe=m.length,b;nei in e?Br(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a;var Ut=(e,i,a)=>(Ur(e,typeof i!="symbol"?i+"":i,a),a),An=(e,i,a)=>{if(!i.has(e))throw TypeError("Cannot "+a)};var j=(e,i,a)=>(An(e,i,"read from private field"),a?a.call(e):i.get(e)),De=(e,i,a)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,a)},Qe=(e,i,a,o)=>(An(e,i,"write to private field"),o?o.call(e,a):i.set(e,a),a);var tn=(e,i,a,o)=>({set _(c){Qe(e,i,c,a)},get _(){return j(e,i,o)}}),Ne=(e,i,a)=>(An(e,i,"access private method"),a);import{d as commonjsGlobal,ci as api,D as react$1,cj as require$$5,r as reactExports,a5 as require$$6$1,a2 as requireLib,j as jsxRuntimeExports,ck as __vitePreload,c as getAugmentedNamespace,cl as propTypesExports,cm as require$$5$1,a as reactDomExports,a3 as require$$3,cn as require$$9,co as clsx,cp as tinyInvariant,a6 as utils$3,cq as require$$2$2,cr as requireContext,aH as provider,S as Spin,cc as require$$0$1,cd as utils$4,cs as require$$2$3,a4 as chromaExports,a9 as require$$1$1}from"./index-DdR0U16d.js";import{a as warning_1$8}from"./warning-Cy01Vo2F.js";import{R as ResponsiveImage}from"./ResponsiveImage-Cj4skSpA.js";var lib$3={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,i,a,o){o===void 0&&(o=a);var c=Object.getOwnPropertyDescriptor(i,a);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(e,o,c)}:function(e,i,a,o){o===void 0&&(o=a),e[o]=i[a]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding$l(i,e,a);return __setModuleDefault$l(i,e),i};Object.defineProperty(lib$3,"__esModule",{value:!0});lib$3.react=API_1=lib$3.API=void 0;var API=__importStar$l(api),API_1=lib$3.API=API,react=__importStar$l(react$1);lib$3.react=react;var OEmbedPlayer={},lib$2={exports:{}},concatMap,hasRequiredConcatMap;function requireConcatMap(){if(hasRequiredConcatMap)return concatMap;hasRequiredConcatMap=1,concatMap=function(i,a){for(var o=[],c=0;c=0&&ge>0){if(o===c)return[he,ge];for(h=[],ee=d.length;te>=0&&!g;)te==he?(h.push(te),he=d.indexOf(o,te+1)):h.length==1?g=[h.pop(),ge]:(_=h.pop(),_=0?he:ge;h.length&&(g=[ee,f])}return g}return balancedMatch}var braceExpansion,hasRequiredBraceExpansion;function requireBraceExpansion(){if(hasRequiredBraceExpansion)return braceExpansion;hasRequiredBraceExpansion=1;var e=requireConcatMap(),i=requireBalancedMatch();braceExpansion=he;var a="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",d="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function _(se){return parseInt(se,10)==se?parseInt(se,10):se.charCodeAt(0)}function ee(se){return se.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(c).split("\\,").join(d).split("\\.").join(h)}function f(se){return se.split(a).join("\\").split(o).join("{").split(c).join("}").split(d).join(",").split(h).join(".")}function g(se){if(!se)return[""];var me=[],ue=i("{","}",se);if(!ue)return se.split(",");var ae=ue.pre,$=ue.body,ie=ue.post,we=ae.split(",");we[we.length-1]+="{"+$+"}";var de=g(ie);return ie.length&&(we[we.length-1]+=de.shift(),we.push.apply(we,de)),me.push.apply(me,we),me}function he(se){return se?(se.substr(0,2)==="{}"&&(se="\\{\\}"+se.substr(2)),q(ee(se),!0).map(f)):[]}function ge(se){return"{"+se+"}"}function te(se){return/^-?0\d/.test(se)}function re(se,me){return se<=me}function be(se,me){return se>=me}function q(se,me){var ue=[],ae=i("{","}",se);if(!ae||/\$$/.test(ae.pre))return[se];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(ae.body),ie=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(ae.body),we=$||ie,de=ae.body.indexOf(",")>=0;if(!we&&!de)return ae.post.match(/,.*\}/)?(se=ae.pre+"{"+ae.body+c+ae.post,q(se)):[se];var m;if(we)m=ae.body.split(/\.\./);else if(m=g(ae.body),m.length===1&&(m=q(m[0],!1).map(ge),m.length===1)){var oe=ae.post.length?q(ae.post,!1):[""];return oe.map(function(ve){return ae.pre+m[0]+ve})}var _e=ae.pre,oe=ae.post.length?q(ae.post,!1):[""],Se;if(we){var Ee=_(m[0]),ye=_(m[1]),je=Math.max(m[0].length,m[1].length),Le=m.length==3?Math.abs(_(m[2])):1,xe=re,Te=ye0){var Pe=new Array(tt+1).join("0");Fe<0?Ke="-"+Pe+Ke.slice(1):Ke=Pe+Ke}}Se.push(Ke)}}else Se=e(m,function(le){return q(le,!1)});for(var ne=0;ne"u"?this.pattern:m,ue(m),_e.nobrace||!/\{(?:(?!\{).)*\}/.test(m)?[m]:a(m)}var me=1024*64,ue=function(m){if(typeof m!="string")throw new TypeError("invalid pattern");if(m.length>me)throw new TypeError("pattern is too long")};re.prototype.parse=$;var ae={};function $(m,_e){ue(m);var oe=this.options;if(m==="**")if(oe.noglobstar)m="*";else return i;if(m==="")return"";var Se="",Ee=!!oe.nocase,ye=!1,je=[],Le=[],xe,Te=!1,Re=-1,Fe=-1,Ke=m.charAt(0)==="."?"":oe.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",tt=this;function Pe(){if(xe){switch(xe){case"*":Se+=d,Ee=!0;break;case"?":Se+=c,Ee=!0;break;default:Se+="\\"+xe;break}tt.debug("clearStateChar %j %j",xe,Se),xe=!1}}for(var ne=0,fe=m.length,b;ne-1;qe--){var Ue=Le[qe],Ze=Se.slice(0,Ue.reStart),it=Se.slice(Ue.reStart,Ue.reEnd-8),Je=Se.slice(Ue.reEnd-8,Ue.reEnd),nt=Se.slice(Ue.reEnd);Je+=nt;var ht=Ze.split("(").length-1,ot=nt;for(ne=0;ne"u"&&(oe=this.partial),this.debug("match",_e,this.pattern),this.comment)return!1;if(this.empty)return _e==="";if(_e==="/"&&oe)return!0;var Se=this.options;e.sep!=="/"&&(_e=_e.split(e.sep).join("/")),_e=_e.split(g),this.debug(this.pattern,"split",_e);var Ee=this.set;this.debug(this.pattern,"set",Ee);var ye,je;for(je=_e.length-1;je>=0&&(ye=_e[je],!ye);je--);for(je=0;je>> no match, partial?`,m,Re,_e,Fe),Re===je))}var tt;if(typeof xe=="string"?(tt=Te===xe,this.debug("string match",xe,Te,tt)):(tt=Te.match(xe),this.debug("pattern match",xe,Te,tt)),!tt)return!1}if(Ee===je&&ye===Le)return!0;if(Ee===je)return oe;if(ye===Le)return Ee===je-1&&m[Ee]==="";throw new Error("wtf?")};function we(m){return m.replace(/\\(.)/g,"$1")}function de(m){return m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return minimatch_1}var axios$1={exports:{}},bind,hasRequiredBind;function requireBind(){return hasRequiredBind||(hasRequiredBind=1,bind=function(i,a){return function(){for(var c=new Array(arguments.length),d=0;d"u"}function c(de){return de!==null&&!o(de)&&de.constructor!==null&&!o(de.constructor)&&typeof de.constructor.isBuffer=="function"&&de.constructor.isBuffer(de)}function d(de){return i.call(de)==="[object ArrayBuffer]"}function h(de){return typeof FormData<"u"&&de instanceof FormData}function _(de){var m;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?m=ArrayBuffer.isView(de):m=de&&de.buffer&&de.buffer instanceof ArrayBuffer,m}function ee(de){return typeof de=="string"}function f(de){return typeof de=="number"}function g(de){return de!==null&&typeof de=="object"}function he(de){if(i.call(de)!=="[object Object]")return!1;var m=Object.getPrototypeOf(de);return m===null||m===Object.prototype}function ge(de){return i.call(de)==="[object Date]"}function te(de){return i.call(de)==="[object File]"}function re(de){return i.call(de)==="[object Blob]"}function be(de){return i.call(de)==="[object Function]"}function q(de){return g(de)&&be(de.pipe)}function se(de){return typeof URLSearchParams<"u"&&de instanceof URLSearchParams}function me(de){return de.trim?de.trim():de.replace(/^\s+|\s+$/g,"")}function ue(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ae(de,m){if(!(de===null||typeof de>"u"))if(typeof de!="object"&&(de=[de]),a(de))for(var _e=0,oe=de.length;_e"u"||(e.isArray(g)?he=he+"[]":g=[g],e.forEach(g,function(te){e.isDate(te)?te=te.toISOString():e.isObject(te)&&(te=JSON.stringify(te)),_.push(i(he)+"="+i(te))}))}),h=_.join("&")}if(h){var ee=o.indexOf("#");ee!==-1&&(o=o.slice(0,ee)),o+=(o.indexOf("?")===-1?"?":"&")+h}return o},buildURL}var InterceptorManager_1,hasRequiredInterceptorManager;function requireInterceptorManager(){if(hasRequiredInterceptorManager)return InterceptorManager_1;hasRequiredInterceptorManager=1;var e=requireUtils();function i(){this.handlers=[]}return i.prototype.use=function(o,c,d){return this.handlers.push({fulfilled:o,rejected:c,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(o){this.handlers[o]&&(this.handlers[o]=null)},i.prototype.forEach=function(o){e.forEach(this.handlers,function(d){d!==null&&o(d)})},InterceptorManager_1=i,InterceptorManager_1}var normalizeHeaderName,hasRequiredNormalizeHeaderName;function requireNormalizeHeaderName(){if(hasRequiredNormalizeHeaderName)return normalizeHeaderName;hasRequiredNormalizeHeaderName=1;var e=requireUtils();return normalizeHeaderName=function(a,o){e.forEach(a,function(d,h){h!==o&&h.toUpperCase()===o.toUpperCase()&&(a[o]=d,delete a[h])})},normalizeHeaderName}var enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(i,a,o,c,d){return i.config=a,o&&(i.code=o),i.request=c,i.response=d,i.isAxiosError=!0,i.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},i}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var e=requireEnhanceError();return createError=function(a,o,c,d,h){var _=new Error(a);return e(_,o,c,d,h)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=requireCreateError();return settle=function(a,o,c){var d=c.config.validateStatus;!c.status||!d||d(c.status)?a(c):o(e("Request failed with status code "+c.status,c.config,null,c.request,c))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=requireUtils();return cookies=e.isStandardBrowserEnv()?function(){return{write:function(o,c,d,h,_,ee){var f=[];f.push(o+"="+encodeURIComponent(c)),e.isNumber(d)&&f.push("expires="+new Date(d).toGMTString()),e.isString(h)&&f.push("path="+h),e.isString(_)&&f.push("domain="+_),ee===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(o){var c=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return c?decodeURIComponent(c[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(i){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(i)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(i,a){return a?i.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):i}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var e=requireIsAbsoluteURL(),i=requireCombineURLs();return buildFullPath=function(o,c){return o&&!e(c)?i(o,c):c},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=requireUtils(),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(o){var c={},d,h,_;return o&&e.forEach(o.split(` @@ -65,7 +65,7 @@ globstar while`,m,Re,_e,Fe,Ke),this.matchOne(m.slice(Re),_e.slice(Fe),oe))return display: block; height: 100%; } -`]))),te=function(q){var se=q.ratio,me=se===void 0?9/16:se,ue=q.className,ae=ue===void 0?"":ue;return(0,_.jsx)(ge,a({className:"wellms-component ".concat(ae)},{children:(0,_.jsx)(g.RatioBox,a({ratio:me},{children:(0,_.jsx)(ee.default,a({},q,{providers:he}))}))}))};e.OEmbedPlayer=te,e.default=(0,f.withTheme)((0,f.default)(e.OEmbedPlayer)(be||(be=i([""],[""]))));var re,be})(OEmbedPlayer);var AudioVideoPlayer={},loadScript=function(i,a,o){var c=document.head||document.getElementsByTagName("head")[0],d=document.createElement("script");typeof a=="function"&&(o=a,a={}),a=a||{},o=o||function(){},d.type=a.type||"text/javascript",d.charset=a.charset||"utf8",d.async="async"in a?!!a.async:!0,d.src=i,a.attrs&&setAttributes(d,a.attrs),a.text&&(d.text=""+a.text);var h="onload"in d?stdOnEnd:ieOnEnd;h(d,o),d.onload||stdOnEnd(d,o),c.appendChild(d)};function setAttributes(e,i){for(var a in i)e.setAttribute(a,i[a])}function stdOnEnd(e,i){e.onload=function(){this.onerror=this.onload=null,i(null,e)},e.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,i){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,e))}}var isMergeableObject=function(i){return isNonNullObject(i)&&!isSpecial(i)};function isNonNullObject(e){return!!e&&typeof e=="object"}function isSpecial(e){var i=Object.prototype.toString.call(e);return i==="[object RegExp]"||i==="[object Date]"||isReactElement(e)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(e){return e.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(e){return Array.isArray(e)?[]:{}}function cloneUnlessOtherwiseSpecified(e,i){return i.clone!==!1&&i.isMergeableObject(e)?deepmerge(emptyTarget(e),e,i):e}function defaultArrayMerge(e,i,a){return e.concat(i).map(function(o){return cloneUnlessOtherwiseSpecified(o,a)})}function getMergeFunction(e,i){if(!i.customMerge)return deepmerge;var a=i.customMerge(e);return typeof a=="function"?a:deepmerge}function getEnumerableOwnPropertySymbols(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(i){return Object.propertyIsEnumerable.call(e,i)}):[]}function getKeys(e){return Object.keys(e).concat(getEnumerableOwnPropertySymbols(e))}function propertyIsOnObject(e,i){try{return i in e}catch{return!1}}function propertyIsUnsafe(e,i){return propertyIsOnObject(e,i)&&!(Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))}function mergeObject(e,i,a){var o={};return a.isMergeableObject(e)&&getKeys(e).forEach(function(c){o[c]=cloneUnlessOtherwiseSpecified(e[c],a)}),getKeys(i).forEach(function(c){propertyIsUnsafe(e,c)||(propertyIsOnObject(e,c)&&a.isMergeableObject(i[c])?o[c]=getMergeFunction(c,a)(e[c],i[c],a):o[c]=cloneUnlessOtherwiseSpecified(i[c],a))}),o}function deepmerge(e,i,a){a=a||{},a.arrayMerge=a.arrayMerge||defaultArrayMerge,a.isMergeableObject=a.isMergeableObject||isMergeableObject,a.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var o=Array.isArray(i),c=Array.isArray(e),d=o===c;return d?o?a.arrayMerge(e,i,a):mergeObject(e,i,a):cloneUnlessOtherwiseSpecified(i,a)}deepmerge.all=function(i,a){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(o,c){return deepmerge(o,c,a)},{})};var deepmerge_1=deepmerge,cjs$5=deepmerge_1,__create$4=Object.create,__defProp$6=Object.defineProperty,__getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__getOwnPropNames$6=Object.getOwnPropertyNames,__getProtoOf$4=Object.getPrototypeOf,__hasOwnProp$6=Object.prototype.hasOwnProperty,__export$6=(e,i)=>{for(var a in i)__defProp$6(e,a,{get:i[a],enumerable:!0})},__copyProps$6=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$6(i))!__hasOwnProp$6.call(e,c)&&c!==a&&__defProp$6(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$6(i,c))||o.enumerable});return e},__toESM$4=(e,i,a)=>(a=e!=null?__create$4(__getProtoOf$4(e)):{},__copyProps$6(i||!e||!e.__esModule?__defProp$6(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$6=e=>__copyProps$6(__defProp$6({},"__esModule",{value:!0}),e),utils_exports={};__export$6(utils_exports,{callPlayer:()=>callPlayer,getConfig:()=>getConfig,getSDK:()=>getSDK,isBlobUrl:()=>isBlobUrl,isMediaStream:()=>isMediaStream,lazy:()=>lazy,omit:()=>omit,parseEndTime:()=>parseEndTime,parseStartTime:()=>parseStartTime,queryString:()=>queryString,randomString:()=>randomString,supportsWebKitPresentationMode:()=>supportsWebKitPresentationMode});var utils$1=__toCommonJS$6(utils_exports),import_react$2=__toESM$4(reactExports),import_load_script=__toESM$4(loadScript),import_deepmerge$1=__toESM$4(cjs$5);const lazy=e=>import_react$2.default.lazy(async()=>{const i=await e();return typeof i.default=="function"?i:i.default}),MATCH_START_QUERY=/[?&#](?:start|t)=([0-9hms]+)/,MATCH_END_QUERY=/[?&#]end=([0-9hms]+)/,MATCH_START_STAMP=/(\d+)(h|m|s)/g,MATCH_NUMERIC=/^\d+$/;function parseTimeParam(e,i){if(e instanceof Array)return;const a=e.match(i);if(a){const o=a[1];if(o.match(MATCH_START_STAMP))return parseTimeString(o);if(MATCH_NUMERIC.test(o))return parseInt(o)}}function parseTimeString(e){let i=0,a=MATCH_START_STAMP.exec(e);for(;a!==null;){const[,o,c]=a;c==="h"&&(i+=parseInt(o,10)*60*60),c==="m"&&(i+=parseInt(o,10)*60),c==="s"&&(i+=parseInt(o,10)),a=MATCH_START_STAMP.exec(e)}return i}function parseStartTime(e){return parseTimeParam(e,MATCH_START_QUERY)}function parseEndTime(e){return parseTimeParam(e,MATCH_END_QUERY)}function randomString(){return Math.random().toString(36).substr(2,5)}function queryString(e){return Object.keys(e).map(i=>`${i}=${e[i]}`).join("&")}function getGlobal(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const requests={},getSDK=function(i,a,o=null,c=()=>!0,d=import_load_script.default){const h=getGlobal(a);return h&&c(h)?Promise.resolve(h):new Promise((_,ee)=>{if(requests[i]){requests[i].push({resolve:_,reject:ee});return}requests[i]=[{resolve:_,reject:ee}];const f=g=>{requests[i].forEach(he=>he.resolve(g))};if(o){const g=window[o];window[o]=function(){g&&g(),f(getGlobal(a))}}d(i,g=>{g?(requests[i].forEach(he=>he.reject(g)),requests[i]=null):o||f(getGlobal(a))})})};function getConfig(e,i){return(0,import_deepmerge$1.default)(i.config,e.config)}function omit(e,...i){const a=[].concat(...i),o={},c=Object.keys(e);for(const d of c)a.indexOf(d)===-1&&(o[d]=e[d]);return o}function callPlayer(e,...i){if(!this.player||!this.player[e]){let a=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(a+="The method was not available"):a+="The player was not available",console.warn(a,"font-weight: bold",""),null}return this.player[e](...i)}function isMediaStream(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function isBlobUrl(e){return/^blob:/.test(e)}function supportsWebKitPresentationMode(e=document.createElement("video")){const i=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&i}function enableStubOn(e){return e}var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__getOwnPropNames$5=Object.getOwnPropertyNames,__hasOwnProp$5=Object.prototype.hasOwnProperty,__export$5=(e,i)=>{for(var a in i)__defProp$5(e,a,{get:i[a],enumerable:!0})},__copyProps$5=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$5(i))!__hasOwnProp$5.call(e,c)&&c!==a&&__defProp$5(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$5(i,c))||o.enumerable});return e},__toCommonJS$5=e=>__copyProps$5(__defProp$5({},"__esModule",{value:!0}),e),patterns_exports={};__export$5(patterns_exports,{AUDIO_EXTENSIONS:()=>AUDIO_EXTENSIONS,DASH_EXTENSIONS:()=>DASH_EXTENSIONS,FLV_EXTENSIONS:()=>FLV_EXTENSIONS,HLS_EXTENSIONS:()=>HLS_EXTENSIONS,MATCH_URL_DAILYMOTION:()=>MATCH_URL_DAILYMOTION,MATCH_URL_FACEBOOK:()=>MATCH_URL_FACEBOOK,MATCH_URL_FACEBOOK_WATCH:()=>MATCH_URL_FACEBOOK_WATCH,MATCH_URL_KALTURA:()=>MATCH_URL_KALTURA,MATCH_URL_MIXCLOUD:()=>MATCH_URL_MIXCLOUD,MATCH_URL_MUX:()=>MATCH_URL_MUX,MATCH_URL_SOUNDCLOUD:()=>MATCH_URL_SOUNDCLOUD,MATCH_URL_STREAMABLE:()=>MATCH_URL_STREAMABLE,MATCH_URL_TWITCH_CHANNEL:()=>MATCH_URL_TWITCH_CHANNEL,MATCH_URL_TWITCH_VIDEO:()=>MATCH_URL_TWITCH_VIDEO,MATCH_URL_VIDYARD:()=>MATCH_URL_VIDYARD,MATCH_URL_VIMEO:()=>MATCH_URL_VIMEO,MATCH_URL_WISTIA:()=>MATCH_URL_WISTIA,MATCH_URL_YOUTUBE:()=>MATCH_URL_YOUTUBE,VIDEO_EXTENSIONS:()=>VIDEO_EXTENSIONS,canPlay:()=>canPlay});var patterns=__toCommonJS$5(patterns_exports),import_utils$3=utils$1;const MATCH_URL_YOUTUBE=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,MATCH_URL_SOUNDCLOUD=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,MATCH_URL_VIMEO=/vimeo\.com\/(?!progressive_redirect).+/,MATCH_URL_MUX=/stream\.mux\.com\/(\w+)/,MATCH_URL_FACEBOOK=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,MATCH_URL_FACEBOOK_WATCH=/^https?:\/\/fb\.watch\/.+$/,MATCH_URL_STREAMABLE=/streamable\.com\/([a-z0-9]+)$/,MATCH_URL_WISTIA=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,MATCH_URL_TWITCH_VIDEO=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,MATCH_URL_TWITCH_CHANNEL=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,MATCH_URL_DAILYMOTION=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,MATCH_URL_MIXCLOUD=/mixcloud\.com\/([^/]+\/[^/]+)/,MATCH_URL_VIDYARD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,MATCH_URL_KALTURA=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,AUDIO_EXTENSIONS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,VIDEO_EXTENSIONS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,HLS_EXTENSIONS=/\.(m3u8)($|\?)/i,DASH_EXTENSIONS=/\.(mpd)($|\?)/i,FLV_EXTENSIONS=/\.(flv)($|\?)/i,canPlayFile=e=>{if(e instanceof Array){for(const i of e)if(typeof i=="string"&&canPlayFile(i)||canPlayFile(i.src))return!0;return!1}return(0,import_utils$3.isMediaStream)(e)||(0,import_utils$3.isBlobUrl)(e)?!0:AUDIO_EXTENSIONS.test(e)||VIDEO_EXTENSIONS.test(e)||HLS_EXTENSIONS.test(e)||DASH_EXTENSIONS.test(e)||FLV_EXTENSIONS.test(e)},canPlay={youtube:e=>e instanceof Array?e.every(i=>MATCH_URL_YOUTUBE.test(i)):MATCH_URL_YOUTUBE.test(e),soundcloud:e=>MATCH_URL_SOUNDCLOUD.test(e)&&!AUDIO_EXTENSIONS.test(e),vimeo:e=>MATCH_URL_VIMEO.test(e)&&!VIDEO_EXTENSIONS.test(e)&&!HLS_EXTENSIONS.test(e),mux:e=>MATCH_URL_MUX.test(e),facebook:e=>MATCH_URL_FACEBOOK.test(e)||MATCH_URL_FACEBOOK_WATCH.test(e),streamable:e=>MATCH_URL_STREAMABLE.test(e),wistia:e=>MATCH_URL_WISTIA.test(e),twitch:e=>MATCH_URL_TWITCH_VIDEO.test(e)||MATCH_URL_TWITCH_CHANNEL.test(e),dailymotion:e=>MATCH_URL_DAILYMOTION.test(e),mixcloud:e=>MATCH_URL_MIXCLOUD.test(e),vidyard:e=>MATCH_URL_VIDYARD.test(e),kaltura:e=>MATCH_URL_KALTURA.test(e),file:canPlayFile};var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__getOwnPropNames$4=Object.getOwnPropertyNames,__hasOwnProp$4=Object.prototype.hasOwnProperty,__export$4=(e,i)=>{for(var a in i)__defProp$4(e,a,{get:i[a],enumerable:!0})},__copyProps$4=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$4(i))!__hasOwnProp$4.call(e,c)&&c!==a&&__defProp$4(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$4(i,c))||o.enumerable});return e},__toCommonJS$4=e=>__copyProps$4(__defProp$4({},"__esModule",{value:!0}),e),players_exports={};__export$4(players_exports,{default:()=>players_default});var players=__toCommonJS$4(players_exports),import_utils$2=utils$1,import_patterns=patterns,players_default=[{key:"youtube",name:"YouTube",canPlay:import_patterns.canPlay.youtube,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./YouTube-BpF0vzzt.js").then(e=>e.Y),__vite__mapDeps([0,1,2])))},{key:"soundcloud",name:"SoundCloud",canPlay:import_patterns.canPlay.soundcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./SoundCloud-CkU7plov.js").then(e=>e.S),__vite__mapDeps([3,1,2])))},{key:"vimeo",name:"Vimeo",canPlay:import_patterns.canPlay.vimeo,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vimeo-WY-FUd0M.js").then(e=>e.V),__vite__mapDeps([4,1,2])))},{key:"mux",name:"Mux",canPlay:import_patterns.canPlay.mux,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mux--EvGN2NU.js").then(e=>e.M),__vite__mapDeps([5,1,2])))},{key:"facebook",name:"Facebook",canPlay:import_patterns.canPlay.facebook,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Facebook--OsTad6R.js").then(e=>e.F),__vite__mapDeps([6,1,2])))},{key:"streamable",name:"Streamable",canPlay:import_patterns.canPlay.streamable,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Streamable-BYLVRhCs.js").then(e=>e.S),__vite__mapDeps([7,1,2])))},{key:"wistia",name:"Wistia",canPlay:import_patterns.canPlay.wistia,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Wistia-Dd1Bmgeq.js").then(e=>e.W),__vite__mapDeps([8,1,2])))},{key:"twitch",name:"Twitch",canPlay:import_patterns.canPlay.twitch,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Twitch-DDdFw0Dl.js").then(e=>e.T),__vite__mapDeps([9,1,2])))},{key:"dailymotion",name:"DailyMotion",canPlay:import_patterns.canPlay.dailymotion,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./DailyMotion-DMJz2WGk.js").then(e=>e.D),__vite__mapDeps([10,1,2])))},{key:"mixcloud",name:"Mixcloud",canPlay:import_patterns.canPlay.mixcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mixcloud-mamucOSG.js").then(e=>e.M),__vite__mapDeps([11,1,2])))},{key:"vidyard",name:"Vidyard",canPlay:import_patterns.canPlay.vidyard,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vidyard-CmM2pCIN.js").then(e=>e.V),__vite__mapDeps([12,1,2])))},{key:"kaltura",name:"Kaltura",canPlay:import_patterns.canPlay.kaltura,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Kaltura-DR7uBFBJ.js").then(e=>e.K),__vite__mapDeps([13,1,2])))},{key:"file",name:"FilePlayer",canPlay:import_patterns.canPlay.file,canEnablePIP:e=>import_patterns.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,import_utils$2.supportsWebKitPresentationMode)())&&!import_patterns.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./FilePlayer-CaMaMR3l.js").then(e=>e.F),__vite__mapDeps([14,1,2])))}],safeIsNaN=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function isEqual(e,i){return!!(e===i||safeIsNaN(e)&&safeIsNaN(i))}function areInputsEqual(e,i){if(e.length!==i.length)return!1;for(var a=0;a{for(var a in i)__defProp$3(e,a,{get:i[a],enumerable:!0})},__copyProps$3=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$3(i))!__hasOwnProp$3.call(e,c)&&c!==a&&__defProp$3(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$3(i,c))||o.enumerable});return e},__toESM$3=(e,i,a)=>(a=e!=null?__create$3(__getProtoOf$3(e)):{},__copyProps$3(i||!e||!e.__esModule?__defProp$3(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$3=e=>__copyProps$3(__defProp$3({},"__esModule",{value:!0}),e),props_exports={};__export$3(props_exports,{defaultProps:()=>defaultProps,propTypes:()=>propTypes$1});var props=__toCommonJS$3(props_exports),import_prop_types=__toESM$3(propTypesExports);const{string,bool,number,array,oneOfType,shape,object,func,node}=import_prop_types.default,propTypes$1={url:oneOfType([string,array,object]),playing:bool,loop:bool,controls:bool,volume:number,muted:bool,playbackRate:number,width:oneOfType([string,number]),height:oneOfType([string,number]),style:object,progressInterval:number,playsinline:bool,pip:bool,stopOnUnmount:bool,light:oneOfType([bool,string,object]),playIcon:node,previewTabIndex:number,previewAriaLabel:string,fallback:node,oEmbedUrl:string,wrapper:oneOfType([string,func,shape({render:func.isRequired})]),config:shape({soundcloud:shape({options:object}),youtube:shape({playerVars:object,embedOptions:object,onUnstarted:func}),facebook:shape({appId:string,version:string,playerId:string,attributes:object}),dailymotion:shape({params:object}),vimeo:shape({playerOptions:object,title:string}),mux:shape({attributes:object,version:string}),file:shape({attributes:object,tracks:array,forceVideo:bool,forceAudio:bool,forceHLS:bool,forceSafariHLS:bool,forceDisableHls:bool,forceDASH:bool,forceFLV:bool,hlsOptions:object,hlsVersion:string,dashVersion:string,flvVersion:string}),wistia:shape({options:object,playerId:string,customControls:array}),mixcloud:shape({options:object}),twitch:shape({options:object,playerId:string}),vidyard:shape({options:object})}),onReady:func,onStart:func,onPlay:func,onPause:func,onBuffer:func,onBufferEnd:func,onEnded:func,onError:func,onDuration:func,onSeek:func,onPlaybackRateChange:func,onPlaybackQualityChange:func,onProgress:func,onClickPreview:func,onEnablePIP:func,onDisablePIP:func},noop=()=>{},defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:noop},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:noop,onStart:noop,onPlay:noop,onPause:noop,onBuffer:noop,onBufferEnd:noop,onEnded:noop,onError:noop,onDuration:noop,onSeek:noop,onPlaybackRateChange:noop,onPlaybackQualityChange:noop,onProgress:noop,onClickPreview:noop,onEnablePIP:noop,onDisablePIP:noop};var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__defNormalProp$1=(e,i,a)=>i in e?__defProp$2(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$2=(e,i)=>{for(var a in i)__defProp$2(e,a,{get:i[a],enumerable:!0})},__copyProps$2=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$2(i))!__hasOwnProp$2.call(e,c)&&c!==a&&__defProp$2(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$2(i,c))||o.enumerable});return e},__toESM$2=(e,i,a)=>(a=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(i||!e||!e.__esModule?__defProp$2(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$2=e=>__copyProps$2(__defProp$2({},"__esModule",{value:!0}),e),__publicField$1=(e,i,a)=>(__defNormalProp$1(e,typeof i!="symbol"?i+"":i,a),a),Player_exports={};__export$2(Player_exports,{default:()=>Player});var Player_1=__toCommonJS$2(Player_exports),import_react$1=__toESM$2(reactExports),import_react_fast_compare$1=__toESM$2(reactFastCompare),import_props$1=props,import_utils$1=utils$1;const SEEK_ON_PLAY_EXPIRY=5e3;class Player extends import_react$1.Component{constructor(){super(...arguments),__publicField$1(this,"mounted",!1),__publicField$1(this,"isReady",!1),__publicField$1(this,"isPlaying",!1),__publicField$1(this,"isLoading",!0),__publicField$1(this,"loadOnReady",null),__publicField$1(this,"startOnPlay",!0),__publicField$1(this,"seekOnPlay",null),__publicField$1(this,"onDurationCalled",!1),__publicField$1(this,"handlePlayerMount",i=>{if(this.player){this.progress();return}this.player=i,this.player.load(this.props.url),this.progress()}),__publicField$1(this,"getInternalPlayer",i=>this.player?this.player[i]:null),__publicField$1(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const i=this.getCurrentTime()||0,a=this.getSecondsLoaded(),o=this.getDuration();if(o){const c={playedSeconds:i,played:i/o};a!==null&&(c.loadedSeconds=a,c.loaded=a/o),(c.playedSeconds!==this.prevPlayed||c.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(c),this.prevPlayed=c.playedSeconds,this.prevLoaded=c.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),__publicField$1(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:i,playing:a,volume:o,muted:c}=this.props;i(),!c&&o!==null&&this.player.setVolume(o),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):a&&this.player.play(),this.handleDurationCheck()}),__publicField$1(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:i,onPlay:a,playbackRate:o}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&o!==1&&this.player.setPlaybackRate(o),i(),this.startOnPlay=!1),a(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),__publicField$1(this,"handlePause",i=>{this.isPlaying=!1,this.isLoading||this.props.onPause(i)}),__publicField$1(this,"handleEnded",()=>{const{activePlayer:i,loop:a,onEnded:o}=this.props;i.loopOnEnded&&a&&this.seekTo(0),a||(this.isPlaying=!1,o())}),__publicField$1(this,"handleError",(...i)=>{this.isLoading=!1,this.props.onError(...i)}),__publicField$1(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const i=this.getDuration();i?this.onDurationCalled||(this.props.onDuration(i),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),__publicField$1(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(i){if(!this.player)return;const{url:a,playing:o,volume:c,muted:d,playbackRate:h,pip:_,loop:ee,activePlayer:f,disableDeferredLoading:g}=this.props;if(!(0,import_react_fast_compare$1.default)(i.url,a)){if(this.isLoading&&!f.forceLoad&&!g&&!(0,import_utils$1.isMediaStream)(a)){console.warn(`ReactPlayer: the attempt to load ${a} is being deferred until the player has loaded`),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!i.playing&&o&&!this.isPlaying&&this.player.play(),i.playing&&!o&&this.isPlaying&&this.player.pause(),!i.pip&&_&&this.player.enablePIP&&this.player.enablePIP(),i.pip&&!_&&this.player.disablePIP&&this.player.disablePIP(),i.volume!==c&&c!==null&&this.player.setVolume(c),i.muted!==d&&(d?this.player.mute():(this.player.unmute(),c!==null&&setTimeout(()=>this.player.setVolume(c)))),i.playbackRate!==h&&this.player.setPlaybackRate&&this.player.setPlaybackRate(h),i.loop!==ee&&this.player.setLoop&&this.player.setLoop(ee)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(i,a,o){if(!this.isReady){i!==0&&(this.seekOnPlay=i,setTimeout(()=>{this.seekOnPlay=null},SEEK_ON_PLAY_EXPIRY));return}if(a?a==="fraction":i>0&&i<1){const d=this.player.getDuration();if(!d){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(d*i,o);return}this.player.seekTo(i,o)}render(){const i=this.props.activePlayer;return i?import_react$1.default.createElement(i,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}__publicField$1(Player,"displayName","Player");__publicField$1(Player,"propTypes",import_props$1.propTypes);__publicField$1(Player,"defaultProps",import_props$1.defaultProps);var __create$1=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf$1=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__defNormalProp=(e,i,a)=>i in e?__defProp$1(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$1=(e,i)=>{for(var a in i)__defProp$1(e,a,{get:i[a],enumerable:!0})},__copyProps$1=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$1(i))!__hasOwnProp$1.call(e,c)&&c!==a&&__defProp$1(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$1(i,c))||o.enumerable});return e},__toESM$1=(e,i,a)=>(a=e!=null?__create$1(__getProtoOf$1(e)):{},__copyProps$1(i||!e||!e.__esModule?__defProp$1(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$1=e=>__copyProps$1(__defProp$1({},"__esModule",{value:!0}),e),__publicField=(e,i,a)=>(__defNormalProp(e,typeof i!="symbol"?i+"":i,a),a),ReactPlayer_exports={};__export$1(ReactPlayer_exports,{createReactPlayer:()=>createReactPlayer});var ReactPlayer=__toCommonJS$1(ReactPlayer_exports),import_react=__toESM$1(reactExports),import_deepmerge=__toESM$1(cjs$5),import_memoize_one=__toESM$1(require$$2$1),import_react_fast_compare=__toESM$1(reactFastCompare),import_props=props,import_utils=utils$1,import_Player=__toESM$1(Player_1);const Preview=(0,import_utils.lazy)(()=>__vitePreload(()=>import("./Preview-DmcmTCvr.js").then(e=>e.P),__vite__mapDeps([15,1,2]))),IS_BROWSER=typeof window<"u"&&window.document&&typeof document<"u",IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(import_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?import_react.Suspense:()=>null,customPlayers=[],createReactPlayer=(e,i)=>{var a;return a=class extends import_react.Component{constructor(){super(...arguments),__publicField(this,"state",{showPreview:!!this.props.light}),__publicField(this,"references",{wrapper:o=>{this.wrapper=o},player:o=>{this.player=o}}),__publicField(this,"handleClickPreview",o=>{this.setState({showPreview:!1}),this.props.onClickPreview(o)}),__publicField(this,"showPreview",()=>{this.setState({showPreview:!0})}),__publicField(this,"getDuration",()=>this.player?this.player.getDuration():null),__publicField(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),__publicField(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),__publicField(this,"getInternalPlayer",(o="player")=>this.player?this.player.getInternalPlayer(o):null),__publicField(this,"seekTo",(o,c,d)=>{if(!this.player)return null;this.player.seekTo(o,c,d)}),__publicField(this,"handleReady",()=>{this.props.onReady(this)}),__publicField(this,"getActivePlayer",(0,import_memoize_one.default)(o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return c;return i||null})),__publicField(this,"getConfig",(0,import_memoize_one.default)((o,c)=>{const{config:d}=this.props;return import_deepmerge.default.all([import_props.defaultProps.config,import_props.defaultProps.config[c]||{},d,d[c]||{}])})),__publicField(this,"getAttributes",(0,import_memoize_one.default)(o=>(0,import_utils.omit)(this.props,SUPPORTED_PROPS))),__publicField(this,"renderActivePlayer",o=>{if(!o)return null;const c=this.getActivePlayer(o);if(!c)return null;const d=this.getConfig(o,c.key);return import_react.default.createElement(import_Player.default,{...this.props,key:c.key,ref:this.references.player,config:d,activePlayer:c.lazyPlayer||c,onReady:this.handleReady})})}shouldComponentUpdate(o,c){return!(0,import_react_fast_compare.default)(this.props,o)||!(0,import_react_fast_compare.default)(this.state,c)}componentDidUpdate(o){const{light:c}=this.props;!o.light&&c&&this.setState({showPreview:!0}),o.light&&!c&&this.setState({showPreview:!1})}renderPreview(o){if(!o)return null;const{light:c,playIcon:d,previewTabIndex:h,oEmbedUrl:_,previewAriaLabel:ee}=this.props;return import_react.default.createElement(Preview,{url:o,light:c,playIcon:d,previewTabIndex:h,previewAriaLabel:ee,oEmbedUrl:_,onClick:this.handleClickPreview})}render(){const{url:o,style:c,width:d,height:h,fallback:_,wrapper:ee}=this.props,{showPreview:f}=this.state,g=this.getAttributes(o),he=typeof ee=="string"?this.references.wrapper:void 0;return import_react.default.createElement(ee,{ref:he,style:{...c,width:d,height:h},...g},import_react.default.createElement(UniversalSuspense,{fallback:_},f?this.renderPreview(o):this.renderActivePlayer(o)))}},__publicField(a,"displayName","ReactPlayer"),__publicField(a,"propTypes",import_props.propTypes),__publicField(a,"defaultProps",import_props.defaultProps),__publicField(a,"addCustomPlayer",o=>{customPlayers.push(o)}),__publicField(a,"removeCustomPlayers",()=>{customPlayers.length=0}),__publicField(a,"canPlay",o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return!0;return!1}),__publicField(a,"canEnablePIP",o=>{for(const c of[...customPlayers,...e])if(c.canEnablePIP&&c.canEnablePIP(o))return!0;return!1}),a};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,i)=>{for(var a in i)__defProp(e,a,{get:i[a],enumerable:!0})},__copyProps=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames(i))!__hasOwnProp.call(e,c)&&c!==a&&__defProp(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc(i,c))||o.enumerable});return e},__toESM=(e,i,a)=>(a=e!=null?__create(__getProtoOf(e)):{},__copyProps(i||!e||!e.__esModule?__defProp(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),src_exports={};__export(src_exports,{default:()=>src_default});var lib$1=__toCommonJS(src_exports),import_players=__toESM(players),import_ReactPlayer=ReactPlayer;const fallback=import_players.default[import_players.default.length-1];var src_default=(0,import_ReactPlayer.createReactPlayer)(import_players.default,fallback);const methodMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],nativeAPI=(()=>{const e=methodMap[0],i={};for(const a of methodMap)if((a==null?void 0:a[1])in document){for(const[c,d]of a.entries())i[e[c]]=d;return i}return!1})(),eventNameMap={change:nativeAPI.fullscreenchange,error:nativeAPI.fullscreenerror};let screenfull={request(e=document.documentElement,i){return new Promise((a,o)=>{const c=()=>{screenfull.off("change",c),a()};screenfull.on("change",c);const d=e[nativeAPI.requestFullscreen](i);d instanceof Promise&&d.then(c).catch(o)})},exit(){return new Promise((e,i)=>{if(!screenfull.isFullscreen){e();return}const a=()=>{screenfull.off("change",a),e()};screenfull.on("change",a);const o=document[nativeAPI.exitFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},toggle(e,i){return screenfull.isFullscreen?screenfull.exit():screenfull.request(e,i)},onchange(e){screenfull.on("change",e)},onerror(e){screenfull.on("error",e)},on(e,i){const a=eventNameMap[e];a&&document.addEventListener(a,i,!1)},off(e,i){const a=eventNameMap[e];a&&document.removeEventListener(a,i,!1)},raw:nativeAPI};Object.defineProperties(screenfull,{isFullscreen:{get:()=>!!document[nativeAPI.fullscreenElement]},element:{enumerable:!0,get:()=>document[nativeAPI.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[nativeAPI.fullscreenEnabled]}});nativeAPI||(screenfull={isEnabled:!1});const screenfull$1=screenfull,screenfull$2=Object.freeze(Object.defineProperty({__proto__:null,default:screenfull$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(screenfull$2);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(Re,Fe){return Object.defineProperty?Object.defineProperty(Re,"raw",{value:Fe}):Re.raw=Fe,Re},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(Re){for(var Fe,Ke=1,tt=arguments.length;Ke{for(var a in i)__defProp$6(e,a,{get:i[a],enumerable:!0})},__copyProps$6=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$6(i))!__hasOwnProp$6.call(e,c)&&c!==a&&__defProp$6(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$6(i,c))||o.enumerable});return e},__toESM$4=(e,i,a)=>(a=e!=null?__create$4(__getProtoOf$4(e)):{},__copyProps$6(i||!e||!e.__esModule?__defProp$6(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$6=e=>__copyProps$6(__defProp$6({},"__esModule",{value:!0}),e),utils_exports={};__export$6(utils_exports,{callPlayer:()=>callPlayer,getConfig:()=>getConfig,getSDK:()=>getSDK,isBlobUrl:()=>isBlobUrl,isMediaStream:()=>isMediaStream,lazy:()=>lazy,omit:()=>omit,parseEndTime:()=>parseEndTime,parseStartTime:()=>parseStartTime,queryString:()=>queryString,randomString:()=>randomString,supportsWebKitPresentationMode:()=>supportsWebKitPresentationMode});var utils$1=__toCommonJS$6(utils_exports),import_react$2=__toESM$4(reactExports),import_load_script=__toESM$4(loadScript),import_deepmerge$1=__toESM$4(cjs$5);const lazy=e=>import_react$2.default.lazy(async()=>{const i=await e();return typeof i.default=="function"?i:i.default}),MATCH_START_QUERY=/[?&#](?:start|t)=([0-9hms]+)/,MATCH_END_QUERY=/[?&#]end=([0-9hms]+)/,MATCH_START_STAMP=/(\d+)(h|m|s)/g,MATCH_NUMERIC=/^\d+$/;function parseTimeParam(e,i){if(e instanceof Array)return;const a=e.match(i);if(a){const o=a[1];if(o.match(MATCH_START_STAMP))return parseTimeString(o);if(MATCH_NUMERIC.test(o))return parseInt(o)}}function parseTimeString(e){let i=0,a=MATCH_START_STAMP.exec(e);for(;a!==null;){const[,o,c]=a;c==="h"&&(i+=parseInt(o,10)*60*60),c==="m"&&(i+=parseInt(o,10)*60),c==="s"&&(i+=parseInt(o,10)),a=MATCH_START_STAMP.exec(e)}return i}function parseStartTime(e){return parseTimeParam(e,MATCH_START_QUERY)}function parseEndTime(e){return parseTimeParam(e,MATCH_END_QUERY)}function randomString(){return Math.random().toString(36).substr(2,5)}function queryString(e){return Object.keys(e).map(i=>`${i}=${e[i]}`).join("&")}function getGlobal(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const requests={},getSDK=function(i,a,o=null,c=()=>!0,d=import_load_script.default){const h=getGlobal(a);return h&&c(h)?Promise.resolve(h):new Promise((_,ee)=>{if(requests[i]){requests[i].push({resolve:_,reject:ee});return}requests[i]=[{resolve:_,reject:ee}];const f=g=>{requests[i].forEach(he=>he.resolve(g))};if(o){const g=window[o];window[o]=function(){g&&g(),f(getGlobal(a))}}d(i,g=>{g?(requests[i].forEach(he=>he.reject(g)),requests[i]=null):o||f(getGlobal(a))})})};function getConfig(e,i){return(0,import_deepmerge$1.default)(i.config,e.config)}function omit(e,...i){const a=[].concat(...i),o={},c=Object.keys(e);for(const d of c)a.indexOf(d)===-1&&(o[d]=e[d]);return o}function callPlayer(e,...i){if(!this.player||!this.player[e]){let a=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(a+="The method was not available"):a+="The player was not available",console.warn(a,"font-weight: bold",""),null}return this.player[e](...i)}function isMediaStream(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function isBlobUrl(e){return/^blob:/.test(e)}function supportsWebKitPresentationMode(e=document.createElement("video")){const i=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&i}function enableStubOn(e){return e}var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__getOwnPropNames$5=Object.getOwnPropertyNames,__hasOwnProp$5=Object.prototype.hasOwnProperty,__export$5=(e,i)=>{for(var a in i)__defProp$5(e,a,{get:i[a],enumerable:!0})},__copyProps$5=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$5(i))!__hasOwnProp$5.call(e,c)&&c!==a&&__defProp$5(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$5(i,c))||o.enumerable});return e},__toCommonJS$5=e=>__copyProps$5(__defProp$5({},"__esModule",{value:!0}),e),patterns_exports={};__export$5(patterns_exports,{AUDIO_EXTENSIONS:()=>AUDIO_EXTENSIONS,DASH_EXTENSIONS:()=>DASH_EXTENSIONS,FLV_EXTENSIONS:()=>FLV_EXTENSIONS,HLS_EXTENSIONS:()=>HLS_EXTENSIONS,MATCH_URL_DAILYMOTION:()=>MATCH_URL_DAILYMOTION,MATCH_URL_FACEBOOK:()=>MATCH_URL_FACEBOOK,MATCH_URL_FACEBOOK_WATCH:()=>MATCH_URL_FACEBOOK_WATCH,MATCH_URL_KALTURA:()=>MATCH_URL_KALTURA,MATCH_URL_MIXCLOUD:()=>MATCH_URL_MIXCLOUD,MATCH_URL_MUX:()=>MATCH_URL_MUX,MATCH_URL_SOUNDCLOUD:()=>MATCH_URL_SOUNDCLOUD,MATCH_URL_STREAMABLE:()=>MATCH_URL_STREAMABLE,MATCH_URL_TWITCH_CHANNEL:()=>MATCH_URL_TWITCH_CHANNEL,MATCH_URL_TWITCH_VIDEO:()=>MATCH_URL_TWITCH_VIDEO,MATCH_URL_VIDYARD:()=>MATCH_URL_VIDYARD,MATCH_URL_VIMEO:()=>MATCH_URL_VIMEO,MATCH_URL_WISTIA:()=>MATCH_URL_WISTIA,MATCH_URL_YOUTUBE:()=>MATCH_URL_YOUTUBE,VIDEO_EXTENSIONS:()=>VIDEO_EXTENSIONS,canPlay:()=>canPlay});var patterns=__toCommonJS$5(patterns_exports),import_utils$3=utils$1;const MATCH_URL_YOUTUBE=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,MATCH_URL_SOUNDCLOUD=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,MATCH_URL_VIMEO=/vimeo\.com\/(?!progressive_redirect).+/,MATCH_URL_MUX=/stream\.mux\.com\/(\w+)/,MATCH_URL_FACEBOOK=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,MATCH_URL_FACEBOOK_WATCH=/^https?:\/\/fb\.watch\/.+$/,MATCH_URL_STREAMABLE=/streamable\.com\/([a-z0-9]+)$/,MATCH_URL_WISTIA=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,MATCH_URL_TWITCH_VIDEO=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,MATCH_URL_TWITCH_CHANNEL=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,MATCH_URL_DAILYMOTION=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,MATCH_URL_MIXCLOUD=/mixcloud\.com\/([^/]+\/[^/]+)/,MATCH_URL_VIDYARD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,MATCH_URL_KALTURA=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,AUDIO_EXTENSIONS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,VIDEO_EXTENSIONS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,HLS_EXTENSIONS=/\.(m3u8)($|\?)/i,DASH_EXTENSIONS=/\.(mpd)($|\?)/i,FLV_EXTENSIONS=/\.(flv)($|\?)/i,canPlayFile=e=>{if(e instanceof Array){for(const i of e)if(typeof i=="string"&&canPlayFile(i)||canPlayFile(i.src))return!0;return!1}return(0,import_utils$3.isMediaStream)(e)||(0,import_utils$3.isBlobUrl)(e)?!0:AUDIO_EXTENSIONS.test(e)||VIDEO_EXTENSIONS.test(e)||HLS_EXTENSIONS.test(e)||DASH_EXTENSIONS.test(e)||FLV_EXTENSIONS.test(e)},canPlay={youtube:e=>e instanceof Array?e.every(i=>MATCH_URL_YOUTUBE.test(i)):MATCH_URL_YOUTUBE.test(e),soundcloud:e=>MATCH_URL_SOUNDCLOUD.test(e)&&!AUDIO_EXTENSIONS.test(e),vimeo:e=>MATCH_URL_VIMEO.test(e)&&!VIDEO_EXTENSIONS.test(e)&&!HLS_EXTENSIONS.test(e),mux:e=>MATCH_URL_MUX.test(e),facebook:e=>MATCH_URL_FACEBOOK.test(e)||MATCH_URL_FACEBOOK_WATCH.test(e),streamable:e=>MATCH_URL_STREAMABLE.test(e),wistia:e=>MATCH_URL_WISTIA.test(e),twitch:e=>MATCH_URL_TWITCH_VIDEO.test(e)||MATCH_URL_TWITCH_CHANNEL.test(e),dailymotion:e=>MATCH_URL_DAILYMOTION.test(e),mixcloud:e=>MATCH_URL_MIXCLOUD.test(e),vidyard:e=>MATCH_URL_VIDYARD.test(e),kaltura:e=>MATCH_URL_KALTURA.test(e),file:canPlayFile};var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__getOwnPropNames$4=Object.getOwnPropertyNames,__hasOwnProp$4=Object.prototype.hasOwnProperty,__export$4=(e,i)=>{for(var a in i)__defProp$4(e,a,{get:i[a],enumerable:!0})},__copyProps$4=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$4(i))!__hasOwnProp$4.call(e,c)&&c!==a&&__defProp$4(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$4(i,c))||o.enumerable});return e},__toCommonJS$4=e=>__copyProps$4(__defProp$4({},"__esModule",{value:!0}),e),players_exports={};__export$4(players_exports,{default:()=>players_default});var players=__toCommonJS$4(players_exports),import_utils$2=utils$1,import_patterns=patterns,players_default=[{key:"youtube",name:"YouTube",canPlay:import_patterns.canPlay.youtube,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./YouTube-o9xncYwP.js").then(e=>e.Y),__vite__mapDeps([0,1,2])))},{key:"soundcloud",name:"SoundCloud",canPlay:import_patterns.canPlay.soundcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./SoundCloud-DzIq0Orz.js").then(e=>e.S),__vite__mapDeps([3,1,2])))},{key:"vimeo",name:"Vimeo",canPlay:import_patterns.canPlay.vimeo,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vimeo-vnktG1_V.js").then(e=>e.V),__vite__mapDeps([4,1,2])))},{key:"mux",name:"Mux",canPlay:import_patterns.canPlay.mux,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mux-Dhs7DJdJ.js").then(e=>e.M),__vite__mapDeps([5,1,2])))},{key:"facebook",name:"Facebook",canPlay:import_patterns.canPlay.facebook,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Facebook-CK2SCXhZ.js").then(e=>e.F),__vite__mapDeps([6,1,2])))},{key:"streamable",name:"Streamable",canPlay:import_patterns.canPlay.streamable,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Streamable-Dxl3nYnq.js").then(e=>e.S),__vite__mapDeps([7,1,2])))},{key:"wistia",name:"Wistia",canPlay:import_patterns.canPlay.wistia,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Wistia-ivHECyS1.js").then(e=>e.W),__vite__mapDeps([8,1,2])))},{key:"twitch",name:"Twitch",canPlay:import_patterns.canPlay.twitch,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Twitch-Bzp4XZ_L.js").then(e=>e.T),__vite__mapDeps([9,1,2])))},{key:"dailymotion",name:"DailyMotion",canPlay:import_patterns.canPlay.dailymotion,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./DailyMotion-BtJnVrAa.js").then(e=>e.D),__vite__mapDeps([10,1,2])))},{key:"mixcloud",name:"Mixcloud",canPlay:import_patterns.canPlay.mixcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mixcloud-ZHpNDeck.js").then(e=>e.M),__vite__mapDeps([11,1,2])))},{key:"vidyard",name:"Vidyard",canPlay:import_patterns.canPlay.vidyard,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vidyard-CJHoM7Nl.js").then(e=>e.V),__vite__mapDeps([12,1,2])))},{key:"kaltura",name:"Kaltura",canPlay:import_patterns.canPlay.kaltura,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Kaltura-X22AN0tO.js").then(e=>e.K),__vite__mapDeps([13,1,2])))},{key:"file",name:"FilePlayer",canPlay:import_patterns.canPlay.file,canEnablePIP:e=>import_patterns.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,import_utils$2.supportsWebKitPresentationMode)())&&!import_patterns.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./FilePlayer-DhspKn4R.js").then(e=>e.F),__vite__mapDeps([14,1,2])))}],safeIsNaN=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function isEqual(e,i){return!!(e===i||safeIsNaN(e)&&safeIsNaN(i))}function areInputsEqual(e,i){if(e.length!==i.length)return!1;for(var a=0;a{for(var a in i)__defProp$3(e,a,{get:i[a],enumerable:!0})},__copyProps$3=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$3(i))!__hasOwnProp$3.call(e,c)&&c!==a&&__defProp$3(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$3(i,c))||o.enumerable});return e},__toESM$3=(e,i,a)=>(a=e!=null?__create$3(__getProtoOf$3(e)):{},__copyProps$3(i||!e||!e.__esModule?__defProp$3(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$3=e=>__copyProps$3(__defProp$3({},"__esModule",{value:!0}),e),props_exports={};__export$3(props_exports,{defaultProps:()=>defaultProps,propTypes:()=>propTypes$1});var props=__toCommonJS$3(props_exports),import_prop_types=__toESM$3(propTypesExports);const{string,bool,number,array,oneOfType,shape,object,func,node}=import_prop_types.default,propTypes$1={url:oneOfType([string,array,object]),playing:bool,loop:bool,controls:bool,volume:number,muted:bool,playbackRate:number,width:oneOfType([string,number]),height:oneOfType([string,number]),style:object,progressInterval:number,playsinline:bool,pip:bool,stopOnUnmount:bool,light:oneOfType([bool,string,object]),playIcon:node,previewTabIndex:number,previewAriaLabel:string,fallback:node,oEmbedUrl:string,wrapper:oneOfType([string,func,shape({render:func.isRequired})]),config:shape({soundcloud:shape({options:object}),youtube:shape({playerVars:object,embedOptions:object,onUnstarted:func}),facebook:shape({appId:string,version:string,playerId:string,attributes:object}),dailymotion:shape({params:object}),vimeo:shape({playerOptions:object,title:string}),mux:shape({attributes:object,version:string}),file:shape({attributes:object,tracks:array,forceVideo:bool,forceAudio:bool,forceHLS:bool,forceSafariHLS:bool,forceDisableHls:bool,forceDASH:bool,forceFLV:bool,hlsOptions:object,hlsVersion:string,dashVersion:string,flvVersion:string}),wistia:shape({options:object,playerId:string,customControls:array}),mixcloud:shape({options:object}),twitch:shape({options:object,playerId:string}),vidyard:shape({options:object})}),onReady:func,onStart:func,onPlay:func,onPause:func,onBuffer:func,onBufferEnd:func,onEnded:func,onError:func,onDuration:func,onSeek:func,onPlaybackRateChange:func,onPlaybackQualityChange:func,onProgress:func,onClickPreview:func,onEnablePIP:func,onDisablePIP:func},noop=()=>{},defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:noop},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:noop,onStart:noop,onPlay:noop,onPause:noop,onBuffer:noop,onBufferEnd:noop,onEnded:noop,onError:noop,onDuration:noop,onSeek:noop,onPlaybackRateChange:noop,onPlaybackQualityChange:noop,onProgress:noop,onClickPreview:noop,onEnablePIP:noop,onDisablePIP:noop};var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__defNormalProp$1=(e,i,a)=>i in e?__defProp$2(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$2=(e,i)=>{for(var a in i)__defProp$2(e,a,{get:i[a],enumerable:!0})},__copyProps$2=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$2(i))!__hasOwnProp$2.call(e,c)&&c!==a&&__defProp$2(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$2(i,c))||o.enumerable});return e},__toESM$2=(e,i,a)=>(a=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(i||!e||!e.__esModule?__defProp$2(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$2=e=>__copyProps$2(__defProp$2({},"__esModule",{value:!0}),e),__publicField$1=(e,i,a)=>(__defNormalProp$1(e,typeof i!="symbol"?i+"":i,a),a),Player_exports={};__export$2(Player_exports,{default:()=>Player});var Player_1=__toCommonJS$2(Player_exports),import_react$1=__toESM$2(reactExports),import_react_fast_compare$1=__toESM$2(reactFastCompare),import_props$1=props,import_utils$1=utils$1;const SEEK_ON_PLAY_EXPIRY=5e3;class Player extends import_react$1.Component{constructor(){super(...arguments),__publicField$1(this,"mounted",!1),__publicField$1(this,"isReady",!1),__publicField$1(this,"isPlaying",!1),__publicField$1(this,"isLoading",!0),__publicField$1(this,"loadOnReady",null),__publicField$1(this,"startOnPlay",!0),__publicField$1(this,"seekOnPlay",null),__publicField$1(this,"onDurationCalled",!1),__publicField$1(this,"handlePlayerMount",i=>{if(this.player){this.progress();return}this.player=i,this.player.load(this.props.url),this.progress()}),__publicField$1(this,"getInternalPlayer",i=>this.player?this.player[i]:null),__publicField$1(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const i=this.getCurrentTime()||0,a=this.getSecondsLoaded(),o=this.getDuration();if(o){const c={playedSeconds:i,played:i/o};a!==null&&(c.loadedSeconds=a,c.loaded=a/o),(c.playedSeconds!==this.prevPlayed||c.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(c),this.prevPlayed=c.playedSeconds,this.prevLoaded=c.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),__publicField$1(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:i,playing:a,volume:o,muted:c}=this.props;i(),!c&&o!==null&&this.player.setVolume(o),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):a&&this.player.play(),this.handleDurationCheck()}),__publicField$1(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:i,onPlay:a,playbackRate:o}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&o!==1&&this.player.setPlaybackRate(o),i(),this.startOnPlay=!1),a(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),__publicField$1(this,"handlePause",i=>{this.isPlaying=!1,this.isLoading||this.props.onPause(i)}),__publicField$1(this,"handleEnded",()=>{const{activePlayer:i,loop:a,onEnded:o}=this.props;i.loopOnEnded&&a&&this.seekTo(0),a||(this.isPlaying=!1,o())}),__publicField$1(this,"handleError",(...i)=>{this.isLoading=!1,this.props.onError(...i)}),__publicField$1(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const i=this.getDuration();i?this.onDurationCalled||(this.props.onDuration(i),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),__publicField$1(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(i){if(!this.player)return;const{url:a,playing:o,volume:c,muted:d,playbackRate:h,pip:_,loop:ee,activePlayer:f,disableDeferredLoading:g}=this.props;if(!(0,import_react_fast_compare$1.default)(i.url,a)){if(this.isLoading&&!f.forceLoad&&!g&&!(0,import_utils$1.isMediaStream)(a)){console.warn(`ReactPlayer: the attempt to load ${a} is being deferred until the player has loaded`),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!i.playing&&o&&!this.isPlaying&&this.player.play(),i.playing&&!o&&this.isPlaying&&this.player.pause(),!i.pip&&_&&this.player.enablePIP&&this.player.enablePIP(),i.pip&&!_&&this.player.disablePIP&&this.player.disablePIP(),i.volume!==c&&c!==null&&this.player.setVolume(c),i.muted!==d&&(d?this.player.mute():(this.player.unmute(),c!==null&&setTimeout(()=>this.player.setVolume(c)))),i.playbackRate!==h&&this.player.setPlaybackRate&&this.player.setPlaybackRate(h),i.loop!==ee&&this.player.setLoop&&this.player.setLoop(ee)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(i,a,o){if(!this.isReady){i!==0&&(this.seekOnPlay=i,setTimeout(()=>{this.seekOnPlay=null},SEEK_ON_PLAY_EXPIRY));return}if(a?a==="fraction":i>0&&i<1){const d=this.player.getDuration();if(!d){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(d*i,o);return}this.player.seekTo(i,o)}render(){const i=this.props.activePlayer;return i?import_react$1.default.createElement(i,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}__publicField$1(Player,"displayName","Player");__publicField$1(Player,"propTypes",import_props$1.propTypes);__publicField$1(Player,"defaultProps",import_props$1.defaultProps);var __create$1=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf$1=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__defNormalProp=(e,i,a)=>i in e?__defProp$1(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$1=(e,i)=>{for(var a in i)__defProp$1(e,a,{get:i[a],enumerable:!0})},__copyProps$1=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$1(i))!__hasOwnProp$1.call(e,c)&&c!==a&&__defProp$1(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$1(i,c))||o.enumerable});return e},__toESM$1=(e,i,a)=>(a=e!=null?__create$1(__getProtoOf$1(e)):{},__copyProps$1(i||!e||!e.__esModule?__defProp$1(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$1=e=>__copyProps$1(__defProp$1({},"__esModule",{value:!0}),e),__publicField=(e,i,a)=>(__defNormalProp(e,typeof i!="symbol"?i+"":i,a),a),ReactPlayer_exports={};__export$1(ReactPlayer_exports,{createReactPlayer:()=>createReactPlayer});var ReactPlayer=__toCommonJS$1(ReactPlayer_exports),import_react=__toESM$1(reactExports),import_deepmerge=__toESM$1(cjs$5),import_memoize_one=__toESM$1(require$$2$1),import_react_fast_compare=__toESM$1(reactFastCompare),import_props=props,import_utils=utils$1,import_Player=__toESM$1(Player_1);const Preview=(0,import_utils.lazy)(()=>__vitePreload(()=>import("./Preview-BDeBr8OM.js").then(e=>e.P),__vite__mapDeps([15,1,2]))),IS_BROWSER=typeof window<"u"&&window.document&&typeof document<"u",IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(import_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?import_react.Suspense:()=>null,customPlayers=[],createReactPlayer=(e,i)=>{var a;return a=class extends import_react.Component{constructor(){super(...arguments),__publicField(this,"state",{showPreview:!!this.props.light}),__publicField(this,"references",{wrapper:o=>{this.wrapper=o},player:o=>{this.player=o}}),__publicField(this,"handleClickPreview",o=>{this.setState({showPreview:!1}),this.props.onClickPreview(o)}),__publicField(this,"showPreview",()=>{this.setState({showPreview:!0})}),__publicField(this,"getDuration",()=>this.player?this.player.getDuration():null),__publicField(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),__publicField(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),__publicField(this,"getInternalPlayer",(o="player")=>this.player?this.player.getInternalPlayer(o):null),__publicField(this,"seekTo",(o,c,d)=>{if(!this.player)return null;this.player.seekTo(o,c,d)}),__publicField(this,"handleReady",()=>{this.props.onReady(this)}),__publicField(this,"getActivePlayer",(0,import_memoize_one.default)(o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return c;return i||null})),__publicField(this,"getConfig",(0,import_memoize_one.default)((o,c)=>{const{config:d}=this.props;return import_deepmerge.default.all([import_props.defaultProps.config,import_props.defaultProps.config[c]||{},d,d[c]||{}])})),__publicField(this,"getAttributes",(0,import_memoize_one.default)(o=>(0,import_utils.omit)(this.props,SUPPORTED_PROPS))),__publicField(this,"renderActivePlayer",o=>{if(!o)return null;const c=this.getActivePlayer(o);if(!c)return null;const d=this.getConfig(o,c.key);return import_react.default.createElement(import_Player.default,{...this.props,key:c.key,ref:this.references.player,config:d,activePlayer:c.lazyPlayer||c,onReady:this.handleReady})})}shouldComponentUpdate(o,c){return!(0,import_react_fast_compare.default)(this.props,o)||!(0,import_react_fast_compare.default)(this.state,c)}componentDidUpdate(o){const{light:c}=this.props;!o.light&&c&&this.setState({showPreview:!0}),o.light&&!c&&this.setState({showPreview:!1})}renderPreview(o){if(!o)return null;const{light:c,playIcon:d,previewTabIndex:h,oEmbedUrl:_,previewAriaLabel:ee}=this.props;return import_react.default.createElement(Preview,{url:o,light:c,playIcon:d,previewTabIndex:h,previewAriaLabel:ee,oEmbedUrl:_,onClick:this.handleClickPreview})}render(){const{url:o,style:c,width:d,height:h,fallback:_,wrapper:ee}=this.props,{showPreview:f}=this.state,g=this.getAttributes(o),he=typeof ee=="string"?this.references.wrapper:void 0;return import_react.default.createElement(ee,{ref:he,style:{...c,width:d,height:h},...g},import_react.default.createElement(UniversalSuspense,{fallback:_},f?this.renderPreview(o):this.renderActivePlayer(o)))}},__publicField(a,"displayName","ReactPlayer"),__publicField(a,"propTypes",import_props.propTypes),__publicField(a,"defaultProps",import_props.defaultProps),__publicField(a,"addCustomPlayer",o=>{customPlayers.push(o)}),__publicField(a,"removeCustomPlayers",()=>{customPlayers.length=0}),__publicField(a,"canPlay",o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return!0;return!1}),__publicField(a,"canEnablePIP",o=>{for(const c of[...customPlayers,...e])if(c.canEnablePIP&&c.canEnablePIP(o))return!0;return!1}),a};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,i)=>{for(var a in i)__defProp(e,a,{get:i[a],enumerable:!0})},__copyProps=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames(i))!__hasOwnProp.call(e,c)&&c!==a&&__defProp(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc(i,c))||o.enumerable});return e},__toESM=(e,i,a)=>(a=e!=null?__create(__getProtoOf(e)):{},__copyProps(i||!e||!e.__esModule?__defProp(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),src_exports={};__export(src_exports,{default:()=>src_default});var lib$1=__toCommonJS(src_exports),import_players=__toESM(players),import_ReactPlayer=ReactPlayer;const fallback=import_players.default[import_players.default.length-1];var src_default=(0,import_ReactPlayer.createReactPlayer)(import_players.default,fallback);const methodMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],nativeAPI=(()=>{const e=methodMap[0],i={};for(const a of methodMap)if((a==null?void 0:a[1])in document){for(const[c,d]of a.entries())i[e[c]]=d;return i}return!1})(),eventNameMap={change:nativeAPI.fullscreenchange,error:nativeAPI.fullscreenerror};let screenfull={request(e=document.documentElement,i){return new Promise((a,o)=>{const c=()=>{screenfull.off("change",c),a()};screenfull.on("change",c);const d=e[nativeAPI.requestFullscreen](i);d instanceof Promise&&d.then(c).catch(o)})},exit(){return new Promise((e,i)=>{if(!screenfull.isFullscreen){e();return}const a=()=>{screenfull.off("change",a),e()};screenfull.on("change",a);const o=document[nativeAPI.exitFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},toggle(e,i){return screenfull.isFullscreen?screenfull.exit():screenfull.request(e,i)},onchange(e){screenfull.on("change",e)},onerror(e){screenfull.on("error",e)},on(e,i){const a=eventNameMap[e];a&&document.addEventListener(a,i,!1)},off(e,i){const a=eventNameMap[e];a&&document.removeEventListener(a,i,!1)},raw:nativeAPI};Object.defineProperties(screenfull,{isFullscreen:{get:()=>!!document[nativeAPI.fullscreenElement]},element:{enumerable:!0,get:()=>document[nativeAPI.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[nativeAPI.fullscreenEnabled]}});nativeAPI||(screenfull={isEnabled:!1});const screenfull$1=screenfull,screenfull$2=Object.freeze(Object.defineProperty({__proto__:null,default:screenfull$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(screenfull$2);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(Re,Fe){return Object.defineProperty?Object.defineProperty(Re,"raw",{value:Fe}):Re.raw=Fe,Re},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(Re){for(var Fe,Ke=1,tt=arguments.length;Ke{const{search:t,state:i}=L(),{user:n,socialAuthorize:d}=u.useContext(f.EscolaLMSContext),[m,a]=u.useState("login"),{t:r}=j(),e=R(),o=t.split("?token=")[1],c=i&&i.referrer||t.split("?referrer=")[1]||"/";return o&&(d(o),setTimeout(()=>{e.push(c)},1e3)),!n.loading&&!o&&n.value&&e.push(c),s.jsx(w,{metaTitle:r("LoginAndRegister"),children:s.jsx(F,{children:s.jsx(E,{children:s.jsx(l.Row,{justify:"center",children:s.jsx(l.Col,{md:12,children:m==="login"?s.jsx(S.LoginForm,{onResetPasswordLink:()=>a("forgotPassword"),onRegisterLink:()=>e.push(p.register),mobile:g}):s.jsx(k.ResetPasswordForm,{mobile:g,backToLogin:()=>a("login"),onRegisterLink:()=>e.push(p.register),return_url:"#/reset-password",onFirstStepSuccess:()=>x.success(r("LoginPage.ForgotSuccess")),onFirstStepError:()=>x.error(r("UnexpectedError"))})})})})})})};export{C as default}; +import{z as h,k as L,r as u,h as f,f as j,i as R,j as s,o as w,C as E,w as l,l as p,n as g,A as x}from"./index-DdR0U16d.js";import{A as F,R as k}from"./AuthWrapper-B3tCSxZi.js";var S=h();const C=()=>{const{search:t,state:i}=L(),{user:n,socialAuthorize:d}=u.useContext(f.EscolaLMSContext),[m,a]=u.useState("login"),{t:r}=j(),e=R(),o=t.split("?token=")[1],c=i&&i.referrer||t.split("?referrer=")[1]||"/";return o&&(d(o),setTimeout(()=>{e.push(c)},1e3)),!n.loading&&!o&&n.value&&e.push(c),s.jsx(w,{metaTitle:r("LoginAndRegister"),children:s.jsx(F,{children:s.jsx(E,{children:s.jsx(l.Row,{justify:"center",children:s.jsx(l.Col,{md:12,children:m==="login"?s.jsx(S.LoginForm,{onResetPasswordLink:()=>a("forgotPassword"),onRegisterLink:()=>e.push(p.register),mobile:g}):s.jsx(k.ResetPasswordForm,{mobile:g,backToLogin:()=>a("login"),onRegisterLink:()=>e.push(p.register),return_url:"#/reset-password",onFirstStepSuccess:()=>x.success(r("LoginPage.ForgotSuccess")),onFirstStepError:()=>x.error(r("UnexpectedError"))})})})})})})};export{C as default}; diff --git a/assets/index-B3OxzdAH.js b/assets/index-LMnI0wZb.js similarity index 98% rename from assets/index-B3OxzdAH.js rename to assets/index-LMnI0wZb.js index 3c50dd74..0332b50b 100644 --- a/assets/index-B3OxzdAH.js +++ b/assets/index-LMnI0wZb.js @@ -1,4 +1,4 @@ -import{p as S,q as a,k as P,r as i,h as y,i as z,f as F,j as e,s as v,l as n,o as O,T as k,M as m,v as N,C,w as o,n as q,L as V,x as _,y as $}from"./index-Bo8UkscO.js";var B=S();const D=a.div` +import{p as S,q as a,k as P,r as i,h as y,i as z,f as F,j as e,s as v,l as n,o as O,T as k,M as m,v as N,C,w as o,n as q,L as V,x as _,y as $}from"./index-DdR0U16d.js";var B=S();const D=a.div` padding-top: 100px; padding-bottom: 50px; height: 900px; diff --git a/assets/index-CD24jjkG.js b/assets/index-N9CDV4dI.js similarity index 92% rename from assets/index-CD24jjkG.js rename to assets/index-N9CDV4dI.js index a0d84253..88fa8cb7 100644 --- a/assets/index-CD24jjkG.js +++ b/assets/index-N9CDV4dI.js @@ -1,4 +1,4 @@ -import{b as S,r as i,h as w,k as P,i as k,j as e,q as v,n as d,f as u,T as $,G as _,L as C,ax as T,aK as N,aL as E,U as F,X as L,S as I,w as y,D as H,o as M,C as R}from"./index-Bo8UkscO.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-CnadCGrz.js";import{C as B}from"./index-DzuqAlYx.js";import{F as D,S as O}from"./index-mrm-aJDu.js";import{P as U}from"./index-D6txpOmq.js";import{a as X}from"./ResponsiveImage-wHQCVyd2.js";import{C as z}from"./index-PGMEsYK1.js";import{T as A}from"./index-BlWqUIM7.js";import{C as G}from"./index-rPhH6DdW.js";import"./swiper-react-dLA_7gCe.js";const h=S.createContext({}),b=(s={})=>f.stringify(s),K=({children:s})=>{const{fetchProducts:r,products:a,fetchCategories:t,fetchTags:n}=i.useContext(w.EscolaLMSContext),o=P(),{push:g}=k();i.useEffect(()=>{t(),n()},[]);const[c,x]=i.useState(),m=(l={})=>({page:1,per_page:8,type:"bundle",order_by:"created_at",order:"DESC",...l});return i.useEffect(()=>{g(`${o.pathname}?${b(c)}`)},[c,o.pathname]),i.useEffect(()=>{if(o.search&&o.search.split("?")[1]!==b(c)){const l=f.parse(o.search);x(l),r(l||{})}else r(m(c))},[o.search]),e.jsx(h.Provider,{value:{params:c,setParams:x,packages:a},children:s})},J=({children:s})=>{const r=v("div")` +import{b as S,r as i,h as w,k as P,i as k,j as e,q as v,n as d,f as u,T as $,G as _,L as C,ax as T,aK as N,aL as E,U as F,X as L,S as I,w as y,D as H,o as M,C as R}from"./index-DdR0U16d.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-CTffk5vR.js";import{C as B}from"./index-ibEhBCOW.js";import{F as D,S as O}from"./index-CIgK6KxT.js";import{P as U}from"./index-Bq7IYj2l.js";import{a as X}from"./ResponsiveImage-Cj4skSpA.js";import{C as z}from"./index-BhJ-dW2f.js";import{T as A}from"./index-naIVnHMf.js";import{C as G}from"./index-CtKtIhYW.js";import"./swiper-react-BLsnPoYA.js";const h=S.createContext({}),b=(s={})=>f.stringify(s),K=({children:s})=>{const{fetchProducts:r,products:a,fetchCategories:t,fetchTags:n}=i.useContext(w.EscolaLMSContext),o=P(),{push:g}=k();i.useEffect(()=>{t(),n()},[]);const[c,x]=i.useState(),m=(l={})=>({page:1,per_page:8,type:"bundle",order_by:"created_at",order:"DESC",...l});return i.useEffect(()=>{g(`${o.pathname}?${b(c)}`)},[c,o.pathname]),i.useEffect(()=>{if(o.search&&o.search.split("?")[1]!==b(c)){const l=f.parse(o.search);x(l),r(l||{})}else r(m(c))},[o.search]),e.jsx(h.Provider,{value:{params:c,setParams:x,packages:a},children:s})},J=({children:s})=>{const r=v("div")` background: ${({theme:t})=>t.primaryColor}; padding: ${d?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${d?"100px":"40px"}; diff --git a/assets/index-B7S9LUfx.js b/assets/index-S6SGatYR.js similarity index 55% rename from assets/index-B7S9LUfx.js rename to assets/index-S6SGatYR.js index 1a74b837..be927908 100644 --- a/assets/index-B7S9LUfx.js +++ b/assets/index-S6SGatYR.js @@ -1 +1 @@ -import{aW as i,f as n,i as u,j as s,A as k}from"./index-Bo8UkscO.js";import{P as l}from"./index-lFh4cs_O.js";import"./index-Q5z7UDcg.js";var m=i();const B=()=>{const{t:o}=n(),{push:e}=u();return typeof window<"u"?null:s.jsx(l,{title:o("MyProfilePage.MyBookmarks"),children:s.jsx(m.BookmarkNotes,{onClickBookmark:(r,t,a)=>e(`/course/${r}/${t}/${a}`,null),onDelete:()=>k.success(o("Notifications.Deleted"))})})};export{B as default}; +import{aW as i,f as n,i as u,j as s,A as k}from"./index-DdR0U16d.js";import{P as l}from"./index-BH6C5uk2.js";import"./index-DuwnFplQ.js";var m=i();const B=()=>{const{t:o}=n(),{push:e}=u();return typeof window<"u"?null:s.jsx(l,{title:o("MyProfilePage.MyBookmarks"),children:s.jsx(m.BookmarkNotes,{onClickBookmark:(r,t,a)=>e(`/course/${r}/${t}/${a}`,null),onDelete:()=>k.success(o("Notifications.Deleted"))})})};export{B as default}; diff --git a/assets/index-CuUoUa_j.js b/assets/index-X0IiEboi.js similarity index 97% rename from assets/index-CuUoUa_j.js rename to assets/index-X0IiEboi.js index 8fb86593..47b88f97 100644 --- a/assets/index-CuUoUa_j.js +++ b/assets/index-X0IiEboi.js @@ -1,4 +1,4 @@ -import{b as cn,r as b,h as dn,k as G,i as un,j as r,q as X,n as N,d as h,a5 as pn,a2 as gn,aG as xn,aH as fn,a6 as hn,aI as mn,a4 as bn,a3 as vn,D as J,f as A,X as K,T as wn,S as jn,w as H,o as yn,C as Cn}from"./index-Bo8UkscO.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-CnadCGrz.js";import{F as kn,S as Tn}from"./index-mrm-aJDu.js";import{W as On}from"./index-C9HI2UVR.js";import{P as Pn}from"./index-D6txpOmq.js";import"./swiper-react-dLA_7gCe.js";import"./ResponsiveImage-wHQCVyd2.js";import"./index-PGMEsYK1.js";import"./index-BlWqUIM7.js";const D=cn.createContext({}),I=(i={})=>M.stringify(i),Sn=({children:i})=>{const{fetchWebinars:l,webinars:t,fetchTags:a}=b.useContext(dn.EscolaLMSContext),p=G(),{push:m}=un(),[u,C]=b.useState(),o=(g={})=>({page:1,per_page:8,...g});return b.useEffect(()=>{a()},[a]),b.useEffect(()=>{m(`${p.pathname}?${I(u)}`)},[u,p.pathname]),b.useEffect(()=>{if(p.search&&p.search.split("?")[1]!==I(u)){const g=M.parse(p.search);C(g),l(g||{})}else l(o(u))},[p.search]),r.jsx(D.Provider,{value:{params:u,setParams:C,webinars:t},children:i})},Fn=({children:i})=>{const l=X("div")` +import{b as cn,r as b,h as dn,k as G,i as un,j as r,q as X,n as N,d as h,a5 as pn,a2 as gn,aG as xn,aH as fn,a6 as hn,aI as mn,a4 as bn,a3 as vn,D as J,f as A,X as K,T as wn,S as jn,w as H,o as yn,C as Cn}from"./index-DdR0U16d.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-CTffk5vR.js";import{F as kn,S as Tn}from"./index-CIgK6KxT.js";import{W as On}from"./index-DzRAdE-w.js";import{P as Pn}from"./index-Bq7IYj2l.js";import"./swiper-react-BLsnPoYA.js";import"./ResponsiveImage-Cj4skSpA.js";import"./index-BhJ-dW2f.js";import"./index-naIVnHMf.js";const D=cn.createContext({}),I=(i={})=>M.stringify(i),Sn=({children:i})=>{const{fetchWebinars:l,webinars:t,fetchTags:a}=b.useContext(dn.EscolaLMSContext),p=G(),{push:m}=un(),[u,C]=b.useState(),o=(g={})=>({page:1,per_page:8,...g});return b.useEffect(()=>{a()},[a]),b.useEffect(()=>{m(`${p.pathname}?${I(u)}`)},[u,p.pathname]),b.useEffect(()=>{if(p.search&&p.search.split("?")[1]!==I(u)){const g=M.parse(p.search);C(g),l(g||{})}else l(o(u))},[p.search]),r.jsx(D.Provider,{value:{params:u,setParams:C,webinars:t},children:i})},Fn=({children:i})=>{const l=X("div")` background: ${({theme:a})=>a.primaryColor}; padding: ${N?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${N?"100px":"40px"}; diff --git a/assets/index-BfAY7YVa.js b/assets/index-ZorihLRX.js similarity index 98% rename from assets/index-BfAY7YVa.js rename to assets/index-ZorihLRX.js index 5cc93dcf..d8ff7b59 100644 --- a/assets/index-BfAY7YVa.js +++ b/assets/index-ZorihLRX.js @@ -1,4 +1,4 @@ -import{r as u,D as W,q as O,v as F,f as Q,i as de,W as e1,j as n,Y as Se,s as B,l as se,n as k,X as Me,h as ze,E as Oe,Z as we,J as ne,L as K,a0 as n1,a1 as t1,d as C,a2 as Ae,a3 as ue,a4 as r1,a5 as pe,a6 as s1,a7 as o1,a8 as Z,b as i1,a9 as a1,aa as l1,ab as c1,T as xe,ac as d1,w as L,ad as u1,ae as p1,I as Ze,m as Y,A as x1,af as De,ag as m1,ah as Fe,ai as g1,S as C1,C as Te,o as h1,aj as f1,ak as Le,M as He,x as Re}from"./index-Bo8UkscO.js";import{P as v1}from"./PricingCard-DH5RPEzw.js";import{P as Ge}from"./index-CsJcOuQH.js";import{l as _1,A as j1,_ as b1,P as y1,I as w1,a as T1,O as P1,H as M1}from"./index-DLruw0EO.js";import{B as O1}from"./index-XD7REZpG.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-_0sODp6F.js";import{R as S1,a as L1}from"./ResponsiveImage-wHQCVyd2.js";import{C as H1}from"./index-rPhH6DdW.js";import{P as R1}from"./index-D6txpOmq.js";import{D as I1}from"./index-BLyqPjk_.js";import{S as N1}from"./swiper-ES8EF7dV.js";import{S as B1}from"./swiper-react-dLA_7gCe.js";import{C as V1}from"./index-PGMEsYK1.js";import{S as N}from"./index-ik5KDOYp.js";import"./warning-C5gOjCvf.js";import"./index-DpPQm32o.js";import"./useFetchCourses-C-CMvnG8.js";import"./CourseCard-B9elZN0z.js";const k1=e=>{const[t,r]=u.useState({data:void 0,loaded:!1,loading:!1}),{user:i,fetchCourseProgress:a,courseProgressDetails:o}=u.useContext(W.EscolaLMSContext);return u.useEffect(()=>{o.byId&&o.byId[Number(e)]&&o.byId[Number(e)].value&&r({...t,data:o.byId[Number(e)].value,loaded:!0,loading:!1})},[e,o]),u.useEffect(()=>{i!=null&&i.value&&!i.loading&&!t.loading&&!t.loaded?(r({...t,loading:!0}),a(e).catch(()=>r({...t,loaded:!0,loading:!1}))):t.loaded||r({...t,loaded:!0})},[i,t,a,e]),{progress:t}},Ne=O(F.Button)` +import{r as u,D as W,q as O,v as F,f as Q,i as de,W as e1,j as n,Y as Se,s as B,l as se,n as k,X as Me,h as ze,E as Oe,Z as we,J as ne,L as K,a0 as n1,a1 as t1,d as C,a2 as Ae,a3 as ue,a4 as r1,a5 as pe,a6 as s1,a7 as o1,a8 as Z,b as i1,a9 as a1,aa as l1,ab as c1,T as xe,ac as d1,w as L,ad as u1,ae as p1,I as Ze,m as Y,A as x1,af as De,ag as m1,ah as Fe,ai as g1,S as C1,C as Te,o as h1,aj as f1,ak as Le,M as He,x as Re}from"./index-DdR0U16d.js";import{P as v1}from"./PricingCard-CtcAd6qS.js";import{P as Ge}from"./index-CGAhkVF0.js";import{l as _1,A as j1,_ as b1,P as y1,I as w1,a as T1,O as P1,H as M1}from"./index-HBZ4Cq4Z.js";import{B as O1}from"./index-CcDf82b6.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-BOcFjJOw.js";import{R as S1,a as L1}from"./ResponsiveImage-Cj4skSpA.js";import{C as H1}from"./index-CtKtIhYW.js";import{P as R1}from"./index-Bq7IYj2l.js";import{D as I1}from"./index-DfSDa3C0.js";import{S as N1}from"./swiper-8PJkZR9V.js";import{S as B1}from"./swiper-react-BLsnPoYA.js";import{C as V1}from"./index-BhJ-dW2f.js";import{S as N}from"./index-D3CJIFqT.js";import"./warning-Cy01Vo2F.js";import"./index-DX00fjMM.js";import"./useFetchCourses-CkVD5k4g.js";import"./CourseCard-yGz7Jurs.js";const k1=e=>{const[t,r]=u.useState({data:void 0,loaded:!1,loading:!1}),{user:i,fetchCourseProgress:a,courseProgressDetails:o}=u.useContext(W.EscolaLMSContext);return u.useEffect(()=>{o.byId&&o.byId[Number(e)]&&o.byId[Number(e)].value&&r({...t,data:o.byId[Number(e)].value,loaded:!0,loading:!1})},[e,o]),u.useEffect(()=>{i!=null&&i.value&&!i.loading&&!t.loading&&!t.loaded?(r({...t,loading:!0}),a(e).catch(()=>r({...t,loaded:!0,loading:!1}))):t.loaded||r({...t,loaded:!0})},[i,t,a,e]),{progress:t}},Ne=O(F.Button)` display: block; margin-bottom: 10px; `,E1=({course:e,onRequestAccess:t})=>{var v,s;const{t:r}=Q(),{push:i}=de(),{courseAccess:a,cart:o,addToCart:l}=u.useContext(W.EscolaLMSContext),p=u.useMemo(()=>{var c,m;return(m=(c=a.list)==null?void 0:c.data)==null?void 0:m.find(x=>{var b;return((b=x==null?void 0:x.course)==null?void 0:b.id)===e.id})},[(v=a.list)==null?void 0:v.data,e.id]),g=u.useMemo(()=>n.jsx(F.Button,{loading:o.loading,mode:"secondary",onClick:()=>{var c;return l(Number((c=e.product)==null?void 0:c.id)).then(()=>i(se.cart))},children:r("Buy Course")}),[l,o.loading,(s=e.product)==null?void 0:s.id,i,r]);return p?p.status!=="approved"?n.jsxs(n.Fragment,{children:[n.jsx(Ne,{mode:"secondary",disabled:!0,children:r("CourseAccess.Pending")}),g]}):p.status==="approved"?n.jsx(F.Button,{onClick:()=>i(`/course/${e.id}`),mode:"secondary",children:r("Go to the course")}):g:n.jsxs(n.Fragment,{children:[n.jsx(Ne,{mode:"secondary",onClick:t,children:r("CourseAccess.RequestAccess")}),g]})},$1=({course:e,userOwnThisCourse:t,onRequestAccess:r})=>{var g,v;const{cart:i,user:a}=u.useContext(W.EscolaLMSContext),{t:o}=Q(),{push:l}=de(),p=u.useMemo(()=>{var s;return(s=i==null?void 0:i.value)==null?void 0:s.items.some(c=>{var m;return Number(c.product_id)===Number((m=e.product)==null?void 0:m.id)})},[(g=e.product)==null?void 0:g.id,i]);return e1(Number((v=a.value)==null?void 0:v.id),e)?n.jsx(F.Button,{onClick:()=>l(`/course/${e.id}`),mode:"secondary",children:o("Go to the course")}):Se(new Date(e.active_to||""))?n.jsx(B.Text,{children:o("CoursePage.IsFinished")}):p?n.jsx(F.Button,{mode:"secondary",onClick:()=>l(se.cart),children:o("CoursePage.GoToCheckout")}):t&&Se(new Date(e.active_from||""))?n.jsx(F.Button,{onClick:()=>l(`/course/${e.id}`),mode:"secondary",children:o("Go to the course")}):t?n.jsx(B.Text,{children:o("CoursePage.NotStarted")}):a.value&&e.product?n.jsx(E1,{course:e,onRequestAccess:r}):e.product?n.jsx(F.Button,{onClick:()=>l(`/login?referrer=/courses/${e.id}`),mode:"secondary",children:o("Buy Course")}):n.jsx(B.Text,{children:o("CoursePage.UnavailableCourse")})},z1=O.div` diff --git a/assets/index-DzuqAlYx.js b/assets/index-ibEhBCOW.js similarity index 99% rename from assets/index-DzuqAlYx.js rename to assets/index-ibEhBCOW.js index dfaf425e..17f7bc54 100644 --- a/assets/index-DzuqAlYx.js +++ b/assets/index-ibEhBCOW.js @@ -1,4 +1,4 @@ -import{d as c,r as B,a5 as Z,a2 as nn,aG as en,aH as tn,a6 as rn,j as D,aI as on,a4 as an,a3 as ln,g as sn,D as cn,X as dn,f as un,n as pn,ax as gn}from"./index-Bo8UkscO.js";var R={};(function(b){var m=c&&c.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=c&&c.__assign||function(){return l=Object.assign||function(n){for(var e,r=1,o=arguments.length;r{const{id:s}=K(),{fetchStationaryEvent:i}=o.useContext(L.EscolaLMSContext);return o.useEffect(()=>{s&&i(Number(s))},[i,s]),e.jsx(ve.Provider,{value:{},children:t})},fe=()=>{const{stationaryEvent:t}=o.useContext(m.EscolaLMSContext),{t:s}=h();return t.value?e.jsx(ge,{items:[e.jsx(A,{to:v.home,children:s("Home")}),e.jsx(A,{to:v.events,children:s("Menu.Events")}),e.jsx(p.Text,{size:"12",children:t.value.name})]}):null},be=E.div` +import{b as Y,E as K,r as o,h as L,j as e,D as m,f as h,L as A,l as v,s as p,q as E,w as x,ax as S,n as C,ay as b,az as Q,aA as Z,aB as ee,ai as te,i as se,Y as q,T as u,v as j,J as N,aC as ie,aD as ae,N as re,aq as z,ad as ne,ae as oe,ak as le,aE as de,X as ce,aF as xe,av as me,o as pe,C as ue}from"./index-DdR0U16d.js";import{P as he}from"./index-DdKOa6TA.js";import{B as ge}from"./index-CcDf82b6.js";import{a as W}from"./ResponsiveImage-Cj4skSpA.js";import{P as X}from"./PricingCard-CtcAd6qS.js";import{P as je}from"./index-CGAhkVF0.js";import{D as Ee}from"./index-DGkptNEy.js";import{C as _}from"./index-GZhcI3y0.js";import{E as w}from"./index-CsquLrCJ.js";import"./index-BhJ-dW2f.js";import"./index-naIVnHMf.js";import"./index-CtKtIhYW.js";const ve=Y.createContext({}),Ce=({children:t})=>{const{id:s}=K(),{fetchStationaryEvent:i}=o.useContext(L.EscolaLMSContext);return o.useEffect(()=>{s&&i(Number(s))},[i,s]),e.jsx(ve.Provider,{value:{},children:t})},fe=()=>{const{stationaryEvent:t}=o.useContext(m.EscolaLMSContext),{t:s}=h();return t.value?e.jsx(ge,{items:[e.jsx(A,{to:v.home,children:s("Home")}),e.jsx(A,{to:v.events,children:s("Menu.Events")}),e.jsx(p.Text,{size:"12",children:t.value.name})]}):null},be=E.div` .event-main-info { .image-wrapper { @media (max-width: 991px) { diff --git a/assets/my-certificates-D_rhKLqo.js b/assets/my-certificates-BLOMt-4b.js similarity index 91% rename from assets/my-certificates-D_rhKLqo.js rename to assets/my-certificates-BLOMt-4b.js index 9c6c49ec..91606c23 100644 --- a/assets/my-certificates-D_rhKLqo.js +++ b/assets/my-certificates-BLOMt-4b.js @@ -1,4 +1,4 @@ -import{q as f,r as x,D as C,f as m,j as t,s,w as p,m as j,T as h,Z as y,cF as P}from"./index-Bo8UkscO.js";import{P as b}from"./index-lFh4cs_O.js";import{u as T}from"./useDownloadCertificate-Gsl9Kioe.js";import"./index-Q5z7UDcg.js";const w=f.section` +import{q as f,r as x,D as C,f as m,j as t,s,w as p,m as j,T as h,Z as y,cF as P}from"./index-DdR0U16d.js";import{P as b}from"./index-BH6C5uk2.js";import{u as T}from"./useDownloadCertificate-DQ0RD7nc.js";import"./index-DuwnFplQ.js";const w=f.section` .empty-certificates-message { background: ${({theme:e})=>e.mode==="dark"?e.gray1:e.gray5}; } diff --git a/assets/my-consultations-CsEZzLH7.js b/assets/my-consultations-CqEl1hMS.js similarity index 94% rename from assets/my-consultations-CsEZzLH7.js rename to assets/my-consultations-CqEl1hMS.js index 82356f79..b69783f7 100644 --- a/assets/my-consultations-CsEZzLH7.js +++ b/assets/my-consultations-CqEl1hMS.js @@ -1,4 +1,4 @@ -import{r as i,h as P,f as x,j as e,Z as _,s as m,n as b,w as h,q as c,L as I,b0 as y,b1 as E,ai as A,ar as v,X as M,b2 as N,g as L,D as w,aL as T,b3 as S,b4 as U,v as R,b5 as k,G as B}from"./index-Bo8UkscO.js";import{P as F}from"./index-lFh4cs_O.js";import{T as $}from"./Tabs-CO-l8TER.js";import{a as G}from"./ResponsiveImage-wHQCVyd2.js";import{C as O}from"./index-PGMEsYK1.js";import{D as p,a as C}from"./index-Dof53sD6.js";import{P as W,C as q,a as K}from"./index-CihtPuAx.js";import{u as z}from"./useRoles-O1Qe8-YL.js";import"./index-Q5z7UDcg.js";import"./warning-C5gOjCvf.js";const H=({type:t})=>{var d;const{userConsultations:s,fetchUserConsultations:o}=i.useContext(P.EscolaLMSContext),{t:n}=x(),r=i.useMemo(()=>{var a;return((a=s.list)==null?void 0:a.data.filter(l=>t===j.STARTED||t===j.UPCOMING?l.in_coming||l.is_started:l.is_ended))||[]},[t,(d=s.list)==null?void 0:d.data]);return i.useEffect(()=>{o()},[t,o]),e.jsx(W,{children:s.loading?e.jsx(_,{}):r.length===0?e.jsx(m.Text,{style:{paddingLeft:b?20:40},children:n("MyProfilePage.OrdersEmpty")}):e.jsx(h.Row,{style:{gap:"30px 0"},children:r.map(a=>e.jsx(h.Col,{xs:12,md:6,lg:4,children:e.jsx(q,{consultation:a})},a.id))})})},g=i.memo(H),X=c.div` +import{r as i,h as P,f as x,j as e,Z as _,s as m,n as b,w as h,q as c,L as I,b0 as y,b1 as E,ai as A,ar as v,X as M,b2 as N,g as L,D as w,aL as T,b3 as S,b4 as U,v as R,b5 as k,G as B}from"./index-DdR0U16d.js";import{P as F}from"./index-BH6C5uk2.js";import{T as $}from"./Tabs-C_s_LN6Y.js";import{a as G}from"./ResponsiveImage-Cj4skSpA.js";import{C as O}from"./index-BhJ-dW2f.js";import{D as p,a as C}from"./index-CZO-v9Fr.js";import{P as W,C as q,a as K}from"./index-CMcFPrAH.js";import{u as z}from"./useRoles-Bi4GxnzU.js";import"./index-DuwnFplQ.js";import"./warning-Cy01Vo2F.js";const H=({type:t})=>{var d;const{userConsultations:s,fetchUserConsultations:o}=i.useContext(P.EscolaLMSContext),{t:n}=x(),r=i.useMemo(()=>{var a;return((a=s.list)==null?void 0:a.data.filter(l=>t===j.STARTED||t===j.UPCOMING?l.in_coming||l.is_started:l.is_ended))||[]},[t,(d=s.list)==null?void 0:d.data]);return i.useEffect(()=>{o()},[t,o]),e.jsx(W,{children:s.loading?e.jsx(_,{}):r.length===0?e.jsx(m.Text,{style:{paddingLeft:b?20:40},children:n("MyProfilePage.OrdersEmpty")}):e.jsx(h.Row,{style:{gap:"30px 0"},children:r.map(a=>e.jsx(h.Col,{xs:12,md:6,lg:4,children:e.jsx(q,{consultation:a})},a.id))})})},g=i.memo(H),X=c.div` .course-section { margin-top: 0px; } diff --git a/assets/my-data-CLKDK_Yl.js b/assets/my-data-BWqVmTAa.js similarity index 97% rename from assets/my-data-CLKDK_Yl.js rename to assets/my-data-BWqVmTAa.js index d6f60e4e..1aca868e 100644 --- a/assets/my-data-CLKDK_Yl.js +++ b/assets/my-data-BWqVmTAa.js @@ -1,4 +1,4 @@ -import{d as x,a5 as X,a2 as Y,j as O,a9 as nn,r as en,a3 as tn,D as rn,q as an,f as on}from"./index-Bo8UkscO.js";import{P as ln}from"./index-lFh4cs_O.js";import{U as sn}from"./Upload-CrRhBbHH.js";import"./index-Q5z7UDcg.js";var $={};(function(v){var q=x&&x.__makeTemplateObject||function(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e},s=x&&x.__assign||function(){return s=Object.assign||function(e){for(var a,l=1,p=arguments.length;lt.gray4}; `,s=o.div` padding-top: 70px; diff --git a/assets/my-orders-BYqDkrfS.js b/assets/my-orders-DjvNnYZm.js similarity index 98% rename from assets/my-orders-BYqDkrfS.js rename to assets/my-orders-DjvNnYZm.js index bb7db9bc..833d4cff 100644 --- a/assets/my-orders-BYqDkrfS.js +++ b/assets/my-orders-DjvNnYZm.js @@ -1,4 +1,4 @@ -import{d as u,r as x,a5 as L,a6 as $,j as d,a3 as z,s as O,q as D,h as I,f as A,A as q,ai as R,v as U,n as F,Z as G}from"./index-Bo8UkscO.js";import{P as H}from"./index-lFh4cs_O.js";import"./index-Q5z7UDcg.js";var B={};(function(l){var g=u&&u.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},t=u&&u.__assign||function(){return t=Object.assign||function(n){for(var e,i=1,s=arguments.length;i(t.COURSE="course",t.WEBINAR="webinar",t))(p||{}),C=(t=>(t.RATE="rate",t.TEXT="text",t.REVIEW="review",t))(C||{});const U=async({courseId:t,questionnaireId:o,fetchQuestionnaire:n})=>{try{const s=t&&await n(p.COURSE,t,o);if(s&&s.success)return s.data.questions}catch(s){f.error(w("UnexpectedError")),console.log(s)}},v=async({courseId:t,fetchQuestionnaires:o,fetchQuestionnaire:n,onSucces:s,onFinish:a})=>{try{const r=t&&await o(p.COURSE,t);if(r&&r.success){const E=await Promise.all(r.data.map(async i=>{const d=await U({courseId:t,questionnaireId:i.id,fetchQuestionnaire:n}),R=i.questions.reduce((c,u)=>{const e=d==null?void 0:d.find(b=>b.id===u.id),l={...u,rate:e==null?void 0:e.rate,note:e==null?void 0:e.note};return l.rate===null&&l.note===null&&c.push(l),c},[]);return{...i,questions:R.sort((c,u)=>c.position-u.position)}}));s(E.filter(i=>!!i.questions.length))}}catch(r){f.error(w("UnexpectedError")),console.log(r)}finally{a()}},x=({questionnaires:t,questionnaireId:o,questionType:n})=>{var s,a;return(a=(s=t==null?void 0:t.find(r=>r.id===o))==null?void 0:s.questions.filter(r=>r.public_answers).find(r=>r.type===n))==null?void 0:a.id};export{p as Q,C as a,v as b,x as g}; +import{A as f,ap as w}from"./index-DdR0U16d.js";var p=(t=>(t.COURSE="course",t.WEBINAR="webinar",t))(p||{}),C=(t=>(t.RATE="rate",t.TEXT="text",t.REVIEW="review",t))(C||{});const U=async({courseId:t,questionnaireId:o,fetchQuestionnaire:n})=>{try{const s=t&&await n(p.COURSE,t,o);if(s&&s.success)return s.data.questions}catch(s){f.error(w("UnexpectedError")),console.log(s)}},v=async({courseId:t,fetchQuestionnaires:o,fetchQuestionnaire:n,onSucces:s,onFinish:a})=>{try{const r=t&&await o(p.COURSE,t);if(r&&r.success){const E=await Promise.all(r.data.map(async i=>{const d=await U({courseId:t,questionnaireId:i.id,fetchQuestionnaire:n}),R=i.questions.reduce((c,u)=>{const e=d==null?void 0:d.find(b=>b.id===u.id),l={...u,rate:e==null?void 0:e.rate,note:e==null?void 0:e.note};return l.rate===null&&l.note===null&&c.push(l),c},[]);return{...i,questions:R.sort((c,u)=>c.position-u.position)}}));s(E.filter(i=>!!i.questions.length))}}catch(r){f.error(w("UnexpectedError")),console.log(r)}finally{a()}},x=({questionnaires:t,questionnaireId:o,questionType:n})=>{var s,a;return(a=(s=t==null?void 0:t.find(r=>r.id===o))==null?void 0:s.questions.filter(r=>r.public_answers).find(r=>r.type===n))==null?void 0:a.id};export{p as Q,C as a,v as b,x as g}; diff --git a/assets/swiper-ES8EF7dV.js b/assets/swiper-8PJkZR9V.js similarity index 98% rename from assets/swiper-ES8EF7dV.js rename to assets/swiper-8PJkZR9V.js index fa7d7d5b..651a6dad 100644 --- a/assets/swiper-ES8EF7dV.js +++ b/assets/swiper-8PJkZR9V.js @@ -1,4 +1,4 @@ -import{q as V,r as G,j as b,aj as T}from"./index-Bo8UkscO.js";import{e as K,c as q,m as l,b as _,a as J}from"./swiper-react-dLA_7gCe.js";function Q(p,e,u,o){return p.params.createElements&&Object.keys(o).forEach(c=>{if(!u[c]&&u.auto===!0){let g=K(p.el,`.${o[c]}`)[0];g||(g=q("div",o[c]),g.className=o[c],p.el.append(g)),u[c]=g,e[c]=g}}),u}function W(p){let{swiper:e,extendParams:u,on:o,emit:c}=p;u({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function g(t){let s;return t&&typeof t=="string"&&e.isElement&&(s=e.el.querySelector(t),s)?s:(t&&(typeof t=="string"&&(s=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t=="string"&&s.length>1&&e.el.querySelectorAll(t).length===1&&(s=e.el.querySelector(t))),t&&!s?t:s)}function h(t,s){const d=e.params.navigation;t=l(t),t.forEach(r=>{r&&(r.classList[s?"add":"remove"](...d.disabledClass.split(" ")),r.tagName==="BUTTON"&&(r.disabled=s),e.params.watchOverflow&&e.enabled&&r.classList[e.isLocked?"add":"remove"](d.lockClass))})}function v(){const{nextEl:t,prevEl:s}=e.navigation;if(e.params.loop){h(s,!1),h(t,!1);return}h(s,e.isBeginning&&!e.params.rewind),h(t,e.isEnd&&!e.params.rewind)}function k(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),c("navigationPrev"))}function x(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),c("navigationNext"))}function y(){const t=e.params.navigation;if(e.params.navigation=Q(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let s=g(t.nextEl),d=g(t.prevEl);Object.assign(e.navigation,{nextEl:s,prevEl:d}),s=l(s),d=l(d);const r=(f,E)=>{f&&f.addEventListener("click",E==="next"?x:k),!e.enabled&&f&&f.classList.add(...t.lockClass.split(" "))};s.forEach(f=>r(f,"next")),d.forEach(f=>r(f,"prev"))}function M(){let{nextEl:t,prevEl:s}=e.navigation;t=l(t),s=l(s);const d=(r,f)=>{r.removeEventListener("click",f==="next"?x:k),r.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(r=>d(r,"next")),s.forEach(r=>d(r,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?S():(y(),v())}),o("toEdge fromEdge lock unlock",()=>{v()}),o("destroy",()=>{M()}),o("enable disable",()=>{let{nextEl:t,prevEl:s}=e.navigation;if(t=l(t),s=l(s),e.enabled){v();return}[...t,...s].filter(d=>!!d).forEach(d=>d.classList.add(e.params.navigation.lockClass))}),o("click",(t,s)=>{let{nextEl:d,prevEl:r}=e.navigation;d=l(d),r=l(r);const f=s.target;if(e.params.navigation.hideOnClick&&!r.includes(f)&&!d.includes(f)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===f||e.pagination.el.contains(f)))return;let E;d.length?E=d[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(E=r[0].classList.contains(e.params.navigation.hiddenClass)),c(E===!0?"navigationShow":"navigationHide"),[...d,...r].filter(L=>!!L).forEach(L=>L.classList.toggle(e.params.navigation.hiddenClass))}});const w=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),y(),v()},S=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),M()};Object.assign(e.navigation,{enable:w,disable:S,update:v,init:y,destroy:M})}function B(p){return p===void 0&&(p=""),`.${p.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function X(p){let{swiper:e,extendParams:u,on:o}=p;u({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let c=null;function g(i){const a=c;a.length!==0&&(a.innerHTML="",a.innerHTML=i)}function h(i){i===void 0&&(i=16);const a=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(i).replace(/x/g,a)}function v(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","0")})}function k(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","-1")})}function x(i,a){i=l(i),i.forEach(n=>{n.setAttribute("role",a)})}function y(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-roledescription",a)})}function M(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-controls",a)})}function w(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-label",a)})}function S(i,a){i=l(i),i.forEach(n=>{n.setAttribute("id",a)})}function t(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-live",a)})}function s(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!0)})}function d(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!1)})}function r(i){if(i.keyCode!==13&&i.keyCode!==32)return;const a=e.params.a11y,n=i.target;e.pagination&&e.pagination.el&&(n===e.pagination.el||e.pagination.el.contains(i.target))&&!i.target.matches(B(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&n===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?g(a.lastSlideMessage):g(a.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&n===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?g(a.firstSlideMessage):g(a.prevSlideMessage)),e.pagination&&n.matches(B(e.params.pagination.bulletClass))&&n.click())}function f(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:i,prevEl:a}=e.navigation;a&&(e.isBeginning?(s(a),k(a)):(d(a),v(a))),i&&(e.isEnd?(s(i),k(i)):(d(i),v(i)))}function E(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function L(){return E()&&e.params.pagination.clickable}function $(){const i=e.params.a11y;E()&&e.pagination.bullets.forEach(a=>{e.params.pagination.clickable&&(v(a),e.params.pagination.renderBullet||(x(a,"button"),w(a,i.paginationBulletMessage.replace(/\{\{index\}\}/,_(a)+1)))),a.matches(B(e.params.pagination.bulletActiveClass))?a.setAttribute("aria-current","true"):a.removeAttribute("aria-current")})}const P=(i,a,n)=>{v(i),i.tagName!=="BUTTON"&&(x(i,"button"),i.addEventListener("keydown",r)),w(i,n),M(i,a)},j=()=>{e.a11y.clicked=!0},D=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=i=>{if(e.a11y.clicked)return;const a=i.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!a||!e.slides.includes(a))return;const n=e.slides.indexOf(a)===e.activeIndex,m=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(a);n||m||i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(a),0))},O=()=>{const i=e.params.a11y;i.itemRoleDescriptionMessage&&y(e.slides,i.itemRoleDescriptionMessage),i.slideRole&&x(e.slides,i.slideRole);const a=e.slides.length;i.slideLabelMessage&&e.slides.forEach((n,m)=>{const R=e.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):m,C=i.slideLabelMessage.replace(/\{\{index\}\}/,R+1).replace(/\{\{slidesLength\}\}/,a);w(n,C)})},F=()=>{const i=e.params.a11y;e.el.append(c);const a=e.el;i.containerRoleDescriptionMessage&&y(a,i.containerRoleDescriptionMessage),i.containerMessage&&w(a,i.containerMessage);const n=e.wrapperEl,m=i.id||n.getAttribute("id")||`swiper-wrapper-${h(16)}`,R=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(n,m),t(n,R),O();let{nextEl:C,prevEl:A}=e.navigation?e.navigation:{};C=l(C),A=l(A),C&&C.forEach(N=>P(N,m,i.nextSlideMessage)),A&&A.forEach(N=>P(N,m,i.prevSlideMessage)),L()&&l(e.pagination.el).forEach(U=>{U.addEventListener("keydown",r)}),e.el.addEventListener("focus",I,!0),e.el.addEventListener("pointerdown",j,!0),e.el.addEventListener("pointerup",D,!0)};function H(){c&&c.remove();let{nextEl:i,prevEl:a}=e.navigation?e.navigation:{};i=l(i),a=l(a),i&&i.forEach(n=>n.removeEventListener("keydown",r)),a&&a.forEach(n=>n.removeEventListener("keydown",r)),L()&&l(e.pagination.el).forEach(m=>{m.removeEventListener("keydown",r)}),e.el.removeEventListener("focus",I,!0),e.el.removeEventListener("pointerdown",j,!0),e.el.removeEventListener("pointerup",D,!0)}o("beforeInit",()=>{c=q("span",e.params.a11y.notificationClass),c.setAttribute("aria-live","assertive"),c.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&F()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&f()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&$()}),o("destroy",()=>{e.params.a11y.enabled&&H()})}const Y=V.div` +import{q as V,r as G,j as b,aj as T}from"./index-DdR0U16d.js";import{e as K,c as q,m as l,b as _,a as J}from"./swiper-react-BLsnPoYA.js";function Q(p,e,u,o){return p.params.createElements&&Object.keys(o).forEach(c=>{if(!u[c]&&u.auto===!0){let g=K(p.el,`.${o[c]}`)[0];g||(g=q("div",o[c]),g.className=o[c],p.el.append(g)),u[c]=g,e[c]=g}}),u}function W(p){let{swiper:e,extendParams:u,on:o,emit:c}=p;u({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function g(t){let s;return t&&typeof t=="string"&&e.isElement&&(s=e.el.querySelector(t),s)?s:(t&&(typeof t=="string"&&(s=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t=="string"&&s.length>1&&e.el.querySelectorAll(t).length===1&&(s=e.el.querySelector(t))),t&&!s?t:s)}function h(t,s){const d=e.params.navigation;t=l(t),t.forEach(r=>{r&&(r.classList[s?"add":"remove"](...d.disabledClass.split(" ")),r.tagName==="BUTTON"&&(r.disabled=s),e.params.watchOverflow&&e.enabled&&r.classList[e.isLocked?"add":"remove"](d.lockClass))})}function v(){const{nextEl:t,prevEl:s}=e.navigation;if(e.params.loop){h(s,!1),h(t,!1);return}h(s,e.isBeginning&&!e.params.rewind),h(t,e.isEnd&&!e.params.rewind)}function k(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),c("navigationPrev"))}function x(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),c("navigationNext"))}function y(){const t=e.params.navigation;if(e.params.navigation=Q(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let s=g(t.nextEl),d=g(t.prevEl);Object.assign(e.navigation,{nextEl:s,prevEl:d}),s=l(s),d=l(d);const r=(f,E)=>{f&&f.addEventListener("click",E==="next"?x:k),!e.enabled&&f&&f.classList.add(...t.lockClass.split(" "))};s.forEach(f=>r(f,"next")),d.forEach(f=>r(f,"prev"))}function M(){let{nextEl:t,prevEl:s}=e.navigation;t=l(t),s=l(s);const d=(r,f)=>{r.removeEventListener("click",f==="next"?x:k),r.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(r=>d(r,"next")),s.forEach(r=>d(r,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?S():(y(),v())}),o("toEdge fromEdge lock unlock",()=>{v()}),o("destroy",()=>{M()}),o("enable disable",()=>{let{nextEl:t,prevEl:s}=e.navigation;if(t=l(t),s=l(s),e.enabled){v();return}[...t,...s].filter(d=>!!d).forEach(d=>d.classList.add(e.params.navigation.lockClass))}),o("click",(t,s)=>{let{nextEl:d,prevEl:r}=e.navigation;d=l(d),r=l(r);const f=s.target;if(e.params.navigation.hideOnClick&&!r.includes(f)&&!d.includes(f)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===f||e.pagination.el.contains(f)))return;let E;d.length?E=d[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(E=r[0].classList.contains(e.params.navigation.hiddenClass)),c(E===!0?"navigationShow":"navigationHide"),[...d,...r].filter(L=>!!L).forEach(L=>L.classList.toggle(e.params.navigation.hiddenClass))}});const w=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),y(),v()},S=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),M()};Object.assign(e.navigation,{enable:w,disable:S,update:v,init:y,destroy:M})}function B(p){return p===void 0&&(p=""),`.${p.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function X(p){let{swiper:e,extendParams:u,on:o}=p;u({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let c=null;function g(i){const a=c;a.length!==0&&(a.innerHTML="",a.innerHTML=i)}function h(i){i===void 0&&(i=16);const a=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(i).replace(/x/g,a)}function v(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","0")})}function k(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","-1")})}function x(i,a){i=l(i),i.forEach(n=>{n.setAttribute("role",a)})}function y(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-roledescription",a)})}function M(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-controls",a)})}function w(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-label",a)})}function S(i,a){i=l(i),i.forEach(n=>{n.setAttribute("id",a)})}function t(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-live",a)})}function s(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!0)})}function d(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!1)})}function r(i){if(i.keyCode!==13&&i.keyCode!==32)return;const a=e.params.a11y,n=i.target;e.pagination&&e.pagination.el&&(n===e.pagination.el||e.pagination.el.contains(i.target))&&!i.target.matches(B(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&n===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?g(a.lastSlideMessage):g(a.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&n===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?g(a.firstSlideMessage):g(a.prevSlideMessage)),e.pagination&&n.matches(B(e.params.pagination.bulletClass))&&n.click())}function f(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:i,prevEl:a}=e.navigation;a&&(e.isBeginning?(s(a),k(a)):(d(a),v(a))),i&&(e.isEnd?(s(i),k(i)):(d(i),v(i)))}function E(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function L(){return E()&&e.params.pagination.clickable}function $(){const i=e.params.a11y;E()&&e.pagination.bullets.forEach(a=>{e.params.pagination.clickable&&(v(a),e.params.pagination.renderBullet||(x(a,"button"),w(a,i.paginationBulletMessage.replace(/\{\{index\}\}/,_(a)+1)))),a.matches(B(e.params.pagination.bulletActiveClass))?a.setAttribute("aria-current","true"):a.removeAttribute("aria-current")})}const P=(i,a,n)=>{v(i),i.tagName!=="BUTTON"&&(x(i,"button"),i.addEventListener("keydown",r)),w(i,n),M(i,a)},j=()=>{e.a11y.clicked=!0},D=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=i=>{if(e.a11y.clicked)return;const a=i.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!a||!e.slides.includes(a))return;const n=e.slides.indexOf(a)===e.activeIndex,m=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(a);n||m||i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(a),0))},O=()=>{const i=e.params.a11y;i.itemRoleDescriptionMessage&&y(e.slides,i.itemRoleDescriptionMessage),i.slideRole&&x(e.slides,i.slideRole);const a=e.slides.length;i.slideLabelMessage&&e.slides.forEach((n,m)=>{const R=e.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):m,C=i.slideLabelMessage.replace(/\{\{index\}\}/,R+1).replace(/\{\{slidesLength\}\}/,a);w(n,C)})},F=()=>{const i=e.params.a11y;e.el.append(c);const a=e.el;i.containerRoleDescriptionMessage&&y(a,i.containerRoleDescriptionMessage),i.containerMessage&&w(a,i.containerMessage);const n=e.wrapperEl,m=i.id||n.getAttribute("id")||`swiper-wrapper-${h(16)}`,R=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(n,m),t(n,R),O();let{nextEl:C,prevEl:A}=e.navigation?e.navigation:{};C=l(C),A=l(A),C&&C.forEach(N=>P(N,m,i.nextSlideMessage)),A&&A.forEach(N=>P(N,m,i.prevSlideMessage)),L()&&l(e.pagination.el).forEach(U=>{U.addEventListener("keydown",r)}),e.el.addEventListener("focus",I,!0),e.el.addEventListener("pointerdown",j,!0),e.el.addEventListener("pointerup",D,!0)};function H(){c&&c.remove();let{nextEl:i,prevEl:a}=e.navigation?e.navigation:{};i=l(i),a=l(a),i&&i.forEach(n=>n.removeEventListener("keydown",r)),a&&a.forEach(n=>n.removeEventListener("keydown",r)),L()&&l(e.pagination.el).forEach(m=>{m.removeEventListener("keydown",r)}),e.el.removeEventListener("focus",I,!0),e.el.removeEventListener("pointerdown",j,!0),e.el.removeEventListener("pointerup",D,!0)}o("beforeInit",()=>{c=q("span",e.params.a11y.notificationClass),c.setAttribute("aria-live","assertive"),c.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&F()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&f()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&$()}),o("destroy",()=>{e.params.a11y.enabled&&H()})}const Y=V.div` position: absolute; top: 10px; right: 10px; diff --git a/assets/swiper-react-dLA_7gCe.js b/assets/swiper-react-BLsnPoYA.js similarity index 99% rename from assets/swiper-react-dLA_7gCe.js rename to assets/swiper-react-BLsnPoYA.js index a12c998f..56eb4ad8 100644 --- a/assets/swiper-react-dLA_7gCe.js +++ b/assets/swiper-react-BLsnPoYA.js @@ -1 +1 @@ -import{r as O,b as z}from"./index-Bo8UkscO.js";function ue(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ce(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:ue(e[i])&&ue(t[i])&&Object.keys(e[i]).length>0&&ce(t[i],e[i])})}const Se={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){const t=typeof document<"u"?document:{};return ce(t,Se),t}const Ge={document:Se,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function V(){const t=typeof window<"u"?window:{};return ce(t,Ge),t}function De(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Ve(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function le(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function U(){return Date.now()}function Ne(t){const e=V();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Be(t,e){e===void 0&&(e="x");const i=V();let s,n,r;const o=Ne(t);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function q(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Re(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function D(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(r)<0);for(let r=0,o=n.length;rr?"next":"prev",d=(p,u)=>c==="next"&&p>=u||c==="prev"&&p<=u,f=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/l,1),0),u=.5-Math.cos(p*Math.PI)/2;let m=r+u*(i-r);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[s]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:m})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(f)};f()}function F(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Z(t){try{console.warn(t);return}catch{}}function ae(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:De(e)),i}function Fe(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $e(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $(t,e){return V().getComputedStyle(t,null).getPropertyValue(e)}function pe(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function He(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function he(t,e,i){const s=V();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function fi(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let ee;function ke(){const t=V(),e=W();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function xe(){return ee||(ee=ke()),ee}let te;function We(t){let{userAgent:e}=t===void 0?{}:t;const i=xe(),s=V(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const f=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=n==="Win32";let m=n==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&g.indexOf(`${a}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!u&&(o.os="android",o.android=!0),(d||p||f)&&(o.os="ios",o.ios=!0),o}function be(t){return t===void 0&&(t={}),te||(te=We(t)),te}let ie;function je(){const t=V(),e=be();let i=!1;function s(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(s()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=l<16||l===16&&c<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),o=r||n&&e.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:o,isWebView:n}}function Ye(){return ie||(ie=je()),ie}function qe(t){let{swiper:e,on:i,emit:s}=t;const n=V();let r=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(f=>{o=n.requestAnimationFrame(()=>{const{width:p,height:u}=e;let m=p,g=u;f.forEach(x=>{let{contentBoxSize:h,contentRect:b,target:v}=x;v&&v!==e.el||(m=b?b.width:(h[0]||h).inlineSize,g=b?b.height:(h[0]||h).blockSize)}),(m!==p||g!==u)&&a()})}),r.observe(e.el))},c=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",d)})}function Xe(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],o=V(),a=function(d,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,u=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){n("observerUpdate",m[0]);return}const g=function(){n("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(g):o.setTimeout(g,0)});u.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),r.push(u)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=He(e.hostEl);for(let f=0;f{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c)}var Ke={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),a=0;a=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...i])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(s,i)})}),t}};function Ue(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($(s,"padding-left")||0,10)-parseInt($(s,"padding-right")||0,10),i=i-parseInt($(s,"padding-top")||0,10)-parseInt($(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ze(){const t=this;function e(w,E){return parseFloat(w.getPropertyValue(t.getDirectionLabel(E))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=F(n,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:d.length;let p=[];const u=[],m=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const h=t.snapGrid.length,b=t.slidesGrid.length;let v=i.spaceBetween,S=-g,T=0,M=0;if(typeof r>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*r:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,d.forEach(w=>{o?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(X(s,"--swiper-centered-offset-before",""),X(s,"--swiper-centered-offset-after",""));const G=i.grid&&i.grid.rows>1&&t.grid;G?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let I;const P=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&p.push(t.virtualSize-r)}if(l&&i.loop){const w=m[0]+v;if(i.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let y=0;y!i.cssMode||i.loop?!0:C!==d.length-1).forEach(E=>{E.style[w]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;m.forEach(C=>{w+=C+(v||0)}),w-=v;const E=w-r;p=p.map(C=>C<=0?-g:C>E?E+x:C)}if(i.centerInsufficientSlides){let w=0;if(m.forEach(E=>{w+=E+(v||0)}),w-=v,w{p[y]=C-E}),u.forEach((C,y)=>{u[y]=C+E})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){X(s,"--swiper-centered-offset-before",`${-p[0]}px`),X(s,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const w=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+E)}if(f!==c&&t.emit("slidesLengthChange"),p.length!==h&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,E=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?E||t.el.classList.add(w):E&&t.el.classList.remove(w)}}function Je(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>s?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(r=0;re.slides.length&&!s)break;i.push(o(a))}else i.push(o(e.activeIndex));for(r=0;rn?a:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Qe(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&u<=e.size-e.slidesSizesGrid[l];(u>=0&&u1&&m<=e.size||u<=0&&m>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),s[l].classList.add(i.slideVisibleClass)),g&&s[l].classList.add(i.slideFullyVisibleClass),c.progress=n?-f:f,c.originalProgress=n?-p:p}}function tt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(s===0)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,o=f||n>=1,d&&(n=0),f&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],u=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=p?a=(g-p)/m:a=(g+m-u)/m,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function it(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&i.grid.rows>1,a=f=>F(s,`.${i.slideClass}${f}, swiper-slide${f}`)[0];e.forEach(f=>{f.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l,c,d;if(r)if(i.loop){let f=n-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(f=>f.column===n)[0],d=e.filter(f=>f.column===n+1)[0],c=e.filter(f=>f.column===n-1)[0]):l=e[n];l&&(l.classList.add(i.slideActiveClass),o?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=$e(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),c=Fe(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const K=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},oe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=n,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+s+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&se(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const a=(o%i+i)%i;(ar)&&se(t,a)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,i-1);o+=1)o!==n&&(o>r||o=e[r]&&s=e[r]&&s=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function rt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=t,c;const d=u=>{let m=u-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=st(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const f=e.grid&&n.grid&&n.grid.rows>1;let p;if(e.virtual&&n.virtual.enabled&&n.loop)p=d(l);else if(f){const u=e.slides.filter(g=>g.column===l)[0];let m=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(u),0)),p=Math.floor(m/n.grid.rows)}else if(e.slides[l]){const u=e.slides[l].getAttribute("data-swiper-slide-index");u?p=parseInt(u,10):p=l}else p=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:r,activeIndex:l}),e.initialized&&oe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function nt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!n&&a.matches&&a.matches(`.${s.slideClass}, swiper-slide`)&&(n=a)});let r=!1,o;if(n){for(let a=0;al?d=l:s&&to?a="next":r=l.length&&(x=l.length-1);const h=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=T&&S=T&&S=T&&(o=v)}if(r.initialized&&o!==f&&(!r.allowSlideNext&&(p?h>r.translate&&h>r.minTranslate():hr.translate&&h>r.maxTranslate()&&(f||0)!==o))return!1;o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(h);let b;if(o>f?b="next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[v?"scrollLeft":"scrollTop"]=S})):u[v?"scrollLeft":"scrollTop"]=S,T&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Te({swiper:r,targetPosition:S,side:v?"left":"top"}),!0;u.scrollTo({[v?"left":"top"]:S,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(h),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,b),e===0?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function wt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o=o+n.virtual.slidesBefore;else{let a;if(r){const p=o*n.params.grid.rows;a=n.slides.filter(u=>u.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=n.getSlideIndexByData(o);const l=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=l-au.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,i,s)}),n}function St(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)}function Tt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=a?s.translate:-s.translate;function p(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const u=p(f),m=r.map(h=>p(h));let g=r[m.indexOf(u)-1];if(typeof g>"u"&&n.cssMode){let h;r.forEach((b,v)=>{u>=b&&(h=v)}),typeof h<"u"&&(g=r[h>0?h-1:h])}let x=0;if(typeof g<"u"&&(x=o.indexOf(g),x<0&&(x=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(x=x-s.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),n.rewind&&s.isBeginning){const h=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(h,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(x,t,e,i)}),!0;return s.slideTo(x,t,e,i)}function xt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;if(!s.destroyed)return s.slideTo(s.activeIndex,t,e,i)}function bt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const c=n.snapGrid[a],d=n.snapGrid[a+1];l-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[a-1],d=n.snapGrid[a];l-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function Et(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var yt={slideTo:vt,slideToLoop:wt,slideNext:St,slidePrev:Tt,slideReset:xt,slideToClosest:bt,slideToClickedSlide:Et};function Pt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{F(s,`.${i.slideClass}, swiper-slide`).forEach((f,p)=>{f.setAttribute("data-swiper-slide-index",p)})},r=e.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(r?i.grid.rows:1),a=e.slides.length%o!==0,l=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let f=0;f1;c.length"u"?r=l.getSlideIndex(c.filter(y=>y.classList.contains(u.slideActiveClass))[0]):T=r;const M=s==="next"||!s,G=s==="prev"||!s;let I=0,P=0;const w=b?Math.ceil(c.length/u.grid.rows):c.length,C=(b?c[r].column:r)+(m&&typeof n>"u"?-g/2+.5:0);if(C=0;B-=1)c[B].column===A&&v.push(B)}else v.push(w-L-1)}}else if(C+g>w-h){P=Math.max(C-(w-h*2),x);for(let y=0;y{A.column===L&&S.push(B)}):S.push(L)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),G&&v.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.prepend(c[y]),c[y].swiperLoopMoveDOM=!1}),M&&S.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.append(c[y]),c[y].swiperLoopMoveDOM=!1}),l.recalcSlides(),u.slidesPerView==="auto"?l.updateSlides():b&&(v.length>0&&G||S.length>0&&M)&&l.slides.forEach((y,L)=>{l.grid.updateSlide(L,y,l.slides)}),u.watchSlidesProgress&&l.updateSlidesOffset(),i){if(v.length>0&&G){if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T+I]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T+Math.ceil(I),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else if(n){const y=b?v.length/u.grid.rows:v.length;l.slideTo(l.activeIndex+y,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&M)if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T-P]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T-P,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else{const y=b?S.length/u.grid.rows:S.length;l.slideTo(l.activeIndex-y,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const y={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix({...y,slideTo:L.params.slidesPerView===u.slidesPerView?i:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...y,slideTo:l.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}l.emit("loopFix")}function Mt(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var It={loopCreate:Pt,loopFix:Ct,loopDestroy:Mt};function Ot(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Lt(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var zt={setGrabCursor:Ot,unsetGrabCursor:Lt};function At(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===V())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function me(t,e,i){const s=V(),{params:n}=t,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return r&&(i<=o||i>=s.innerWidth-o)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function _t(t){const e=this,i=W();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){me(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:a}=e;if(!a||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=s.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(l)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(l=d[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(p?At(f,l):l.closest(f))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const u=o.currentX,m=o.currentY;if(!me(e,s,u))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=m,n.touchStartTime=U(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let g=!0;l.matches(n.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const x=g&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||x)&&!l.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function Gt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=i;if(!a||!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(M=>M.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}const d=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=f;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f}),s.touchStartTime=U());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(fr.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(dr.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=f;const p=r.currentX-r.startX,u=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(p**2+u**2)"u"){let M;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:p*p+u*u>=25&&(M=Math.atan2(Math.abs(u),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>n.touchAngle:90-M>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let m=i.isHorizontal()?p:u,g=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,g=-g);const x=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const h=i.params.loop&&!n.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(h&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&x!==i.touchesDirection&&h&&b&&Math.abs(m)>=1){Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let S=!0,T=n.resistanceRatio;if(n.touchReleaseOnEdges&&(T=0),m>0?(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**T))):m<0&&(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Dt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(T=>T.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=e;if(!d||!o.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}o.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=U(),p=f-i.touchStartTime;if(e.allowClick){const T=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(T&&T[0]||s.target,T),e.emit("tap click",s),p<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=U(),le(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let u;if(o.followFinger?u=l?e.translate:-e.translate:u=-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}const m=u>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let T=0;T=c[T]&&u=c[T])&&(g=T,x=c[c.length-1]-c[c.length-2])}let h=null,b=null;o.rewind&&(e.isBeginning?b=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const v=(u-c[g])/x,S=go.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?h:g+S):e.slideTo(g)),e.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?e.slideTo(g+S):b!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(g+S):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:g+S),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function ge(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Vt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Nt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bt(t){const e=this;K(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Rt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ye=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:o}=t,a=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&r[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge,!0):t[c]("observerUpdate",ge,!0),n[l]("load",t.onLoad,{capture:!0})};function Ft(){const t=this,{params:e}=t;t.onTouchStart=_t.bind(t),t.onTouchMove=Gt.bind(t),t.onTouchEnd=Dt.bind(t),t.onDocumentTouchStart=Rt.bind(t),e.cssMode&&(t.onScroll=Nt.bind(t)),t.onClick=Vt.bind(t),t.onLoad=Bt.bind(t),ye(t,"on")}function $t(){ye(this,"off")}var Ht={attachEvents:Ft,detachEvents:$t};const ve=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kt(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=ve(t,s),d=ve(t,l),f=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof l[h]>"u")return;const b=s[h]&&s[h].enabled,v=l[h]&&l[h].enabled;b&&!v&&t[h].disable(),!b&&v&&t[h].enable()});const p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p),m=s.loop;p&&i&&t.changeDirection(),D(t.params,l);const g=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!g?t.disable():!f&&g&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),i&&(u?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!m&&x?(t.loopCreate(e),t.updateSlides()):m&&!x&&t.loopDestroy()),t.emit("breakpoint",l)}function Wt(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=V(),r=e==="window"?n.innerHeight:i.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function qt(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,o=Yt(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()}function Xt(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Kt={addClasses:qt,removeClasses:Xt};function Ut(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Zt={checkOverflow:Ut},de={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Jt(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){D(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){D(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),D(e,s)}}const re={eventsEmitter:Ke,update:lt,translate:ut,transition:gt,slide:yt,loop:It,grabCursor:zt,events:Ht,breakpoints:jt,checkOverflow:Zt,classes:Kt},ne={};let fe=class R{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r1){const d=[];return o.querySelectorAll(i.el).forEach(f=>{const p=D({},i,{el:f});d.push(new R(p))}),d}const a=this;a.__swiper__=!0,a.support=xe(),a.device=be({userAgent:i.userAgent}),a.browser=Ye(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const l={};a.modules.forEach(d=>{d({params:i,swiper:a,extendParams:Jt(i,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=D({},de,l);return a.params=D({},c,ne,i),a.originalParams=D({},a.params),a.passedParams=D({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=F(i,`.${s.slideClass}, swiper-slide`),r=pe(n[0]);return pe(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=F(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=r[c]?Math.ceil(r[c].swiperSlideSize):0,p;for(let u=c+1;ul&&(p=!0));for(let u=c-1;u>=0;u-=1)r[u]&&!p&&(f+=r[u].swiperSlideSize,d+=1,f>l&&(p=!0))}else if(e==="current")for(let f=c+1;f=0;f-=1)o[c]-o[f]{o.complete&&K(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):F(s,n())[0];return!o&&i.params.createElements&&(o=ae("div",i.params.wrapperClass),s.append(o),F(s,`.${i.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl"),wrongRTL:$(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?K(i,r):r.addEventListener("load",o=>{K(i,o.target)})}),oe(i),i.initialized=!0,oe(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:a}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,Ve(s)),s.destroyed=!0),null}static extendDefaults(e){D(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return de}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}};Object.keys(re).forEach(t=>{Object.keys(re[t]).forEach(e=>{fe.prototype[e]=re[t][e]})});fe.use([qe,Xe]);const Pe=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function H(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function k(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:H(e[s])&&H(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:k(t[s],e[s]):t[s]=e[s]})}function Ce(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Me(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ie(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Oe(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function Qt(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ei(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const c=n.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:d,pagination:f,navigation:p,scrollbar:u,virtual:m,thumbs:g}=e;let x,h,b,v,S,T,M,G;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(h=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(b=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&u&&!u.el&&(v=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const I=P=>{e[P]&&(e[P].destroy(),P==="navigation"?(e.isElement&&(e[P].prevEl.remove(),e[P].nextEl.remove()),d[P].prevEl=void 0,d[P].nextEl=void 0,e[P].prevEl=void 0,e[P].nextEl=void 0):(e.isElement&&e[P].el.remove(),d[P].el=void 0,e[P].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?T=!0:!d.loop&&s.loop?M=!0:G=!0),c.forEach(P=>{if(H(d[P])&&H(s[P]))Object.assign(d[P],s[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in s[P]&&!s[P].enabled&&I(P);else{const w=s[P];(w===!0||w===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?w===!1&&I(P):d[P]=s[P]}}),c.includes("controller")&&!h&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):n.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),n.includes("children")&&i&&d.loop&&(G=!0),x&&g.init()&&g.update(!0),h&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(d.scrollbar.el=a),u.init(),u.updateSize(),u.setTranslate()),S&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),r&&(d.navigation.nextEl=r),o&&(d.navigation.prevEl=o),p.init(),p.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(T||G)&&e.loopDestroy(),(M||G)&&e.loopCreate(),e.update()}function ti(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};k(i,de),i._emitClasses=!0,i.init=!1;const r={},o=Pe.map(l=>l.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?H(t[l])?(i[l]={},n[l]={},k(i[l],t[l]),k(n[l],t[l])):(i[l]=t[l],n[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:i.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:r[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{i[l]===!0&&(i[l]={}),i[l]===!1&&delete i[l]}),{params:i,passedParams:n,rest:r,events:s}}function ii(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:a}=t;Ce(e)&&s&&n&&(a.params.navigation.nextEl=s,a.originalParams.navigation.nextEl=s,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),Me(e)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),Ie(e)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(i)}function si(t,e,i,s,n){const r=[];if(!e)return r;const o=l=>{r.indexOf(l)<0&&r.push(l)};if(i&&s){const l=s.map(n),c=i.map(n);l.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return Pe.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(H(t[l])&&H(e[l])){const c=Object.keys(t[l]),d=Object.keys(e[l]);c.length!==d.length?o(l):(c.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}),d.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}))}else t[l]!==e[l]&&o(l)}),r}const ri=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e{Le(i)?e.push(i):i.props&&i.props.children&&ze(i.props.children).forEach(s=>e.push(s))}),e}function ni(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(t).forEach(s=>{if(Le(s))e.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const n=ze(s.props.children);n.length>0?n.forEach(r=>e.push(r)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:e,slots:i}}function li(t,e,i){if(!i)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},n=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,a=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,c=[];for(let d=a;d=r&&d<=o&&c.push(e[s(d)]);return c.map((d,f)=>z.cloneElement(d,{swiper:t,style:n,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function j(t,e){return typeof window>"u"?O.useEffect(t,e):O.useLayoutEffect(t,e)}const we=O.createContext(null),ai=O.createContext(null),oi=O.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:o,...a}=t===void 0?{}:t,l=!1;const[c,d]=O.useState("swiper"),[f,p]=O.useState(null),[u,m]=O.useState(!1),g=O.useRef(!1),x=O.useRef(null),h=O.useRef(null),b=O.useRef(null),v=O.useRef(null),S=O.useRef(null),T=O.useRef(null),M=O.useRef(null),G=O.useRef(null),{params:I,passedParams:P,rest:w,events:E}=ti(a),{slides:C,slots:y}=ni(r),L=()=>{m(!u)};Object.assign(I.on,{_containerClasses(_,N){d(N)}});const A=()=>{Object.assign(I.on,E),l=!0;const _={...I};if(delete _.wrapperClass,h.current=new fe(_),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=C;const N={cache:!1,slides:C,renderExternal:p,renderExternalUpdate:!1};k(h.current.params.virtual,N),k(h.current.originalParams.virtual,N)}};x.current||A(),h.current&&h.current.on("_beforeBreakpoint",L);const B=()=>{l||!E||!h.current||Object.keys(E).forEach(_=>{h.current.on(_,E[_])})},Q=()=>{!E||!h.current||Object.keys(E).forEach(_=>{h.current.off(_,E[_])})};O.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!g.current&&h.current&&(h.current.emitSlidesClasses(),g.current=!0)}),j(()=>{if(e&&(e.current=x.current),!!x.current)return h.current.destroyed&&A(),ii({el:x.current,nextEl:S.current,prevEl:T.current,paginationEl:M.current,scrollbarEl:G.current,swiper:h.current},I),o&&!h.current.destroyed&&o(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),j(()=>{B();const _=si(P,b.current,C,v.current,N=>N.key);return b.current=P,v.current=C,_.length&&h.current&&!h.current.destroyed&&ei({swiper:h.current,slides:C,passedParams:P,changedParams:_,nextEl:S.current,prevEl:T.current,scrollbarEl:G.current,paginationEl:M.current}),()=>{Q()}}),j(()=>{ri(h.current)},[f]);function Y(){return I.virtual?li(h.current,C,f):C.map((_,N)=>z.cloneElement(_,{swiper:h.current,swiperSlideIndex:N}))}return z.createElement(s,J({ref:x,className:Oe(`${c}${i?` ${i}`:""}`)},w),z.createElement(ai.Provider,{value:h.current},y["container-start"],z.createElement(n,{className:Qt(I.wrapperClass)},y["wrapper-start"],Y(),y["wrapper-end"]),Ce(I)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:S,className:"swiper-button-next"})),Ie(I)&&z.createElement("div",{ref:G,className:"swiper-scrollbar"}),Me(I)&&z.createElement("div",{ref:M,className:"swiper-pagination"}),y["container-end"]))});oi.displayName="Swiper";const di=O.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=t===void 0?{}:t;const f=O.useRef(null),[p,u]=O.useState("swiper-slide"),[m,g]=O.useState(!1);function x(S,T,M){T===f.current&&u(M)}j(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),e&&(e.current=f.current),!(!f.current||!r)){if(r.destroyed){p!=="swiper-slide"&&u("swiper-slide");return}return r.on("_slideClass",x),()=>{r&&r.off("_slideClass",x)}}}),j(()=>{r&&f.current&&!r.destroyed&&u(r.getSlideClasses(f.current))},[r]);const h={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof s=="function"?s(h):s,v=()=>{g(!0)};return z.createElement(i,J({ref:f,className:Oe(`${p}${n?` ${n}`:""}`),"data-swiper-slide-index":l,onLoad:v},d),o&&z.createElement(we.Provider,{value:h},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&z.createElement(we.Provider,{value:h},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"})))});di.displayName="SwiperSlide";export{di as S,oi as a,pe as b,ae as c,F as e,fi as m}; +import{r as O,b as z}from"./index-DdR0U16d.js";function ue(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ce(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:ue(e[i])&&ue(t[i])&&Object.keys(e[i]).length>0&&ce(t[i],e[i])})}const Se={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){const t=typeof document<"u"?document:{};return ce(t,Se),t}const Ge={document:Se,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function V(){const t=typeof window<"u"?window:{};return ce(t,Ge),t}function De(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Ve(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function le(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function U(){return Date.now()}function Ne(t){const e=V();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Be(t,e){e===void 0&&(e="x");const i=V();let s,n,r;const o=Ne(t);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function q(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Re(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function D(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(r)<0);for(let r=0,o=n.length;rr?"next":"prev",d=(p,u)=>c==="next"&&p>=u||c==="prev"&&p<=u,f=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/l,1),0),u=.5-Math.cos(p*Math.PI)/2;let m=r+u*(i-r);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[s]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:m})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(f)};f()}function F(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Z(t){try{console.warn(t);return}catch{}}function ae(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:De(e)),i}function Fe(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $e(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $(t,e){return V().getComputedStyle(t,null).getPropertyValue(e)}function pe(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function He(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function he(t,e,i){const s=V();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function fi(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let ee;function ke(){const t=V(),e=W();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function xe(){return ee||(ee=ke()),ee}let te;function We(t){let{userAgent:e}=t===void 0?{}:t;const i=xe(),s=V(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const f=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=n==="Win32";let m=n==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&g.indexOf(`${a}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!u&&(o.os="android",o.android=!0),(d||p||f)&&(o.os="ios",o.ios=!0),o}function be(t){return t===void 0&&(t={}),te||(te=We(t)),te}let ie;function je(){const t=V(),e=be();let i=!1;function s(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(s()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=l<16||l===16&&c<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),o=r||n&&e.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:o,isWebView:n}}function Ye(){return ie||(ie=je()),ie}function qe(t){let{swiper:e,on:i,emit:s}=t;const n=V();let r=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(f=>{o=n.requestAnimationFrame(()=>{const{width:p,height:u}=e;let m=p,g=u;f.forEach(x=>{let{contentBoxSize:h,contentRect:b,target:v}=x;v&&v!==e.el||(m=b?b.width:(h[0]||h).inlineSize,g=b?b.height:(h[0]||h).blockSize)}),(m!==p||g!==u)&&a()})}),r.observe(e.el))},c=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",d)})}function Xe(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],o=V(),a=function(d,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,u=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){n("observerUpdate",m[0]);return}const g=function(){n("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(g):o.setTimeout(g,0)});u.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),r.push(u)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=He(e.hostEl);for(let f=0;f{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c)}var Ke={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),a=0;a=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...i])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(s,i)})}),t}};function Ue(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($(s,"padding-left")||0,10)-parseInt($(s,"padding-right")||0,10),i=i-parseInt($(s,"padding-top")||0,10)-parseInt($(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ze(){const t=this;function e(w,E){return parseFloat(w.getPropertyValue(t.getDirectionLabel(E))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=F(n,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:d.length;let p=[];const u=[],m=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const h=t.snapGrid.length,b=t.slidesGrid.length;let v=i.spaceBetween,S=-g,T=0,M=0;if(typeof r>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*r:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,d.forEach(w=>{o?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(X(s,"--swiper-centered-offset-before",""),X(s,"--swiper-centered-offset-after",""));const G=i.grid&&i.grid.rows>1&&t.grid;G?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let I;const P=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&p.push(t.virtualSize-r)}if(l&&i.loop){const w=m[0]+v;if(i.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let y=0;y!i.cssMode||i.loop?!0:C!==d.length-1).forEach(E=>{E.style[w]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;m.forEach(C=>{w+=C+(v||0)}),w-=v;const E=w-r;p=p.map(C=>C<=0?-g:C>E?E+x:C)}if(i.centerInsufficientSlides){let w=0;if(m.forEach(E=>{w+=E+(v||0)}),w-=v,w{p[y]=C-E}),u.forEach((C,y)=>{u[y]=C+E})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){X(s,"--swiper-centered-offset-before",`${-p[0]}px`),X(s,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const w=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+E)}if(f!==c&&t.emit("slidesLengthChange"),p.length!==h&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,E=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?E||t.el.classList.add(w):E&&t.el.classList.remove(w)}}function Je(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>s?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(r=0;re.slides.length&&!s)break;i.push(o(a))}else i.push(o(e.activeIndex));for(r=0;rn?a:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Qe(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&u<=e.size-e.slidesSizesGrid[l];(u>=0&&u1&&m<=e.size||u<=0&&m>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),s[l].classList.add(i.slideVisibleClass)),g&&s[l].classList.add(i.slideFullyVisibleClass),c.progress=n?-f:f,c.originalProgress=n?-p:p}}function tt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(s===0)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,o=f||n>=1,d&&(n=0),f&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],u=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=p?a=(g-p)/m:a=(g+m-u)/m,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function it(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&i.grid.rows>1,a=f=>F(s,`.${i.slideClass}${f}, swiper-slide${f}`)[0];e.forEach(f=>{f.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l,c,d;if(r)if(i.loop){let f=n-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(f=>f.column===n)[0],d=e.filter(f=>f.column===n+1)[0],c=e.filter(f=>f.column===n-1)[0]):l=e[n];l&&(l.classList.add(i.slideActiveClass),o?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=$e(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),c=Fe(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const K=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},oe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=n,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+s+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&se(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const a=(o%i+i)%i;(ar)&&se(t,a)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,i-1);o+=1)o!==n&&(o>r||o=e[r]&&s=e[r]&&s=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function rt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=t,c;const d=u=>{let m=u-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=st(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const f=e.grid&&n.grid&&n.grid.rows>1;let p;if(e.virtual&&n.virtual.enabled&&n.loop)p=d(l);else if(f){const u=e.slides.filter(g=>g.column===l)[0];let m=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(u),0)),p=Math.floor(m/n.grid.rows)}else if(e.slides[l]){const u=e.slides[l].getAttribute("data-swiper-slide-index");u?p=parseInt(u,10):p=l}else p=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:r,activeIndex:l}),e.initialized&&oe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function nt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!n&&a.matches&&a.matches(`.${s.slideClass}, swiper-slide`)&&(n=a)});let r=!1,o;if(n){for(let a=0;al?d=l:s&&to?a="next":r=l.length&&(x=l.length-1);const h=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=T&&S=T&&S=T&&(o=v)}if(r.initialized&&o!==f&&(!r.allowSlideNext&&(p?h>r.translate&&h>r.minTranslate():hr.translate&&h>r.maxTranslate()&&(f||0)!==o))return!1;o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(h);let b;if(o>f?b="next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[v?"scrollLeft":"scrollTop"]=S})):u[v?"scrollLeft":"scrollTop"]=S,T&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Te({swiper:r,targetPosition:S,side:v?"left":"top"}),!0;u.scrollTo({[v?"left":"top"]:S,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(h),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,b),e===0?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function wt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o=o+n.virtual.slidesBefore;else{let a;if(r){const p=o*n.params.grid.rows;a=n.slides.filter(u=>u.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=n.getSlideIndexByData(o);const l=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=l-au.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,i,s)}),n}function St(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)}function Tt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=a?s.translate:-s.translate;function p(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const u=p(f),m=r.map(h=>p(h));let g=r[m.indexOf(u)-1];if(typeof g>"u"&&n.cssMode){let h;r.forEach((b,v)=>{u>=b&&(h=v)}),typeof h<"u"&&(g=r[h>0?h-1:h])}let x=0;if(typeof g<"u"&&(x=o.indexOf(g),x<0&&(x=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(x=x-s.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),n.rewind&&s.isBeginning){const h=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(h,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(x,t,e,i)}),!0;return s.slideTo(x,t,e,i)}function xt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;if(!s.destroyed)return s.slideTo(s.activeIndex,t,e,i)}function bt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const c=n.snapGrid[a],d=n.snapGrid[a+1];l-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[a-1],d=n.snapGrid[a];l-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function Et(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var yt={slideTo:vt,slideToLoop:wt,slideNext:St,slidePrev:Tt,slideReset:xt,slideToClosest:bt,slideToClickedSlide:Et};function Pt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{F(s,`.${i.slideClass}, swiper-slide`).forEach((f,p)=>{f.setAttribute("data-swiper-slide-index",p)})},r=e.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(r?i.grid.rows:1),a=e.slides.length%o!==0,l=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let f=0;f1;c.length"u"?r=l.getSlideIndex(c.filter(y=>y.classList.contains(u.slideActiveClass))[0]):T=r;const M=s==="next"||!s,G=s==="prev"||!s;let I=0,P=0;const w=b?Math.ceil(c.length/u.grid.rows):c.length,C=(b?c[r].column:r)+(m&&typeof n>"u"?-g/2+.5:0);if(C=0;B-=1)c[B].column===A&&v.push(B)}else v.push(w-L-1)}}else if(C+g>w-h){P=Math.max(C-(w-h*2),x);for(let y=0;y{A.column===L&&S.push(B)}):S.push(L)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),G&&v.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.prepend(c[y]),c[y].swiperLoopMoveDOM=!1}),M&&S.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.append(c[y]),c[y].swiperLoopMoveDOM=!1}),l.recalcSlides(),u.slidesPerView==="auto"?l.updateSlides():b&&(v.length>0&&G||S.length>0&&M)&&l.slides.forEach((y,L)=>{l.grid.updateSlide(L,y,l.slides)}),u.watchSlidesProgress&&l.updateSlidesOffset(),i){if(v.length>0&&G){if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T+I]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T+Math.ceil(I),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else if(n){const y=b?v.length/u.grid.rows:v.length;l.slideTo(l.activeIndex+y,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&M)if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T-P]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T-P,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else{const y=b?S.length/u.grid.rows:S.length;l.slideTo(l.activeIndex-y,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const y={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix({...y,slideTo:L.params.slidesPerView===u.slidesPerView?i:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...y,slideTo:l.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}l.emit("loopFix")}function Mt(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var It={loopCreate:Pt,loopFix:Ct,loopDestroy:Mt};function Ot(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Lt(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var zt={setGrabCursor:Ot,unsetGrabCursor:Lt};function At(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===V())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function me(t,e,i){const s=V(),{params:n}=t,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return r&&(i<=o||i>=s.innerWidth-o)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function _t(t){const e=this,i=W();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){me(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:a}=e;if(!a||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=s.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(l)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(l=d[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(p?At(f,l):l.closest(f))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const u=o.currentX,m=o.currentY;if(!me(e,s,u))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=m,n.touchStartTime=U(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let g=!0;l.matches(n.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const x=g&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||x)&&!l.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function Gt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=i;if(!a||!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(M=>M.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}const d=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=f;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f}),s.touchStartTime=U());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(fr.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(dr.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=f;const p=r.currentX-r.startX,u=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(p**2+u**2)"u"){let M;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:p*p+u*u>=25&&(M=Math.atan2(Math.abs(u),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>n.touchAngle:90-M>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let m=i.isHorizontal()?p:u,g=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,g=-g);const x=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const h=i.params.loop&&!n.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(h&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&x!==i.touchesDirection&&h&&b&&Math.abs(m)>=1){Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let S=!0,T=n.resistanceRatio;if(n.touchReleaseOnEdges&&(T=0),m>0?(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**T))):m<0&&(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Dt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(T=>T.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=e;if(!d||!o.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}o.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=U(),p=f-i.touchStartTime;if(e.allowClick){const T=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(T&&T[0]||s.target,T),e.emit("tap click",s),p<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=U(),le(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let u;if(o.followFinger?u=l?e.translate:-e.translate:u=-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}const m=u>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let T=0;T=c[T]&&u=c[T])&&(g=T,x=c[c.length-1]-c[c.length-2])}let h=null,b=null;o.rewind&&(e.isBeginning?b=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const v=(u-c[g])/x,S=go.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?h:g+S):e.slideTo(g)),e.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?e.slideTo(g+S):b!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(g+S):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:g+S),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function ge(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Vt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Nt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bt(t){const e=this;K(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Rt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ye=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:o}=t,a=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&r[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge,!0):t[c]("observerUpdate",ge,!0),n[l]("load",t.onLoad,{capture:!0})};function Ft(){const t=this,{params:e}=t;t.onTouchStart=_t.bind(t),t.onTouchMove=Gt.bind(t),t.onTouchEnd=Dt.bind(t),t.onDocumentTouchStart=Rt.bind(t),e.cssMode&&(t.onScroll=Nt.bind(t)),t.onClick=Vt.bind(t),t.onLoad=Bt.bind(t),ye(t,"on")}function $t(){ye(this,"off")}var Ht={attachEvents:Ft,detachEvents:$t};const ve=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kt(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=ve(t,s),d=ve(t,l),f=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof l[h]>"u")return;const b=s[h]&&s[h].enabled,v=l[h]&&l[h].enabled;b&&!v&&t[h].disable(),!b&&v&&t[h].enable()});const p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p),m=s.loop;p&&i&&t.changeDirection(),D(t.params,l);const g=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!g?t.disable():!f&&g&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),i&&(u?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!m&&x?(t.loopCreate(e),t.updateSlides()):m&&!x&&t.loopDestroy()),t.emit("breakpoint",l)}function Wt(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=V(),r=e==="window"?n.innerHeight:i.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function qt(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,o=Yt(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()}function Xt(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Kt={addClasses:qt,removeClasses:Xt};function Ut(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Zt={checkOverflow:Ut},de={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Jt(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){D(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){D(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),D(e,s)}}const re={eventsEmitter:Ke,update:lt,translate:ut,transition:gt,slide:yt,loop:It,grabCursor:zt,events:Ht,breakpoints:jt,checkOverflow:Zt,classes:Kt},ne={};let fe=class R{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r1){const d=[];return o.querySelectorAll(i.el).forEach(f=>{const p=D({},i,{el:f});d.push(new R(p))}),d}const a=this;a.__swiper__=!0,a.support=xe(),a.device=be({userAgent:i.userAgent}),a.browser=Ye(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const l={};a.modules.forEach(d=>{d({params:i,swiper:a,extendParams:Jt(i,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=D({},de,l);return a.params=D({},c,ne,i),a.originalParams=D({},a.params),a.passedParams=D({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=F(i,`.${s.slideClass}, swiper-slide`),r=pe(n[0]);return pe(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=F(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=r[c]?Math.ceil(r[c].swiperSlideSize):0,p;for(let u=c+1;ul&&(p=!0));for(let u=c-1;u>=0;u-=1)r[u]&&!p&&(f+=r[u].swiperSlideSize,d+=1,f>l&&(p=!0))}else if(e==="current")for(let f=c+1;f=0;f-=1)o[c]-o[f]{o.complete&&K(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):F(s,n())[0];return!o&&i.params.createElements&&(o=ae("div",i.params.wrapperClass),s.append(o),F(s,`.${i.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl"),wrongRTL:$(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?K(i,r):r.addEventListener("load",o=>{K(i,o.target)})}),oe(i),i.initialized=!0,oe(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:a}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,Ve(s)),s.destroyed=!0),null}static extendDefaults(e){D(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return de}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}};Object.keys(re).forEach(t=>{Object.keys(re[t]).forEach(e=>{fe.prototype[e]=re[t][e]})});fe.use([qe,Xe]);const Pe=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function H(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function k(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:H(e[s])&&H(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:k(t[s],e[s]):t[s]=e[s]})}function Ce(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Me(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ie(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Oe(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function Qt(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ei(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const c=n.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:d,pagination:f,navigation:p,scrollbar:u,virtual:m,thumbs:g}=e;let x,h,b,v,S,T,M,G;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(h=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(b=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&u&&!u.el&&(v=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const I=P=>{e[P]&&(e[P].destroy(),P==="navigation"?(e.isElement&&(e[P].prevEl.remove(),e[P].nextEl.remove()),d[P].prevEl=void 0,d[P].nextEl=void 0,e[P].prevEl=void 0,e[P].nextEl=void 0):(e.isElement&&e[P].el.remove(),d[P].el=void 0,e[P].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?T=!0:!d.loop&&s.loop?M=!0:G=!0),c.forEach(P=>{if(H(d[P])&&H(s[P]))Object.assign(d[P],s[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in s[P]&&!s[P].enabled&&I(P);else{const w=s[P];(w===!0||w===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?w===!1&&I(P):d[P]=s[P]}}),c.includes("controller")&&!h&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):n.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),n.includes("children")&&i&&d.loop&&(G=!0),x&&g.init()&&g.update(!0),h&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(d.scrollbar.el=a),u.init(),u.updateSize(),u.setTranslate()),S&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),r&&(d.navigation.nextEl=r),o&&(d.navigation.prevEl=o),p.init(),p.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(T||G)&&e.loopDestroy(),(M||G)&&e.loopCreate(),e.update()}function ti(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};k(i,de),i._emitClasses=!0,i.init=!1;const r={},o=Pe.map(l=>l.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?H(t[l])?(i[l]={},n[l]={},k(i[l],t[l]),k(n[l],t[l])):(i[l]=t[l],n[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:i.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:r[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{i[l]===!0&&(i[l]={}),i[l]===!1&&delete i[l]}),{params:i,passedParams:n,rest:r,events:s}}function ii(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:a}=t;Ce(e)&&s&&n&&(a.params.navigation.nextEl=s,a.originalParams.navigation.nextEl=s,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),Me(e)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),Ie(e)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(i)}function si(t,e,i,s,n){const r=[];if(!e)return r;const o=l=>{r.indexOf(l)<0&&r.push(l)};if(i&&s){const l=s.map(n),c=i.map(n);l.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return Pe.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(H(t[l])&&H(e[l])){const c=Object.keys(t[l]),d=Object.keys(e[l]);c.length!==d.length?o(l):(c.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}),d.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}))}else t[l]!==e[l]&&o(l)}),r}const ri=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e{Le(i)?e.push(i):i.props&&i.props.children&&ze(i.props.children).forEach(s=>e.push(s))}),e}function ni(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(t).forEach(s=>{if(Le(s))e.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const n=ze(s.props.children);n.length>0?n.forEach(r=>e.push(r)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:e,slots:i}}function li(t,e,i){if(!i)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},n=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,a=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,c=[];for(let d=a;d=r&&d<=o&&c.push(e[s(d)]);return c.map((d,f)=>z.cloneElement(d,{swiper:t,style:n,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function j(t,e){return typeof window>"u"?O.useEffect(t,e):O.useLayoutEffect(t,e)}const we=O.createContext(null),ai=O.createContext(null),oi=O.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:o,...a}=t===void 0?{}:t,l=!1;const[c,d]=O.useState("swiper"),[f,p]=O.useState(null),[u,m]=O.useState(!1),g=O.useRef(!1),x=O.useRef(null),h=O.useRef(null),b=O.useRef(null),v=O.useRef(null),S=O.useRef(null),T=O.useRef(null),M=O.useRef(null),G=O.useRef(null),{params:I,passedParams:P,rest:w,events:E}=ti(a),{slides:C,slots:y}=ni(r),L=()=>{m(!u)};Object.assign(I.on,{_containerClasses(_,N){d(N)}});const A=()=>{Object.assign(I.on,E),l=!0;const _={...I};if(delete _.wrapperClass,h.current=new fe(_),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=C;const N={cache:!1,slides:C,renderExternal:p,renderExternalUpdate:!1};k(h.current.params.virtual,N),k(h.current.originalParams.virtual,N)}};x.current||A(),h.current&&h.current.on("_beforeBreakpoint",L);const B=()=>{l||!E||!h.current||Object.keys(E).forEach(_=>{h.current.on(_,E[_])})},Q=()=>{!E||!h.current||Object.keys(E).forEach(_=>{h.current.off(_,E[_])})};O.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!g.current&&h.current&&(h.current.emitSlidesClasses(),g.current=!0)}),j(()=>{if(e&&(e.current=x.current),!!x.current)return h.current.destroyed&&A(),ii({el:x.current,nextEl:S.current,prevEl:T.current,paginationEl:M.current,scrollbarEl:G.current,swiper:h.current},I),o&&!h.current.destroyed&&o(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),j(()=>{B();const _=si(P,b.current,C,v.current,N=>N.key);return b.current=P,v.current=C,_.length&&h.current&&!h.current.destroyed&&ei({swiper:h.current,slides:C,passedParams:P,changedParams:_,nextEl:S.current,prevEl:T.current,scrollbarEl:G.current,paginationEl:M.current}),()=>{Q()}}),j(()=>{ri(h.current)},[f]);function Y(){return I.virtual?li(h.current,C,f):C.map((_,N)=>z.cloneElement(_,{swiper:h.current,swiperSlideIndex:N}))}return z.createElement(s,J({ref:x,className:Oe(`${c}${i?` ${i}`:""}`)},w),z.createElement(ai.Provider,{value:h.current},y["container-start"],z.createElement(n,{className:Qt(I.wrapperClass)},y["wrapper-start"],Y(),y["wrapper-end"]),Ce(I)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:S,className:"swiper-button-next"})),Ie(I)&&z.createElement("div",{ref:G,className:"swiper-scrollbar"}),Me(I)&&z.createElement("div",{ref:M,className:"swiper-pagination"}),y["container-end"]))});oi.displayName="Swiper";const di=O.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=t===void 0?{}:t;const f=O.useRef(null),[p,u]=O.useState("swiper-slide"),[m,g]=O.useState(!1);function x(S,T,M){T===f.current&&u(M)}j(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),e&&(e.current=f.current),!(!f.current||!r)){if(r.destroyed){p!=="swiper-slide"&&u("swiper-slide");return}return r.on("_slideClass",x),()=>{r&&r.off("_slideClass",x)}}}),j(()=>{r&&f.current&&!r.destroyed&&u(r.getSlideClasses(f.current))},[r]);const h={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof s=="function"?s(h):s,v=()=>{g(!0)};return z.createElement(i,J({ref:f,className:Oe(`${p}${n?` ${n}`:""}`),"data-swiper-slide-index":l,onLoad:v},d),o&&z.createElement(we.Provider,{value:h},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&z.createElement(we.Provider,{value:h},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"})))});di.displayName="SwiperSlide";export{di as S,oi as a,pe as b,ae as c,F as e,fi as m}; diff --git a/assets/useDownloadCertificate-Gsl9Kioe.js b/assets/useDownloadCertificate-DQ0RD7nc.js similarity index 87% rename from assets/useDownloadCertificate-Gsl9Kioe.js rename to assets/useDownloadCertificate-DQ0RD7nc.js index c027607e..7ebd8379 100644 --- a/assets/useDownloadCertificate-Gsl9Kioe.js +++ b/assets/useDownloadCertificate-DQ0RD7nc.js @@ -1 +1 @@ -import{r as n,D as i}from"./index-Bo8UkscO.js";const f=()=>{const[c,o]=n.useState(-1),{generateCertificate:r}=n.useContext(i.EscolaLMSContext);return{loadingId:c,downloadCertificate:async(a,s)=>{o(a);try{const t=await r(a);if(t){const e=document.createElement("a");document.body.appendChild(e),e.setAttribute("href",URL.createObjectURL(new Blob([t]))),e.setAttribute("download",`${s||"Certificate"}.pdf`),e.style.display="",e.click(),document.body.removeChild(e)}}catch(t){console.log(t)}finally{o(-1)}}}};export{f as u}; +import{r as n,D as i}from"./index-DdR0U16d.js";const f=()=>{const[c,o]=n.useState(-1),{generateCertificate:r}=n.useContext(i.EscolaLMSContext);return{loadingId:c,downloadCertificate:async(a,s)=>{o(a);try{const t=await r(a);if(t){const e=document.createElement("a");document.body.appendChild(e),e.setAttribute("href",URL.createObjectURL(new Blob([t]))),e.setAttribute("download",`${s||"Certificate"}.pdf`),e.style.display="",e.click(),document.body.removeChild(e)}}catch(t){console.log(t)}finally{o(-1)}}}};export{f as u}; diff --git a/assets/useFetchCourses-C-CMvnG8.js b/assets/useFetchCourses-CkVD5k4g.js similarity index 81% rename from assets/useFetchCourses-C-CMvnG8.js rename to assets/useFetchCourses-CkVD5k4g.js index 27834e44..51236107 100644 --- a/assets/useFetchCourses-C-CMvnG8.js +++ b/assets/useFetchCourses-CkVD5k4g.js @@ -1 +1 @@ -import{r as e,D as i}from"./index-Bo8UkscO.js";const C=s=>{const[u,o]=e.useState(),[n,r]=e.useState(!0),{fetchCourses:c}=e.useContext(i.EscolaLMSContext),a=async f=>{r(!0);try{const t=await c(f);t&&o(t)}catch(t){console.error(t),o(void 0)}finally{r(!1)}};return e.useEffect(()=>{s&&a(s)},[c]),{courses:u,loading:n,fetchCoursesData:a}};export{C as u}; +import{r as e,D as i}from"./index-DdR0U16d.js";const C=s=>{const[u,o]=e.useState(),[n,r]=e.useState(!0),{fetchCourses:c}=e.useContext(i.EscolaLMSContext),a=async f=>{r(!0);try{const t=await c(f);t&&o(t)}catch(t){console.error(t),o(void 0)}finally{r(!1)}};return e.useEffect(()=>{s&&a(s)},[c]),{courses:u,loading:n,fetchCoursesData:a}};export{C as u}; diff --git a/assets/useRoles-O1Qe8-YL.js b/assets/useRoles-Bi4GxnzU.js similarity index 82% rename from assets/useRoles-O1Qe8-YL.js rename to assets/useRoles-Bi4GxnzU.js index aab2020e..9146ded5 100644 --- a/assets/useRoles-O1Qe8-YL.js +++ b/assets/useRoles-Bi4GxnzU.js @@ -1 +1 @@ -import{r as o,h as n}from"./index-Bo8UkscO.js";const l=()=>{const{user:e}=o.useContext(n.EscolaLMSContext),u=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("tutor"))},[e]),r=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("student"))},[e]);return{isTutor:u,isStudent:r}};export{l as u}; +import{r as o,h as n}from"./index-DdR0U16d.js";const l=()=>{const{user:e}=o.useContext(n.EscolaLMSContext),u=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("tutor"))},[e]),r=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("student"))},[e]);return{isTutor:u,isStudent:r}};export{l as u}; diff --git a/assets/useSearchParams-CMuS-qVd.js b/assets/useSearchParams-DwoVLtwq.js similarity index 93% rename from assets/useSearchParams-CMuS-qVd.js rename to assets/useSearchParams-DwoVLtwq.js index 3480752c..e9ac218d 100644 --- a/assets/useSearchParams-CMuS-qVd.js +++ b/assets/useSearchParams-DwoVLtwq.js @@ -1 +1 @@ -import{q as S}from"./base-C7euzKDi.js";import{k as g,i as f,r as t}from"./index-Bo8UkscO.js";const A=()=>{const{search:s,pathname:c}=g(),o=f(),a=t.useMemo(()=>new URLSearchParams(s),[s]),m=t.useCallback(e=>new URLSearchParams(s).get(e),[s]),l=t.useCallback(e=>new URLSearchParams(s).getAll(e),[s]),i=t.useCallback((e,r)=>{!r||r===""?a.delete(e):a.set(e,r),o.push({pathname:c,search:a.toString()})},[o,c,a]),u=t.useCallback(e=>{const r=new URLSearchParams;return Object.entries(e).forEach(([n,h])=>{Array.isArray(h)?h.forEach(b=>{r.append(`${n}`,b)}):r.append(n,h)}),r.toString()},[]),p=t.useCallback(e=>{o.push({pathname:c,search:e?u(e):void 0})},[o,u,c]),y=t.useCallback((e,r)=>{a.delete(e),r.forEach(n=>{a.append(e,`${n}`)}),o.push({pathname:c,search:a.toString()})},[o,c,a]),P=t.useMemo(()=>S.parse(s),[s]);return{query:a,getQueryValueByName:m,getAllQueryValueByName:l,setQueryParam:i,setPathname:p,setQueryArrayParam:y,paramsToObject:P,objectToParam:u}};export{A as u}; +import{q as S}from"./base-C7euzKDi.js";import{k as g,i as f,r as t}from"./index-DdR0U16d.js";const A=()=>{const{search:s,pathname:c}=g(),o=f(),a=t.useMemo(()=>new URLSearchParams(s),[s]),m=t.useCallback(e=>new URLSearchParams(s).get(e),[s]),l=t.useCallback(e=>new URLSearchParams(s).getAll(e),[s]),i=t.useCallback((e,r)=>{!r||r===""?a.delete(e):a.set(e,r),o.push({pathname:c,search:a.toString()})},[o,c,a]),u=t.useCallback(e=>{const r=new URLSearchParams;return Object.entries(e).forEach(([n,h])=>{Array.isArray(h)?h.forEach(b=>{r.append(`${n}`,b)}):r.append(n,h)}),r.toString()},[]),p=t.useCallback(e=>{o.push({pathname:c,search:e?u(e):void 0})},[o,u,c]),y=t.useCallback((e,r)=>{a.delete(e),r.forEach(n=>{a.append(e,`${n}`)}),o.push({pathname:c,search:a.toString()})},[o,c,a]),P=t.useMemo(()=>S.parse(s),[s]);return{query:a,getQueryValueByName:m,getAllQueryValueByName:l,setQueryParam:i,setPathname:p,setQueryArrayParam:y,paramsToObject:P,objectToParam:u}};export{A as u}; diff --git a/assets/warning-C5gOjCvf.js b/assets/warning-C5gOjCvf.js deleted file mode 100644 index ce25fbe8..00000000 --- a/assets/warning-C5gOjCvf.js +++ /dev/null @@ -1 +0,0 @@ -import{g as a}from"./index-Bo8UkscO.js";var r=function(){},n=r;const t=a(n);export{n as a,t as w}; diff --git a/assets/warning-Cy01Vo2F.js b/assets/warning-Cy01Vo2F.js new file mode 100644 index 00000000..accac4cf --- /dev/null +++ b/assets/warning-Cy01Vo2F.js @@ -0,0 +1 @@ +import{g as a}from"./index-DdR0U16d.js";var r=function(){},n=r;const t=a(n);export{n as a,t as w}; diff --git a/index.html b/index.html index 60feb407..d80ec69c 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ window.VITE_APP_BASENAME = null; window.VITE_APP_ROUTING_TYPE = null; - +