@xcpcio/board-app 0.53.1 → 0.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +1 -1
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-CNaNh1cd.js +1 -0
- package/dist/assets/Board-D7W2MZ4t.js +1 -0
- package/dist/assets/{ContestStateBadge-7wQzxk8G.js → ContestStateBadge-fTJw-IjF.js} +1 -1
- package/dist/assets/Countdown-1A-2QJ7m.js +1 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-CXts-riZ.js +1 -0
- package/dist/assets/{Footer.vue_vue_type_script_setup_true_lang-DKX0udaw.js → Footer.vue_vue_type_script_setup_true_lang-Bk0nFBfB.js} +1 -1
- package/dist/assets/{NavBar-u32CnGNs.js → NavBar-C6sQ5txU.js} +1 -1
- package/dist/assets/Resolver-A6qSPE_R.js +25 -0
- package/dist/assets/{RightArrowIcon-C0kFrdwD.js → RightArrowIcon-ClOVVo1B.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-JUZCaDDe.js → TheInput.vue_vue_type_script_setup_true_lang-D5spkHqx.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-BDZrFekD.js → Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js} +1 -1
- package/dist/assets/{_...all_-DWAxHlYz.js → _...all_-BSvAEkM-.js} +1 -1
- package/dist/assets/_...all_-DmfbP4Ao.js +1 -0
- package/dist/assets/{_name_-9a9T81bP.js → _name_-AmLA_ZW6.js} +1 -1
- package/dist/assets/{about-4fkjm2Q9.js → about-tPNAra1j.js} +1 -1
- package/dist/assets/board-D0VTebOf.js +1 -0
- package/dist/assets/{board-layout-iVgXr9cV.js → board-layout-C2v-fo1W.js} +1 -1
- package/dist/assets/{constant-BloPFjTg.js → constant-b2ZZlr_Y.js} +1 -1
- package/dist/assets/{default-Dfp7T80x.js → default-D4907N0j.js} +1 -1
- package/dist/assets/{headless-mKevhAWY.js → headless-C_cFBCtG.js} +1 -1
- package/dist/assets/{home-DtVjeLJy.js → home-CRZ6rGwZ.js} +1 -1
- package/dist/assets/{index-BjMqMJ9d.js → index-BnOiKE-V.js} +1 -1
- package/dist/assets/index-Bvki346r.js +1 -0
- package/dist/assets/{index-DXoiO_9Q.js → index-CVZtA3I-.js} +3 -3
- package/dist/assets/{index-T0V7hFOw.js → index-ClcpF-3G.js} +1 -1
- package/dist/assets/index-D5Eq7tNN.js +1 -0
- package/dist/assets/{index-CJmQltjE.js → index-DQYGiW5A.js} +1 -1
- package/dist/assets/{index-w4oLejMc.js → index-Dar9HUtt.js} +1 -1
- package/dist/assets/{index-D5ZO7j9A.js → index-XjAdtRAz.js} +1 -1
- package/dist/assets/index-cu4LZbd6.js +1 -0
- package/dist/assets/{index-layout-DcvtlPA2.js → index-layout-Bp7ERlAB.js} +1 -1
- package/dist/assets/{pagination-EiFUbGj_.js → pagination-CHOfWwrE.js} +1 -1
- package/dist/assets/query-C-pLpLZb.js +1 -0
- package/dist/assets/{test-_7cPDLJE.js → test-Bw2mUsPy.js} +1 -1
- package/dist/assets/{use-vmodel-CkMPj1sw.js → use-vmodel-BKVjZ-1P.js} +1 -1
- package/dist/assets/{user-CAaqMJHl.js → user-o9hs8HNN.js} +1 -1
- package/dist/assets/{virtual_pwa-register-Dafkmfjm.js → virtual_pwa-register-8shrxAmh.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/Utility.vue +18 -3
- package/src/composables/useQueryBoardData.ts +28 -14
- package/src/pages/[...all].vue +15 -4
- package/src/shims.d.ts +1 -0
- package/vite.config.ts +8 -8
- package/dist/assets/Board-CdRX5Jlm.js +0 -1
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-Bn95nFBm.js +0 -1
- package/dist/assets/_...all_-BQGY1hVe.js +0 -1
- package/dist/assets/board-loNE7y_y.js +0 -1
- package/dist/assets/index-7LWkxGEA.js +0 -1
- package/dist/assets/index-B6LpxvNH.js +0 -1
- package/dist/assets/index-CLjAIeOP.js +0 -25
- package/dist/assets/useQueryBoardData-DQ09XmE8.js +0 -1
- /package/dist/assets/{index-De6dfmWB.css → Countdown-De6dfmWB.css} +0 -0
- /package/dist/assets/{index-DRiWpQTB.css → Resolver-DRiWpQTB.css} +0 -0
package/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.2/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.2/dist/balloon-512x512.svg" color="#00aba9"><meta name="msapplication-TileColor" content="#00aba9"><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return`${_}/`}{let _="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.2/dist";_=normalizePath(_),window.CDN_HOST=_,window.__toAssetUrl=_=>window.CDN_HOST+_}try{let _=__DATA_HOST__;_=normalizePath(_),window.DATA_HOST=_}catch(_){window.DATA_HOST="/data/"}try{let _=__DATA_REGION__;window.DATA_REGION=_}catch(_){window.DATA_REGION="CN"}try{let _=__DEFAULT_LANG__;window.DEFAULT_LANG=_}catch(_){window.DEFAULT_LANG="en"}</script><script>!function(){localStorage.getItem("vueuse-color-scheme")||localStorage.setItem("vueuse-color-scheme","light");const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===o||e&&"light"!==o)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.2/dist/assets/index-CVZtA3I-.js"></script><link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.53.2/dist/assets/index-BjCWriHl.css"><link rel="manifest" href="/manifest.webmanifest"></head><body class="font-sans"><div id="app"></div><noscript>This website requires JavaScript to function properly. Please enable JavaScript to continue.</noscript><script>try{var umamiJSUrl=__UMAMI_JS_URL__,umamiWebsiteId=__UMAMI_WEBSITE_ID__;!function(){var e=document.createElement("script");e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var plausibleJSUrl=__PLAUSIBLE_JS_URL__,plausibleDataDomain=__PLAUSIBLE_DATA_DOMAIN__;!function(){var e=document.createElement("script");e.src=plausibleJSUrl,e.defer=!0,e.setAttribute("data-domain",plausibleDataDomain);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var baiduAnalyticsId=__BAIDU_ANALYTICS_ID__,_hmt=_hmt||[];!function(){var e=document.createElement("script");e.src=`https://hm.baidu.com/hm.js?${baiduAnalyticsId}`;var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var googleAnalyticsId=__GOOGLE_ANALYTICS_ID__;!function(){var e,t,a,r,c,n;location.port||(e=window,t=document,a="script",r="ga",e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,c=t.createElement(a),n=t.getElementsByTagName(a)[0],c.async=1,c.src="//www.google-analytics.com/analytics.js",n.parentNode.insertBefore(c,n),ga("create",`${googleAnalyticsId}`,"auto"),ga("send","pageview"))}()}catch(e){}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as C,g as b,p as i,q as E,o as s,c as n,h as e,n as L,b as o,K as g,k as f,s as j,A as N,u as F,m as V,C as z,F as I,E as R,G as U}from"./index-CVZtA3I-.js";import{a as A,b as O,d as q,B as G,R as K}from"./index-Dar9HUtt.js";import{B as w}from"./constant-b2ZZlr_Y.js";import{u as M}from"./query-C-pLpLZb.js";const Q={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},X={class:"resolver-team-name",truncate:"","overflow-hidden":""},H={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},J=C({__name:"BalloonBlock",props:{index:null,balloon:null},setup(p){const v=p,k=b(()=>v.index),l=b(()=>v.balloon),c=i(null),u=E(c);function _(t){return[t.location,t.organization,t.name].filter(y=>y).join(" - ")}const m=b(()=>l.value.problem.balloonColor);return(t,d)=>(s(),n("div",{ref_key:"el",ref:c,"h-24":""},[e(u)?(s(),n("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:L([e(k)%2===0?"bg-resolver-bg-0":"bg-resolver-bg-1"])},[o("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:g({backgroundColor:e(m).background_color})},[o("div",{style:g({color:e(m).color})},f(e(l).problem.label),5)],4),o("div",Q,[o("div",X,f(_(e(l).team)),1),d[0]||(d[0]=o("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1))]),o("div",H,f(e(l).submission.timestampToMinute),1)],2)):j("",!0)],512))}}),P={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},W={key:0},Y={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},Z={key:0},ee={key:1},oe={flex:"","flex-col":"","justify-between":""},ae=C({__name:"Balloon",props:{dataSourceUrl:null},setup(p){const v=p,k=N(w),{t:l}=F(),c=i(!1),u=i({}),_=i([]),m=i([]),t=i({}),d=V();function y(){const r=new K(u.value,_.value,m.value);r.buildBalloons(),t.value=r}const{data:a,isError:S,error:T}=M(v.dataSourceUrl,d);z(a,async()=>{var r,h,x;a.value===null||a.value===void 0||(u.value=A((r=a.value)==null?void 0:r.contest),k.value=`${u.value.name} | ${w}`,_.value=O((h=a.value)==null?void 0:h.teams),m.value=q((x=a.value)==null?void 0:x.submissions),y(),c.value=!0)},{immediate:!0});const $=b(()=>t.value.balloons.sort(G.compare).reverse().slice(0,256));return(r,h)=>{const x=J;return s(),n("div",P,[e(c)?(s(),n("div",ee,[o("div",oe,[(s(!0),n(I,null,R(e($),(B,D)=>(s(),U(x,{key:B.key,index:D,balloon:B},null,8,["index","balloon"]))),128))])])):(s(),n("div",W,[o("div",Y,[o("div",null,f(e(l)("common.loading"))+"... ",1),e(S)?(s(),n("div",Z,f(e(T)),1)):j("",!0)])]))])}}});export{ae as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as at,_ as St,T as ie,h as xt,P as ue,a as ce}from"./pagination-CHOfWwrE.js";import{_ as _t,D as de}from"./Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js";import{_ as Ht}from"./TheInput.vue_vue_type_script_setup_true_lang-D5spkHqx.js";import{G as nt,_ as Mt,M as q,S as jt,C as It,e as me,I as pe,f as Gt,g as Vt,T as fe,h as ve,a as ge,b as _e,d as be,R as he}from"./index-Dar9HUtt.js";import{d as D,g as b,p as O,o as l,c as m,b as e,k as g,h as t,K as lt,a as k,w as E,s as h,v as ye,L as ke,z as G,M as xe,f as ut,N as Xt,u as st,C as it,G as X,O as we,P as Wt,F as N,E as H,T as zt,H as Se,Q as vt,R as $e,S as Yt,U as qt,j as W,n as B,V as Te,q as Ce,W as Kt,J as Me,A as Oe,m as Ie,X as ze,Y as Fe,Z as Ae,$ as Pe,D as De}from"./index-CVZtA3I-.js";import{_ as Be}from"./use-vmodel-BKVjZ-1P.js";import{a as Qt,u as Ee}from"./query-C-pLpLZb.js";import{S as Le,b as Ft,C as Ne}from"./index-DQYGiW5A.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{u as wt}from"./index-ClcpF-3G.js";import{_ as Re,a as Ue}from"./ContestStateBadge-fTJw-IjF.js";import{T as At,D as He}from"./constant-b2ZZlr_Y.js";const je={"ml-4":"","mt-2":""},Ge={"ml-4":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},Ve={flex:"","items-center":"","w-full":"","col-span-5":""},Xe={key:0,flex:"","items-center":"","text-sm":""},We={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},Ye={flex:"","items-center":"","w-full":"","col-span-5":""},qe=D({__name:"GiantsOptions",props:{rank:null,orgOptions:null,teamsOptions:null,giants:null},emits:["update:giants"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.giants},set(c){p("update:giants",c)}}),u=O(d.value.filterOrganizations);function f(c,a){u.value=c,d.value.setFilterOrganizations(c)}const o=O(d.value.filterTeams);function _(c,a){o.value=c,d.value.setFilterTeams(c)}const i=b(()=>`${d.value.type===nt.BLUE?"Blue":"Red"} Team`),s=b(()=>d.value.type===nt.BLUE?"#0000FF":"#FF0000");return(c,a)=>{const y=Ht,w=_t;return l(),m("div",je,[e("div",{flex:"","text-sm":"",style:lt({color:t(s)})},g(t(i)),5),e("div",Ge,[a[3]||(a[3]=e("div",{flex:"","items-center":"","text-sm":""}," Name: ",-1)),e("div",Ve,[k(y,{modelValue:t(d).name,"onUpdate:modelValue":a[0]||(a[0]=$=>t(d).name=$),"text-align":"left"},null,8,["modelValue"]),k(w,null,{popper:E(()=>a[2]||(a[2]=[e("div",null," Refresh Name ",-1)])),default:E(()=>[e("div",{"i-material-symbols-refresh":"","cursor-pointer":"",btn:"","text-2xl":"","ml-2":"",onClick:a[1]||(a[1]=$=>t(d).refreshName())})]),_:1})]),v.rank.contest.organization?(l(),m("div",Xe,g(v.rank.contest.organization)+": ",1)):h("",!0),v.rank.contest.organization?(l(),m("div",We,[k(t(at),{options:v.orgOptions,"selected-options":t(u),onSelect:f},null,8,["options","selected-options"])])):h("",!0),a[4]||(a[4]=e("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1)),e("div",Ye,[k(t(at),{options:v.teamsOptions,"selected-options":t(o),onSelect:_},null,8,["options","selected-options"])])])])}}}),Ke={relative:"","inline-flex":"","items-center":"","cursor-pointer":""},Qe=D({__name:"TheCheckbox",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(v){const{modelValue:r}=Be("modelValue");return(n,p)=>(l(),m("label",Ke,[ye(e("input",{"onUpdate:modelValue":p[0]||(p[0]=d=>G(r)?r.value=d:null),type:"checkbox",class:"sr-only peer"},null,512),[[ke,t(r)]]),p[1]||(p[1]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1)),xe(n.$slots,"default")]))}});function Ze(){return`filter-organizations-${ut().path}`}function Je(){return`filter-teams-${ut().path}`}function tn(){const r=`filter-organizations-${ut().path}`;return Xt(r,[])}function en(){const r=`filter-teams-${ut().path}`;return Xt(r,[])}const nn={"w-full":"","font-bold":"","font-mono":"","text-base":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},sn={flex:"","flex-col":"","w-full":""},on={"ml-8":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},an={key:0,flex:"","items-center":"","text-sm":""},ln={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},rn={flex:"","items-center":"","w-full":"","col-span-5":""},un={flex:"","flex-col":"","w-full":""},cn={"ml-4":"","mt-2":""},dn={grid:"","grid-cols-8":"","items-center":""},mn={flex:"","flex-col":"","w-full":""},pn={"ml-4":"","mt-2":""},fn={flex:"","flex-row":""},vn={"w-full":"",flex:"","flex-row-reverse":"","items-center":"","gap-x-4":""},gn=D({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(v,{emit:r}){const n=v,p=r,d=Mt.cloneDeep(n.rankOptions),{t:u}=st(),f=b({get(){return n.isHidden},set(R){p("update:isHidden",R)}}),o=b({get(){return n.rankOptions},set(R){p("update:rankOptions",R)}}),_=b(()=>n.rank),i=b(()=>u("type_menu.options")),s=O(!1);function c(){s.value=!0}function a(){s.value=!1}function y(R){s.value&&R.stopPropagation()}const w=b(()=>_.value.organizations.map(S=>({value:S,text:S}))),$=O(o.value.filterOrganizations);function C(R,S){$.value=R,o.value.setFilterOrganizations(R)}const T=b(()=>_.value.originTeams.map(S=>({value:S.id,text:S.organization?`${S.name} - ${S.organization}`:S.name}))),P=O(o.value.filterTeams);function L(R,S){P.value=R,o.value.setFilterTeams(R)}const J=Qt();function rt(){o.value.battleOfGiants.persist?J.value=o.value.battleOfGiants.ToBase64():J.value=void 0}it(()=>o.value.battleOfGiants.persist,()=>{rt()});async function ct(){o.value.setSelf(d),await Wt(),rt(),f.value=!0}const Q=Ze(),dt=Je();function j(){localStorage.setItem(Q,JSON.stringify($.value)),localStorage.setItem(dt,JSON.stringify(P.value)),rt(),f.value=!0}return(R,S)=>{const Y=Qe,mt=Ht,tt=qe,ot=St;return l(),X(ot,{"is-hidden":t(f),"onUpdate:isHidden":S[5]||(S[5]=V=>G(f)?f.value=V:null),title:t(i),width:"w-200",mt:"mt-4"},{default:E(()=>[e("div",nn,[e("div",sn,[S[7]||(S[7]=e("div",{flex:""}," Filter ",-1)),e("div",on,[t(_).contest.organization?(l(),m("div",an,g(t(_).contest.organization)+": ",1)):h("",!0),t(_).contest.organization?(l(),m("div",ln,[k(t(at),{options:t(w),"selected-options":t($),onSelect:C,onCompositionstart:c,onCompositionend:a,onKeydownCapture:we(y,["delete"])},null,8,["options","selected-options"])])):h("",!0),S[6]||(S[6]=e("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1)),e("div",rn,[k(t(at),{options:t(T),"selected-options":t(P),onSelect:L},null,8,["options","selected-options"])])])]),e("div",un,[S[12]||(S[12]=e("div",{flex:""}," Battle of Giants ",-1)),e("div",cn,[e("div",dn,[S[8]||(S[8]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Enable ",-1)),k(Y,{modelValue:t(o).battleOfGiants.enable,"onUpdate:modelValue":S[0]||(S[0]=V=>t(o).battleOfGiants.enable=V)},null,8,["modelValue"]),S[9]||(S[9]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Equal Teams ",-1)),k(Y,{modelValue:t(o).battleOfGiants.equalTeams,"onUpdate:modelValue":S[1]||(S[1]=V=>t(o).battleOfGiants.equalTeams=V)},null,8,["modelValue"]),S[10]||(S[10]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Persist ",-1)),k(Y,{modelValue:t(o).battleOfGiants.persist,"onUpdate:modelValue":S[2]||(S[2]=V=>t(o).battleOfGiants.persist=V)},null,8,["modelValue"]),S[11]||(S[11]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," TopX ",-1)),k(mt,{modelValue:t(o).battleOfGiants.topX,"onUpdate:modelValue":S[3]||(S[3]=V=>t(o).battleOfGiants.topX=V),"text-align":"left","text-type":"number"},null,8,["modelValue"])])]),k(tt,{rank:t(_),"org-options":t(w),"teams-options":t(T),giants:t(o).battleOfGiants.blueTeam},null,8,["rank","org-options","teams-options","giants"]),k(tt,{rank:t(_),"org-options":t(w),"teams-options":t(T),giants:t(o).battleOfGiants.redTeam},null,8,["rank","org-options","teams-options","giants"])]),e("div",mn,[S[14]||(S[14]=e("div",{flex:""}," Feature ",-1)),e("div",pn,[e("div",fn,[k(Y,{modelValue:t(o).enableAnimatedSubmissions,"onUpdate:modelValue":S[4]||(S[4]=V=>t(o).enableAnimatedSubmissions=V)},{default:E(()=>S[13]||(S[13]=[e("span",{"ml-3":"","text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Submission Queue ",-1)])),_:1},8,["modelValue"])])])]),e("div",vn,[e("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:j},g(t(u)("button.confirm")),1),e("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:ct},g(t(u)("button.cancel")),1)])])]),_:1},8,["is-hidden","title"])}}});function _n(v){const r={backgroundColor:"#fff",color:"#000"};if(v.awards.includes(q.GOLD))return r.backgroundColor="#fff566",r;if(v.awards.includes(q.SILVER))return r.backgroundColor="#ffadd2",r;if(v.awards.includes(q.BRONZE))return r.backgroundColor="#f0c0a0",r;if(v.awards.includes(q.HONORABLE))return r.backgroundColor="#e6f7ff",r}function bn(v){return v.isFirstSolved?"#3db03d":v.isAccepted()?"#e1ffb5":v.isPending()?"#c8d6fa":"#ffd0d0"}var gt=(v=>(v[v.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",v[v.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",v))(gt||{});const hn={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},yn={"h-full":"","w-92":"","pl-1":"",truncate:""},kn={"h-full":"","w-4":""},xn=D({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(v){const r=v,n=b(()=>r.item);function p(){const d=n.value.submission;if(r.lastBlockDisplayType===gt.SUBMISSION_STATUS)return Le[d.status];if(r.lastBlockDisplayType===gt.SUBMIT_TIMESTAMP)return d.timestampToMinute}return(d,u)=>(l(),m("div",hn,[e("div",{"h-full":"","w-10":"",style:lt(t(_n)(t(n).team)),flex:"","justify-center":"","items-center":""},[e("div",null,g(t(n).team.rank),1)],4),e("div",yn,g(t(n).displayName),1),e("div",kn,g(t(n).team.solvedProblemNum),1),e("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:lt({borderColor:t(n).problem.balloonColor.background_color})},g(t(n).problem.label),5),e("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:lt({backgroundColor:("getStandingsStatusColor"in d?d.getStandingsStatusColor:t(bn))(t(n).submission)})},g(p()),5)]))}}),wn={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},Sn={flex:"","flex-col":""},$n={flex:"","flex-col":"","mt-6":""},Tn=D({__name:"AnimatedSubmissionsModal",props:{rank:null},setup(v){const r=v,n=b(()=>r.rank),p=b(()=>{const f=n.value.getSubmissions().sort(jt.compare).reverse();let o=0;const _=10,i=[];let s=0;const c=6,a=[];for(let y=0;y<f.length&&(s<c||o<_);y++){const w=f[y],$=w.teamId,C=w.problemId,T=n.value.teamsMap.get($);if(!T||n.value.filterTeamByOrg(T))continue;const P=n.value.contest.problemsMap.get(C);if(!P)continue;let L=T.name;T.organization&&(L=`${T.organization} - ${L}`);const J={submission:w,team:T,problem:P,displayName:L};o<_&&(i.push(J),++o),w.isSolved&&s<c&&(a.push(J),++s)}return a.reverse(),i.reverse(),{acceptedRes:a,allRes:i}}),d=b(()=>p.value.acceptedRes),u=b(()=>p.value.allRes);return(f,o)=>{const _=xn;return l(),m("div",wn,[e("div",Sn,[e("div",null,[k(zt,{name:"list",tag:"ul"},{default:E(()=>[(l(!0),m(N,null,H(t(d),i=>(l(),m("div",{key:i.submission.id},[k(_,{item:i,"last-block-display-type":t(gt).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),e("div",$n,[e("div",null,[k(zt,{name:"list",tag:"ul"},{default:E(()=>[(l(!0),m(N,null,H(t(u),i=>(l(),m("div",{key:i.submission.id},[e("div",null,[k(_,{item:i,"last-block-display-type":t(gt).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}}),Cn=K(Tn,[["__scopeId","data-v-2db6a8b3"]]),Mn={"w-full":"",flex:"","mt-4":"","gap-4":""},On={btn:"",title:"Submissions",disabled:"true"},In={"w-full":"",flex:"","mt-4":"","gap-4":""},zn=D({__name:"Utility",setup(v){const{t:r}=st(),n=ut(),p=Se(),d=wt("component","board",{transform:String});function u(){window.DATA_SOURCE?d.value="resolver":p.push(`/resolver/?data-source=${n.path}`)}function f(){window.DATA_SOURCE?d.value="balloon":p.push(`/balloon/?data-source=${n.path}`)}function o(){window.DATA_SOURCE?d.value="countdown":p.push(`/countdown/?data-source=${n.path}`)}return(_,i)=>(l(),m(N,null,[e("div",Mn,[e("button",{btn:"",title:"Balloon",onClick:f},g(t(r)("type_menu.balloon")),1),e("button",On,g(t(r)("type_menu.submissions")),1)]),e("div",In,[e("button",{btn:"",title:"Resolver",onClick:u},g(t(r)("type_menu.resolver")),1),e("button",{btn:"",title:"Countdown",onClick:o},g(t(r)("type_menu.countdown")),1)])],64))}});var Zt={exports:{}};(function(v,r){(function(n,p){p()})(vt,function(){function n(i,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function p(i,s,c){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){_(a.response,s,c)},a.onerror=function(){console.error("could not download file")},a.send()}function d(i){var s=new XMLHttpRequest;s.open("HEAD",i,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof vt=="object"&&vt.global===vt?vt:void 0,o=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(i,s,c){var a=f.URL||f.webkitURL,y=document.createElement("a");s=s||i.name||"download",y.download=s,y.rel="noopener",typeof i=="string"?(y.href=i,y.origin===location.origin?u(y):d(y.href)?p(i,s,c):u(y,y.target="_blank")):(y.href=a.createObjectURL(i),setTimeout(function(){a.revokeObjectURL(y.href)},4e4),setTimeout(function(){u(y)},0))}:"msSaveOrOpenBlob"in navigator?function(i,s,c){if(s=s||i.name||"download",typeof i!="string")navigator.msSaveOrOpenBlob(n(i,c),s);else if(d(i))p(i,s,c);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout(function(){u(a)})}}:function(i,s,c,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),typeof i=="string")return p(i,s,c);var y=i.type==="application/octet-stream",w=/constructor/i.test(f.HTMLElement)||f.safari,$=/CriOS\/[\d]+/.test(navigator.userAgent);if(($||y&&w||o)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var L=C.result;L=$?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=L:location=L,a=null},C.readAsDataURL(i)}else{var T=f.URL||f.webkitURL,P=T.createObjectURL(i);a?a.location=P:location.href=P,a=null,setTimeout(function(){T.revokeObjectURL(P)},4e4)}});f.saveAs=_.saveAs=_,v.exports=_})})(Zt);var Fn=Zt.exports;const Pt=$e(Fn);var An=setTimeout;function Pn(v,r){var n=r.useCachedSetTimeout?An:setTimeout;return new Promise(function(p){n(p,v)})}function Dn(v){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.useCachedSetTimeout,p=Pn(v,{useCachedSetTimeout:n});function d(u){return p.then(function(){return u})}return d.then=function(){return p.then.apply(p,arguments)},d.catch=Promise.resolve().catch,d}const Bn={flex:"","flex-col":""},En={"w-160":"","font-bold":""},Ln={"mt-8":""},Nn={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Rn=["disabled"],Un=["disabled"],Hn={key:1,flex:"","justify-center":""},jn=["disabled"],Gn={key:2,flex:"","justify-center":""},Vn=["disabled"],Xn=D({__name:"Export",props:{rank:null},setup(v){const r=v,n=Yt.useToast(),{copy:p,isSupported:d}=qt(),u=b(()=>r.rank),f=O({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),o=O([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"},{value:"icpc-standings-csv",text:"ICPC Standings(csv)"}]),_=O({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1,ICPCStandingsCsvDownload:!1});async function i(){await Wt(),await Dn(16)}async function s(){_.value.CfDatDownload=!0,await i();const $=new It().convert(u.value),C=new Blob([$],{type:"text/plain;charset=utf-8"});Pt.saveAs(C,"contest.dat"),_.value.CfDatDownload=!1}async function c(){if(!d.value){n.warning("clipboard is not supported");return}_.value.CfDatCopy=!0,await i();const $=new It().convert(u.value);p($),_.value.CfDatCopy=!1,n.success("Copy Success")}async function a(){_.value.GeneralXLSXDownload=!0,await i(),new me().convertAndWrite(u.value,`${u.value.contest.name}.xlsx`),_.value.GeneralXLSXDownload=!1}async function y(){_.value.ICPCStandingsCsvDownload=!0,await i();const $=new pe().convert(u.value),C=new Blob([$],{type:"text/csv;charset=utf-8"});Pt.saveAs(C,"standings.csv"),_.value.ICPCStandingsCsvDownload=!1}return(w,$)=>(l(),m("div",Bn,[e("div",En,[k(t(ie),{modelValue:t(f),"onUpdate:modelValue":$[0]||($[0]=C=>G(f)?f.value=C:null),options:t(o),placeholder:"Export Type"},null,8,["modelValue","options"])]),e("div",Ln,[t(f).value==="cf-dat"?(l(),m("div",Nn,[e("button",{disabled:t(_).CfDatDownload,btn:"",onClick:s}," Download ",8,Rn),e("button",{disabled:t(_).CfDatCopy,btn:"",onClick:c}," Copy to Clipboard ",8,Un)])):h("",!0),t(f).value==="general-xlsx"?(l(),m("div",Hn,[e("button",{disabled:t(_).GeneralXLSXDownload,btn:"",onClick:a}," Download ",8,jn)])):h("",!0),t(f).value==="icpc-standings-csv"?(l(),m("div",Gn,[e("button",{disabled:t(_).ICPCStandingsCsvDownload,btn:"",onClick:y}," Download ",8,Vn)])):h("",!0)])]))}});function Ot(v,r,n,p,d,u){return{colors:u,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:v},xAxis:{categories:p,labels:{style:{fontSize:"16px"}},title:{text:r,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:n,style:{fontSize:"16px",height:"320px"}},stackLabels:{enabled:!0,style:{fontSize:"16px"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"{series.name}:{point.y}"},plotOptions:{bar:{stacking:"normal"},column:{stacking:"normal"}},credits:{enabled:!1},series:d}}function Wn(v){const r=[];v.contest.problems.forEach((u,f)=>{r.push({problem_id:u.label,index:f,solved:u.statistics.acceptedNum})}),r.sort((u,f)=>u.solved>f.solved?-1:u.solved<f.solved?1:u.index<f.index?-1:u.index>f.index?1:0);const{cat:n,series:p,colors:d}=(()=>{const u=[],f=[];return r.forEach(i=>{u.push(i.problem_id),f.push(i.solved)}),{cat:u,series:[{name:"队伍数",showInLegend:!1,data:f}],colors:["rgb(124, 181, 236)"]}})();return Ot("题目通过数","题目编号","通过数",n,p,d)}function Yn(v){const r=v.rankStatistics.teamSolvedNum.map((u,f)=>({index:f,cnt:u})),{cat:n,series:p,colors:d}=(()=>{const u=[],f=[];return r.forEach(i=>{u.push(i.index),f.push(i.cnt)}),{cat:u,series:[{name:"队伍数",showInLegend:!1,data:f}],colors:["rgb(124, 181, 236)"]}})();return Ot("队伍过题数","过题数","队伍数",n,p,d)}function qn(v){const{cat:r,series:n,colors:p}=(()=>{const d=[],u=[],f=[],o=[];return v.contest.problems.forEach(s=>{u.push(s.statistics.acceptedNum),f.push(s.statistics.rejectedNum),o.push(s.statistics.pendingNum),d.push(s.label)}),{cat:d,series:[{name:"Accepted",showInLegend:!1,data:u},{name:"Rejected",showInLegend:!1,data:f},{name:"Pending",showInLegend:!1,data:o}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return Ot("提交分类","题目编号","提交数",r,n,p)}function Kn(v,r){const n=r.placeChartPoints.map(d=>{var u,f;return{x:d.timePoint,y:d.rank,showX:Gt(d.timePoint),lastSolved:(u=d.lastSolvedProblem)!=null&&u.label?`Last Solved Problem ${(f=d.lastSolvedProblem)==null?void 0:f.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:n,marker:{symbol:"circle",radius:4,lineWidth:2,fillColor:"yellow",lineColor:"yellow"}}],xAxis:[{allowDecimals:!1,title:{text:"Time(min)"},crosshair:!0}],yAxis:[{allowDecimals:!1,title:{text:"Place"},reversed:!0,gridLineWidth:1}],plotOptions:{line:{color:"#efbc47",dataLabels:{enabled:!1},enableMouseTracking:!0,marker:{enabled:!0,fillColor:"#fff566"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"Time: {point.showX} <br/> Place: {point.y} <br/> {point.lastSolved}"},credits:{enabled:!1},exporting:{enabled:!0},navigation:{menuItemStyle:{fontSize:"10px"}}}}const Qn={class:"w-full",flex:"","flex-col":""},Zn={class:"sm:w-full md:w-[92%]","mx-auto":"","px-4":"","py-4":"","lg:px-6":"","lg:py-6":""},Jn={grid:"","grid-cols-3":"","gap-10":"","space-y-0":""},ts={class:"mx-auto w-[16rem]","p-6":"","xl:p-8":"",flex:"","flex-col":"",border:"","border-gray-100":"","dark:border-gray-600":"","text-center":"","test-gray-900":"","bg-white":"","dark:bg-gray-800":"","dark:text-white":"",shadow:"","rounded-md":""},es={"mb-4":"","text-2xl":"","font-semibold":""},ns={class:"my-8 flex items-baseline justify-center"},ss={class:"mr-2 text-5xl font-extrabold"},os={"mt-8":"","gap-8":"",flex:"","flex-col":""},as=D({__name:"Statistics",props:{rank:null},setup(v){const r=v,{t:n}=st(),p=b(()=>r.rank);function d(){const u=[];return u.push({title:"standings.statistics.head_data.problems",data:p.value.contest.problems.length}),u.push({title:"standings.statistics.head_data.teams",data:p.value.teams.length}),u.push({title:"standings.statistics.head_data.submissions",data:p.value.getSubmissions().length}),u}return(u,f)=>(l(),m("div",Qn,[e("section",null,[e("div",Zn,[e("div",Jn,[(l(!0),m(N,null,H(d(),o=>(l(),m("div",{key:o.title},[e("div",ts,[e("h3",es,g(t(n)(o.title)),1),e("div",ns,[e("span",ss,g(o.data),1)])])]))),128))])])]),e("div",os,[e("div",null,[k(t(xt.Chart),{options:("getSubmitChart"in u?u.getSubmitChart:t(qn))(t(p))},null,8,["options"])]),e("div",null,[k(t(xt.Chart),{options:("getProblemChart"in u?u.getProblemChart:t(Wn))(t(p))},null,8,["options"])]),e("div",null,[k(t(xt.Chart),{options:("getTeamChart"in u?u.getTeamChart:t(Yn))(t(p))},null,8,["options"])])])]))}}),ls=["src"],rs=D({__name:"ReactionVideoModal",props:{isOpen:{type:Boolean},submissionReaction:null,width:null},emits:["close"],setup(v,{emit:r}){const n=v,p=r,d=O(null);function u(){p("close")}function f(o){o.target===o.currentTarget&&u()}return it(()=>n.isOpen,o=>{o&&d.value?d.value.play():d.value&&(d.value.pause(),d.value.currentTime=0)}),(o,_)=>v.isOpen?(l(),m("div",{key:0,fixed:"","inset-0":"",flex:"","items-center":"","justify-center":"","p-2":"","bg-black":"","bg-opacity-50":"","z-2999":"",onClick:f},[e("div",{"bg-white":"",shadow:"",relative:"","overflow-hidden":"",class:B(["h-[100%]",[v.width??"w-[540px]"]]),onClick:_[0]||(_[0]=Te(()=>{},["stop"]))},[e("video",{ref_key:"videoPlayer",ref:d,controls:"",autoplay:"",class:"w-full h-full"},[e("source",{src:v.submissionReaction.url,type:"video/mp4"},null,8,ls),_[1]||(_[1]=W(" Your browser does not support the video tag. "))],512),e("div",{absolute:"","top-0.5":"","right-0.5":"","text-black":"","rounded-md":"","p-2":"","transition-colors":"","duration-300":"","focus:outline-none":"","cursor-pointer":"",onClick:u},_[2]||(_[2]=[e("span",{"i-ion-close-circle-outline":"","text-2xl":""},null,-1)]))],2)])):h("",!0)}}),is={"mx-auto":"","w-full":""},us={key:0,flex:"","justify-start":"","items-start":""},cs={"space-y-3":"",flex:"","flex-col":"","px-4":"","py-3":"","lg:flex-row":"","lg:items-center":"","lg:justify-between":"","lg:space-x-4":"","lg:space-y-0":""},ds={flex:"","flex-shrink-0":"","flex-col":"","md:flex-row":"","md:items-center":"","lg:justify-end":"","space-y-3":"","md:space-x-3":"","md:space-y-0":""},ms={key:0,"w-48":""},ps={key:1,"w-48":""},fs={key:2,"w-68":""},vs={key:3,"w-48":""},gs={key:4},_s={class:"overflow-x-auto"},bs={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},hs={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},ys={key:0,scope:"col",class:"px-4 py-3"},ks={key:1,scope:"col",class:"px-4 py-3"},xs={key:2,scope:"col",class:"px-4 py-3"},ws={key:3,scope:"col",class:"px-4 py-3"},Ss={key:4,scope:"col",class:"px-4 py-3"},$s={"px-4":"","py-2":""},Ts={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Cs={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ms={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Os={flex:"","items-center":""},Is={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},zs={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Fs={flex:"","items-center":""},As={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ps={flex:"","items-center":""},Ds={key:4,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Bs=["onClick"],Es=D({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(v){const r=v,n=b(()=>r.rank),p=b(()=>r.enableFilter),d=b(()=>{if(!p.value)return!1;for(const[F,x]of Object.entries(p.value))if(x===!0)return!0;return!1}),u=O({orgNames:[],teamIds:[],languages:[],statuses:[]}),f=b(()=>n.value.organizations.map(x=>({value:x,text:x}))),o=O([]),_=O({});function i(F,x){o.value=F,_.value=x}const s=b(()=>n.value.originTeams.map(x=>({value:x.id,text:x.organization?`${x.name} - ${x.organization}`:x.name}))),c=O([]),a=O({});function y(F,x){c.value=F,a.value=x}const w=b(()=>n.value.languages.map(A=>({value:A,text:A}))),$=O([]),C=O({});function T(F,x){$.value=F,C.value=x}const P=b(()=>n.value.statuses.map(A=>({value:A,text:Ft[A]}))),L=O([]),J=O({});function rt(F,x){L.value=F,J.value=x}function ct(F){return F.value.toString()}const Q=b(()=>r.submissions.filter(x=>{const A=u.value;if(A.orgNames.length===0&&A.teamIds.length===0&&A.languages.length===0&&A.statuses.length===0)return!0;if(A.teamIds.length>0){for(const U of A.teamIds)if(U===x.teamId)return!0}if(A.orgNames.length>0){const U=n.value.teamsMap.get(x.teamId);for(const pt of A.orgNames)if(pt===(U==null?void 0:U.organization))return!0}if(A.languages.length>0){for(const U of A.languages)if(U===x.language)return!0}if(A.statuses.length>0){for(const U of A.statuses)if(U===x.status)return!0}return!1}).sort(jt.compare).reverse());function dt(){const F={orgNames:[],teamIds:[],languages:[],statuses:[]};F.orgNames=o.value.map(x=>x.value),F.teamIds=c.value.map(x=>x.value),F.languages=$.value.map(x=>x.value),F.statuses=L.value.map(x=>x.value),u.value=F}const j=O(new ue);j.value.currentPage=0,j.value.pageSize=r.pageSize??16,j.value.totalSize=Q.value.length,it(Q,()=>{j.value.totalSize=Q.value.length,j.value.currentPage>=j.value.totalPage&&(j.value.currentPage=j.value.totalPage-1)});const R=b(()=>Q.value.slice(j.value.currentLeft,j.value.currentRight)),S=O(!1);function Y(F){const x="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",A=F.problemId,U=n.value.contest.problemsMap.get(A);if(U==null||!U.balloonColor)return x}function mt(F){const x=F.problemId,A=n.value.contest.problemsMap.get(x);if(!(A==null||!A.balloonColor))return{backgroundColor:A.balloonColor.background_color,color:A.balloonColor.color}}const tt=O(!1),ot=O(null);function V(F){ot.value=F,tt.value=!0}function Tt(){tt.value=!1}return(F,x)=>{var bt,ft,M,z;const A=rs,U=_t,pt=ce;return l(),m("section",null,[e("div",is,[t(tt)?(l(),m("div",us,[k(A,{"is-open":t(tt),"submission-reaction":t(ot),onClose:Tt},null,8,["is-open","submission-reaction"])])):h("",!0),e("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:B({"shadow-md":r.removeBorder!==!0,"sm:rounded-sm":r.removeBorder!==!0})},[e("div",cs,[e("div",ds,[t(n).contest.organization&&((bt=t(p))!=null&&bt.organization)?(l(),m("div",ms,[k(t(at),{options:t(f),"selected-options":t(o),placeholder:t(n).contest.organization,onSelect:i},null,8,["options","selected-options","placeholder"])])):h("",!0),(ft=t(p))!=null&&ft.team?(l(),m("div",ps,[k(t(at),{options:t(s),"selected-options":t(c),placeholder:"Team",onSelect:y},null,8,["options","selected-options"])])):h("",!0),(M=t(p))!=null&&M.status?(l(),m("div",fs,[k(t(at),{options:t(P),"selected-options":t(L),placeholder:"Status","custom-attr":ct,onSelect:rt},null,8,["options","selected-options"])])):h("",!0),(z=t(p))!=null&&z.language&&t(w).length>0?(l(),m("div",vs,[k(t(at),{options:t(w),"selected-options":t($),placeholder:"Language",onSelect:T},null,8,["options","selected-options"])])):h("",!0),t(d)?(l(),m("div",gs,[e("button",{type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",onClick:dt},x[1]||(x[1]=[e("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1),W(" Filter ")]))])):h("",!0)])]),e("div",_s,[e("table",bs,[e("thead",hs,[e("tr",null,[x[2]||(x[2]=e("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),t(n).contest.organization?(l(),m("th",ys,g(t(n).contest.organization),1)):h("",!0),x[3]||(x[3]=e("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),x[4]||(x[4]=e("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),t(n).contest.options.submissionHasTimeField?(l(),m("th",ks," Time ")):h("",!0),t(S)?(l(),m("th",xs," Memory ")):h("",!0),t(n).contest.options.submissionHasLanguageField?(l(),m("th",ws," Answer ")):h("",!0),x[5]||(x[5]=e("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),t(n).contest.options.submissionEnableActionField?(l(),m("th",Ss," Action ")):h("",!0)])]),e("tbody",null,[(l(!0),m(N,null,H(t(R),I=>{var Z,ht,yt;return l(),m("tr",{key:I.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[e("td",$s,[e("span",{class:B(["rounded px-2 py-0.5 text-sm",[Y(I)]]),style:lt(mt(I))},g((Z=t(n).contest.problemsMap.get(I.problemId))==null?void 0:Z.label),7)]),t(n).contest.organization?(l(),m("td",Ts,g((ht=t(n).teamsMap.get(I.teamId))==null?void 0:ht.organization),1)):h("",!0),e("td",Cs,g((yt=t(n).teamsMap.get(I.teamId))==null?void 0:yt.name),1),e("td",{scope:"row",class:B([I.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},g(t(Ft)[I.status]),3),t(n).contest.options.submissionHasTimeField?(l(),m("td",Ms,[e("div",Os,g(`${I.time??0} ms`),1)])):h("",!0),t(S)?(l(),m("td",Is," 0.47 ")):h("",!0),t(n).contest.options.submissionHasLanguageField?(l(),m("td",zs,[e("div",Fs,g(I.language),1)])):h("",!0),e("td",As,[e("div",Ps,[k(U,null,{popper:E(()=>[W(g(I.timestampDisplayFormatWithMilliSecond),1)]),default:E(()=>[W(g(I.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])]),t(n).contest.options.submissionEnableActionField?(l(),m("td",Ds,[k(U,null,{popper:E(()=>x[6]||(x[6]=[W(" Reaction Video ")])),default:E(()=>[I.reaction?(l(),m("div",{key:0,flex:"","items-center":"","justify-start":"","text-lg":"","cursor-pointer":"","i-material-symbols-slow-motion-video":"",onClick:Ct=>V(I.reaction)},null,8,Bs)):h("",!0)]),_:2},1024)])):h("",!0)])}),128))])])]),k(pt,{pagination:t(j),"onUpdate:pagination":x[0]||(x[0]=I=>G(j)?j.value=I:null)},null,8,["pagination"])],2)])])}}}),$t=K(Es,[["__scopeId","data-v-cef293c5"]]),Ls={class:"statistics-0"},Ns=["colspan"],Rs={class:"stnd"},Us={class:"statistics-1"},Hs=["colspan"],js={class:"stnd"},Gs={class:"statistics-0"},Vs=["colspan"],Xs={class:"stnd"},Ws={class:"statistics-1"},Ys=["colspan"],qs={class:"stnd"},Ks={class:"statistics-0"},Qs=["colspan"],Zs={class:"stnd"},Js={class:"statistics-1"},to=["colspan"],eo={class:"stnd"},no={class:"statistics-0"},so=["colspan"],oo={class:"stnd"},ao=D({__name:"BottomStatistics",props:{rank:null},setup(v){const r=v,{t:n}=st(),p=b(()=>r.rank);function d(){let s=3;return p.value.contest.organization&&s++,p.value.contest.badge&&s++,s}function u(s){return s.submittedNum===0?"NaN":`${Math.floor(s.attemptedNum*100/s.submittedNum)}%`}function f(s){return s.submittedNum===0?"NaN":`${Math.floor(s.acceptedNum*100/s.submittedNum)}%`}function o(s){return s.attemptedNum===0?"NaN":`${s.dirt}%`}function _(s){return s.firstSolveSubmissions.length===0?"Null":`${s.firstSolveSubmissions[0].timestampToMinute}`}function i(s){return s.lastSolveSubmissions.length===0?"Null":`${s.lastSolveSubmissions[0].timestampToMinute}`}return(s,c)=>(l(),m(N,null,[e("tr",Ls,[e("td",{class:"empty",colspan:d()},null,8,Ns),e("td",Rs,[e("b",null,g(t(n)("standings.statistics.submitted")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.submittedNum),1)]))),128))]),e("tr",Us,[e("td",{class:"empty",colspan:d()},null,8,Hs),e("td",js,[e("b",null,g(t(n)("standings.statistics.attempted")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.attemptedNum),1),c[0]||(c[0]=e("br",null,null,-1)),e("b",null," ("+g(u(a.statistics))+") ",1)]))),128))]),e("tr",Gs,[e("td",{class:"empty",colspan:d()},null,8,Vs),e("td",Xs,[e("b",null,g(t(n)("standings.statistics.accepted")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.acceptedNum),1),c[1]||(c[1]=e("br",null,null,-1)),e("b",null," ("+g(f(a.statistics))+") ",1)]))),128))]),e("tr",Ws,[e("td",{class:"empty",colspan:d()},null,8,Ys),e("td",qs,[e("b",null,g(t(n)("standings.statistics.dirt")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.attemptedNum-a.statistics.acceptedNum),1),c[2]||(c[2]=e("br",null,null,-1)),e("b",null," ("+g(o(a.statistics))+") ",1)]))),128))]),e("tr",Ks,[e("td",{class:"empty",colspan:d()},null,8,Qs),e("td",Zs,[e("b",null,g(t(n)("standings.statistics.se")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.se.toFixed(2)),1)]))),128))]),e("tr",Js,[e("td",{class:"empty",colspan:d()},null,8,to),e("td",eo,[e("b",null,g(t(n)("standings.statistics.first_solved")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(_(a.statistics)),1)]))),128))]),e("tr",no,[e("td",{class:"empty",colspan:d()},null,8,so),e("td",oo,[e("b",null,g(t(n)("standings.statistics.last_solved")),1)]),(l(!0),m(N,null,H(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(i(a.statistics)),1)]))),128))])],64))}}),lo=K(ao,[["__scopeId","data-v-198c3ef3"]]),ro={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},io=D({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(i){p("update:isHidden",i)}}),u=b(()=>n.rank),f=b(()=>n.team),o=b(()=>n.p),_=b(()=>`${f.value.name} - ${o.value.problem.label}`);return(i,s)=>{const c=$t,a=St;return l(),X(a,{"is-hidden":t(d),"onUpdate:isHidden":s[0]||(s[0]=y=>G(d)?d.value=y:null),title:t(_)},{default:E(()=>[e("div",ro,[k(c,{"w-full":"",rank:t(u),submissions:t(o).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["is-hidden","title"])}}}),uo=D({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(v){const r=v,n=O(!0);function p(){n.value=!1}const d=b(()=>r.rank),u=b(()=>r.team),f=b(()=>r.p);function o(s){return s.isSolved?"+":s.isWrongAnswer?"-":s.isPending?`? ${s.pendingCount}`:""}function _(s){let c="";return s.isUnSubmitted||(c+=`${s.failedCount+Number(s.isSolved)}`),(s.isSolved&&d.value.contest.statusTimeDisplay.correct||s.isPending&&d.value.contest.statusTimeDisplay.pending||s.isWrongAnswer&&d.value.contest.statusTimeDisplay.incorrect)&&(c+=`/${Math.floor(s.lastSubmitTimestamp/60)}`),c}function i(s){return s.isFirstSolved?"first-solve":s.isSolved?"correct":s.isWrongAnswer?"incorrect":s.isPending?"pending":"unattempted"}return(s,c)=>{const a=io;return l(),m("td",{class:B(["stnd",[i(t(f))]])},[e("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:p},[e("div",null,g(o(t(f))),1),e("div",null,g(_(t(f))),1)]),e("div",null,[t(n)?h("",!0):(l(),X(a,{key:0,"is-hidden":t(n),"onUpdate:isHidden":c[0]||(c[0]=y=>G(n)?n.value=y:null),rank:t(d),team:t(u),p:t(f)},null,8,["is-hidden","rank","team","p"]))])],2)}}}),co=K(uo,[["__scopeId","data-v-68dd357b"]]),mo={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},po={flex:"","flex-col":"","items-start":"","gap-y-2":""},fo={key:0},vo={key:1},go={key:2,flex:"","flex-col":"","gap-2":""},_o={key:3},bo=D({__name:"TeamAwards",props:{team:null,rank:null},setup(v){const r=v,n=b(()=>r.team),p=b(()=>r.rank),d=b(()=>r.team.problemStatistics.filter(o=>!!o.isFirstSolved).map(o=>o.problem.label).join(",")),u=b(()=>{const o=r.team.awards;return o.includes(q.GOLD)?{text:"Gold"}:o.includes(q.SILVER)?{text:"Silver"}:o.includes(q.BRONZE)?{text:"Bronze"}:o.includes(q.HONORABLE)?{text:"Honorable"}:null}),f=b(()=>{let o=n.value.rank;return p.value.contest.organization&&(o=n.value.organizationRank),o===1?"1st Place":o===2?"2nd Place":o===3?"3rd Place":""});return(o,_)=>(l(),m("div",mo,[e("div",po,[t(u)?(l(),m("div",fo,g(t(u).text)+" Medalist ",1)):h("",!0),t(f).length>0?(l(),m("div",vo,g(t(f)),1)):h("",!0),t(d).length?(l(),m("div",go,[e("div",null," First Solved Problem "+g(t(d)),1)])):h("",!0),t(n).solvedProblemNum>0?(l(),m("div",_o," Solved "+g(t(n).solvedProblemNum)+" "+g(t(n).solvedProblemNum>1?"Problems":"Problem"),1)):h("",!0)])]))}}),ho={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},yo=["onClick"],Jt=D({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(v,{emit:r}){const n=v,p=r,{t:d}=st(),u=b({get(){return n.currentType},set(_){p("update:currentType",_)}});function f(_){u.value=_}const o=b(()=>n.types.length);return(_,i)=>(l(),m("div",ho,[(l(!0),m(N,null,H(n.types,(s,c)=>(l(),m("button",{key:s,type:"button","px-4":"","py-2":"","my-2":"","text-sm":"","font-medium":"","text-gray-900":"","bg-white":"","dark:bg-gray-700":"","dark:text-white":"","border-gray-200":"","dark:border-gray-600":"","hover:bg-gray-100":"","dark:hover:bg-gray-600":"","hover:text-primary-700":"","dark:hover:text-white":"","focus:z-10":"","focus:ring-2":"","focus:ring-primary-700":"","focus:text-primary-700":"","dark:focus:ring-primary-500":"","dark:focus:text-white":"",class:B({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":c===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":c+1===t(o),border:c===0||c+1===t(o),"border-t border-x md:border-x-0 md:border-b":c>0&&c+1<t(o),"md:border-r-0":c===0,"md:border-l":c>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":t(u)===s}),onClick:a=>f(s)},g(t(d)(`type_menu.${s}`)),11,yo))),128))]))}}),ko=["src"],te=D({__name:"Badge",props:{image:null,widthClass:null},setup(v){const r=v,n=b(()=>r.image),p=b(()=>r.widthClass?r.widthClass:"h-8 w-8");return(d,u)=>t(n).base64?(l(),m("img",{key:0,src:t(Vt)(t(n)),alt:"badge",class:B([t(p)])},null,10,ko)):h("",!0)}}),xo={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},wo={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},So={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},$o={flex:"","flex-row":"","space-x-3":""},To={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Co={flex:"","flex-col":"","justify-start":"","items-start":""},Mo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Oo={key:0,"w-full":"",class:"mt-[-12px]"},Io={key:1,"w-full":""},zo={key:2,"w-full":""},Dt="submissions",Bt="statistics",Et="awards",Fo=D({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(s){p("update:isHidden",s)}}),u=O("submissions"),f=b(()=>n.rank),o=b(()=>n.team),_=b(()=>{let s="";return f.value.contest.organization&&o.value.organization.length>0&&(s+=`${o.value.organization} - `),s+=`${o.value.name}`,o.value.members&&(s+=` - ${o.value.members}`),o.value.coach&&(s+=` - ${o.value.coach}(coach)`),s}),i=[Dt,Bt,Et];return(s,c)=>{const a=te,y=_t,w=Jt,$=$t,C=bo,T=St;return l(),X(T,{"is-hidden":t(d),"onUpdate:isHidden":c[1]||(c[1]=P=>G(d)?d.value=P:null)},{header:E(()=>[e("div",xo,[e("div",wo,[e("div",So,[e("div",$o,[t(o).badge?(l(),X(a,{key:0,image:t(o).badge,"width-class":"h-8 w-8"},null,8,["image"])):h("",!0),k(y,null,{popper:E(()=>[e("div",Co,[e("div",null," TeamID: "+g(t(o).id),1)])]),default:E(()=>[e("h3",To,g(t(_)),1)]),_:1})]),k(w,{"current-type":t(u),"onUpdate:currentType":c[0]||(c[0]=P=>G(u)?u.value=P:null),types:i},null,8,["current-type"])])])])]),default:E(()=>[e("div",Mo,[t(u)===Dt?(l(),m("div",Oo,[k($,{"w-full":"",rank:t(f),submissions:t(o).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):h("",!0),t(u)===Bt?(l(),m("div",Io,[k(t(xt.Chart),{options:("getTeamPlaceChart"in s?s.getTeamPlaceChart:t(Kn))(t(f),t(o))},null,8,["options"])])):h("",!0),t(u)===Et?(l(),m("div",zo,[k(C,{team:t(o),rank:t(f)},null,8,["team","rank"])])):h("",!0)])]),_:1},8,["is-hidden"])}}}),Ao={},Po={class:"color-gray-700 dark:color-gray-200"};function Do(v,r){return l(),m("div",Po,r[0]||(r[0]=[e("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[e("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),e("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),e("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),e("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),e("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),e("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),e("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),e("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),e("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),e("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),e("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),e("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),e("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1)]))}const Bo=K(Ao,[["render",Do]]),Eo={},Lo={class:"color-gray-700 dark:color-gray-200"};function No(v,r){return l(),m("div",Lo,r[0]||(r[0]=[e("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[e("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1)]))}const Ro=K(Eo,[["render",No]]),Uo={key:1,class:"empty flex items-center justify-center"},Ho={flex:""},jo={"float-left":"","pl-2":"","font-serif":""},Go={key:0},Vo={"flex-1":""},Xo=D({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean},giantsType:null},setup(v){const r=v,n=O(null),p=Ce(n),d=O(!0);function u(){d.value=!1}const f=b(()=>r.rank),o=b(()=>r.team);function _(s,c=!1){if(c){if(s.awards.includes(q.GOLD))return"gold";if(s.awards.includes(q.SILVER))return"silver";if(s.awards.includes(q.BRONZE))return"bronze";if(s.awards.includes(q.HONORABLE))return"honorable"}if(r.giantsType!==void 0)switch(r.giantsType){case nt.BLUE:return"bg-blue-400";case nt.RED:return"bg-red-400"}if(r.isFilter)return"filter-team";const a=(f.value.rankStatistics.getTeamSolvedNumIndex(s.solvedProblemNum)-1)%2,y=r.ix%2;return`stand${a}${y}`}function i(){return p.value||r.ix<32}return(s,c)=>{const a=te,y=Ro,w=Bo,$=Fo,C=co;return l(),m("tr",{ref_key:"el",ref:n,class:B(["h-10",[r.isFilter?"filter-team":"",r.giantsType!==void 0?_(r.team):""]])},[i()?(l(),m("td",{key:0,class:B(["stnd",[_(t(o),!0)]])},g(t(o).rank),3)):h("",!0),t(f).contest.badge&&t(o).badge&&i()?(l(),m("td",Uo,[k(a,{image:t(o).badge,"width-class":"h-8 w-8"},null,8,["image"])])):h("",!0),t(f).contest.organization&&i()?(l(),m("td",{key:2,class:B(["stnd",[_(t(o))]])},[e("div",Ho,[e("div",jo,[t(o).organizationRank>-1?(l(),m("div",Go,g(t(o).organizationRank),1)):h("",!0)]),e("div",Vo,g(t(o).organization),1),c[1]||(c[1]=e("div",{"float-right":""},null,-1))])],2)):h("",!0),i()?(l(),m("td",{key:3,class:B(["stnd",[_(t(o))]])},[e("div",{"cursor-pointer":"",onClick:u},[e("span",null,g(t(o).name),1),t(o).group.includes("unofficial")?(l(),X(y,{key:0,"inline-block":""})):h("",!0),t(o).group.includes("girl")?(l(),X(w,{key:1,"inline-block":""})):h("",!0)]),e("div",null,[t(d)?h("",!0):(l(),X($,{key:0,"is-hidden":t(d),"onUpdate:isHidden":c[0]||(c[0]=T=>G(d)?d.value=T:null),rank:t(f),team:t(o)},null,8,["is-hidden","rank","team"]))])],2)):h("",!0),i()?(l(),m("td",{key:4,class:B(["stnd",[_(t(o))]])},g(t(o).solvedProblemNum),3)):h("",!0),i()?(l(),m("td",{key:5,class:B(["stnd",[_(t(o))]])},g(t(o).penaltyToMinute),3)):h("",!0),(l(!0),m(N,null,H(t(o).problemStatistics,T=>(l(),m(N,{key:T.problem.id},[i()?(l(),X(C,{key:0,rank:t(f),team:t(o),p:T},null,8,["rank","team","p"])):h("",!0)],64))),128)),i()?(l(),m("td",{key:6,class:B(["stnd",[_(t(o))]])},g(`${t(o).dirt}%`),3)):h("",!0),i()?(l(),m("td",{key:7,class:B(["stnd",[_(t(o))]])},g(`${t(o).se.toFixed(2)}`),3)):h("",!0)],2)}}}),Wo=K(Xo,[["__scopeId","data-v-e8acef14"]]),Yo={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},qo={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},Ko={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Qo={flex:"","flex-row":"","space-x-3":""},Zo={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Jo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},ta={key:0,"w-full":"",class:"mt-[-12px]"},ea={key:1,"w-full":""},na={key:2,"w-full":""},Lt="submissions",Nt="statistics",Rt="awards",sa=D({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(c){p("update:isHidden",c)}}),u=O("submissions"),f=b(()=>n.rank),o=b(()=>n.problem),_=b(()=>`Problem ${o.value.label}`),i=b(()=>f.value.getSubmissions().filter(c=>c.problemId===o.value.id)),s=[Lt,Nt,Rt];return(c,a)=>{const y=Jt,w=$t,$=St;return l(),X($,{"is-hidden":t(d),"onUpdate:isHidden":a[1]||(a[1]=C=>G(d)?d.value=C:null)},{header:E(()=>[e("div",Yo,[e("div",qo,[e("div",Ko,[e("div",Qo,[e("h3",Zo,g(t(_)),1)]),k(y,{"current-type":t(u),"onUpdate:currentType":a[0]||(a[0]=C=>G(u)?u.value=C:null),types:s},null,8,["current-type"])])])])]),default:E(()=>[e("div",Jo,[t(u)===Lt?(l(),m("div",ta,[k(w,{"w-full":"",rank:t(f),submissions:t(i),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):h("",!0),t(u)===Nt?(l(),m("div",ea)):h("",!0),t(u)===Rt?(l(),m("div",na)):h("",!0)])]),_:1},8,["is-hidden"])}}}),oa=D({__name:"ProblemBlock",props:{rank:null,problem:null},setup(v){const r=v,n=O(!0);function p(){n.value=!1}const d=b(()=>r.rank),u=b(()=>r.problem),f=b(()=>u.value.balloonColor);return(o,_)=>{const i=sa;return l(),m("th",{key:t(u).id,class:"success","text-center":"",style:lt([{width:"3rem"},{"background-color":t(f).background_color,color:t(f).color}])},[e("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:p},[e("div",null,g(t(u).label),1),e("div",null,g(t(u).statistics.acceptedNum),1)]),e("div",null,[t(n)?h("",!0):(l(),X(i,{key:0,"is-hidden":t(n),"onUpdate:isHidden":_[0]||(_[0]=s=>G(n)?n.value=s:null),rank:t(d),problem:t(u)},null,8,["is-hidden","rank","problem"]))])],4)}}}),aa=K(oa,[["__scopeId","data-v-6d613751"]]),la={"text-8xl":"","font-mono":"",flex:"","justify-center":"","items-center":""},ra={flex:"","justify-end":"","items-center":"","text-blue-400":""},ia={flex:"","flex-col":"","items-center":"","justify-center":"","ml-4":""},ua={"text-6xl":""},ca={"text-4xl":""},da={flex:"","justify-start":"","items-center":"","text-red-400":""},ma={flex:"","flex-col":"","items-center":"","justify-center":"","mr-4":""},pa={"text-6xl":""},fa={"text-4xl":""},va=D({__name:"GiantsScoreBoard",props:{battleOfGiants:null},setup(v){const r=v,n=b(()=>r.battleOfGiants);return(p,d)=>(l(),m("div",null,[e("div",la,[e("div",ra,[e("div",null,g(t(n).blueTeam.name),1),e("div",ia,[e("div",ua,g(t(n).blueTeam.totalSolvedProblemNum),1),e("div",ca,g(t(n).blueTeam.totalPenaltyToString),1)])]),d[0]||(d[0]=e("div",{flex:"","justify-center":"","items-center":"","ml-4":"","mr-4":""}," : ",-1)),e("div",da,[e("div",ma,[e("div",pa,g(t(n).redTeam.totalSolvedProblemNum),1),e("div",fa,g(t(n).redTeam.totalPenaltyToString),1)]),e("div",null,g(t(n).redTeam.name),1)])])]))}}),ga={key:0,"mb-4":""},_a={class:"standings","font-mono":"","dark:text-gray-700":""},ba={class:"sticky top-0 z-99"},ha={class:"title",style:{width:"3rem"}},ya={key:0,class:"title",style:{width:"2rem"}},ka={class:"title",style:{width:"3rem"}},xa={class:"title",style:{width:"4rem"}},wa={class:"title",style:{width:"2.5rem"}},Sa={class:"title",style:{width:"2.5rem"}},$a=D({__name:"Standings",props:{rank:null},setup(v){const r=v,{t:n}=st(),p=b(()=>r.rank),d=b(()=>r.rank.teams),u=b(()=>r.rank.options),f=b(()=>r.rank.teams.filter(c=>!!(r.rank.organizations&&r.rank.options.filterOrganizationMap.has(c.organization)||r.rank.options.filterTeamMap.has(c.id)))),o=b(()=>{const s=u.value.battleOfGiants,c=s.blueTeam,a=s.redTeam;c.teams=[],a.teams=[];let y=0,w=0;for(const C of r.rank.teams){const T=c.filterOrganizationMap.has(C.organization)||c.filterTeamMap.has(C.id)?y>=s.topX?null:(y++,nt.BLUE):a.filterOrganizationMap.has(C.organization)||a.filterTeamMap.has(C.id)?w>=s.topX?null:(w++,nt.RED):null;if(T!==null&&(T===nt.BLUE?c.teams.push(C):a.teams.push(C),y===s.topX&&w===s.topX))break}if(s.equalTeams){for(;c.teams.length<a.teams.length;)a.teams.pop();for(;a.teams.length<c.teams.length;)c.teams.pop()}const $=[...c.teams.map(C=>({team:C,giantsType:nt.BLUE})),...a.teams.map(C=>({team:C,giantsType:nt.RED}))];return $.sort((C,T)=>fe.compare(C.team,T.team)),$}),_=b(()=>{let s=0;return p.value.teams.forEach(c=>{s=Math.max(s,c.organization.length)}),s}),i=b(()=>{let s=0;return p.value.teams.forEach(c=>{s=Math.max(s,c.name.length)}),s});return(s,c)=>{const a=va,y=aa,w=_t,$=Wo,C=lo;return l(),m("div",null,[t(u).battleOfGiants.enable?(l(),m("div",ga,[k(a,{"battle-of-giants":t(u).battleOfGiants},null,8,["battle-of-giants"])])):h("",!0),e("div",null,[e("table",_a,[e("thead",ba,[e("tr",null,[e("th",ha,g(t(n)("standings.place")),1),t(p).contest.badge?(l(),m("th",ya,g(t(p).contest.badge),1)):h("",!0),t(p).contest.organization?(l(),m("th",{key:1,class:"title",style:lt({width:`${Math.min(32,Math.ceil(t(_)*1.1))}rem`})},g(t(p).contest.organization),5)):h("",!0),e("th",{class:"title",style:lt({width:`${Math.min(32,Math.ceil(t(i)*1))}rem`})},g(t(n)("standings.team")),5),e("th",ka,g(t(n)("standings.solved")),1),e("th",xa,g(t(n)("standings.penalty")),1),(l(!0),m(N,null,H(t(p).contest.problems,T=>(l(),X(y,{key:`problem-block-${T.id}`,rank:t(p),problem:T},null,8,["rank","problem"]))),128)),e("th",wa,[k(w,{placement:"top"},{popper:E(()=>c[0]||(c[0]=[e("div",null,[W(" number of submits on the "),e("br"),W(" all solved problems / number "),e("br"),W(" of the solved problems ")],-1)])),default:E(()=>[e("div",null,g(t(n)("standings.dirt")),1)]),_:1})]),e("th",Sa,[k(w,{placement:"top"},{popper:E(()=>c[1]||(c[1]=[e("div",null,[W(' "average hardness". '),e("br"),W(" Problem, solved by N teams out of M, "),e("br"),W(" have hardness (M-N)/M. ")],-1)])),default:E(()=>[e("div",null,g(t(n)("standings.se")),1)]),_:1})])])]),e("tbody",null,[t(u).battleOfGiants.enable?(l(!0),m(N,{key:0},H(t(o),(T,P)=>(l(),X($,{key:`giant-team-${T.team.id}`,ix:P,rank:t(p),team:T.team,"giants-type":T.giantsType},null,8,["ix","rank","team","giants-type"]))),128)):h("",!0),(l(!0),m(N,null,H(t(f),(T,P)=>(l(),X($,{key:`filter-${T.id}`,ix:P,rank:t(p),team:T,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(l(!0),m(N,null,H(t(d),(T,P)=>(l(),X($,{key:T.id,ix:P,rank:t(p),team:T},null,8,["ix","rank","team"]))),128)),k(C,{rank:t(p)},null,8,["rank"])])])])])}}}),Ta=K($a,[["__scopeId","data-v-3340f68a"]]),Ca={"font-mono":"",flex:""},Ma=["onClick"],Oa=["href"],Ia={key:1},za=D({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(v,{emit:r}){const n=v,p=r,d=b(()=>{var a;for(const y of n.items)if(y.isDefault)return y.keyword;return(a=n.items)==null?void 0:a[0].keyword}),u=wt(n.queryParamName,d.value,{transform:String}),f=b({get(){return n.currentItem},set(a){p("update:currentItem",a)}}),{t:o,locale:_}=st();function i(a){return a.title?o(a.title):a.titles?a.titles.get(_.value)??a.titles.get(a.defaultLang):""}function s(a){return f.value===a.keyword}function c(a){n.onChange&&n.onChange(a.keyword),!(a.link||a.isModal)&&(f.value=a.keyword,u.value=a.keyword)}return Kt(()=>{(()=>{var a;((a=u.value)==null?void 0:a.length)>0&&((()=>{for(const y of n.items)if(y.titles){for(const[w,$]of y.titles)if(u.value===$){u.value=y.keyword;return}}})(),f.value=u.value,n.onChange&&n.onChange(u.value))})()}),(a,y)=>(l(),m("div",Ca,[e("div",{class:B(["mr-[-4px]",{"flex-row-reverse":n.reverseOrder}]),flex:""},[(l(!0),m(N,null,H(n.items,w=>(l(),m("div",{key:w.keyword,class:B(["second-level-menu-item",[s(w)?"second-level-menu-item-current":""]]),onClick:$=>c(w)},[e("div",null,[w.link?(l(),m("a",{key:0,href:w.link,target:"_blank",title:"Resolver"},g(i(w)),9,Oa)):h("",!0),w.link?h("",!0):(l(),m("div",Ia,g(i(w)),1))])],10,Ma))),128))],2)]))}}),Fa=K(za,[["__scopeId","data-v-421d74d9"]]),Aa={},Pa={flex:"","items-center":"","justify-center":"","dark:text-black":""};function Da(v,r){return l(),m("div",Pa,r[0]||(r[0]=[Me('<table data-v-9e0d419f><tbody data-v-9e0d419f><tr data-v-9e0d419f><td class="gold" data-v-9e0d419f> Gold </td><td class="silver" data-v-9e0d419f> Silver </td><td class="bronze" data-v-9e0d419f> Bronze </td><td class="honorable" data-v-9e0d419f> Honorable </td><td class="first-solve" data-v-9e0d419f> First to solve problem </td><td class="correct" data-v-9e0d419f> Solved problem </td><td class="incorrect" data-v-9e0d419f> Attempted problem </td><td class="pending" data-v-9e0d419f> Pending judgement/Frozen </td></tr></tbody></table>',1)]))}const Ba=K(Aa,[["render",Da],["__scopeId","data-v-9e0d419f"]]),Ea={flex:""},La={flex:""},Na={flex:""},Ra=D({__name:"BoardTab",props:{rank:null},setup(v){const r=v,n=b(()=>r.rank),{t:p}=st(),d=Yt.useToast(),{copy:u,isSupported:f}=qt();let o=null;const _=O(null),i=O(null);function s(){return window?f.value?!0:(d.warning("clipboard is not supported"),o==null||o.hide(),!1):!1}function c(){d.success("copy success"),o==null||o.hide()}function a(){s()&&(u(window.location.href),c())}function y(){if(!s())return;const w=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;u(w),c()}return Kt(()=>{if(_.value&&i.value){const w={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};o=new de(_.value,i.value,w)}}),(w,$)=>{const C=_t;return l(),m("div",Ea,[e("div",null,[k(C,{"w-inherit":""},{popper:E(()=>{var T;return[e("div",La,[e("div",null,g(t(p)("standings.options.calculation_of_penalty"))+": "+g(t(p)(`standings.options.${(T=t(n).contest.options)==null?void 0:T.calculationOfPenalty}`)),1)])]}),default:E(()=>[$[0]||($[0]=e("div",null,[e("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1))]),_:1})]),$[1]||($[1]=e("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1)),e("div",Na,[e("div",{ref_key:"dropdownTriggerEl",ref:i,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),e("div",{ref_key:"dropdownTargetEl",ref:_,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[e("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[e("li",null,[e("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:a}," Copy Page Link ")]),e("li",null,[e("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:y}," Copy Page Code ")])])],512)])])}}}),Ua={key:0},Ha={key:0},ja={key:0},Ga={class:"max-w-[92%]"},Va=["src"],Xa={class:"max-w-[92%]"},Wa={class:"w-[92%]"},Ya={class:"flex font-bold font-mono"},qa={class:"float-left"},Ka={class:"pl-0.5"},Qa={class:"flex-1"},Za={class:"float-right"},Ja={class:"pl-0.5"},tl={class:"mt-2"},el={class:"mt-2 flex font-bold font-mono"},nl={class:"float-left"},sl={class:"flex-1"},ol={class:"float-right"},al={class:"mt-4 flex"},ll={class:"float-left"},rl={class:"float-right"},il={class:"w-[92%]",flex:"","justify-center":""},ul={key:0},cl={key:1,class:"sm:w-full xl:w-[92%]"},dl={key:2,class:"sm:w-full xl:w-[92%]"},ml={key:3},pl={key:4},fl={key:2},Ut="sm:w-[1280px] xl:w-screen",kt="sm:w-[1260px] xl:w-screen",vl=D({__name:"Board",props:{dataSourceUrl:null},setup(v){const r=v,n=ut(),p=Oe(At),{t:d}=st(),u=O(!1),f=O({}),o=O([]),_=O([]),i=O({}),s=Ie(),c=O(new ve),a=O(!1);function y(M){return M.replaceAll("%2F","/")}(()=>{const M=tn(),z=en();M.value.length>0&&c.value.setFilterOrganizations(M.value),z.value.length>0&&c.value.setFilterTeams(z.value)})(),(()=>{const M=Qt();M.value!==null&&M.value!==void 0&&c.value.battleOfGiants.FromBase64(M.value)})();const w=O("all");function $(M){M!==c.value.group&&c.value.setGroup(M)}(()=>{const M=wt("group","all",{transform:String});w.value=M.value,c.value.setGroup(M.value)})();const C=wt("replay-start-time",0,{transform:Number}),T=O(!1);function P(M={force:!1}){if(a.value&&M.force===!1||T.value===!0)return;T.value=!0;const z=new he(f.value,o.value,_.value);z.options=Mt.cloneDeep(c.value),z.setReplayTime(C.value),z.buildRank(),i.value=z,T.value=!1}const{data:L,isError:J,error:rt,refetch:ct}=Ee(r.dataSourceUrl??y(n.path),s);it(L,async()=>{var M,z,I;L.value===null||L.value===void 0||(f.value=ge((M=L.value)==null?void 0:M.contest),p.value=`${f.value.name} | ${At}`,o.value=_e((z=L.value)==null?void 0:z.teams),_.value=be((I=L.value)==null?void 0:I.submissions),!c.value.enableFilterSubmissionsByTimestamp&&(P(),u.value=!0))},{immediate:!0});function Q(){u.value!==!1&&P()}it(c.value,()=>{if(!i.value.options.isNeedReBuildRank(c.value)){i.value.options=Mt.cloneDeep(c.value);return}Q()});{let M=function(){C.value===0?z():(Q(),I())};const{pause:z,resume:I}=ze(()=>{Q()},1e3);M(),it(C,()=>{M()})}const dt=O([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),j=b(()=>i.value.contest.group),R=b(()=>{const M=new Array;for(const[z,I]of j.value){const Z={titles:I.names,defaultLang:I.defaultLang,keyword:z,isDefault:I.isDefault};M.push(Z)}return M}),S=O("rank"),Y=O(!0);function mt(M){M==="options"&&(Y.value=!1)}function tt(){const M=document.documentElement.scrollHeight||document.body.scrollHeight,z=document.documentElement.scrollTop||document.body.scrollTop,I=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return M-z===I}let ot=null;function V(){ot!==null&&clearInterval(ot)}Fe("S",M=>{if(a.value=!a.value,a.value===!0){let I=0,Z="DOWN";ot=setInterval(()=>{if(Z==="DOWN"){if(tt()){Z="UP",P({force:!0});return}I+=2}else{if(I===0){Z="DOWN",P({force:!0});return}I-=2}window.scrollTo({top:I,behavior:"smooth"})},64)}else V()},{dedupe:!1});const Tt=b(()=>{const M=i.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${d("standings.start_time")}${d("common.colon")}${M}`}),F=b(()=>{const M=i.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${d("standings.end_time")}${d("common.colon")}${M}`}),x=b(()=>{const M=i.value.contest.getContestElapsedTime(s.value);return`${d("standings.elapsed")}${d("common.colon")}${M}`}),A=b(()=>{const M=i.value.contest.getContestRemainingTime(s.value);return`${d("standings.remaining")}${d("common.colon")}${M}`}),U=b(()=>i.value.options.enableFilterSubmissionsByTimestamp?Ne.PAUSED:i.value.contest.getContestState(s.value)),pt=b(()=>Gt(i.value.options.timestamp)),bt=Ae(()=>{ct()},30*1e3),ft=Pe();return it(ft,()=>{ft.value!=="hidden"&&bt()}),De(()=>{V()}),(M,z)=>{const I=Ra,Z=Re,ht=Ue,yt=Ba,Ct=Fa,ee=Ta,ne=$t,se=as,oe=Xn,ae=zn,le=Cn,re=gn;return l(),m("div",null,[t(u)?h("",!0):(l(),m("div",Ua,[e("div",{class:B([Ut]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[e("div",null,g(t(d)("common.loading"))+"... ",1),t(J)?(l(),m("div",Ha,g(t(rt)),1)):h("",!0)],2)])),t(u)?(l(),m("div",{key:1,class:B([Ut]),flex:"","flex-col":"","justify-center":"","items-center":""},[t(i).contest.banner?(l(),m("div",ja,[e("div",{class:B([kt]),flex:"","justify-center":"","items-center":""},[e("div",Ga,[e("img",{src:t(Vt)(t(i).contest.banner,`${"DATA_HOST"in M?M.DATA_HOST:t(He)}${y(t(n).path).slice(1)}`),alt:"banner"},null,8,Va)])],2)])):h("",!0),!t(i).contest.banner||t(i).contest.banner&&t(i).contest.bannerMode==="ALL"?(l(),m("div",{key:1,class:B(["title",[kt]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":"","mb-2":""},[e("div",Xa,g(t(i).contest.name),1)],2)):h("",!0),e("div",null,[k(I,{rank:t(i)},null,8,["rank"])]),e("div",{class:B([kt]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[e("div",Wa,[e("div",Ya,[e("div",qa,[W(g(t(Tt)),1),e("sup",Ka,g(t(i).contest.getStartTime().format("z")),1)]),e("div",Qa,[k(Z,{state:t(U),"pending-time":t(i).contest.getContestPendingTime(t(s)),"paused-time":t(pt)},null,8,["state","pending-time","paused-time"])]),e("div",Za,[W(g(t(F)),1),e("sup",Ja,g(t(i).contest.endTime.format("z")),1)])]),e("div",tl,[k(ht,{"rank-options":t(c),"onUpdate:rankOptions":z[0]||(z[0]=et=>G(c)?c.value=et:null),width:t(i).contest.getContestProgressRatio(t(s)),state:t(i).contest.getContestState(t(s)),"need-scroll":!0,rank:t(i),"elapsed-time":t(i).contest.getContestElapsedTime(t(s))},null,8,["rank-options","width","state","rank","elapsed-time"])]),e("div",el,[e("div",nl,g(t(x)),1),e("div",sl,[k(yt)]),e("div",ol,g(t(A)),1)]),e("div",al,[e("div",ll,[k(Ct,{"current-item":t(w),"onUpdate:currentItem":z[1]||(z[1]=et=>G(w)?w.value=et:null),items:t(R),"query-param-name":"group","on-change":$},null,8,["current-item","items"])]),z[5]||(z[5]=e("div",{class:"flex-1"},null,-1)),e("div",rl,[k(Ct,{"current-item":t(S),"onUpdate:currentItem":z[2]||(z[2]=et=>G(S)?S.value=et:null),items:t(dt),"reverse-order":!0,"query-param-name":"type","on-change":mt},null,8,["current-item","items"])])])])],2),e("div",{"mt-4":"",class:B([kt]),flex:"","justify-center":""},[e("div",il,[t(S)==="rank"?(l(),m("div",ul,[k(ee,{rank:t(i)},null,8,["rank"])])):h("",!0),t(S)==="submissions"?(l(),m("div",cl,[k(ne,{"w-full":"",rank:t(i),submissions:t(i).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):h("",!0),t(S)==="statistics"?(l(),m("div",dl,[k(se,{rank:t(i)},null,8,["rank"])])):h("",!0),t(S)==="export"?(l(),m("div",ml,[k(oe,{rank:t(i)},null,8,["rank"])])):h("",!0),t(S)==="utility"?(l(),m("div",pl,[k(ae,{rank:t(i)},null,8,["rank"])])):h("",!0)])],2),t(c).enableAnimatedSubmissions?(l(),m("div",fl,[k(le,{rank:t(i)},null,8,["rank"])])):h("",!0),t(Y)?h("",!0):(l(),X(re,{key:3,"is-hidden":t(Y),"onUpdate:isHidden":z[3]||(z[3]=et=>G(Y)?Y.value=et:null),"rank-options":t(c),"onUpdate:rankOptions":z[4]||(z[4]=et=>G(c)?c.value=et:null),rank:t(i)},null,8,["is-hidden","rank-options","rank"]))],2)):h("",!0)])}}}),Ml=K(vl,[["__scopeId","data-v-18ed769d"]]);export{Ml as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as V}from"./index-
|
|
1
|
+
import{u as V}from"./index-ClcpF-3G.js";import{i as X,f as j}from"./index-Dar9HUtt.js";import{C as i}from"./index-DQYGiW5A.js";import{d as U,g as R,p as n,W as H,D as J,o as v,c as g,b as m,F as K,K as N,k as b,n as D,h as x,s as E}from"./index-CVZtA3I-.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";const Q=U({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(S,{emit:s}){const t=S,M=s,_=R({get(){return t.rankOptions},set(a){M("update:rank-options",a)}}),I=R(()=>{switch(t.state){case i.PENDING:return"am-progress-bar-secondary";case i.RUNNING:return"am-progress-bar-success";case i.FROZEN:return"am-progress-bar-danger";case i.FINISHED:return"am-progress-bar-primary";case i.PAUSED:return"am-progress-bar-danger"}return""}),o=n(!1),T=n(!1),d=n(0),h=n(t.width),W=n(0),p=V("progress-ratio",-1,{transform:Number}),l=n(null),L=n(null),f=n(null),w=n(null),O=n(null);function $(a){T.value=!0;const r=a.clientX-f.value.offsetLeft,k=u=>{var P,F;if(!T.value)return;o.value=!0;let e=u.clientX-r;e=Math.max(e,0),e=Math.min(e,l.value.offsetWidth-f.value.offsetWidth);const C=l.value.offsetWidth*Number.parseInt((P=L.value.style)==null?void 0:P.width)*.01;e>=C&&(e=C,o.value=!1);let c=0;e>0&&(c=Math.round((e+f.value.offsetWidth)/l.value.offsetWidth*1e4)),c>1e4&&(c=1e4),c===1e4&&(o.value=!1),(F=window.getSelection())==null||F.removeAllRanges(),d.value=c,W.value=e,h.value=c*.01},y=()=>{var u,e;document.removeEventListener("mouseup",y),document.removeEventListener("mousemove",k),T.value=!1,o.value===!0?(p.value=d.value,(u=_.value)==null||u.setWidth(d.value,t.rank.contest)):(p.value=void 0,(e=_.value)==null||e.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",k),document.addEventListener("mouseup",y)}function A(){const a=t.rank.contest.getStartTime(),r=t.rank.contest.getEndTime(),k=r.unix()-a.unix(),y=Math.floor(k*h.value*.01),u=X(),e=Math.max(0,Math.min(u.unix(),r.unix())-a.unix());return j(Math.min(y,e))}function G(){return o.value===!0?A():t.elapsedTime}function B(){return o.value===!0?`${Math.max(0,W.value)}px`:`max(calc(0%), min(calc(${t.width}%), calc(100% - 10px)))`}return H(()=>{var a,r;t.needScroll===!0&&(l.value.onmouseenter=()=>{w.value.classList.add("in")},l.value.onmouseleave=()=>{w.value.classList.remove("in")}),p.value!==-1?(o.value=!0,d.value=Math.max(0,Math.min(1e4,p.value)),h.value=d.value*.01,W.value=h.value*.01*l.value.offsetWidth-f.value.offsetWidth,(a=_.value)==null||a.setWidth(p.value,t.rank.contest)):(r=_.value)==null||r.disableFilterSubmissionByTimestamp()}),J(()=>{}),(a,r)=>(v(),g("div",{ref_key:"scroll",ref:l,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[m("div",{ref_key:"mask",ref:L,class:D(["am-progress-bar",[x(I)]]),style:N({width:`${t.width}%`})},[t.needScroll?(v(),g(K,{key:0},[m("div",{ref_key:"tooltip",ref:w,class:"tooltip tooltip-top",style:N({marginLeft:"-32px",bottom:"22px",left:B()})},[m("div",{ref_key:"tooltipInner",ref:O,class:"tooltip-inner"},b(G()),513)],4),m("div",{ref_key:"bar",ref:f,class:D(["am-progress-bar am-progress-cursor am-progress-scroll-size z-99",[x(I)]]),style:N({left:B()}),onMousedown:$},null,38)],64)):E("",!0)],6)],512))}}),oe=z(Q,[["__scopeId","data-v-a7e62f42"]]),Z={flex:"","flex-row":"","items-center":"","justify-center":""},q={key:0,"ml-2":""},Y={key:1,"ml-2":""},ee=U({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(S){const s=S;return(t,M)=>(v(),g("div",Z,[m("div",{class:D(["label",s.state])},null,2),m("div",null,b(s.state),1),s.pendingTime&&s.state===x(i).PENDING?(v(),g("div",q,b(s.pendingTime),1)):E("",!0),s.pausedTime&&s.state===x(i).PAUSED?(v(),g("div",Y,b(s.pausedTime),1)):E("",!0)]))}}),le=z(ee,[["__scopeId","data-v-68586c4d"]]);export{le as _,oe as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as x}from"./index-Dar9HUtt.js";import{C as h}from"./index-DQYGiW5A.js";import{d as y,u as S,A as k,m as N,p as d,C as w,o,c as n,h as t,b as a,k as r,s as T,n as _}from"./index-CVZtA3I-.js";import{b as m}from"./constant-b2ZZlr_Y.js";import{u as E}from"./query-C-pLpLZb.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";const b={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},B={key:0},D={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},U={key:0},j={key:1},F={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},L={key:0},O={key:1},P=y({__name:"Countdown",props:{dataSourceUrl:null},setup(u){const f=u,{t:p}=S(),v=k(m),s=N(),e=d({}),l=d(!1),{data:c,isError:C,error:g}=E(f.dataSourceUrl,s);return w(c,async()=>{var i;c.value===null||c.value===void 0||(e.value=x((i=c.value)==null?void 0:i.contest),v.value=`${e.value.name} | ${m}`,l.value=!0)},{immediate:!0}),(i,V)=>(o(),n("div",b,[t(l)?(o(),n("div",j,[a("div",F,[a("div",{"mt-20":"","text-6xl":"",class:_([t(e).getContestState(t(s)).toString()])},r(t(e).getContestState(t(s))),3),a("div",{"mt-20":"",class:_(["text-[320px]",[t(e).getContestState(t(s)).toString()]])},[t(e).getContestState(t(s))===t(h).PENDING?(o(),n("div",L,r(t(e).getContestPendingTime(t(s))),1)):(o(),n("div",O,r(t(e).getContestElapsedTime(t(s))),1))],2)])])):(o(),n("div",B,[a("div",D,[a("div",null,r(t(p)("common.loading"))+"... ",1),t(C)?(o(),n("div",U,r(t(g)),1)):T("",!0)])]))]))}}),X=I(P,[["__scopeId","data-v-2d2a8baf"]]);export{X as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-D5spkHqx.js";import{d as f,u as _,p as h,f as b,H as g,h as a,o as v,c as S,b as t,a as x,z as U,O as V,k as l,s as k}from"./index-CVZtA3I-.js";import{g as y}from"./query-C-pLpLZb.js";const w={key:0,class:"flex flex-col items-center"},D={"w-128":""},I=["disabled"],u="Data Source URL",K=f({__name:"DataSourceInput",setup(R){const{t:r}=_(),s=y(),e=h(s.value),c=b(),d=g();function n(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(B,o)=>{const i=p;return a(s).length===0?(v(),S("div",w,[t("div",D,[x(i,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=m=>U(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:V(n,["enter"])},null,8,["modelValue"]),t("label",{class:"hidden",for:"input"},l(u))]),o[1]||(o[1]=t("div",{"py-2":""},null,-1)),t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:a(e).length===0,onClick:n},l(a(r)("button.go")),9,I)])])):k("",!0)}}});export{K as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as m}from"./Tooltip.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as m}from"./Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js";import{C as u,D as f,a as p}from"./constant-b2ZZlr_Y.js";import{V as _,a as x,G as T}from"./index-DQYGiW5A.js";import{d as v,r as y,o as A,c as C,b as t,a as l,w as o,j as s,k as i,h as n}from"./index-CVZtA3I-.js";const D={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},H={"text-center":"","w-full":""},g={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},h={"mr-4":"","md:mr-6":""},N=["href"],O={flex:"","justify-center":"","items-start":"","flex-col":""},S={"mr-4":"","md:mr-6":""},R={flex:"","justify-center":"","items-start":"","flex-col":""},k={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""},I=v({__name:"Footer",setup(w){return(r,e)=>{const a=y("RouterLink"),d=m;return A(),C("footer",D,[t("div",H,[l(a,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:o(()=>e[0]||(e[0]=[t("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),s(" Get more balloons ")])),_:1}),e[6]||(e[6]=t("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," Open-source project of ICPC/CCPC Standings. ",-1)),t("ul",g,[t("li",null,[l(a,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:o(()=>e[1]||(e[1]=[s(" Home ")])),_:1})]),t("li",null,[t("div",h,[l(d,null,{popper:o(()=>[t("div",O,[t("div",null,"Tag: "+i(n(_)),1),t("div",null,"Sha: "+i(n(x)),1)])]),default:o(()=>[t("a",{href:n(T),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,N)]),_:1})])]),t("li",null,[t("div",S,[l(d,null,{popper:o(()=>[t("div",R,[t("div",null,"CDN Host: "+i("CDN_HOST"in r?r.CDN_HOST:n(u)),1),t("div",null,"DATA Host: "+i("DATA_HOST"in r?r.DATA_HOST:n(f)),1),t("div",null,"Data Region: "+i("DATA_REGION"in r?r.DATA_REGION:n(p)),1)])]),default:o(()=>[e[2]||(e[2]=t("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1))]),_:1})])])]),t("span",k,[e[4]||(e[4]=s("© 2020-PRESENT ")),l(a,{to:"/","hover:underline":""},{default:o(()=>e[3]||(e[3]=[s("XCPCIO™")])),_:1}),e[5]||(e[5]=s(". All Rights Reserved."))])])])}}});export{I as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c,u as m,e as k,f as h,g as _,r as w,o as C,c as x,b as o,n as s,h as n,a as L,w as B,t as G,l as H,i as I}from"./index-
|
|
1
|
+
import{d as c,u as m,e as k,f as h,g as _,r as w,o as C,c as x,b as o,n as s,h as n,a as L,w as B,t as G,l as H,i as I}from"./index-CVZtA3I-.js";import{G as R,X as y}from"./index-DQYGiW5A.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";const D={class:"right","print:op0":""},N=["title"],O=["title"],T=["href"],$=["href"],E=c({__name:"NavBar",props:{width:null},setup(u){const e=u,{t:i,locale:r}=m(),{y:d}=k(),g=h();function f(){window.scrollTo({top:0,behavior:"smooth"})}async function b(){const l=I,t=l[(l.indexOf(r.value)+1)%l.length];await H(t),r.value=t}const p=_(()=>g.fullPath.startsWith("/rating")?"/rating":"/");return(l,t)=>{const v=w("RouterLink");return C(),x("header",{class:s(["header z-40",[(e==null?void 0:e.width)??""]])},[o("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:s(n(d)>300?"op30":"op0! pointer-events-none"),onClick:t[0]||(t[0]=a=>f())},t[3]||(t[3]=[o("div",{"i-ri-arrow-up-line":""},null,-1)]),2),o("nav",{class:s(["nav",[e!=null&&e.width?"":"fixed"]]),"text-xl":""},[t[9]||(t[9]=o("div",{class:"spacer"},null,-1)),o("div",D,[L(v,{"icon-btn":"",title:n(i)("button.home"),to:n(p),focusable:"false"},{default:B(()=>t[4]||(t[4]=[o("div",{"i-ion-balloon-sharp":""},null,-1)])),_:1},8,["title","to"]),o("a",{"icon-btn":"",title:n(i)("button.toggle_langs"),onClick:t[1]||(t[1]=a=>b())},t[5]||(t[5]=[o("div",{"i-carbon-language":""},null,-1)]),8,N),o("a",{"icon-btn":"",title:n(i)("button.toggle_dark"),onClick:t[2]||(t[2]=a=>("toggleDark"in l?l.toggleDark:n(G))())},t[6]||(t[6]=[o("div",{i:"carbon-sun dark:carbon-moon"},null,-1)]),8,O),o("a",{"icon-btn":"",rel:"noreferrer",href:n(R),target:"_blank",title:"GitHub"},t[7]||(t[7]=[o("div",{"i-carbon-logo-github":""},null,-1)]),8,T),o("a",{"icon-btn":"",rel:"noreferrer",href:n(y),target:"_blank",title:"GitHub"},t[8]||(t[8]=[o("div",{"i-simple-icons-githubsponsors":""},null,-1)]),8,$)])],2)],2)}}}),V=z(E,[["__scopeId","data-v-e157f5ef"]]);export{V as _};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{_ as gn}from"./Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js";import{d as ar,g as Ke,p as mt,o as Z,c as J,n as si,h as R,b as Q,k as pt,a as oi,w as ai,F as Zt,E as ur,j as Ae,s as he,A as yn,u as xn,m as vn,C as je,Y as Tn,a3 as De,W as wn,T as bn}from"./index-CVZtA3I-.js";import{_ as lr}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as Pn,b as Sn,d as kn,m as On}from"./index-Dar9HUtt.js";import{d as Yi}from"./constant-b2ZZlr_Y.js";import{u as Cn}from"./query-C-pLpLZb.js";const Mn={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},An={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},Dn={class:"resolver-team-name",truncate:"","overflow-hidden":""},Rn={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},En={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Fn={class:"w-1/3"},zn={class:"w-2/3"},In=ar({__name:"ResolverTeamRow",props:{index:null,team:null,resolver:null},setup(u){const t=u,e=Ke(()=>t.index),i=Ke(()=>t.team),r=Ke(()=>t.resolver),n=mt(null);function s(o){return[o.organization,o.name].filter(l=>l).join(" - ")}return(o,a)=>{const l=gn;return Z(),J("div",{ref_key:"el",ref:n,"h-24":""},[(Z(),J("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:si([R(e)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one",R(r).duringAnimation&&R(r).currentTeamId===R(i).id?"bg-resolver-selected":"",!R(r).duringAnimation&&R(e)===R(r).currentIndex?"bg-resolver-selected":""])},[Q("div",Mn,[Q("div",null,pt(R(i).rank),1)]),Q("div",An,[oi(l,null,{popper:ai(()=>[Q("div",null,pt(s(R(i))),1)]),default:ai(()=>[Q("div",Dn,pt(s(R(i))),1)]),_:1}),Q("div",Rn,[(Z(!0),J(Zt,null,ur(R(i).problemStatistics,(f,h)=>(Z(),J("div",{key:f.problem.id,class:si(["rounded w-22 h-7 flex justify-center items-center",[f.isAccepted?"bg-resolver-ac":"",f.isWrongAnswer?"bg-resolver-wa":"",f.isPending?"bg-resolver-pending":"",f.isUnSubmitted?"bg-resolver-untouched":"",R(r).problemFlashingEnded===!1&&R(e)===R(r).currentIndex&&R(r).currentProblemIndex===h?"resolver-uncover":""]])},[f.isAccepted?(Z(),J(Zt,{key:0},[Ae(pt(`${f.failedCount+Number(f.isAccepted)}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):he("",!0),f.isWrongAnswer?(Z(),J(Zt,{key:1},[Ae(pt(`${f.failedCount}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):he("",!0),f.isPending?(Z(),J(Zt,{key:2},[Ae(pt(`${f.failedCount} + ${f.pendingCount}`),1)],64)):he("",!0),f.isUnSubmitted?(Z(),J(Zt,{key:3},[Ae(pt(f.problem.label),1)],64)):he("",!0)],2))),128))])]),Q("div",En,[Q("div",Fn,pt(R(i).solvedProblemNum),1),Q("div",zn,pt(R(i).penaltyToMinute),1)])],2))],512)}}}),Ln=lr(In,[["__scopeId","data-v-d1b6b438"]]);function Pt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function fr(u,t){u.prototype=Object.create(t.prototype),u.prototype.constructor=u,u.__proto__=t}/*!
|
|
2
|
+
* GSAP 3.12.5
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
+
*/var ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ne={duration:.5,overwrite:!1,delay:0},bi,q,F,_t=1e8,D=1/_t,ui=Math.PI*2,Bn=ui/4,Nn=0,_r=Math.sqrt,Vn=Math.cos,Yn=Math.sin,$=function(t){return typeof t=="string"},L=function(t){return typeof t=="function"},Ot=function(t){return typeof t=="number"},Pi=function(t){return typeof t>"u"},wt=function(t){return typeof t=="object"},tt=function(t){return t!==!1},Si=function(){return typeof window<"u"},Re=function(t){return L(t)||$(t)},hr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},K=Array.isArray,li=/(?:-?\.?\d|\.)+/gi,cr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Jt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,He=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dr=/[+-]=-?[.\d]+/,pr=/[^,'"\[\]\s]+/gi,Un=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,gt,fi,ki,lt={},Be={},mr,gr=function(t){return(Be=Kt(t,lt))&&nt},Oi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ye=function(t,e){return!e&&console.warn(t)},yr=function(t,e){return t&&(lt[t]=e)&&Be&&(Be[t]=e)||lt},xe=function(){return 0},Xn={suppressEvents:!0,isStart:!0,kill:!1},Fe={suppressEvents:!0,kill:!1},$n={suppressEvents:!0},Ci={},Rt=[],_i={},xr,st={},Qe={},Ui=30,ze=[],Mi="",Ai=function(t){var e=t[0],i,r;if(wt(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=ze.length;r--&&!ze[r].targetTest(e););i=ze[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Xr(t[r],i)))||t.splice(r,1);return t},$t=function(t){return t._gsap||Ai(ht(t))[0]._gsap},vr=function(t,e,i){return(i=t[e])&&L(i)?t[e]():Pi(i)&&t.getAttribute&&t.getAttribute(e)||i},et=function(t,e){return(t=t.split(",")).forEach(e)||t},B=function(t){return Math.round(t*1e5)/1e5||0},X=function(t){return Math.round(t*1e7)/1e7||0},ee=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},Gn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Ne=function(){var t=Rt.length,e=Rt.slice(0),i,r;for(_i={},Rt.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Tr=function(t,e,i,r){Rt.length&&!q&&Ne(),t.render(e,i,q&&e<0&&(t._initted||t._startAt)),Rt.length&&!q&&Ne()},wr=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(pr).length<2?e:$(t)?t.trim():t},br=function(t){return t},ct=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Wn=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},Kt=function(t,e){for(var i in e)t[i]=e[i];return t},Xi=function u(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=wt(e[i])?u(t[i]||(t[i]={}),e[i]):e[i]);return t},Ve=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},pe=function(t){var e=t.parent||z,i=t.keyframes?Wn(K(t.keyframes)):ct;if(tt(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},qn=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Pr=function(t,e,i,r,n){var s=t[r],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Ge=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},zt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Gt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Kn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},hi=function(t,e,i,r){return t._startAt&&(q?t._startAt.revert(Fe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},jn=function u(t){return!t||t._ts&&u(t.parent)},$i=function(t){return t._repeat?se(t._tTime,t=t.duration()+t._rDelay)*t:0},se=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Ye=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},We=function(t){return t._end=X(t._start+(t._tDur/Math.abs(t._ts||t._rts||D)||0))},qe=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=X(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),We(t),i._dirty||Gt(i,t)),t},Sr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Ye(t.rawTime(),e),(!e._dur||Oe(0,e.totalDuration(),i)-e._tTime>D)&&e.render(i,!0)),Gt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-D}},yt=function(t,e,i,r){return e.parent&&zt(e),e._start=X((Ot(i)?i:i||t!==z?ft(t,i,e):t._time)+e._delay),e._end=X(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Pr(t,e,"_first","_last",t._sort?"_start":0),ci(e)||(t._recent=e),r||Sr(t,e),t._ts<0&&qe(t,t._tTime),t},kr=function(t,e){return(lt.ScrollTrigger||Oi("scrollTrigger",e))&<.ScrollTrigger.create(e,t)},Or=function(t,e,i,r,n){if(Ri(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!q&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&xr!==ot.frame)return Rt.push(t),t._lazy=[n,r],1},Hn=function u(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||u(e))},ci=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Qn=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&Hn(t)&&!(!t._initted&&ci(t))||(t._ts<0||t._dp._ts<0)&&!ci(t))?0:1,o=t._rDelay,a=0,l,f,h;if(o&&t._repeat&&(a=Oe(0,t._tDur,e),f=se(a,o),t._yoyo&&f&1&&(s=1-s),f!==se(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||q||r||t._zTime===D||!e&&t._zTime){if(!t._initted&&Or(t,e,r,i,a))return;for(h=t._zTime,t._zTime=e||(i?D:0),i||(i=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=a,l=t._pt;l;)l.r(s,l.d),l=l._next;e<0&&hi(t,e,i,!0),t._onUpdate&&!i&&at(t,"onUpdate"),a&&t._repeat&&!i&&t.parent&&at(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&zt(t,1),!i&&!q&&(at(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Zn=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}},oe=function(t,e,i,r){var n=t._repeat,s=X(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:X(s*(n+1)+t._rDelay*n):s,o>0&&!r&&qe(t,t._tTime=t._tDur*o),t.parent&&We(t),i||Gt(t.parent,t),t},Gi=function(t){return t instanceof j?Gt(t):oe(t,t._dur)},Jn={_start:0,endTime:xe,totalDuration:xe},ft=function u(t,e,i){var r=t.labels,n=t._recent||Jn,s=t.duration()>=_t?n.endTime(!1):t._dur,o,a,l;return $(e)&&(isNaN(e)||e in r)?(a=e.charAt(0),l=e.substr(-1)==="%",o=e.indexOf("="),a==="<"||a===">"?(o>=0&&(e=e.replace(/=/,"")),(a==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(o<0?n:i).totalDuration()/100:1)):o<0?(e in r||(r[e]=s),r[e]):(a=parseFloat(e.charAt(o-1)+e.substr(o+1)),l&&i&&(a=a/100*(K(i)?i[0]:i).totalDuration()),o>1?u(t,e.substr(0,o-1),i)+a:s+a)):e==null?s:+e},me=function(t,e,i){var r=Ot(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],o,a;if(r&&(s.duration=e[1]),s.parent=i,t){for(o=s,a=i;a&&!("immediateRender"in o);)o=a.vars.defaults||{},a=tt(a.vars.inherit)&&a.parent;s.immediateRender=tt(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new V(e[0],s,e[n+1])},Lt=function(t,e){return t||t===0?e(t):e},Oe=function(t,e,i){return i<t?t:i>e?e:i},W=function(t,e){return!$(t)||!(e=Un.exec(t))?"":e[1]},ts=function(t,e,i){return Lt(i,function(r){return Oe(t,e,r)})},di=[].slice,Cr=function(t,e){return t&&wt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&wt(t[0]))&&!t.nodeType&&t!==gt},es=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return $(r)&&!e||Cr(r,1)?(n=i).push.apply(n,ht(r)):i.push(r)})||i},ht=function(t,e,i){return F&&!e&&F.selector?F.selector(t):$(t)&&!i&&(fi||!ae())?di.call((e||ki).querySelectorAll(t),0):K(t)?es(t,i):Cr(t)?di.call(t,0):t?[t]:[]},pi=function(t){return t=ht(t)[0]||ye("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ht(e,i.querySelectorAll?i:i===t?ye("Invalid scope")||ki.createElement("div"):t)}},Mr=function(t){return t.sort(function(){return .5-Math.random()})},Ar=function(t){if(L(t))return t;var e=wt(t)?t:{each:t},i=Wt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},o=r>0&&r<1,a=isNaN(r)||o,l=e.axis,f=r,h=r;return $(r)?f=h={center:.5,edges:.5,end:1}[r]||0:!o&&a&&(f=r[0],h=r[1]),function(c,d,m){var _=(m||e).length,p=s[_],x,g,v,T,y,b,P,S,w;if(!p){if(w=e.grid==="auto"?0:(e.grid||[1,_t])[1],!w){for(P=-_t;P<(P=m[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(p=s[_]=[],x=a?Math.min(w,_)*f-.5:r%w,g=w===_t?0:a?_*h/w-.5:r/w|0,P=0,S=_t,b=0;b<_;b++)v=b%w-x,T=g-(b/w|0),p[b]=y=l?Math.abs(l==="y"?T:v):_r(v*v+T*T),y>P&&(P=y),y<S&&(S=y);r==="random"&&Mr(p),p.max=P-S,p.min=S,p.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?l==="y"?_/w:w:Math.max(w,_/w))||0)*(r==="edges"?-1:1),p.b=_<0?n-_:n,p.u=W(e.amount||e.each)||0,i=i&&_<0?Vr(i):i}return _=(p[c]-p.min)/p.max||0,X(p.b+(i?i(_):_)*p.v)+p.u}},mi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=X(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ot(i)?0:W(i))}},Dr=function(t,e){var i=K(t),r,n;return!i&&wt(t)&&(r=i=t.radius||_t,t.values?(t=ht(t.values),(n=!Ot(t[0]))&&(r*=r)):t=mi(t.increment)),Lt(e,i?L(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var o=parseFloat(n?s.x:s),a=parseFloat(n?s.y:0),l=_t,f=0,h=t.length,c,d;h--;)n?(c=t[h].x-o,d=t[h].y-a,c=c*c+d*d):c=Math.abs(t[h]-o),c<l&&(l=c,f=h);return f=!r||l<=r?t[f]:s,n||f===s||Ot(s)?f:f+W(s)}:mi(t))},Rr=function(t,e,i,r){return Lt(K(t)?!e:i===!0?!!(i=0):!r,function(){return K(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},is=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(n,s){return s(n)},r)}},rs=function(t,e){return function(i){return t(parseFloat(i))+(e||W(i))}},ns=function(t,e,i){return Fr(t,e,0,1,i)},Er=function(t,e,i){return Lt(i,function(r){return t[~~e(r)]})},ss=function u(t,e,i){var r=e-t;return K(t)?Er(t,u(0,t.length),e):Lt(i,function(n){return(r+(n-t)%r)%r+t})},os=function u(t,e,i){var r=e-t,n=r*2;return K(t)?Er(t,u(0,t.length-1),e):Lt(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},ve=function(t){for(var e=0,i="",r,n,s,o;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),o=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(o?pr:li),i+=t.substr(e,r-e)+Rr(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},Fr=function(t,e,i,r,n){var s=e-t,o=r-i;return Lt(n,function(a){return i+((a-t)/s*o||0)})},as=function u(t,e,i,r){var n=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!n){var s=$(t),o={},a,l,f,h,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(K(t)&&!K(e)){for(f=[],h=t.length,c=h-2,l=1;l<h;l++)f.push(u(t[l-1],t[l]));h--,n=function(m){m*=h;var _=Math.min(c,~~m);return f[_](m-_)},i=e}else r||(t=Kt(K(t)?[]:{},t));if(!f){for(a in e)Di.call(o,t,a,"get",e[a]);n=function(m){return zi(m,o)||(s?t.p:t)}}}return Lt(i,n)},Wi=function(t,e,i){var r=t.labels,n=_t,s,o,a;for(s in r)o=r[s]-e,o<0==!!i&&o&&n>(o=Math.abs(o))&&(a=s,n=o);return a},at=function(t,e,i){var r=t.vars,n=r[e],s=F,o=t._ctx,a,l,f;if(n)return a=r[e+"Params"],l=r.callbackScope||t,i&&Rt.length&&Ne(),o&&(F=o),f=a?n.apply(l,a):n.call(l),F=s,f},ce=function(t){return zt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!q),t.progress()<1&&at(t,"onInterrupt"),t},te,zr=[],Ir=function(t){if(t)if(t=!t.name&&t.default||t,Si()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:xe,render:zi,add:Di,kill:bs,modifier:ws,rawVars:0},s={targetTest:0,get:0,getSetter:Fi,aliases:{},register:0};if(ae(),t!==r){if(st[e])return;ct(r,ct(Ve(t,n),s)),Kt(r.prototype,Kt(n,Ve(t,s))),st[r.prop=e]=r,t.targetTest&&(ze.push(r),Ci[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}yr(e,r),t.register&&t.register(nt,r,it)}else zr.push(t)},C=255,de={aqua:[0,C,C],lime:[0,C,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,C],navy:[0,0,128],white:[C,C,C],olive:[128,128,0],yellow:[C,C,0],orange:[C,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[C,0,0],pink:[C,192,203],cyan:[0,C,C],transparent:[C,C,C,0]},Ze=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*C+.5|0},Lr=function(t,e,i){var r=t?Ot(t)?[t>>16,t>>8&C,t&C]:0:de.black,n,s,o,a,l,f,h,c,d,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),de[t])r=de[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&C,r&C,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&C,t&C]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(li),!e)a=+r[0]%360/360,l=+r[1]/100,f=+r[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,r.length>3&&(r[3]*=1),r[0]=Ze(a+1/3,n,s),r[1]=Ze(a,n,s),r[2]=Ze(a-1/3,n,s);else if(~t.indexOf("="))return r=t.match(cr),i&&r.length<4&&(r[3]=1),r}else r=t.match(li)||de.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/C,s=r[1]/C,o=r[2]/C,h=Math.max(n,s,o),c=Math.min(n,s,o),f=(h+c)/2,h===c?a=l=0:(d=h-c,l=f>.5?d/(2-h-c):d/(h+c),a=h===n?(s-o)/d+(s<o?6:0):h===s?(o-n)/d+2:(n-s)/d+4,a*=60),r[0]=~~(a+.5),r[1]=~~(l*100+.5),r[2]=~~(f*100+.5)),i&&r.length<4&&(r[3]=1),r},Br=function(t){var e=[],i=[],r=-1;return t.split(Et).forEach(function(n){var s=n.match(Jt)||[];e.push.apply(e,s),i.push(r+=s.length+1)}),e.c=i,e},qi=function(t,e,i){var r="",n=(t+r).match(Et),s=e?"hsla(":"rgba(",o=0,a,l,f,h;if(!n)return t;if(n=n.map(function(c){return(c=Lr(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(f=Br(t),a=i.c,a.join(r)!==f.c.join(r)))for(l=t.replace(Et,"1").split(Jt),h=l.length-1;o<h;o++)r+=l[o]+(~a.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:i).shift());if(!l)for(l=t.split(Et),h=l.length-1;o<h;o++)r+=l[o]+n[o];return r+l[h]},Et=function(){var u="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in de)u+="|"+t+"\\b";return new RegExp(u+")","gi")}(),us=/hsl[a]?\(/,Nr=function(t){var e=t.join(" "),i;if(Et.lastIndex=0,Et.test(e))return i=us.test(e),t[1]=qi(t[1],i),t[0]=qi(t[0],i,Br(t[1])),!0},Te,ot=function(){var u=Date.now,t=500,e=33,i=u(),r=i,n=1e3/240,s=n,o=[],a,l,f,h,c,d,m=function _(p){var x=u()-r,g=p===!0,v,T,y,b;if((x>t||x<0)&&(i+=x-e),r+=x,y=r-i,v=y-s,(v>0||g)&&(b=++h.frame,c=y-h.time*1e3,h.time=y=y/1e3,s+=v+(v>=n?4:n-v),T=1),g||(a=l(_)),T)for(d=0;d<o.length;d++)o[d](y,c,b,p)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(p){return c/(1e3/(p||60))},wake:function(){mr&&(!fi&&Si()&&(gt=fi=window,ki=gt.document||{},lt.gsap=nt,(gt.gsapVersions||(gt.gsapVersions=[])).push(nt.version),gr(Be||gt.GreenSockGlobals||!gt.gsap&>||{}),zr.forEach(Ir)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,a&&h.sleep(),l=f||function(p){return setTimeout(p,s-h.time*1e3+1|0)},Te=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(a),Te=0,l=xe},lagSmoothing:function(p,x){t=p||1/0,e=Math.min(x||33,t)},fps:function(p){n=1e3/(p||240),s=h.time*1e3+n},add:function(p,x,g){var v=x?function(T,y,b,P){p(T,y,b,P),h.remove(v)}:p;return h.remove(p),o[g?"unshift":"push"](v),ae(),v},remove:function(p,x){~(x=o.indexOf(p))&&o.splice(x,1)&&d>=x&&d--},_listeners:o},h}(),ae=function(){return!Te&&ot.wake()},k={},ls=/^[\d.\-M][\d.\-,\s]/,fs=/["']/g,_s=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,o,a,l;n<s;n++)a=i[n],o=n!==s-1?a.lastIndexOf(","):a.length,l=a.substr(0,o),e[r]=isNaN(l)?l.replace(fs,"").trim():+l,r=a.substr(o+1).trim();return e},hs=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},cs=function(t){var e=(t+"").split("("),i=k[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[_s(e[1])]:hs(t).split(",").map(wr)):k._CE&&ls.test(t)?k._CE("",t):i},Vr=function(t){return function(e){return 1-t(1-e)}},Yr=function u(t,e){for(var i=t._first,r;i;)i instanceof j?u(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?u(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Wt=function(t,e){return t&&(L(t)?t:k[t]||cs(t))||e},Ht=function(t,e,i,r){i===void 0&&(i=function(a){return 1-e(1-a)}),r===void 0&&(r=function(a){return a<.5?e(a*2)/2:1-e((1-a)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return et(t,function(o){k[o]=lt[o]=n,k[s=o.toLowerCase()]=i;for(var a in n)k[s+(a==="easeIn"?".in":a==="easeOut"?".out":".inOut")]=k[o+"."+a]=n[a]}),n},Ur=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Je=function u(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ui*(Math.asin(1/r)||0),o=function(f){return f===1?1:r*Math.pow(2,-10*f)*Yn((f-s)*n)+1},a=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:Ur(o);return n=ui/n,a.config=function(l,f){return u(t,l,f)},a},ti=function u(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:Ur(i);return r.config=function(n){return u(t,n)},r};et("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,t){var e=t<5?t+1:t;Ht(u+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});k.Linear.easeNone=k.none=k.Linear.easeIn;Ht("Elastic",Je("in"),Je("out"),Je());(function(u,t){var e=1/t,i=2*e,r=2.5*e,n=function(o){return o<e?u*o*o:o<i?u*Math.pow(o-1.5/t,2)+.75:o<r?u*(o-=2.25/t)*o+.9375:u*Math.pow(o-2.625/t,2)+.984375};Ht("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Ht("Expo",function(u){return u?Math.pow(2,10*(u-1)):0});Ht("Circ",function(u){return-(_r(1-u*u)-1)});Ht("Sine",function(u){return u===1?1:-Vn(u*Bn)+1});Ht("Back",ti("in"),ti("out"),ti());k.SteppedEase=k.steps=lt.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0,s=1-D;return function(o){return((r*Oe(0,s,o)|0)+n)*i}}};ne.ease=k["quad.out"];et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(u){return Mi+=u+","+u+"Params,"});var Xr=function(t,e){this.id=Nn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:vr,this.set=e?e.getSetter:Fi},we=function(){function u(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,oe(this,+e.duration,1,1),this.data=e.data,F&&(this._ctx=F,F.data.push(this)),Te||ot.wake()}var t=u.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,oe(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(ae(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(qe(this,i),!n._dp||n.parent||Sr(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&yt(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===D||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),Tr(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+$i(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+$i(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?se(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-D?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?Ye(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-D?0:this._rts,this.totalTime(Oe(-Math.abs(this._delay),this._tDur,n),r!==!1),We(this),Kn(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ae(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==D&&(this._tTime-=D)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&yt(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(tt(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ye(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=$n);var r=q;return q=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),q=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Gi(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Gi(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(ft(this,i),tt(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,tt(r))},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-D:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-D,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(!0))>=r&&n<this.endTime(!0)-D)},t.eventCallback=function(i,r,n){var s=this.vars;return arguments.length>1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=L(i)?i:br,o=function(){var l=r.then;r.then=null,L(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?o():r._prom=o})},t.kill=function(){ce(this)},u}();ct(we.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-D,_prom:0,_ps:!1,_rts:1});var j=function(u){fr(t,u);function t(i,r){var n;return i===void 0&&(i={}),n=u.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=tt(i.sortChildren),z&&yt(i.parent||z,Pt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&kr(Pt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return me(0,arguments,this),this},e.from=function(r,n,s){return me(1,arguments,this),this},e.fromTo=function(r,n,s,o){return me(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,pe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new V(r,n,ft(this,s),1),this},e.call=function(r,n,s){return yt(this,V.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,o,a,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new V(r,s,ft(this,a)),this},e.staggerFrom=function(r,n,s,o,a,l,f){return s.runBackwards=1,pe(s).immediateRender=tt(s.immediateRender),this.staggerTo(r,n,s,o,a,l,f)},e.staggerFromTo=function(r,n,s,o,a,l,f,h){return o.startAt=s,pe(o).immediateRender=tt(o.immediateRender),this.staggerTo(r,n,o,a,l,f,h)},e.render=function(r,n,s){var o=this._time,a=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=r<=0?0:X(r),h=this._zTime<0!=r<0&&(this._initted||!l),c,d,m,_,p,x,g,v,T,y,b,P;if(this!==z&&f>a&&r>=0&&(f=a),f!==this._tTime||s||h){if(o!==this._time&&l&&(f+=this._time-o,r+=this._time-o),c=f,T=this._start,v=this._ts,x=!v,h&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(b=this._yoyo,p=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(p*100+r,n,s);if(c=X(f%p),f===a?(_=this._repeat,c=l):(_=~~(f/p),_&&_===f/p&&(c=l,_--),c>l&&(c=l)),y=se(this._tTime,p),!o&&this._tTime&&y!==_&&this._tTime-y*p-this._dur<=0&&(y=_),b&&_&1&&(c=l-c,P=1),_!==y&&!this._lock){var S=b&&y&1,w=S===(b&&_&1);if(_<y&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(P?0:X(_*p)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,a=this._tDur,w&&(this._lock=2,o=S?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Yr(this,P)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=Zn(this,X(o),X(c)),g&&(f-=c-(c=g._start))),this._tTime=f,this._time=c,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,o=0),!o&&c&&!n&&!_&&(at(this,"onStart"),this._tTime!==f))return this;if(c>=o&&r>=0)for(d=this._first;d;){if(m=d._next,(d._act||c>=d._start)&&d._ts&&g!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=-D);break}}d=m}else{d=this._last;for(var O=r<0?r:c;d;){if(m=d._prev,(d._act||O<=d._end)&&d._ts&&g!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(O-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(O-d._start)*d._ts,n,s||q&&(d._initted||d._startAt)),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=O?-D:D);break}}d=m}}if(g&&!n&&(this.pause(),g.render(c>=o?0:-D)._zTime=c>=o?1:-1,this._ts))return this._start=T,We(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===a&&this._tTime>=this.totalDuration()||!f&&o)&&(T===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(f===a&&this._ts>0||!f&&this._ts<0)&&zt(this,1),!n&&!(r<0&&!o)&&(f||o||!a)&&(at(this,f===a&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<a&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Ot(n)||(n=ft(this,n,r)),!(r instanceof we)){if(K(r))return r.forEach(function(o){return s.add(o,n)}),this;if($(r))return this.addLabel(r,n);if(L(r))r=V.delayedCall(0,r);else return this}return this!==r?yt(this,r,n):this},e.getChildren=function(r,n,s,o){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-_t);for(var a=[],l=this._first;l;)l._start>=o&&(l instanceof V?n&&a.push(l):(s&&a.push(l),r&&a.push.apply(a,l.getChildren(!0,n,s)))),l=l._next;return a},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return $(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(Ge(this,r),r===this._recent&&(this._recent=this._last),Gt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=X(ot.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),u.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=ft(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var o=V.delayedCall(0,n||xe,s);return o.data="isPause",this._hasPause=1,yt(this,o,ft(this,r))},e.removePause=function(r){var n=this._first;for(r=ft(this,r);n;)n._start===r&&n.data==="isPause"&&zt(n),n=n._next},e.killTweensOf=function(r,n,s){for(var o=this.getTweensOf(r,s),a=o.length;a--;)Mt!==o[a]&&o[a].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],o=ht(r),a=this._first,l=Ot(n),f;a;)a instanceof V?Gn(a._targets,o)&&(l?(!Mt||a._initted&&a._ts)&&a.globalTime(0)<=n&&a.globalTime(a.totalDuration())>n:!n||a.isActive())&&s.push(a):(f=a.getTweensOf(o,n)).length&&s.push.apply(s,f),a=a._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,o=ft(s,r),a=n,l=a.startAt,f=a.onStart,h=a.onStartParams,c=a.immediateRender,d,m=V.to(s,ct({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||D,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());m._dur!==p&&oe(m,p,0,1).render(m._time,!0,!0),d=1}f&&f.apply(m,h||[])}},n));return c?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,ct({startAt:{time:ft(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Wi(this,ft(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Wi(this,ft(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+D)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var o=this._first,a=this.labels,l;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in a)a[l]>=s&&(a[l]+=r);return Gt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return u.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Gt(this)},e.totalDuration=function(r){var n=0,s=this,o=s._last,a=_t,l,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(h=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,yt(s,o,f-o._delay,1)._lock=0):a=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),a=0),o._end>n&&o._ts&&(n=o._end),o=l;oe(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(z._ts&&(Tr(z,Ye(r,z)),xr=ot.frame),ot.frame>=Ui){Ui+=ut.autoSleep||120;var n=z._first;if((!n||!n._ts)&&ut.autoSleep&&ot._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ot.sleep()}}},t}(we);ct(j.prototype,{_lock:0,_hasPause:0,_forcing:0});var ds=function(t,e,i,r,n,s,o){var a=new it(this._pt,t,e,0,1,jr,null,n),l=0,f=0,h,c,d,m,_,p,x,g;for(a.b=i,a.e=r,i+="",r+="",(x=~r.indexOf("random("))&&(r=ve(r)),s&&(g=[i,r],s(g,t,e),i=g[0],r=g[1]),c=i.match(He)||[];h=He.exec(r);)m=h[0],_=r.substring(l,h.index),d?d=(d+1)%5:_.substr(-5)==="rgba("&&(d=1),m!==c[f++]&&(p=parseFloat(c[f-1])||0,a._pt={_next:a._pt,p:_||f===1?_:",",s:p,c:m.charAt(1)==="="?ee(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0},l=He.lastIndex);return a.c=l<r.length?r.substring(l,r.length):"",a.fp=o,(dr.test(r)||x)&&(a.e=0),this._pt=a,a},Di=function(t,e,i,r,n,s,o,a,l,f){L(r)&&(r=r(n||0,t,s));var h=t[e],c=i!=="get"?i:L(h)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=L(h)?l?xs:qr:Ei,m;if($(r)&&(~r.indexOf("random(")&&(r=ve(r)),r.charAt(1)==="="&&(m=ee(c,r)+(W(c)||0),(m||m===0)&&(r=m))),!f||c!==r||gi)return!isNaN(c*r)&&r!==""?(m=new it(this._pt,t,e,+c||0,r-(c||0),typeof h=="boolean"?Ts:Kr,0,d),l&&(m.fp=l),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&Oi(e,r),ds.call(this,t,e,c,r,d,a||ut.stringFilter,l))},ps=function(t,e,i,r,n){if(L(t)&&(t=ge(t,n,e,i,r)),!wt(t)||t.style&&t.nodeType||K(t)||hr(t))return $(t)?ge(t,n,e,i,r):t;var s={},o;for(o in t)s[o]=ge(t[o],n,e,i,r);return s},$r=function(t,e,i,r,n,s){var o,a,l,f;if(st[t]&&(o=new st[t]).init(n,o.rawVars?e[t]:ps(e[t],r,n,s,i),i,r,s)!==!1&&(i._pt=a=new it(i._pt,n,t,0,1,o.render,o,0,o.priority),i!==te))for(l=i._ptLookup[i._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=a;return o},Mt,gi,Ri=function u(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,o=r.immediateRender,a=r.lazy,l=r.onUpdate,f=r.runBackwards,h=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=t._dur,_=t._startAt,p=t._targets,x=t.parent,g=x&&x.data==="nested"?x.vars.targets:p,v=t._overwrite==="auto"&&!bi,T=t.timeline,y,b,P,S,w,O,E,M,A,G,Y,N,U;if(T&&(!c||!n)&&(n="none"),t._ease=Wt(n,ne.ease),t._yEase=h?Vr(Wt(h===!0?n:h,ne.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!T&&!!r.runBackwards,!T||c&&!r.stagger){if(M=p[0]?$t(p[0]).harness:0,N=M&&r[M.prop],y=Ve(r,Ci),_&&(_._zTime<0&&_.progress(1),e<0&&f&&o&&!d?_.render(-1,!0):_.revert(f&&m?Fe:Xn),_._lazy=0),s){if(zt(t._startAt=V.set(p,ct({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!_&&tt(a),startAt:null,delay:0,onUpdate:l&&function(){return at(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(q||!o&&!d)&&t._startAt.revert(Fe),o&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&m&&!_){if(e&&(o=!1),P=ct({overwrite:!1,data:"isFromStart",lazy:o&&!_&&tt(a),immediateRender:o,stagger:0,parent:x},y),N&&(P[M.prop]=N),zt(t._startAt=V.set(p,P)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(q?t._startAt.revert(Fe):t._startAt.render(-1,!0)),t._zTime=e,!o)u(t._startAt,D,D);else if(!e)return}for(t._pt=t._ptCache=0,a=m&&tt(a)||a&&!m,b=0;b<p.length;b++){if(w=p[b],E=w._gsap||Ai(p)[b]._gsap,t._ptLookup[b]=G={},_i[E.id]&&Rt.length&&Ne(),Y=g===p?b:g.indexOf(w),M&&(A=new M).init(w,N||y,t,Y,g)!==!1&&(t._pt=S=new it(t._pt,w,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(dt){G[dt]=S}),A.priority&&(O=1)),!M||N)for(P in y)st[P]&&(A=$r(P,y,t,Y,w,g))?A.priority&&(O=1):G[P]=S=Di.call(t,w,P,"get",y[P],Y,g,0,r.stringFilter);t._op&&t._op[b]&&t.kill(w,t._op[b]),v&&t._pt&&(Mt=t,z.killTweensOf(w,G,t.globalTime(e)),U=!t.parent,Mt=0),t._pt&&a&&(_i[E.id]=1)}O&&Hr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!U,c&&e<=0&&T.render(_t,!0,!0)},ms=function(t,e,i,r,n,s,o,a){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,c,d;if(!l)for(l=t._ptCache[e]=[],c=t._ptLookup,d=t._targets.length;d--;){if(f=c[d][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return gi=1,t.vars[e]="+=0",Ri(t,o),gi=0,a?ye(e+" not eligible for reset"):1;l.push(f)}for(d=l.length;d--;)h=l[d],f=h._pt||h,f.s=(r||r===0)&&!n?r:f.s+(r||0)+s*f.c,f.c=i-f.s,h.e&&(h.e=B(i)+W(h.e)),h.b&&(h.b=f.s+W(h.b))},gs=function(t,e){var i=t[0]?$t(t[0]).harness:0,r=i&&i.aliases,n,s,o,a;if(!r)return e;n=Kt({},e);for(s in r)if(s in n)for(a=r[s].split(","),o=a.length;o--;)n[a[o]]=n[s];return n},ys=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,o;if(K(e))o=i[t]||(i[t]=[]),e.forEach(function(a,l){return o.push({t:l/(e.length-1)*100,v:a,e:n})});else for(s in e)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},ge=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):$(t)&&~t.indexOf("random(")?ve(t):t},Gr=Mi+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Wr={};et(Gr+",id,stagger,delay,duration,paused,scrollTrigger",function(u){return Wr[u]=1});var V=function(u){fr(t,u);function t(i,r,n,s){var o;typeof r=="number"&&(n.duration=r,r=n,n=null),o=u.call(this,s?r:pe(r))||this;var a=o.vars,l=a.duration,f=a.delay,h=a.immediateRender,c=a.stagger,d=a.overwrite,m=a.keyframes,_=a.defaults,p=a.scrollTrigger,x=a.yoyoEase,g=r.parent||z,v=(K(i)||hr(i)?Ot(i[0]):"length"in r)?[i]:ht(i),T,y,b,P,S,w,O,E;if(o._targets=v.length?Ai(v):ye("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,m||c||Re(l)||Re(f)){if(r=o.vars,T=o.timeline=new j({data:"nested",defaults:_||{},targets:g&&g.data==="nested"?g.vars.targets:v}),T.kill(),T.parent=T._dp=Pt(o),T._start=0,c||Re(l)||Re(f)){if(P=v.length,O=c&&Ar(c),wt(c))for(S in c)~Gr.indexOf(S)&&(E||(E={}),E[S]=c[S]);for(y=0;y<P;y++)b=Ve(r,Wr),b.stagger=0,x&&(b.yoyoEase=x),E&&Kt(b,E),w=v[y],b.duration=+ge(l,Pt(o),y,w,v),b.delay=(+ge(f,Pt(o),y,w,v)||0)-o._delay,!c&&P===1&&b.delay&&(o._delay=f=b.delay,o._start+=f,b.delay=0),T.to(w,b,O?O(y,w,v):0),T._ease=k.none;T.duration()?l=f=0:o.timeline=0}else if(m){pe(ct(T.vars.defaults,{ease:"none"})),T._ease=Wt(m.ease||r.ease||"none");var M=0,A,G,Y;if(K(m))m.forEach(function(N){return T.to(v,N,">")}),T.duration();else{b={};for(S in m)S==="ease"||S==="easeEach"||ys(S,m[S],b,m.easeEach);for(S in b)for(A=b[S].sort(function(N,U){return N.t-U.t}),M=0,y=0;y<A.length;y++)G=A[y],Y={ease:G.e,duration:(G.t-(y?A[y-1].t:0))/100*l},Y[S]=G.v,T.to(v,Y,M),M+=Y.duration;T.duration()<l&&T.to({},{duration:l-T.duration()})}}l||o.duration(l=T.duration())}else o.timeline=0;return d===!0&&!bi&&(Mt=Pt(o),z.killTweensOf(v),Mt=0),yt(g,Pt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(h||!l&&!m&&o._start===X(g._time)&&tt(h)&&jn(Pt(o))&&g.data!=="nested")&&(o._tTime=-D,o.render(Math.max(0,-f)||0)),p&&kr(Pt(o),p),o}var e=t.prototype;return e.render=function(r,n,s){var o=this._time,a=this._tDur,l=this._dur,f=r<0,h=r>a-D&&!f?a:r<D?0:r,c,d,m,_,p,x,g,v,T;if(!l)Qn(this,r,n,s);else if(h!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f){if(c=h,v=this.timeline,this._repeat){if(_=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(_*100+r,n,s);if(c=X(h%_),h===a?(m=this._repeat,c=l):(m=~~(h/_),m&&m===X(h/_)&&(c=l,m--),c>l&&(c=l)),x=this._yoyo&&m&1,x&&(T=this._yEase,c=l-c),p=se(this._tTime,_),c===o&&!s&&this._initted&&m===p)return this._tTime=h,this;m!==p&&(v&&this._yEase&&Yr(v,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==_&&this._initted&&(this._lock=s=1,this.render(X(_*m),!0).invalidate()._lock=0))}if(!this._initted){if(Or(this,f?r:c,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==p))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=h,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=g=(T||this._ease)(c/l),this._from&&(this.ratio=g=1-g),c&&!o&&!n&&!m&&(at(this,"onStart"),this._tTime!==h))return this;for(d=this._pt;d;)d.r(g,d.d),d=d._next;v&&v.render(r<0?r:v._dur*v._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(f&&hi(this,r,n,s),at(this,"onUpdate")),this._repeat&&m!==p&&this.vars.onRepeat&&!n&&this.parent&&at(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&hi(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&zt(this,1),!n&&!(f&&!o)&&(h||o||x)&&(at(this,h===a?"onComplete":"onReverseComplete",!0),this._prom&&!(h<a&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),u.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,o,a){Te||ot.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Ri(this,l),f=this._ease(l/this._dur),ms(this,r,n,s,o,f,l,a)?this.resetTo(r,n,s,o,1):(qe(this,0),this.parent||Pr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ce(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Mt&&Mt.vars.overwrite!==!0)._first||ce(this),this.parent&&s!==this.timeline.totalDuration()&&oe(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,a=r?ht(r):o,l=this._ptLookup,f=this._pt,h,c,d,m,_,p,x;if((!n||n==="all")&&qn(o,a))return n==="all"&&(this._pt=0),ce(this);for(h=this._op=this._op||[],n!=="all"&&($(n)&&(_={},et(n,function(g){return _[g]=1}),n=_),n=gs(o,n)),x=o.length;x--;)if(~a.indexOf(o[x])){c=l[x],n==="all"?(h[x]=n,m=c,d={}):(d=h[x]=h[x]||{},m=n);for(_ in m)p=c&&c[_],p&&((!("kill"in p.d)||p.d.kill(_)===!0)&&Ge(this,p,"_pt"),delete c[_]),d!=="all"&&(d[_]=1)}return this._initted&&!this._pt&&f&&ce(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return me(1,arguments)},t.delayedCall=function(r,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(r,n,s){return me(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return z.killTweensOf(r,n,s)},t}(we);ct(V.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});et("staggerTo,staggerFrom,staggerFromTo",function(u){V[u]=function(){var t=new j,e=di.call(arguments,0);return e.splice(u==="staggerFromTo"?5:4,0,0),t[u].apply(t,e)}});var Ei=function(t,e,i){return t[e]=i},qr=function(t,e,i){return t[e](i)},xs=function(t,e,i,r){return t[e](r.fp,i)},vs=function(t,e,i){return t.setAttribute(e,i)},Fi=function(t,e){return L(t[e])?qr:Pi(t[e])&&t.setAttribute?vs:Ei},Kr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Ts=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},jr=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},zi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ws=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s},bs=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Ge(this,e,"_pt"):e.dep||(i=1),e=r;return!i},Ps=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},Hr=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i}t._pt=n},it=function(){function u(e,i,r,n,s,o,a,l,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=o||Kr,this.d=a||this,this.set=l||Ei,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=u.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=Ps,this.m=i,this.mt=n,this.tween=r},u}();et(Mi+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(u){return Ci[u]=1});lt.TweenMax=lt.TweenLite=V;lt.TimelineLite=lt.TimelineMax=j;z=new j({sortChildren:!1,defaults:ne,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ut.stringFilter=Nr;var qt=[],Ie={},Ss=[],Ki=0,ks=0,ei=function(t){return(Ie[t]||Ss).map(function(e){return e()})},yi=function(){var t=Date.now(),e=[];t-Ki>2&&(ei("matchMediaInit"),qt.forEach(function(i){var r=i.queries,n=i.conditions,s,o,a,l;for(o in r)s=gt.matchMedia(r[o]).matches,s&&(a=1),s!==n[o]&&(n[o]=s,l=1);l&&(i.revert(),a&&e.push(i))}),ei("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Ki=t,ei("matchMedia"))},Qr=function(){function u(e,i){this.selector=i&&pi(i),this.data=[],this._r=[],this.isReverted=!1,this.id=ks++,e&&this.add(e)}var t=u.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,o=function(){var l=F,f=s.selector,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=pi(n)),F=s,h=r.apply(s,arguments),L(h)&&s._r.push(h),F=l,s.selector=f,s.isReverted=!1,h};return s.last=o,i===L?o(s,function(a){return s.add(null,a)}):i?s[i]=o:o},t.ignore=function(i){var r=F;F=null,i(this),F=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof u?i.push.apply(i,r.getTweens()):r instanceof V&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?function(){for(var o=n.getTweens(),a=n.data.length,l;a--;)l=n.data[a],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),a=n.data.length;a--;)l=n.data[a],l instanceof j?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof V)&&l.revert&&l.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var s=qt.length;s--;)qt[s].id===this.id&&qt.splice(s,1)},t.revert=function(i){this.kill(i||{})},u}(),Os=function(){function u(e){this.contexts=[],this.scope=e,F&&F.data.push(this)}var t=u.prototype;return t.add=function(i,r,n){wt(i)||(i={matches:i});var s=new Qr(0,n||this.scope),o=s.conditions={},a,l,f;F&&!s.selector&&(s.selector=F.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(l in i)l==="all"?f=1:(a=gt.matchMedia(i[l]),a&&(qt.indexOf(s)<0&&qt.push(s),(o[l]=a.matches)&&(f=1),a.addListener?a.addListener(yi):a.addEventListener("change",yi)));return f&&r(s,function(h){return s.add(null,h)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},u}(),Ue={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return Ir(r)})},timeline:function(t){return new j(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,i,r){$(t)&&(t=ht(t)[0]);var n=$t(t||{}).get,s=i?br:wr;return i==="native"&&(i=""),t&&(e?s((st[e]&&st[e].get||n)(t,e,i,r)):function(o,a,l){return s((st[o]&&st[o].get||n)(t,o,a,l))})},quickSetter:function(t,e,i){if(t=ht(t),t.length>1){var r=t.map(function(f){return nt.quickSetter(f,e,i)}),n=r.length;return function(f){for(var h=n;h--;)r[h](f)}}t=t[0]||{};var s=st[e],o=$t(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var h=new s;te._pt=0,h.init(t,i?f+i:f,te,0,[t]),h.render(1,h),te._pt&&zi(1,te)}:o.set(t,a);return s?l:function(f){return l(t,a,i?f+i:f,o,1)}},quickTo:function(t,e,i){var r,n=nt.to(t,Kt((r={},r[e]="+=0.1",r.paused=!0,r),i||{})),s=function(a,l,f){return n.resetTo(e,a,l,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Wt(t.ease,ne.ease)),Xi(ne,t||{})},config:function(t){return Xi(ut,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!st[o]&&!lt[o]&&ye(e+" effect requires "+o+" plugin.")}),Qe[e]=function(o,a,l){return i(ht(o),ct(a||{},n),l)},s&&(j.prototype[e]=function(o,a,l){return this.add(Qe[e](o,wt(a)?a:(l=a)&&{},this),l)})},registerEase:function(t,e){k[t]=Wt(e)},parseEase:function(t,e){return arguments.length?Wt(t,e):k},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new j(t),r,n;for(i.smoothChildTiming=tt(t.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,r=z._first;r;)n=r._next,(e||!(!r._dur&&r instanceof V&&r.vars.onComplete===r._targets[0]))&&yt(i,r,r._start-r._delay),r=n;return yt(z,i,0),i},context:function(t,e){return t?new Qr(t,e):F},matchMedia:function(t){return new Os(t)},matchMediaRefresh:function(){return qt.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||yi()},addEventListener:function(t,e){var i=Ie[t]||(Ie[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Ie[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:ss,wrapYoyo:os,distribute:Ar,random:Rr,snap:Dr,normalize:ns,getUnit:W,clamp:ts,splitColor:Lr,toArray:ht,selector:pi,mapRange:Fr,pipe:is,unitize:rs,interpolate:as,shuffle:Mr},install:gr,effects:Qe,ticker:ot,updateRoot:j.updateRoot,plugins:st,globalTimeline:z,core:{PropTween:it,globals:yr,Tween:V,Timeline:j,Animation:we,getCache:$t,_removeLinkedListItem:Ge,reverting:function(){return q},context:function(t){return t&&F&&(F.data.push(t),t._ctx=F),F},suppressOverwrites:function(t){return bi=t}}};et("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Ue[u]=V[u]});ot.add(j.updateRoot);te=Ue.to({},{duration:0});var Cs=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Ms=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Cs(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ii=function(t,e){return{name:t,rawVars:1,init:function(r,n,s){s._onInit=function(o){var a,l;if($(n)&&(a={},et(n,function(f){return a[f]=1}),n=a),e){a={};for(l in n)a[l]=e(n[l]);n=a}Ms(o,n)}}}},nt=Ue.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,o,a;this.tween=i;for(s in e)a=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(a||0)+"",e[s],r,n,0,0,s),o.op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)q?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ii("roundProps",mi),ii("modifiers"),ii("snap",Dr))||Ue;V.version=j.version=nt.version="3.12.5";mr=1;Si()&&ae();k.Power0;k.Power1;k.Power2;k.Power3;k.Power4;k.Linear;k.Quad;k.Cubic;k.Quart;k.Quint;k.Strong;k.Elastic;k.Back;k.SteppedEase;k.Bounce;k.Sine;k.Expo;k.Circ;/*!
|
|
10
|
+
* CSSPlugin 3.12.5
|
|
11
|
+
* https://gsap.com
|
|
12
|
+
*
|
|
13
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
14
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
15
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
16
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
17
|
+
*/var ji,At,ie,Ii,Xt,Hi,Li,As=function(){return typeof window<"u"},Ct={},Ut=180/Math.PI,re=Math.PI/180,Qt=Math.atan2,Qi=1e8,Bi=/([A-Z])/g,Ds=/(left|right|width|margin|padding|x)/i,Rs=/[\s,\(]\S/,xt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Es=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Fs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},zs=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Zr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Jr=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Is=function(t,e,i){return t.style[e]=i},Ls=function(t,e,i){return t.style.setProperty(e,i)},Bs=function(t,e,i){return t._gsap[e]=i},Ns=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Vs=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},Ys=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},I="transform",rt=I+"Origin",Us=function u(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in Ct&&n){if(this.tfm=this.tfm||{},t!=="transform")t=xt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return i.tfm[o]=St(r,o)}):this.tfm[t]=s.x?s[t]:St(r,t),t===rt&&(this.tfm.zOrigin=s.zOrigin);else return xt.transform.split(",").forEach(function(o){return u.call(i,o,e)});if(this.props.indexOf(I)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(rt,e,"")),t=I}(n||e)&&this.props.push(t,e,n[t])},tn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Xs=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?e[t[n]]=t[n+2]:t[n+2]?i[t[n]]=t[n+2]:i.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Bi,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Li(),(!n||!n.isStart)&&!i[I]&&(tn(i),r.zOrigin&&i[rt]&&(i[rt]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},en=function(t,e){var i={target:t,props:[],revert:Xs,save:Us};return t._gsap||nt.core.getCache(t),e&&e.split(",").forEach(function(r){return i.save(r)}),i},rn,vi=function(t,e){var i=At.createElementNS?At.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):At.createElement(t);return i&&i.style?i:At.createElement(t)},Tt=function u(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Bi,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&u(t,ue(e)||e,1)||""},Zi="O,Moz,ms,Ms,Webkit".split(","),ue=function(t,e,i){var r=e||Xt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Zi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Zi[s]:"")+t},Ti=function(){As()&&window.document&&(ji=window,At=ji.document,ie=At.documentElement,Xt=vi("div")||{style:{}},vi("div"),I=ue(I),rt=I+"Origin",Xt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",rn=!!ue("perspective"),Li=nt.core.reverting,Ii=1)},ri=function u(t){var e=vi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,r=this.nextSibling,n=this.style.cssText,s;if(ie.appendChild(e),e.appendChild(this),this.style.display="block",t)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=u}catch{}else this._gsapBBox&&(s=this._gsapBBox());return i&&(r?i.insertBefore(this,r):i.appendChild(this)),ie.removeChild(e),this.style.cssText=n,s},Ji=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},nn=function(t){var e;try{e=t.getBBox()}catch{e=ri.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ri||(e=ri.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Ji(t,["x","cx","x1"])||0,y:+Ji(t,["y","cy","y1"])||0,width:0,height:0}:e},sn=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&nn(t))},jt=function(t,e){if(e){var i=t.style,r;e in Ct&&e!==rt&&(e=I),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Bi,"-$1").toLowerCase())):i.removeAttribute(e)}},Dt=function(t,e,i,r,n,s){var o=new it(t._pt,e,i,0,1,s?Jr:Zr);return t._pt=o,o.b=r,o.e=n,t._props.push(i),o},tr={deg:1,rad:1,turn:1},$s={grid:1,flex:1},It=function u(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",o=Xt.style,a=Ds.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(a?"Width":"Height"),h=100,c=r==="px",d=r==="%",m,_,p,x;if(r===s||!n||tr[r]||tr[s])return n;if(s!=="px"&&!c&&(n=u(t,e,i,"px")),x=t.getCTM&&sn(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return m=x?t.getBBox()[a?"width":"height"]:t[f],B(d?n/m*h:n/100*m);if(o[a?"width":"height"]=h+(c?s:r),_=~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(_=(t.ownerSVGElement||{}).parentNode),(!_||_===At||!_.appendChild)&&(_=At.body),p=_._gsap,p&&d&&p.width&&a&&p.time===ot.time&&!p.uncache)return B(n/p.width*h);if(d&&(e==="height"||e==="width")){var g=t.style[e];t.style[e]=h+r,m=t[f],g?t.style[e]=g:jt(t,e)}else(d||s==="%")&&!$s[Tt(_,"display")]&&(o.position=Tt(t,"position")),_===t&&(o.position="static"),_.appendChild(Xt),m=Xt[f],_.removeChild(Xt),o.position="absolute";return a&&d&&(p=$t(_),p.time=ot.time,p.width=_[f]),B(c?m*n/h:m&&n?h/m*n:0)},St=function(t,e,i,r){var n;return Ii||Ti(),e in xt&&e!=="transform"&&(e=xt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Ct[e]&&e!=="transform"?(n=Pe(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:$e(Tt(t,rt))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Xe[e]&&Xe[e](t,e,i)||Tt(t,e)||vr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?It(t,e,n,i)+i:n},Gs=function(t,e,i,r){if(!i||i==="none"){var n=ue(e,t,1),s=n&&Tt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=Tt(t,"borderTopColor"))}var o=new it(this._pt,t.style,e,0,1,jr),a=0,l=0,f,h,c,d,m,_,p,x,g,v,T,y;if(o.b=i,o.e=r,i+="",r+="",r==="auto"&&(_=t.style[e],t.style[e]=r,r=Tt(t,e)||r,_?t.style[e]=_:jt(t,e)),f=[i,r],Nr(f),i=f[0],r=f[1],c=i.match(Jt)||[],y=r.match(Jt)||[],y.length){for(;h=Jt.exec(r);)p=h[0],g=r.substring(a,h.index),m?m=(m+1)%5:(g.substr(-5)==="rgba("||g.substr(-5)==="hsla(")&&(m=1),p!==(_=c[l++]||"")&&(d=parseFloat(_)||0,T=_.substr((d+"").length),p.charAt(1)==="="&&(p=ee(d,p)+T),x=parseFloat(p),v=p.substr((x+"").length),a=Jt.lastIndex-v.length,v||(v=v||ut.units[e]||T,a===r.length&&(r+=v,o.e+=v)),T!==v&&(d=It(t,e,_,v)||0),o._pt={_next:o._pt,p:g||l===1?g:",",s:d,c:x-d,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=a<r.length?r.substring(a,r.length):""}else o.r=e==="display"&&r==="none"?Jr:Zr;return dr.test(r)&&(o.e=0),this._pt=o,o},er={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ws=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=er[i]||i,e[1]=er[r]||r,e.join(" ")},qs=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,n=e.u,s=i._gsap,o,a,l;if(n==="all"||n===!0)r.cssText="",a=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],Ct[o]&&(a=1,o=o==="transformOrigin"?rt:I),jt(i,o);a&&(jt(i,I),s&&(s.svg&&i.removeAttribute("transform"),Pe(i,1),s.uncache=1,tn(r)))}},Xe={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new it(t._pt,e,i,0,0,qs);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},be=[1,0,0,1,0,0],on={},an=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ir=function(t){var e=Tt(t,I);return an(e)?be:e.substr(7).match(cr).map(B)},Ni=function(t,e){var i=t._gsap||$t(t),r=t.style,n=ir(t),s,o,a,l;return i.svg&&t.getAttribute("transform")?(a=t.transform.baseVal.consolidate().matrix,n=[a.a,a.b,a.c,a.d,a.e,a.f],n.join(",")==="1,0,0,1,0,0"?be:n):(n===be&&!t.offsetParent&&t!==ie&&!i.svg&&(a=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent)&&(l=1,o=t.nextElementSibling,ie.appendChild(t)),n=ir(t),a?r.display=a:jt(t,"display"),l&&(o?s.insertBefore(t,o):s?s.appendChild(t):ie.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},wi=function(t,e,i,r,n,s){var o=t._gsap,a=n||Ni(t,!0),l=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,c=o.yOffset||0,d=a[0],m=a[1],_=a[2],p=a[3],x=a[4],g=a[5],v=e.split(" "),T=parseFloat(v[0])||0,y=parseFloat(v[1])||0,b,P,S,w;i?a!==be&&(P=d*p-m*_)&&(S=T*(p/P)+y*(-_/P)+(_*g-p*x)/P,w=T*(-m/P)+y*(d/P)-(d*g-m*x)/P,T=S,y=w):(b=nn(t),T=b.x+(~v[0].indexOf("%")?T/100*b.width:T),y=b.y+(~(v[1]||v[0]).indexOf("%")?y/100*b.height:y)),r||r!==!1&&o.smooth?(x=T-l,g=y-f,o.xOffset=h+(x*d+g*_)-x,o.yOffset=c+(x*m+g*p)-g):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[rt]="0px 0px",s&&(Dt(s,o,"xOrigin",l,T),Dt(s,o,"yOrigin",f,y),Dt(s,o,"xOffset",h,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+y)},Pe=function(t,e){var i=t._gsap||new Xr(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",o="deg",a=getComputedStyle(t),l=Tt(t,rt)||"0",f,h,c,d,m,_,p,x,g,v,T,y,b,P,S,w,O,E,M,A,G,Y,N,U,dt,Me,le,fe,Bt,Vi,bt,Nt;return f=h=c=_=p=x=g=v=T=0,d=m=1,i.svg=!!(t.getCTM&&sn(t)),a.translate&&((a.translate!=="none"||a.scale!=="none"||a.rotate!=="none")&&(r[I]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[I]!=="none"?a[I]:"")),r.scale=r.rotate=r.translate="none"),P=Ni(t,i.svg),i.svg&&(i.uncache?(dt=t.getBBox(),l=i.xOrigin-dt.x+"px "+(i.yOrigin-dt.y)+"px",U=""):U=!e&&t.getAttribute("data-svg-origin"),wi(t,U||l,!!U||i.originIsAbsolute,i.smooth!==!1,P)),y=i.xOrigin||0,b=i.yOrigin||0,P!==be&&(E=P[0],M=P[1],A=P[2],G=P[3],f=Y=P[4],h=N=P[5],P.length===6?(d=Math.sqrt(E*E+M*M),m=Math.sqrt(G*G+A*A),_=E||M?Qt(M,E)*Ut:0,g=A||G?Qt(A,G)*Ut+_:0,g&&(m*=Math.abs(Math.cos(g*re))),i.svg&&(f-=y-(y*E+b*A),h-=b-(y*M+b*G))):(Nt=P[6],Vi=P[7],le=P[8],fe=P[9],Bt=P[10],bt=P[11],f=P[12],h=P[13],c=P[14],S=Qt(Nt,Bt),p=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=Y*w+le*O,dt=N*w+fe*O,Me=Nt*w+Bt*O,le=Y*-O+le*w,fe=N*-O+fe*w,Bt=Nt*-O+Bt*w,bt=Vi*-O+bt*w,Y=U,N=dt,Nt=Me),S=Qt(-A,Bt),x=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=E*w-le*O,dt=M*w-fe*O,Me=A*w-Bt*O,bt=G*O+bt*w,E=U,M=dt,A=Me),S=Qt(M,E),_=S*Ut,S&&(w=Math.cos(S),O=Math.sin(S),U=E*w+M*O,dt=Y*w+N*O,M=M*w-E*O,N=N*w-Y*O,E=U,Y=dt),p&&Math.abs(p)+Math.abs(_)>359.9&&(p=_=0,x=180-x),d=B(Math.sqrt(E*E+M*M+A*A)),m=B(Math.sqrt(N*N+Nt*Nt)),S=Qt(Y,N),g=Math.abs(S)>2e-4?S*Ut:0,T=bt?1/(bt<0?-bt:bt):0),i.svg&&(U=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!an(Tt(t,I)),U&&t.setAttribute("transform",U))),Math.abs(g)>90&&Math.abs(g)<270&&(n?(d*=-1,g+=_<=0?180:-180,_+=_<=0?180:-180):(m*=-1,g+=g<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=h-((i.yPercent=h&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=B(d),i.scaleY=B(m),i.rotation=B(_)+o,i.rotationX=B(p)+o,i.rotationY=B(x)+o,i.skewX=g+o,i.skewY=v+o,i.transformPerspective=T+s,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(r[rt]=$e(l)),i.xOffset=i.yOffset=0,i.force3D=ut.force3D,i.renderTransform=i.svg?js:rn?un:Ks,i.uncache=0,i},$e=function(t){return(t=t.split(" "))[0]+" "+t[1]},ni=function(t,e,i){var r=W(e);return B(parseFloat(e)+parseFloat(It(t,"x",i+"px",r)))+r},Ks=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,un(t,e)},Vt="0deg",_e="0px",Yt=") ",un=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,f=i.rotationY,h=i.rotationX,c=i.skewX,d=i.skewY,m=i.scaleX,_=i.scaleY,p=i.transformPerspective,x=i.force3D,g=i.target,v=i.zOrigin,T="",y=x==="auto"&&t&&t!==1||x===!0;if(v&&(h!==Vt||f!==Vt)){var b=parseFloat(f)*re,P=Math.sin(b),S=Math.cos(b),w;b=parseFloat(h)*re,w=Math.cos(b),s=ni(g,s,P*w*-v),o=ni(g,o,-Math.sin(b)*-v),a=ni(g,a,S*w*-v+v)}p!==_e&&(T+="perspective("+p+Yt),(r||n)&&(T+="translate("+r+"%, "+n+"%) "),(y||s!==_e||o!==_e||a!==_e)&&(T+=a!==_e||y?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Yt),l!==Vt&&(T+="rotate("+l+Yt),f!==Vt&&(T+="rotateY("+f+Yt),h!==Vt&&(T+="rotateX("+h+Yt),(c!==Vt||d!==Vt)&&(T+="skew("+c+", "+d+Yt),(m!==1||_!==1)&&(T+="scale("+m+", "+_+Yt),g.style[I]=T||"translate(0, 0)"},js=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.rotation,l=i.skewX,f=i.skewY,h=i.scaleX,c=i.scaleY,d=i.target,m=i.xOrigin,_=i.yOrigin,p=i.xOffset,x=i.yOffset,g=i.forceCSS,v=parseFloat(s),T=parseFloat(o),y,b,P,S,w;a=parseFloat(a),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,a+=f),a||l?(a*=re,l*=re,y=Math.cos(a)*h,b=Math.sin(a)*h,P=Math.sin(a-l)*-c,S=Math.cos(a-l)*c,l&&(f*=re,w=Math.tan(l-f),w=Math.sqrt(1+w*w),P*=w,S*=w,f&&(w=Math.tan(f),w=Math.sqrt(1+w*w),y*=w,b*=w)),y=B(y),b=B(b),P=B(P),S=B(S)):(y=h,S=c,b=P=0),(v&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(v=It(d,"x",s,"px"),T=It(d,"y",o,"px")),(m||_||p||x)&&(v=B(v+m-(m*y+_*P)+p),T=B(T+_-(m*b+_*S)+x)),(r||n)&&(w=d.getBBox(),v=B(v+r/100*w.width),T=B(T+n/100*w.height)),w="matrix("+y+","+b+","+P+","+S+","+v+","+T+")",d.setAttribute("transform",w),g&&(d.style[I]=w)},Hs=function(t,e,i,r,n){var s=360,o=$(n),a=parseFloat(n)*(o&&~n.indexOf("rad")?Ut:1),l=a-r,f=r+l+"deg",h,c;return o&&(h=n.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*Qi)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*Qi)%s-~~(l/s)*s)),t._pt=c=new it(t._pt,e,i,r,l,Es),c.e=f,c.u="deg",t._props.push(i),c},rr=function(t,e){for(var i in e)t[i]=e[i];return t},Qs=function(t,e,i){var r=rr({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,a,l,f,h,c,d,m;r.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[I]=e,o=Pe(i,1),jt(i,I),i.setAttribute("transform",l)):(l=getComputedStyle(i)[I],s[I]=e,o=Pe(i,1),s[I]=l);for(a in Ct)l=r[a],f=o[a],l!==f&&n.indexOf(a)<0&&(d=W(l),m=W(f),h=d!==m?It(i,a,l,m):parseFloat(l),c=parseFloat(f),t._pt=new it(t._pt,o,a,h,c-h,xi),t._pt.u=m||0,t._props.push(a));rr(o,r)};et("padding,margin,Width,Radius",function(u,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(o){return t<2?u+o:"border"+o+u});Xe[t>1?"border"+u:u]=function(o,a,l,f,h){var c,d;if(arguments.length<4)return c=s.map(function(m){return St(o,m,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(m,_){return d[m]=c[_]=c[_]||c[(_-1)/2|0]}),o.init(a,d,h)}});var ln={name:"css",register:Ti,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,o=t.style,a=i.vars.startAt,l,f,h,c,d,m,_,p,x,g,v,T,y,b,P,S;Ii||Ti(),this.styles=this.styles||en(t),S=this.styles.props,this.tween=i;for(_ in e)if(_!=="autoRound"&&(f=e[_],!(st[_]&&$r(_,e,i,r,t,n)))){if(d=typeof f,m=Xe[_],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,_,f,i)&&(P=1);else if(_.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(_)+"").trim(),f+="",Et.lastIndex=0,Et.test(l)||(p=W(l),x=W(f)),x?p!==x&&(l=It(t,_,l,x)+x):p&&(f+=p),this.add(o,"setProperty",l,f,r,n,0,0,_),s.push(_),S.push(_,0,o[_]);else if(d!=="undefined"){if(a&&_ in a?(l=typeof a[_]=="function"?a[_].call(i,r,t,n):a[_],$(l)&&~l.indexOf("random(")&&(l=ve(l)),W(l+"")||l==="auto"||(l+=ut.units[_]||W(St(t,_))||""),(l+"").charAt(1)==="="&&(l=St(t,_))):l=St(t,_),c=parseFloat(l),g=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),g&&(f=f.substr(2)),h=parseFloat(f),_ in xt&&(_==="autoAlpha"&&(c===1&&St(t,"visibility")==="hidden"&&h&&(c=0),S.push("visibility",0,o.visibility),Dt(this,o,"visibility",c?"inherit":"hidden",h?"inherit":"hidden",!h)),_!=="scale"&&_!=="transform"&&(_=xt[_],~_.indexOf(",")&&(_=_.split(",")[0]))),v=_ in Ct,v){if(this.styles.save(_),T||(y=t._gsap,y.renderTransform&&!e.parseTransform||Pe(t,e.parseTransform),b=e.smoothOrigin!==!1&&y.smooth,T=this._pt=new it(this._pt,o,I,0,1,y.renderTransform,y,0,-1),T.dep=1),_==="scale")this._pt=new it(this._pt,y,"scaleY",y.scaleY,(g?ee(y.scaleY,g+h):h)-y.scaleY||0,xi),this._pt.u=0,s.push("scaleY",_),_+="X";else if(_==="transformOrigin"){S.push(rt,0,o[rt]),f=Ws(f),y.svg?wi(t,f,0,b,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==y.zOrigin&&Dt(this,y,"zOrigin",y.zOrigin,x),Dt(this,o,_,$e(l),$e(f)));continue}else if(_==="svgOrigin"){wi(t,f,1,b,0,this);continue}else if(_ in on){Hs(this,y,_,c,g?ee(c,g+f):f);continue}else if(_==="smoothOrigin"){Dt(this,y,"smooth",y.smooth,f);continue}else if(_==="force3D"){y[_]=f;continue}else if(_==="transform"){Qs(this,f,t);continue}}else _ in o||(_=ue(_)||_);if(v||(h||h===0)&&(c||c===0)&&!Rs.test(f)&&_ in o)p=(l+"").substr((c+"").length),h||(h=0),x=W(f)||(_ in ut.units?ut.units[_]:p),p!==x&&(c=It(t,_,l,x)),this._pt=new it(this._pt,v?y:o,_,c,(g?ee(c,g+h):h)-c,!v&&(x==="px"||_==="zIndex")&&e.autoRound!==!1?zs:xi),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Fs);else if(_ in o)Gs.call(this,t,_,l,g?g+f:f);else if(_ in t)this.add(t,_,l||t[_],g?g+f:f,r,n);else if(_!=="parseTransform"){Oi(_,f);continue}v||(_ in o?S.push(_,0,o[_]):S.push(_,1,l||t[_])),s.push(_)}}P&&Hr(this)},render:function(t,e){if(e.tween._time||!Li())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:St,aliases:xt,getSetter:function(t,e,i){var r=xt[e];return r&&r.indexOf(",")<0&&(e=r),e in Ct&&e!==rt&&(t._gsap.x||St(t,"x"))?i&&Hi===i?e==="scale"?Ns:Bs:(Hi=i||{})&&(e==="scale"?Vs:Ys):t.style&&!Pi(t.style[e])?Is:~e.indexOf("-")?Ls:Fi(t,e)},core:{_removeProperty:jt,_getMatrix:Ni}};nt.utils.checkPrefix=ue;nt.core.getStyleSaver=en;(function(u,t,e,i){var r=et(u+","+t+","+e,function(n){Ct[n]=1});et(t,function(n){ut.units[n]="deg",on[n]=1}),xt[r[13]]=u+","+t,et(i,function(n){var s=n.split(":");xt[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){ut.units[u]="px"});nt.registerPlugin(ln);var Le=nt.registerPlugin(ln)||nt;Le.core.Tween;/*!
|
|
18
|
+
* ScrollToPlugin 3.12.5
|
|
19
|
+
* https://gsap.com
|
|
20
|
+
*
|
|
21
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
22
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
23
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
24
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
25
|
+
*/var H,fn,kt,vt,Ft,_n,hn,Ee,cn=function(){return typeof window<"u"},dn=function(){return H||cn()&&(H=window.gsap)&&H.registerPlugin&&H},pn=function(t){return typeof t=="string"},nr=function(t){return typeof t=="function"},Se=function(t,e){var i=e==="x"?"Width":"Height",r="scroll"+i,n="client"+i;return t===kt||t===vt||t===Ft?Math.max(vt[r],Ft[r])-(kt["inner"+i]||vt[n]||Ft[n]):t[r]-t["offset"+i]},ke=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===kt&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=vt[i]!=null?vt:Ft),function(){return t[i]}},Zs=function(t,e,i,r){if(nr(t)&&(t=t(e,i,r)),typeof t!="object")return pn(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var n={},s;for(s in t)n[s]=s!=="onAutoKill"&&nr(t[s])?t[s](e,i,r):t[s];return n},mn=function(t,e){if(t=_n(t)[0],!t||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),r=!e||e===kt||e===Ft,n=r?{top:vt.clientTop-(kt.pageYOffset||vt.scrollTop||Ft.scrollTop||0),left:vt.clientLeft-(kt.pageXOffset||vt.scrollLeft||Ft.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-n.left,y:i.top-n.top};return!r&&e&&(s.x+=ke(e,"x")(),s.y+=ke(e,"y")()),s},sr=function(t,e,i,r,n){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-n:pn(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+r-n:t==="max"?Se(e,i)-n:Math.min(Se(e,i),mn(t,e)[i]-n)},or=function(){H=dn(),cn()&&H&&typeof document<"u"&&document.body&&(kt=window,Ft=document.body,vt=document.documentElement,_n=H.utils.toArray,H.config({autoKillThreshold:7}),hn=H.config(),fn=1)},Ce={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(t){H=t,or()},init:function(t,e,i,r,n){fn||or();var s=this,o=H.getProperty(t,"scrollSnapType");s.isWin=t===kt,s.target=t,s.tween=i,e=Zs(e,r,t,n),s.vars=e,s.autoKill=!!e.autoKill,s.getX=ke(t,"x"),s.getY=ke(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),Ee||(Ee=H.core.globals().ScrollTrigger),H.getProperty(t,"scrollBehavior")==="smooth"&&H.set(t,{scrollBehavior:"auto"}),o&&o!=="none"&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),e.x!=null?(s.add(s,"x",s.x,sr(e.x,t,"x",s.x,e.offsetX||0),r,n),s._props.push("scrollTo_x")):s.skipX=1,e.y!=null?(s.add(s,"y",s.y,sr(e.y,t,"y",s.y,e.offsetY||0),r,n),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var i=e._pt,r=e.target,n=e.tween,s=e.autoKill,o=e.xPrev,a=e.yPrev,l=e.isWin,f=e.snap,h=e.snapInline,c,d,m,_,p;i;)i.r(t,i.d),i=i._next;c=l||!e.skipX?e.getX():o,d=l||!e.skipY?e.getY():a,m=d-a,_=c-o,p=hn.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),s&&(!e.skipX&&(_>p||_<-p)&&c<Se(r,"x")&&(e.skipX=1),!e.skipY&&(m>p||m<-p)&&d<Se(r,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(n.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(n,e.vars.onAutoKillParams||[]))),l?kt.scrollTo(e.skipX?c:e.x,e.skipY?d:e.y):(e.skipY||(r.scrollTop=e.y),e.skipX||(r.scrollLeft=e.x)),f&&(t===1||t===0)&&(d=r.scrollTop,c=r.scrollLeft,h?r.style.scrollSnapType=h:r.style.removeProperty("scroll-snap-type"),r.scrollTop=d+1,r.scrollLeft=c+1,r.scrollTop=d,r.scrollLeft=c),e.xPrev=e.x,e.yPrev=e.y,Ee&&Ee.update()},kill:function(t){var e=t==="scrollTo",i=this._props.indexOf(t);return(e||t==="scrollTo_x")&&(this.skipX=1),(e||t==="scrollTo_y")&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};Ce.max=Se;Ce.getOffset=mn;Ce.buildGetter=ke;dn()&&H.registerPlugin(Ce);const Js={"text-gray-200":"","w-screen":"","h-screen":""},to={key:0},eo={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:"",class:"bg-[#323443]"},io={key:0},ro={key:1},no={class:"bg-resolver-bg-1",flex:"","flex-col":"","justify-between":"","font-mono":"","w-screen":"","h-screen":"","overflow-hidden":""},so=ar({__name:"Resolver",props:{dataSourceUrl:null},setup(u){const t=u;Le.registerPlugin(Ce);const e=yn(Yi),{t:i}=xn(),r=mt(!1),n=mt(!1),s=mt(!1),o=mt({}),a=mt([]),l=mt([]),f=mt({}),h=vn();function c(){const g=new On(o.value,a.value,l.value);g.buildResolver(),f.value=g}const{data:d,isError:m,error:_}=Cn(t.dataSourceUrl,h,!0);je(d,async()=>{var g,v,T;d.value===null||d.value===void 0||(o.value=Pn((g=d.value)==null?void 0:g.contest),e.value=`${o.value.name} | ${Yi}`,a.value=Sn((v=d.value)==null?void 0:v.teams),l.value=kn((T=d.value)==null?void 0:T.submissions),c(),r.value=!0)},{immediate:!0}),Tn([" "],g=>{g.preventDefault()}),De(["n"," "],()=>{if(!s.value){n.value=!0;return}f.value.next()},{dedupe:!0}),De(["r"],()=>{f.value.rewind()},{dedupe:!0}),De(["w"],()=>{f.value.currentIndex--}),De(["s"],()=>{f.value.currentIndex++});const p=mt(null),x=mt(null);return wn(()=>{je(()=>n.value,async()=>{if(!s.value&&n.value&&p.value){const g=p.value.scrollHeight,v=p.value.clientHeight;Le.to(p.value,{duration:Math.round(f.value.teams.length*.5),scrollTop:g-v,ease:"power1.inOut",onComplete:()=>{s.value=!0}})}},{immediate:!0}),je(()=>f.value.currentIndex,async()=>{if(s.value&&p.value&&x.value){const g=p.value.getBoundingClientRect(),v=g.height,T=x.value.getBoundingClientRect(),y=T.height,b=v-3*y,S=T.top-g.top-b;Le.to(p.value,{duration:2.5,ease:"power1.out",scrollTop:`+=${S}`})}},{flush:"post"})}),(g,v)=>{const T=Ln;return Z(),J("div",Js,[R(r)?(Z(),J("div",ro,[Q("div",null,[Q("div",no,[Q("div",{ref_key:"resolverRef",ref:p,"h-full":"","overflow-y-auto":""},[oi(bn,{name:"resolver",tag:"ul"},{default:ai(()=>[(Z(!0),J(Zt,null,ur(R(f).teams,(y,b)=>(Z(),J("div",{key:y.id,ref_for:!0,ref:P=>{b===R(f).currentIndex&&(x.value=P)},class:si([y.id===R(f).currentTeamId?"z-999":"z-0"]),"position-relative":""},[oi(T,{index:b,team:y,resolver:R(f)},null,8,["index","team","resolver"])],2))),128))]),_:1})],512)])])])):(Z(),J("div",to,[Q("div",eo,[Q("div",null,pt(R(i)("common.loading"))+"... ",1),R(m)?(Z(),J("div",io,pt(R(_)),1)):he("",!0)])]))])}}}),ho=lr(so,[["__scopeId","data-v-8e4ac916"]]);export{ho as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as e,c as l,b as o}from"./index-
|
|
1
|
+
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as e,c as l,b as o}from"./index-CVZtA3I-.js";const s={},n={class:"color-gray-700 dark:color-gray-200"};function a(c,r){return e(),l("div",n,r[0]||(r[0]=[o("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1161",width:"30",height:"30"},[o("path",{d:"M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z",fill:"currentColor","p-id":"1162"}),o("path",{d:"M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z",fill:"currentColor","p-id":"1163"})],-1)]))}const d=t(s,[["render",a]]);export{d as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,v as s,av as u,h as p,o as i,c as d,y as m,z as c}from"./index-
|
|
1
|
+
import{d as r,v as s,av as u,h as p,o as i,c as d,y as m,z as c}from"./index-CVZtA3I-.js";import{_}from"./use-vmodel-BKVjZ-1P.js";const x=["type","text"],g=r({__name:"TheInput",props:{textAlign:null,textType:null,modelValue:null},emits:["update:modelValue"],setup(o){const t=o,{modelValue:e}=_("modelValue");return(l,n)=>s((i(),d("input",m({id:"input","onUpdate:modelValue":n[0]||(n[0]=a=>c(e)?e.value=a:null)},l.$attrs,{type:t.textType??"text",text:t.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,x)),[[u,p(e)]])}});export{g as _};
|