diff --git a/assets/404-DXeIFC6-.js b/assets/404-jWIGZMZw.js
similarity index 98%
rename from assets/404-DXeIFC6-.js
rename to assets/404-jWIGZMZw.js
index 8fcc0b4..889b840 100644
--- a/assets/404-DXeIFC6-.js
+++ b/assets/404-jWIGZMZw.js
@@ -1,4 +1,4 @@
-import{_ as t,l as e,s as c,v as i,z as s,t as n,M as p,n as d}from"./index-C2VieYHK.js";const o={BASE_URL:"/",DEV:!1,MODE:"development",PROD:!0,SSR:!1,VITE_APPID:"wxbc438492e3efab70",VITE_WEB_URL:"https://baobao.cells.org.cn"},E={class:"container"},h={class:"block-404"},a={class:"msg"},_={__name:"404",setup(v){return console.log(o),(D,l)=>{const r=p("router-link");return d(),e("div",E,[c("div",h,[l[2]||(l[2]=c("svg",{version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"960px",height:"560px",viewBox:"0 0 960 560","enable-background":"new 0 0 960 560","xml:space":"preserve","p-id":"3"},[c("path",{fill:"#EEEEEE",d:`M233.483,208.48c0,0,0.422-0.047,0.656,0.234c0.234,0.281,0.516,4.218,1.547,5.296\r
+import{_ as t,l as e,s as c,v as i,z as s,t as n,M as p,n as d}from"./index-B8OdjfL2.js";const o={BASE_URL:"/",DEV:!1,MODE:"development",PROD:!0,SSR:!1,VITE_APPID:"wxbc438492e3efab70",VITE_WEB_URL:"https://baobao.cells.org.cn"},E={class:"container"},h={class:"block-404"},a={class:"msg"},_={__name:"404",setup(v){return console.log(o),(D,l)=>{const r=p("router-link");return d(),e("div",E,[c("div",h,[l[2]||(l[2]=c("svg",{version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"960px",height:"560px",viewBox:"0 0 960 560","enable-background":"new 0 0 960 560","xml:space":"preserve","p-id":"3"},[c("path",{fill:"#EEEEEE",d:`M233.483,208.48c0,0,0.422-0.047,0.656,0.234c0.234,0.281,0.516,4.218,1.547,5.296\r
c1.031,1.078,5.203,0.469,5.203,1.875c0,1.125-3.877,1.246-5.189,2.324c-1.312,1.078-0.562,5.624-2.17,5.457\r
c-1.259-0.131-0.375-3.75-1.922-5.203s-5.296-1.172-5.296-2.484s3.843-0.516,5.156-2.015\r
C232.78,212.464,232.218,208.48,233.483,208.48z`,"p-id":"4"}),c("path",{fill:"#B1AFAE",d:`M376.804,222.306c0,0,0.255-0.028,0.396,0.141s0.311,2.546,0.934,3.197c0.622,0.651,3.14,0.283,3.14,1.132\r
diff --git a/assets/Star-CBk6w2p6.js b/assets/Star-DMjnhR3V.js
similarity index 73%
rename from assets/Star-CBk6w2p6.js
rename to assets/Star-DMjnhR3V.js
index 87a274f..6d7b4b8 100644
--- a/assets/Star-CBk6w2p6.js
+++ b/assets/Star-DMjnhR3V.js
@@ -1 +1 @@
-import{I as o}from"./index-DeTfQ5AC.js";import{z as t}from"./index-C2VieYHK.js";const n=o("star",!1,function(e){return t("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[t("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])});export{n as S};
+import{I as o}from"./index-DDdLkfGc.js";import{z as t}from"./index-B8OdjfL2.js";const n=o("star",!1,function(e){return t("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[t("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])});export{n as S};
diff --git a/assets/Time-D1i6GVuw.js b/assets/Time-B67FoyEh.js
similarity index 79%
rename from assets/Time-D1i6GVuw.js
rename to assets/Time-B67FoyEh.js
index 8ed90ef..84b71c8 100644
--- a/assets/Time-D1i6GVuw.js
+++ b/assets/Time-B67FoyEh.js
@@ -1 +1 @@
-import{I as i}from"./index-DeTfQ5AC.js";import{z as t}from"./index-C2VieYHK.js";const r=i("time",!0,function(e){return t("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[t("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),t("path",{d:"M24.0084 12.0001L24.0072 24.0089L32.4866 32.4883",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});export{r as T};
+import{I as i}from"./index-DDdLkfGc.js";import{z as t}from"./index-B8OdjfL2.js";const r=i("time",!0,function(e){return t("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[t("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),t("path",{d:"M24.0084 12.0001L24.0072 24.0089L32.4866 32.4883",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});export{r as T};
diff --git a/assets/accept-14q_uraJ.js b/assets/accept-Cm2jN3al.js
similarity index 98%
rename from assets/accept-14q_uraJ.js
rename to assets/accept-Cm2jN3al.js
index 7ae9a0d..d5d4609 100644
--- a/assets/accept-14q_uraJ.js
+++ b/assets/accept-Cm2jN3al.js
@@ -1 +1 @@
-import{z as i,h as w,r as f,l as r,G as j,s as e,L as y,v as c,x as L,y as o,F as d,A as x,O as b,t as _,K as M,M as V,n as a,_ as W}from"./index-C2VieYHK.js";import{a as z,b as H}from"./invite-CY8sGJfP.js";import{I as u}from"./index-DeTfQ5AC.js";import{T as B}from"./Time-D1i6GVuw.js";import{S as m}from"./Star-CBk6w2p6.js";const A=u("avatar",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M5.00372 42.2311C5.00372 42.6557 5.35807 42.9999 5.79521 42.9999L42.2023 43C42.6394 43 42.9938 42.6558 42.9938 42.2313V41.3131C43.012 41.0364 43.049 39.6555 42.1388 38.1289C41.5648 37.1663 40.7318 36.3347 39.6628 35.6573C38.3696 34.8378 36.7245 34.244 34.7347 33.8865C34.72 33.8846 33.2446 33.689 31.7331 33.303C29.101 32.6307 28.8709 32.0357 28.8694 32.0299C28.8539 31.9711 28.8315 31.9146 28.8028 31.8615C28.7813 31.7505 28.7281 31.3328 28.8298 30.2136C29.088 27.371 30.6128 25.691 31.838 24.3412C32.2244 23.9155 32.5893 23.5134 32.8704 23.1191C34.0827 21.4181 34.1952 19.4839 34.2003 19.364C34.2003 19.1211 34.1724 18.9214 34.1127 18.7363C33.9937 18.3659 33.7698 18.1351 33.6063 17.9666L33.6052 17.9654C33.564 17.923 33.5251 17.8828 33.4933 17.8459C33.4812 17.8318 33.449 17.7945 33.4783 17.603C33.5859 16.8981 33.6505 16.3079 33.6815 15.7456C33.7367 14.7438 33.7798 13.2456 33.5214 11.7875C33.4895 11.5385 33.4347 11.2755 33.3494 10.9622C33.0764 9.95814 32.6378 9.09971 32.0284 8.39124C31.9236 8.27722 29.3756 5.5928 21.9788 5.04201C20.956 4.96586 19.9449 5.00688 18.9496 5.05775C18.7097 5.06961 18.3812 5.08589 18.0738 5.16554C17.3101 5.36337 17.1063 5.84743 17.0528 6.11834C16.9641 6.56708 17.12 6.91615 17.2231 7.14718L17.2231 7.1472L17.2231 7.14723C17.2381 7.18072 17.2566 7.22213 17.2243 7.32997C17.0526 7.59588 16.7825 7.83561 16.5071 8.06273C16.4275 8.13038 14.5727 9.72968 14.4707 11.8189C14.1957 13.4078 14.2165 15.8834 14.5417 17.5944C14.5606 17.6889 14.5885 17.8288 14.5432 17.9233L14.5432 17.9233C14.1935 18.2367 13.7971 18.5919 13.7981 19.4024C13.8023 19.4839 13.9148 21.4181 15.1272 23.1191C15.408 23.5131 15.7726 23.9149 16.1587 24.3403L16.1596 24.3412L16.1596 24.3413C17.3848 25.6911 18.9095 27.371 19.1678 30.2135C19.2694 31.3327 19.2162 31.7505 19.1947 31.8614C19.166 31.9145 19.1436 31.971 19.1282 32.0298C19.1266 32.0356 18.8974 32.6287 16.2772 33.2996C14.7656 33.6867 13.2775 33.8845 13.2331 33.8909C11.2994 34.2173 9.66438 34.7963 8.37351 35.6115C7.30813 36.2844 6.47354 37.1175 5.89289 38.0877C4.96517 39.6379 4.99025 41.0497 5.00372 41.3074V42.2311Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}),I=u("calendar",!1,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M5 19H43V40C43 41.1046 42.1046 42 41 42H7C5.89543 42 5 41.1046 5 40V19Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M5 9C5 7.89543 5.89543 7 7 7H41C42.1046 7 43 7.89543 43 9V19H5V9Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M16 4V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M32 4V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M28 34H34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 34H20",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M28 26H34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 26H20",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Z=u("chart-line",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 34L22 18L32 27L42 6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),D=u("peoples",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M32.6077 7C34.6405 8.2249 36.0001 10.4537 36.0001 13C36.0001 15.5463 34.6405 17.7751 32.6077 19",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M4 40.8V42H34V40.8C34 36.3196 34 34.0794 33.1281 32.3681C32.3611 30.8628 31.1372 29.6389 29.6319 28.8719C27.9206 28 25.6804 28 21.2 28H16.8C12.3196 28 10.0794 28 8.36808 28.8719C6.86278 29.6389 5.63893 30.8628 4.87195 32.3681C4 34.0794 4 36.3196 4 40.8Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M43.9999 42.0001V40.8001C43.9999 36.3197 43.9999 34.0795 43.128 32.3682C42.361 30.8629 41.1371 29.6391 39.6318 28.8721",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),E=u("tips",!1,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M18 17V23L24 20L30 23V17",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),N={key:0,class:"relative bg-white"},S={class:"pt-16 pb-24 px-4"},T={class:"text-center mb-6"},R={class:"text-gray-600 text-sm"},F={class:"font-medium text-gray-900"},q={class:"mb-6"},G={class:"grid grid-cols-2 gap-3"},K={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},O={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},P={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},U={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},J={class:"course-card rounded-2xl p-4 mb-6"},Q={class:"flex items-start mb-3"},X={class:"flex items-start"},Y={class:"mb-6"},$={class:"grid grid-cols-1 gap-4"},p={class:"feedback-card bg-white rounded-2xl p-4"},tt={class:"flex items-center mb-2"},et={class:"flex text-yellow-400"},st={class:"feedback-card bg-white rounded-2xl p-4"},it={class:"flex items-center mb-2"},lt={class:"flex text-yellow-400"},ot={class:"feedback-card bg-white rounded-2xl p-4"},nt={class:"flex items-center mb-2"},rt={class:"flex text-yellow-400"},at={class:"feedback-card bg-white rounded-2xl p-4"},dt={class:"flex items-center mb-2"},ct={class:"flex text-yellow-400"},xt={class:"feedback-card bg-white rounded-2xl p-4"},mt={class:"flex items-center mb-2"},ut={class:"flex text-yellow-400"},kt=w({__name:"accept",setup(t){const v=M(),g=f(!1);let h=f({}),n=f(!1);return(()=>{let k=v.query.code||"";z(k).then(s=>{h.value=s,H(k).then()}).catch(()=>{g.value=!0})})(),(k,s)=>{const C=V("van-popup");return a(),r(d,null,[g.value?j("",!0):(a(),r("div",N,[e("main",S,[e("div",T,[s[4]||(s[4]=e("h1",{class:"text-2xl font-bold text-gray-900 mb-2"},[c("有光自习室 "),e("span",{class:"text-primary"},"免费体验课")],-1)),e("p",R,[s[2]||(s[2]=c("好友 ",-1)),e("span",F,L(o(h).user_name),1),s[3]||(s[3]=c(" 邀请您免费体验 1 次",-1))])]),e("div",q,[s[9]||(s[9]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"课程亮点",-1)),e("div",G,[e("div",K,[i(o(A),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[5]||(s[5]=e("span",{class:"text-xs text-gray-700 text-center"},"专业讲师陪伴",-1))]),e("div",O,[i(o(E),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[6]||(s[6]=e("span",{class:"text-xs text-gray-700 text-center"},"高效学习氛围",-1))]),e("div",P,[i(o(Z),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[7]||(s[7]=e("span",{class:"text-xs text-gray-700 text-center"},"专注力提升",-1))]),e("div",U,[i(o(D),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[8]||(s[8]=e("span",{class:"text-xs text-gray-700 text-center"},"同伴互助学习",-1))])])]),e("div",J,[s[12]||(s[12]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"课程时间安排",-1)),e("div",Q,[i(o(I),{theme:"filled",class:"mt-1 mr-2 text-blue-600"}),s[10]||(s[10]=e("div",null,[e("p",{class:"text-gray-900 font-medium"},"周一 到 周五"),e("p",{class:"text-gray-600 text-sm"},"晚上 18:30 - 20:30")],-1))]),e("div",X,[i(o(B),{theme:"filled",class:"mt-1 mr-2 text-blue-600"}),s[11]||(s[11]=e("p",{class:"text-gray-600 text-sm"},"课程时长:60 分钟",-1))])]),s[29]||(s[29]=y('
讲师介绍

小邱老师
5 年青少年学习指导经验
擅长专注力训练与学习习惯培养
',1)),e("div",Y,[s[28]||(s[28]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"家长评价",-1)),e("div",$,[e("div",p,[e("div",tt,[s[14]||(s[14]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/ae00aa53ed5b0b1ea3615a216625bd8d.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[13]||(s[13]=e("h4",{class:"text-sm font-medium text-gray-900"},"张妈妈",-1)),e("div",et,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[15]||(s[15]=e("p",{class:"text-xs text-gray-600"},"孩子参与后专注力明显提升,老师很有耐心,推荐!",-1))]),e("div",st,[e("div",it,[s[17]||(s[17]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/d29ee3e4da89879b6e075b5518fff479.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[16]||(s[16]=e("h4",{class:"text-sm font-medium text-gray-900"},"刘爸爸",-1)),e("div",lt,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[18]||(s[18]=e("p",{class:"text-xs text-gray-600"},"环境很好,孩子很喜欢,希望能长期参加。",-1))]),e("div",ot,[e("div",nt,[s[20]||(s[20]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/6c561f1786ee16855d4e72c6772e22bb.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[19]||(s[19]=e("h4",{class:"text-sm font-medium text-gray-900"},"陈妈妈",-1)),e("div",rt,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[21]||(s[21]=e("p",{class:"text-xs text-gray-600"},"自习室氛围很棒,孩子在这里学习效率很高。",-1))]),e("div",at,[e("div",dt,[s[23]||(s[23]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/490f9d9225d4c3afa0e0d7e20bfb27ab.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[22]||(s[22]=e("h4",{class:"text-sm font-medium text-gray-900"},"赵爸爸",-1)),e("div",ct,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[24]||(s[24]=e("p",{class:"text-xs text-gray-600"},"老师很专业,孩子在这里养成了良好的学习习惯。",-1))]),e("div",xt,[e("div",mt,[s[26]||(s[26]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/63f58a356804b5e28a92adad9fb9c316.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[25]||(s[25]=e("h4",{class:"text-sm font-medium text-gray-900"},"周妈妈",-1)),e("div",ut,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[27]||(s[27]=e("p",{class:"text-xs text-gray-600"},"非常感谢老师的用心陪伴,孩子的学习积极性提高了很多。",-1))])])])]),e("div",{class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-2xl z-50 px-4 py-3 safe-area-bottom",onClick:s[0]||(s[0]=l=>b(n)?n.value=!0:n=!0)},[...s[30]||(s[30]=[e("div",{class:"flex-1 flex items-center justify-center gap-2 bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-4 rounded-full hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg"},[e("span",{class:"text-lg"},"免费体验 立即预约")],-1)])])])),i(C,{show:o(n),"onUpdate:show":s[1]||(s[1]=l=>b(n)?n.value=l:n=l)},{default:_(()=>[...s[31]||(s[31]=[e("div",{class:"bg-white rounded-2xl w-full max-w-sm p-6 relative"},[e("h3",{class:"text-lg font-semibold text-gray-900 mb-2 text-center"},"预约免费体验课"),e("p",{class:"text-gray-600 text-sm mb-4 text-center"},[c("长按识别二维码添加客服老师"),e("br"),c("预约专业老师,免费体验")]),e("div",{class:"flex justify-center mb-4"},[e("img",{src:"https://keyang2.tuzuu.com/lingting/youguang/%E5%AE%A2%E6%9C%8D.jpg",alt:"客服微信二维码",class:"w-40 h-40 object-cover rounded-lg"})]),e("p",{class:"text-xs text-gray-500 text-center"},"添加时请备注:免费体验课预约")],-1)])]),_:1},8,["show"])],64)}}}),wt=W(kt,[["__scopeId","data-v-e569b445"]]);export{wt as default};
+import{z as i,h as w,r as f,l as r,G as j,s as e,L as y,v as c,x as L,y as o,F as d,A as x,O as b,t as _,K as M,M as V,n as a,_ as W}from"./index-B8OdjfL2.js";import{a as z,b as H}from"./invite-BKFwwOuS.js";import{I as u}from"./index-DDdLkfGc.js";import{T as B}from"./Time-B67FoyEh.js";import{S as m}from"./Star-DMjnhR3V.js";const A=u("avatar",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M5.00372 42.2311C5.00372 42.6557 5.35807 42.9999 5.79521 42.9999L42.2023 43C42.6394 43 42.9938 42.6558 42.9938 42.2313V41.3131C43.012 41.0364 43.049 39.6555 42.1388 38.1289C41.5648 37.1663 40.7318 36.3347 39.6628 35.6573C38.3696 34.8378 36.7245 34.244 34.7347 33.8865C34.72 33.8846 33.2446 33.689 31.7331 33.303C29.101 32.6307 28.8709 32.0357 28.8694 32.0299C28.8539 31.9711 28.8315 31.9146 28.8028 31.8615C28.7813 31.7505 28.7281 31.3328 28.8298 30.2136C29.088 27.371 30.6128 25.691 31.838 24.3412C32.2244 23.9155 32.5893 23.5134 32.8704 23.1191C34.0827 21.4181 34.1952 19.4839 34.2003 19.364C34.2003 19.1211 34.1724 18.9214 34.1127 18.7363C33.9937 18.3659 33.7698 18.1351 33.6063 17.9666L33.6052 17.9654C33.564 17.923 33.5251 17.8828 33.4933 17.8459C33.4812 17.8318 33.449 17.7945 33.4783 17.603C33.5859 16.8981 33.6505 16.3079 33.6815 15.7456C33.7367 14.7438 33.7798 13.2456 33.5214 11.7875C33.4895 11.5385 33.4347 11.2755 33.3494 10.9622C33.0764 9.95814 32.6378 9.09971 32.0284 8.39124C31.9236 8.27722 29.3756 5.5928 21.9788 5.04201C20.956 4.96586 19.9449 5.00688 18.9496 5.05775C18.7097 5.06961 18.3812 5.08589 18.0738 5.16554C17.3101 5.36337 17.1063 5.84743 17.0528 6.11834C16.9641 6.56708 17.12 6.91615 17.2231 7.14718L17.2231 7.1472L17.2231 7.14723C17.2381 7.18072 17.2566 7.22213 17.2243 7.32997C17.0526 7.59588 16.7825 7.83561 16.5071 8.06273C16.4275 8.13038 14.5727 9.72968 14.4707 11.8189C14.1957 13.4078 14.2165 15.8834 14.5417 17.5944C14.5606 17.6889 14.5885 17.8288 14.5432 17.9233L14.5432 17.9233C14.1935 18.2367 13.7971 18.5919 13.7981 19.4024C13.8023 19.4839 13.9148 21.4181 15.1272 23.1191C15.408 23.5131 15.7726 23.9149 16.1587 24.3403L16.1596 24.3412L16.1596 24.3413C17.3848 25.6911 18.9095 27.371 19.1678 30.2135C19.2694 31.3327 19.2162 31.7505 19.1947 31.8614C19.166 31.9145 19.1436 31.971 19.1282 32.0298C19.1266 32.0356 18.8974 32.6287 16.2772 33.2996C14.7656 33.6867 13.2775 33.8845 13.2331 33.8909C11.2994 34.2173 9.66438 34.7963 8.37351 35.6115C7.30813 36.2844 6.47354 37.1175 5.89289 38.0877C4.96517 39.6379 4.99025 41.0497 5.00372 41.3074V42.2311Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}),I=u("calendar",!1,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M5 19H43V40C43 41.1046 42.1046 42 41 42H7C5.89543 42 5 41.1046 5 40V19Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M5 9C5 7.89543 5.89543 7 7 7H41C42.1046 7 43 7.89543 43 9V19H5V9Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M16 4V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M32 4V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M28 34H34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 34H20",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M28 26H34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 26H20",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Z=u("chart-line",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M14 34L22 18L32 27L42 6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),D=u("peoples",!0,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M32.6077 7C34.6405 8.2249 36.0001 10.4537 36.0001 13C36.0001 15.5463 34.6405 17.7751 32.6077 19",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M4 40.8V42H34V40.8C34 36.3196 34 34.0794 33.1281 32.3681C32.3611 30.8628 31.1372 29.6389 29.6319 28.8719C27.9206 28 25.6804 28 21.2 28H16.8C12.3196 28 10.0794 28 8.36808 28.8719C6.86278 29.6389 5.63893 30.8628 4.87195 32.3681C4 34.0794 4 36.3196 4 40.8Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M43.9999 42.0001V40.8001C43.9999 36.3197 43.9999 34.0795 43.128 32.3682C42.361 30.8629 41.1371 29.6391 39.6318 28.8721",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),E=u("tips",!1,function(t){return i("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),i("path",{d:"M18 17V23L24 20L30 23V17",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),N={key:0,class:"relative bg-white"},S={class:"pt-16 pb-24 px-4"},T={class:"text-center mb-6"},R={class:"text-gray-600 text-sm"},F={class:"font-medium text-gray-900"},q={class:"mb-6"},G={class:"grid grid-cols-2 gap-3"},K={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},O={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},P={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},U={class:"feature-icon p-3 rounded-xl flex flex-col items-center"},J={class:"course-card rounded-2xl p-4 mb-6"},Q={class:"flex items-start mb-3"},X={class:"flex items-start"},Y={class:"mb-6"},$={class:"grid grid-cols-1 gap-4"},p={class:"feedback-card bg-white rounded-2xl p-4"},tt={class:"flex items-center mb-2"},et={class:"flex text-yellow-400"},st={class:"feedback-card bg-white rounded-2xl p-4"},it={class:"flex items-center mb-2"},lt={class:"flex text-yellow-400"},ot={class:"feedback-card bg-white rounded-2xl p-4"},nt={class:"flex items-center mb-2"},rt={class:"flex text-yellow-400"},at={class:"feedback-card bg-white rounded-2xl p-4"},dt={class:"flex items-center mb-2"},ct={class:"flex text-yellow-400"},xt={class:"feedback-card bg-white rounded-2xl p-4"},mt={class:"flex items-center mb-2"},ut={class:"flex text-yellow-400"},kt=w({__name:"accept",setup(t){const v=M(),g=f(!1);let h=f({}),n=f(!1);return(()=>{let k=v.query.code||"";z(k).then(s=>{h.value=s,H(k).then()}).catch(()=>{g.value=!0})})(),(k,s)=>{const C=V("van-popup");return a(),r(d,null,[g.value?j("",!0):(a(),r("div",N,[e("main",S,[e("div",T,[s[4]||(s[4]=e("h1",{class:"text-2xl font-bold text-gray-900 mb-2"},[c("有光自习室 "),e("span",{class:"text-primary"},"免费体验课")],-1)),e("p",R,[s[2]||(s[2]=c("好友 ",-1)),e("span",F,L(o(h).user_name),1),s[3]||(s[3]=c(" 邀请您免费体验 1 次",-1))])]),e("div",q,[s[9]||(s[9]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"课程亮点",-1)),e("div",G,[e("div",K,[i(o(A),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[5]||(s[5]=e("span",{class:"text-xs text-gray-700 text-center"},"专业讲师陪伴",-1))]),e("div",O,[i(o(E),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[6]||(s[6]=e("span",{class:"text-xs text-gray-700 text-center"},"高效学习氛围",-1))]),e("div",P,[i(o(Z),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[7]||(s[7]=e("span",{class:"text-xs text-gray-700 text-center"},"专注力提升",-1))]),e("div",U,[i(o(D),{theme:"filled",class:"text-xl mb-2 text-blue-600"}),s[8]||(s[8]=e("span",{class:"text-xs text-gray-700 text-center"},"同伴互助学习",-1))])])]),e("div",J,[s[12]||(s[12]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"课程时间安排",-1)),e("div",Q,[i(o(I),{theme:"filled",class:"mt-1 mr-2 text-blue-600"}),s[10]||(s[10]=e("div",null,[e("p",{class:"text-gray-900 font-medium"},"周一 到 周五"),e("p",{class:"text-gray-600 text-sm"},"晚上 18:30 - 20:30")],-1))]),e("div",X,[i(o(B),{theme:"filled",class:"mt-1 mr-2 text-blue-600"}),s[11]||(s[11]=e("p",{class:"text-gray-600 text-sm"},"课程时长:60 分钟",-1))])]),s[29]||(s[29]=y('讲师介绍

小邱老师
5 年青少年学习指导经验
擅长专注力训练与学习习惯培养
',1)),e("div",Y,[s[28]||(s[28]=e("h2",{class:"text-lg font-semibold text-gray-900 mb-3"},"家长评价",-1)),e("div",$,[e("div",p,[e("div",tt,[s[14]||(s[14]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/ae00aa53ed5b0b1ea3615a216625bd8d.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[13]||(s[13]=e("h4",{class:"text-sm font-medium text-gray-900"},"张妈妈",-1)),e("div",et,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[15]||(s[15]=e("p",{class:"text-xs text-gray-600"},"孩子参与后专注力明显提升,老师很有耐心,推荐!",-1))]),e("div",st,[e("div",it,[s[17]||(s[17]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/d29ee3e4da89879b6e075b5518fff479.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[16]||(s[16]=e("h4",{class:"text-sm font-medium text-gray-900"},"刘爸爸",-1)),e("div",lt,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[18]||(s[18]=e("p",{class:"text-xs text-gray-600"},"环境很好,孩子很喜欢,希望能长期参加。",-1))]),e("div",ot,[e("div",nt,[s[20]||(s[20]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/6c561f1786ee16855d4e72c6772e22bb.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[19]||(s[19]=e("h4",{class:"text-sm font-medium text-gray-900"},"陈妈妈",-1)),e("div",rt,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[21]||(s[21]=e("p",{class:"text-xs text-gray-600"},"自习室氛围很棒,孩子在这里学习效率很高。",-1))]),e("div",at,[e("div",dt,[s[23]||(s[23]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/490f9d9225d4c3afa0e0d7e20bfb27ab.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[22]||(s[22]=e("h4",{class:"text-sm font-medium text-gray-900"},"赵爸爸",-1)),e("div",ct,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[24]||(s[24]=e("p",{class:"text-xs text-gray-600"},"老师很专业,孩子在这里养成了良好的学习习惯。",-1))]),e("div",xt,[e("div",mt,[s[26]||(s[26]=e("img",{src:"https://ai-public.mastergo.com/ai/img_res/63f58a356804b5e28a92adad9fb9c316.jpg",alt:"用户头像",class:"w-8 h-8 rounded-full object-cover mr-2"},null,-1)),e("div",null,[s[25]||(s[25]=e("h4",{class:"text-sm font-medium text-gray-900"},"周妈妈",-1)),e("div",ut,[(a(),r(d,null,x(5,l=>i(o(m),{theme:"filled",key:l,size:"14"})),64))])])]),s[27]||(s[27]=e("p",{class:"text-xs text-gray-600"},"非常感谢老师的用心陪伴,孩子的学习积极性提高了很多。",-1))])])])]),e("div",{class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-2xl z-50 px-4 py-3 safe-area-bottom",onClick:s[0]||(s[0]=l=>b(n)?n.value=!0:n=!0)},[...s[30]||(s[30]=[e("div",{class:"flex-1 flex items-center justify-center gap-2 bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-4 rounded-full hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg"},[e("span",{class:"text-lg"},"免费体验 立即预约")],-1)])])])),i(C,{show:o(n),"onUpdate:show":s[1]||(s[1]=l=>b(n)?n.value=l:n=l)},{default:_(()=>[...s[31]||(s[31]=[e("div",{class:"bg-white rounded-2xl w-full max-w-sm p-6 relative"},[e("h3",{class:"text-lg font-semibold text-gray-900 mb-2 text-center"},"预约免费体验课"),e("p",{class:"text-gray-600 text-sm mb-4 text-center"},[c("长按识别二维码添加客服老师"),e("br"),c("预约专业老师,免费体验")]),e("div",{class:"flex justify-center mb-4"},[e("img",{src:"https://keyang2.tuzuu.com/lingting/youguang/%E5%AE%A2%E6%9C%8D.jpg",alt:"客服微信二维码",class:"w-40 h-40 object-cover rounded-lg"})]),e("p",{class:"text-xs text-gray-500 text-center"},"添加时请备注:免费体验课预约")],-1)])]),_:1},8,["show"])],64)}}}),wt=W(kt,[["__scopeId","data-v-e569b445"]]);export{wt as default};
diff --git a/assets/index-C2VieYHK.js b/assets/index-B8OdjfL2.js
similarity index 99%
rename from assets/index-C2VieYHK.js
rename to assets/index-B8OdjfL2.js
index a456580..45d89f1 100644
--- a/assets/index-C2VieYHK.js
+++ b/assets/index-B8OdjfL2.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dk1g_FZh.js","assets/index-DeTfQ5AC.js","assets/Time-D1i6GVuw.js","assets/Star-CBk6w2p6.js","assets/index-iifEgtuE.js","assets/404-DXeIFC6-.js","assets/404-CEswhTRW.css","assets/invite-CssxZE-G.js","assets/invite-CY8sGJfP.js","assets/invite-CwYnYAHR.css","assets/accept-14q_uraJ.js","assets/accept-_OXsBca2.css"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Hr_BBDO-.js","assets/index-DDdLkfGc.js","assets/Time-B67FoyEh.js","assets/Star-DMjnhR3V.js","assets/index-CUpsVkMr.js","assets/404-jWIGZMZw.js","assets/404-CEswhTRW.css","assets/invite-B5FLmfN6.js","assets/invite-BKFwwOuS.js","assets/invite-BlLnFOW_.css","assets/accept-Cm2jN3al.js","assets/accept-_OXsBca2.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -23,7 +23,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dk1g_FZh.
* vue-router v4.6.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
- */let qy=()=>location.protocol+"//"+location.host;function Zd(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),cc(a,"")}return cc(n,e)+r+o}function jy(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const h=Zd(e,location),g=n.value,v=t.value;let p=0;if(d){if(n.value=h,t.value=d,s&&s===g){s=null;return}p=v?d.position-v.position:0}else r(h);o.forEach(y=>{y(n.value,g,{delta:p,type:sa.pop,direction:p?p>0?Hi.forward:Hi.back:Hi.unknown})})};function l(){s=n.value}function u(d){o.push(d);const h=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Re({},d.state,{scroll:ri()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function pc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ri():null}}function Wy(e){const{history:t,location:n}=window,r={value:Zd(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:qy()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function s(l,u){i(l,Re({},t.state,pc(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),r.value=l}function a(l,u){const c=Re({},o.value,t.state,{forward:l,scroll:ri()});i(c.current,c,!0),i(l,Re({},pc(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function zy(e){e=Ry(e);const t=Wy(e),n=jy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=Re({location:"",base:e,go:r,createHref:Iy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var We=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(We||{});const Gy={type:Rn.Static,value:""},Ky=/[a-zA-Z0-9_]/;function Jy(e){if(!e)return[[]];if(e==="/")return[[Gy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=We.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===We.Static?i.push({type:Rn.Static,value:u}):n===We.Param||n===We.ParamRegExp||n===We.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Rn.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function eh(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ev={strict:!1,end:!0,sensitive:!1};function tv(e,t,n){const r=Xy(Jy(e.path),n),o=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function nv(e,t){const n=[],r=new Map;t=lc(ev,t);function o(f){return r.get(f)}function i(f,d,h){const g=!h,v=vc(f);v.aliasOf=h&&h.record;const p=lc(t,f),y=[v];if("alias"in f){const A=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of A)y.push(vc(Re({},v,{components:h?h.record.components:v.components,path:C,aliasOf:h?h.record:v})))}let b,O;for(const A of y){const{path:C}=A;if(d&&C[0]!=="/"){const D=d.record.path,I=D[D.length-1]==="/"?"":"/";A.path=d.record.path+(C&&I+C)}if(b=tv(A,d,p),h?h.alias.push(b):(O=O||b,O!==b&&O.alias.push(b),g&&f.name&&!bc(b)&&s(f.name)),th(b)&&l(b),v.children){const D=v.children;for(let I=0;I{s(O)}:Lr}function s(f){if(Qd(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=iv(f,n);n.splice(d,0,f),f.record.name&&!bc(f)&&r.set(f.record.name,f)}function u(f,d){let h,g={},v,p;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw cr(Ve.MATCHER_NOT_FOUND,{location:f});p=h.record.name,g=Re(yc(d.params,h.keys.filter(O=>!O.optional).concat(h.parent?h.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),f.params&&yc(f.params,h.keys.map(O=>O.name))),v=h.stringify(g)}else if(f.path!=null)v=f.path,h=n.find(O=>O.re.test(v)),h&&(g=h.parse(v),p=h.record.name);else{if(h=d.name?r.get(d.name):n.find(O=>O.re.test(d.path)),!h)throw cr(Ve.MATCHER_NOT_FOUND,{location:f,currentLocation:d});p=h.record.name,g=Re({},d.params,f.params),v=h.stringify(g)}const y=[];let b=h;for(;b;)y.unshift(b.record),b=b.parent;return{name:p,path:v,params:g,matched:y,meta:ov(y)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function yc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function vc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:rv(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function rv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function bc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ov(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function iv(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;eh(e,t[i])<0?r=i:n=i+1}const o=sv(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function sv(e){let t=e;for(;t=t.parent;)if(th(t)&&eh(e,t)===0)return t}function th({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sc(e){const t=it(oi),n=it(tl),r=re(()=>{const l=Ht(e.to);return t.resolve(l)}),o=re(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(lr.bind(null,c));if(d>-1)return d;const h=wc(l[u-2]);return u>1&&wc(c)===h&&f[f.length-1].path!==h?f.findIndex(lr.bind(null,l[u-2])):d}),i=re(()=>o.value>-1&&fv(n.params,r.value.params)),s=re(()=>o.value>-1&&o.value===n.matched.length-1&&Yd(n.params,r.value.params));function a(l={}){if(uv(l)){const u=t[Ht(e.replace)?"replace":"push"](Ht(e.to)).catch(Lr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:re(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function av(e){return e.length===1?e[0]:e}const lv=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Sc,setup(e,{slots:t}){const n=bt(Sc(e)),{options:r}=it(oi),o=re(()=>({[Ec(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ec(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&av(t.default(n));return e.custom?i:Qa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),cv=lv;function uv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fv(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!kt(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function wc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ec=(e,t,n)=>e??t??n,dv=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=it(la),o=re(()=>e.route||r.value),i=it(hc,0),s=re(()=>{let u=Ht(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=re(()=>o.value.matched[s.value]);Bn(hc,re(()=>s.value+1)),Bn(Uy,a),Bn(la,o);const l=de();return Ce(()=>[l.value,a.value,e.name],([u,c,f],[d,h,g])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!lr(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return _c(n.default,{Component:d,route:u});const h=f.props[c],g=h?h===!0?u.params:typeof h=="function"?h(u):h:null,p=Qa(d,Re({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return _c(n.default,{Component:p,route:u})||p}}});function _c(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hv=dv;function pv(e){const t=nv(e.routes,e),n=e.parseQuery||$y,r=e.stringifyQuery||dc,o=e.history,i=Ar(),s=Ar(),a=Ar(),l=fm(an);let u=an;er&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Vi.bind(null,E=>""+E),f=Vi.bind(null,Ey),d=Vi.bind(null,Qr);function h(E,j){let F,K;return Qd(E)?(F=t.getRecordMatcher(E),K=j):K=E,t.addRoute(K,F)}function g(E){const j=t.getRecordMatcher(E);j&&t.removeRoute(j)}function v(){return t.getRoutes().map(E=>E.record)}function p(E){return!!t.getRecordMatcher(E)}function y(E,j){if(j=Re({},j||l.value),typeof E=="string"){const T=Ui(n,E,j.path),V=t.resolve({path:T.path},j),z=o.createHref(T.fullPath);return Re(T,V,{params:d(V.params),hash:Qr(T.hash),redirectedFrom:void 0,href:z})}let F;if(E.path!=null)F=Re({},E,{path:Ui(n,E.path,j.path).path});else{const T=Re({},E.params);for(const V in T)T[V]==null&&delete T[V];F=Re({},E,{params:f(T)}),j.params=f(j.params)}const K=t.resolve(F,j),oe=E.hash||"";K.params=c(d(K.params));const S=Ay(r,Re({},E,{hash:by(oe),path:K.path})),_=o.createHref(S);return Re({fullPath:S,hash:oe,query:r===dc?Vy(E.query):E.query||{}},K,{redirectedFrom:void 0,href:_})}function b(E){return typeof E=="string"?Ui(n,E,l.value.path):Re({},E)}function O(E,j){if(u!==E)return cr(Ve.NAVIGATION_CANCELLED,{from:j,to:E})}function A(E){return I(E)}function C(E){return A(Re(b(E),{replace:!0}))}function D(E,j){const F=E.matched[E.matched.length-1];if(F&&F.redirect){const{redirect:K}=F;let oe=typeof K=="function"?K(E,j):K;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Re({query:E.query,hash:E.hash,params:oe.path!=null?{}:E.params},oe)}}function I(E,j){const F=u=y(E),K=l.value,oe=E.state,S=E.force,_=E.replace===!0,T=D(F,K);if(T)return I(Re(b(T),{state:typeof T=="object"?Re({},oe,T.state):oe,force:S,replace:_}),j||F);const V=F;V.redirectedFrom=j;let z;return!S&&Oy(r,K,F)&&(z=cr(Ve.NAVIGATION_DUPLICATED,{to:V,from:K}),H(K,K,!0,!1)),(z?Promise.resolve(z):P(V,K)).catch(q=>zt(q)?zt(q,Ve.NAVIGATION_GUARD_REDIRECT)?q:J(q):m(q,V,K)).then(q=>{if(q){if(zt(q,Ve.NAVIGATION_GUARD_REDIRECT))return I(Re({replace:_},b(q.to),{state:typeof q.to=="object"?Re({},oe,q.to.state):oe,force:S}),j||V)}else q=x(V,K,!0,_,oe);return W(V,K,q),q})}function R(E,j){const F=O(E,j);return F?Promise.reject(F):Promise.resolve()}function B(E){const j=ne.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(E):E()}function P(E,j){let F;const[K,oe,S]=Hy(E,j);F=qi(K.reverse(),"beforeRouteLeave",E,j);for(const T of K)T.leaveGuards.forEach(V=>{F.push(dn(V,E,j))});const _=R.bind(null,E,j);return F.push(_),le(F).then(()=>{F=[];for(const T of i.list())F.push(dn(T,E,j));return F.push(_),le(F)}).then(()=>{F=qi(oe,"beforeRouteUpdate",E,j);for(const T of oe)T.updateGuards.forEach(V=>{F.push(dn(V,E,j))});return F.push(_),le(F)}).then(()=>{F=[];for(const T of S)if(T.beforeEnter)if(kt(T.beforeEnter))for(const V of T.beforeEnter)F.push(dn(V,E,j));else F.push(dn(T.beforeEnter,E,j));return F.push(_),le(F)}).then(()=>(E.matched.forEach(T=>T.enterCallbacks={}),F=qi(S,"beforeRouteEnter",E,j,B),F.push(_),le(F))).then(()=>{F=[];for(const T of s.list())F.push(dn(T,E,j));return F.push(_),le(F)}).catch(T=>zt(T,Ve.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function W(E,j,F){a.list().forEach(K=>B(()=>K(E,j,F)))}function x(E,j,F,K,oe){const S=O(E,j);if(S)return S;const _=j===an,T=er?history.state:{};F&&(K||_?o.replace(E.fullPath,Re({scroll:_&&T&&T.scroll},oe)):o.push(E.fullPath,oe)),l.value=E,H(E,j,F,_),J()}let U;function X(){U||(U=o.listen((E,j,F)=>{if(!Y.listening)return;const K=y(E),oe=D(K,Y.currentRoute.value);if(oe){I(Re(oe,{replace:!0,force:!0}),K).catch(Lr);return}u=K;const S=l.value;er&&My(fc(S.fullPath,F.delta),ri()),P(K,S).catch(_=>zt(_,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_CANCELLED)?_:zt(_,Ve.NAVIGATION_GUARD_REDIRECT)?(I(Re(b(_.to),{force:!0}),K).then(T=>{zt(T,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===sa.pop&&o.go(-1,!1)}).catch(Lr),Promise.reject()):(F.delta&&o.go(-F.delta,!1),m(_,K,S))).then(_=>{_=_||x(K,S,!1),_&&(F.delta&&!zt(_,Ve.NAVIGATION_CANCELLED)?o.go(-F.delta,!1):F.type===sa.pop&&zt(_,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),W(K,S,_)}).catch(Lr)}))}let fe=Ar(),ae=Ar(),se;function m(E,j,F){J(E);const K=ae.list();return K.length?K.forEach(oe=>oe(E,j,F)):console.error(E),Promise.reject(E)}function $(){return se&&l.value!==an?Promise.resolve():new Promise((E,j)=>{fe.add([E,j])})}function J(E){return se||(se=!E,X(),fe.list().forEach(([j,F])=>E?F(E):j()),fe.reset()),E}function H(E,j,F,K){const{scrollBehavior:oe}=e;if(!er||!oe)return Promise.resolve();const S=!F&&By(fc(E.fullPath,0))||(K||!F)&&history.state&&history.state.scroll||null;return Ge().then(()=>oe(E,j,S)).then(_=>_&&ky(_)).catch(_=>m(_,E,j))}const M=E=>o.go(E);let G;const ne=new Set,Y={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:v,resolve:y,options:e,push:A,replace:C,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ae.add,isReady:$,install(E){E.component("RouterLink",cv),E.component("RouterView",hv),E.config.globalProperties.$router=Y,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(l)}),er&&!G&&l.value===an&&(G=!0,A(o.location).catch(K=>{}));const j={};for(const K in an)Object.defineProperty(j,K,{get:()=>l.value[K],enumerable:!0});E.provide(oi,Y),E.provide(tl,Jf(j)),E.provide(la,l);const F=E.unmount;ne.add(E),E.unmount=function(){ne.delete(E),ne.size<1&&(u=an,U&&U(),U=null,l.value=an,G=!1,se=!1),F()}}};function le(E){return E.reduce((j,F)=>j.then(()=>B(F)),Promise.resolve())}return Y}function kx(){return it(oi)}function Mx(e){return it(tl)}const mv="modulepreload",gv=function(e){return"/"+e},xc={},$r=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(u=>{if(u=gv(u),u in xc)return;xc[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":mv,c||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((h,g)=>{d.addEventListener("load",h),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},yv=[{path:"/activity",component:()=>$r(()=>import("./index-Dk1g_FZh.js"),__vite__mapDeps([0,1,2,3])),meta:{title:"活动"}},{path:"/pay_success",component:()=>$r(()=>import("./index-iifEgtuE.js"),__vite__mapDeps([4,1,2])),meta:{title:"支付成功"}}],vv=Object.freeze(Object.defineProperty({__proto__:null,default:yv},Symbol.toStringTag,{value:"Module"})),bv=[{path:"/:pathMatch(.*)*",name:"404",component:()=>$r(()=>import("./404-DXeIFC6-.js"),__vite__mapDeps([5,6])),meta:{title:"404",noAuth:!0,noShare:!0}},{path:"/invite",component:()=>$r(()=>import("./invite-CssxZE-G.js"),__vite__mapDeps([7,8,1,9])),meta:{title:"邀请好友得免费课时",noShare:!0}},{path:"/accept",component:()=>$r(()=>import("./accept-14q_uraJ.js"),__vite__mapDeps([10,8,1,2,3,11])),meta:{title:""}}],Sv=Object.freeze(Object.defineProperty({__proto__:null,default:bv},Symbol.toStringTag,{value:"Module"})),nh=[],Ac=Object.assign({"/src/router/modules/activity.ts":vv,"/src/router/modules/base.ts":Sv});Object.keys(Ac).forEach(e=>{const t=Ac[e].default;nh.push(...t)});var Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ji={exports:{}},Cc;function Ev(){return Cc||(Cc=1,(function(e,t){ji.exports=t(e)})(typeof window=="object"&&window,function(e,t){if(!e){console.warn("can't use weixin-js-sdk in server side");return}var n,r,o,i,s,a,l,u,c,f,d,h,g,v,p,y,b,O,A,C,D,I;if(e.jWeixin)return e.jWeixin;return n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=(function(){var m,$={};for(m in n)$[n[m]]=m;return $})(),o=e.document,i=o.title,s=navigator.userAgent.toLowerCase(),h=navigator.platform.toLowerCase(),a=!(!h.match("mac")&&!h.match("win")),l=s.indexOf("wxdebugger")!=-1,u=s.indexOf("micromessenger")!=-1,c=s.indexOf("android")!=-1,f=s.indexOf("iphone")!=-1||s.indexOf("ipad")!=-1,d=(h=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?h[1]:"",g={initStartTime:ae(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},v={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:c?2:-1,clientVersion:d,url:encodeURIComponent(location.href)},p={},y={_completes:[]},b={state:0,data:{}},se(function(){g.initEndTime=ae()}),O=!1,A=[],C={config:function(m){X("config",p=m);var $=p.check!==!1;se(function(){if($)R(n.config,{verifyJsApiList:U(p.jsApiList),verifyOpenTagList:U(p.openTagList)},(y._complete=function(ne){g.preVerifyEndTime=ae(),b.state=1,b.data=ne},y.success=function(ne){v.isPreVerifyOk=0},y.fail=function(ne){y._fail?y._fail(ne):b.state=-1},(G=y._completes).push(function(){fe()}),y.complete=function(ne){for(var Y=0,le=G.length;Yt=>{const n=xv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>si(t)===e),ai=e=>t=>typeof t===e,{isArray:gr}=Array,ur=ai("undefined");function io(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sh=Bt("ArrayBuffer");function Av(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sh(e.buffer),t}const Ov=ai("string"),dt=ai("function"),ah=ai("number"),so=e=>e!==null&&typeof e=="object",Cv=e=>e===!0||e===!1,Ro=e=>{if(si(e)!=="object")return!1;const t=nl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ih in e)&&!(ii in e)},Tv=e=>{if(!so(e)||io(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Rv=Bt("Date"),Pv=Bt("File"),Iv=Bt("Blob"),Dv=Bt("FileList"),kv=e=>so(e)&&dt(e.pipe),Mv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dt(e.append)&&((t=si(e))==="formdata"||t==="object"&&dt(e.toString)&&e.toString()==="[object FormData]"))},Bv=Bt("URLSearchParams"),[Nv,Fv,Lv,$v]=["ReadableStream","Request","Response","Headers"].map(Bt),Vv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ch=e=>!ur(e)&&e!==Pn;function ca(){const{caseless:e,skipUndefined:t}=ch(this)&&this||{},n={},r=(o,i)=>{const s=e&&lh(n,i)||i;Ro(n[s])&&Ro(o)?n[s]=ca(n[s],o):Ro(o)?n[s]=ca({},o):gr(o)?n[s]=o.slice():(!t||!ur(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o(ao(t,(o,i)=>{n&&dt(o)?e[i]=oh(o,n):e[i]=o},{allOwnKeys:r}),e),Hv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jv=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&nl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zv=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!ah(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&nl(Uint8Array)),Kv=(e,t)=>{const r=(e&&e[ii]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Jv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yv=Bt("HTMLFormElement"),Qv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Tc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xv=Bt("RegExp"),uh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ao(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Zv=e=>{uh(e,(t,n)=>{if(dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(dt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eb=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gr(e)?r(e):r(String(e).split(t)),n},tb=()=>{},nb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rb(e){return!!(e&&dt(e.append)&&e[ih]==="FormData"&&e[ii])}const ob=e=>{const t=new Array(10),n=(r,o)=>{if(so(r)){if(t.indexOf(r)>=0)return;if(io(r))return r;if(!("toJSON"in r)){t[o]=r;const i=gr(r)?[]:{};return ao(r,(s,a)=>{const l=n(s,o+1);!ur(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},ib=Bt("AsyncFunction"),sb=e=>e&&(so(e)||dt(e))&&dt(e.then)&&dt(e.catch),fh=((e,t)=>e?setImmediate:t?((n,r)=>(Pn.addEventListener("message",({source:o,data:i})=>{o===Pn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dt(Pn.postMessage)),ab=typeof queueMicrotask<"u"?queueMicrotask.bind(Pn):typeof process<"u"&&process.nextTick||fh,lb=e=>e!=null&&dt(e[ii]),L={isArray:gr,isArrayBuffer:sh,isBuffer:io,isFormData:Mv,isArrayBufferView:Av,isString:Ov,isNumber:ah,isBoolean:Cv,isObject:so,isPlainObject:Ro,isEmptyObject:Tv,isReadableStream:Nv,isRequest:Fv,isResponse:Lv,isHeaders:$v,isUndefined:ur,isDate:Rv,isFile:Pv,isBlob:Iv,isRegExp:Xv,isFunction:dt,isStream:kv,isURLSearchParams:Bv,isTypedArray:Gv,isFileList:Dv,forEach:ao,merge:ca,extend:Uv,trim:Vv,stripBOM:Hv,inherits:qv,toFlatObject:jv,kindOf:si,kindOfTest:Bt,endsWith:Wv,toArray:zv,forEachEntry:Kv,matchAll:Jv,isHTMLForm:Yv,hasOwnProperty:Tc,hasOwnProp:Tc,reduceDescriptors:uh,freezeMethods:Zv,toObjectSet:eb,toCamelCase:Qv,noop:tb,toFiniteNumber:nb,findKey:lh,global:Pn,isContextDefined:ch,isSpecCompliantForm:rb,toJSONObject:ob,isAsyncFn:ib,isThenable:sb,setImmediate:fh,asap:ab,isIterable:lb};function ye(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}L.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const dh=ye.prototype,hh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hh[e]={value:e}});Object.defineProperties(ye,hh);Object.defineProperty(dh,"isAxiosError",{value:!0});ye.from=(e,t,n,r,o,i)=>{const s=Object.create(dh);L.toFlatObject(e,s,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ye.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const cb=null;function ua(e){return L.isPlainObject(e)||L.isArray(e)}function ph(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Rc(e,t,n){return e?e.concat(t).map(function(o,i){return o=ph(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ub(e){return L.isArray(e)&&!e.some(ua)}const fb=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function li(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!L.isUndefined(p[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(L.isDate(g))return g.toISOString();if(L.isBoolean(g))return g.toString();if(!l&&L.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(g)||L.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,p){let y=g;if(g&&!p&&typeof g=="object"){if(L.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(L.isArray(g)&&ub(g)||(L.isFileList(g)||L.endsWith(v,"[]"))&&(y=L.toArray(g)))return v=ph(v),y.forEach(function(O,A){!(L.isUndefined(O)||O===null)&&t.append(s===!0?Rc([v],A,i):s===null?v:v+"[]",u(O))}),!1}return ua(g)?!0:(t.append(Rc(p,v,i),u(g)),!1)}const f=[],d=Object.assign(fb,{defaultVisitor:c,convertValue:u,isVisitable:ua});function h(g,v){if(!L.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),L.forEach(g,function(y,b){(!(L.isUndefined(y)||y===null)&&o.call(t,y,L.isString(b)?b.trim():b,v,d))===!0&&h(y,v?v.concat(b):[b])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rl(e,t){this._pairs=[],e&&li(e,this,t)}const mh=rl.prototype;mh.append=function(t,n){this._pairs.push([t,n])};mh.toString=function(t){const n=t?function(r){return t.call(this,r,Pc)}:Pc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function db(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gh(e,t,n){if(!t)return e;const r=n&&n.encode||db;L.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=L.isURLSearchParams(t)?t.toString():new rl(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ic{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hb=typeof URLSearchParams<"u"?URLSearchParams:rl,pb=typeof FormData<"u"?FormData:null,mb=typeof Blob<"u"?Blob:null,gb={isBrowser:!0,classes:{URLSearchParams:hb,FormData:pb,Blob:mb},protocols:["http","https","file","blob","url","data"]},ol=typeof window<"u"&&typeof document<"u",fa=typeof navigator=="object"&&navigator||void 0,yb=ol&&(!fa||["ReactNative","NativeScript","NS"].indexOf(fa.product)<0),vb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bb=ol&&window.location.href||"http://localhost",Sb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ol,hasStandardBrowserEnv:yb,hasStandardBrowserWebWorkerEnv:vb,navigator:fa,origin:bb},Symbol.toStringTag,{value:"Module"})),ot={...Sb,...gb};function wb(e,t){return li(e,new ot.classes.URLSearchParams,{visitor:function(n,r,o,i){return ot.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Eb(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _b(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&L.isArray(o)?o.length:s,l?(L.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!L.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&L.isArray(o[s])&&(o[s]=_b(o[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,o)=>{t(Eb(r),o,n,0)}),n}return null}function xb(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lo={transitional:yh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(vh(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wb(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return li(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xb(t)):t}],transformResponse:[function(t){const n=this.transitional||lo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?ye.from(a,ye.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{lo.headers[e]={}});const Ab=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ob=e=>{const t={};let n,r,o;return e&&e.split(`
+ */let qy=()=>location.protocol+"//"+location.host;function Zd(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),cc(a,"")}return cc(n,e)+r+o}function jy(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const h=Zd(e,location),g=n.value,v=t.value;let p=0;if(d){if(n.value=h,t.value=d,s&&s===g){s=null;return}p=v?d.position-v.position:0}else r(h);o.forEach(y=>{y(n.value,g,{delta:p,type:sa.pop,direction:p?p>0?Hi.forward:Hi.back:Hi.unknown})})};function l(){s=n.value}function u(d){o.push(d);const h=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Re({},d.state,{scroll:ri()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function pc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ri():null}}function Wy(e){const{history:t,location:n}=window,r={value:Zd(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:qy()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function s(l,u){i(l,Re({},t.state,pc(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),r.value=l}function a(l,u){const c=Re({},o.value,t.state,{forward:l,scroll:ri()});i(c.current,c,!0),i(l,Re({},pc(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function zy(e){e=Ry(e);const t=Wy(e),n=jy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=Re({location:"",base:e,go:r,createHref:Iy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var We=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(We||{});const Gy={type:Rn.Static,value:""},Ky=/[a-zA-Z0-9_]/;function Jy(e){if(!e)return[[]];if(e==="/")return[[Gy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=We.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===We.Static?i.push({type:Rn.Static,value:u}):n===We.Param||n===We.ParamRegExp||n===We.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Rn.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function eh(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ev={strict:!1,end:!0,sensitive:!1};function tv(e,t,n){const r=Xy(Jy(e.path),n),o=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function nv(e,t){const n=[],r=new Map;t=lc(ev,t);function o(f){return r.get(f)}function i(f,d,h){const g=!h,v=vc(f);v.aliasOf=h&&h.record;const p=lc(t,f),y=[v];if("alias"in f){const A=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of A)y.push(vc(Re({},v,{components:h?h.record.components:v.components,path:C,aliasOf:h?h.record:v})))}let b,O;for(const A of y){const{path:C}=A;if(d&&C[0]!=="/"){const D=d.record.path,I=D[D.length-1]==="/"?"":"/";A.path=d.record.path+(C&&I+C)}if(b=tv(A,d,p),h?h.alias.push(b):(O=O||b,O!==b&&O.alias.push(b),g&&f.name&&!bc(b)&&s(f.name)),th(b)&&l(b),v.children){const D=v.children;for(let I=0;I{s(O)}:Lr}function s(f){if(Qd(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=iv(f,n);n.splice(d,0,f),f.record.name&&!bc(f)&&r.set(f.record.name,f)}function u(f,d){let h,g={},v,p;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw cr(Ve.MATCHER_NOT_FOUND,{location:f});p=h.record.name,g=Re(yc(d.params,h.keys.filter(O=>!O.optional).concat(h.parent?h.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),f.params&&yc(f.params,h.keys.map(O=>O.name))),v=h.stringify(g)}else if(f.path!=null)v=f.path,h=n.find(O=>O.re.test(v)),h&&(g=h.parse(v),p=h.record.name);else{if(h=d.name?r.get(d.name):n.find(O=>O.re.test(d.path)),!h)throw cr(Ve.MATCHER_NOT_FOUND,{location:f,currentLocation:d});p=h.record.name,g=Re({},d.params,f.params),v=h.stringify(g)}const y=[];let b=h;for(;b;)y.unshift(b.record),b=b.parent;return{name:p,path:v,params:g,matched:y,meta:ov(y)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function yc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function vc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:rv(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function rv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function bc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ov(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function iv(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;eh(e,t[i])<0?r=i:n=i+1}const o=sv(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function sv(e){let t=e;for(;t=t.parent;)if(th(t)&&eh(e,t)===0)return t}function th({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sc(e){const t=it(oi),n=it(tl),r=re(()=>{const l=Ht(e.to);return t.resolve(l)}),o=re(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(lr.bind(null,c));if(d>-1)return d;const h=wc(l[u-2]);return u>1&&wc(c)===h&&f[f.length-1].path!==h?f.findIndex(lr.bind(null,l[u-2])):d}),i=re(()=>o.value>-1&&fv(n.params,r.value.params)),s=re(()=>o.value>-1&&o.value===n.matched.length-1&&Yd(n.params,r.value.params));function a(l={}){if(uv(l)){const u=t[Ht(e.replace)?"replace":"push"](Ht(e.to)).catch(Lr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:re(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function av(e){return e.length===1?e[0]:e}const lv=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Sc,setup(e,{slots:t}){const n=bt(Sc(e)),{options:r}=it(oi),o=re(()=>({[Ec(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ec(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&av(t.default(n));return e.custom?i:Qa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),cv=lv;function uv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fv(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!kt(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function wc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ec=(e,t,n)=>e??t??n,dv=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=it(la),o=re(()=>e.route||r.value),i=it(hc,0),s=re(()=>{let u=Ht(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=re(()=>o.value.matched[s.value]);Bn(hc,re(()=>s.value+1)),Bn(Uy,a),Bn(la,o);const l=de();return Ce(()=>[l.value,a.value,e.name],([u,c,f],[d,h,g])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!lr(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return _c(n.default,{Component:d,route:u});const h=f.props[c],g=h?h===!0?u.params:typeof h=="function"?h(u):h:null,p=Qa(d,Re({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return _c(n.default,{Component:p,route:u})||p}}});function _c(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hv=dv;function pv(e){const t=nv(e.routes,e),n=e.parseQuery||$y,r=e.stringifyQuery||dc,o=e.history,i=Ar(),s=Ar(),a=Ar(),l=fm(an);let u=an;er&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Vi.bind(null,E=>""+E),f=Vi.bind(null,Ey),d=Vi.bind(null,Qr);function h(E,j){let F,K;return Qd(E)?(F=t.getRecordMatcher(E),K=j):K=E,t.addRoute(K,F)}function g(E){const j=t.getRecordMatcher(E);j&&t.removeRoute(j)}function v(){return t.getRoutes().map(E=>E.record)}function p(E){return!!t.getRecordMatcher(E)}function y(E,j){if(j=Re({},j||l.value),typeof E=="string"){const T=Ui(n,E,j.path),V=t.resolve({path:T.path},j),z=o.createHref(T.fullPath);return Re(T,V,{params:d(V.params),hash:Qr(T.hash),redirectedFrom:void 0,href:z})}let F;if(E.path!=null)F=Re({},E,{path:Ui(n,E.path,j.path).path});else{const T=Re({},E.params);for(const V in T)T[V]==null&&delete T[V];F=Re({},E,{params:f(T)}),j.params=f(j.params)}const K=t.resolve(F,j),oe=E.hash||"";K.params=c(d(K.params));const S=Ay(r,Re({},E,{hash:by(oe),path:K.path})),_=o.createHref(S);return Re({fullPath:S,hash:oe,query:r===dc?Vy(E.query):E.query||{}},K,{redirectedFrom:void 0,href:_})}function b(E){return typeof E=="string"?Ui(n,E,l.value.path):Re({},E)}function O(E,j){if(u!==E)return cr(Ve.NAVIGATION_CANCELLED,{from:j,to:E})}function A(E){return I(E)}function C(E){return A(Re(b(E),{replace:!0}))}function D(E,j){const F=E.matched[E.matched.length-1];if(F&&F.redirect){const{redirect:K}=F;let oe=typeof K=="function"?K(E,j):K;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Re({query:E.query,hash:E.hash,params:oe.path!=null?{}:E.params},oe)}}function I(E,j){const F=u=y(E),K=l.value,oe=E.state,S=E.force,_=E.replace===!0,T=D(F,K);if(T)return I(Re(b(T),{state:typeof T=="object"?Re({},oe,T.state):oe,force:S,replace:_}),j||F);const V=F;V.redirectedFrom=j;let z;return!S&&Oy(r,K,F)&&(z=cr(Ve.NAVIGATION_DUPLICATED,{to:V,from:K}),H(K,K,!0,!1)),(z?Promise.resolve(z):P(V,K)).catch(q=>zt(q)?zt(q,Ve.NAVIGATION_GUARD_REDIRECT)?q:J(q):m(q,V,K)).then(q=>{if(q){if(zt(q,Ve.NAVIGATION_GUARD_REDIRECT))return I(Re({replace:_},b(q.to),{state:typeof q.to=="object"?Re({},oe,q.to.state):oe,force:S}),j||V)}else q=x(V,K,!0,_,oe);return W(V,K,q),q})}function R(E,j){const F=O(E,j);return F?Promise.reject(F):Promise.resolve()}function B(E){const j=ne.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(E):E()}function P(E,j){let F;const[K,oe,S]=Hy(E,j);F=qi(K.reverse(),"beforeRouteLeave",E,j);for(const T of K)T.leaveGuards.forEach(V=>{F.push(dn(V,E,j))});const _=R.bind(null,E,j);return F.push(_),le(F).then(()=>{F=[];for(const T of i.list())F.push(dn(T,E,j));return F.push(_),le(F)}).then(()=>{F=qi(oe,"beforeRouteUpdate",E,j);for(const T of oe)T.updateGuards.forEach(V=>{F.push(dn(V,E,j))});return F.push(_),le(F)}).then(()=>{F=[];for(const T of S)if(T.beforeEnter)if(kt(T.beforeEnter))for(const V of T.beforeEnter)F.push(dn(V,E,j));else F.push(dn(T.beforeEnter,E,j));return F.push(_),le(F)}).then(()=>(E.matched.forEach(T=>T.enterCallbacks={}),F=qi(S,"beforeRouteEnter",E,j,B),F.push(_),le(F))).then(()=>{F=[];for(const T of s.list())F.push(dn(T,E,j));return F.push(_),le(F)}).catch(T=>zt(T,Ve.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function W(E,j,F){a.list().forEach(K=>B(()=>K(E,j,F)))}function x(E,j,F,K,oe){const S=O(E,j);if(S)return S;const _=j===an,T=er?history.state:{};F&&(K||_?o.replace(E.fullPath,Re({scroll:_&&T&&T.scroll},oe)):o.push(E.fullPath,oe)),l.value=E,H(E,j,F,_),J()}let U;function X(){U||(U=o.listen((E,j,F)=>{if(!Y.listening)return;const K=y(E),oe=D(K,Y.currentRoute.value);if(oe){I(Re(oe,{replace:!0,force:!0}),K).catch(Lr);return}u=K;const S=l.value;er&&My(fc(S.fullPath,F.delta),ri()),P(K,S).catch(_=>zt(_,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_CANCELLED)?_:zt(_,Ve.NAVIGATION_GUARD_REDIRECT)?(I(Re(b(_.to),{force:!0}),K).then(T=>{zt(T,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===sa.pop&&o.go(-1,!1)}).catch(Lr),Promise.reject()):(F.delta&&o.go(-F.delta,!1),m(_,K,S))).then(_=>{_=_||x(K,S,!1),_&&(F.delta&&!zt(_,Ve.NAVIGATION_CANCELLED)?o.go(-F.delta,!1):F.type===sa.pop&&zt(_,Ve.NAVIGATION_ABORTED|Ve.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),W(K,S,_)}).catch(Lr)}))}let fe=Ar(),ae=Ar(),se;function m(E,j,F){J(E);const K=ae.list();return K.length?K.forEach(oe=>oe(E,j,F)):console.error(E),Promise.reject(E)}function $(){return se&&l.value!==an?Promise.resolve():new Promise((E,j)=>{fe.add([E,j])})}function J(E){return se||(se=!E,X(),fe.list().forEach(([j,F])=>E?F(E):j()),fe.reset()),E}function H(E,j,F,K){const{scrollBehavior:oe}=e;if(!er||!oe)return Promise.resolve();const S=!F&&By(fc(E.fullPath,0))||(K||!F)&&history.state&&history.state.scroll||null;return Ge().then(()=>oe(E,j,S)).then(_=>_&&ky(_)).catch(_=>m(_,E,j))}const M=E=>o.go(E);let G;const ne=new Set,Y={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:v,resolve:y,options:e,push:A,replace:C,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ae.add,isReady:$,install(E){E.component("RouterLink",cv),E.component("RouterView",hv),E.config.globalProperties.$router=Y,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(l)}),er&&!G&&l.value===an&&(G=!0,A(o.location).catch(K=>{}));const j={};for(const K in an)Object.defineProperty(j,K,{get:()=>l.value[K],enumerable:!0});E.provide(oi,Y),E.provide(tl,Jf(j)),E.provide(la,l);const F=E.unmount;ne.add(E),E.unmount=function(){ne.delete(E),ne.size<1&&(u=an,U&&U(),U=null,l.value=an,G=!1,se=!1),F()}}};function le(E){return E.reduce((j,F)=>j.then(()=>B(F)),Promise.resolve())}return Y}function kx(){return it(oi)}function Mx(e){return it(tl)}const mv="modulepreload",gv=function(e){return"/"+e},xc={},$r=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(u=>{if(u=gv(u),u in xc)return;xc[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":mv,c||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((h,g)=>{d.addEventListener("load",h),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},yv=[{path:"/activity",component:()=>$r(()=>import("./index-Hr_BBDO-.js"),__vite__mapDeps([0,1,2,3])),meta:{title:"活动"}},{path:"/pay_success",component:()=>$r(()=>import("./index-CUpsVkMr.js"),__vite__mapDeps([4,1,2])),meta:{title:"支付成功"}}],vv=Object.freeze(Object.defineProperty({__proto__:null,default:yv},Symbol.toStringTag,{value:"Module"})),bv=[{path:"/:pathMatch(.*)*",name:"404",component:()=>$r(()=>import("./404-jWIGZMZw.js"),__vite__mapDeps([5,6])),meta:{title:"404",noAuth:!0,noShare:!0}},{path:"/invite",component:()=>$r(()=>import("./invite-B5FLmfN6.js"),__vite__mapDeps([7,8,1,9])),meta:{title:"邀请好友得免费课时",noShare:!0}},{path:"/accept",component:()=>$r(()=>import("./accept-Cm2jN3al.js"),__vite__mapDeps([10,8,1,2,3,11])),meta:{title:""}}],Sv=Object.freeze(Object.defineProperty({__proto__:null,default:bv},Symbol.toStringTag,{value:"Module"})),nh=[],Ac=Object.assign({"/src/router/modules/activity.ts":vv,"/src/router/modules/base.ts":Sv});Object.keys(Ac).forEach(e=>{const t=Ac[e].default;nh.push(...t)});var Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ji={exports:{}},Cc;function Ev(){return Cc||(Cc=1,(function(e,t){ji.exports=t(e)})(typeof window=="object"&&window,function(e,t){if(!e){console.warn("can't use weixin-js-sdk in server side");return}var n,r,o,i,s,a,l,u,c,f,d,h,g,v,p,y,b,O,A,C,D,I;if(e.jWeixin)return e.jWeixin;return n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=(function(){var m,$={};for(m in n)$[n[m]]=m;return $})(),o=e.document,i=o.title,s=navigator.userAgent.toLowerCase(),h=navigator.platform.toLowerCase(),a=!(!h.match("mac")&&!h.match("win")),l=s.indexOf("wxdebugger")!=-1,u=s.indexOf("micromessenger")!=-1,c=s.indexOf("android")!=-1,f=s.indexOf("iphone")!=-1||s.indexOf("ipad")!=-1,d=(h=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?h[1]:"",g={initStartTime:ae(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},v={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:c?2:-1,clientVersion:d,url:encodeURIComponent(location.href)},p={},y={_completes:[]},b={state:0,data:{}},se(function(){g.initEndTime=ae()}),O=!1,A=[],C={config:function(m){X("config",p=m);var $=p.check!==!1;se(function(){if($)R(n.config,{verifyJsApiList:U(p.jsApiList),verifyOpenTagList:U(p.openTagList)},(y._complete=function(ne){g.preVerifyEndTime=ae(),b.state=1,b.data=ne},y.success=function(ne){v.isPreVerifyOk=0},y.fail=function(ne){y._fail?y._fail(ne):b.state=-1},(G=y._completes).push(function(){fe()}),y.complete=function(ne){for(var Y=0,le=G.length;Yt=>{const n=xv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>si(t)===e),ai=e=>t=>typeof t===e,{isArray:gr}=Array,ur=ai("undefined");function io(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sh=Bt("ArrayBuffer");function Av(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sh(e.buffer),t}const Ov=ai("string"),dt=ai("function"),ah=ai("number"),so=e=>e!==null&&typeof e=="object",Cv=e=>e===!0||e===!1,Ro=e=>{if(si(e)!=="object")return!1;const t=nl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ih in e)&&!(ii in e)},Tv=e=>{if(!so(e)||io(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Rv=Bt("Date"),Pv=Bt("File"),Iv=Bt("Blob"),Dv=Bt("FileList"),kv=e=>so(e)&&dt(e.pipe),Mv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dt(e.append)&&((t=si(e))==="formdata"||t==="object"&&dt(e.toString)&&e.toString()==="[object FormData]"))},Bv=Bt("URLSearchParams"),[Nv,Fv,Lv,$v]=["ReadableStream","Request","Response","Headers"].map(Bt),Vv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ch=e=>!ur(e)&&e!==Pn;function ca(){const{caseless:e,skipUndefined:t}=ch(this)&&this||{},n={},r=(o,i)=>{const s=e&&lh(n,i)||i;Ro(n[s])&&Ro(o)?n[s]=ca(n[s],o):Ro(o)?n[s]=ca({},o):gr(o)?n[s]=o.slice():(!t||!ur(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o(ao(t,(o,i)=>{n&&dt(o)?e[i]=oh(o,n):e[i]=o},{allOwnKeys:r}),e),Hv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jv=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&nl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zv=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!ah(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&nl(Uint8Array)),Kv=(e,t)=>{const r=(e&&e[ii]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Jv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yv=Bt("HTMLFormElement"),Qv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Tc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xv=Bt("RegExp"),uh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ao(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Zv=e=>{uh(e,(t,n)=>{if(dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(dt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eb=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gr(e)?r(e):r(String(e).split(t)),n},tb=()=>{},nb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rb(e){return!!(e&&dt(e.append)&&e[ih]==="FormData"&&e[ii])}const ob=e=>{const t=new Array(10),n=(r,o)=>{if(so(r)){if(t.indexOf(r)>=0)return;if(io(r))return r;if(!("toJSON"in r)){t[o]=r;const i=gr(r)?[]:{};return ao(r,(s,a)=>{const l=n(s,o+1);!ur(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},ib=Bt("AsyncFunction"),sb=e=>e&&(so(e)||dt(e))&&dt(e.then)&&dt(e.catch),fh=((e,t)=>e?setImmediate:t?((n,r)=>(Pn.addEventListener("message",({source:o,data:i})=>{o===Pn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dt(Pn.postMessage)),ab=typeof queueMicrotask<"u"?queueMicrotask.bind(Pn):typeof process<"u"&&process.nextTick||fh,lb=e=>e!=null&&dt(e[ii]),L={isArray:gr,isArrayBuffer:sh,isBuffer:io,isFormData:Mv,isArrayBufferView:Av,isString:Ov,isNumber:ah,isBoolean:Cv,isObject:so,isPlainObject:Ro,isEmptyObject:Tv,isReadableStream:Nv,isRequest:Fv,isResponse:Lv,isHeaders:$v,isUndefined:ur,isDate:Rv,isFile:Pv,isBlob:Iv,isRegExp:Xv,isFunction:dt,isStream:kv,isURLSearchParams:Bv,isTypedArray:Gv,isFileList:Dv,forEach:ao,merge:ca,extend:Uv,trim:Vv,stripBOM:Hv,inherits:qv,toFlatObject:jv,kindOf:si,kindOfTest:Bt,endsWith:Wv,toArray:zv,forEachEntry:Kv,matchAll:Jv,isHTMLForm:Yv,hasOwnProperty:Tc,hasOwnProp:Tc,reduceDescriptors:uh,freezeMethods:Zv,toObjectSet:eb,toCamelCase:Qv,noop:tb,toFiniteNumber:nb,findKey:lh,global:Pn,isContextDefined:ch,isSpecCompliantForm:rb,toJSONObject:ob,isAsyncFn:ib,isThenable:sb,setImmediate:fh,asap:ab,isIterable:lb};function ye(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}L.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const dh=ye.prototype,hh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hh[e]={value:e}});Object.defineProperties(ye,hh);Object.defineProperty(dh,"isAxiosError",{value:!0});ye.from=(e,t,n,r,o,i)=>{const s=Object.create(dh);L.toFlatObject(e,s,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ye.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const cb=null;function ua(e){return L.isPlainObject(e)||L.isArray(e)}function ph(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Rc(e,t,n){return e?e.concat(t).map(function(o,i){return o=ph(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ub(e){return L.isArray(e)&&!e.some(ua)}const fb=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function li(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!L.isUndefined(p[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(L.isDate(g))return g.toISOString();if(L.isBoolean(g))return g.toString();if(!l&&L.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(g)||L.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,p){let y=g;if(g&&!p&&typeof g=="object"){if(L.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(L.isArray(g)&&ub(g)||(L.isFileList(g)||L.endsWith(v,"[]"))&&(y=L.toArray(g)))return v=ph(v),y.forEach(function(O,A){!(L.isUndefined(O)||O===null)&&t.append(s===!0?Rc([v],A,i):s===null?v:v+"[]",u(O))}),!1}return ua(g)?!0:(t.append(Rc(p,v,i),u(g)),!1)}const f=[],d=Object.assign(fb,{defaultVisitor:c,convertValue:u,isVisitable:ua});function h(g,v){if(!L.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),L.forEach(g,function(y,b){(!(L.isUndefined(y)||y===null)&&o.call(t,y,L.isString(b)?b.trim():b,v,d))===!0&&h(y,v?v.concat(b):[b])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rl(e,t){this._pairs=[],e&&li(e,this,t)}const mh=rl.prototype;mh.append=function(t,n){this._pairs.push([t,n])};mh.toString=function(t){const n=t?function(r){return t.call(this,r,Pc)}:Pc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function db(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gh(e,t,n){if(!t)return e;const r=n&&n.encode||db;L.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=L.isURLSearchParams(t)?t.toString():new rl(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ic{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hb=typeof URLSearchParams<"u"?URLSearchParams:rl,pb=typeof FormData<"u"?FormData:null,mb=typeof Blob<"u"?Blob:null,gb={isBrowser:!0,classes:{URLSearchParams:hb,FormData:pb,Blob:mb},protocols:["http","https","file","blob","url","data"]},ol=typeof window<"u"&&typeof document<"u",fa=typeof navigator=="object"&&navigator||void 0,yb=ol&&(!fa||["ReactNative","NativeScript","NS"].indexOf(fa.product)<0),vb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bb=ol&&window.location.href||"http://localhost",Sb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ol,hasStandardBrowserEnv:yb,hasStandardBrowserWebWorkerEnv:vb,navigator:fa,origin:bb},Symbol.toStringTag,{value:"Module"})),ot={...Sb,...gb};function wb(e,t){return li(e,new ot.classes.URLSearchParams,{visitor:function(n,r,o,i){return ot.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Eb(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _b(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&L.isArray(o)?o.length:s,l?(L.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!L.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&L.isArray(o[s])&&(o[s]=_b(o[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,o)=>{t(Eb(r),o,n,0)}),n}return null}function xb(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lo={transitional:yh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(vh(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wb(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return li(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xb(t)):t}],transformResponse:[function(t){const n=this.transitional||lo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?ye.from(a,ye.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{lo.headers[e]={}});const Ab=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ob=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Ab[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Dc=Symbol("internals");function Or(e){return e&&String(e).trim().toLowerCase()}function Po(e){return e===!1||e==null?e:L.isArray(e)?e.map(Po):String(e)}function Cb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Tb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wi(e,t,n,r,o){if(L.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function Rb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pb(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let ht=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=Or(l);if(!c)throw new Error("header name must be a non-empty string");const f=L.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=Po(a))}const s=(a,l)=>L.forEach(a,(u,c)=>i(u,c,l));if(L.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(L.isString(t)&&(t=t.trim())&&!Tb(t))s(Ob(t),n);else if(L.isObject(t)&&L.isIterable(t)){let a={},l,u;for(const c of t){if(!L.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?L.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Or(t),t){const r=L.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Cb(o);if(L.isFunction(n))return n.call(this,o,r);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Or(s),s){const a=L.findKey(r,s);a&&(!n||Wi(r,r[a],a,n))&&(delete r[a],o=!0)}}return L.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Wi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return L.forEach(this,(o,i)=>{const s=L.findKey(r,i);if(s){n[s]=Po(o),delete n[i];return}const a=t?Rb(i):String(i).trim();a!==i&&delete n[i],n[a]=Po(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Dc]=this[Dc]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Or(s);r[a]||(Pb(o,s),r[a]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}};ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(ht.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(ht);function zi(e,t){const n=this||lo,r=t||n,o=ht.from(r.headers);let i=r.data;return L.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function bh(e){return!!(e&&e.__CANCEL__)}function yr(e,t,n){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(yr,ye,{__CANCEL__:!0});function Sh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ib(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Db(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let f=i,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{n=c,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?s(u,c):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const qo=(e,t,n=3)=>{let r=0;const o=Db(50,250);return kb(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,u=o(l),c=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},kc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Mc=e=>(...t)=>L.asap(()=>e(...t)),Mb=ot.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ot.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Bb=ot.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wh(e,t,n){let r=!Nb(t);return e&&(r||n==!1)?Fb(e,t):t}const Bc=e=>e instanceof ht?{...e}:e;function Ln(e,t){t=t||{};const n={};function r(u,c,f,d){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:d},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function o(u,c,f,d){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function i(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,f)=>o(Bc(u),Bc(c),f,!0)};return L.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||o,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Eh=e=>{const t=Ln({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=ht.from(s),t.url=gh(wh(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),L.isFormData(n)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(L.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&s.set(c,f)})}}if(ot.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&Mb(t.url))){const l=o&&i&&Bb.read(i);l&&s.set(o,l)}return t},Lb=typeof XMLHttpRequest<"u",$b=Lb&&function(e){return new Promise(function(n,r){const o=Eh(e);let i=o.data;const s=ht.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,c,f,d,h,g;function v(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const O=ht.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:O,config:e,request:p};Sh(function(I){n(I),v()},function(I){r(I),v()},C),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(r(new ye("Request aborted",ye.ECONNABORTED,e,p)),p=null)},p.onerror=function(A){const C=A&&A.message?A.message:"Network Error",D=new ye(C,ye.ERR_NETWORK,e,p);D.event=A||null,r(D),p=null},p.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||yh;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new ye(A,C.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&L.forEach(s.toJSON(),function(A,C){p.setRequestHeader(C,A)}),L.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),u&&([d,g]=qo(u,!0),p.addEventListener("progress",d)),l&&p.upload&&([f,h]=qo(l),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=O=>{p&&(r(!O||O.type?new yr(null,e,p):O),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const b=Ib(o.url);if(b&&ot.protocols.indexOf(b)===-1){r(new ye("Unsupported protocol "+b+":",ye.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Vb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof ye?c:new yr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>L.asap(a),l}},Ub=function*(e,t){let n=e.byteLength;if(n{const o=Hb(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=i+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Fc=64*1024,{isFunction:yo}=L,jb=(({Request:e,Response:t})=>({Request:e,Response:t}))(L.global),{ReadableStream:Lc,TextEncoder:$c}=L.global,Vc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wb=e=>{e=L.merge.call({skipUndefined:!0},jb,e);const{fetch:t,Request:n,Response:r}=e,o=t?yo(t):typeof fetch=="function",i=yo(n),s=yo(r);if(!o)return!1;const a=o&&yo(Lc),l=o&&(typeof $c=="function"?(g=>v=>g.encode(v))(new $c):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=i&&a&&Vc(()=>{let g=!1;const v=new n(ot.origin,{body:new Lc,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!v}),c=s&&a&&Vc(()=>L.isReadableStream(new r("").body)),f={stream:c&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(v,p)=>{let y=v&&v[g];if(y)return y.call(v);throw new ye(`Response type '${g}' is not supported`,ye.ERR_NOT_SUPPORT,p)})});const d=async g=>{if(g==null)return 0;if(L.isBlob(g))return g.size;if(L.isSpecCompliantForm(g))return(await new n(ot.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(L.isArrayBufferView(g)||L.isArrayBuffer(g))return g.byteLength;if(L.isURLSearchParams(g)&&(g=g+""),L.isString(g))return(await l(g)).byteLength},h=async(g,v)=>{const p=L.toFiniteNumber(g.getContentLength());return p??d(v)};return async g=>{let{url:v,method:p,data:y,signal:b,cancelToken:O,timeout:A,onDownloadProgress:C,onUploadProgress:D,responseType:I,headers:R,withCredentials:B="same-origin",fetchOptions:P}=Eh(g),W=t||fetch;I=I?(I+"").toLowerCase():"text";let x=Vb([b,O&&O.toAbortSignal()],A),U=null;const X=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let fe;try{if(D&&u&&p!=="get"&&p!=="head"&&(fe=await h(R,y))!==0){let H=new n(v,{method:"POST",body:y,duplex:"half"}),M;if(L.isFormData(y)&&(M=H.headers.get("content-type"))&&R.setContentType(M),H.body){const[G,ne]=kc(fe,qo(Mc(D)));y=Nc(H.body,Fc,G,ne)}}L.isString(B)||(B=B?"include":"omit");const ae=i&&"credentials"in n.prototype,se={...P,signal:x,method:p.toUpperCase(),headers:R.normalize().toJSON(),body:y,duplex:"half",credentials:ae?B:void 0};U=i&&new n(v,se);let m=await(i?W(U,P):W(v,se));const $=c&&(I==="stream"||I==="response");if(c&&(C||$&&X)){const H={};["status","statusText","headers"].forEach(Y=>{H[Y]=m[Y]});const M=L.toFiniteNumber(m.headers.get("content-length")),[G,ne]=C&&kc(M,qo(Mc(C),!0))||[];m=new r(Nc(m.body,Fc,G,()=>{ne&&ne(),X&&X()}),H)}I=I||"text";let J=await f[L.findKey(f,I)||"text"](m,g);return!$&&X&&X(),await new Promise((H,M)=>{Sh(H,M,{data:J,headers:ht.from(m.headers),status:m.status,statusText:m.statusText,config:g,request:U})})}catch(ae){throw X&&X(),ae&&ae.name==="TypeError"&&/Load failed|fetch/i.test(ae.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,g,U),{cause:ae.cause||ae}):ye.from(ae,ae&&ae.code,g,U)}}},zb=new Map,_h=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,l,u,c=zb;for(;a--;)l=i[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:Wb(t)),c=u;return u};_h();const da={http:cb,xhr:$b,fetch:{get:_h}};L.forEach(da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Uc=e=>`- ${e}`,Gb=e=>L.isFunction(e)||e===null||e===!1,xh={getAdapter:(e,t)=>{e=L.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
`+s.map(Uc).join(`
diff --git a/assets/index-iifEgtuE.js b/assets/index-CUpsVkMr.js
similarity index 96%
rename from assets/index-iifEgtuE.js
rename to assets/index-CUpsVkMr.js
index 2db2859..2698a9e 100644
--- a/assets/index-iifEgtuE.js
+++ b/assets/index-CUpsVkMr.js
@@ -1 +1 @@
-import{z as r,h as i,K as a,l as d,s as e,L as c,y as o,x as n,n as m}from"./index-C2VieYHK.js";import{I as x}from"./index-DeTfQ5AC.js";import{T as u}from"./Time-D1i6GVuw.js";const b=x("check-one",!0,function(s){return r("svg",{width:s.size,height:s.size,viewBox:"0 0 48 48",fill:"none"},[r("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:s.colors[1],stroke:s.colors[0],"stroke-width":s.strokeWidth,"stroke-linejoin":s.strokeLinejoin},null),r("path",{d:"M16 24L22 30L34 18",stroke:s.colors[2],"stroke-width":s.strokeWidth,"stroke-linecap":s.strokeLinecap,"stroke-linejoin":s.strokeLinejoin},null)])}),g={class:"min-h-screen bg-gradient-to-b from-amber-50 to-orange-50 flex items-center justify-center p-4"},f={class:"w-full max-w-md"},p={class:"flex flex-col items-center mb-8"},v={class:"relative"},h={class:"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border mb-6 border-amber-200 bg-white shadow-lg"},_={class:"px-6 [&:last-child]:pb-6 pt-6"},w={class:"space-y-4"},k={class:"flex items-start gap-3"},y={class:"p-2 bg-amber-100 rounded-lg"},C={class:"flex-1"},j={class:"mt-1"},z={class:"text-amber-600"},L={class:"flex items-center justify-between pt-4 border-t border-gray-200"},N={class:"flex items-baseline gap-1"},B={class:"text-2xl text-red-500"},D=i({__name:"index",setup(s){const l=a().query;return(I,t)=>(m(),d("div",g,[e("div",f,[e("div",p,[e("div",v,[t[0]||(t[0]=e("div",{class:"absolute inset-0 bg-green-400 rounded-full blur-xl opacity-30 animate-pulse"},null,-1)),r(o(b),{theme:"outline",size:"80",class:"w-20 h-20 text-green-500 relative z-10"})]),t[1]||(t[1]=e("h1",{class:"mt-6 text-center text-green-600"},"支付成功!",-1)),t[2]||(t[2]=e("p",{class:"text-center text-muted-foreground mt-2"}," 恭喜您成功开启有光自习室学习之旅 ",-1))]),e("div",h,[e("div",_,[t[6]||(t[6]=e("div",{class:"flex items-center justify-between mb-4 pb-4 border-b border-gray-200"},[e("span",{class:"text-gray-500"},"订单详情"),e("span",{class:"text-green-600"},"已支付")],-1)),e("div",w,[e("div",k,[e("div",y,[r(o(u),{class:"w-5 h-5 text-amber-600"})]),e("div",C,[t[3]||(t[3]=e("div",{class:"flex items-center gap-2"},[e("span",null,"有光自习室课程"),e("span",{class:"px-2 py-0.5 bg-red-500 text-white text-sm rounded"},"限时优惠")],-1)),e("div",j,[e("span",z,n(o(l).course_num)+"课时",1)])])]),e("div",L,[t[5]||(t[5]=e("span",{class:"text-gray-500"},"实付金额",-1)),e("div",N,[t[4]||(t[4]=e("span",{class:"text-sm"},"¥",-1)),e("span",B,n(o(l).order_amount),1)])])])])]),t[7]||(t[7]=c('添加客服微信,立即预约上课
长按识别二维码
添加专属客服微信
',1)),t[8]||(t[8]=e("div",{className:"mt-6 text-center"},[e("p",{className:"text-sm text-muted-foreground"}," 如有任何问题,请及时联系客服 ")],-1))])]))}});export{D as default};
+import{z as r,h as i,K as a,l as d,s as e,L as c,y as o,x as n,n as m}from"./index-B8OdjfL2.js";import{I as x}from"./index-DDdLkfGc.js";import{T as u}from"./Time-B67FoyEh.js";const b=x("check-one",!0,function(s){return r("svg",{width:s.size,height:s.size,viewBox:"0 0 48 48",fill:"none"},[r("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:s.colors[1],stroke:s.colors[0],"stroke-width":s.strokeWidth,"stroke-linejoin":s.strokeLinejoin},null),r("path",{d:"M16 24L22 30L34 18",stroke:s.colors[2],"stroke-width":s.strokeWidth,"stroke-linecap":s.strokeLinecap,"stroke-linejoin":s.strokeLinejoin},null)])}),g={class:"min-h-screen bg-gradient-to-b from-amber-50 to-orange-50 flex items-center justify-center p-4"},f={class:"w-full max-w-md"},p={class:"flex flex-col items-center mb-8"},v={class:"relative"},h={class:"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border mb-6 border-amber-200 bg-white shadow-lg"},_={class:"px-6 [&:last-child]:pb-6 pt-6"},w={class:"space-y-4"},k={class:"flex items-start gap-3"},y={class:"p-2 bg-amber-100 rounded-lg"},C={class:"flex-1"},j={class:"mt-1"},z={class:"text-amber-600"},L={class:"flex items-center justify-between pt-4 border-t border-gray-200"},N={class:"flex items-baseline gap-1"},B={class:"text-2xl text-red-500"},D=i({__name:"index",setup(s){const l=a().query;return(I,t)=>(m(),d("div",g,[e("div",f,[e("div",p,[e("div",v,[t[0]||(t[0]=e("div",{class:"absolute inset-0 bg-green-400 rounded-full blur-xl opacity-30 animate-pulse"},null,-1)),r(o(b),{theme:"outline",size:"80",class:"w-20 h-20 text-green-500 relative z-10"})]),t[1]||(t[1]=e("h1",{class:"mt-6 text-center text-green-600"},"支付成功!",-1)),t[2]||(t[2]=e("p",{class:"text-center text-muted-foreground mt-2"}," 恭喜您成功开启有光自习室学习之旅 ",-1))]),e("div",h,[e("div",_,[t[6]||(t[6]=e("div",{class:"flex items-center justify-between mb-4 pb-4 border-b border-gray-200"},[e("span",{class:"text-gray-500"},"订单详情"),e("span",{class:"text-green-600"},"已支付")],-1)),e("div",w,[e("div",k,[e("div",y,[r(o(u),{class:"w-5 h-5 text-amber-600"})]),e("div",C,[t[3]||(t[3]=e("div",{class:"flex items-center gap-2"},[e("span",null,"有光自习室课程"),e("span",{class:"px-2 py-0.5 bg-red-500 text-white text-sm rounded"},"限时优惠")],-1)),e("div",j,[e("span",z,n(o(l).course_num)+"课时",1)])])]),e("div",L,[t[5]||(t[5]=e("span",{class:"text-gray-500"},"实付金额",-1)),e("div",N,[t[4]||(t[4]=e("span",{class:"text-sm"},"¥",-1)),e("span",B,n(o(l).order_amount),1)])])])])]),t[7]||(t[7]=c('添加客服微信,立即预约上课
长按识别二维码
添加专属客服微信
',1)),t[8]||(t[8]=e("div",{className:"mt-6 text-center"},[e("p",{className:"text-sm text-muted-foreground"}," 如有任何问题,请及时联系客服 ")],-1))])]))}});export{D as default};
diff --git a/assets/index-DeTfQ5AC.js b/assets/index-DDdLkfGc.js
similarity index 97%
rename from assets/index-DeTfQ5AC.js
rename to assets/index-DDdLkfGc.js
index 3b34a9c..386f5fe 100644
--- a/assets/index-DeTfQ5AC.js
+++ b/assets/index-DDdLkfGc.js
@@ -1 +1 @@
-import{i as d,z as m}from"./index-C2VieYHK.js";var L={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function y(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function v(s,t,r){var e=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||r.theme;switch(i){case"outline":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("none"),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.twoTone.twoTone),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.multiColor.outFillColor),o.push(typeof e[2]=="string"?e[2]:r.colors.multiColor.innerStrokeColor),o.push(typeof e[3]=="string"?e[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:o,id:s}}var g=Symbol("icon-context");function x(s,t,r){var e={name:"icon-"+s,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(i){var u=y(),n=d(g,L);return function(){var p=i.size,a=i.strokeWidth,h=i.strokeLinecap,c=i.strokeLinejoin,k=i.theme,f=i.fill,C=i.spin,F=v(u,{size:p,strokeWidth:a,strokeLinecap:h,strokeLinejoin:c,theme:k,fill:f},n),l=[n.prefix+"-icon"];return l.push(n.prefix+"-icon-"+s),t&&n.rtl&&l.push(n.prefix+"-icon-rtl"),C&&l.push(n.prefix+"-icon-spin"),m("span",{class:l.join(" ")},[r(F)])}}};return e}export{x as I};
+import{i as d,z as m}from"./index-B8OdjfL2.js";var L={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function y(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function v(s,t,r){var e=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||r.theme;switch(i){case"outline":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("none"),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.twoTone.twoTone),o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof e[0]=="string"?e[0]:"currentColor"),o.push(typeof e[1]=="string"?e[1]:r.colors.multiColor.outFillColor),o.push(typeof e[2]=="string"?e[2]:r.colors.multiColor.innerStrokeColor),o.push(typeof e[3]=="string"?e[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:o,id:s}}var g=Symbol("icon-context");function x(s,t,r){var e={name:"icon-"+s,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(i){var u=y(),n=d(g,L);return function(){var p=i.size,a=i.strokeWidth,h=i.strokeLinecap,c=i.strokeLinejoin,k=i.theme,f=i.fill,C=i.spin,F=v(u,{size:p,strokeWidth:a,strokeLinecap:h,strokeLinejoin:c,theme:k,fill:f},n),l=[n.prefix+"-icon"];return l.push(n.prefix+"-icon-"+s),t&&n.rtl&&l.push(n.prefix+"-icon-rtl"),C&&l.push(n.prefix+"-icon-spin"),m("span",{class:l.join(" ")},[r(F)])}}};return e}export{x as I};
diff --git a/assets/index-Dk1g_FZh.js b/assets/index-Hr_BBDO-.js
similarity index 99%
rename from assets/index-Dk1g_FZh.js
rename to assets/index-Hr_BBDO-.js
index 3d55c85..b8c0980 100644
--- a/assets/index-Dk1g_FZh.js
+++ b/assets/index-Hr_BBDO-.js
@@ -1 +1 @@
-import{i as Ke,p as ei,w as Uo,c as si,r as gt,u as $o,g as No,o as Wo,a as zo,b as Ko,d as ni,e as Ho,f as Go,h as dt,j as ii,C as Xo,m as Yo,k as qo,l as G,n as F,q as ee,s as g,t as N,v as Zo,x as J,y as k,z as V,F as Pe,A as Ve,B as Jo,D as oi,E as Qo,G as Ps,H as tr,I as er,J as sr}from"./index-C2VieYHK.js";import{I as ri}from"./index-DeTfQ5AC.js";import{T as nr}from"./Time-D1i6GVuw.js";import{S as ir}from"./Star-CBk6w2p6.js";const Ht=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function or(t,e){let s=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const p=d&&i?s:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[s,n]=[n,s],s.forEach(l),s.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const Q={},rr=40;function ai(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=Ht.reduce((T,A)=>(T[A]=or(r),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:p}=o,m=()=>{const T=Q.useManualTiming?i.timestamp:performance.now();s=!1,Q.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(T-i.timestamp,rr),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(m))},y=()=>{s=!0,n=!0,i.isProcessing||t(m)};return{schedule:Ht.reduce((T,A)=>{const x=o[A];return T[A]=(P,D=!1,S=!1)=>(s||y(),x.schedule(P,D,S)),T},{}),cancel:T=>{for(let A=0;At,{schedule:M,cancel:tt,state:B,steps:he}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0);let Jt;function ar(){Jt=void 0}const O={now:()=>(Jt===void 0&&O.set(B.isProcessing||Q.useManualTiming?B.timestamp:performance.now()),Jt),set:t=>{Jt=t,queueMicrotask(ar)}},z=t=>t*1e3,X=t=>t/1e3;function lr(t,e){const s=O.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(tt(n),t(r-e))};return M.setup(n,!0),()=>tt(n)}const li=t=>e=>typeof e=="string"&&e.startsWith(t),He=li("--"),ur=li("var(--"),Ge=t=>ur(t)?cr.test(t.split("/*")[0].trim()):!1,cr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,jt={};function ui(t){for(const e in t)jt[e]=t[e],He(e)&&(jt[e].isCSSVariable=!0)}function It(t,e){const s=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(s);return[o=>{const a=Ke(n,o);if(a===void 0)throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`);return a},o=>(ei(n,o),o)]}const[hr,dr]=It("Motion"),[fr]=It("LayoutGroup");function Vs(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class st{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}function Ct(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const r=Ct(i,e,s);return r?{...n,...r}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function pr(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!mr(t,e):t!==e}function mr(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;nt;function yr(t){return typeof t=="number"}const vr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],xr=new Set(vr);function ci(t){return xr.has(t)}class br{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(o=>new o(e));const r=this.features;Uo(n.features,o=>{o.forEach(a=>{if(!i.includes(a)){i.push(a);const l=new a(e);r.push(l),e.isMounted()&&(l.beforeMount(),l.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const Xe=new WeakMap,[Tr]=It("AnimatePresenceContext");function wr(t){return typeof t=="string"||t===!1||Array.isArray(t)}const hi=new WeakMap;let Sr=0;class Ar{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=I,this.id=`motion-state-${Sr++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this);const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new br(this),this.type=ci(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return wr(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){var s;const n=this.options.custom??((s=this.options.animatePresenceContext)==null?void 0:s.custom);this.baseTarget=e.reduce((i,r)=>({...i,...Ct(this.options[r]||this.context[r],this.options.variants,n)}),{}),this.target={}}updateOptions(e){var s;this.options=e,(s=this.visualElement)==null||s.update({...this.options,whileTap:this.options.whilePress},{isPresent:!Xe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i,r;this.element=e,this.updateOptions(s),this.options.layoutId&&((i=this.visualElement.projection.getStack())==null?void 0:i.members.length)>0,this.featureManager.mount(),!n&&this.options.animate&&((r=this.startAnimation)==null||r.call(this))}clearAnimation(){var e,s;this.currentProcess&&tt(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=M.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var s;const n=this.options.layoutId&&((s=this.visualElement.projection)==null?void 0:s.getStack().lead)===this.visualElement.projection&&this.visualElement.projection.isProjecting(),i=()=>{var r,o,a;e&&Array.from(this.children).reverse().forEach(this.unmountChild),(o=(r=this.parent)==null?void 0:r.children)==null||o.delete(this),hi.delete(this.element),this.featureManager.unmount(),(a=this.visualElement)==null||a.unmount(),this.clearAnimation()};n?Promise.resolve().then(()=>{i()}):i()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,s,!1)}),n&&this.animateUpdates({isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const ht=new WeakMap;function Ms(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const Cs={syntax:"",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},Pr={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:Cs,scale:{syntax:"",initialValue:1,toDefaultUnit:gr},skew:Cs},Vr=["translate","scale","rotate","skew"],Er=["","X","Y","Z"],Ye=new Map,se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Vr.forEach(t=>{Er.forEach(e=>{se.push(t+e),Ye.set(t+e,Pr[t])})});const Mr=new Set(se),Cr=t=>Mr.has(t),Ds={x:"translateX",y:"translateY",z:"translateZ"};function Dr([t],[e]){return se.indexOf(t)-se.indexOf(e)}function _r(t,[e,s]){return`${t} ${e}(${s})`}function Lr(t){return t.sort(Dr).reduce(_r,"").trim()}const _s={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=Ut("deg"),Y=Ut("%"),b=Ut("px"),kr=Ut("vh"),Rr=Ut("vw"),Ls={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(t*100)},j=t=>!!(t&&t.getVelocity),jr={get:(t,e)=>{let s=Es(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=Ye.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{Es(e)?t.style.setProperty(e,s):t.style[e]=s}};function Br(t){var e;const s={},n=[];for(let i in t){let r=t[i];r=j(r)?r.get():r,Cr(i)&&i in Ds&&(i=Ds[i]);let o=Array.isArray(r)?r[0]:r;const a=Ye.get(i);a?(o=yr(r)?(e=a.toDefaultUnit)==null?void 0:e.call(a,r):r,n.push([i,o])):s[i]=o}return n.length&&(s.transform=Lr(n)),Object.keys(s).length===0?null:s}const Fr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Or(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ir(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=b.transform(-n);const i=b.transform(e),r=b.transform(s);t["stroke-dasharray"]=`${i} ${r}`}function Ur(t){const e={},s={};for(const n in t){const i=Or(n);if(i in Fr){const r=t[n];e[i]=j(r)?r.get():r}else s[n]=t[n]}return e["path-length"]!==void 0&&Ir(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attrs:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ks=t=>typeof t<"u";function $r({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Nr(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Wr(t,e){return $r(Nr(t.getBoundingClientRect(),e))}const Rs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ee={};for(const t in Rs)Ee[t]={isEnabled:e=>Rs[t].some(s=>!!e[s])};const js=()=>({translate:0,scale:1,origin:0,originPoint:0}),ft=()=>({x:js(),y:js()}),Bs=()=>({min:0,max:0}),L=()=>({x:Bs(),y:Bs()}),zr=typeof window<"u",ne={current:null},di={current:!1};function Kr(){if(di.current=!0,!!zr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ne.current=t.matches;t.addEventListener("change",e),e()}else ne.current=!1}function Hr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Gr(t){return typeof t=="string"||Array.isArray(t)}const Xr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yr=["initial",...Xr];function fi(t){return Hr(t.animate)||Yr.some(e=>Gr(t[e]))}function qr(t){return!!(fi(t)||t.variants)}function qe(t,e){t.indexOf(e)===-1&&t.push(e)}function ue(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class Ze{constructor(){this.subscriptions=[]}add(e){return qe(this.subscriptions,e),()=>ue(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let r=0;r!isNaN(parseFloat(t));class Jr{constructor(e,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var i;const r=O.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Zr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new Ze);const n=this.events[e].add(s);return e==="change"?()=>{n(),M.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Fs)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Fs);return pi(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,s;(e=this.dependents)==null||e.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(t,e){return new Jr(t,e)}function Qr(t,e,s){for(const n in e){const i=e[n],r=s[n];if(j(i))t.addValue(n,i);else if(j(r))t.addValue(n,yt(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,yt(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function Os(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function mi(t,e,s,n){if(typeof e=="function"){const[i,r]=Os(n);e=e(s!==void 0?s:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Os(n);e=e(s!==void 0?s:t.custom,i,r)}return e}function ta(t){for(let e=1;et*180/Math.PI,Me=t=>{const e=at(Math.atan2(t[1],t[0]));return Ce(e)},ea={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Me,rotateZ:Me,skewX:t=>at(Math.atan(t[1])),skewY:t=>at(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ce=t=>(t=t%360,t<0&&(t+=360),t),Is=Me,Us=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),$s=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),sa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Us,scaleY:$s,scale:t=>(Us(t)+$s(t))/2,rotateX:t=>Ce(at(Math.atan2(t[6],t[5]))),rotateY:t=>Ce(at(Math.atan2(-t[2],t[0]))),rotateZ:Is,rotate:Is,skewX:t=>at(Math.atan(t[4])),skewY:t=>at(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function De(t){return t.includes("scale")?1:0}function _e(t,e){if(!t||t==="none")return De(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=sa,i=s;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ea,i=a}if(!i)return De(e);const r=n[e],o=i[1].split(",").map(ia);return typeof r=="function"?r(o):o[r]}const na=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return _e(s,e)};function ia(t){return parseFloat(t.trim())}const xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(xt),et=(t,e,s)=>s>e?e:stypeof t=="number",parse:parseFloat,transform:t=>t},Bt={...Tt,transform:t=>et(0,1,t)},Gt={...Tt,default:1},Ns=t=>t===Tt||t===b,oa=new Set(["x","y","z"]),ra=xt.filter(t=>!oa.has(t));function aa(t){const e=[];return ra.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ut={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>_e(e,"x"),y:(t,{transform:e})=>_e(e,"y")};ut.translateX=ut.x;ut.translateY=ut.y;const ct=new Set;let Le=!1,ke=!1,Re=!1;function gi(){if(ke){const t=Array.from(ct).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=aa(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([r,o])=>{var a;(a=n.getValue(r))==null||a.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}ke=!1,Le=!1,ct.forEach(t=>t.complete(Re)),ct.clear()}function yi(){ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ke=!0)})}function la(){Re=!0,yi(),gi(),Re=!1}class Je{constructor(e,s,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ct.add(this),Le||(Le=!0,M.read(yi),M.resolveKeyframes(gi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&s){const a=n.readValue(s,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ta(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ct.delete(this)}cancel(){this.state==="scheduled"&&(ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),xi=t=>/^0[^.\s]+$/u.test(t),Dt=t=>Math.round(t*1e5)/1e5,Qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ua(t){return t==null}const ca=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ts=(t,e)=>s=>!!(typeof s=="string"&&ca.test(s)&&s.startsWith(t)||e&&!ua(s)&&Object.prototype.hasOwnProperty.call(s,e)),bi=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,r,o,a]=n.match(Qe);return{[t]:parseFloat(i),[e]:parseFloat(r),[s]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ha=t=>et(0,255,t),de={...Tt,transform:t=>Math.round(ha(t))},lt={test:ts("rgb","red"),parse:bi("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(s)+", "+Dt(Bt.transform(n))+")"};function da(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const je={test:ts("#"),parse:da,transform:lt.transform},pt={test:ts("hsl","hue"),parse:bi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+Y.transform(Dt(e))+", "+Y.transform(Dt(s))+", "+Dt(Bt.transform(n))+")"},R={test:t=>lt.test(t)||je.test(t)||pt.test(t),parse:t=>lt.test(t)?lt.parse(t):pt.test(t)?pt.parse(t):je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?lt.transform(t):pt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pa(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Qe))==null?void 0:e.length)||0)+(((s=t.match(fa))==null?void 0:s.length)||0)>0}const Ti="number",wi="color",ma="var",ga="var(",Ws="${}",ya=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ft(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ya,l=>(R.test(l)?(n.color.push(r),i.push(wi),s.push(R.parse(l))):l.startsWith(ga)?(n.var.push(r),i.push(ma),s.push(l)):(n.number.push(r),i.push(Ti),s.push(parseFloat(l))),++r,Ws)).split(Ws);return{values:s,split:a,indexes:n,types:i}}function Si(t){return Ft(t).values}function Ai(t){const{split:e,types:s}=Ft(t),n=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function xa(t){const e=Si(t);return Ai(t)(e.map(va))}const ot={test:pa,parse:Si,createTransformer:Ai,getAnimatableNone:xa},ba={test:t=>t==="auto",parse:t=>t},Pi=t=>e=>e.test(t),Vi=[Tt,b,Y,it,Rr,kr,ba],zs=t=>Vi.find(Pi(t)),Ta=[...Vi,R,ot],wa=t=>Ta.find(Pi(t)),Sa=new Set(["brightness","contrast","saturate","opacity"]);function Aa(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(Qe)||[];if(!n)return t;const i=s.replace(n,"");let r=Sa.has(e)?1:0;return n!==s&&(r*=100),e+"("+r+i+")"}const Pa=/\b([a-z-]*)\(.*?\)/gu,Be={...ot,getAnimatableNone:t=>{const e=t.match(Pa);return e?e.map(Aa).join(" "):t}},Ks={...Tt,transform:Math.round},Va={rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:it,skewX:it,skewY:it,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Bt,originX:Ls,originY:Ls,originZ:b},es={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,radius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,backgroundPositionX:b,backgroundPositionY:b,...Va,zIndex:Ks,fillOpacity:Bt,strokeOpacity:Bt,numOctaves:Ks},Ea={...es,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Be,WebkitFilter:Be},Ei=t=>Ea[t];function Mi(t,e){let s=Ei(t);return s!==Be&&(s=ot),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const{schedule:Ci}=ai(queueMicrotask,!0),Hs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Di{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Je,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=O.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),di.current||Kr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ne.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const n=this.features[s];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=bt.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&M.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ee){const s=Ee[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;ns.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=yt(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(vi(n)||xi(n))?n=parseFloat(n):!wa(n)&&ot.test(s)&&(n=Mi(e,s)),this.setBaseTarget(e,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=mi(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!j(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new Ze),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}scheduleRenderMicrotask(){Ci.render(this.render)}}const _i=new Set(["width","height","top","left","right","bottom",...xt]);let ss=()=>{};const Ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ca(t){const e=Ma.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}function Li(t,e,s=1){const[n,i]=Ca(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const o=r.trim();return vi(o)?parseFloat(o):o}return Ge(i)?Li(i,e,s+1):i}function Da(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xi(t):!0}const _a=new Set(["auto","none","0"]);function La(t,e,s){let n=0,i;for(;n{s.getValue(l).set(c)}),this.resolveNoneKeyframes()}}class ki extends Di{constructor(){super(...arguments),this.KeyframeResolver=ka}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const Ri=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ra={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ja=xt.length;function Ba(t,e,s){let n="",i=!0;for(let r=0;rt.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ua={offset:"strokeDashoffset",array:"strokeDasharray"};function $a(t,e,s=1,n=0,i=!0){t.pathLength=1;const r=i?Ia:Ua;t[r.offset]=b.transform(-n);const o=b.transform(e),a=b.transform(s);t[r.array]=`${o} ${a}`}function Na(t,{attrX:e,attrY:s,attrScale:n,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(ji(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&$a(h,i,r,o,!1)}const Ii=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Wa=t=>typeof t=="string"&&t.toLowerCase()==="svg";function za(t,e,s,n){Bi(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(Ii.has(i)?i:ns(i),e.attrs[i])}function Ka(t,e,s){const n=Fi(t,e,s);for(const i in t)if(j(t[i])||j(e[i])){const r=xt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[r]=t[i]}return n}class Ui extends ki{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(bt.has(s)){const n=Ei(s);return n&&n.default||0}return s=Ii.has(s)?s:ns(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Ka(e,s,n)}build(e,s,n){Na(e,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,s,n,i){za(e,s,n,i)}mount(e){this.isSVGTag=Wa(e.tagName),super.mount(e)}}function Ha(t,e){return ci(t)?new Ui(e):new Oi(e)}function Ga(t,e,s,n=0,i=1){const r=Array.from(t),o=r.indexOf(e),a=t.size,l=(a-1)*n,c=typeof s=="function";return o===r.length-1&&(e.parent.enteringChildren=void 0),c?s(o,a):i===1?o*n:l-o*n}function is(t){return typeof t=="object"&&!Array.isArray(t)}function os(t,e,s){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;const i=(s==null?void 0:s[t])??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function $i(t,e,s,n){return typeof t=="string"&&is(e)?os(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Xa(t,e,s){return t*(e+1)}function Gs(t,e,s,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:e.startsWith("<")?Math.max(0,s+parseFloat(e.slice(1))):n.get(e)??t}const C=(t,e,s)=>t+(e-t)*s,Ya=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},Ni=t=>Array.isArray(t)&&typeof t[0]!="number";function Wi(t,e){return Ni(t)?t[Ya(0,t.length,e)]:t}function qa(t,e,s){for(let n=0;ne&&i.at{const n=e-t;return n===0?1:(s-t)/n};function zi(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=vt(0,e,n);t.push(C(s,1,i))}}function Ki(t){const e=[0];return zi(e,t.length-1),e}const ie=2e4;function rs(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e=ie?1/0:e}function Hi(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(rs(n),ie);return{type:"keyframes",ease:r=>n.next(i*r).value/e,duration:X(i)}}function as(t){return typeof t=="function"&&"applyToOptions"in t}const tl="easeInOut";function el(t,{defaultTransition:e={},...s}={},n,i){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,h=0,d=0;for(let f=0;f{const E=sl(A),{delay:U=0,times:K=Ki(E),type:ce="keyframes",repeat:Wt,repeatType:yd,repeatDelay:vd=0,...Io}=x;let{ease:nt=e.ease||"easeOut",duration:q}=x;const xs=typeof U=="function"?U(D,S):U,bs=E.length,Ts=as(ce)?ce:i==null?void 0:i[ce||"keyframes"];if(bs<=2&&Ts){let wt=100;if(bs===2&&ol(E)){const St=E[1]-E[0];wt=Math.abs(St)}const zt={...Io};q!==void 0&&(zt.duration=z(q));const Kt=Hi(zt,wt,Ts);nt=Kt.ease,q=Kt.duration}q??(q=r);const ws=h+xs;K.length===1&&K[0]===0&&(K[1]=1);const Ss=K.length-E.length;if(Ss>0&&zi(K,Ss),E.length===1&&E.unshift(null),Wt){q=Xa(q,Wt);const wt=[...E],zt=[...K];nt=Array.isArray(nt)?[...nt]:[nt];const Kt=[...nt];for(let St=0;St{for(const m in f){const y=f[m];y.sort(Qa);const v=[],w=[],T=[];for(let x=0;xtypeof t=="number",ol=t=>t.every(il),rl=t=>Array.isArray(t);function al(t,e,s){const n=t.getProps();return mi(n,e,n.custom,t)}function ll(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,yt(s))}function ul(t){return rl(t)?t[t.length-1]||0:t}function cl(t,e){const s=al(t,e);let{transitionEnd:n={},transition:i={},...r}=s||{};r={...r,...n};for(const o in r){const a=ul(r[o]);ll(t,o,a)}}function hl(t){return!!(j(t)&&t.add)}function dl(t,e){const s=t.getValue("willChange");if(hl(s))return s.add(e);if(!s&&Q.WillChange){const n=new Q.WillChange("auto");t.addValue("willChange",n),n.add(e)}}const fl="framerAppearId",pl="data-"+ns(fl);function Gi(t){return t.props[pl]}const ml=t=>t!==null;function gl(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(ml),r=e&&s!=="loop"&&e%2===1?0:i.length-1;return i[r]}const yl={type:"spring",stiffness:500,damping:25,restSpeed:10},vl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xl={type:"keyframes",duration:.8},bl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tl=(t,{keyframes:e})=>e.length>2?xl:bt.has(t)?t.startsWith("scale")?vl(e[1]):yl:bl;function wl({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function ls(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function Fe(t){t.duration=0,t.type}function fe(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function Sl({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,r=0,o=0;if(!e)i=r=o=s;else{const a=s<.5?s*(1+e):s+e-s*e,l=2*s-a;i=fe(l,a,t+1/3),r=fe(l,a,t),o=fe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:n}}function oe(t,e){return s=>s>0?e:t}const pe=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Al=[je,lt,pt],Pl=t=>Al.find(e=>e.test(t));function qs(t){const e=Pl(t);if(!e)return!1;let s=e.parse(t);return e===pt&&(s=Sl(s)),s}const Zs=(t,e)=>{const s=qs(t),n=qs(e);if(!s||!n)return oe(t,e);const i={...s};return r=>(i.red=pe(s.red,n.red,r),i.green=pe(s.green,n.green,r),i.blue=pe(s.blue,n.blue,r),i.alpha=C(s.alpha,n.alpha,r),lt.transform(i))},Oe=new Set(["none","hidden"]);function Vl(t,e){return Oe.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}const El=(t,e)=>s=>e(t(s)),$t=(...t)=>t.reduce(El);function Ml(t,e){return s=>C(t,e,s)}function us(t){return typeof t=="number"?Ml:typeof t=="string"?Ge(t)?oe:R.test(t)?Zs:_l:Array.isArray(t)?Xi:typeof t=="object"?R.test(t)?Zs:Cl:oe}function Xi(t,e){const s=[...t],n=s.length,i=t.map((r,o)=>us(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in n)s[r]=n[r](i);return s}}function Dl(t,e){const s=[],n={color:0,var:0,number:0};for(let i=0;i{const s=ot.createTransformer(e),n=Ft(t),i=Ft(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Oe.has(t)&&!i.values.length||Oe.has(e)&&!n.values.length?Vl(t,e):$t(Xi(Dl(n,i),i.values),s):oe(t,e)};function Yi(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?C(t,e,s):us(t)(t,e)}const Ll=t=>{const e=({timestamp:s})=>t(s);return{start:(s=!0)=>M.update(e,s),stop:()=>tt(e),now:()=>B.isProcessing?B.timestamp:O.now()}},qi=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let r=0;r{const u=c*o,h=u*t,d=u-s,f=Ie(c,o),p=Math.exp(-h);return me-d/f*p},r=c=>{const h=c*o*t,d=h*s+s,f=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=Ie(Math.pow(c,2),o);return(-i(c)+me>0?-1:1)*((d-f)*p)/m}):(i=c=>{const u=Math.exp(-c*t),h=(c-s)*t+1;return-me+u*h},r=c=>{const u=Math.exp(-c*t),h=(s-c)*(t*t);return u*h});const a=5/t,l=Bl(i,r,a);if(t=z(t),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const jl=12;function Bl(t,e,s){let n=s;for(let i=1;it[s]!==void 0)}function Il(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!Js(t,Ol)&&Js(t,Fl))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,r=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:_.mass,stiffness:i,damping:r}}else{const s=Rl(t);e={...e,...s,mass:_.mass},e.isResolvedFromDuration=!0}return e}function Ot(t=_.visualDuration,e=_.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=Il({...s,velocity:-X(s.velocity||0)}),p=d||0,m=c/(2*Math.sqrt(l*u)),y=o-r,v=X(Math.sqrt(l/u)),w=Math.abs(y)<5;n||(n=w?_.restSpeed.granular:_.restSpeed.default),i||(i=w?_.restDelta.granular:_.restDelta.default);let T;if(m<1){const x=Ie(v,m);T=P=>{const D=Math.exp(-m*v*P);return o-D*((p+m*v*y)/x*Math.sin(x*P)+y*Math.cos(x*P))}}else if(m===1)T=x=>o-Math.exp(-v*x)*(y+(p+v*y)*x);else{const x=v*Math.sqrt(m*m-1);T=P=>{const D=Math.exp(-m*v*P),S=Math.min(x*P,300);return o-D*((p+m*v*y)*Math.sinh(S)+x*y*Math.cosh(S))/x}}const A={calculatedDuration:f&&h||null,next:x=>{const P=T(x);if(f)a.done=x>=h;else{let D=x===0?p:0;m<1&&(D=x===0?z(p):Zi(T,x,P));const S=Math.abs(D)<=n,E=Math.abs(o-P)<=i;a.done=S&&E}return a.value=a.done?o:P,a},toString:()=>{const x=Math.min(rs(A),ie),P=qi(D=>A.next(x*D).value,x,30);return x+"ms "+P},toTransition:()=>{}};return A}Ot.applyToOptions=t=>{const e=Hi(t,100,Ot);return t.ease=e.ease,t.duration=z(e.duration),t.type="keyframes",t};function Ue({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=S=>a!==void 0&&Sl,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)-m*Math.exp(-S/n),T=S=>v+w(S),A=S=>{const E=w(S),U=T(S);d.done=Math.abs(E)<=c,d.value=d.done?v:U};let x,P;const D=S=>{f(d.value)&&(x=S,P=Ot({keyframes:[d.value,p(d.value)],velocity:Zi(T,S,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:S=>{let E=!1;return!P&&x===void 0&&(E=!0,A(S),D(S)),x!==void 0&&S>=x?P.next(S-x):(!E&&A(S),d)}}}function Ul(t,e,s){const n=[],i=s||Q.mix||Yi,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ul(e,n,i),l=a.length,c=u=>{if(o&&u1)for(;hc(et(t[0],t[r-1],u)):c}function Nl(t,e){return t.map(s=>s*e)}const Ji=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,Wl=1e-7,zl=12;function Kl(t,e,s,n,i){let r,o,a=0;do o=e+(s-e)/2,r=Ji(o,n,i)-t,r>0?s=o:e=o;while(Math.abs(r)>Wl&&++aKl(r,0,1,t,s);return r=>r===0||r===1?r:Ji(i(r),e,n)}const Hl=Nt(.42,0,1,1),Gl=Nt(0,0,.58,1),Qi=Nt(.42,0,.58,1),to=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eo=t=>e=>1-t(1-e),so=Nt(.33,1.53,.69,.99),cs=eo(so),no=to(cs),io=t=>(t*=2)<1?.5*cs(t):.5*(2-Math.pow(2,-10*(t-1))),hs=t=>1-Math.sin(Math.acos(t)),oo=eo(hs),ro=to(hs),ao=t=>Array.isArray(t)&&typeof t[0]=="number",Xl={linear:I,easeIn:Hl,easeInOut:Qi,easeOut:Gl,circIn:hs,circInOut:ro,circOut:oo,backIn:cs,backInOut:no,backOut:so,anticipate:io},Yl=t=>typeof t=="string",Qs=t=>{if(ao(t)){ss(t.length===4);const[e,s,n,i]=t;return Nt(e,s,n,i)}else if(Yl(t))return Xl[t];return t};function ql(t,e){return t.map(()=>e||Qi).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=Ni(n)?n.map(Qs):Qs(n),r={done:!1,value:e[0]},o=Nl(s&&s.length===e.length?s:Ki(e),t),a=$l(o,e,{ease:Array.isArray(i)?i:ql(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Zl=t=>t!==null;function ds(t,{repeat:e,repeatType:s="loop"},n,i=1){const r=t.filter(Zl),a=i<0||e&&s!=="loop"&&e%2===1?0:r.length-1;return!a||n===void 0?r[a]:n}const Jl={decay:Ue,inertia:Ue,tween:_t,keyframes:_t,spring:Ot};function lo(t){typeof t.type=="string"&&(t.type=Jl[t.type])}class fs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,s){return this.finished.then(e,s)}}const Ql=t=>t/100;class ps extends fs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,n;const{motionValue:i}=this.options;i&&i.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(n=(s=this.options).onStop)==null||n.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;lo(e);const{type:s=_t,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=s||_t;l!==_t&&typeof a[0]!="number"&&(this.mixKeyframes=$t(Ql,Yi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=rs(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(e){const s=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(e,s=!1){const{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),s?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,A=n;if(h){const S=Math.min(this.currentTime,i)/a;let E=Math.floor(S),U=S%1;!U&&S>=1&&(U=1),U===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(d==="reverse"?(U=1-U,f&&(U-=f/a)):d==="mirror"&&(A=o)),T=et(0,1,U)*a}const x=w?{done:!1,value:u[0]}:A.next(T);r&&(x.value=r(x.value));let{done:P}=x;!w&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&p!==Ue&&(x.value=ds(u,this.options,y,this.speed)),m&&m(x.value),D&&this.finish(),x}then(e,s){return this.finished.then(e,s)}get duration(){return X(this.calculatedDuration)}get time(){return X(this.currentTime)}set time(e){var s;e=z(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(O.now());const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=X(this.currentTime))}play(){var e,s;if(this.isStopped)return;const{driver:n=Ll,startTime:i}=this.options;this.driver||(this.driver=n(o=>this.tick(o))),(s=(e=this.options).onPlay)==null||s.call(e);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(e=this.options).onComplete)==null||s.call(e)}cancel(){var e,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(e=this.options).onCancel)==null||s.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),e.observe(this)}}const tu=t=>t.startsWith("--");function eu(t,e,s){tu(e)?t.style.setProperty(e,s):t.style[e]=s}function ms(t){let e;return()=>(e===void 0&&(e=t()),e)}const su=ms(()=>window.ScrollTimeline!==void 0),nu={};function iu(t,e){const s=ms(t);return()=>nu[e]??s()}const uo=iu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Et=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Et([0,.65,.55,1]),circOut:Et([.55,0,1,.45]),backIn:Et([.31,.01,.66,-.59]),backOut:Et([.33,1.53,.69,.99])};function co(t,e){if(t)return typeof t=="function"?uo()?qi(t,e):"ease-out":ao(t)?Et(t):Array.isArray(t)?t.map(s=>co(s,e)||tn.easeOut):tn[t]}function ou(t,e,s,{delay:n=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:s};l&&(u.offset=l);const h=co(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function ru({type:t,...e}){return as(t)&&uo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class au extends fs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:s,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ss(typeof e.type!="string");const c=ru(e);this.animation=ou(s,n,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ds(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):eu(s,n,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,s;(s=(e=this.animation).finish)==null||s.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,s;this.isPseudoElement||(s=(e=this.animation).commitStyles)==null||s.call(e)}get duration(){var e,s;const n=((s=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:s.call(e).duration)||0;return X(Number(n))}get time(){return X(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=z(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:s}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&su()?(this.animation.timeline=e,I):s(this)}}const ho={anticipate:io,backInOut:no,circInOut:ro};function lu(t){return t in ho}function uu(t){typeof t.ease=="string"&&lu(t.ease)&&(t.ease=ho[t.ease])}const en=10;class cu extends au{constructor(e){uu(e),lo(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:s,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!s)return;if(e!==void 0){s.set(e);return}const a=new ps({...o,autoplay:!1}),l=z(this.finishedTime??this.time);s.setWithVelocity(a.sample(l-en).value,a.sample(l).value,en),a.stop()}}const sn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ot.test(t)||t==="0")&&!t.startsWith("url("));function hu(t){const e=t[0];if(t.length===1)return!0;for(let s=0;sObject.hasOwnProperty.call(Element.prototype,"animate"));function mu(t){var e;const{motionValue:s,name:n,repeatDelay:i,repeatType:r,damping:o,type:a}=t;if(!(((e=s==null?void 0:s.owner)==null?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=s.owner.getProps();return pu()&&n&&fu.has(n)&&(n!=="transform"||!u)&&!c&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}const gu=40;class yu extends fs{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var d;super(),this.stop=()=>{var m,y;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=O.now();const f={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},p=(u==null?void 0:u.KeyframeResolver)||Je;this.keyframeResolver=new p(a,(m,y,v)=>this.onKeyframesResolved(m,y,f,!v),l,c,u),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,s,n,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=O.now(),du(e,r,o,a)||((Q.instantAnimations||!l)&&(u==null||u(ds(e,n,s))),e[0]=e[e.length-1],Fe(n),n.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>gu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:e},f=!c&&mu(d)?new cu({...d,element:d.motionValue.owner.current}):new ps(d);f.finished.then(()=>this.notifyFinished()).catch(I),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,s){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),la()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const gs=(t,e,s,n={},i,r)=>o=>{const a=ls(n,t)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-z(l);const u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};wl(a)||Object.assign(u,Tl(t,u)),u.duration&&(u.duration=z(u.duration)),u.repeatDelay&&(u.repeatDelay=z(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Fe(u),u.delay===0&&(h=!0)),(Q.instantAnimations||Q.skipAnimations)&&(h=!0,Fe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=gl(u.keyframes,a);if(d!==void 0){M.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new ps(u):new yu(u)};function vu({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function xu(t,e,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(r=n);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||c&&vu(c,u))continue;const f={delay:s,...ls(r||{},u)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(d)&&d===p&&!f.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=Gi(t);if(v){const w=window.MotionHandoffAnimation(v,u,M);w!==null&&(f.startTime=w,m=!0)}}dl(t,u),h.start(gs(u,h,d,t.shouldReduceMotion&&_i.has(u)?{type:!1}:f,t,m));const y=h.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{M.update(()=>{o&&cl(t,o)})}),l}function bu(t,e){return t in e}class Tu extends Di{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(bu(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return L()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function fo(t){return typeof t=="object"&&t!==null}function ys(t){return fo(t)&&"ownerSVGElement"in t}function po(t){return ys(t)&&t.tagName==="svg"}function wu(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=ys(t)&&!po(t)?new Ui(e):new Oi(e);s.mount(t),ht.set(t,s)}function Su(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new Tu(e);s.mount(t),ht.set(t,s)}function mo(t,e,s){const n=j(t)?t:yt(t);return n.start(gs("",n,e,s)),n.animation}function Au(t,e){return j(t)||typeof t=="number"||typeof t=="string"&&!is(e)}function go(t,e,s,n){const i=[];if(Au(t,e))i.push(mo(t,is(e)&&e.default||e,s&&(s.default||s)));else{const r=$i(t,e,n),o=r.length;for(let a=0;a{n.push(...go(a,r,o))}),n}class Vu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;nn.attachTimeline(e));return()=>{s.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;ss[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Eu extends Vu{then(e,s){return this.finished.finally(e).then(()=>{})}}function Mu(t){return Array.isArray(t)&&t.some(Array.isArray)}function Cu(t){function e(s,n,i){let r=[];return Mu(s)?r=Pu(s,n,t):r=go(s,n,i,t),new Eu(r)}return e}const Du=Cu(),_u=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class Lu extends st{constructor(e){var s,n;super(e),this.animateUpdates=({controlActiveState:i,directAnimate:r,directTransition:o,controlDelay:a=0,isExit:l}={})=>{const{reducedMotion:c}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=c==="always"||c==="user"&&!!ne.current;const u=this.state.target;this.state.target={...this.state.baseTarget};let h={};h=this.resolveStateAnimation({controlActiveState:i,directAnimate:r,directTransition:o}),this.state.finalTransition=h;const d=this.createAnimationFactories(u,h,a),{getChildAnimations:f}=this.setupChildAnimations(h,this.state.activeStates);return this.executeAnimations({factories:d,getChildAnimations:f,transition:h,controlActiveState:i,isExit:l})},this.state.visualElement=Ha(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(n=this.state.visualElement.parent)==null||n.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;Vs(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),a={...this.state.target},l=this.state.element,c=h=>{var d,f;l.dispatchEvent(Ms("motionstart",a)),(f=(d=this.state.options).onAnimationStart)==null||f.call(d,a),h.then(()=>{var p,m;l.dispatchEvent(Ms("motioncomplete",a,r)),(m=(p=this.state.options).onAnimationComplete)==null||m.call(p,a)}).catch(I)},u=()=>{const h=n!=null&&n.when?(n.when==="beforeChildren"?o():s()).then(()=>n.when==="beforeChildren"?s():o()):Promise.all([o(),s()]);return c(h),h};return i?u:u()}setupChildAnimations(e,s){var n;const i=this.state.visualElement;if(!((n=i.variantChildren)!=null&&n.size)||!s)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:a=0}=e||{},l=i.variantChildren.size,c=(l-1)*r,u=typeof a=="function",h=u?f=>a(f,l):o===1?(f=0)=>f*r:(f=0)=>c-f*r,d=Array.from(i.variantChildren).map((f,p)=>f.state.animateUpdates({controlActiveState:s,controlDelay:(u?0:a)+h(p)}));return{getChildAnimations:()=>Promise.all(d.map(f=>f()))}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!pr(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=jr.get(this.state.element,r));const a=this.state.target[r]==="none"&&ks(_s[r])?_s[r]:this.state.target[r];i.push(()=>{var l;return Du(this.state.element,{[r]:a},{...(s==null?void 0:s[r])||s,delay:(((l=s==null?void 0:s[r])==null?void 0:l.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,r={};const{variants:o,custom:a,transition:l,animatePresenceContext:c}=this.state.options,u=a??(c==null?void 0:c.custom);return this.state.activeStates={...this.state.activeStates,...e},_u.forEach(h=>{if(!this.state.activeStates[h]||Vs(this.state.options[h]))return;const d=this.state.options[h];let f=ks(d)?Ct(d,o,u):void 0;if(this.state.visualElement.isVariantNode){const p=Ct(this.state.context[h],o,u);f=Object.assign(p?p||{}:r,f)}f&&(h!=="initial"&&(i=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),s&&(r=Ct(s,o,u),i=r.transition||n||l),Object.entries(r).forEach(([h,d])=>{h!=="transition"&&(this.state.target[h]=d)}),i}mount(){var e,s;const{element:n}=this.state;hi.set(n,this.state),ht.get(n)||(this.state.visualElement.mount(n),ht.set(n,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const i=this.state.visualElement,r=i.parent;if(i.enteringChildren=void 0,(e=this.state.parent)!=null&&e.isMounted()&&!i.isControllingVariants&&((s=r==null?void 0:r.enteringChildren)!=null&&s.has(i))){const{delayChildren:o}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:Ga(r.enteringChildren,i,o)})()}}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}function ku(t){return fo(t)&&"offsetHeight"in t}const Ru={y:!1};function ju(){return Ru.y}const yo=(t,e)=>e?t===e?!0:yo(t,e.parentElement):!1,Bu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function vo(t,e){const s=os(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const Fu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ou(t){return Fu.has(t.tagName)||t.tabIndex!==-1}const Qt=new WeakSet;function nn(t){return e=>{e.key==="Enter"&&t(e)}}function ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Iu=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=nn(()=>{if(Qt.has(s))return;ge(s,"down");const i=nn(()=>{ge(s,"up")}),r=()=>ge(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",r,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function on(t){return Bu(t)&&!0}function Uu(t,e,s={}){const[n,i,r]=vo(t,s),o=a=>{const l=a.currentTarget;if(!on(a))return;Qt.add(l);const c=e(l,a),u=(f,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Qt.has(l)&&Qt.delete(l),on(f)&&typeof c=="function"&&c(f,{success:p})},h=f=>{u(f,l===window||l===document||s.useGlobalTarget||yo(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return n.forEach(a=>{(s.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),ku(a)&&(a.addEventListener("focus",c=>Iu(c,i)),!Ou(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function xo(t){return{point:{x:t.pageX,y:t.pageY}}}function rn(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,r=n[i];r&&M.postRender(()=>r(e,xo(e)))}class $u extends st{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Uu(e,(s,n)=>(rn(this.state,n,"Start"),(i,{success:r})=>rn(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function an(t){return!(t.pointerType==="touch"||ju())}function Nu(t,e,s={}){const[n,i,r]=vo(t,s),o=a=>{if(!an(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{an(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return n.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}function ln(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,r=n[i];r&&M.postRender(()=>r(e,xo(e)))}class Wu extends st{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Nu(e,(s,n)=>(ln(this.state,n,"Start"),i=>{ln(this.state,i,"End")})))}}const zu={some:0,all:1};function Ku(t,e,{root:s,margin:n,amount:i="some"}={}){const r=os(t),o=new WeakMap,a=c=>{c.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?o.set(u.target,d):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:s,rootMargin:n,threshold:typeof i=="number"?i:zu[i]});return r.forEach(c=>l.observe(c)),()=>l.disconnect()}function un(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,r=n[i];r&&M.postRender(()=>r(e))}class Hu extends st{isActive(){const{whileInView:e,onViewportEnter:s,onViewportLeave:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=Ku(e,(i,r)=>{if(un(this.state,r,"Enter"),!s)return o=>{un(this.state,r,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Gu(e,s))&&this.startObserver()}}function Gu({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function re(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class Xu extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$t(re(this.state.element,"focus",()=>this.onFocus()),re(this.state.element,"blur",()=>this.onBlur()))}}const Yu=(t,e)=>t.depth-e.depth;class qu{constructor(){this.children=[],this.isDirty=!1}add(e){qe(this.children,e),this.isDirty=!0}remove(e){ue(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yu),this.isDirty=!1,this.children.forEach(e)}}function ye(t){return j(t)?t.get():t}const bo=["TopLeft","TopRight","BottomLeft","BottomRight"],Zu=bo.length,cn=t=>typeof t=="string"?parseFloat(t):t,hn=t=>typeof t=="number"||b.test(t);function Ju(t,e,s,n,i,r){i?(t.opacity=C(0,s.opacity??1,Qu(n)),t.opacityExit=C(e.opacity??1,0,tc(n))):r&&(t.opacity=C(e.opacity??1,s.opacity??1,n));for(let o=0;one?1:s(vt(t,e,n))}function fn(t,e){t.min=e.min,t.max=e.max}function $(t,e){fn(t.x,e.x),fn(t.y,e.y)}function pn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ve(t){return t===void 0||t===1}function $e({scale:t,scaleX:e,scaleY:s}){return!ve(t)||!ve(e)||!ve(s)}function rt(t){return $e(t)||wo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wo(t){return mn(t.x)||mn(t.y)}function mn(t){return t&&t!=="0%"}function ae(t,e,s){const n=t-s,i=e*n;return s+i}function gn(t,e,s,n,i){return i!==void 0&&(t=ae(t,i,n)),ae(t,s,n)+e}function Ne(t,e=0,s=1,n,i){t.min=gn(t.min,e,s,n,i),t.max=gn(t.max,e,s,n,i)}function So(t,{x:e,y:s}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,s.translate,s.scale,s.originPoint)}const yn=.999999999999,vn=1.0000000000001;function ec(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;ayn&&(e.x=1),e.yyn&&(e.y=1)}function Xt(t,e){t.min=t.min+e,t.max=t.max+e}function xn(t,e,s,n,i=.5){const r=C(t.min,t.max,i);Ne(t,e,s,r,n)}function mt(t,e){xn(t.x,e.x,e.scaleX,e.scale,e.originX),xn(t.y,e.y,e.scaleY,e.scale,e.originY)}const Ao=1e-4,sc=1-Ao,nc=1+Ao,Po=.01,ic=0-Po,oc=0+Po;function W(t){return t.max-t.min}function rc(t,e,s){return Math.abs(t-e)<=s}function bn(t,e,s,n=.5){t.origin=n,t.originPoint=C(e.min,e.max,t.origin),t.scale=W(s)/W(e),t.translate=C(s.min,s.max,t.origin)-t.originPoint,(t.scale>=sc&&t.scale<=nc||isNaN(t.scale))&&(t.scale=1),(t.translate>=ic&&t.translate<=oc||isNaN(t.translate))&&(t.translate=0)}function Lt(t,e,s,n){bn(t.x,e.x,s.x,n?n.originX:void 0),bn(t.y,e.y,s.y,n?n.originY:void 0)}function Tn(t,e,s){t.min=s.min+e.min,t.max=t.min+W(e)}function ac(t,e,s){Tn(t.x,e.x,s.x),Tn(t.y,e.y,s.y)}function wn(t,e,s){t.min=e.min-s.min,t.max=t.min+W(e)}function kt(t,e,s){wn(t.x,e.x,s.x),wn(t.y,e.y,s.y)}function Sn(t,e,s,n,i){return t-=e,t=ae(t,1/s,n),i!==void 0&&(t=ae(t,1/i,n)),t}function lc(t,e=0,s=1,n=.5,i,r=t,o=t){if(Y.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,n);t===r&&(a-=e),t.min=Sn(t.min,e,s,a,i),t.max=Sn(t.max,e,s,a,i)}function An(t,e,[s,n,i],r,o){lc(t,e[s],e[n],e[i],e.scale,r,o)}const uc=["x","scaleX","originX"],cc=["y","scaleY","originY"];function Pn(t,e,s,n){An(t.x,e,uc,s?s.x:void 0,n?n.x:void 0),An(t.y,e,cc,s?s.y:void 0,n?n.y:void 0)}function Vn(t){return t.translate===0&&t.scale===1}function Vo(t){return Vn(t.x)&&Vn(t.y)}function En(t,e){return t.min===e.min&&t.max===e.max}function hc(t,e){return En(t.x,e.x)&&En(t.y,e.y)}function Mn(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Eo(t,e){return Mn(t.x,e.x)&&Mn(t.y,e.y)}function Cn(t){return W(t.x)/W(t.y)}function Dn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class dc{constructor(){this.members=[]}add(e){qe(this.members,e),e.scheduleRender()}remove(e){if(ue(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fc(t,e,s){let n="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(s==null?void 0:s.z)||0;if((i||r||o)&&(n=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:p}=s;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),d&&(n+=`rotateY(${d}deg) `),f&&(n+=`skewX(${f}deg) `),p&&(n+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}function _n(t){return[t("x"),t("y")]}const te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xe=["","X","Y","Z"],pc=1e3;let mc=0;function be(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Mo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=Gi(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",M,!(i||r))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Mo(n)}function Co({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=mc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vc),this.nodes.forEach(wc),this.nodes.forEach(Sc),this.nodes.forEach(xc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;M.read(()=>{h=window.innerWidth}),t(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=lr(d,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(Rn)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Mc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=c.getProps(),v=!this.targetLayout||!Eo(this.targetLayout,f),w=!h&&d;if(this.options.layoutRoot||this.resumeFrom||w||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ls(p,"layout"),onPlay:m,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,w)}else h||Rn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ac),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const x=A/1e3;jn(h.x,o.x,x),jn(h.y,o.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Vc(this.relativeTarget,this.relativeTargetOrigin,d,x),T&&hc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=L()),$(T,this.relativeTarget)),m&&(this.animationValues=u,Ju(u,c,this.latestValues,x,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.currentAnimation=mo(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Do(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}$(a,l),mt(a,u),Lt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new dc),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&be("z",o,c,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ln),this.root.sharedNodes.clear()}}}function gc(t){t.updateLayout()}function yc(t){var e;const s=((e=t.resumeFrom)==null?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=s.source!==t.layout.source;r==="size"?_n(h=>{const d=o?s.measuredBox[h]:s.layoutBox[h],f=W(d);d.min=n[h].min,d.max=d.min+f}):Do(r,s.layoutBox,n)&&_n(h=>{const d=o?s.measuredBox[h]:s.layoutBox[h],f=W(n[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=ft();Lt(a,n,s.layoutBox);const l=ft();o?Lt(l,t.applyTransform(i,!0),s.measuredBox):Lt(l,n,s.layoutBox);const c=!Vo(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=L();kt(p,s.layoutBox,d.layoutBox);const m=L();kt(m,n,f.layoutBox),Eo(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function vc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function xc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function bc(t){t.clearSnapshot()}function Ln(t){t.clearMeasurements()}function kn(t){t.isLayoutDirty=!1}function Tc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Rn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function wc(t){t.resolveTargetDelta()}function Sc(t){t.calcProjection()}function Ac(t){t.resetSkewAndRotation()}function Pc(t){t.removeLeadSnapshot()}function jn(t,e,s){t.translate=C(e.translate,0,s),t.scale=C(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Bn(t,e,s,n){t.min=C(e.min,s.min,n),t.max=C(e.max,s.max,n)}function Vc(t,e,s,n){Bn(t.x,e.x,s.x,n),Bn(t.y,e.y,s.y,n)}function Ec(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mc={duration:.45,ease:[.4,0,.1,1]},Fn=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),On=Fn("applewebkit/")&&!Fn("chrome/")?Math.round:I;function In(t){t.min=On(t.min),t.max=On(t.max)}function Cc(t){In(t.x),In(t.y)}function Do(t,e,s){return t==="position"||t==="preserve-aspect"&&!rc(Cn(e),Cn(s),.2)}function Dc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}function _c(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const Lc=Co({attachResizeListener:(t,e)=>_c(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Te={current:void 0},kc=Co({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Te.current){const t=new Lc({});t.mount(window),t.setOptions({layoutScroll:!0}),Te.current=t}return Te.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function _o(t){if(t)return t.options.allowProjection!==!1?t.projection:_o(t.parent)}function Un(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const s=Un(t,e.target.x),n=Un(t,e.target.y);return`${s}% ${n}%`}},Rc={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=ot.parse(t);if(i.length>5)return n;const r=ot.createTransformer(t),o=typeof i[0]!="number"?1:0,a=s.x.scale*e.x,l=s.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},Lo={borderRadius:{...Pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Rc};function Mt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class jc extends st{constructor(e){super(e),ui(Lo)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new kc(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:_o(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&Mt(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=Xe.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function ko(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function vs(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Bc(t){return e=>ko(e)&&t(e,vs(e))}function Rt(t,e,s,n){return re(t,e,Bc(s),n)}function Ro(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const $n=Ro("dragHorizontal"),Nn=Ro("dragVertical");function Fc(t){let e=!1;if(t==="y")e=Nn();else if(t==="x")e=$n();else{const s=$n(),n=Nn();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function We(t){return t.max-t.min}function Oc(t,{min:e,max:s},n){return e!==void 0&&ts&&(t=n?C(s,t,n.max):Math.min(t,s)),t}const ze=.35;function Ic(t,{top:e,left:s,bottom:n,right:i}){return{x:Wn(t.x,s,i),y:Wn(t.y,e,n)}}function Wn(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function Uc(t=ze){return t===!1?t=0:t===!0&&(t=ze),{x:zn(t,"left","right"),y:zn(t,"top","bottom")}}function zn(t,e,s){return{min:Kn(t,e),max:Kn(t,s)}}function Kn(t,e){return typeof t=="number"?t:t[e]||0}function $c(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function Nc(t,e){return{x:Hn(t.x,e.x),y:Hn(t.y,e.y)}}function Hn(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.minn?s=vt(e.min,e.max-n,t.min):n>i&&(s=vt(t.min,t.max-i,e.min)),et(0,1,s)}const Gn=(t,e)=>Math.abs(t-e);function zc(t,e){const s=Gn(t.x,e.x),n=Gn(t.y,e.y);return Math.sqrt(s**2+n**2)}class jo{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Se(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=zc(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=we(d,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Se(h.type==="pointercancel"?this.lastMoveEventInfo:we(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,y),p&&p(h,y)},!ko(e))return;this.dragSnapToOrigin=r,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const o=vs(e),a=we(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=s;u&&u(e,Se(a,this.history)),this.removeListeners=$t(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tt(this.updatePoint)}}function we(t,e){return e?{point:e(t.point)}:t}function Xn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Se({point:t},e){return{point:t,delta:Xn(t,Bo(e)),offset:Xn(t,Kc(e)),velocity:Hc(e,.1)}}function Kc(t){return t[0]}function Bo(t){return t[t.length-1]}function Hc(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=Bo(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>z(e)));)s--;if(!n)return{x:0,y:0};const r=X(i.timestamp-n.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Yn=()=>({min:0,max:0});function Gc(){return{x:Yn(),y:Yn()}}function H(t){return[t("x"),t("y")]}function Xc(t){return!!(j(t)&&t.add)}function qn(t,e){const s=t.getValue("willChange");if(Xc(s))return s.add(e)}function Fo({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Yc(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function qc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Zn(t,e){t.min=t.min+e,t.max=t.max+e}function Zc(t,e){return Fo(Yc(t.getBoundingClientRect(),e))}function Jc(t,e,s){const n=Zc(t,s),{scroll:i}=e;return i&&(Zn(n.x,i.offset.x),Zn(n.y,i.offset.y)),n}function Jn(t){return!Xe.has(t.current)}function Oo({current:t}){return t?t.ownerDocument.defaultView:null}const Qc=new WeakMap;class th{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gc(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!Jn(this.visualElement))return;const n=c=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(vs(c,"page").point)},i=(c,u)=>{const{drag:h,dragPropagation:d,onDragStart:f}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Fc(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),H(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Y.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[m];w&&(y=We(w)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&M.postRender(()=>f(c,u)),qn(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(c,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=eh(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(c,u)},o=(c,u)=>this.stop(c,u),a=()=>H(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)==null?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new jo(e,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Oo(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&M.postRender(()=>r(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!Yt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=Oc(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;s&&Mt(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Ic(i.layoutBox,s):this.constraints=!1,this.elastic=Uc(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&H(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=$c(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!Mt(e))return!1;const n=e,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Jc(n,i.root,this.visualElement.getTransformPagePoint());let o=Nc(i.layout.layoutBox,r);if(s){const a=s(qc(o));this.hasMutatedConstraints=!!a,a&&(o=Fo(a))}return o}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=H(u=>{if(!Yt(u,s,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return qn(this.visualElement,e),n.start(gs(e,n,0,s,this.visualElement,!1))}stopAnimation(){Jn(this.visualElement)&&H(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){H(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){H(s=>{const{drag:n}=this.getProps();if(!Yt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(s);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[s];r.set(e[s]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Mt(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};H(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Wc({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),H(o=>{if(!Yt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(C(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Qc.set(this.visualElement,this);const e=this.visualElement.current,s=Rt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Mt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(n);const o=re(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(H(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),s(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=ze,dragMomentum:a=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Yt(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function eh(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class sh extends st{constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new th(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}}class nh extends st{constructor(e){super(e),ui(Lo)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),te.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(s),this.didUpdate())}}function Qn(t){return(e,s)=>{t&&M.postRender(()=>t(e,s))}}class ih extends st{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(e){this.session=new jo(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Oo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Qn((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:Qn((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&M.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Rt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const oh=[Lu,$u,Wu,Hu,Xu,jc,ih,sh,nh],rh={reducedMotion:"never",transition:void 0,nonce:void 0},[ah]=It("MotionConfig");function lh(){return ah(si(()=>rh))}function le(t){if(t)return t.nodeType===3||t.nodeType===8?le(t.nextSibling):t}const[uh]=It("LazyMotionContext");function ch(t){const e=hr(null),s=fr({}),n=lh(),i=Tr({}),r=uh({features:gt([]),strict:!1}),o=$o();function a(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function l(){return{...t,lazyMotionContext:r,layoutId:a(),transition:t.transition??n.value.transition,layoutGroup:s,motionConfig:n.value,inViewOptions:t.inViewOptions??n.value.inViewOptions,animatePresenceContext:i,initial:i.initial===!1?i.initial:t.initial===!0?void 0:t.initial}}function c(){return{...o,...l()}}const u=new Ar(c(),e);dr(u);function h(){var f;const p=u.type==="svg",m={...o};Object.keys(o).forEach(w=>{j(o[w])&&(m[w]=o[w].get())});let y={...t.style,...p?{}:((f=u.visualElement)==null?void 0:f.latestValues)||u.baseTarget};if(p){const{attrs:w,style:T}=Ur({...u.isMounted()?u.target:u.baseTarget,...y});(T.transform||w.transformOrigin)&&(T.transformOrigin=w.transformOrigin??"50% 50%",delete w.transformOrigin),T.transform&&(T.transformBox=T.transformBox??"fill-box",delete w.transformBox),Object.assign(m,w),y=T}t.drag&&t.dragListener!==!1&&Object.assign(y,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const v=Br(y);return v&&(m.style=v),m}const d=No().proxy;return Wo(()=>{u.beforeMount()}),zo(()=>{u.mount(le(d.$el),c(),dh(d))}),Ko(()=>u.beforeUnmount()),ni(()=>{const f=le(d.$el);f!=null&&f.isConnected||u.unmount()}),Ho(()=>{u.beforeUpdate()}),Go(()=>{u.update(c())}),{getProps:l,getAttrs:h,layoutGroup:s,state:u}}const hh={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function dh(t){var e;const s=((e=le(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const fh=new Map,ph=new Map;function mh(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const gh=["area","img","input"];function yh(t,e,s){var n,i;if(typeof t=="string"&&gh.includes(t))return ii(t,e);if(t==="template"){if(!s.default)return null;const r=mh(s.default()),o=r.findIndex(u=>u.type!==Xo);if(o===-1)return r;const a=r[o];(n=a.props)==null||delete n.ref;const l=a.props?Yo(e,a.props):e;e.class&&((i=a.props)!=null&&i.class)&&delete a.props.class;const c=qo(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return r.length===1?c:(r[o]=c,r)}return null}function ti(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",r=((s=e.features)==null?void 0:s.length)>0?fh:ph;if(n&&(r!=null&&r.has(t)))return r.get(t);const o=dt({inheritAttrs:!1,props:{...hh,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(a,{slots:l}){const{getProps:c,getAttrs:u,state:h}=ch(a);function d(){const f=h.element;if((!(typeof a.as=="object")||a.asChild)&&f){const{style:m}=u();if(m)for(const[y,v]of Object.entries(m))f.style[y]=v}}return()=>{const f=c(),p=u(),m=a.asChild?"template":a.as,y={...e.forwardMotionProps||a.forwardMotionProps?f:{},...p,onVnodeUpdated:d},v=yh(m,y,l);return v!==null?v:ii(m,{...y},l)}}});return n&&(r==null||r.set(t,o)),o}function vh(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>ti(n,{...i,features:t}):ti(s,{features:t})}})}const Z=vh(oh),qt=Z.create("div"),xh={class:"flex flex-col items-center"},bh={class:"text-sm mt-2 text-white/80"},Ae=dt({__name:"time-unit",props:{value:{},label:{}},setup(t){const e=t,s=si(()=>String(e.value).padStart(2,"0"));return(n,i)=>(F(),G("div",xh,[(F(),ee(k(Z).div,{key:t.value,initial:{scale:1.2,opacity:.5},animate:{scale:1,opacity:1},transition:{duration:.3},class:"bg-gradient-to-br from-orange-500 to-orange-600 text-white text-3xl md:text-4xl w-16 h-16 md:w-20 md:h-20 rounded-xl flex items-center justify-center shadow-lg"},{default:N(()=>[Zo(J(s.value),1)]),_:1})),g("span",bh,J(t.label),1)]))}}),Th={class:"relative h-[70vh] min-h-[500px] overflow-hidden"},wh={class:"relative z-10 flex justify-between items-center p-4"},Sh={class:"relative z-10 flex flex-col items-center justify-center h-full px-4 text-center text-white pb-16"},Ah={class:"text-orange-400 mb-4"},Ph={class:"flex gap-4"},Vh=dt({__name:"hero",props:{end:{type:Boolean,default:!1}},setup(t){const e=Ke("activeInfo"),s=gt({hours:0,minutes:0,seconds:0});let n=null;const i=t;function r(){if(!(e!=null&&e.value))return;const o=new Date(e.value.active_end_at).getTime();i.end||(n=setInterval(()=>{const a=Date.now(),l=Math.max(0,o-a);l===0&&n&&(clearInterval(n),n=null);const c=Math.floor(l/(1e3*60*60)),u=Math.floor(l%(1e3*60*60)/(1e3*60)),h=Math.floor(l%(1e3*60)/1e3);s.value={hours:c,minutes:u,seconds:h}},1e3))}return r(),ni(()=>{n&&clearInterval(n)}),(o,a)=>(F(),G("div",Th,[a[5]||(a[5]=g("div",{class:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url('https://images.unsplash.com/photo-1753613648191-4771cf76f034')"}},[g("div",{class:"absolute inset-0 bg-gradient-to-b from-black/50 via-black/40 to-black/60"})],-1)),g("div",wh,[V(k(qt),{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},class:"text-white text-xl"},{default:N(()=>[...a[0]||(a[0]=[g("span",{class:"bg-gradient-to-r from-orange-400 to-orange-500 px-3 py-1 rounded-lg"}," 有光自习室 ",-1)])]),_:1})]),g("div",Sh,[V(k(qt),{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2}},{default:N(()=>[...a[1]||(a[1]=[g("h1",{class:"text-4xl md:text-5xl mb-4 text-white"},"专业老师在线陪读",-1),g("p",{class:"text-xl md:text-2xl mb-8 text-white/90"},"让孩子高效学习,专注成长",-1)])]),_:1}),V(k(qt),{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.4},class:"bg-white/10 backdrop-blur-md rounded-2xl p-6 border border-white/20 shadow-2xl"},{default:N(()=>[g("p",Ah,J(t.end?"活动已结束":"限时优惠倒计时"),1),g("div",Ph,[V(Ae,{value:s.value.hours,label:"时"},null,8,["value"]),a[2]||(a[2]=g("span",{class:"text-3xl"},":",-1)),V(Ae,{value:s.value.minutes,label:"分"},null,8,["value"]),a[3]||(a[3]=g("span",{class:"text-3xl"},":",-1)),V(Ae,{value:s.value.seconds,label:"秒"},null,8,["value"])])]),_:1}),V(k(qt),{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},class:"mt-8"},{default:N(()=>[...a[4]||(a[4]=[g("div",{class:"bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-3 rounded-full inline-block shadow-lg"},[g("span",{class:"text-2xl"},"课时翻倍 限时抢购")],-1)])]),_:1})])]))}}),Vt=ri("check",!0,function(t){return V("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[V("path",{d:"M43 11L16.875 37L5 25.1818",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Zt=ri("user",!1,function(t){return V("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[V("circle",{cx:"24",cy:"12",r:"8",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),V("path",{d:"M42 44C42 34.0589 33.9411 26 24 26C14.0589 26 6 34.0589 6 44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Eh={class:"py-12 px-4 bg-gradient-to-b from-white to-orange-50"},Mh={class:"max-w-5xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-6"},Ch={class:"flex items-start gap-4"},Dh={class:"bg-gradient-to-br from-orange-400 to-orange-600 text-white p-3 rounded-xl flex-shrink-0"},_h={class:"flex-1"},Lh={class:"text-xl mb-2 text-gray-800"},kh={class:"text-gray-600"},Rh=dt({__name:"course-highlights",setup(t){const e=[{icon:Zt,title:"专业讲师陪伴",description:"资深教师在线督导,实时答疑解惑"},{icon:Zt,title:"高效学习氛围",description:"沉浸式学习环境,远离干扰提升效率"},{icon:Zt,title:"专注力提升",description:"科学时间管理,培养良好学习习惯"},{icon:Zt,title:"同伴互助学习",description:"与优秀学员共同进步,激发学习动力"}];return(s,n)=>(F(),G("div",Eh,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-10"},{default:N(()=>[...n[0]||(n[0]=[g("h2",{class:"text-3xl md:text-4xl mb-3 text-gray-800"},"课程核心优势",-1),g("p",{class:"text-gray-600"},"四大亮点助力孩子高效学习",-1)])]),_:1}),g("div",Mh,[(F(),G(Pe,null,Ve(e,(i,r)=>V(k(Z).div,{key:r,initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:r*.1},"while-hover":{scale:1.05,y:-5},class:"bg-white rounded-2xl p-6 shadow-lg hover:shadow-xl transition-all border border-orange-100"},{default:N(()=>[g("div",Ch,[g("div",Dh,[(F(),ee(Jo(i.icon),{size:28}))]),g("div",_h,[g("h3",Lh,J(i.title),1),g("p",kh,J(i.description),1)])])]),_:2},1032,["transition"])),64))])]))}}),jh={class:"py-16 px-4 bg-gradient-to-br from-orange-500 to-orange-600 text-white relative overflow-hidden"},Bh={class:"max-w-4xl mx-auto relative z-10"},Fh={class:"inline-flex items-center gap-2 bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full mb-4"},Oh={class:"grid grid-cols-1 md:grid-cols-2 gap-6 items-center"},Ih={class:"text-center"},Uh={class:"space-y-2"},$h={class:"flex items-center justify-center gap-2 text-white/80"},Nh={class:"flex items-center justify-center gap-2 text-white/80"},Wh={class:"text-center"},zh={class:"text-5xl mb-1"},Kh={class:"text-orange-600"},Hh={class:"space-y-3"},Gh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Xh={class:"bg-orange-500 text-white rounded-full p-1"},Yh={class:"text-lg"},qh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Zh={class:"bg-orange-500 text-white rounded-full p-1"},Jh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Qh={class:"bg-orange-500 text-white rounded-full p-1"},td=dt({__name:"price-section",setup(t){const e=Ke("activeInfo");return(s,n)=>(F(),G("div",jh,[n[12]||(n[12]=g("div",{class:"absolute inset-0 opacity-10"},[g("div",{class:"absolute top-10 left-10 w-32 h-32 bg-white rounded-full blur-3xl"}),g("div",{class:"absolute bottom-10 right-10 w-40 h-40 bg-white rounded-full blur-3xl"})],-1)),g("div",Bh,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-12"},{default:N(()=>[g("div",Fh,[V(k(nr),{size:20}),n[0]||(n[0]=g("span",null,"限时特惠",-1))]),n[1]||(n[1]=g("h2",{class:"text-3xl md:text-4xl mb-3"},"超值优惠方案",-1)),n[2]||(n[2]=g("p",{class:"text-white/90 text-lg"},"现在报名立享课时翻倍",-1))]),_:1}),g("div",Oh,[V(k(Z).div,{initial:{opacity:0,x:-30},"while-in-view":{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},class:"bg-white/10 backdrop-blur-md rounded-2xl p-8 border border-white/20"},{default:N(()=>[g("div",Ih,[n[5]||(n[5]=g("p",{class:"text-white/70 mb-2"},"原价套餐",-1)),n[6]||(n[6]=g("div",{class:"text-4xl mb-4"},[g("span",{class:"line-through opacity-60"},"¥200")],-1)),g("div",Uh,[g("div",$h,[V(k(Vt),{size:18}),n[3]||(n[3]=g("span",null,"10节课时",-1))]),g("div",Nh,[V(k(Vt),{size:18}),n[4]||(n[4]=g("span",null,"在线自习陪伴",-1))])])])]),_:1}),V(k(Z).div,{initial:{opacity:0,x:30},"while-in-view":{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.4},class:"bg-white text-gray-800 rounded-2xl p-8 shadow-2xl relative overflow-hidden"},{default:N(()=>[n[11]||(n[11]=g("div",{class:"absolute -top-1 -right-1"},[g("div",{class:"bg-gradient-to-br from-yellow-400 to-orange-500 text-white px-6 py-2 rounded-bl-2xl rounded-tr-2xl shadow-lg"},[g("span",{class:"text-sm"},"限时抢购")])],-1)),g("div",Wh,[n[9]||(n[9]=g("p",{class:"text-orange-600 mb-2"},"现在购买",-1)),g("div",zh,[g("span",Kh,"¥"+J(k(e).order_amount),1)]),n[10]||(n[10]=g("p",{class:"text-gray-500 mb-6"},"享双倍课时",-1)),g("div",Hh,[g("div",Gh,[g("div",Xh,[V(k(Vt),{size:18})]),g("span",Yh,J(k(e).course_num)+"节课时",1)]),g("div",qh,[g("div",Zh,[V(k(Vt),{size:18})]),n[7]||(n[7]=g("span",{class:"text-lg"},"专业老师陪读",-1))]),g("div",Jh,[g("div",Qh,[V(k(Vt),{size:18})]),n[8]||(n[8]=g("span",{class:"text-lg"},"实时答疑辅导",-1))])])])]),_:1})])])]))}}),ed={class:"py-16 px-4 bg-white"},sd={class:"max-w-6xl mx-auto"},nd={class:"md:hidden overflow-x-auto pb-4 -mx-4 px-4"},id={class:"flex gap-4",style:{width:"max-content"}},od={class:"flex items-center gap-4 mb-4"},rd={class:"w-12 h-12 rounded-full overflow-hidden border-2 border-orange-300"},ad=["src","alt"],ld={class:"flex-1"},ud={class:"text-gray-800"},cd={class:"flex gap-1"},hd={class:"text-gray-700 leading-relaxed"},dd=dt({__name:"reviews",setup(t){const e=gt([{name:"李妈妈",avatar:"https://images.unsplash.com/photo-1561065533-316e3142d586?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx5b3VuZyUyMHN0dWRlbnQlMjBwb3J0cmFpdHxlbnwxfHx8fDE3NjExOTU1NzZ8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"孩子在有光自习室学习后,专注力明显提升,作业效率也提高了很多!"},{name:"王同学",avatar:"https://images.unsplash.com/photo-1514355315815-2b64b0216b14?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxhc2lhbiUyMHN0dWRlbnQlMjBoYXBweXxlbnwxfHx8fDE3NjEyMjc3MzR8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"老师很负责,遇到问题可以随时提问,学习氛围特别好,推荐!"},{name:"张爸爸",avatar:"https://images.unsplash.com/photo-1585432959389-67f059cf1e41?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx0ZWVuYWdlciUyMHN0dWR5aW5nfGVufDF8fHx8MTc2MTI3MzgwMnww&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"性价比超高,20节课才200元,老师专业又耐心,孩子很喜欢!"},{name:"陈同学",avatar:"https://images.unsplash.com/photo-1561065533-316e3142d586?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx5b3VuZyUyMHN0dWRlbnQlMjBwb3J0cmFpdHxlbnwxfHx8fDE3NjExOTU1NzZ8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"和优秀的同学一起学习,感觉自己也变得更加努力了,很有动力!"}]);return(s,n)=>(F(),G("div",ed,[g("div",sd,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-10"},{default:N(()=>[...n[0]||(n[0]=[g("h2",{class:"text-3xl md:text-4xl mb-3 text-gray-800"},"学员真实反馈",-1),g("p",{class:"text-gray-600"},"数千家长和学员的共同选择",-1)])]),_:1}),g("div",nd,[g("div",id,[(F(!0),G(Pe,null,Ve(e.value,(i,r)=>(F(),ee(k(Z).div,{key:r,initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:r*.1},class:"w-[300px] flex-shrink-0 bg-gradient-to-br from-orange-50 to-white rounded-2xl p-6 shadow-lg border border-orange-100 hover:shadow-xl transition-shadow"},{default:N(()=>[g("div",od,[g("div",rd,[g("img",{src:i.avatar,alt:i.name,class:"w-full h-full object-cover"},null,8,ad)]),g("div",ld,[g("h4",ud,J(i.name),1),g("div",cd,[(F(!0),G(Pe,null,Ve(i.rating,o=>(F(),ee(k(ir),{theme:"filled",key:o,size:"14",class:"fill-orange-400 text-orange-400"}))),128))])])]),g("p",hd,J(i.comment),1)]),_:2},1032,["transition"]))),128))])]),n[1]||(n[1]=g("div",{class:"md:hidden text-center mt-4 text-gray-400 text-sm"}," ← 滑动查看更多评价 → ",-1))])]))}});function fd(){return oi.get("/yg/active_info")}function pd(){return oi.post("/yg/order/create")}function md(t){return new Promise(e=>{Qo.chooseWXPay({timestamp:t.timestamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(){e(!0)},cancel:function(s){console.log(s),e(!1)}})})}const gd={key:0,class:"min-h-screen bg-white"},Ad=dt({__name:"index",setup(t){const e=sr(),s=gt({}),n=gt(!1),i=gt(!1);(async()=>{let a=await fd();s.value=a,n.value=!0;const l=new Date(s.value.active_end_at).getTime();(s.value.active_status!=1||l<=Date.now())&&(i.value=!0)})(),ei("activeInfo",s);const o=async()=>{tr({duration:0,forbidClick:!0,message:"支付中"});let a=await pd();md(a).then(l=>{l&&(er("支付成功"),e.push({path:"/pay_success",query:s.value}))})};return(a,l)=>n.value?(F(),G("div",gd,[V(Vh,{end:i.value},null,8,["end"]),V(Rh),V(td),V(dd),l[1]||(l[1]=g("div",{class:"h-24"},null,-1)),i.value?Ps("",!0):(F(),G("div",{key:0,onClick:o,class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-2xl z-50 px-4 py-3 safe-area-bottom"},[...l[0]||(l[0]=[g("div",{class:"flex-1 flex items-center justify-center gap-2 bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-4 rounded-full hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg"},[g("span",{class:"text-lg"},"立即参与")],-1)])]))])):Ps("",!0)}});export{Ad as default};
+import{i as Ke,p as ei,w as Uo,c as si,r as gt,u as $o,g as No,o as Wo,a as zo,b as Ko,d as ni,e as Ho,f as Go,h as dt,j as ii,C as Xo,m as Yo,k as qo,l as G,n as F,q as ee,s as g,t as N,v as Zo,x as J,y as k,z as V,F as Pe,A as Ve,B as Jo,D as oi,E as Qo,G as Ps,H as tr,I as er,J as sr}from"./index-B8OdjfL2.js";import{I as ri}from"./index-DDdLkfGc.js";import{T as nr}from"./Time-B67FoyEh.js";import{S as ir}from"./Star-DMjnhR3V.js";const Ht=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function or(t,e){let s=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const p=d&&i?s:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[s,n]=[n,s],s.forEach(l),s.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const Q={},rr=40;function ai(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=Ht.reduce((T,A)=>(T[A]=or(r),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:p}=o,m=()=>{const T=Q.useManualTiming?i.timestamp:performance.now();s=!1,Q.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(T-i.timestamp,rr),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(m))},y=()=>{s=!0,n=!0,i.isProcessing||t(m)};return{schedule:Ht.reduce((T,A)=>{const x=o[A];return T[A]=(P,D=!1,S=!1)=>(s||y(),x.schedule(P,D,S)),T},{}),cancel:T=>{for(let A=0;At,{schedule:M,cancel:tt,state:B,steps:he}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0);let Jt;function ar(){Jt=void 0}const O={now:()=>(Jt===void 0&&O.set(B.isProcessing||Q.useManualTiming?B.timestamp:performance.now()),Jt),set:t=>{Jt=t,queueMicrotask(ar)}},z=t=>t*1e3,X=t=>t/1e3;function lr(t,e){const s=O.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(tt(n),t(r-e))};return M.setup(n,!0),()=>tt(n)}const li=t=>e=>typeof e=="string"&&e.startsWith(t),He=li("--"),ur=li("var(--"),Ge=t=>ur(t)?cr.test(t.split("/*")[0].trim()):!1,cr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,jt={};function ui(t){for(const e in t)jt[e]=t[e],He(e)&&(jt[e].isCSSVariable=!0)}function It(t,e){const s=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(s);return[o=>{const a=Ke(n,o);if(a===void 0)throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`);return a},o=>(ei(n,o),o)]}const[hr,dr]=It("Motion"),[fr]=It("LayoutGroup");function Vs(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class st{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}function Ct(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const r=Ct(i,e,s);return r?{...n,...r}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function pr(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!mr(t,e):t!==e}function mr(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;nt;function yr(t){return typeof t=="number"}const vr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],xr=new Set(vr);function ci(t){return xr.has(t)}class br{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(o=>new o(e));const r=this.features;Uo(n.features,o=>{o.forEach(a=>{if(!i.includes(a)){i.push(a);const l=new a(e);r.push(l),e.isMounted()&&(l.beforeMount(),l.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const Xe=new WeakMap,[Tr]=It("AnimatePresenceContext");function wr(t){return typeof t=="string"||t===!1||Array.isArray(t)}const hi=new WeakMap;let Sr=0;class Ar{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=I,this.id=`motion-state-${Sr++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this);const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new br(this),this.type=ci(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return wr(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){var s;const n=this.options.custom??((s=this.options.animatePresenceContext)==null?void 0:s.custom);this.baseTarget=e.reduce((i,r)=>({...i,...Ct(this.options[r]||this.context[r],this.options.variants,n)}),{}),this.target={}}updateOptions(e){var s;this.options=e,(s=this.visualElement)==null||s.update({...this.options,whileTap:this.options.whilePress},{isPresent:!Xe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i,r;this.element=e,this.updateOptions(s),this.options.layoutId&&((i=this.visualElement.projection.getStack())==null?void 0:i.members.length)>0,this.featureManager.mount(),!n&&this.options.animate&&((r=this.startAnimation)==null||r.call(this))}clearAnimation(){var e,s;this.currentProcess&&tt(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=M.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var s;const n=this.options.layoutId&&((s=this.visualElement.projection)==null?void 0:s.getStack().lead)===this.visualElement.projection&&this.visualElement.projection.isProjecting(),i=()=>{var r,o,a;e&&Array.from(this.children).reverse().forEach(this.unmountChild),(o=(r=this.parent)==null?void 0:r.children)==null||o.delete(this),hi.delete(this.element),this.featureManager.unmount(),(a=this.visualElement)==null||a.unmount(),this.clearAnimation()};n?Promise.resolve().then(()=>{i()}):i()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,s,!1)}),n&&this.animateUpdates({isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const ht=new WeakMap;function Ms(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const Cs={syntax:"",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},Pr={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:Cs,scale:{syntax:"",initialValue:1,toDefaultUnit:gr},skew:Cs},Vr=["translate","scale","rotate","skew"],Er=["","X","Y","Z"],Ye=new Map,se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Vr.forEach(t=>{Er.forEach(e=>{se.push(t+e),Ye.set(t+e,Pr[t])})});const Mr=new Set(se),Cr=t=>Mr.has(t),Ds={x:"translateX",y:"translateY",z:"translateZ"};function Dr([t],[e]){return se.indexOf(t)-se.indexOf(e)}function _r(t,[e,s]){return`${t} ${e}(${s})`}function Lr(t){return t.sort(Dr).reduce(_r,"").trim()}const _s={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=Ut("deg"),Y=Ut("%"),b=Ut("px"),kr=Ut("vh"),Rr=Ut("vw"),Ls={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(t*100)},j=t=>!!(t&&t.getVelocity),jr={get:(t,e)=>{let s=Es(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=Ye.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{Es(e)?t.style.setProperty(e,s):t.style[e]=s}};function Br(t){var e;const s={},n=[];for(let i in t){let r=t[i];r=j(r)?r.get():r,Cr(i)&&i in Ds&&(i=Ds[i]);let o=Array.isArray(r)?r[0]:r;const a=Ye.get(i);a?(o=yr(r)?(e=a.toDefaultUnit)==null?void 0:e.call(a,r):r,n.push([i,o])):s[i]=o}return n.length&&(s.transform=Lr(n)),Object.keys(s).length===0?null:s}const Fr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Or(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ir(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=b.transform(-n);const i=b.transform(e),r=b.transform(s);t["stroke-dasharray"]=`${i} ${r}`}function Ur(t){const e={},s={};for(const n in t){const i=Or(n);if(i in Fr){const r=t[n];e[i]=j(r)?r.get():r}else s[n]=t[n]}return e["path-length"]!==void 0&&Ir(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attrs:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ks=t=>typeof t<"u";function $r({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Nr(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Wr(t,e){return $r(Nr(t.getBoundingClientRect(),e))}const Rs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ee={};for(const t in Rs)Ee[t]={isEnabled:e=>Rs[t].some(s=>!!e[s])};const js=()=>({translate:0,scale:1,origin:0,originPoint:0}),ft=()=>({x:js(),y:js()}),Bs=()=>({min:0,max:0}),L=()=>({x:Bs(),y:Bs()}),zr=typeof window<"u",ne={current:null},di={current:!1};function Kr(){if(di.current=!0,!!zr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ne.current=t.matches;t.addEventListener("change",e),e()}else ne.current=!1}function Hr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Gr(t){return typeof t=="string"||Array.isArray(t)}const Xr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yr=["initial",...Xr];function fi(t){return Hr(t.animate)||Yr.some(e=>Gr(t[e]))}function qr(t){return!!(fi(t)||t.variants)}function qe(t,e){t.indexOf(e)===-1&&t.push(e)}function ue(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class Ze{constructor(){this.subscriptions=[]}add(e){return qe(this.subscriptions,e),()=>ue(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let r=0;r!isNaN(parseFloat(t));class Jr{constructor(e,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var i;const r=O.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Zr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new Ze);const n=this.events[e].add(s);return e==="change"?()=>{n(),M.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Fs)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Fs);return pi(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,s;(e=this.dependents)==null||e.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(t,e){return new Jr(t,e)}function Qr(t,e,s){for(const n in e){const i=e[n],r=s[n];if(j(i))t.addValue(n,i);else if(j(r))t.addValue(n,yt(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,yt(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function Os(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function mi(t,e,s,n){if(typeof e=="function"){const[i,r]=Os(n);e=e(s!==void 0?s:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Os(n);e=e(s!==void 0?s:t.custom,i,r)}return e}function ta(t){for(let e=1;et*180/Math.PI,Me=t=>{const e=at(Math.atan2(t[1],t[0]));return Ce(e)},ea={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Me,rotateZ:Me,skewX:t=>at(Math.atan(t[1])),skewY:t=>at(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ce=t=>(t=t%360,t<0&&(t+=360),t),Is=Me,Us=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),$s=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),sa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Us,scaleY:$s,scale:t=>(Us(t)+$s(t))/2,rotateX:t=>Ce(at(Math.atan2(t[6],t[5]))),rotateY:t=>Ce(at(Math.atan2(-t[2],t[0]))),rotateZ:Is,rotate:Is,skewX:t=>at(Math.atan(t[4])),skewY:t=>at(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function De(t){return t.includes("scale")?1:0}function _e(t,e){if(!t||t==="none")return De(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=sa,i=s;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ea,i=a}if(!i)return De(e);const r=n[e],o=i[1].split(",").map(ia);return typeof r=="function"?r(o):o[r]}const na=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return _e(s,e)};function ia(t){return parseFloat(t.trim())}const xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(xt),et=(t,e,s)=>s>e?e:stypeof t=="number",parse:parseFloat,transform:t=>t},Bt={...Tt,transform:t=>et(0,1,t)},Gt={...Tt,default:1},Ns=t=>t===Tt||t===b,oa=new Set(["x","y","z"]),ra=xt.filter(t=>!oa.has(t));function aa(t){const e=[];return ra.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ut={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>_e(e,"x"),y:(t,{transform:e})=>_e(e,"y")};ut.translateX=ut.x;ut.translateY=ut.y;const ct=new Set;let Le=!1,ke=!1,Re=!1;function gi(){if(ke){const t=Array.from(ct).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=aa(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([r,o])=>{var a;(a=n.getValue(r))==null||a.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}ke=!1,Le=!1,ct.forEach(t=>t.complete(Re)),ct.clear()}function yi(){ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ke=!0)})}function la(){Re=!0,yi(),gi(),Re=!1}class Je{constructor(e,s,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ct.add(this),Le||(Le=!0,M.read(yi),M.resolveKeyframes(gi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&s){const a=n.readValue(s,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ta(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ct.delete(this)}cancel(){this.state==="scheduled"&&(ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),xi=t=>/^0[^.\s]+$/u.test(t),Dt=t=>Math.round(t*1e5)/1e5,Qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ua(t){return t==null}const ca=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ts=(t,e)=>s=>!!(typeof s=="string"&&ca.test(s)&&s.startsWith(t)||e&&!ua(s)&&Object.prototype.hasOwnProperty.call(s,e)),bi=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,r,o,a]=n.match(Qe);return{[t]:parseFloat(i),[e]:parseFloat(r),[s]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ha=t=>et(0,255,t),de={...Tt,transform:t=>Math.round(ha(t))},lt={test:ts("rgb","red"),parse:bi("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(s)+", "+Dt(Bt.transform(n))+")"};function da(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const je={test:ts("#"),parse:da,transform:lt.transform},pt={test:ts("hsl","hue"),parse:bi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+Y.transform(Dt(e))+", "+Y.transform(Dt(s))+", "+Dt(Bt.transform(n))+")"},R={test:t=>lt.test(t)||je.test(t)||pt.test(t),parse:t=>lt.test(t)?lt.parse(t):pt.test(t)?pt.parse(t):je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?lt.transform(t):pt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pa(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Qe))==null?void 0:e.length)||0)+(((s=t.match(fa))==null?void 0:s.length)||0)>0}const Ti="number",wi="color",ma="var",ga="var(",Ws="${}",ya=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ft(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ya,l=>(R.test(l)?(n.color.push(r),i.push(wi),s.push(R.parse(l))):l.startsWith(ga)?(n.var.push(r),i.push(ma),s.push(l)):(n.number.push(r),i.push(Ti),s.push(parseFloat(l))),++r,Ws)).split(Ws);return{values:s,split:a,indexes:n,types:i}}function Si(t){return Ft(t).values}function Ai(t){const{split:e,types:s}=Ft(t),n=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function xa(t){const e=Si(t);return Ai(t)(e.map(va))}const ot={test:pa,parse:Si,createTransformer:Ai,getAnimatableNone:xa},ba={test:t=>t==="auto",parse:t=>t},Pi=t=>e=>e.test(t),Vi=[Tt,b,Y,it,Rr,kr,ba],zs=t=>Vi.find(Pi(t)),Ta=[...Vi,R,ot],wa=t=>Ta.find(Pi(t)),Sa=new Set(["brightness","contrast","saturate","opacity"]);function Aa(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(Qe)||[];if(!n)return t;const i=s.replace(n,"");let r=Sa.has(e)?1:0;return n!==s&&(r*=100),e+"("+r+i+")"}const Pa=/\b([a-z-]*)\(.*?\)/gu,Be={...ot,getAnimatableNone:t=>{const e=t.match(Pa);return e?e.map(Aa).join(" "):t}},Ks={...Tt,transform:Math.round},Va={rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:it,skewX:it,skewY:it,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Bt,originX:Ls,originY:Ls,originZ:b},es={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,radius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,backgroundPositionX:b,backgroundPositionY:b,...Va,zIndex:Ks,fillOpacity:Bt,strokeOpacity:Bt,numOctaves:Ks},Ea={...es,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Be,WebkitFilter:Be},Ei=t=>Ea[t];function Mi(t,e){let s=Ei(t);return s!==Be&&(s=ot),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const{schedule:Ci}=ai(queueMicrotask,!0),Hs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Di{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Je,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=O.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),di.current||Kr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ne.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const n=this.features[s];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=bt.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&M.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ee){const s=Ee[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;ns.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=yt(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(vi(n)||xi(n))?n=parseFloat(n):!wa(n)&&ot.test(s)&&(n=Mi(e,s)),this.setBaseTarget(e,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=mi(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!j(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new Ze),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}scheduleRenderMicrotask(){Ci.render(this.render)}}const _i=new Set(["width","height","top","left","right","bottom",...xt]);let ss=()=>{};const Ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ca(t){const e=Ma.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}function Li(t,e,s=1){const[n,i]=Ca(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const o=r.trim();return vi(o)?parseFloat(o):o}return Ge(i)?Li(i,e,s+1):i}function Da(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xi(t):!0}const _a=new Set(["auto","none","0"]);function La(t,e,s){let n=0,i;for(;n{s.getValue(l).set(c)}),this.resolveNoneKeyframes()}}class ki extends Di{constructor(){super(...arguments),this.KeyframeResolver=ka}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const Ri=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ra={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ja=xt.length;function Ba(t,e,s){let n="",i=!0;for(let r=0;rt.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ua={offset:"strokeDashoffset",array:"strokeDasharray"};function $a(t,e,s=1,n=0,i=!0){t.pathLength=1;const r=i?Ia:Ua;t[r.offset]=b.transform(-n);const o=b.transform(e),a=b.transform(s);t[r.array]=`${o} ${a}`}function Na(t,{attrX:e,attrY:s,attrScale:n,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(ji(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&$a(h,i,r,o,!1)}const Ii=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Wa=t=>typeof t=="string"&&t.toLowerCase()==="svg";function za(t,e,s,n){Bi(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(Ii.has(i)?i:ns(i),e.attrs[i])}function Ka(t,e,s){const n=Fi(t,e,s);for(const i in t)if(j(t[i])||j(e[i])){const r=xt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[r]=t[i]}return n}class Ui extends ki{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(bt.has(s)){const n=Ei(s);return n&&n.default||0}return s=Ii.has(s)?s:ns(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Ka(e,s,n)}build(e,s,n){Na(e,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,s,n,i){za(e,s,n,i)}mount(e){this.isSVGTag=Wa(e.tagName),super.mount(e)}}function Ha(t,e){return ci(t)?new Ui(e):new Oi(e)}function Ga(t,e,s,n=0,i=1){const r=Array.from(t),o=r.indexOf(e),a=t.size,l=(a-1)*n,c=typeof s=="function";return o===r.length-1&&(e.parent.enteringChildren=void 0),c?s(o,a):i===1?o*n:l-o*n}function is(t){return typeof t=="object"&&!Array.isArray(t)}function os(t,e,s){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;const i=(s==null?void 0:s[t])??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function $i(t,e,s,n){return typeof t=="string"&&is(e)?os(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Xa(t,e,s){return t*(e+1)}function Gs(t,e,s,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:e.startsWith("<")?Math.max(0,s+parseFloat(e.slice(1))):n.get(e)??t}const C=(t,e,s)=>t+(e-t)*s,Ya=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},Ni=t=>Array.isArray(t)&&typeof t[0]!="number";function Wi(t,e){return Ni(t)?t[Ya(0,t.length,e)]:t}function qa(t,e,s){for(let n=0;ne&&i.at{const n=e-t;return n===0?1:(s-t)/n};function zi(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=vt(0,e,n);t.push(C(s,1,i))}}function Ki(t){const e=[0];return zi(e,t.length-1),e}const ie=2e4;function rs(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e=ie?1/0:e}function Hi(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(rs(n),ie);return{type:"keyframes",ease:r=>n.next(i*r).value/e,duration:X(i)}}function as(t){return typeof t=="function"&&"applyToOptions"in t}const tl="easeInOut";function el(t,{defaultTransition:e={},...s}={},n,i){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,h=0,d=0;for(let f=0;f{const E=sl(A),{delay:U=0,times:K=Ki(E),type:ce="keyframes",repeat:Wt,repeatType:yd,repeatDelay:vd=0,...Io}=x;let{ease:nt=e.ease||"easeOut",duration:q}=x;const xs=typeof U=="function"?U(D,S):U,bs=E.length,Ts=as(ce)?ce:i==null?void 0:i[ce||"keyframes"];if(bs<=2&&Ts){let wt=100;if(bs===2&&ol(E)){const St=E[1]-E[0];wt=Math.abs(St)}const zt={...Io};q!==void 0&&(zt.duration=z(q));const Kt=Hi(zt,wt,Ts);nt=Kt.ease,q=Kt.duration}q??(q=r);const ws=h+xs;K.length===1&&K[0]===0&&(K[1]=1);const Ss=K.length-E.length;if(Ss>0&&zi(K,Ss),E.length===1&&E.unshift(null),Wt){q=Xa(q,Wt);const wt=[...E],zt=[...K];nt=Array.isArray(nt)?[...nt]:[nt];const Kt=[...nt];for(let St=0;St{for(const m in f){const y=f[m];y.sort(Qa);const v=[],w=[],T=[];for(let x=0;xtypeof t=="number",ol=t=>t.every(il),rl=t=>Array.isArray(t);function al(t,e,s){const n=t.getProps();return mi(n,e,n.custom,t)}function ll(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,yt(s))}function ul(t){return rl(t)?t[t.length-1]||0:t}function cl(t,e){const s=al(t,e);let{transitionEnd:n={},transition:i={},...r}=s||{};r={...r,...n};for(const o in r){const a=ul(r[o]);ll(t,o,a)}}function hl(t){return!!(j(t)&&t.add)}function dl(t,e){const s=t.getValue("willChange");if(hl(s))return s.add(e);if(!s&&Q.WillChange){const n=new Q.WillChange("auto");t.addValue("willChange",n),n.add(e)}}const fl="framerAppearId",pl="data-"+ns(fl);function Gi(t){return t.props[pl]}const ml=t=>t!==null;function gl(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(ml),r=e&&s!=="loop"&&e%2===1?0:i.length-1;return i[r]}const yl={type:"spring",stiffness:500,damping:25,restSpeed:10},vl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xl={type:"keyframes",duration:.8},bl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tl=(t,{keyframes:e})=>e.length>2?xl:bt.has(t)?t.startsWith("scale")?vl(e[1]):yl:bl;function wl({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function ls(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function Fe(t){t.duration=0,t.type}function fe(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function Sl({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,r=0,o=0;if(!e)i=r=o=s;else{const a=s<.5?s*(1+e):s+e-s*e,l=2*s-a;i=fe(l,a,t+1/3),r=fe(l,a,t),o=fe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:n}}function oe(t,e){return s=>s>0?e:t}const pe=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Al=[je,lt,pt],Pl=t=>Al.find(e=>e.test(t));function qs(t){const e=Pl(t);if(!e)return!1;let s=e.parse(t);return e===pt&&(s=Sl(s)),s}const Zs=(t,e)=>{const s=qs(t),n=qs(e);if(!s||!n)return oe(t,e);const i={...s};return r=>(i.red=pe(s.red,n.red,r),i.green=pe(s.green,n.green,r),i.blue=pe(s.blue,n.blue,r),i.alpha=C(s.alpha,n.alpha,r),lt.transform(i))},Oe=new Set(["none","hidden"]);function Vl(t,e){return Oe.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}const El=(t,e)=>s=>e(t(s)),$t=(...t)=>t.reduce(El);function Ml(t,e){return s=>C(t,e,s)}function us(t){return typeof t=="number"?Ml:typeof t=="string"?Ge(t)?oe:R.test(t)?Zs:_l:Array.isArray(t)?Xi:typeof t=="object"?R.test(t)?Zs:Cl:oe}function Xi(t,e){const s=[...t],n=s.length,i=t.map((r,o)=>us(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in n)s[r]=n[r](i);return s}}function Dl(t,e){const s=[],n={color:0,var:0,number:0};for(let i=0;i{const s=ot.createTransformer(e),n=Ft(t),i=Ft(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Oe.has(t)&&!i.values.length||Oe.has(e)&&!n.values.length?Vl(t,e):$t(Xi(Dl(n,i),i.values),s):oe(t,e)};function Yi(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?C(t,e,s):us(t)(t,e)}const Ll=t=>{const e=({timestamp:s})=>t(s);return{start:(s=!0)=>M.update(e,s),stop:()=>tt(e),now:()=>B.isProcessing?B.timestamp:O.now()}},qi=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let r=0;r{const u=c*o,h=u*t,d=u-s,f=Ie(c,o),p=Math.exp(-h);return me-d/f*p},r=c=>{const h=c*o*t,d=h*s+s,f=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=Ie(Math.pow(c,2),o);return(-i(c)+me>0?-1:1)*((d-f)*p)/m}):(i=c=>{const u=Math.exp(-c*t),h=(c-s)*t+1;return-me+u*h},r=c=>{const u=Math.exp(-c*t),h=(s-c)*(t*t);return u*h});const a=5/t,l=Bl(i,r,a);if(t=z(t),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const jl=12;function Bl(t,e,s){let n=s;for(let i=1;it[s]!==void 0)}function Il(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!Js(t,Ol)&&Js(t,Fl))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,r=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:_.mass,stiffness:i,damping:r}}else{const s=Rl(t);e={...e,...s,mass:_.mass},e.isResolvedFromDuration=!0}return e}function Ot(t=_.visualDuration,e=_.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=Il({...s,velocity:-X(s.velocity||0)}),p=d||0,m=c/(2*Math.sqrt(l*u)),y=o-r,v=X(Math.sqrt(l/u)),w=Math.abs(y)<5;n||(n=w?_.restSpeed.granular:_.restSpeed.default),i||(i=w?_.restDelta.granular:_.restDelta.default);let T;if(m<1){const x=Ie(v,m);T=P=>{const D=Math.exp(-m*v*P);return o-D*((p+m*v*y)/x*Math.sin(x*P)+y*Math.cos(x*P))}}else if(m===1)T=x=>o-Math.exp(-v*x)*(y+(p+v*y)*x);else{const x=v*Math.sqrt(m*m-1);T=P=>{const D=Math.exp(-m*v*P),S=Math.min(x*P,300);return o-D*((p+m*v*y)*Math.sinh(S)+x*y*Math.cosh(S))/x}}const A={calculatedDuration:f&&h||null,next:x=>{const P=T(x);if(f)a.done=x>=h;else{let D=x===0?p:0;m<1&&(D=x===0?z(p):Zi(T,x,P));const S=Math.abs(D)<=n,E=Math.abs(o-P)<=i;a.done=S&&E}return a.value=a.done?o:P,a},toString:()=>{const x=Math.min(rs(A),ie),P=qi(D=>A.next(x*D).value,x,30);return x+"ms "+P},toTransition:()=>{}};return A}Ot.applyToOptions=t=>{const e=Hi(t,100,Ot);return t.ease=e.ease,t.duration=z(e.duration),t.type="keyframes",t};function Ue({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=S=>a!==void 0&&Sl,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)-m*Math.exp(-S/n),T=S=>v+w(S),A=S=>{const E=w(S),U=T(S);d.done=Math.abs(E)<=c,d.value=d.done?v:U};let x,P;const D=S=>{f(d.value)&&(x=S,P=Ot({keyframes:[d.value,p(d.value)],velocity:Zi(T,S,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:S=>{let E=!1;return!P&&x===void 0&&(E=!0,A(S),D(S)),x!==void 0&&S>=x?P.next(S-x):(!E&&A(S),d)}}}function Ul(t,e,s){const n=[],i=s||Q.mix||Yi,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ul(e,n,i),l=a.length,c=u=>{if(o&&u1)for(;hc(et(t[0],t[r-1],u)):c}function Nl(t,e){return t.map(s=>s*e)}const Ji=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,Wl=1e-7,zl=12;function Kl(t,e,s,n,i){let r,o,a=0;do o=e+(s-e)/2,r=Ji(o,n,i)-t,r>0?s=o:e=o;while(Math.abs(r)>Wl&&++aKl(r,0,1,t,s);return r=>r===0||r===1?r:Ji(i(r),e,n)}const Hl=Nt(.42,0,1,1),Gl=Nt(0,0,.58,1),Qi=Nt(.42,0,.58,1),to=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eo=t=>e=>1-t(1-e),so=Nt(.33,1.53,.69,.99),cs=eo(so),no=to(cs),io=t=>(t*=2)<1?.5*cs(t):.5*(2-Math.pow(2,-10*(t-1))),hs=t=>1-Math.sin(Math.acos(t)),oo=eo(hs),ro=to(hs),ao=t=>Array.isArray(t)&&typeof t[0]=="number",Xl={linear:I,easeIn:Hl,easeInOut:Qi,easeOut:Gl,circIn:hs,circInOut:ro,circOut:oo,backIn:cs,backInOut:no,backOut:so,anticipate:io},Yl=t=>typeof t=="string",Qs=t=>{if(ao(t)){ss(t.length===4);const[e,s,n,i]=t;return Nt(e,s,n,i)}else if(Yl(t))return Xl[t];return t};function ql(t,e){return t.map(()=>e||Qi).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=Ni(n)?n.map(Qs):Qs(n),r={done:!1,value:e[0]},o=Nl(s&&s.length===e.length?s:Ki(e),t),a=$l(o,e,{ease:Array.isArray(i)?i:ql(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Zl=t=>t!==null;function ds(t,{repeat:e,repeatType:s="loop"},n,i=1){const r=t.filter(Zl),a=i<0||e&&s!=="loop"&&e%2===1?0:r.length-1;return!a||n===void 0?r[a]:n}const Jl={decay:Ue,inertia:Ue,tween:_t,keyframes:_t,spring:Ot};function lo(t){typeof t.type=="string"&&(t.type=Jl[t.type])}class fs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,s){return this.finished.then(e,s)}}const Ql=t=>t/100;class ps extends fs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,n;const{motionValue:i}=this.options;i&&i.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(n=(s=this.options).onStop)==null||n.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;lo(e);const{type:s=_t,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=s||_t;l!==_t&&typeof a[0]!="number"&&(this.mixKeyframes=$t(Ql,Yi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=rs(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(e){const s=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(e,s=!1){const{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),s?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,A=n;if(h){const S=Math.min(this.currentTime,i)/a;let E=Math.floor(S),U=S%1;!U&&S>=1&&(U=1),U===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(d==="reverse"?(U=1-U,f&&(U-=f/a)):d==="mirror"&&(A=o)),T=et(0,1,U)*a}const x=w?{done:!1,value:u[0]}:A.next(T);r&&(x.value=r(x.value));let{done:P}=x;!w&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&p!==Ue&&(x.value=ds(u,this.options,y,this.speed)),m&&m(x.value),D&&this.finish(),x}then(e,s){return this.finished.then(e,s)}get duration(){return X(this.calculatedDuration)}get time(){return X(this.currentTime)}set time(e){var s;e=z(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(O.now());const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=X(this.currentTime))}play(){var e,s;if(this.isStopped)return;const{driver:n=Ll,startTime:i}=this.options;this.driver||(this.driver=n(o=>this.tick(o))),(s=(e=this.options).onPlay)==null||s.call(e);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(e=this.options).onComplete)==null||s.call(e)}cancel(){var e,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(e=this.options).onCancel)==null||s.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),e.observe(this)}}const tu=t=>t.startsWith("--");function eu(t,e,s){tu(e)?t.style.setProperty(e,s):t.style[e]=s}function ms(t){let e;return()=>(e===void 0&&(e=t()),e)}const su=ms(()=>window.ScrollTimeline!==void 0),nu={};function iu(t,e){const s=ms(t);return()=>nu[e]??s()}const uo=iu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Et=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Et([0,.65,.55,1]),circOut:Et([.55,0,1,.45]),backIn:Et([.31,.01,.66,-.59]),backOut:Et([.33,1.53,.69,.99])};function co(t,e){if(t)return typeof t=="function"?uo()?qi(t,e):"ease-out":ao(t)?Et(t):Array.isArray(t)?t.map(s=>co(s,e)||tn.easeOut):tn[t]}function ou(t,e,s,{delay:n=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:s};l&&(u.offset=l);const h=co(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function ru({type:t,...e}){return as(t)&&uo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class au extends fs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:s,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ss(typeof e.type!="string");const c=ru(e);this.animation=ou(s,n,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ds(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):eu(s,n,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,s;(s=(e=this.animation).finish)==null||s.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,s;this.isPseudoElement||(s=(e=this.animation).commitStyles)==null||s.call(e)}get duration(){var e,s;const n=((s=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:s.call(e).duration)||0;return X(Number(n))}get time(){return X(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=z(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:s}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&su()?(this.animation.timeline=e,I):s(this)}}const ho={anticipate:io,backInOut:no,circInOut:ro};function lu(t){return t in ho}function uu(t){typeof t.ease=="string"&&lu(t.ease)&&(t.ease=ho[t.ease])}const en=10;class cu extends au{constructor(e){uu(e),lo(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:s,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!s)return;if(e!==void 0){s.set(e);return}const a=new ps({...o,autoplay:!1}),l=z(this.finishedTime??this.time);s.setWithVelocity(a.sample(l-en).value,a.sample(l).value,en),a.stop()}}const sn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ot.test(t)||t==="0")&&!t.startsWith("url("));function hu(t){const e=t[0];if(t.length===1)return!0;for(let s=0;sObject.hasOwnProperty.call(Element.prototype,"animate"));function mu(t){var e;const{motionValue:s,name:n,repeatDelay:i,repeatType:r,damping:o,type:a}=t;if(!(((e=s==null?void 0:s.owner)==null?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=s.owner.getProps();return pu()&&n&&fu.has(n)&&(n!=="transform"||!u)&&!c&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}const gu=40;class yu extends fs{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var d;super(),this.stop=()=>{var m,y;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=O.now();const f={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},p=(u==null?void 0:u.KeyframeResolver)||Je;this.keyframeResolver=new p(a,(m,y,v)=>this.onKeyframesResolved(m,y,f,!v),l,c,u),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,s,n,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=O.now(),du(e,r,o,a)||((Q.instantAnimations||!l)&&(u==null||u(ds(e,n,s))),e[0]=e[e.length-1],Fe(n),n.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>gu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:e},f=!c&&mu(d)?new cu({...d,element:d.motionValue.owner.current}):new ps(d);f.finished.then(()=>this.notifyFinished()).catch(I),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,s){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),la()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const gs=(t,e,s,n={},i,r)=>o=>{const a=ls(n,t)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-z(l);const u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};wl(a)||Object.assign(u,Tl(t,u)),u.duration&&(u.duration=z(u.duration)),u.repeatDelay&&(u.repeatDelay=z(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Fe(u),u.delay===0&&(h=!0)),(Q.instantAnimations||Q.skipAnimations)&&(h=!0,Fe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=gl(u.keyframes,a);if(d!==void 0){M.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new ps(u):new yu(u)};function vu({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function xu(t,e,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(r=n);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||c&&vu(c,u))continue;const f={delay:s,...ls(r||{},u)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(d)&&d===p&&!f.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=Gi(t);if(v){const w=window.MotionHandoffAnimation(v,u,M);w!==null&&(f.startTime=w,m=!0)}}dl(t,u),h.start(gs(u,h,d,t.shouldReduceMotion&&_i.has(u)?{type:!1}:f,t,m));const y=h.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{M.update(()=>{o&&cl(t,o)})}),l}function bu(t,e){return t in e}class Tu extends Di{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(bu(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return L()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function fo(t){return typeof t=="object"&&t!==null}function ys(t){return fo(t)&&"ownerSVGElement"in t}function po(t){return ys(t)&&t.tagName==="svg"}function wu(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=ys(t)&&!po(t)?new Ui(e):new Oi(e);s.mount(t),ht.set(t,s)}function Su(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new Tu(e);s.mount(t),ht.set(t,s)}function mo(t,e,s){const n=j(t)?t:yt(t);return n.start(gs("",n,e,s)),n.animation}function Au(t,e){return j(t)||typeof t=="number"||typeof t=="string"&&!is(e)}function go(t,e,s,n){const i=[];if(Au(t,e))i.push(mo(t,is(e)&&e.default||e,s&&(s.default||s)));else{const r=$i(t,e,n),o=r.length;for(let a=0;a{n.push(...go(a,r,o))}),n}class Vu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;nn.attachTimeline(e));return()=>{s.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;ss[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Eu extends Vu{then(e,s){return this.finished.finally(e).then(()=>{})}}function Mu(t){return Array.isArray(t)&&t.some(Array.isArray)}function Cu(t){function e(s,n,i){let r=[];return Mu(s)?r=Pu(s,n,t):r=go(s,n,i,t),new Eu(r)}return e}const Du=Cu(),_u=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class Lu extends st{constructor(e){var s,n;super(e),this.animateUpdates=({controlActiveState:i,directAnimate:r,directTransition:o,controlDelay:a=0,isExit:l}={})=>{const{reducedMotion:c}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=c==="always"||c==="user"&&!!ne.current;const u=this.state.target;this.state.target={...this.state.baseTarget};let h={};h=this.resolveStateAnimation({controlActiveState:i,directAnimate:r,directTransition:o}),this.state.finalTransition=h;const d=this.createAnimationFactories(u,h,a),{getChildAnimations:f}=this.setupChildAnimations(h,this.state.activeStates);return this.executeAnimations({factories:d,getChildAnimations:f,transition:h,controlActiveState:i,isExit:l})},this.state.visualElement=Ha(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(n=this.state.visualElement.parent)==null||n.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;Vs(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),a={...this.state.target},l=this.state.element,c=h=>{var d,f;l.dispatchEvent(Ms("motionstart",a)),(f=(d=this.state.options).onAnimationStart)==null||f.call(d,a),h.then(()=>{var p,m;l.dispatchEvent(Ms("motioncomplete",a,r)),(m=(p=this.state.options).onAnimationComplete)==null||m.call(p,a)}).catch(I)},u=()=>{const h=n!=null&&n.when?(n.when==="beforeChildren"?o():s()).then(()=>n.when==="beforeChildren"?s():o()):Promise.all([o(),s()]);return c(h),h};return i?u:u()}setupChildAnimations(e,s){var n;const i=this.state.visualElement;if(!((n=i.variantChildren)!=null&&n.size)||!s)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:a=0}=e||{},l=i.variantChildren.size,c=(l-1)*r,u=typeof a=="function",h=u?f=>a(f,l):o===1?(f=0)=>f*r:(f=0)=>c-f*r,d=Array.from(i.variantChildren).map((f,p)=>f.state.animateUpdates({controlActiveState:s,controlDelay:(u?0:a)+h(p)}));return{getChildAnimations:()=>Promise.all(d.map(f=>f()))}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!pr(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=jr.get(this.state.element,r));const a=this.state.target[r]==="none"&&ks(_s[r])?_s[r]:this.state.target[r];i.push(()=>{var l;return Du(this.state.element,{[r]:a},{...(s==null?void 0:s[r])||s,delay:(((l=s==null?void 0:s[r])==null?void 0:l.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,r={};const{variants:o,custom:a,transition:l,animatePresenceContext:c}=this.state.options,u=a??(c==null?void 0:c.custom);return this.state.activeStates={...this.state.activeStates,...e},_u.forEach(h=>{if(!this.state.activeStates[h]||Vs(this.state.options[h]))return;const d=this.state.options[h];let f=ks(d)?Ct(d,o,u):void 0;if(this.state.visualElement.isVariantNode){const p=Ct(this.state.context[h],o,u);f=Object.assign(p?p||{}:r,f)}f&&(h!=="initial"&&(i=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),s&&(r=Ct(s,o,u),i=r.transition||n||l),Object.entries(r).forEach(([h,d])=>{h!=="transition"&&(this.state.target[h]=d)}),i}mount(){var e,s;const{element:n}=this.state;hi.set(n,this.state),ht.get(n)||(this.state.visualElement.mount(n),ht.set(n,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const i=this.state.visualElement,r=i.parent;if(i.enteringChildren=void 0,(e=this.state.parent)!=null&&e.isMounted()&&!i.isControllingVariants&&((s=r==null?void 0:r.enteringChildren)!=null&&s.has(i))){const{delayChildren:o}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:Ga(r.enteringChildren,i,o)})()}}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}function ku(t){return fo(t)&&"offsetHeight"in t}const Ru={y:!1};function ju(){return Ru.y}const yo=(t,e)=>e?t===e?!0:yo(t,e.parentElement):!1,Bu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function vo(t,e){const s=os(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const Fu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ou(t){return Fu.has(t.tagName)||t.tabIndex!==-1}const Qt=new WeakSet;function nn(t){return e=>{e.key==="Enter"&&t(e)}}function ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Iu=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=nn(()=>{if(Qt.has(s))return;ge(s,"down");const i=nn(()=>{ge(s,"up")}),r=()=>ge(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",r,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function on(t){return Bu(t)&&!0}function Uu(t,e,s={}){const[n,i,r]=vo(t,s),o=a=>{const l=a.currentTarget;if(!on(a))return;Qt.add(l);const c=e(l,a),u=(f,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Qt.has(l)&&Qt.delete(l),on(f)&&typeof c=="function"&&c(f,{success:p})},h=f=>{u(f,l===window||l===document||s.useGlobalTarget||yo(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return n.forEach(a=>{(s.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),ku(a)&&(a.addEventListener("focus",c=>Iu(c,i)),!Ou(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function xo(t){return{point:{x:t.pageX,y:t.pageY}}}function rn(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,r=n[i];r&&M.postRender(()=>r(e,xo(e)))}class $u extends st{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Uu(e,(s,n)=>(rn(this.state,n,"Start"),(i,{success:r})=>rn(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function an(t){return!(t.pointerType==="touch"||ju())}function Nu(t,e,s={}){const[n,i,r]=vo(t,s),o=a=>{if(!an(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{an(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return n.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}function ln(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,r=n[i];r&&M.postRender(()=>r(e,xo(e)))}class Wu extends st{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Nu(e,(s,n)=>(ln(this.state,n,"Start"),i=>{ln(this.state,i,"End")})))}}const zu={some:0,all:1};function Ku(t,e,{root:s,margin:n,amount:i="some"}={}){const r=os(t),o=new WeakMap,a=c=>{c.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?o.set(u.target,d):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:s,rootMargin:n,threshold:typeof i=="number"?i:zu[i]});return r.forEach(c=>l.observe(c)),()=>l.disconnect()}function un(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,r=n[i];r&&M.postRender(()=>r(e))}class Hu extends st{isActive(){const{whileInView:e,onViewportEnter:s,onViewportLeave:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=Ku(e,(i,r)=>{if(un(this.state,r,"Enter"),!s)return o=>{un(this.state,r,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Gu(e,s))&&this.startObserver()}}function Gu({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function re(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class Xu extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$t(re(this.state.element,"focus",()=>this.onFocus()),re(this.state.element,"blur",()=>this.onBlur()))}}const Yu=(t,e)=>t.depth-e.depth;class qu{constructor(){this.children=[],this.isDirty=!1}add(e){qe(this.children,e),this.isDirty=!0}remove(e){ue(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yu),this.isDirty=!1,this.children.forEach(e)}}function ye(t){return j(t)?t.get():t}const bo=["TopLeft","TopRight","BottomLeft","BottomRight"],Zu=bo.length,cn=t=>typeof t=="string"?parseFloat(t):t,hn=t=>typeof t=="number"||b.test(t);function Ju(t,e,s,n,i,r){i?(t.opacity=C(0,s.opacity??1,Qu(n)),t.opacityExit=C(e.opacity??1,0,tc(n))):r&&(t.opacity=C(e.opacity??1,s.opacity??1,n));for(let o=0;one?1:s(vt(t,e,n))}function fn(t,e){t.min=e.min,t.max=e.max}function $(t,e){fn(t.x,e.x),fn(t.y,e.y)}function pn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ve(t){return t===void 0||t===1}function $e({scale:t,scaleX:e,scaleY:s}){return!ve(t)||!ve(e)||!ve(s)}function rt(t){return $e(t)||wo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wo(t){return mn(t.x)||mn(t.y)}function mn(t){return t&&t!=="0%"}function ae(t,e,s){const n=t-s,i=e*n;return s+i}function gn(t,e,s,n,i){return i!==void 0&&(t=ae(t,i,n)),ae(t,s,n)+e}function Ne(t,e=0,s=1,n,i){t.min=gn(t.min,e,s,n,i),t.max=gn(t.max,e,s,n,i)}function So(t,{x:e,y:s}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,s.translate,s.scale,s.originPoint)}const yn=.999999999999,vn=1.0000000000001;function ec(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;ayn&&(e.x=1),e.yyn&&(e.y=1)}function Xt(t,e){t.min=t.min+e,t.max=t.max+e}function xn(t,e,s,n,i=.5){const r=C(t.min,t.max,i);Ne(t,e,s,r,n)}function mt(t,e){xn(t.x,e.x,e.scaleX,e.scale,e.originX),xn(t.y,e.y,e.scaleY,e.scale,e.originY)}const Ao=1e-4,sc=1-Ao,nc=1+Ao,Po=.01,ic=0-Po,oc=0+Po;function W(t){return t.max-t.min}function rc(t,e,s){return Math.abs(t-e)<=s}function bn(t,e,s,n=.5){t.origin=n,t.originPoint=C(e.min,e.max,t.origin),t.scale=W(s)/W(e),t.translate=C(s.min,s.max,t.origin)-t.originPoint,(t.scale>=sc&&t.scale<=nc||isNaN(t.scale))&&(t.scale=1),(t.translate>=ic&&t.translate<=oc||isNaN(t.translate))&&(t.translate=0)}function Lt(t,e,s,n){bn(t.x,e.x,s.x,n?n.originX:void 0),bn(t.y,e.y,s.y,n?n.originY:void 0)}function Tn(t,e,s){t.min=s.min+e.min,t.max=t.min+W(e)}function ac(t,e,s){Tn(t.x,e.x,s.x),Tn(t.y,e.y,s.y)}function wn(t,e,s){t.min=e.min-s.min,t.max=t.min+W(e)}function kt(t,e,s){wn(t.x,e.x,s.x),wn(t.y,e.y,s.y)}function Sn(t,e,s,n,i){return t-=e,t=ae(t,1/s,n),i!==void 0&&(t=ae(t,1/i,n)),t}function lc(t,e=0,s=1,n=.5,i,r=t,o=t){if(Y.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,n);t===r&&(a-=e),t.min=Sn(t.min,e,s,a,i),t.max=Sn(t.max,e,s,a,i)}function An(t,e,[s,n,i],r,o){lc(t,e[s],e[n],e[i],e.scale,r,o)}const uc=["x","scaleX","originX"],cc=["y","scaleY","originY"];function Pn(t,e,s,n){An(t.x,e,uc,s?s.x:void 0,n?n.x:void 0),An(t.y,e,cc,s?s.y:void 0,n?n.y:void 0)}function Vn(t){return t.translate===0&&t.scale===1}function Vo(t){return Vn(t.x)&&Vn(t.y)}function En(t,e){return t.min===e.min&&t.max===e.max}function hc(t,e){return En(t.x,e.x)&&En(t.y,e.y)}function Mn(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Eo(t,e){return Mn(t.x,e.x)&&Mn(t.y,e.y)}function Cn(t){return W(t.x)/W(t.y)}function Dn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class dc{constructor(){this.members=[]}add(e){qe(this.members,e),e.scheduleRender()}remove(e){if(ue(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fc(t,e,s){let n="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(s==null?void 0:s.z)||0;if((i||r||o)&&(n=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:p}=s;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),d&&(n+=`rotateY(${d}deg) `),f&&(n+=`skewX(${f}deg) `),p&&(n+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}function _n(t){return[t("x"),t("y")]}const te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xe=["","X","Y","Z"],pc=1e3;let mc=0;function be(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Mo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=Gi(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",M,!(i||r))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Mo(n)}function Co({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=mc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vc),this.nodes.forEach(wc),this.nodes.forEach(Sc),this.nodes.forEach(xc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;M.read(()=>{h=window.innerWidth}),t(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=lr(d,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(Rn)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Mc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=c.getProps(),v=!this.targetLayout||!Eo(this.targetLayout,f),w=!h&&d;if(this.options.layoutRoot||this.resumeFrom||w||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ls(p,"layout"),onPlay:m,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,w)}else h||Rn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ac),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const x=A/1e3;jn(h.x,o.x,x),jn(h.y,o.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Vc(this.relativeTarget,this.relativeTargetOrigin,d,x),T&&hc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=L()),$(T,this.relativeTarget)),m&&(this.animationValues=u,Ju(u,c,this.latestValues,x,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.currentAnimation=mo(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Do(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}$(a,l),mt(a,u),Lt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new dc),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&be("z",o,c,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ln),this.root.sharedNodes.clear()}}}function gc(t){t.updateLayout()}function yc(t){var e;const s=((e=t.resumeFrom)==null?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=s.source!==t.layout.source;r==="size"?_n(h=>{const d=o?s.measuredBox[h]:s.layoutBox[h],f=W(d);d.min=n[h].min,d.max=d.min+f}):Do(r,s.layoutBox,n)&&_n(h=>{const d=o?s.measuredBox[h]:s.layoutBox[h],f=W(n[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=ft();Lt(a,n,s.layoutBox);const l=ft();o?Lt(l,t.applyTransform(i,!0),s.measuredBox):Lt(l,n,s.layoutBox);const c=!Vo(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=L();kt(p,s.layoutBox,d.layoutBox);const m=L();kt(m,n,f.layoutBox),Eo(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function vc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function xc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function bc(t){t.clearSnapshot()}function Ln(t){t.clearMeasurements()}function kn(t){t.isLayoutDirty=!1}function Tc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Rn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function wc(t){t.resolveTargetDelta()}function Sc(t){t.calcProjection()}function Ac(t){t.resetSkewAndRotation()}function Pc(t){t.removeLeadSnapshot()}function jn(t,e,s){t.translate=C(e.translate,0,s),t.scale=C(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Bn(t,e,s,n){t.min=C(e.min,s.min,n),t.max=C(e.max,s.max,n)}function Vc(t,e,s,n){Bn(t.x,e.x,s.x,n),Bn(t.y,e.y,s.y,n)}function Ec(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mc={duration:.45,ease:[.4,0,.1,1]},Fn=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),On=Fn("applewebkit/")&&!Fn("chrome/")?Math.round:I;function In(t){t.min=On(t.min),t.max=On(t.max)}function Cc(t){In(t.x),In(t.y)}function Do(t,e,s){return t==="position"||t==="preserve-aspect"&&!rc(Cn(e),Cn(s),.2)}function Dc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}function _c(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const Lc=Co({attachResizeListener:(t,e)=>_c(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Te={current:void 0},kc=Co({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Te.current){const t=new Lc({});t.mount(window),t.setOptions({layoutScroll:!0}),Te.current=t}return Te.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function _o(t){if(t)return t.options.allowProjection!==!1?t.projection:_o(t.parent)}function Un(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const s=Un(t,e.target.x),n=Un(t,e.target.y);return`${s}% ${n}%`}},Rc={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=ot.parse(t);if(i.length>5)return n;const r=ot.createTransformer(t),o=typeof i[0]!="number"?1:0,a=s.x.scale*e.x,l=s.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},Lo={borderRadius:{...Pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Rc};function Mt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class jc extends st{constructor(e){super(e),ui(Lo)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new kc(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:_o(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&Mt(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=Xe.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function ko(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function vs(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Bc(t){return e=>ko(e)&&t(e,vs(e))}function Rt(t,e,s,n){return re(t,e,Bc(s),n)}function Ro(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const $n=Ro("dragHorizontal"),Nn=Ro("dragVertical");function Fc(t){let e=!1;if(t==="y")e=Nn();else if(t==="x")e=$n();else{const s=$n(),n=Nn();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function We(t){return t.max-t.min}function Oc(t,{min:e,max:s},n){return e!==void 0&&ts&&(t=n?C(s,t,n.max):Math.min(t,s)),t}const ze=.35;function Ic(t,{top:e,left:s,bottom:n,right:i}){return{x:Wn(t.x,s,i),y:Wn(t.y,e,n)}}function Wn(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function Uc(t=ze){return t===!1?t=0:t===!0&&(t=ze),{x:zn(t,"left","right"),y:zn(t,"top","bottom")}}function zn(t,e,s){return{min:Kn(t,e),max:Kn(t,s)}}function Kn(t,e){return typeof t=="number"?t:t[e]||0}function $c(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function Nc(t,e){return{x:Hn(t.x,e.x),y:Hn(t.y,e.y)}}function Hn(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.minn?s=vt(e.min,e.max-n,t.min):n>i&&(s=vt(t.min,t.max-i,e.min)),et(0,1,s)}const Gn=(t,e)=>Math.abs(t-e);function zc(t,e){const s=Gn(t.x,e.x),n=Gn(t.y,e.y);return Math.sqrt(s**2+n**2)}class jo{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Se(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=zc(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=we(d,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Se(h.type==="pointercancel"?this.lastMoveEventInfo:we(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,y),p&&p(h,y)},!ko(e))return;this.dragSnapToOrigin=r,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const o=vs(e),a=we(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=s;u&&u(e,Se(a,this.history)),this.removeListeners=$t(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tt(this.updatePoint)}}function we(t,e){return e?{point:e(t.point)}:t}function Xn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Se({point:t},e){return{point:t,delta:Xn(t,Bo(e)),offset:Xn(t,Kc(e)),velocity:Hc(e,.1)}}function Kc(t){return t[0]}function Bo(t){return t[t.length-1]}function Hc(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=Bo(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>z(e)));)s--;if(!n)return{x:0,y:0};const r=X(i.timestamp-n.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Yn=()=>({min:0,max:0});function Gc(){return{x:Yn(),y:Yn()}}function H(t){return[t("x"),t("y")]}function Xc(t){return!!(j(t)&&t.add)}function qn(t,e){const s=t.getValue("willChange");if(Xc(s))return s.add(e)}function Fo({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Yc(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function qc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Zn(t,e){t.min=t.min+e,t.max=t.max+e}function Zc(t,e){return Fo(Yc(t.getBoundingClientRect(),e))}function Jc(t,e,s){const n=Zc(t,s),{scroll:i}=e;return i&&(Zn(n.x,i.offset.x),Zn(n.y,i.offset.y)),n}function Jn(t){return!Xe.has(t.current)}function Oo({current:t}){return t?t.ownerDocument.defaultView:null}const Qc=new WeakMap;class th{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gc(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!Jn(this.visualElement))return;const n=c=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(vs(c,"page").point)},i=(c,u)=>{const{drag:h,dragPropagation:d,onDragStart:f}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Fc(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),H(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Y.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[m];w&&(y=We(w)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&M.postRender(()=>f(c,u)),qn(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(c,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=eh(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(c,u)},o=(c,u)=>this.stop(c,u),a=()=>H(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)==null?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new jo(e,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Oo(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&M.postRender(()=>r(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!Yt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=Oc(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;s&&Mt(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Ic(i.layoutBox,s):this.constraints=!1,this.elastic=Uc(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&H(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=$c(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!Mt(e))return!1;const n=e,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Jc(n,i.root,this.visualElement.getTransformPagePoint());let o=Nc(i.layout.layoutBox,r);if(s){const a=s(qc(o));this.hasMutatedConstraints=!!a,a&&(o=Fo(a))}return o}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=H(u=>{if(!Yt(u,s,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return qn(this.visualElement,e),n.start(gs(e,n,0,s,this.visualElement,!1))}stopAnimation(){Jn(this.visualElement)&&H(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){H(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){H(s=>{const{drag:n}=this.getProps();if(!Yt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(s);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[s];r.set(e[s]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Mt(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};H(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Wc({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),H(o=>{if(!Yt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(C(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Qc.set(this.visualElement,this);const e=this.visualElement.current,s=Rt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Mt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(n);const o=re(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(H(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),s(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=ze,dragMomentum:a=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Yt(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function eh(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class sh extends st{constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new th(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}}class nh extends st{constructor(e){super(e),ui(Lo)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),te.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(s),this.didUpdate())}}function Qn(t){return(e,s)=>{t&&M.postRender(()=>t(e,s))}}class ih extends st{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(e){this.session=new jo(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Oo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Qn((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:Qn((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&M.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Rt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const oh=[Lu,$u,Wu,Hu,Xu,jc,ih,sh,nh],rh={reducedMotion:"never",transition:void 0,nonce:void 0},[ah]=It("MotionConfig");function lh(){return ah(si(()=>rh))}function le(t){if(t)return t.nodeType===3||t.nodeType===8?le(t.nextSibling):t}const[uh]=It("LazyMotionContext");function ch(t){const e=hr(null),s=fr({}),n=lh(),i=Tr({}),r=uh({features:gt([]),strict:!1}),o=$o();function a(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function l(){return{...t,lazyMotionContext:r,layoutId:a(),transition:t.transition??n.value.transition,layoutGroup:s,motionConfig:n.value,inViewOptions:t.inViewOptions??n.value.inViewOptions,animatePresenceContext:i,initial:i.initial===!1?i.initial:t.initial===!0?void 0:t.initial}}function c(){return{...o,...l()}}const u=new Ar(c(),e);dr(u);function h(){var f;const p=u.type==="svg",m={...o};Object.keys(o).forEach(w=>{j(o[w])&&(m[w]=o[w].get())});let y={...t.style,...p?{}:((f=u.visualElement)==null?void 0:f.latestValues)||u.baseTarget};if(p){const{attrs:w,style:T}=Ur({...u.isMounted()?u.target:u.baseTarget,...y});(T.transform||w.transformOrigin)&&(T.transformOrigin=w.transformOrigin??"50% 50%",delete w.transformOrigin),T.transform&&(T.transformBox=T.transformBox??"fill-box",delete w.transformBox),Object.assign(m,w),y=T}t.drag&&t.dragListener!==!1&&Object.assign(y,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const v=Br(y);return v&&(m.style=v),m}const d=No().proxy;return Wo(()=>{u.beforeMount()}),zo(()=>{u.mount(le(d.$el),c(),dh(d))}),Ko(()=>u.beforeUnmount()),ni(()=>{const f=le(d.$el);f!=null&&f.isConnected||u.unmount()}),Ho(()=>{u.beforeUpdate()}),Go(()=>{u.update(c())}),{getProps:l,getAttrs:h,layoutGroup:s,state:u}}const hh={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function dh(t){var e;const s=((e=le(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const fh=new Map,ph=new Map;function mh(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const gh=["area","img","input"];function yh(t,e,s){var n,i;if(typeof t=="string"&&gh.includes(t))return ii(t,e);if(t==="template"){if(!s.default)return null;const r=mh(s.default()),o=r.findIndex(u=>u.type!==Xo);if(o===-1)return r;const a=r[o];(n=a.props)==null||delete n.ref;const l=a.props?Yo(e,a.props):e;e.class&&((i=a.props)!=null&&i.class)&&delete a.props.class;const c=qo(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return r.length===1?c:(r[o]=c,r)}return null}function ti(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",r=((s=e.features)==null?void 0:s.length)>0?fh:ph;if(n&&(r!=null&&r.has(t)))return r.get(t);const o=dt({inheritAttrs:!1,props:{...hh,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(a,{slots:l}){const{getProps:c,getAttrs:u,state:h}=ch(a);function d(){const f=h.element;if((!(typeof a.as=="object")||a.asChild)&&f){const{style:m}=u();if(m)for(const[y,v]of Object.entries(m))f.style[y]=v}}return()=>{const f=c(),p=u(),m=a.asChild?"template":a.as,y={...e.forwardMotionProps||a.forwardMotionProps?f:{},...p,onVnodeUpdated:d},v=yh(m,y,l);return v!==null?v:ii(m,{...y},l)}}});return n&&(r==null||r.set(t,o)),o}function vh(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>ti(n,{...i,features:t}):ti(s,{features:t})}})}const Z=vh(oh),qt=Z.create("div"),xh={class:"flex flex-col items-center"},bh={class:"text-sm mt-2 text-white/80"},Ae=dt({__name:"time-unit",props:{value:{},label:{}},setup(t){const e=t,s=si(()=>String(e.value).padStart(2,"0"));return(n,i)=>(F(),G("div",xh,[(F(),ee(k(Z).div,{key:t.value,initial:{scale:1.2,opacity:.5},animate:{scale:1,opacity:1},transition:{duration:.3},class:"bg-gradient-to-br from-orange-500 to-orange-600 text-white text-3xl md:text-4xl w-16 h-16 md:w-20 md:h-20 rounded-xl flex items-center justify-center shadow-lg"},{default:N(()=>[Zo(J(s.value),1)]),_:1})),g("span",bh,J(t.label),1)]))}}),Th={class:"relative h-[70vh] min-h-[500px] overflow-hidden"},wh={class:"relative z-10 flex justify-between items-center p-4"},Sh={class:"relative z-10 flex flex-col items-center justify-center h-full px-4 text-center text-white pb-16"},Ah={class:"text-orange-400 mb-4"},Ph={class:"flex gap-4"},Vh=dt({__name:"hero",props:{end:{type:Boolean,default:!1}},setup(t){const e=Ke("activeInfo"),s=gt({hours:0,minutes:0,seconds:0});let n=null;const i=t;function r(){if(!(e!=null&&e.value))return;const o=new Date(e.value.active_end_at).getTime();i.end||(n=setInterval(()=>{const a=Date.now(),l=Math.max(0,o-a);l===0&&n&&(clearInterval(n),n=null);const c=Math.floor(l/(1e3*60*60)),u=Math.floor(l%(1e3*60*60)/(1e3*60)),h=Math.floor(l%(1e3*60)/1e3);s.value={hours:c,minutes:u,seconds:h}},1e3))}return r(),ni(()=>{n&&clearInterval(n)}),(o,a)=>(F(),G("div",Th,[a[5]||(a[5]=g("div",{class:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url('https://images.unsplash.com/photo-1753613648191-4771cf76f034')"}},[g("div",{class:"absolute inset-0 bg-gradient-to-b from-black/50 via-black/40 to-black/60"})],-1)),g("div",wh,[V(k(qt),{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},class:"text-white text-xl"},{default:N(()=>[...a[0]||(a[0]=[g("span",{class:"bg-gradient-to-r from-orange-400 to-orange-500 px-3 py-1 rounded-lg"}," 有光自习室 ",-1)])]),_:1})]),g("div",Sh,[V(k(qt),{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2}},{default:N(()=>[...a[1]||(a[1]=[g("h1",{class:"text-4xl md:text-5xl mb-4 text-white"},"专业老师在线陪读",-1),g("p",{class:"text-xl md:text-2xl mb-8 text-white/90"},"让孩子高效学习,专注成长",-1)])]),_:1}),V(k(qt),{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.4},class:"bg-white/10 backdrop-blur-md rounded-2xl p-6 border border-white/20 shadow-2xl"},{default:N(()=>[g("p",Ah,J(t.end?"活动已结束":"限时优惠倒计时"),1),g("div",Ph,[V(Ae,{value:s.value.hours,label:"时"},null,8,["value"]),a[2]||(a[2]=g("span",{class:"text-3xl"},":",-1)),V(Ae,{value:s.value.minutes,label:"分"},null,8,["value"]),a[3]||(a[3]=g("span",{class:"text-3xl"},":",-1)),V(Ae,{value:s.value.seconds,label:"秒"},null,8,["value"])])]),_:1}),V(k(qt),{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},class:"mt-8"},{default:N(()=>[...a[4]||(a[4]=[g("div",{class:"bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-3 rounded-full inline-block shadow-lg"},[g("span",{class:"text-2xl"},"课时翻倍 限时抢购")],-1)])]),_:1})])]))}}),Vt=ri("check",!0,function(t){return V("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[V("path",{d:"M43 11L16.875 37L5 25.1818",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Zt=ri("user",!1,function(t){return V("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[V("circle",{cx:"24",cy:"12",r:"8",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),V("path",{d:"M42 44C42 34.0589 33.9411 26 24 26C14.0589 26 6 34.0589 6 44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}),Eh={class:"py-12 px-4 bg-gradient-to-b from-white to-orange-50"},Mh={class:"max-w-5xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-6"},Ch={class:"flex items-start gap-4"},Dh={class:"bg-gradient-to-br from-orange-400 to-orange-600 text-white p-3 rounded-xl flex-shrink-0"},_h={class:"flex-1"},Lh={class:"text-xl mb-2 text-gray-800"},kh={class:"text-gray-600"},Rh=dt({__name:"course-highlights",setup(t){const e=[{icon:Zt,title:"专业讲师陪伴",description:"资深教师在线督导,实时答疑解惑"},{icon:Zt,title:"高效学习氛围",description:"沉浸式学习环境,远离干扰提升效率"},{icon:Zt,title:"专注力提升",description:"科学时间管理,培养良好学习习惯"},{icon:Zt,title:"同伴互助学习",description:"与优秀学员共同进步,激发学习动力"}];return(s,n)=>(F(),G("div",Eh,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-10"},{default:N(()=>[...n[0]||(n[0]=[g("h2",{class:"text-3xl md:text-4xl mb-3 text-gray-800"},"课程核心优势",-1),g("p",{class:"text-gray-600"},"四大亮点助力孩子高效学习",-1)])]),_:1}),g("div",Mh,[(F(),G(Pe,null,Ve(e,(i,r)=>V(k(Z).div,{key:r,initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:r*.1},"while-hover":{scale:1.05,y:-5},class:"bg-white rounded-2xl p-6 shadow-lg hover:shadow-xl transition-all border border-orange-100"},{default:N(()=>[g("div",Ch,[g("div",Dh,[(F(),ee(Jo(i.icon),{size:28}))]),g("div",_h,[g("h3",Lh,J(i.title),1),g("p",kh,J(i.description),1)])])]),_:2},1032,["transition"])),64))])]))}}),jh={class:"py-16 px-4 bg-gradient-to-br from-orange-500 to-orange-600 text-white relative overflow-hidden"},Bh={class:"max-w-4xl mx-auto relative z-10"},Fh={class:"inline-flex items-center gap-2 bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full mb-4"},Oh={class:"grid grid-cols-1 md:grid-cols-2 gap-6 items-center"},Ih={class:"text-center"},Uh={class:"space-y-2"},$h={class:"flex items-center justify-center gap-2 text-white/80"},Nh={class:"flex items-center justify-center gap-2 text-white/80"},Wh={class:"text-center"},zh={class:"text-5xl mb-1"},Kh={class:"text-orange-600"},Hh={class:"space-y-3"},Gh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Xh={class:"bg-orange-500 text-white rounded-full p-1"},Yh={class:"text-lg"},qh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Zh={class:"bg-orange-500 text-white rounded-full p-1"},Jh={class:"flex items-center gap-3 bg-orange-50 rounded-lg p-3"},Qh={class:"bg-orange-500 text-white rounded-full p-1"},td=dt({__name:"price-section",setup(t){const e=Ke("activeInfo");return(s,n)=>(F(),G("div",jh,[n[12]||(n[12]=g("div",{class:"absolute inset-0 opacity-10"},[g("div",{class:"absolute top-10 left-10 w-32 h-32 bg-white rounded-full blur-3xl"}),g("div",{class:"absolute bottom-10 right-10 w-40 h-40 bg-white rounded-full blur-3xl"})],-1)),g("div",Bh,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-12"},{default:N(()=>[g("div",Fh,[V(k(nr),{size:20}),n[0]||(n[0]=g("span",null,"限时特惠",-1))]),n[1]||(n[1]=g("h2",{class:"text-3xl md:text-4xl mb-3"},"超值优惠方案",-1)),n[2]||(n[2]=g("p",{class:"text-white/90 text-lg"},"现在报名立享课时翻倍",-1))]),_:1}),g("div",Oh,[V(k(Z).div,{initial:{opacity:0,x:-30},"while-in-view":{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},class:"bg-white/10 backdrop-blur-md rounded-2xl p-8 border border-white/20"},{default:N(()=>[g("div",Ih,[n[5]||(n[5]=g("p",{class:"text-white/70 mb-2"},"原价套餐",-1)),n[6]||(n[6]=g("div",{class:"text-4xl mb-4"},[g("span",{class:"line-through opacity-60"},"¥200")],-1)),g("div",Uh,[g("div",$h,[V(k(Vt),{size:18}),n[3]||(n[3]=g("span",null,"10节课时",-1))]),g("div",Nh,[V(k(Vt),{size:18}),n[4]||(n[4]=g("span",null,"在线自习陪伴",-1))])])])]),_:1}),V(k(Z).div,{initial:{opacity:0,x:30},"while-in-view":{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.4},class:"bg-white text-gray-800 rounded-2xl p-8 shadow-2xl relative overflow-hidden"},{default:N(()=>[n[11]||(n[11]=g("div",{class:"absolute -top-1 -right-1"},[g("div",{class:"bg-gradient-to-br from-yellow-400 to-orange-500 text-white px-6 py-2 rounded-bl-2xl rounded-tr-2xl shadow-lg"},[g("span",{class:"text-sm"},"限时抢购")])],-1)),g("div",Wh,[n[9]||(n[9]=g("p",{class:"text-orange-600 mb-2"},"现在购买",-1)),g("div",zh,[g("span",Kh,"¥"+J(k(e).order_amount),1)]),n[10]||(n[10]=g("p",{class:"text-gray-500 mb-6"},"享双倍课时",-1)),g("div",Hh,[g("div",Gh,[g("div",Xh,[V(k(Vt),{size:18})]),g("span",Yh,J(k(e).course_num)+"节课时",1)]),g("div",qh,[g("div",Zh,[V(k(Vt),{size:18})]),n[7]||(n[7]=g("span",{class:"text-lg"},"专业老师陪读",-1))]),g("div",Jh,[g("div",Qh,[V(k(Vt),{size:18})]),n[8]||(n[8]=g("span",{class:"text-lg"},"实时答疑辅导",-1))])])])]),_:1})])])]))}}),ed={class:"py-16 px-4 bg-white"},sd={class:"max-w-6xl mx-auto"},nd={class:"md:hidden overflow-x-auto pb-4 -mx-4 px-4"},id={class:"flex gap-4",style:{width:"max-content"}},od={class:"flex items-center gap-4 mb-4"},rd={class:"w-12 h-12 rounded-full overflow-hidden border-2 border-orange-300"},ad=["src","alt"],ld={class:"flex-1"},ud={class:"text-gray-800"},cd={class:"flex gap-1"},hd={class:"text-gray-700 leading-relaxed"},dd=dt({__name:"reviews",setup(t){const e=gt([{name:"李妈妈",avatar:"https://images.unsplash.com/photo-1561065533-316e3142d586?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx5b3VuZyUyMHN0dWRlbnQlMjBwb3J0cmFpdHxlbnwxfHx8fDE3NjExOTU1NzZ8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"孩子在有光自习室学习后,专注力明显提升,作业效率也提高了很多!"},{name:"王同学",avatar:"https://images.unsplash.com/photo-1514355315815-2b64b0216b14?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxhc2lhbiUyMHN0dWRlbnQlMjBoYXBweXxlbnwxfHx8fDE3NjEyMjc3MzR8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"老师很负责,遇到问题可以随时提问,学习氛围特别好,推荐!"},{name:"张爸爸",avatar:"https://images.unsplash.com/photo-1585432959389-67f059cf1e41?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx0ZWVuYWdlciUyMHN0dWR5aW5nfGVufDF8fHx8MTc2MTI3MzgwMnww&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"性价比超高,20节课才200元,老师专业又耐心,孩子很喜欢!"},{name:"陈同学",avatar:"https://images.unsplash.com/photo-1561065533-316e3142d586?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx5b3VuZyUyMHN0dWRlbnQlMjBwb3J0cmFpdHxlbnwxfHx8fDE3NjExOTU1NzZ8MA&ixlib=rb-4.1.0&q=80&w=1080",rating:5,comment:"和优秀的同学一起学习,感觉自己也变得更加努力了,很有动力!"}]);return(s,n)=>(F(),G("div",ed,[g("div",sd,[V(k(Z).div,{initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},class:"text-center mb-10"},{default:N(()=>[...n[0]||(n[0]=[g("h2",{class:"text-3xl md:text-4xl mb-3 text-gray-800"},"学员真实反馈",-1),g("p",{class:"text-gray-600"},"数千家长和学员的共同选择",-1)])]),_:1}),g("div",nd,[g("div",id,[(F(!0),G(Pe,null,Ve(e.value,(i,r)=>(F(),ee(k(Z).div,{key:r,initial:{opacity:0,y:30},"while-in-view":{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:r*.1},class:"w-[300px] flex-shrink-0 bg-gradient-to-br from-orange-50 to-white rounded-2xl p-6 shadow-lg border border-orange-100 hover:shadow-xl transition-shadow"},{default:N(()=>[g("div",od,[g("div",rd,[g("img",{src:i.avatar,alt:i.name,class:"w-full h-full object-cover"},null,8,ad)]),g("div",ld,[g("h4",ud,J(i.name),1),g("div",cd,[(F(!0),G(Pe,null,Ve(i.rating,o=>(F(),ee(k(ir),{theme:"filled",key:o,size:"14",class:"fill-orange-400 text-orange-400"}))),128))])])]),g("p",hd,J(i.comment),1)]),_:2},1032,["transition"]))),128))])]),n[1]||(n[1]=g("div",{class:"md:hidden text-center mt-4 text-gray-400 text-sm"}," ← 滑动查看更多评价 → ",-1))])]))}});function fd(){return oi.get("/yg/active_info")}function pd(){return oi.post("/yg/order/create")}function md(t){return new Promise(e=>{Qo.chooseWXPay({timestamp:t.timestamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(){e(!0)},cancel:function(s){console.log(s),e(!1)}})})}const gd={key:0,class:"min-h-screen bg-white"},Ad=dt({__name:"index",setup(t){const e=sr(),s=gt({}),n=gt(!1),i=gt(!1);(async()=>{let a=await fd();s.value=a,n.value=!0;const l=new Date(s.value.active_end_at).getTime();(s.value.active_status!=1||l<=Date.now())&&(i.value=!0)})(),ei("activeInfo",s);const o=async()=>{tr({duration:0,forbidClick:!0,message:"支付中"});let a=await pd();md(a).then(l=>{l&&(er("支付成功"),e.push({path:"/pay_success",query:s.value}))})};return(a,l)=>n.value?(F(),G("div",gd,[V(Vh,{end:i.value},null,8,["end"]),V(Rh),V(td),V(dd),l[1]||(l[1]=g("div",{class:"h-24"},null,-1)),i.value?Ps("",!0):(F(),G("div",{key:0,onClick:o,class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-2xl z-50 px-4 py-3 safe-area-bottom"},[...l[0]||(l[0]=[g("div",{class:"flex-1 flex items-center justify-center gap-2 bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-4 rounded-full hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg"},[g("span",{class:"text-lg"},"立即参与")],-1)])]))])):Ps("",!0)}});export{Ad as default};
diff --git a/assets/invite-B5FLmfN6.js b/assets/invite-B5FLmfN6.js
new file mode 100644
index 0000000..15823a1
--- /dev/null
+++ b/assets/invite-B5FLmfN6.js
@@ -0,0 +1 @@
+import{g as h}from"./invite-BKFwwOuS.js";import{z as i,h as y,r as v,c as w,l as n,n as a,L as _,s as t,x as d,y as c,F as k,A as j,G as C,N as I,I as L,_ as A}from"./index-B8OdjfL2.js";import{I as N}from"./index-DDdLkfGc.js";const m=N("down",!1,function(o){return i("svg",{width:o.size,height:o.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M36 18L24 30L12 18",stroke:o.colors[0],"stroke-width":o.strokeWidth,"stroke-linecap":o.strokeLinecap,"stroke-linejoin":o.strokeLinejoin},null)])}),B={class:"relative w-full min-h-screen mx-auto overflow-x-hidden bg-white pt-4 px-4"},D={class:"mb-6 p-4 bg-blue-50 rounded-xl shadow-sm"},V={class:"p-3 bg-white rounded-lg border border-gray-200 break-all text-sm text-gray-800"},z={class:"flex justify-between mb-6"},Q={class:"text-center p-4 bg-white rounded-xl shadow-sm flex-1 mr-2"},S={class:"text-2xl font-bold text-amber-600"},E={class:"text-center p-4 bg-white rounded-xl shadow-sm flex-1 ml-2"},F={class:"text-2xl font-bold text-amber-300"},W={class:"mb-6"},G={class:"group"},M={class:"cursor-pointer p-3 bg-white rounded-t-xl shadow-sm flex justify-between items-center"},T={class:"p-3 bg-white rounded-b-xl shadow-sm border-t border-gray-100"},$={class:"w-full text-xs text-left text-gray-600"},q={class:"py-2"},H={key:0,class:"text-gray-400"},J={key:1,class:"text-green-900"},K={key:2,class:"text-green-400"},O={key:3,class:"text-orange-400"},P={class:"py-2"},R={class:"space-y-3"},U={class:"group bg-white rounded-lg shadow-sm"},X={class:"list-none cursor-pointer p-3 flex justify-between items-center"},Y={class:"group bg-white rounded-lg shadow-sm"},Z={class:"list-none cursor-pointer p-3 flex justify-between items-center"},tt={class:"group bg-white rounded-lg shadow-sm"},et={class:"list-none cursor-pointer p-3 flex justify-between items-center"},st=y({__name:"invite",setup(o){const l=v({invite_list:[]}),u=w(()=>{var s;return`https://ting.lifebanktech.com/accept?code=${(s=l.value)==null?void 0:s.invite_code}`}),b=async()=>{let s=await h();l.value=s,await I({shareData:{title:"",link:u.value,desc:"我的宝贝在白习室做作业很快乐,邀您的娃免费体验"}})},g=()=>{const s=document.createElement("textarea");document.body.appendChild(s),s.value=u.value,s.select(),document.execCommand("Copy"),document.body.removeChild(s),L("复制成功")};return b(),(s,e)=>{var x,p;return a(),n("div",B,[e[12]||(e[12]=_(' 🎉 恭喜 用户“小明”成功邀请好友获得 1 节免费课时!🎉 恭喜 用户“小红”成功邀请好友获得 1 节免费课时!🎉
邀请好友得免费课时
每成功邀请一位好友即可获得 1 节免费课程
',2)),t("section",D,[t("div",{class:"flex items-center justify-between mb-2"},[e[0]||(e[0]=t("span",{class:"text-sm font-medium text-gray-700"},"我的专属邀请链接:",-1)),t("button",{class:"px-3 rounded bg-white border border-blue-500",onClick:g}," 复制 ")]),t("div",V,d(u.value),1)]),t("section",z,[t("div",Q,[e[1]||(e[1]=t("p",{class:"text-sm text-gray-600"},"已邀请人数",-1)),t("p",S,d(((x=l.value)==null?void 0:x.invite_num)||0)+" 人",1)]),t("div",E,[e[2]||(e[2]=t("p",{class:"text-sm text-gray-600"},"累计获得课时",-1)),t("p",F,d(((p=l.value)==null?void 0:p.invite_reward_num)||0)+" 节",1)])]),t("section",W,[t("details",G,[t("summary",M,[e[3]||(e[3]=t("span",{class:"font-medium text-gray-700"},"查看我的邀请记录",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),t("div",T,[t("table",$,[e[4]||(e[4]=t("thead",null,[t("tr",{class:"border-b border-gray-200"},[t("th",{class:"pb-2"},"昵称"),t("th",{class:"pb-2"},"状态"),t("th",{class:"pb-2"},"奖励")])],-1)),t("tbody",null,[(a(!0),n(k,null,j(l.value.invite_list,(r,f)=>(a(),n("tr",{class:"border-b border-gray-200",key:f},[t("td",q,d(r.invited_user_name),1),t("td",null,[r.invite_status==0?(a(),n("span",H,"未预约")):r.invite_status==1?(a(),n("span",J,"已预约")):r.invite_status==2?(a(),n("span",K,"已体验")):r.invite_status==3?(a(),n("span",O,"已被别人邀请")):C("",!0)]),t("td",P,d(r.reward_text),1)]))),128))])])])])]),e[13]||(e[13]=t("section",{class:"mb-6 p-4 bg-white rounded-xl shadow-sm"},[t("h3",{class:"font-medium text-gray-700 mb-2"},"如何领取奖励?"),t("p",{class:"text-sm text-gray-600 leading-relaxed"}," 邀请好友来完成体验课后,系统会自动放发奖励课时。 ")],-1)),t("section",null,[e[11]||(e[11]=t("h3",{class:"font-medium text-gray-700 mb-3"},"常见问题",-1)),t("div",R,[t("details",U,[t("summary",X,[e[5]||(e[5]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 如何才算成功邀请好友?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[6]||(e[6]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 好友通过您的邀请并完成首次课程学习即视为成功邀请。 ",-1))]),t("details",Y,[t("summary",Z,[e[7]||(e[7]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 奖励何时到账?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[8]||(e[8]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 好友满足条件后的 24 小时内,奖励将自动发放到您的账户中。 ",-1))]),t("details",tt,[t("summary",et,[e[9]||(e[9]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 是否有限制次数?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[10]||(e[10]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 本次活动不限制邀请人数,邀请越多奖励越多! ",-1))])])])])}}}),rt=A(st,[["__scopeId","data-v-554e1e9b"]]);export{rt as default};
diff --git a/assets/invite-CY8sGJfP.js b/assets/invite-BKFwwOuS.js
similarity index 73%
rename from assets/invite-CY8sGJfP.js
rename to assets/invite-BKFwwOuS.js
index c13ce47..b3b1d1a 100644
--- a/assets/invite-CY8sGJfP.js
+++ b/assets/invite-BKFwwOuS.js
@@ -1 +1 @@
-import{D as t}from"./index-C2VieYHK.js";function n(){return t.get("/yg/invite/info")}function o(i){return t.get(`/yg/invite/detail?invite_code=${i}`)}function r(i){return t.post(`/yg/invite/bind?invite_code=${i}`)}export{o as a,r as b,n as g};
+import{D as t}from"./index-B8OdjfL2.js";function n(){return t.get("/yg/invite/info")}function o(i){return t.get(`/yg/invite/detail?invite_code=${i}`)}function r(i){return t.post(`/yg/invite/bind?invite_code=${i}`)}export{o as a,r as b,n as g};
diff --git a/assets/invite-BlLnFOW_.css b/assets/invite-BlLnFOW_.css
new file mode 100644
index 0000000..25e73ef
--- /dev/null
+++ b/assets/invite-BlLnFOW_.css
@@ -0,0 +1 @@
+.scrolling-text[data-v-554e1e9b]{display:inline-block;white-space:nowrap;animation:scroll-left-554e1e9b 15s linear infinite}@keyframes scroll-left-554e1e9b{0%{transform:translate(100%)}to{transform:translate(-100%)}}
diff --git a/assets/invite-CssxZE-G.js b/assets/invite-CssxZE-G.js
deleted file mode 100644
index bdafddf..0000000
--- a/assets/invite-CssxZE-G.js
+++ /dev/null
@@ -1 +0,0 @@
-import{g as h}from"./invite-CY8sGJfP.js";import{z as i,h as y,r as v,c as w,l as n,n as a,L as _,s as t,x as d,y as c,F as k,A as j,G as C,N as I,I as L,_ as A}from"./index-C2VieYHK.js";import{I as N}from"./index-DeTfQ5AC.js";const m=N("down",!1,function(o){return i("svg",{width:o.size,height:o.size,viewBox:"0 0 48 48",fill:"none"},[i("path",{d:"M36 18L24 30L12 18",stroke:o.colors[0],"stroke-width":o.strokeWidth,"stroke-linecap":o.strokeLinecap,"stroke-linejoin":o.strokeLinejoin},null)])}),B={class:"relative w-full min-h-screen mx-auto overflow-x-hidden bg-white pt-4 px-4"},D={class:"mb-6 p-4 bg-blue-50 rounded-xl shadow-sm"},V={class:"p-3 bg-white rounded-lg border border-gray-200 break-all text-sm text-gray-800"},z={class:"flex justify-between mb-6"},Q={class:"text-center p-4 bg-white rounded-xl shadow-sm flex-1 mr-2"},S={class:"text-2xl font-bold text-amber-600"},E={class:"text-center p-4 bg-white rounded-xl shadow-sm flex-1 ml-2"},F={class:"text-2xl font-bold text-amber-300"},W={class:"mb-6"},G={class:"group"},M={class:"cursor-pointer p-3 bg-white rounded-t-xl shadow-sm flex justify-between items-center"},T={class:"p-3 bg-white rounded-b-xl shadow-sm border-t border-gray-100"},$={class:"w-full text-xs text-left text-gray-600"},q={class:"py-2"},H={key:0,class:"text-gray-400"},J={key:1,class:"text-green-900"},K={key:2,class:"text-green-400"},O={key:3,class:"text-orange-400"},P={class:"py-2"},R={class:"space-y-3"},U={class:"group bg-white rounded-lg shadow-sm"},X={class:"list-none cursor-pointer p-3 flex justify-between items-center"},Y={class:"group bg-white rounded-lg shadow-sm"},Z={class:"list-none cursor-pointer p-3 flex justify-between items-center"},tt={class:"group bg-white rounded-lg shadow-sm"},et={class:"list-none cursor-pointer p-3 flex justify-between items-center"},st=y({__name:"invite",setup(o){const l=v({invite_list:[]}),u=w(()=>{var s;return`https://ting.lifebanktech.com/accept?code=${(s=l.value)==null?void 0:s.invite_code}`}),b=async()=>{let s=await h();l.value=s,await I({shareData:{title:"",link:u.value}})},g=()=>{const s=document.createElement("textarea");document.body.appendChild(s),s.value=u.value,s.select(),document.execCommand("Copy"),document.body.removeChild(s),L("复制成功")};return b(),(s,e)=>{var x,p;return a(),n("div",B,[e[12]||(e[12]=_(' 🎉 恭喜 用户“小明”成功邀请好友获得 1 节免费课时!🎉 恭喜 用户“小红”成功邀请好友获得 1 节免费课时!🎉
邀请好友得免费课时
每成功邀请一位好友即可获得 1 节免费课程
',2)),t("section",D,[t("div",{class:"flex items-center justify-between mb-2"},[e[0]||(e[0]=t("span",{class:"text-sm font-medium text-gray-700"},"我的专属邀请链接:",-1)),t("button",{class:"px-3 rounded bg-white border border-blue-500",onClick:g}," 复制 ")]),t("div",V,d(u.value),1)]),t("section",z,[t("div",Q,[e[1]||(e[1]=t("p",{class:"text-sm text-gray-600"},"已邀请人数",-1)),t("p",S,d(((x=l.value)==null?void 0:x.invite_num)||0)+" 人",1)]),t("div",E,[e[2]||(e[2]=t("p",{class:"text-sm text-gray-600"},"累计获得课时",-1)),t("p",F,d(((p=l.value)==null?void 0:p.invite_reward_num)||0)+" 节",1)])]),t("section",W,[t("details",G,[t("summary",M,[e[3]||(e[3]=t("span",{class:"font-medium text-gray-700"},"查看我的邀请记录",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),t("div",T,[t("table",$,[e[4]||(e[4]=t("thead",null,[t("tr",{class:"border-b border-gray-200"},[t("th",{class:"pb-2"},"昵称"),t("th",{class:"pb-2"},"状态"),t("th",{class:"pb-2"},"奖励")])],-1)),t("tbody",null,[(a(!0),n(k,null,j(l.value.invite_list,(r,f)=>(a(),n("tr",{class:"border-b border-gray-200",key:f},[t("td",q,d(r.invited_user_name),1),t("td",null,[r.invite_status==0?(a(),n("span",H,"未预约")):r.invite_status==1?(a(),n("span",J,"已预约")):r.invite_status==2?(a(),n("span",K,"已体验")):r.invite_status==3?(a(),n("span",O,"已被别人邀请")):C("",!0)]),t("td",P,d(r.reward_text),1)]))),128))])])])])]),e[13]||(e[13]=t("section",{class:"mb-6 p-4 bg-white rounded-xl shadow-sm"},[t("h3",{class:"font-medium text-gray-700 mb-2"},"如何领取奖励?"),t("p",{class:"text-sm text-gray-600 leading-relaxed"}," 邀请好友来完成体验课后,系统会自动放发奖励课时。 ")],-1)),t("section",null,[e[11]||(e[11]=t("h3",{class:"font-medium text-gray-700 mb-3"},"常见问题",-1)),t("div",R,[t("details",U,[t("summary",X,[e[5]||(e[5]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 如何才算成功邀请好友?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[6]||(e[6]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 好友通过您的邀请并完成首次课程学习即视为成功邀请。 ",-1))]),t("details",Y,[t("summary",Z,[e[7]||(e[7]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 奖励何时到账?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[8]||(e[8]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 好友满足条件后的 24 小时内,奖励将自动发放到您的账户中。 ",-1))]),t("details",tt,[t("summary",et,[e[9]||(e[9]=t("span",{class:"text-sm font-medium text-gray-700"},"Q: 是否有限制次数?",-1)),i(c(m),{theme:"outline",class:"fas fa-chevron-down group-open:rotate-180 transition-transform duration-200 text-gray-500"})]),e[10]||(e[10]=t("div",{class:"px-3 pb-3 text-sm text-gray-600"}," A: 本次活动不限制邀请人数,邀请越多奖励越多! ",-1))])])])])}}}),rt=A(st,[["__scopeId","data-v-e9778ab9"]]);export{rt as default};
diff --git a/assets/invite-CwYnYAHR.css b/assets/invite-CwYnYAHR.css
deleted file mode 100644
index 301aaba..0000000
--- a/assets/invite-CwYnYAHR.css
+++ /dev/null
@@ -1 +0,0 @@
-.scrolling-text[data-v-e9778ab9]{display:inline-block;white-space:nowrap;animation:scroll-left-e9778ab9 15s linear infinite}@keyframes scroll-left-e9778ab9{0%{transform:translate(100%)}to{transform:translate(-100%)}}
diff --git a/index.html b/index.html
index 730d5bb..afacfb7 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
-
+