PageSourceSearch

https://app.puef.ai/assets/progress.page-B40lKx4M.js

js puef.ai collected 2026-10-05 15:01:17 UTC 148,535 bytes, 27 lines download raw bytes

1import{r as x,j as d,c as K,u as We,s as Yn,a as Mt,b as Rt,d as Be,e as ee,f as It,g as oo,i as so,L as ut,h as Vn,k as io,B as se,D as Gn,l as Kn,m as Xn,n as Qn,o as Jn,F as Zn,p as ze,R as N,q as et,t as tt,v as ao,S as lo,w as co,x as uo,H as fo,M as Xt,y as po}from"./index-B4_lKB0j.js";import{g as ho,u as mo,V as go,r as yo,a as bo,b as vo}from"./index-DrpVUG_w.js";import{Q as be,M as xo,u as wo,a as So}from"./module-progress-3imittHq.js";import{u as Oo,M as Eo,S as Po,a as Qt,b as Jt,c as Ot,T as Et,d as To,e as Co,E as No,f as Xe,g as jo,h as ko}from"./review_exam_icon-CBPhmZ15.js";import{s as Mo,S as Ro}from"./search_icon-CSlyrV_Y.js";import{a as er,m as Lt,b as ot,f as ft,c as Io,S as Lo,M as Do,d as Ao,e as Fo,g as _o,T as Wo}from"./metrics-C1oYPf8N.js";import{S as tr,a as nr}from"./chevron_right_icon-DvCXrcJA.js";import{u as rr,S as Bo}from"./star_icon-Cd6kJaBM.js";import{S as zo}from"./progress_analytics_icon-Bpk1suwI.js";import{S as $o}from"./flag_icon-CN-cjVKi.js";import{S as or}from"./marker_icon-C2eBNoGY.js";import{S as Ho}from"./chevron_down_icon-WuaaMogj.js";import{S as qo}from"./bookmark_icon-B7uoWVtU.js";import"./utils-DgU0FEbZ.js";import"./progress-badge-BfDD-pA0.js";import"./check_icon-DcKto_lO.js";import"./tooltip-wrapper--2PwgTMl.js";import"./check_circle_gradient_icon-D4RNYn_F.js";import"./clock_icon-DIppvskh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3b04a436aaa09b871bbc9aaf912981fe6a3097f5"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc086bdb-df72-48a5-b48d-9a24e9644672",e._sentryDebugIdIdentifier="sentry-dbid-bc086bdb-df72-48a5-b48d-9a24e9644672")}catch{}})();function Uo({title:e,titleId:t,...n},r){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))}const Yo=x.forwardRef(Uo);function Vo({title:e,titleId:t,...n},r){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?x.createElement("title",{id:t},e):null,x.createElement("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z",clipRule:"evenodd"}))}const Go=x.forwardRef(Vo),Ko=({progress:e,className:t,progressClassName:n,customColor:r,color:o,target:s})=>d.jsxs("div",{className:K("relative h-1.5 bg-border rounded-full overflow-hidden w-[200px]",t),children:[d.jsx("div",{className:K("absolute left-0 top-0 h-full rounded-full transition-all duration-300",r&&r,n),style:{width:`${e}%`,backgroundColor:r?void 0:o??ho(e)}}),s!=null&&d.jsx("div",{"aria-hidden":!0,"data-testid":"progress-bar-target",className:"absolute top-0 h-full w-0.5 -translate-x-1/2 bg-navy-blue/30",style:{left:`${s}%`}})]}),Xo=(e,t)=>{switch(e.status){case"pending":return t.pending();case"error":return t.error(e.error);case"success":return t.success(e.data)}},Dt=()=>We({queryKey:["academic-session"],queryFn:()=>Be.analytics.getAcademicSession({}),select:e=>e.data,staleTime:1e3*60*60}),Qo=()=>We({queryKey:["mastery-thresholds"],queryFn:()=>Be.analytics.getMasteryThresholds({}),select:e=>e.data,staleTime:1e3*60*60,gcTime:1e3*60*60*2}),Jo=10,Zo=200,sr=(e,t,n)=>[Yn(e),...[t,n].map(r=>(r??"").trim().toLowerCase())].join("|"),Zt=sr,es=()=>{const{data:e}=Mt(),{data:t}=Dt(),n=Rt(o=>o.testDefinitionId),r=e?.id;return We({queryKey:["student-mastery",r,n,t?.startDate],queryFn:()=>
1Be.analytics.getSummary({scopeType:"student",scopeId:r,startDate:t.startDate,endDate:t.endDate,subjectCode:"ALL",gradeLevel:"ALL",testDefinitionId:n||void 0}),enabled:!!r&&!!t?.startDate&&!!t?.endDate,staleTime:1e3*60*5,select:o=>{const s=o.data.knowledgeMasteryPct;return s==null?null:s/100}})},en=(e,t)=>{const{data:n}=Mt(),{data:r}=Dt(),o=Rt(i=>i.testDefinitionId),s=n?.id;return We({queryKey:["student-skills",s,o,e,r?.startDate],queryFn:()=>Be.analytics.getSkills({scopeType:"student",scopeId:s,startDate:r.startDate,endDate:r.endDate,groupBy:e,subjectCode:"ALL",gradeLevel:"ALL",testDefinitionId:o||void 0}),enabled:(t?.enabled??!0)&&!!s&&!!r?.startDate&&!!r?.endDate,staleTime:1e3*60*5,select:i=>{const a=new Map;return i.data.skills.forEach(l=>{const u=l.questionAttempts??0,f=l.activeTimeSeconds??0;a.set(sr(l.subjectCode,l.topicLabel,l.subtopicLabel),{attempts:u,correct:l.correctAttempts??0,incorrect:l.incorrectAttempts??0,accuracyPct:u>0?l.accuracyPct??0:null,activeTimeSeconds:f,paceSeconds:u>0?f/u:null})}),a}})},De=e=>(e??"").trim().toLowerCase(),ir=(e,t)=>`${De(e)}\0${De(t)}`,ts=()=>{const{data:e}=Mt(),{data:t}=Dt(),n=Rt(o=>o.testDefinitionId),r=e?.id;return We({queryKey:["recent-attempts",r,n,t?.startDate],queryFn:()=>Be.analytics.getRecentQuestions({studentId:r,limit:Zo,testDefinitionId:n||void 0,startDate:t.startDate,endDate:t.endD
1ate,answeredOnly:!0}),enabled:!!r&&!!t?.startDate&&!!t?.endDate,staleTime:1e3*60*5,select:o=>{const s=new Map,i=(l,u)=>{const f=s.get(l)??[];f.push(u),s.set(l,f)};[...o.data.data].reverse().forEach(l=>{const u=De(l.topicLabel);if(!u)return;const f={correct:l.status==="correct",activeMs:l.activeTimeSec??0};i(u,f),De(l.subtopicLabel)&&i(ir(l.topicLabel,l.subtopicLabel),f)});const a=new Map;return s.forEach((l,u)=>{const f=[],c=[];l.forEach((p,h)=>{const m=l.slice(Math.max(0,h-Jo+1),h+1),y=m.filter(T=>T.correct).length,E=m.reduce((T,w)=>T+w.activeMs,0)/1e3;f.push(Math.round(y/m.length*100)),c.push(E/m.length)}),a.set(u,{accuracy:f.slice(-10),pace:c.slice(-10)})}),a}})},tn=(e,t,n,r,o)=>{if(t==="accuracy"){const s=n?n.correct+n.incorrect:0;return{value:n?.accuracyPct==null?"—":`${Math.round(n.accuracyPct)}%`,tone:n?.accuracyPct==null?"neutral":ot(n.accuracyPct),chart:r?.accuracy??[],counts:n?{correct:n.correct,total:s}:null}}return t==="pace"?{value:ft(n?.paceSeconds),tone:"neutral",chart:r?.pace??[],counts:null}:{value:`${e.percentage}%`,tone:Lt(e.currentMastery,o),chart:e.progress,counts:null}},nn=e=>e?.length?e:null,ns=(e,t,n,r,o)=>{if(t==="pace"){const i=nn(r?.pace);return i?{fill:null,value:ft(n?.paceSeconds),tone:"neutral",chart:i}:null}if(t==="accuracy"){const i=n?n.correct+n.incorrect:0;return{fill:null,value:n?.accuracyPct==null?"—":`${Math.round(n.accuracyPct)}%`,tone:n?.accuracyPct==null?"neutral":ot(n.accuracyPct),counts:n?{correct:n.correct,total:i}:null,chart:nn(r?.accuracy)}}if(e.masteryPct==null){const i=er(e.correctAnswerCount,e.totalAnswerCount-e.correctAnswerCount);return{fill:i,value:null,tone:ot(i)}}const s=Lt(e.currentMastery,o);return{fill:null,value:`${e.masteryPct}%`,tone:s,chart:e.progress??null}},ar=(e,t)=>{if(!(e.totalAnswerCount>0))return"not-started";if(e.masteryLevel==="mastered")return"completed";if(e.masteryLevel==null&&e.currentMastery!=null){if(!t)return null;if(e.currentMastery>=t.mastered)return"completed"}return"in-progress"},rs=(e,t)=>{if(e.subtopics.length===0)return null;const n=Object.fromEntries(Lo.map(r=>[r,0]));for(const r of e.subtopics){const o=ar(r,t);if(!o)return null;n[o]+=1}return n},os=(e,t)=>{const n=[...t?.values()??[]],r=n.reduce((a,l)=>a+l.attempts,0),o=n.reduce((a,l)=>a+l.correct,0),s=n.reduce((a,l)=>a+l.incorrect,0),i=n.reduce((a,l)=>a+l.activeTimeSeconds,0);return{mastery:e??null,accuracyPct:o+s>0?er(o,s):null,paceSeconds:r>0?i/r:null}},ss=e=>{const t=e??[],n=t.reduce((o,s)=>o+s.totalAnswerCount,0),r=t.reduce((o,s)=>o+s.currentMastery*s.totalAnswerCount,0);return n>0?r/n:null},is=(e,t)=>e==="pace"?ft(t.paceSeconds):e==="mastery"?t.mastery===null?"—":`${Io(t.mastery)}%`:t.accuracyPct===null?"—":`${Math.round(t.accuracyPct)}%`,as=(e,t,n)=>e==="pace"?"neutral":e==="mastery"?Lt(t.mastery,n):t.accuracyPct===null?"neutral":ot(t.accuracyPct),Qe=so,Je=(e,...t)=>[Yn(e),...t.map(n=>n.trim().toLowerCase())].join("|"),ls=()=>{const e=ee(v=>v.requireFullAccess),t=ee(v=>v.setSubject),n=ee(v=>v.setTopic),r=ee(v=>v.setSubtopic),o=It(),[s,i]=x.useState(null),[a,l]=x.useState("mastery"),u=mo(),{data:f}=oo(),{data:c}=Qo(),{data:p}=en("topic"),h=v=>p?.get(Zt(v.subject,v.topic)),{data:m}=en("subtopic",{enabled:!!s}),y=v=>a==="mastery"?rs(v,c):null,{data:E}=ts(),T=v=>E?.get(De(v.topic)),w=(v,k)=>E?.get(ir(v,k)),{data:D}=es(),_=x.useMemo(()=>os(D===null?ss(u.data):D,p),[D,u.data,p]),B=Fo[a],M=x.useMemo(()=>{const v=(f?.subjects??[]).map(k=>k.id);return v.length>0?v:[...new Set((u.data??[]).map(k=>k.subject))]},[f,u.data]),H=x.useMemo(()=>{const v=new Map;return(f?.subjects??[]).forEach(k=>{k.topics.forEach((R,U)=>{v.set(Je(k.id,R.name),U)})}),v},[f]),ie=v=>H.get(Je(v.subject,v.topic))??Number.MAX_SAFE_INTEGER,qt=x.useMemo(()=>{const v=new Map;return(f?.subjects??[]).forEach(k=>{k.topics.forEach(R=>{R.subtopics.forEach((U,ro)=>{v.set(Je(k.id,R.name,U.name),ro)})})}),v},[f]),Z=(v,k,R)=>qt.get(Je(v,k,R))??Number.MAX_SAFE_INTEGER,[Gr,Ut]=x.useState(null),Yt=v=>M.find(k=>Qe(k,v))??null,pe=Yt(Gr)??M[0]??null,W=s&&Qe(s.subject,pe)?s:null,Kr=M.length>0?M:u.isPending?[""]:[],{scrollerRef:Ke,registerColumn:Xr,visibleHeight:Qr}
1=Oo(),gt=x.useRef({}),Vt=v=>{const k=Ke.current;!k||typeof k.scrollBy!="function"||Math.abs(v)<1||k.scrollBy({left:v,behavior:"smooth"})};x.useEffect(()=>{const v=Ke.current,k=pe?gt.current[pe]:null;!v||!k||Vt(k.getBoundingClientRect().left-v.getBoundingClientRect().left)},[pe]);const Gt=v=>{const k=Ke.current;if(!k)return;const U=((M[0]?gt.current[M[0]]:null)?.offsetWidth??k.clientWidth/2)+24;Vt(v*U)},Kt=v=>{e(()=>{i(v),v&&Ut(Yt(v.subject)??v.subject)})()},Jr=v=>{v&&(Ut(v),i(null))},Zr=ee(v=>v.setTopicLocked),eo=ee(v=>v.setSubtopicLocked),to=({subject:v,topic:k,subtopic:R})=>{t(v),n(k),r(R),Zr(!0),eo(!0),o("/practice")},no=(v,k)=>d.jsx(d.Fragment,{children:Xo(u,{pending:()=>d.jsxs(d.Fragment,{children:[d.jsx(Xe,{}),d.jsx(Xe,{}),d.jsx(Xe,{}),d.jsx(Xe,{})]}),error:()=>d.jsx(No,{onRetry:()=>u.refetch()}),success:()=>v.filter(R=>Qe(R.subject,k)).sort((R,U)=>ie(R)-ie(U)).map(R=>d.jsx("div",{children:d.jsx(Co,{subject:k,title:R.topic,view:tn(R,a,h(R),T(R),c),statusCounts:y(R),onClick:()=>Kt(R)})},R.topic))})});return d.jsxs("div",{id:"knowledge-progress",className:"rounded-2xl px-3 py-4.5 lg:p-6 lg:rounded-[26px] h-full flex flex-col bg-(image:--knowledge-progress-bg-gradient)",children:[d.jsxs("div",{id:"knowledge-progress-header",className:"mb-3 flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between lg:gap-6",children:[d.jsx(ut,{icon:d.jsx(B,{className:"size-3.5 lg:size-4"}),textClassName:"text-[15px] lg:text-lg flex items-center gap-1",iconClassName:Ao[a],children:Do[a]}),d.jsx(Eo,{className:"w-full shrink-0 lg:w-[456px]",value:a,onChange:l,options:_o.map(v=>({metric:v,reading:is(v,_),tone:as(v,_,c)}))})]}),d.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[d.jsx(Po,{subjects:M,value:pe,onChange:Jr}),d.jsxs("div",{className:"ml-auto hidden shrink-0 items-center gap-3 lg:flex",children:[d.jsx(Qt,{back:!0,label:"Previous subject",onClick:()=>Gt(-1)}),d.jsx(Qt,{label:"Next subject",onClick:()=>Gt(1)})]})]}),d.jsxs("div",{className:"relative flex-1",children:[d.jsx("div",{className:K("bg-white rounded-xl lg:rou
1nded-[28px] flex-1 hidden absolute inset-0 overflow-auto",W&&"block"),children:W&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"p-2.5 mb-0 sticky top-0 z-10",children:d.jsx(us,{subject:W.subject,title:W.topic,view:tn(W,a,h(W),T(W),c),statusCounts:y(W),onClose:()=>Kt(null)})}),d.jsx("div",{className:"divide-y divide-brand-border overflow-auto",children:[...W.subtopics].sort((v,k)=>Z(W.subject,W.topic,v.title)-Z(W.subject,W.topic,k.title)).map(v=>{const k=m?.get(Zt(W.subject,W.topic,v.title)),R=ns(v,a,k,w(W.topic,v.title),c),U=a==="mastery"?ar(v,c):null;return d.jsxs("button",{className:"w-full text-start px-6 py-5 gap-5 flex lg:items-center lg:justify-between flex-col-reverse lg:flex-row hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>to({subject:W.subject,topic:W.topic,subtopic:v.title}),children:[d.jsxs("div",{className:"flex-1",children:[d.jsxs("div",{className:"hidden lg:flex items-center gap-2 mb-2",children:[d.jsx("h3",{className:"font-medium text-[15px]",children:v.title}),U&&d.jsx(Jt,{status:U})]}),d.jsx(cs,{metric:a,skill:k,fallback:{correct:v.correctAnswerCount,incorrect:v.incorrectAnswerCount}})]}),d.jsxs("div",{className:"w-full lg:w-[300px] shrink-0 flex items-center gap-3",children:[R?.fill!=null?d.jsx(Ko,{className:"min-w-0 flex-1",progress:R.fill,target:R.target,color:R.color}):d.jsx("div",{className:"min-w-0 flex-1",children:d.jsx(Ot,{data:R?.chart??[],color:R?.tone??"neutral"})}),R?.counts?d.jsx(Et,{tone:R.tone,value:R.value??"—",counts:R.counts}):R?.value&&d.jsx("span",{className:K("shrink-0 text-sm lg:text-[15px] font-semibold tabular-nums",Wo[R.tone]),children:R.value})]}),d.jsxs("div",{className:"flex lg:hidden items-center gap-2 mb-2",children:[d.jsx("h3",{className:"font-medium text-sm",children:v.title}),U&&d.jsx(Jt,{status:U})]}),d.jsx(tr,{className:"size-4 opacity-40 shrink-0"})]},v.title)})})]})}),d.jsx("div",{ref:Ke,className:"flex gap-4 lg:gap-6 overflow-x-auto snap-x snap-mandatory scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{height:Qr},children:Kr.map(v=>d.jsx("div",{ref:k=>{gt.current[v]=k},style:Mo(v),className:K("snap-start shrink-0 w-full lg:w-[calc(50%-12px)] bg-white p-2.5 rounded-xl lg:rou
1nded-[28px] flex flex-col transition-colors","border-2 border-transparent",pe&&Qe(v,pe)&&"subject-border"),children:d.jsx("div",{ref:Xr(v),className:"flex flex-col",children:no(u.data??[],v)})},v))})]})]})},cs=({metric:e,skill:t,fallback:n})=>e==="mastery"?d.jsxs("div",{className:"flex gap-10",children:[d.jsx(be,{count:n.correct,type:"correct"}),d.jsx(be,{count:n.incorrect,type:"incorrect"}),d.jsx(be,{count:n.correct+n.incorrect,type:"total"})]}):e==="pace"?d.jsxs("p",{className:"text-[13px] text-secondary/60",children:[d.jsx("span",{className:"font-medium text-secondary",children:ft(t?.paceSeconds)})," ","per question"]}):t?d.jsxs("div",{className:"flex gap-10",children:[d.jsx(be,{count:t.correct,type:"correct"}),d.jsx(be,{count:t.incorrect,type:"incorrect"}),d.jsx(be,{count:t.correct+t.incorrect,type:"total"})]}):d.jsx("p",{className:"text-[13px] text-secondary/50",children:"No answers recorded yet"}),us=({title:e,subject:t,view:n,statusCounts:r,onClose:o})=>{const s=It(),{isMobile:i}=Vn(),a=io(),l=ee(h=>h.setTopic),u=ee(h=>h.setSubject),f=ee(h=>h.setTopicLocked),c=ee(h=>h.setSubtopicLocked),p=h=>{u(t),l(h),f(!0),c(!1),s("/practice")};return d.jsxs("div",{className:"bg-[#f7f7f9] rounded-[20px]",children:[d.jsxs("div",{className:"flex items-start lg:items-center gap-4 px-4 py-5 ",children:[d.jsx(se,{variant:"outline",className:K(i&&"size-8","border-brand-border"),onClick:o,children:d.jsx(nr,{})}),d.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row lg:justify-between lg:items-center",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-sm lg:text-[15px] leading-tight",children:e}),d.jsx("span",{className:"text-text-default/50 text-xs lg:text-[13px] font-medium",children:a(t)}),r&&d.jsx(To,{counts:r,className:"mt-1.5"})]}),d.jsxs("div",{className:"hidden lg:flex items-center gap-2",children:[n.chart&&d.jsx("div",{className:"w-[200px]",children:d.jsx(Ot,{data:n.chart,color:n.tone})}),d.jsx(Et,{tone:n.tone,value:n.value,counts:n.counts})]})]}),d.jsx(se,{color:"secondary",className:"p-0 rounded-full size-6 lg:size-10 flex items-center justify-center",onClick:()=>p(e),children:d.jsx(Go,{className:"size-3 lg:size-5"})})]}),d.jsxs("div",{className:"flex lg:hidden gap-2 px-4 pb-4",children:[n.chart&&d.jsx("div",{className:"w-full",children:d.jsx(Ot,{data:n.chart,color:n.tone})}),d.jsx(Et,{tone:n.tone,value:n.value,counts:n.counts,className:K(!n.chart&&"ml-auto")})]})]})},lr=6048e5,fs=864e5,rn=Symbol.for("constructDateFrom");function fe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rn in e?e[rn](t):e instanceof Date?new e.constructor(t):new Date(t)}function X(e,t){return fe(t||e,e)}let ds={};function dt(){return ds}function Ae(e,t){const n=dt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=X(e,t?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function st(e,t){return Ae(e,{...t,weekStartsOn:1})}function cr(e,t){const n=X(e,t?.in),r=n.getFullYear(),o=fe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=st(o),i=fe(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=st(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function on(e){const t=X(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ps(e,...t){const n=fe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function sn(e,t){const n=X(e,t?.in);return n.setHours(0,0,0,0),n}function hs(e,t,n){const[r,o]=ps(n?.in,e,t),s=sn(r),i=sn(o),a=+s-on(s),l=+i-on(i);return Math.round((a-l)/fs)}function ms(e,t){const n=cr(e,t),r=fe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),st(r)}function gs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ys(e){return!(!gs(e)&&typeof e!="number"||isNaN(+X(e)))}function bs(e,t){const n=X(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const vs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xs=(e,t,n)=>{let r;const o=vs[e];
vendor: 4,831 bytes, line 1
1return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function yt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ws={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ss={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Os={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Es={date:yt({formats:ws,defaultWidth:"full"}),time:yt({formats:Ss,defaultWidth:"full"}),dateTime:yt({formats:Os,defaultWidth:"full"})},Ps={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ts=(e,t,n,r)=>Ps[e];function Ne(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const Cs={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ns={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},js={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ks={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ms={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rs={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Is=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ls={ordinalNumber:Is,era:Ne({values:Cs,defaultWidth:"wide"}),quarter:Ne({values:Ns,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ne({values:js,defaultWidth:"wide"}),day:Ne({values:ks,defaultWidth:"wide"}),dayPeriod:Ne({values:Ms,defaultWidth:"wide",formattingValues:Rs,defaultFormattingWidth:"wide"})};function je(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?As(a,c=>c.test(i)):Ds(a,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function Ds(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function As(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Fs(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const _s=/^(\d+)(th|st|nd|rd)?/i,Ws=/\d+/i,Bs={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zs={any:[/^b/i,/^(a|c)/i]},$s={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hs={any:[/1/i,/2/i,/3/i,/4/i]},qs={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Us={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]}
vendor: 7,644 bytes, line 1
1,Ys={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vs={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gs={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ks={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xs={ordinalNumber:Fs({matchPattern:_s,parsePattern:Ws,valueCallback:e=>parseInt(e,10)}),era:je({matchPatterns:Bs,defaultMatchWidth:"wide",parsePatterns:zs,defaultParseWidth:"any"}),quarter:je({matchPatterns:$s,defaultMatchWidth:"wide",parsePatterns:Hs,defaultParseWidth:"any",valueCallback:e=>e+1}),month:je({matchPatterns:qs,defaultMatchWidth:"wide",parsePatterns:Us,defaultParseWidth:"any"}),day:je({matchPatterns:Ys,defaultMatchWidth:"wide",parsePatterns:Vs,defaultParseWidth:"any"}),dayPeriod:je({matchPatterns:Gs,defaultMatchWidth:"any",parsePatterns:Ks,defaultParseWidth:"any"})},Qs={code:"en-US",formatDistance:xs,formatLong:Es,formatRelative:Ts,localize:Ls,match:Xs,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Js(e,t){const n=X(e,t?.in);return hs(n,bs(n))+1}function Zs(e,t){const n=X(e,t?.in),r=+st(n)-+ms(n);return Math.round(r/lr)+1}function ur(e,t){const n=X(e,t?.in),r=n.getFullYear(),o=dt(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=fe(t?.in||e,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=Ae(i,t),l=fe(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Ae(l,t);return+n>=+a?r+1:+n>=+u?r:r-1}function ei(e,t){const n=dt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ur(e,t),s=fe(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Ae(s,t)}function ti(e,t){const n=X(e,t?.in),r=+Ae(n,t)-+ei(n,t);return Math.round(r/lr)+1}function A(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ce={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return A(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):A(n+1,2)},d(e,t){return A(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return A(e.getHours()%12||12,t.length)},H(e,t){return A(e.getHours(),t.length)},m(e,t){return A(e.getMinutes(),t.length)},s(e,t){return A(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return A(o,t.length)}},ve={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},an={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ce.y(e,t)},Y:function(e,t,n,r){const o=ur(e,r),s=o>0?o:1-o;if(t==="YY"){const i=s%100;return A(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):A(s,t.length)},R:function(e,t){const n=cr(e);return A(n,t.length)},u:function(e,t){const n=e.getFullYear();return A(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return A(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return A(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ce.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return A(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ti(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):A(o,t.length)},I:function(e,t,n){const r=Zs(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):A(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ce.d(e,t)},D:function(e,t,n){const r=Js(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):A(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return A(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return A(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return A(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ve.noon:r===0?o=ve.midnight:o=r/12>
vendor: 4,283 bytes, line 1
1=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ve.evening:r>=12?o=ve.afternoon:r>=4?o=ve.morning:o=ve.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ce.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ce.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):A(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):A(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ce.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ce.s(e,t)},S:function(e,t){return ce.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return cn(r);case"XXXX":case"XX":return he(r);case"XXXXX":case"XXX":default:return he(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cn(r);case"xxxx":case"xx":return he(r);case"xxxxx":case"xxx":default:return he(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ln(r,":");case"OOOO":default:return"GMT"+he(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ln(r,":");case"zzzz":default:return"GMT"+he(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return A(r,t.length)},T:function(e,t,n){return A(+e,t.length)}};function ln(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+A(s,2)}function cn(e,t){return e%60===0?(e>0?"-":"+")+A(Math.abs(e)/60,2):he(e,t)}function he(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=A(Math.trunc(r/60),2),s=A(r%60,2);return n+o+t+s}const un=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},fr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ni=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return un(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",un(r,t)).replace("{{time}}",fr(o,t))},ri={p:fr,P:ni},oi=/^D+$/,si=/^Y+$/,ii=["D","DD","YY","YYYY"];function ai(e){return oi.test(e)}function li(e){return si.test(e)}function ci(e,t,n){const r=ui(e,t,n);if(console.warn(r),ii.includes(e))throw new RangeError(r)}function ui(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,di=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pi=/^'([^]*?)'?$/,hi=/''/g,mi=/[a-zA-Z]/;function fn(e,t,n){const r=dt(),o=r.locale??Qs,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=X(e,n?.in);if(!ys(a))throw new RangeError("Invalid time value");let l=t.match(di).map(f=>{const c=f[0];if(c==="p"||c==="P"){const p=ri[c];return p(f,o.formatLong)}return f}).join("").match(fi).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const c=f[0];if(c==="'")return{isToken:!1,value:gi(f)};if(an[c])return{isToken:!0,value:f};
1if(c.match(mi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const u={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const c=f.value;(li(c)||ai(c))&&ci(c,t,String(e));const p=an[c[0]];return p(a,c,o.localize,u)}).join("")}function gi(e){const t=e.match(pi);return t?t[1].replace(hi,"'"):e}const yi=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?n>0?`${t}h ${n}m`:`${t}h`:n>0?r>0?`${n}m ${r}s`:`${n}m`:`${r}s`},bi=({correct:e,incorrect:t,timeSpent:n})=>d.jsxs("div",{className:"flex items-start justify-between gap-[50px] lg:gap-[70px]",children:[d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-brand-green"}),d.jsx("span",{className:"text-sm text-navy-blue/50 font-medium",children:"Correct"})]}),d.jsx("span",{className:"mt-1 text-[22px] lg:text-2xl font-medium text-navy-blue",children:e})]}),d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-brand-red"}),d.jsx("span",{className:"text-sm text-navy-blue/50 font-medium",children:"Incorrect"})]}),d.jsx("span",{className:"mt-1 text-[22px] lg:text-2xl font-medium text-navy-blue",children:t})]}),d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("div",{className:"flex items-center gap-2.5",children:d.jsx("span",{className:"text-sm text-navy-blue/50 font-medium",children:"Time Spent"})}),d.jsx("span",{className:"mt-1 text-[22px] lg:text-2xl font-medium text-navy-blue",children:yi(n)})]})]}),vi=({isOpen:e,onClose:t,module:n,onModuleChange:r,modules:o,achievementThresholds:s})=>{const i=o.findIndex(y=>y.id===n.id),a=o[i],l=i>0,u=a.status!=="ACTIVE",f=()=>{l&&r(o[i-1])},c=()=>{u&&r(o[i+1])},p=n.summary?.numCorrect||0,h=n.summary?.numIncorrect||0,m=n.summary?.timeSpent||0;return d.jsx(Gn,{open:e,onOpenChange:t,children:d.jsxs(Kn,{children:[d.jsx(Xn,{}),d.jsxs(Qn,{children:[d.jsx(go,{children:d.jsx(Jn,{children:"Modules Progress Dialog"})}),d.jsxs("div",{className:"flex items-center justify-between mb-5 lg:mb-4 pt-[27px] px-[16px] lg:px-[30px] border-b pb-4",children:[d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(ut,{icon:d.jsx(Yo,{className:"size-3.5 lg:size-4"}),textClassName:"text-sm lg:text-lg",children:"Module Progress Details"})}),d.jsx(se,{variant:"outline",onClick:t,className:"rounded-full p-0 size-[28px] lg:size-10",children:d.jsx(Zn,{className:"size-4 lg:size-5"})})]}),d.jsxs("div",{className:"bg-[linear-gradient(180deg,_rgba(255,_255,_255,_0.25)_16.3%,_rgba(180,_226,_210,_0.25)_100%)]",children:[d.jsx("div",{className:"flex items-center justify-between mb-[30px] px-[16px] lg:px-[30px]",children:d.jsxs("div",{className:"flex items-center gap-[10px] lg:gap-4 flex-1",children:[d.jsx(se,{variant:"outline",disabled:!l,onClick:f,className:"rounded-full p-0 size-8 lg:size-10 bg-secondary hover:bg-secondary/80 transition-colors disabled:bg-secondary/50 disabled:cursor-not-allowed",children:d.jsx(nr,{className:"text-white"})}),d.jsxs("div",{className:"flex flex-1 items-center justify-between rounded-full bg-white py-[7px] px-[13px] lg:p-[10px] shadow-card border border-border",children:[d.jsx("span",{className:"text-[15px] lg:text-base font-semibold ml-[10px]",children:`Module ${n.moduleNo}`}),d.jsx(jo,{status:n.status})]}),d.jsx(se,{variant:"outline",disabled:!u,onClick:c,className:"rounded-full p-0 size-8 lg:size-10 bg-secondary hover:bg-navy-blue/80 transition-colors disabled:bg-secondary/50 disabled:cursor-not-allowed",children:d.jsx(tr,{className:"text-white"})})]})}),d.jsx("div",{className:"px-[16px] lg:px-[30px] border-b pb-[21px]",children:d.jsx(xo,{solved:p+h,iconSize:55,achievement:n.achievement,achievementThresholds:s})}),d.jsx("div",{className:"px-[16px] lg:px-[30px] py-[32px] flex justify-center",children:d.jsx(bi,{correct:p,incorrect:h,timeSpent:m})})]}),d.jsxs("div",{className:"px-[30px] pt-[38px] pb-[60px] flex justify-center gap-[41p
1x] lg:gap-[70px]",children:[d.jsx(dn,{label:"Started on",value:n.summary?.startDate?fn(new Date(n.summary.startDate),"MMM dd, yyyy"):"-"}),d.jsx(dn,{label:"Finished on",value:n.summary?.endDate?fn(new Date(n.summary.endDate),"MMM dd, yyyy"):"-"})]})]})]})})},dn=({label:e,value:t})=>d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("div",{className:"flex items-center gap-2.5",children:d.jsx("span",{className:"text-sm text-secondary/50 text-center font-medium",children:e})}),d.jsx("span",{className:"mt-1 text-lg lg:text-2xl font-medium text-center",children:t})]});function dr(e){return t=>typeof t===e}var xi=dr("function"),wi=e=>e===null,pn=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",hn=e=>!Si(e)&&!wi(e)&&(xi(e)||typeof e=="object"),Si=dr("undefined");function Oi(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!$(e[r],t[r]))return!1;return!0}function Ei(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function Pi(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!$(n[1],t.get(n[0])))return!1;return!0}function Ti(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function $(e,t){if(e===t)return!0;if(e&&hn(e)&&t&&hn(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Oi(e,t);if(e instanceof Map&&t instanceof Map)return Pi(e,t);if(e instanceof Set&&t instanceof Set)return Ti(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Ei(e,t);if(pn(e)&&pn(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=n.length;o--!==0;){const s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!$(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Ci=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Ni=["bigint","boolean","null","number","string","symbol","undefined"];function pt(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ji(t))return t}function Q(e){return t=>pt(t)===e}function ji(e){return Ci.includes(e)}function Pe(e){return t=>typeof t===e}function ki(e){return Ni.includes(e)}var Mi=["innerHTML","ownerDocument","style","attributes","nodeValue"];function S(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(S.array(e))return"Array";if(S.plainFunction(e))return"Function";const t=pt(e);return t||"Object"}S.array=Array.isArray;S.arrayOf=(e,t)=>!S.array(e)&&!S.function(t)?!1:e.every(n=>t(n));S.asyncGeneratorFunction=e=>pt(e)==="AsyncGeneratorFunction";S.asyncFunction=Q("AsyncFunction");S.bigint=Pe("bigint");S.boolean=e=>e===!0||e===!1;S.date=Q("Date");S.defined=e=>!S.undefined(e);S.domElement=e=>S.object(e)&&!S.plainObject(e)&&e.nodeType===1&&S.string(e.nodeName)&&Mi.every(t=>t in e);S.empty=e=>S.string(e)&&e.length===0||S.array(e)&&e.length===0||S.object(e)&&!S.map(e)&&!S.set(e)&&Object.keys(e).length===0||S.set(e)&&e.size===0||S.map(e)&&e.size===0;S.error=Q("Error");S.function=Pe("function");S.generator=e=>S.iterable(e)&&S.function(e.next)&&S.function(e.throw);S.generatorFunction=Q("GeneratorFunction");S.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;S.iterable=e=>!S.nullOrUndefined(e)&&S.function(e[Symbol.iterator]);S.map=Q("Map");S.nan=e=>Number.isNaN(e);S.null=e=>e===null;S.nullOrUndefined=e=>S.null(e)||S.undefined(e);S.number=e=>Pe("number")(e)&&!S.nan(e);S.numericString=e=>S.string(e)&&e.length>0&&!Number.isNaN(Number(e));S.object=e=>!S.nullOrUndefined(e)&&(S.function(e)||typeof e=="object");S.oneOf=(e,t)=>S.array(e)?e.indexOf(t)>-1:!1;S.plainFunction=Q("Function");S.plainObject=e=>{if(pt(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};S.primitive=e=>S.null(e)||ki(typeof e);S.promise=Q("Promise");S.propertyOf=(e,t,n)=>{if(!S.object(e)||!t)return!1;const r=e[t];return S.function(n)?n(r):S.defined(r)};S.regexp=Q("RegExp");S.set=Q("Set");S.string=Pe("string");S.symbol=Pe("symbol");S.undefined=Pe("undefined");S.weakMap=Q("WeakMap");S.weakSet=Q("WeakSet");var O=S;function Ri(...e){return e.every(t=>O.string(t)||O.array(t)||O.plainObject(t))}function Ii(e,t,n){return pr(e,t)?[e,t].every(O.array)?!e.some(vn(n))&&t.some(vn(n)):[e,t].every(O.plainObject)?!Object.entries(e).some(bn(n))&&Object.entries(t).some(bn(n)):t===n:!1}
1function mn(e,t,n){const{actual:r,key:o,previous:s,type:i}=n,a=re(e,o),l=re(t,o);let u=[a,l].every(O.number)&&(i==="increased"?a<l:a>l);return O.undefined(r)||(u=u&&l===r),O.undefined(s)||(u=u&&a===s),u}function gn(e,t,n){const{key:r,type:o,value:s}=n,i=re(e,r),a=re(t,r),l=o==="added"?i:a,u=o==="added"?a:i;if(!O.nullOrUndefined(s)){if(O.defined(l)){if(O.array(l)||O.plainObject(l))return Ii(l,u,s)}else return $(u,s);return!1}return[i,a].every(O.array)?!u.every(At(l)):[i,a].every(O.plainObject)?Li(Object.keys(l),Object.keys(u)):![i,a].every(f=>O.primitive(f)&&O.defined(f))&&(o==="added"?!O.defined(i)&&O.defined(a):O.defined(i)&&!O.defined(a))}function yn(e,t,{key:n}={}){let r=re(e,n),o=re(t,n);if(!pr(r,o))throw new TypeError("Inputs have different types");if(!Ri(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(O.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function bn(e){return([t,n])=>O.array(e)?$(e,n)||e.some(r=>$(r,n)||O.array(n)&&At(n)(r)):O.plainObject(e)&&e[t]?!!e[t]&&$(e[t],n):$(e,n)}function Li(e,t){return t.some(n=>!e.includes(n))}function vn(e){return t=>O.array(e)?e.some(n=>$(n,t)||O.array(t)&&At(t)(n)):$(e,t)}function ke(e,t){return O.array(e)?e.some(n=>$(n,t)):$(e,t)}function At(e){return t=>e.some(n=>$(n,t))}function pr(...e){return e.every(O.array)||e.every(O.number)||e.every(O.plainObject)||e.every(O.string)}function re(e,t){return O.plainObject(e)||O.array(e)?O.string(t)?t.split(".").reduce((r,o)=>r&&r[o],e):O.number(t)?e[t]:e:e}function it(e,t){if([e,t].some(O.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>O.plainObject(f)||O.array(f)))throw new Error("Expected plain objects or array");return{added:(f,c)=>{try{return gn(e,t,{key:f,type:"added",value:c})}catch{return!1}},changed:(f,c,p)=>{try{const h=re(e,f),m=re(t,f),y=O.defined(c),E=O.defined(p);if(y||E){const T=E?ke(p,h):!ke(c,h),w=ke(c,m);return T&&w}return[h,m].every(O.array)||[h,m].every(O.plainObject)?!$(h,m):h!==m}catch{return!1}},changedFrom:(f,c,p)=>{if(!O.defined(f))return!1;try{const h=re(e,f),m=re(t,f),y=O.defined(p);return ke(c,h)&&(y?ke(p,m):!y)}catch{return!1}},decreased:(f,c,p)=>{if(!O.defined(f))return!1;try{return mn(e,t,{key:f,actual:c,previous:p,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[c,p]=yn(e,t,{key:f});return!!c.length&&!p.length}catch{return!1}},filled:f=>{try{const[c,p]=yn(e,t,{key:f});return!c.length&&!!p.length}catch{return!1}},increased:(f,c,p)=>{if(!O.defined(f))return!1;try{return mn(e,t,{key:f,actual:c,previous:p,type:"increased"})}catch{return!1}},removed:(f,c)=>{try{return gn(e,t,{key:f,type:"removed",value:c})}catch{return!1}}}}var bt,xn;function Di(){if(xn)return bt;xn=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;bt={left:o("scrollLeft"),top:o("scrollTop")};function o(a){return function(u,f,c,p){c=c||{},typeof c=="function"&&(p=c,c={}),typeof p!="function"&&(p=i);var h=r(),m=u[a],y=c.ease||s,E=isNaN(c.duration)?350:+c.duration,T=!1;return m===f?p(e,u[a]):requestAnimationFrame(D),w;function w(){T=!0}function D(_){if(T)return p(t,u[a]);var B=r(),M=n(1,(B-h)/E),H=y(M);u[a]=H*(f-m)+m,M<1?requestAnimationFrame(D):requestAnimationFrame(function(){p(null,u[a])})}}}function s(a){return .5*(1-Math.cos(Math.PI*a))}function i(){}return bt}var Ai=Di();const Fi=ze(Ai);var nt={exports:{}},_i=nt.exports,wn;function Wi(){return wn||(wn=1,(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(_i,function(){function t(r){var o=getComputedStyle(r,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var o=r.parentNode;o.parentNode;){if(t(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return n})})(nt)),nt.exports}var Bi=Wi();const hr=ze(Bi);var vt,Sn;function zi(){if(Sn)return vt;Sn=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,o){return r+n(o)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,vt=n,vt}var $i=zi();const On=ze($i);var Hi=yo();const G=ze(Hi);var qi=bo();const b=ze(qi);var $e=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Ui=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if($e&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function Yi(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Vi(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ui))}}var Gi=$e&&window.Promise,Ki=Gi?Yi:Vi;function mr(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ye(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}
vendor: 17,081 bytes, line 1
1function Ft(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function He(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ye(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:He(Ft(e))}function gr(e){return e&&e.referenceNode?e.referenceNode:e}var En=$e&&!!(window.MSInputMethodContext&&document.documentMode),Pn=$e&&/MSIE 10/.test(navigator.userAgent);function Te(e){return e===11?En:e===10?Pn:En||Pn}function we(e){if(!e)return document.documentElement;for(var t=Te(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&ye(n,"position")==="static"?we(n):n}function Xi(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||we(e.firstElementChild)===e}function Pt(e){return e.parentNode!==null?Pt(e.parentNode):e}function at(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(o,0);var i=s.commonAncestorContainer;if(e!==i&&t!==i||r.contains(o))return Xi(i)?i:we(i);var a=Pt(e);return a.host?at(a.host,t):at(e,Pt(t).host)}function Se(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var o=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||o;return s[n]}return e[n]}function Qi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Se(t,"top"),o=Se(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=o*s,e.right+=o*s,e}function Tn(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Cn(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Te(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function yr(e){var t=e.body,n=e.documentElement,r=Te(10)&&getComputedStyle(n);return{height:Cn("Height",t,n,r),width:Cn("Width",t,n,r)}}var Ji=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Zi=(function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),Oe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function de(e){return V({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Tt(e){var t={};try{if(Te(10)){t=e.getBoundingClientRect();var n=Se(e,"top"),r=Se(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?yr(e.ownerDocument):{},i=s.width||e.clientWidth||o.width,a=s.height||e.clientHeight||o.height,l=e.offsetWidth-i,u=e.offsetHeight-a;if(l||u){var f=ye(e);l-=Tn(f,"x"),u-=Tn(f,"y"),o.width-=l,o.height-=u}return de(o)}function _t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Te(10),o=t.nodeName==="HTML",s=Tt(e),i=Tt(t),a=He(e),l=ye(t),u=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var c=de({top:s.top-i.top-u,left:s.left-i.left-f,width:s.width,height:s.height});if(c.marginTop=0,c.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);c.top-=u-p,c.bottom-=u-p,c.left-=f-h,c.right-=f-h,c.marginTop=p,c.marginLeft=h}return(r&&!n?t.contains(a):t===a&&a.nodeName!=="BODY")&&(c=Qi(c,t)),c}function ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=_t(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:Se(n),a=t?0:Se(n,"left"),l={top:i-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:s};return de(l)}function br(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ye(e,"position")==="fixed")return!0;var n=Ft(e);return n?br(n):!1}function vr(e){if(!e||!e.parentElement||Te())return document.documentElement;for(var t=e.parentElement;t&&ye(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Wt(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},i=o?vr(e):at(e,gr(t));if(r==="viewport")s=ea(i,o);else{var a=void 0;r==="scrollParent"?(a=He(Ft(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):r==="window"?a=e.ownerDocument.documentElement:a=r;var l=_t(a,i,o);if(a.nodeName==="HTML"&&!br(i)){var u=yr(e.ownerDocument),f=u.height,c=u.width;s.top+=l.top-l.marginTop,s.bottom=f+l.top,s.left+=l.left-l.marginLeft,s.right=c+l.left}else s=l}n=n||0;var p=typeof n=="number";return s.left+=p?n:n.left||0,s.top+=p?n:n.top||0,s.right-=p?n:n.right||0,s.bottom-=p?n:n.bottom||0,s}function ta(e){var t=e.width,n=e.height;return t*n}function xr(e,t,n,r,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var i=Wt(n,r,s,o),a={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(a).map(function(p){return V({key:p},a[p],{area:ta(a[p])})}).sort(function(p,h){return h.area-p.area}),u=l.filter(function(p){var h=p.width,m=p.height;return h>=n.clientWidth&&m>=n.clientHeight}),f=u.length>0?u[0].key:l[0].key,c=e.split("-")[1];return f+(c?"-"+c:"")}function wr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=r?vr(t):at(t,gr(n));return _t(n,o,r)}function Sr(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),o=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),s={width:e.offsetWidth+o,height:e.offsetHeight+r};return s}function lt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function Or(e,t,n){n=n.split("-")[0];var r=Sr(e),o={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,i=s?"top":"left",a=s?"left":"top",l=s?"height":"width",u=s?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,n===a?o[a]=t[a]-r[u]:o[a]=t[lt(a)],o}function qe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function na(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===n});var r=qe(e,function(o){return o[t]===n});return e.indexOf(r)}function Er(e,t,n){var r=n===void 0?e:e.slice(0,na(e,"name",n));return r.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=o.function||o.fn;o.enabled&&mr(s)&&(t.offsets.popper=de(t.offsets.popper),t.offsets.reference=de(t.offsets.reference),t=s(t,o))}),t}function ra(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=wr(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=xr(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Or(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Er(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Pr(e,t){return e.some(function(n){var r=n.name,o=n.enabled;return o&&r===t})}function Bt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],s=o?""+o+n:e;if(typeof document.body.style[s]<"u")return s}return null}function oa(){return this.state.isDestroyed=!0,Pr(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Bt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Tr(e){var t=e.ownerDocument;return t?t.defaultView:window}function Cr(e,t,n,r){var o=e.nodeName==="BODY",s=o?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),o||Cr(He(s.parentNode),t,n,r),r.push(s)}function sa(e,t,n,r){n.updateBound=r,Tr(e).addEventListener("resize",n.updateBound,{passive:!0});var o=He(e);return Cr(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ia(){this.state.eventsEnabled||(this.state=sa(this.reference,this.options,this.state,this.scheduleUpdate))}function aa(e,t){return Tr(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function la(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=aa(this.reference,this.state))}function zt(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Ct(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&zt(t[n])&&(r="px"),e.style[n]=t[n]+r})}function ca(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function ua(e){return Ct(e.instance.popper,e.styles),ca(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Ct(e.arrowElement,e.arrowStyles),e}function fa(e,t,n,r,o){var s=wr(o,t,e,n.positionFixed),i=xr(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Ct(t,{position:n.positionFixed?"fixed":"absolute"}),n}function da(e,t){var n=e.offsets,r=n.popper,o=n.reference,s=Math.round,i=Math.floor,a=function(T){return T},l=s(o.width),u=s(r.width),f=["left","right"].indexOf(e.placement)!==-1,c=e.placement.indexOf("-")!==-1,p=l%2===u%2,h=l%2===1&&u%2===1,m=t?f||c||p?s:i:a,y=t?s:a;return{left:m(h&&!c&&t?r.left-1:r.left),top:y(r.top),bottom:y(r.bottom),right:m(r.right)}}var pa=$e&&/Firefox/i.test(navigator.userAgent);function ha(e,t){var n=t.x,r=t.y,o=e.offsets.popper,s=qe(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=s!==void 0?s:t.gpuAcceleration,a=we(e.instance.popper),l=Tt(a),u={position:o.position},f=da(e,window.devicePixelRatio<2||!pa),c=n==="bottom"?"top":"bottom",p=r==="right"?"left":"right",h=Bt("transform"),m=void 0,y=void 0;if(c==="bottom"?a.nodeName==="HTML"?y=-a.clientHeight+f.bottom:y=-l.height+f.bottom:y=f.top,p==="right"?a.nodeName==="HTML"?m=-a.clientWidth+f.right:m=-l.width+f.right:m=f.left,i&&h)u[h]="translate3d("+m+"px, "+y+"px, 0)",u[c]=0,u[p]=0,u.willChange="transform";else{var E=c==="bottom"?-1:1,T=p==="right"?-1:1;u[c]=y*E,u[p]=m*T,u.willChange=c+", "+p}var w={"x-placement":e.placement};return e.attributes=V({},w,e.attributes),e.styles=V({},u,e.styles),e.arrowStyles=V({},e.offsets.arrow,e.arrowStyles),e}function Nr(e,t,n){var r=qe(e,function(a){var l=a.name;return l===t}),o=!!r&&e.some(function(a){return a.name===n&&a.enabled&&a.order<r.order});if(!o){var s="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return o}function ma(e,t){var n;if(!Nr(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],s=e.offsets,i=s.popper,a=s.reference,l=["left","right"].indexOf(o)!==-1,u=l?"height":"width",f=l?"Top":"Left",c=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=Sr(r)[u];a[h]-m<i[c]&&(e.offsets.popper[c]-=i[c]-(a[h]-m)),a[c]+m>i[h]&&(e.offsets.popper[c]+=a[c]+m-i[h]),e.offsets.popper=de(e.offsets.popper);var y=a[c]+a[u]/2-m/2,E=ye(e.instance.popper),T=parseFloat(E["margin"+f]),w=parseFloat(E["border"+f+"Width"]),D=y-e.offsets.popper[c]-T-w;return D=Math.max(Math.min(i[u]-m,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Oe(n,c,Math.round(D)),Oe(n,p,""),n),e}function ga(e){return e==="end"?"start":e==="start"?"end":e}var jr=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],xt=jr.slice(3);function Nn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xt.indexOf(e),r=xt.slice(n+1).concat(xt.slice(0,n));return t?r.reverse():r}var wt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function ya(e,t){if(Pr(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Wt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=lt(r),s=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case wt.FLIP:i=[r,o];break;case wt.CLOCKWISE:i=Nn(r);break;case wt.COUNTERCLOCKWISE:i=Nn(r,!0);break;default:i=t.behavior}return i.forEach(function(a,l){if(r!==a||i.length===l+1)return e;r=e.placement.split("-")[0],o=lt(r);var u=e.offsets.popper,f=e.offsets.reference,c=Math.floor,p=r==="left"&&c(u.right)>c(f.left)||r==="right"&&c(u.left)<c(f.right)||r==="top"&&c(u.bottom)>c(f.top)||r==="bottom"&&c(u.top)<c(f.bottom),h=c(u.left)<c(n.left),m=c(u.right)>c(n.right),y=c(u.top)<c(n.top),E=c(u.bottom)>c(n.bottom),T=r==="left"&&h||r==="right"&&m||r==="top"&&y||r==="bottom"&&E,w=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(w&&s==="start"&&h||w&&s==="end"&&m||!w&&s==="start"&&y||!w&&s==="end"&&E),_=!!t.flipVariationsByContent&&(w&&s==="start"&&m||w&&s==="end"&&h||!w&&s==="start"&&E||!w&&s==="end"&&y),B=D||_;(p||T||B)&&(e.flipped=!0,(p||T)&&(r=i[l+1]),B&&(s=ga(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=V({},e.offsets.popper,Or(e.instance.popper,e.offsets.reference,e.placement)),e=Er(e.instance.modifiers,e,"flip"))}),e}function ba(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],s=Math.floor,i=["top","bottom"].indexOf(o)!==-1,a=i?"right":"bottom",l=i?"left":"top",u=i?"width":"height";return n[a]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[u]),n[l]>s(r[a])&&(e.offsets.popper[l]=s(r[a])),e}function va(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],i=o[2];if(!s)return e;if(i.indexOf("%")===0){var a=void 0;switch(i){case"%p":a=n;break;case"%":case"%r":default:a=r}var l=de(a);return l[t]/100*s}else if(i==="vh"||i==="vw"){var u=void 0;return i==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*s}else return s}function xa(e,t,n,r){var o=[0,0],s=["right","left"].indexOf(r)!==-1,i=e.split(/(\+|\-)/).map(function(f){return f.trim()}),a=i.indexOf(qe(i,function(f){return f.search(/,|\s/)!==-1}));i[a]&&i[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=a!==-1?[i.slice(0,a).concat([i[a].split(l)[0]]),[i[a].split(l)[1]].concat(i.slice(a+1))]:[i];return u=u.map(function(f,c){var p=(c===1?!s:s)?"height":"width",h=!1;return f.reduce(function(m,y){return m[m.length-1]===""&&["+","-"].indexOf(y)!==-1?(m[m.length-1]=y,h=!0,m):h?(m[m.length-1]+=y,h=!1,m):m.concat(y)},[]).map(function(m){return va(m,p,t,n)})}),u.forEach(function(f,c){f.forEach(function(p,h){zt(p)&&(o[c]+=p*(f[h-1]==="-"?-1:1))})}),o}function wa(e,t){var n=t.offset,r=e.placement,o=e.offsets,s=o.popper,i=o.reference,a=r.split("-")[0],l=void 0;return zt(+n)?l=[+n,0]:l=xa(n,s,i,a),a==="left"?(s.top+=l[0],s.left-=l[1]):a==="right"?(s.top+=l[0],s.left+=l[1]):a==="top"?(s.left+=l[0],s.top-=l[1]):a==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Sa(e,t){var n=t.boundariesElement||we(e.instance.popper);e.instance.reference===n&&(n=we(n));var r=Bt("transform"),o=e.instance.popper.style,s=o.top,i=o.left,a=o[r];o.top="",o.left="",o[r]="";var l=Wt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);
1o.top=s,o.left=i,o[r]=a,t.boundaries=l;var u=t.priority,f=e.offsets.popper,c={primary:function(h){var m=f[h];return f[h]<l[h]&&!t.escapeWithReference&&(m=Math.max(f[h],l[h])),Oe({},h,m)},secondary:function(h){var m=h==="right"?"left":"top",y=f[m];return f[h]>l[h]&&!t.escapeWithReference&&(y=Math.min(f[m],l[h]-(h==="right"?f.width:f.height))),Oe({},m,y)}};return u.forEach(function(p){var h=["left","top"].indexOf(p)!==-1?"primary":"secondary";f=V({},f,c[h](p))}),e.offsets.popper=f,e}function Oa(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,s=o.reference,i=o.popper,a=["bottom","top"].indexOf(n)!==-1,l=a?"left":"top",u=a?"width":"height",f={start:Oe({},l,s[l]),end:Oe({},l,s[l]+s[u]-i[u])};e.offsets.popper=V({},i,f[r])}return e}function Ea(e){if(!Nr(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=qe(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Pa(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,s=r.reference,i=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return o[i?"left":"top"]=s[n]-(a?o[i?"width":"height"]:0),e.placement=lt(t),e.offsets.popper=de(o),e}var Ta={shift:{order:100,enabled:!0,fn:Oa},offset:{order:200,enabled:!0,fn:wa,offset:0},preventOverflow:{order:300,enabled:!0,fn:Sa,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ba},arrow:{order:500,enabled:!0,fn:ma,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ya,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Pa},hide:{order:800,enabled:!0,fn:Ea},computeStyle:{order:850,enabled:!0,fn:ha,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ua,onLoad:fa,gpuAcceleration:void 0}},Ca={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ta},Fe=(function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ji(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ki(this.update.bind(this)),this.options=V({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(V({},e.Defaults.modifiers,o.modifiers)).forEach(function(i){r.options.modifiers[i]=V({},e.Defaults.modifiers[i]||{},o.modifiers?o.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return V({name:i},r.options.modifiers[i])}).sort(function(i,a){return i.order-a.order}),this.modifiers.forEach(function(i){i.enabled&&mr(i.onLoad)&&i.onLoad(r.reference,r.popper,r.options,i,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Zi(e,[{key:"update",value:function(){return ra.call(this)}},{key:"destroy",value:function(){return oa.call(this)}},{key:"enableEventListeners",value:function(){return ia.call(this)}},{key:"disableEventListeners",value:function(){return la.call(this)}}]),e})();Fe.Utils=(typeof window<"u"?window:global).PopperUtils;Fe.placements=jr;Fe.Defaults=Ca;var Na=["innerHTML","ownerDocument","style","attributes","nodeValue"],ja=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ka=["bigint","boolean","null","number","string","symbol","undefined"];function ht(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Ma(t))return t}function J(e){return function(t){return ht(t)===e}}function Ma(e){return ja.includes(e)}function Ce(e){return function(t){return typeof t===e}}function Ra(e){return ka.includes(e)}function g(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(g.array(e))return"Array";if(g.plainFunction(e))return"Function";var t=ht(e);return t||"Object"}g.array=Array.isArray;g.arrayOf=function(e,t){return!g.array(e)&&!g.function(t)?!1:e.every(function(n){return t(n)})};g.asyncGeneratorFunction=function(e){return ht(e)==="AsyncGeneratorFunction"};g.asyncFunction=J("AsyncFunction");g.bigint=Ce("bigint");g.boolean=function(e){return e===!0||e===!1};g.date=J("Date");g.defined=function(e){return!g.undefined(e)};g.domElement=function(e){return g.object(e)&&!g.plainObject(e)&&e.nodeType===1&&g.string(e.nodeName)&&Na.every(function(t){return t in e})};g.empty=function(e){return g.string(e)&&e.length===0||g.array(e)&&e.length===0||g.object(e)&&!g.map(e)&&!g.set(e)&&Object.keys(e).length===0||g.set(e)&&e.size===0||g.map(e)&&e.size===0};g.error=J("Error");g.function=Ce("function");g.generator=function(e){return g.iterable(e)&&g.function(e.next)&&g.function(e.throw)};g.generatorFunction=J("GeneratorFunction");g.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};g.iterable=function(e){return!g.nullOrUndefined(e)&&g.function(e[Symbol.iterator])};g.map=J("Map");g.nan=function(e){return Number.isNaN(e)};g.null=function(e){return e===null};g.nullOrUndefined=function(e){return g.null(e)||g.undefined(e)};g.number=function(e){return Ce("number")(e)&&!g.nan(e)};g.numericString=function(e){return g.string(e)&&e.length>0&&!Number.isNaN(Number(e))};g.object=function(e){return!g.nullOrUndefined(e)&&(g.function(e)||typeof e=="object")};g.oneOf=function(e,t){return g.array(e)?e.indexOf(t)>-1:!1};g.plainFunction=J("Function");g.plainObject=function(e){if(ht(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};g.primitive=function(e){return g.null(e)||Ra(typeof e)};g.promise=J("Promise");g.propertyOf=function(e,t,n){if(!g.object(e)||!t)return!1;var r=e[t];return g.function(n)?n(r):g.defined(r)};g.regexp=J("RegExp");g.set=J("Set");g.string=Ce("string");g.symbol=Ce("symbol");g.undefined=Ce("undefined");g.weakMap=J("WeakMap");g.weakSet=J("WeakSet");function kr(e){return function(t){return typeof t===e}}var Ia=kr("function"),La=function(e){return e===null},jn=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"}
1,kn=function(e){return!Da(e)&&!La(e)&&(Ia(e)||typeof e=="object")},Da=kr("undefined"),Nt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Aa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!q(e[r],t[r]))return!1;return!0}function Fa(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function _a(e,t){var n,r,o,s;if(e.size!==t.size)return!1;try{for(var i=Nt(e.entries()),a=i.next();!a.done;a=i.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}try{for(var u=Nt(e.entries()),f=u.next();!f.done;f=u.next()){var l=f.value;if(!q(l[1],t.get(l[0])))return!1}}catch(c){o={error:c}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}return!0}function Wa(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=Nt(e.entries()),s=o.next();!s.done;s=o.next()){var i=s.value;if(!t.has(i[0]))return!1}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}function q(e,t){if(e===t)return!0;if(e&&kn(e)&&t&&kn(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Aa(e,t);if(e instanceof Map&&t instanceof Map)return _a(e,t);if(e instanceof Set&&t instanceof Set)return Wa(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Fa(e,t);if(jn(e)&&jn(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(var o=n.length;o--!==0;){var s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!q(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Ba(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return g.string(n)||g.array(n)||g.plainObject(n)})}function za(e,t,n){return Mr(e,t)?[e,t].every(g.array)?!e.some(Dn(n))&&t.some(Dn(n)):[e,t].every(g.plainObject)?!Object.entries(e).some(Ln(n))&&Object.entries(t).some(Ln(n)):t===n:!1}function Mn(e,t,n){var r=n.actual,o=n.key,s=n.previous,i=n.type,a=oe(e,o),l=oe(t,o),u=[a,l].every(g.number)&&(i==="increased"?a<l:a>l);return g.undefined(r)||(u=u&&l===r),g.undefined(s)||(u=u&&a===s),u}function Rn(e,t,n){var r=n.key,o=n.type,s=n.value,i=oe(e,r),a=oe(t,r),l=o==="added"?i:a,u=o==="added"?a:i;if(!g.nullOrUndefined(s)){if(g.defined(l)){if(g.array(l)||g.plainObject(l))return za(l,u,s)}else return q(u,s);return!1}return[i,a].every(g.array)?!u.every($t(l)):[i,a].every(g.plainObject)?$a(Object.keys(l),Object.keys(u)):![i,a].every(function(f){return g.primitive(f)&&g.defined(f)})&&(o==="added"?!g.defined(i)&&g.defined(a):g.defined(i)&&!g.defined(a))}function In(e,t,n){var r=n===void 0?{}:n,o=r.key,s=oe(e,o),i=oe(t,o);if(!Mr(s,i))throw new TypeError("Inputs have different types");if(!Ba(s,i))throw new TypeError("Inputs don't have length");return[s,i].every(g.plainObject)&&(s=Object.keys(s),i=Object.keys(i)),[s,i]}function Ln(e){return function(t){var n=t[0],r=t[1];return g.array(e)?q(e,r)||e.some(function(o){return q(o,r)||g.array(r)&&$t(r)(o)}):g.plainObject(e)&&e[n]?!!e[n]&&q(e[n],r):q(e,r)}}function $a(e,t){return t.some(function(n){return!e.includes(n)})}function Dn(e){return function(t){return g.array(e)?e.some(function(n){return q(n,t)||g.array(t)&&$t(t)(n)}):q(e,t)}}function Me(e,t){return g.array(e)?e.some(function(n){return q(n,t)}):q(e,t)}function $t(e){return function(t){return e.some(function(n){return q(n,t)})}}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(g.array)||e.every(g.number)||e.every(g.plainObject)||e.every(g.string)}function oe(e,t){if(g.plainObject(e)||g.array(e)){if(g.string(t)){var n=t.split(".");return n.reduce(function(r,o){return r&&r[o]},e)}return g.number(t)?e[t]:e}return e}
1function Ha(e,t){if([e,t].some(g.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(c){return g.plainObject(c)||g.array(c)}))throw new Error("Expected plain objects or array");var n=function(c,p){try{return Rn(e,t,{key:c,type:"added",value:p})}catch{return!1}},r=function(c,p,h){try{var m=oe(e,c),y=oe(t,c),E=g.defined(p),T=g.defined(h);if(E||T){var w=T?Me(h,m):!Me(p,m),D=Me(p,y);return w&&D}return[m,y].every(g.array)||[m,y].every(g.plainObject)?!q(m,y):m!==y}catch{return!1}},o=function(c,p,h){if(!g.defined(c))return!1;try{var m=oe(e,c),y=oe(t,c),E=g.defined(h);return Me(p,m)&&(E?Me(h,y):!E)}catch{return!1}},s=function(c,p){return g.defined(c)?r(c,p):!1},i=function(c,p,h){if(!g.defined(c))return!1;try{return Mn(e,t,{key:c,actual:p,previous:h,type:"decreased"})}catch{return!1}},a=function(c){try{var p=In(e,t,{key:c}),h=p[0],m=p[1];return!!h.length&&!m.length}catch{return!1}},l=function(c){try{var p=In(e,t,{key:c}),h=p[0],m=p[1];return!h.length&&!!m.length}catch{return!1}},u=function(c,p,h){if(!g.defined(c))return!1;try{return Mn(e,t,{key:c,actual:p,previous:h,type:"increased"})}catch{return!1}},f=function(c,p){try{return Rn(e,t,{key:c,type:"removed",value:p})}catch{return!1}};return{added:n,changed:r,changedFrom:o,changedTo:s,decreased:i,emptied:a,filled:l,increased:u,removed:f}}function An(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 F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){z(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ir(r.key),r)}}function Ye(e,t,n){return t&&qa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z(e,t,n){return t=Ir(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ct(e)}function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jt(e,t)}function Ua(){if(typeof Reflect>"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}}function Ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Rr(e,t){if(e==null)return{};var n=Ya(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Va(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function Ge(e){var t=Ua();return function(){var r=ct(e),o;if(t){var s=ct(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return Va(this,o)}}function Ga(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ir(e){var t=Ga(e,"string");return typeof t=="symbol"?t:String(t)}var Ka={flip:{padding:20},preventOverflow:{padding:10}},Xa="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Qa="The error message is optional, but must be a string if provided.";function Ja(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e
1:!1}function Za(e,t){return Object.hasOwnProperty.call(e,t)}function el(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function tl(e,t){if(typeof e!="function")throw new TypeError(Xa);if(t&&typeof t!="string")throw new TypeError(Qa)}function Fn(e,t,n){return tl(e,n),function(r,o,s){for(var i=arguments.length,a=new Array(i>3?i-3:0),l=3;l<i;l++)a[l-3]=arguments[l];return Ja(t,r,o,s)?Za(r,o)?e.apply(void 0,[r,o,s].concat(a)):el(r,o,s):e.apply(void 0,[r,o,s].concat(a))}}var I={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Re=et.createPortal!==void 0;function te(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function St(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Ze(e){var t=e.title,n=e.data,r=e.warn,o=r===void 0?!1:r,s=e.debug,i=s===void 0?!1:s,a=o?console.warn||console.error:console.log;i&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){g.plainObject(l)&&l.key?a.apply(console,[l.key,l.value]):a.apply(console,[l])}):a.apply(console,[n]),console.groupEnd())}function nl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function rl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function ol(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o;o=function(i){n(i),rl(e,t,o)},nl(e,t,o,r)}function _n(){}var Lr=(function(e){Ve(n,e);var t=Ge(n);function n(){return Ue(this,n),t.apply(this,arguments)}return Ye(n,[{key:"componentDidMount",value:function(){te()&&(this.node||this.appendNode(),Re||this.renderPortal())}},{key:"componentDidUpdate",value:function(){te()&&(Re||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!te()||!this.node||(Re||et.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var o=this.props,s=o.id,i=o.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),i&&(this.node.style.zIndex=i),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!te())return null;var o=this.props,s=o.children,i=o.setRef;if(this.node||this.appendNode(),Re)return et.createPortal(s,this.node);var a=et.unstable_renderSubtreeIntoContainer(this,s.length>1?N.createElement("div",null,s):s[0],this.node);return i(a),null}},{key:"renderReact16",value:function(){var o=this.props,s=o.hasChildren,i=o.placement,a=o.target;return s?this.renderPortal():a||i==="center"?this.renderPortal():null}},{key:"render",value:function(){return Re?this.renderReact16():null}}]),n})(N.Component);z(Lr,"propTypes",{children:b.oneOfType([b.element,b.array]),hasChildren:b.bool,id:b.oneOfType([b.string,b.number]),placement:b.string,setRef:b.func.isRequired,target:b.oneOfType([b.object,b.string]),zIndex:b.number});var Dr=(function(e){Ve(n,e);var t=Ge(n);function n(){return Ue(this,n),t.apply(this,arguments)}return Ye(n,[{key:"parentStyle",get:function(){var o=this.props,s=o.placement,i=o.styles,a=i.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=a):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=a):s.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):s.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var o=this.props,s=o.placement,i=o.setArrowRef,a=o.styles,l=a.arrow,u=l.color,f=l.display,c=l.length,p=l.margin,h=l.position,m=l.spread,y={display:f,position:h},E,T=m,w=c;return s.startsWith("top")?(E="0,0 ".concat(T/2,",").concat(w," ").concat(T,",0"),y.bottom=0,y.marginLeft=p,y.marginRight=p):s.startsWith("bottom")?(E="".concat(T,",").concat(w," ").concat(T/2,",0 0,").concat(w),y.top=0,y.marginLeft=p,y.marginRight=p):s.startsWith("left")?(w=m,T=c,E="0,0 ".concat(T,",").concat(w/2," 0,").concat(w),y.right=0,y.marginTop=p,y.marginBottom=p):s.startsWith("right")&&(w=m,T=c,E="".concat(T,",").concat(w," ").concat(T,",0 0,").concat(w/2),y.left=0,y.marginTop=p,y.marginBottom=p),N.createElement("div",{className:"__floater__arrow",style:this.parentStyle},N.createElement("span",{ref:i,style:y},N.createElement("svg",{width:T,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},N.createElement("polygon",{points:E,fill:u}))))}}]),n})(N.Component);z(Dr,"propTypes",{placement:b.string.isRequired,setArrowRef:b.func.isRequired,styles:b.object.isRequired});var sl=["color","height","width"];function Ar(e){var t=e.handleClick,n=e.styles,r=n.color,o=n.height,s=n.width,i=Rr(n,sl);return N.createElement("button",{"aria-label":"close",onClick:t,style:i,type:"button"},N.createElement("svg",{width:"".concat(s,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},N.createElement("g",null,N.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}
1Ar.propTypes={handleClick:b.func.isRequired,styles:b.object.isRequired};function Fr(e){var t=e.content,n=e.footer,r=e.handleClick,o=e.open,s=e.positionWrapper,i=e.showCloseButton,a=e.title,l=e.styles,u={content:N.isValidElement(t)?t:N.createElement("div",{className:"__floater__content",style:l.content},t)};return a&&(u.title=N.isValidElement(a)?a:N.createElement("div",{className:"__floater__title",style:l.title},a)),n&&(u.footer=N.isValidElement(n)?n:N.createElement("div",{className:"__floater__footer",style:l.footer},n)),(i||s)&&!g.boolean(o)&&(u.close=N.createElement(Ar,{styles:l.close,handleClick:r})),N.createElement("div",{className:"__floater__container",style:l.container},u.close,u.title,u.content,u.footer)}Fr.propTypes={content:b.node.isRequired,footer:b.node,handleClick:b.func.isRequired,open:b.bool,positionWrapper:b.bool.isRequired,showCloseButton:b.bool.isRequired,styles:b.object.isRequired,title:b.node};var _r=(function(e){Ve(n,e);var t=Ge(n);function n(){return Ue(this,n),t.apply(this,arguments)}return Ye(n,[{key:"style",get:function(){var o=this.props,s=o.disableAnimation,i=o.component,a=o.placement,l=o.hideArrow,u=o.status,f=o.styles,c=f.arrow.length,p=f.floater,h=f.floaterCentered,m=f.floaterClosing,y=f.floaterOpening,E=f.floaterWithAnimation,T=f.floaterWithComponent,w={};return l||(a.startsWith("top")?w.padding="0 0 ".concat(c,"px"):a.startsWith("bottom")?w.padding="".concat(c,"px 0 0"):a.startsWith("left")?w.padding="0 ".concat(c,"px 0 0"):a.startsWith("right")&&(w.padding="0 0 0 ".concat(c,"px"))),[I.OPENING,I.OPEN].indexOf(u)!==-1&&(w=F(F({},w),y)),u===I.CLOSING&&(w=F(F({},w),m)),u===I.OPEN&&!s&&(w=F(F({},w),E)),a==="center"&&(w=F(F({},w),h)),i&&(w=F(F({},w),T)),F(F({},p),w)}},{key:"render",value:function(){var o=this.props,s=o.component,i=o.handleClick,a=o.hideArrow,l=o.setFloaterRef,u=o.status,f={},c=["__floater"];return s?N.isValidElement(s)?f.content=N.cloneElement(s,{closeFn:i}):f.content=s({closeFn:i}):f.content=N.createElement(Fr,this.props),u===I.OPEN&&c.push("__floater__open"),a||(f.arrow=N.createElement(Dr,this.props)),N.createElement("div",{ref:l,className:c.join(" "),style:this.style},N.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n})(N.Component);z(_r,"propTypes",{component:b.oneOfType([b.func,b.element]),content:b.node,disableAnimation:b.bool.isRequired,footer:b.node,handleClick:b.func.isRequired,hideArrow:b.bool.isRequired,open:b.bool,placement:b.string.isRequired,positionWrapper:b.bool.isRequired,setArrowRef:b.func.isRequired,setFloaterRef:b.func.isRequired,showCloseButton:b.bool,status:b.string.isRequired,styles:b.object.isRequired,title:b.node});var Wr=(function(e){Ve(n,e);var t=Ge(n);function n(){return Ue(this,n),t.apply(this,arguments)}return Ye(n,[{key:"render",value:function(){var o=this.props,s=o.children,i=o.handleClick,a=o.handleMouseEnter,l=o.handleMouseLeave,u=o.setChildRef,f=o.setWrapperRef,c=o.style,p=o.styles,h;if(s)if(N.Children.count(s)===1)if(!N.isValidElement(s))h=N.createElement("span",null,s);else{var m=g.function(s.type)?"innerRef":"ref";h=N.cloneElement(N.Children.only(s),z({},m,u))}else h=s;return h?N.createElement("span",{ref:f,style:F(F({},p),c),onClick:i,onMouseEnter:a,onMouseLeave:l},h):null}}]),n})(N.Component);z(Wr,"propTypes",{children:b.node,handleClick:b.func.isRequired,handleMouseEnter:b.func.isRequired,handleMouseLeave:b.func.isRequired,setChildRef:b.func.isRequired,setWrapperRef:b.func.isRequired,style:b.object,styles:b.object.isRequired});var il={zIndex:100};function al(e){var t=G(il,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var ll=["arrow","flip","offset"],cl=["position","top","right","bottom","left"],Ht=(function(e){Ve(n,e);var t=Ge(n);function n(r){var o;return Ue(this,n),o=t.call(this,r),z(ae(o),"setArrowRef",function(s){o.arrowRef=s}),z(ae(o),"setChildRef",function(s){o.childRef=s}),z(ae(o),"setFloaterRef",function(s){o.floaterRef=s}),z(ae(o),"setWrapperRef",function(s){o.wrapperRef=s}),z(ae(o),"handleTransitionEnd",function(){var s=o.state.status,i=o.props.callback;
vendor: 4,146 bytes, line 1
1o.wrapperPopper&&o.wrapperPopper.instance.update(),o.setState({status:s===I.OPENING?I.OPEN:I.IDLE},function(){var a=o.state.status;i(a===I.OPEN?"open":"close",o.props)})}),z(ae(o),"handleClick",function(){var s=o.props,i=s.event,a=s.open;if(!g.boolean(a)){var l=o.state,u=l.positionWrapper,f=l.status;(o.event==="click"||o.event==="hover"&&u)&&(Ze({title:"click",data:[{event:i,status:f===I.OPEN?"closing":"opening"}],debug:o.debug}),o.toggle())}}),z(ae(o),"handleMouseEnter",function(){var s=o.props,i=s.event,a=s.open;if(!(g.boolean(a)||St())){var l=o.state.status;o.event==="hover"&&l===I.IDLE&&(Ze({title:"mouseEnter",data:[{key:"originalEvent",value:i}],debug:o.debug}),clearTimeout(o.eventDelayTimeout),o.toggle())}}),z(ae(o),"handleMouseLeave",function(){var s=o.props,i=s.event,a=s.eventDelay,l=s.open;if(!(g.boolean(l)||St())){var u=o.state,f=u.status,c=u.positionWrapper;o.event==="hover"&&(Ze({title:"mouseLeave",data:[{key:"originalEvent",value:i}],debug:o.debug}),a?[I.OPENING,I.OPEN].indexOf(f)!==-1&&!c&&!o.eventDelayTimeout&&(o.eventDelayTimeout=setTimeout(function(){delete o.eventDelayTimeout,o.toggle()},a*1e3)):o.toggle(I.IDLE))}}),o.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:I.INIT,statusWrapper:I.INIT},o._isMounted=!1,o.hasMounted=!1,te()&&window.addEventListener("load",function(){o.popper&&o.popper.instance.update(),o.wrapperPopper&&o.wrapperPopper.instance.update()}),o}return Ye(n,[{key:"componentDidMount",value:function(){if(te()){var o=this.state.positionWrapper,s=this.props,i=s.children,a=s.open,l=s.target;this._isMounted=!0,Ze({title:"init",data:{hasChildren:!!i,hasTarget:!!l,isControlled:g.boolean(a),positionWrapper:o,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!i&&l&&g.boolean(a)}}},{key:"componentDidUpdate",value:function(o,s){if(te()){var i=this.props,a=i.autoOpen,l=i.open,u=i.target,f=i.wrapperOptions,c=Ha(s,this.state),p=c.changedFrom,h=c.changed;if(o.open!==l){var m;g.boolean(l)&&(m=l?I.OPENING:I.CLOSING),this.toggle(m)}(o.wrapperOptions.position!==f.position||o.target!==u)&&this.changeWrapperPosition(this.props),h("status",I.IDLE)&&l?this.toggle(I.OPEN):p("status",I.INIT,I.IDLE)&&a&&this.toggle(I.OPEN),this.popper&&h("status",I.OPENING)&&this.popper.instance.update(),this.floaterRef&&(h("status",I.OPENING)||h("status",I.CLOSING))&&ol(this.floaterRef,"transitionend",this.handleTransitionEnd),h("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){te()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var o=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,i=this.state.positionWrapper,a=this.props,l=a.disableFlip,u=a.getPopper,f=a.hideArrow,c=a.offset,p=a.placement,h=a.wrapperOptions,m=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:I.IDLE});else if(s&&this.floaterRef){var y=this.options,E=y.arrow,T=y.flip,w=y.offset,D=Rr(y,ll);new Fe(s,this.floaterRef,{placement:p,modifiers:F({arrow:F({enabled:!f,element:this.arrowRef},E),flip:F({enabled:!l,behavior:m},T),offset:F({offset:"0, ".concat(c,"px")},w)},D),onCreate:function(M){var H;if(o.popper=M,!((H=o.floaterRef)!==null&&H!==void 0&&H.isConnected)){o.setState({needsUpdate:!0});return}u(M,"floater"),o._isMounted&&o.setState({currentPlacement:M.placement,status:I.IDLE}),p!==M.placement&&setTimeout(function(){M.instance.update()},1)},onUpdate:function(M){o.popper=M;var H=o.state.currentPlacement;o._isMounted&&M.placement!==H&&o.setState({currentPlacement:M.placement})}})}if(i){var _=g.undefined(h.offset)?0:h.offset;new Fe(this.target,this.wrapperRef,{placement:h.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(_,"px")},flip:{enabled:!1}},onCreate:function(M){o.wrapperPopper=M,o._isMounted&&o.setState({statusWrapper:I.IDLE}),u(M,"wrapper"),p!==M.placement&&setTimeout(function(){M.instance.update(
1)},1)}})}}},{key:"rebuildPopper",value:function(){var o=this;this.floaterRefInterval=setInterval(function(){var s;(s=o.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(o.floaterRefInterval),o.setState({needsUpdate:!1}),o.initPopper())},50)}},{key:"changeWrapperPosition",value:function(o){var s=o.target,i=o.wrapperOptions;this.setState({positionWrapper:i.position&&!!s})}},{key:"toggle",value:function(o){var s=this.state.status,i=s===I.OPEN?I.CLOSING:I.OPENING;g.undefined(o)||(i=o),this.setState({status:i})}},{key:"debug",get:function(){var o=this.props.debug;return o||te()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var o=this.props,s=o.disableHoverToClick,i=o.event;return i==="hover"&&St()&&!s?"click":i}},{key:"options",get:function(){var o=this.props.options;return G(Ka,o||{})}},{key:"styles",get:function(){var o=this,s=this.state,i=s.status,a=s.positionWrapper,l=s.statusWrapper,u=this.props.styles,f=G(al(u),u);if(a){var c;[I.IDLE].indexOf(i)===-1||[I.IDLE].indexOf(l)===-1?c=f.wrapperPosition:c=this.wrapperPopper.styles,f.wrapper=F(F({},f.wrapper),c)}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=F(F({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},a||(cl.forEach(function(h){o.wrapperStyles[h]=p[h]}),f.wrapper=F(F({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!te())return null;var o=this.props.target;return o?g.domElement(o)?o:document.querySelector(o):this.childRef||this.wrapperRef}},{key:"render",value:function(){var o=this.state,s=o.currentPlacement,i=o.positionWrapper,a=o.status,l=this.props,u=l.children,f=l.component,c=l.content,p=l.disableAnimation,h=l.footer,m=l.hideArrow,y=l.id,E=l.open,T=l.showCloseButton,w=l.style,D=l.target,_=l.title,B=N.createElement(Wr,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},u),M={};return i?M.wrapperInPortal=B:M.wrapperAsChildren=B,N.createElement("span",null,N.createElement(Lr,{hasChildren:!!u,id:y,placement:s,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},N.createElement(_r,{component:f,content:c,disableAnimation:p,footer:h,handleClick:this.handleClick,hideArrow:m||s==="center",open:E,placement:s,positionWrapper:i,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:T,status:a,styles:this.styles,title:_}),M.wrapperInPortal),M.wrapperAsChildren)}}]),n})(N.Component);z(Ht,"propTypes",{autoOpen:b.bool,callback:b.func,children:b.node,component:Fn(b.oneOfType([b.func,b.element]),function(e){return!e.content}),content:Fn(b.node,function(e){return!e.component}),debug:b.bool,disableAnimation:b.bool,disableFlip:b.bool,disableHoverToClick:b.bool,event:b.oneOf(["hover","click"]),eventDelay:b.number,footer:b.node,getPopper:b.func,hideArrow:b.bool,id:b.oneOfType([b.string,b.number]),offset:b.number,open:b.bool,options:b.object,placement:b.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:b.bool,style:b.object,styles:b.object,target:b.oneOfType([b.object,b.string]),title:b.node,wrapperOptions:b.shape({offset:b.number,placement:b.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:b.bool})});z(Ht,"defaultProps",{autoOpen:!1,callback:_n,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:_n,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var ul=Object.defineProperty,fl=(e,t,n)=>t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>fl(e,typeof t!="symbol"?t+"":t,n),L={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Y={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},C={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},j={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ue(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function Br(e){return e?e.getBoundingClientRect():null}function dl(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((s,i)=>s-i),o=Math.floor(r.length/2);return r.length%2===0?(r[o-1]+r[o])/2:r[o]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function le(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function pl(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function _e(e,t,n){if(!e)return me();const r=hr(e);if(r){if(r.isSameNode(me()))return n?document:me();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",me()}return r}function mt(e,t){if(!e)return!1;const n=_e(e,t);return n?!n.isSameNode(me()):!1}function hl(e){return e.offsetParent!==document.body}function Ee(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=pl(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Ee(e.parentNode,t):!1}function ml(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:o}=getComputedStyle(n);if(r==="none"||o==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function gl(e,t,n){var r,o,s;const i=Br(e),a=_e(e,n),l=mt(e,n),u=Ee(e);let f=0,c=(r=i?.top)!=null?r:0;if(l&&u){const p=(o=e?.offsetTop)!=null?o:0,h=(s=a?.scrollTop)!=null?s:0;c=p-h}else a instanceof HTMLElement&&(f=a.scrollTop,!l&&!Ee(e)&&(c+=f),a.isSameNode(me())||(c+=me().scrollTop));return Math.floor(c-t)}function yl(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:s=0}=(r=hr(e))!=null?r:{};let i=e.getBoundingClientRect().top+s;o&&(mt(e,n)||hl(e))&&(i-=o);const a=Math.floor(i-t);return a<0?0:a}function me(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function bl(e,t){const{duration:n,element:r}=t;return new Promise((o,s)=>{const{scrollTop:i}=r,a=e>i?e-i:i-e;Fi.top(r,e,{duration:a<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):o())})}var Ie=tt.createPortal!==void 0;function zr(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function rt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ne(e,t={}){const{defaultValue:n,step:r,steps:o}=t;let s=On(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&o&&(s=s.replace("{step}",r.toString()).replace("{steps}",o.toString()));else if(x.isValidElement(e)&&!Object.values(e.props).length&&rt(e.type)==="function"){const i=e.type({});s=ne(i,t)}else s=On(n);return s}function vl(e,t){return!O.plainObject(e)||!O.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function xl(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(o,s,i,a)=>s+s+i+i+a+a),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function Wn(e){return e.disableBeacon||e.placement==="center"}function Bn(){return!["chrome","safari","firefox","opera"].includes(zr())}function ge({data:e,debug:t=!1,title:n,warn:r=!1}){const o=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(s=>{O.plainObject(s)&&s.key?o.apply(console,[s.key,s.value]):o.apply(console,[s])}):o.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function wl(e){return Object.keys(e)}function $r(e,...t){if(!O.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Sl(e,...t){if(!O.plainObject(e))throw new TypeError("Expected an object");
1if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function kt(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(rt(e)==="string")return r(e);if(!x.isValidElement(e))return e;const{children:o}=e.props;if(rt(o)==="string"&&o.includes("{step}"))return x.cloneElement(e,{children:r(o)});if(Array.isArray(o))return x.cloneElement(e,{children:o.map(s=>typeof s=="string"?r(s):kt(s,t,n))});if(rt(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return kt(s,t,n)}return e}function Ol(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:o,step:s,target:i}=e;return!s.disableScrolling&&(!t||o||n===C.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!Ee(i))&&r!==n&&[C.BEACON,C.TOOLTIP].includes(n)}var El={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Hr={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Pl={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Hr,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Tl={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Cl={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Le={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},zn={borderRadius:4,position:"absolute"};function Nl(e,t){var n,r,o,s,i;const{floaterProps:a,styles:l}=e,u=G((n=t.floaterProps)!=null?n:{},a??{}),f=G(l??{},(r=t.styles)!=null?r:{}),c=G(Cl,f.options||{}),p=t.placement==="center"||t.disableBeacon;let{width:h}=c;window.innerWidth>480&&(h=380),"width"in c&&(h=typeof c.width=="number"&&window.innerWidth<c.width?window.innerWidth-30:c.width);const m={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:c.zIndex},y={beacon:{...Le,display:p?"none":"inline-block",height:c.beaconSize,position:"relative",width:c.beaconSize,zIndex:c.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:c.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${xl(c.primaryColor).join(",")}, 0.2)`,border:`2px solid ${c.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:c.backgroundColor,borderRadius:5,boxSizing:"border-box",color:c.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:h},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Le,backgroundColor:c.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Le,color:c.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Le,color:c.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Le,color:c.textColor,fontSize:14},overlay:{...m,backgroundColor:c.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...m},overlayLegacyCenter:{...m,backgroundColor:c.overlayColor},spotlight:{...zn,backgroundColor:"gray"}
1,spotlightLegacy:{...zn,boxShadow:`0 0 0 9999px ${c.overlayColor}, ${c.spotlightShadow}`},floaterStyles:{arrow:{color:(i=(s=(o=u?.styles)==null?void 0:o.arrow)==null?void 0:s.color)!=null?i:c.arrowColor},options:{zIndex:c.zIndex+100}},options:c};return G(y,f)}function jl(e){return Sl(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function xe(e,t){var n,r,o,s,i,a;const l=t??{},u=G.all([Pl,jl(e),l],{isMergeableObject:O.plainObject}),f=Nl(e,u),c=mt(le(u.target),u.disableScrollParentFix),p=G.all([El,(n=e.floaterProps)!=null?n:{},(r=u.floaterProps)!=null?r:{}]);return p.offset=u.offset,p.styles=G((o=p.styles)!=null?o:{},f.floaterStyles),p.offset+=(i=(s=e.spotlightPadding)!=null?s:u.spotlightPadding)!=null?i:0,u.placementBeacon&&p.wrapperOptions&&(p.wrapperOptions.placement=u.placementBeacon),c&&p.options.preventOverflow&&(p.options.preventOverflow.boundariesElement="window"),{...u,locale:G.all([Hr,(a=e.locale)!=null?a:{},u.locale||{}]),floaterProps:p,styles:$r(f,"floaterStyles")}}function qr(e,t=!1){return O.plainObject(e)?e.target?!0:(ge({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ge({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function $n(e,t=!1){return O.array(e)?e.every(n=>qr(n,t)):(ge({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Ur={action:"init",controlled:!1,index:0,lifecycle:C.INIT,origin:null,size:0,status:j.IDLE},Hn=wl($r(Ur,"controlled","size")),kl=class{constructor(e){P(this,"beaconPopper"),P(this,"tooltipPopper"),P(this,"data",new Map),P(this,"listener"),P(this,"store",new Map),P(this,"addListener",o=>{this.listener=o}),P(this,"setSteps",o=>{const{size:s,status:i}=this.getState(),a={size:o.length,status:i};this.data.set("steps",o),i===j.WAITING&&!s&&o.length&&(a.status=j.RUNNING),this.setState(a)}),P(this,"getPopper",o=>o==="beacon"?this.beaconPopper:this.tooltipPopper),P(this,"setPopper",(o,s)=>{o==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),P(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),P(this,"close",(o=null)=>{const{index:s,status:i}=this.getState();i===j.RUNNING&&this.setState({...this.getNextState({action:L.CLOSE,index:s+1,origin:o})})}),P(this,"go",o=>{const{controlled:s,status:i}=this.getState();if(s||i!==j.RUNNING)return;const a=this.getSteps()[o];this.setState({...this.getNextState({action:L.GO,index:o}),status:a?i:j.FINISHED})}),P(this,"info",()=>this.getState()),P(this,"next",()=>{const{index:o,status:s}=this.getState();s===j.RUNNING&&this.setState(this.getNextState({action:L.NEXT,index:o+1}))}),P(this,"open",()=>{const{status:o}=this.getState();o===j.RUNNING&&this.setState({...this.getNextState({action:L.UPDATE,lifecycle:C.TOOLTIP})})}),P(this,"prev",()=>{const{index:o,status:s}=this.getState();s===j.RUNNING&&this.setState({...this.getNextState({action:L.PREV,index:o-1})})}),P(this,"reset",(o=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:L.RESET,index:0}),status:o?j.RUNNING:j.READY})}),P(this,"skip",()=>{const{status:o}=this.getState();o===j.RUNNING&&this.setState({action:L.SKIP,lifecycle:C.INIT,status:j.SKIPPED})}),P(this,"start",o=>{const{index:s,size:i}=this.getState();this.setState({...this.getNextState({action:L.START,index:O.number(o)?o:s},!0),status:i?j.RUNNING:j.WAITING})}),P(this,"stop",(o=!1)=>{const{index:s,status:i}=this.getState();[j.FINISHED,j.SKIPPED].includes(i)||this.setState({...this.getNextState({action:L.STOP,index:s+(o?1:0)}),status:j.PAUSED})}),P(this,"update",o=>{var s,i;if(!vl(o,Hn))throw new Error(`State is not valid. Valid keys: ${Hn.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...o,action:(s=o.action)!=null?s:L.UPDATE,origin:(i=o.origin)!=null?i:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:L.INIT,controlled:O.number(n),continuous:t,index:O.number(n)?n:0,lifecycle:C.INIT,origin:null,status:r.length?j.READY:j.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Ur}}getNextState(e,t=!1){var n,r,o,s,i;const{action:a,controlled:l,index:u,size:f,status:c}=this.getState(),p=O.number(e.index)?e.index:u,h=l&&!t?u:Math.min(Math.max(p,0),f);return{action:(n=e.action)!=null?n:a,controlled:l,index:h,lifecycle:(r=e.lifecycle)!=null?r:C.INIT,origin:(o=e.origin)!=null?o:null,size:(s=e.size)!=null?s:f,status:h===f?j.FINISHED:(i=e.status)!=null?i:c}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:o,lifecycle:s,origin:i=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",s),this.store.set("origin",i),this.store.set("size",a),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Ml(e){return new kl(e)}function Rl({styles:e}){return x.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Il=Rl,Ll=class extends x.Component{constructor(){super(...arguments),P(this,"isActive",!1),P(this,"resizeTimeout"),P(this,"scrollTimeout"),P(this,"scrollParent"),P(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),P(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[C.INIT,C.BEACON,C.COMPLETE,C.ERROR];return t||(e?r.includes(n):n!==C.TOOLTIP)}),P(this,"handleMouseMove",e=>
1{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:o,top:s,width:i}=this.spotlightStyles,a=o==="fixed"?e.clientY:e.pageY,l=o==="fixed"?e.clientX:e.pageX,u=a>=s&&a<=s+n,c=l>=r&&l<=r+i&&u;c!==t&&this.updateState({mouseOverSpotlight:c})}),P(this,"handleScroll",()=>{const{target:e}=this.props,t=le(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Ee(t,"sticky")&&this.updateState({})}),P(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,o=le(r);this.scrollParent=_e(o??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:o,target:s}=this.props,{changed:i}=it(e,this.props);if(i("target")||i("disableScrollParentFix")){const a=le(s);this.scrollParent=_e(a??document.body,n,!0)}i("lifecycle",C.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:a}=this.state;a||this.updateState({showSpotlight:!0})},100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(o&&r===C.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==C.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let o=r.overlay;return Bn()&&(o=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:dl(),pointerEvents:e?"none":"auto",...o}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:o=!1,spotlightClicks:s,spotlightPadding:i=0,styles:a,target:l}=this.props,u=le(l),f=Br(u),c=Ee(u),p=gl(u,i,o);return{...Bn()?a.spotlightLegacy:a.spotlight,height:Math.round(((e=f?.height)!=null?e:0)+i*2),left:Math.round(((t=f?.left)!=null?t:0)-i),opacity:r?1:0,pointerEvents:s?"none":"auto",position:c?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((n=f?.width)!=null?n:0)+i*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:o,spotlightStyles:s}=this;if(r())return null;let i=n!=="center"&&e&&x.createElement(Il,{styles:s});if(zr()==="safari"){const{mixBlendMode:a,zIndex:l,...u}=o;i=x.createElement("div",{style:{...u}},i),delete o.backgroundColor}return x.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:o},i)}},Dl=class extends x.Component{constructor(){super(...arguments),P(this,"node",null)}componentDidMount(){const{id:e}=this.props;ue()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ie||this.renderReact15())}componentDidUpdate(){ue()&&(Ie||this.renderReact15())}componentWillUnmount(){!ue()||!this.node||(Ie||tt.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ue())return;const{children:e}=this.props;this.node&&tt.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ue()||!Ie)return null;const{children:e}=this.props;return this.node?tt.createPortal(e,this.node):null}render(){return Ie?this.renderReact16():null}},Al=class{constructor(e,t){if(P(this,"element"),P(this,"options"),P(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),P(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,o=n.nodeName.toLowerCase();return(r.test(o)&&!n.getAttribute("disabled")||o==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),P(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),P(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),P(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:o}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!o&&s+1===r.length?s=0:o&&s===0?s=r.length-1:s+=o?-1:1,r[s].focus()}),P(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,o=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&o.getPropertyValue("overflow")!=="visible"||o.getPropertyValue("display")==="none"}),P(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),P(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),P(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),P(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Fl=class extends x.Component{constructor(e){if(super(e),P(this,"beacon",null),P(this,"setBeaconRef",o=>{this.beacon=o}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
2        @keyframes joyride-beacon-inner {
3          20% {
4            opacity: 0.9;
5          }
6        
7          90% {
8            opacity: 0.7;
9          }
10        }
11        
12        @keyframes joyride-beacon-outer {
13          0% {
14            transform: scale(1);
15          }
16        
17          45% {
18            opacity: 0.7;
19            transform: scale(0.75);
20          }
21        
22          100% {
23            opacity: 0.9;
24            transform: scale(1);
25          }
26        }
27      `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{O.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:o,onClickOrHover:s,size:i,step:a,styles:l}=this.props,u=ne(o.open),f={"aria-label":u,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:u};let c;if(e){const p=e;c=x.createElement(p,{continuous:t,index:n,isLastStep:r,size:i,step:a,...f})}else c=x.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...f},x.createElement("span",{style:l.beaconInner}),x.createElement("span",{style:l.beaconOuter}));return c}};function _l({styles:e,...t}){const{color:n,height:r,width:o,...s}=e;return N.createElement("button",{style:s,type:"button",...t},N.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof o=="number"?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},N.createElement("g",null,N.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Wl=_l;function Bl(e){const{backProps:t,closeProps:n,index:r,isLastStep:o,primaryProps:s,skipProps:i,step:a,tooltipProps:l}=e,{content:u,hideBackButton:f,hideCloseButton:c,hideFooter:p,showSkipButton:h,styles:m,title:y}=a,E={};return E.primary=x.createElement("button",{"data-test-id":"button-primary",style:m.buttonNext,type:"button",...s}
27),h&&!o&&(E.skip=x.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:m.buttonSkip,type:"button",...i})),!f&&r>0&&(E.back=x.createElement("button",{"data-test-id":"button-back",style:m.buttonBack,type:"button",...t})),E.close=!c&&x.createElement(Wl,{"data-test-id":"button-close",styles:m.buttonClose,...n}),x.createElement("div",{key:"JoyrideTooltip","aria-label":ne(y??u),className:"react-joyride__tooltip",style:m.tooltip,...l},x.createElement("div",{style:m.tooltipContainer},y&&x.createElement("h1",{"aria-label":ne(y),style:m.tooltipTitle},y),x.createElement("div",{style:m.tooltipContent},u)),!p&&x.createElement("div",{style:m.tooltipFooter},x.createElement("div",{style:m.tooltipFooterSpacer},E.skip),E.back,E.primary),E.close)}var zl=Bl,$l=class extends x.Component{constructor(){super(...arguments),P(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),P(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),P(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),P(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),P(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:s}=this.props,{back:i,close:a,last:l,next:u,nextLabelWithProgress:f,skip:c}=s.locale,p=ne(i),h=ne(a),m=ne(l),y=ne(u),E=ne(c);let T=a,w=h;if(e){if(T=u,w=y,s.showProgress&&!n){const D=ne(f,{step:t+1,steps:o});T=kt(f,t+1,o),w=D}n&&(T=l,w=m)}return{backProps:{"aria-label":p,children:i,"data-action":"back",onClick:this.handleClickBack,role:"button",title:p},closeProps:{"aria-label":h,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:h},primaryProps:{"aria-label":w,children:T,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:w},skipProps:{"aria-label":E,children:c,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:E},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:s}=this.props,{beaconComponent:i,tooltipComponent:a,...l}=s;let u;if(a){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:l,setTooltipRef:r},c=a;u=x.createElement(c,{...f})}else u=x.createElement(zl,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:s});return u}},Hl=class extends x.Component{constructor(){super(...arguments),P(this,"scope",null),P(this,"tooltip",null),P(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:C.TOOLTIP})}),P(this,"setTooltipRef",e=>{this.tooltip=e}),P(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:o,step:s,store:i}=this.props;t==="wrapper"?i.setPopper("beacon",e):i.setPopper("tooltip",e),i.getPopper("beacon")&&(i.getPopper("tooltip")||s.placement==="center")&&o===C.INIT&&i.update({action:r,lifecycle:C.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),P(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:o,step:s}=this.props;return x.createElement($l,{continuous:t,helpers:n,index:r,isLastStep:r+1===o,setTooltipRef:this.setTooltipRef,size:o,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ge({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:o,controlled:s,debug:i,helpers:a,index:l,lifecycle:u,shouldScroll:f,status:c,step:p,store:h}=this.props,{changed:m,changedFrom:y}=it(e,this.props),E=a.info(),T=o&&n!==L.CLOSE&&(l>0||n===L.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),D=y("lifecycle",[C.TOOLTIP,C.INIT],C.INIT),_=m("action",[L.NEXT,L.PREV,L.SKIP,L.CLOSE]),B=s&&l===e.index;if(_&&(D||B)&&r({...E,index:e.index,lifecycle:C.COMPLETE,step:e.step,type:Y.STEP_AFTER}),p.placement==="center"&&c===j.RUNNING&&m("index")&&n!==L.START&&u===C.INIT&&h.update({lifecycle:C.READY}),w){const M=le(p.target),H=!!M;H&&ml(M)?(y("status",j.READY,j.RUNNING)||y("lifecycle",C.INIT,C.READY))&&r({...E,step:p,type:Y.STEP_BEFORE}):(console.warn(H?"Target not visible":"Target not mounted",p),r({...E,type:Y.TARGET_NOT_FOUND,step:p}),s||h.update({index:l+(n===L.PREV?-1:1)}))}y("lifecycle",C.INIT,C.READY)&&h.update({lifecycle:Wn(p)||T?C.TOOLTIP:C.BEACON}),m("index")&&ge({title:`step:${u}`,data:[{key:"props",value:this.props}],debug:i}),m("lifecycle",C.BEACON)&&r({...E,step:p,type:Y.BEACON}),m("lifecycle",C.TOOLTIP)&&(r({...E,step:p,type:Y.TOOLTIP}),f&&this.tooltip&&(this.scope=new Al(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),y("lifecycle",[C.TOOLTIP,C.INIT],C.INIT)&&((t=this.scope)==null||t.removeScope(),h.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Wn(t)||e===C.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:o,size:s,step:i}=this.props,a=le(i.target);return!qr(i)||!O.domElement(a)?null:x.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},x.createElement(Ht,{...i.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:i.placement,target:i.target},x.createElement(Fl,{beaconComponent:i.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:i.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:s,step:i,styles:i.styles})))}},Yr=class extends x.Component{constructor(e){super(e),P(this,"helpers"),P(this,"store"),P(this,"callback",i=>{const{callback:a}=this.props;O.function(a)&&a(i)}),P(this,"handleKeyboard",i=>{const{index:a,lifecycle:l}=this.state,{steps:u}=this.props,f=u[a];l===C.TOOLTIP&&i.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),P(this,"handleClickOverlay",()=>{const{index:i}=this.state,{steps:a}=this.props;xe(this.props,a[i]).disableOverlayClose||this.helpers.close("overlay")}),P(this,"syncState",i=>{this.setState(i)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:o}=e;this.store=Ml({...e,controlled:r&&O.number(o)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;ge({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ue())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:o}=this.store;$n(r,e)&&n&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ue())return;const{action:n,controlled:r,index:o,status:s}=this.state,{debug:i,run:a,stepIndex:l,steps:u}=this.props,{stepIndex:f,steps:c}=e,{reset:p,setSteps:h,start:m,stop:y,update:E}=this.store,{changed:T}=it(e,this.props),{changed:w,changedFrom:D}=it(t,this.state),_=xe(this.props,u[o]),B=!$(c,u),M=O.number(l)&&T("stepIndex"),H=le(_.target);if(B&&($n(u,i)?h(u):console.warn("Steps are not valid",u)),T("run")&&(a?m(l):y()),M){let Z=O.
27number(f)&&f<l?L.NEXT:L.PREV;n===L.STOP&&(Z=L.START),[j.FINISHED,j.SKIPPED].includes(s)||E({action:n===L.CLOSE?L.CLOSE:Z,index:l,lifecycle:C.INIT})}!r&&s===j.RUNNING&&o===0&&!H&&(this.store.update({index:o+1}),this.callback({...this.state,type:Y.TARGET_NOT_FOUND,step:_}));const ie={...this.state,index:o,step:_};if(w("action",[L.NEXT,L.PREV,L.SKIP,L.CLOSE])&&w("status",j.PAUSED)){const Z=xe(this.props,u[t.index]);this.callback({...ie,index:t.index,lifecycle:C.COMPLETE,step:Z,type:Y.STEP_AFTER})}if(w("status",[j.FINISHED,j.SKIPPED])){const Z=xe(this.props,u[t.index]);r||this.callback({...ie,index:t.index,lifecycle:C.COMPLETE,step:Z,type:Y.STEP_AFTER}),this.callback({...ie,type:Y.TOUR_END,step:Z,index:t.index}),p()}else D("status",[j.IDLE,j.READY],j.RUNNING)?this.callback({...ie,type:Y.TOUR_START}):(w("status")||w("action",L.RESET))&&this.callback({...ie,type:Y.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:o,disableScrollParentFix:s=!1,scrollDuration:i,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:u}=this.props,f=xe(this.props,u[t]),c=le(f.target),p=Ol({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:f,target:c});if(r===j.RUNNING&&p){const h=mt(c,s),m=_e(c,s);let y=Math.floor(yl(c,a,s))||0;ge({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:o});const E=this.store.getPopper("beacon"),T=this.store.getPopper("tooltip");if(n===C.BEACON&&E){const{offsets:w,placement:D}=E;!["bottom"].includes(D)&&!h&&(y=Math.floor(w.popper.top-a))}else if(n===C.TOOLTIP&&T){const{flipped:w,offsets:D,placement:_}=T;["top","right","left"].includes(_)&&!w&&!h?y=Math.floor(D.popper.top-a):y-=f.spotlightPadding}y=y>=0?y:0,r===j.RUNNING&&bl(y,{element:m,duration:i}).then(()=>{setTimeout(()=>{var w;(w=this.store.getPopper("tooltip"))==null||w.instance.update()},10)})}}render(){if(!ue())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:o=!1,nonce:s,scrollToFirstStep:i=!1,steps:a}=this.props,l=n===j.RUNNING,u={};
27if(l&&a[e]){const f=xe(this.props,a[e]);u.step=x.createElement(Hl,{...this.state,callback:this.callback,continuous:r,debug:o,helpers:this.helpers,nonce:s,shouldScroll:!f.disableScrolling&&(e!==0||i),step:f,store:this.store}),u.overlay=x.createElement(Dl,{id:"react-joyride-portal"},x.createElement(Ll,{...f,continuous:r,debug:o,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return x.createElement("div",{className:"react-joyride"},u.step,u.overlay)}};P(Yr,"defaultProps",Tl);var ql=Yr;const Ul=({isOpen:e,onClose:t})=>{const n=rr();return d.jsx(Gn,{open:e,onOpenChange:t,children:d.jsxs(Kn,{children:[d.jsx(Xn,{}),d.jsxs(Qn,{className:"max-w-[460px] sm:rounded-[26px] p-0 overflow-hidden",children:[d.jsx("div",{className:"flex absolute top-4 right-4 items-center justify-end",children:d.jsx(ao,{asChild:!0,children:d.jsx(se,{variant:"outline",className:"px-0 size-7 lg:size-9",children:d.jsx(Zn,{className:"size-5"})})})}),d.jsxs("div",{className:"px-5 py-7 lg:p-6 flex flex-col items-center justify-center",children:[d.jsx(ut,{icon:d.jsx(Bo,{className:"size-5"}),className:"flex flex-col mb-2",textClassName:"font-medium text-lg text-center",iconClassName:"text-primary bg-primary/20",children:d.jsx(Jn,{className:"text-base lg:text-lg",children:"You’re In! Welcome Aboard"})}),d.jsxs("p",{className:"text-sm lg:text-[15px] leading-loose font-normal text-center text-text-default/75 mb-8",children:[n?`Your ${n} success journey begins now.`:"Your success journey begins now."," ","Stay consistent, and we’ll guide you to your top score!"]}),d.jsx(se,{onClick:t,children:"Let's Go!"})]})]})]})})},Vr=e=>x.createElement("svg",{width:19,height:16,viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("g",{clipPath:"url(#clip0_1136_10197)"},x.createElement("path",{d:"M6.93151 12.3903C6.99131 12.3796 7.17345 12.3477 12.3921 12.3415C12.8788 12.3415 13.3203 12.3406 13.7233 12.3406C17.7038 12.3406 17.7967 12.3699 17.9291 12.4107C18.4664 12.5792 18.8546 12.9952 18.9686 13.5229C19.0809 14.0462 18.8978 14.5703 18.4792 14.9251C18.2879 15.0874 17.9558 15.2 17.9531 15.2009C17.8151 15.2462 17.6955 15.2843 12.337 15.3038C6.96647 15.3233 6.857 15.2861 6.70521 15.2338C6.02999 15.0023 5.61419 14.3947 5.67122 13.7216C5.72826 13.0457 6.23513 12.5109 6.93151 12.3894V12.3903Z",fill:"currentColor"}),x.createElement("path",{d:"M2.91124 11.7425C4.104 12.0908 4.77807 13.3053 4.41682 14.4553C4.05557 15.6053 2.7958 16.2552 1.60304 15.9069C0.410281 15.5586 -0.263789 14.344 0.0974621 13.194C0.458713 12.0441 1.71849 11.3942 2.91124 11.7425Z",fill:"currentColor"}),x.createElement("path",{d:"M18.4773 9.10149C18.286 9.2638 17.9539 9.37644 17.9511 9.37733C17.8131 9.42256 17.6935 9.4607 12.335 9.48021C6.96451 9.49972 6.85505 9.46247 6.70326 9.41014C6.02804 9.17866 5.61224 8.57112 5.66927 7.89795C5.72631 7.22212 6.23318 6.6873 6.93048 6.5658C6.99027 6.55515 7.17242 6.52322 12.3911 6.51702C12.8759 6.51702 13.3175 6.51613 13.7186 6.51613C17.7027 6.51613 17.7947 6.5454 17.9272 6.5862C18.4644 6.75471 18.8526 7.16979 18.9667 7.69839C19.0789 8.22167 18.8959 8.74584 18.4764 9.10149H18.4773Z",fill:"currentColor"}),x.createElement("path",{d:"M2.68449 5.86329C3.90827 6.0905 4.7093 7.23117 4.47364 8.41105C4.23798 9.59092 3.05486 10.3632 1.83108 10.136C0.607304 9.9088 -0.193723 8.76813 0.0419396 7.58825C0.277602 6.40837 1.46071 5.63608 2.68449 5.86329Z",fill:"currentColor"}),x.createElement("path",{d:"M18.4792 3.2763C18.2879 3.4386 17.9558 3.55124 17.9531 3.55213C17.8151 3.59736 17.6964 3.6355 12.337 3.65501C6.96647 3.67453 6.857 3.63728 6.70521 3.58495C6.02999 3.35346 5.61419 2.74592 5.67122 2.07275C5.72826 1.39781 6.23513 0.862108 6.93243 0.740601C6.99223 0.729958 7.17437 0.698915 12.3931 0.69182C12.8806 0.69182 13.3231 0.69182 13.726 0.69182C17.7047 0.69182 17.7967 0.720202 17.9301 0.761887C18.4673 0.930402 18.8555 1.34637 18.9686 1.87408C19.0809 2.39736 18.8978 2.92153 18.4792 3.2763Z",fill:"currentColor"}),x.createElement("path",{d:"M3.12048 0.165839C4.27188 0.625655 4.81865 1.89832 4.34172 3.00841C3.8648 4.1185 2.54478 4.64566 1.39338 4.18584C0.241986 3.72603 -0.304783 2.45336 0.172142 1.34327C0.649066 0.233178 1.96908 -0.293977 3.12048 0.165839Z",fill:"currentColor"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_1136_10197"},x.createElement("rect",{width:19,height:16,fill:"white",transform:"matrix(1 0 0 -1 0 16)"})))),qn="progress-tour-completed",Yl=()=>{const{isMobile:e}=Vn(),[t,n]=x.useState(!1),[r,o]=x.useState(!1),[s,i]=x.useState(0),{data:a}=wo(),l=x.useRef(!1),u=rr(),f=[{title:"Track Your Mastery Progress",content:u?`View detailed analytics and progress across every topic in ${u}.`:"View detailed analytics and progress across every topic.",target:"#knowledge-progress-header",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,data:{icon:zo}},{title:"Keep Up With Your Assignments",content:"See what's been assigned to you, when it's due, and what you've already finished.",target:"#assignments",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,data:{icon:or}},{title:"Review Your Marked Questions",content:"Revisit questions you've marked for later to improve accuracy and recall.",target:"#review-marked-questions",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,data:{icon:$o}},{title:"Build and Test Your Vocabulary",content:"Save tricky words, practice them regularly, and mark them as mastered.",target:"#vocabulary-list",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,data:{icon:Vr}},{title:"Analyze Your Completed Exams",content:"Go back to your finished exams to review answers and improve your strategy.",target:"#review-exams",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,data:{icon:Ro}}],c=a?.milestoneNo;x.useEffect(()=>{if(l.current)return;!localStorage.getItem(qn)&&c===1&&(l.current=!0,n(!0))},[c]);const p=h=>{const{status:m,action:y,type:E,index:T}=h;if([j.FINISHED,j.SKIPPED].includes(m)||y===L.CLOSE){n(!1),i(0),localStorage.setItem(qn,"true"),(m===j.FINISHED||m===j.SKIPPED)&&o(!0);return}E===Y.STEP_AFTER&&(y===L.NEXT?i(T+1):y===L.PREV&&i(T-1))};return d.jsxs(d.Fragment,{children:[d.jsx(ql,{steps:f,run:t,stepIndex:s,continuous:!0,showSkipButton:!0,showProgress:!0,callback:p,tooltipComponent:Vl,spotlightPadding:0,scrollOffset:100,styles:{spotlight:{borderRadius:e?16:26,transitionDuration:"0.5s"},overlay:{zIndex:1e3,height:"max(100vh, 100%)",minHeight:"100%"}},floaterProps:{hideArrow:!0,styles:{floater:{zIndex:1001}}}}),d.jsx(Ul,{isOpen:r,onClose:()=>o(!1)})]})};function Vl(e){const{closeProps:t,index:n,primaryProps:r,skipProps:o,step:s,tooltipProps:i,size:a,isLastStep:l}=e,u=s.data?.icon;return d.jsxs("div",{className:"bg-white border border-border rounded-[16px] p-4 lg:p-6 max-w-[350px] lg:max-w-[400px] relative",...i,children:[d.jsx(se,{variant:"outline",className:"size-[32px] rounded-full p-0 absolute -top-3 -right-3",...t,children:d.jsx(lo,{className:"size-[8px]"})}),d.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[d.jsx(ut,{icon:d.jsx(u,{className:"size-3 lg:size-4"}),wrapperClassName:"lg:size-[48px]"}),d.jsxs("div",{children:[d.jsx("h4",{className:"lg:text-lg font-semibold",children:s.title}),d.jsxs("span",{className:"text-sm text-text-default/60",children:["Step ",n+1," of ",a]})]})]}),d.jsx("p",{className:"text-sm leading-relaxed mb-5",children:s.content}),d.jsxs("div",{className:"flex items-center gap-6",children:[d.jsx(se,{className:"flex-1 rounded-[8px]",...r,children:l?"Done":"Next"}),!l&&d.jsx(se,{variant:"text",className:"",...o,children:"Skip Tour"})]})]})}const Gl=({title:e,image:t,icon:n,imageClassName:r,widget:o,badge:s})=>d.jsxs("div",{className:"bg-[#E5EFFF] hover:opacity-80 p-5 lg:p-[18px] rounded-2xl lg:rou
27nded-[26px] relative transition-colors overflow-hidden h-full min-h-[148px]",children:[d.jsxs("div",{className:"flex items-center gap-3 lg:gap-[14px]",children:[d.jsxs("div",{className:"relative p-[3px] rounded-[10px] bg-white border border-brand-border size-[30px] lg:size-[38px] shrink-0",children:[d.jsx("div",{className:"flex items-center justify-center rounded-[6px] size-full bg-light-green/20 text-light-green",children:n}),s&&d.jsx("div",{className:"absolute -top-1.5 -right-1.5",children:s})]}),d.jsx("div",{className:"relative flex flex-col leading-relaxed text-[15px] lg:text-lg font-semibold",children:e})]}),t&&d.jsx("div",{className:K("pointer-events-none absolute bottom-0",r?"right-5 lg:right-[34px]":"right-4 w-[44%] max-w-[140px]"),children:d.jsx("img",{src:t,alt:"review",className:K("object-contain",r??"object-bottom w-full max-h-[76px]")})}),o&&d.jsx("div",{className:"pointer-events-none absolute right-3 bottom-3 lg:origin-bottom-right lg:scale-90",children:o})]}),Un=6,Kl=()=>{const{data:e=[]}=vo(),t=e.length===0,n=e.slice(0,Un),r=[...new Set(e.map(s=>s.topic).filter(Boolean))],o=t?"Nothing marked yet":r.length===1?r[0]:`${r.length} topics`;return d.jsxs("div",{className:"w-[168px] rounded-xl bg-white p-2.5 text-start shadow-sm",children:[d.jsxs("span",{className:"flex items-center justify-between gap-2",children:[d.jsxs("span",{className:"min-w-0",children:[d.jsxs("span",{className:"text-secondary block truncate text-[12px] font-semibold",children:[e.length," ",e.length===1?"Question":"Questions"," Marked"]}),d.jsx("span",{className:"text-text-default/45 mt-0.5 block truncate text-[10px]",children:o})]}),d.jsx(Ho,{className:"text-secondary size-2.5 shrink-0"})]}),d.jsx("div",{className:"border-secondary/10 mt-1.5 flex items-center gap-1 border-t pt-1.5",children:t?Array.from({length:Un},(s,i)=>d.jsx("span",{className:"border-brand-border size-5 rounded-[6px] border border-dashed"},i)):n.map((s,i)=>d.jsx("span",{className:K("flex size-5 items-center justify-center rounded-[6px] text-[10px] font-semibold",i===0?"bg-secondary text-white":"border-brand-border text-secondary border bg-white shadow-xs"),children:s.questionNo},s.id))})]})},Xl=()=>{const e=co(),t=uo(r=>r.isSeen),n=e.length;return t||n===0?null:d.jsx("span",{className:"bg-brand-red ring-[#E5EFFF] flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-1 text-[10px] font-semibold leading-none text-white ring-2 lg:h-5 lg:min-w-5 lg:text-[11px]","aria-label":`${n} ${n===1?"assignment":"assignments"} waiting`,children:n})},Ql="/assets/exams-review-card-uu0187hv.png",Jl="/assets/vocab_card_image-ZmG4tdp4.png",Zl=[{id:"assignments",title:"Assignments",href:"/assignments",image:po,imageClassName:"h-[96px] w-auto lg:h-[98px] translate-x-[25px] lg:translate-x-[18px]",icon:d.jsx(or,{className:"size-3.5 lg:size-4"})},{id:"review-marked-questions",title:"Marked Questions",href:"/review-marked-questions",icon:d.jsx(qo,{className:"size-3.5 lg:size-4"})},{id:"vocabulary-list",title:"Vocabulary",href:"/vocabulary",image:Jl,icon:d.jsx(Vr,{className:"size-3.5 lg:size-4"})},{id:"review-exams",title:"Exams",href:"/exams/review",image:Ql,icon:d.jsx(ko,{className:"size-3.5 lg:size-4"})}],vc=()=>{const e=It(),{data:t=[],status:n}=So(),r=x.useRef(null),[o,s]=x.useState(0),[i,a]=x.useState(!1),[l,u]=x.useState(null),f=x.useMemo(()=>{const c=t.findIndex(p=>p.status==="ACTIVE");return c>1?c-1:0},[t]);return x.useEffect(()=>{s(f),r.current?.slickGoTo(f,!0)},[f]),d.jsxs(d.Fragment,{children:[d.jsx(fo,{children:d.jsx("title",{children:"Progress - PuefAI"})}),d.jsxs("div",{className:"gap-3 py-6",children:[Xt,d.jsxs("div",{className:K("px-4 lg:px-0",Xt),children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-3",children:Zl.map(({href:c,icon:p,id:h,image:m,imageClassName:y,title:E})=>d.jsx("button",{id:h,className:"relative text-start cursor-pointer",onClick:()=>e(c),children:d.jsx(Gl,{title:E,image:m,icon:p,imageClassName:y,widget:h==="review-marked-questions"?d.jsx(Kl,{}):void 0,badge:h==="assignments"?d.jsx(Xl,{}):void 0})},h))}),d.jsx("div",{className:"mt-3",children:d.jsx(ls,{})})]})]}),t&&l&&d.jsx(vi,{module:l,modules:t,isOpen:i,onClose:()=>a(!1),achievementThresholds:l.achievementThresholds,onModuleChange:u}),d.jsx(Yl,{})]})};export{vc as ProgressPage};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.