@xcpcio/board-app 0.64.3 → 0.64.5
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-C72zkpsg.js → Balloon.vue_vue_type_script_setup_true_lang-VH0oZUbG.js} +1 -1
- package/dist/assets/{Board-Bg3Ppuz0.js → Board-BGQzKKUd.js} +1 -1
- package/dist/assets/{ContestStateBadge-DdwsGPTU.js → ContestStateBadge-CRSdSlnb.js} +1 -1
- package/dist/assets/{Countdown-DTJUHvaQ.js → Countdown--bGcDPEr.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-CPMBGjH4.js → DataSourceInput.vue_vue_type_script_setup_true_lang-RwTU3Y58.js} +1 -1
- package/dist/assets/{Footer-ChSZxbGT.js → Footer-DjV9rSBI.js} +1 -1
- package/dist/assets/{NavBar-DDnpbir3.js → NavBar-B0QEjlL_.js} +1 -1
- package/dist/assets/{Resolver-D3Uo7ft5.js → Resolver-Dv_BVipI.js} +1 -1
- package/dist/assets/{RightArrowIcon-DXtf7iXS.js → RightArrowIcon--6Nl6tOs.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-CVZfHKVN.js → TheInput.vue_vue_type_script_setup_true_lang-TKQ9vyIl.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-51X8aMF6.js → Tooltip.vue_vue_type_script_setup_true_lang-CyT5yUOa.js} +1 -1
- package/dist/assets/{_...all_-CZT5dXNi.js → _...all_-C7dMddyX.js} +1 -1
- package/dist/assets/{_...all_-j0y2p9D9.js → _...all_-CrAXWMms.js} +1 -1
- package/dist/assets/{_name_-P2IH5H8T.js → _name_-CCt4iO46.js} +1 -1
- package/dist/assets/{about-DrtUZup4.js → about-hRLHJCTa.js} +1 -1
- package/dist/assets/board-B1ffLyWD.js +1 -0
- package/dist/assets/{board-layout-BOYna77X.js → board-layout-DFD_TI2f.js} +1 -1
- package/dist/assets/constant-BbgSXH7a.js +1 -0
- package/dist/assets/{contest-Dqsw2u_w.js → contest-DN6vVVUM.js} +1 -1
- package/dist/assets/{dayjs-R18HHVUp.js → dayjs-P3fiAbka.js} +1 -1
- package/dist/assets/{default-PAZ0Oa-G.js → default-CFfod7Zl.js} +1 -1
- package/dist/assets/{headless-C4BPq_WX.js → headless-CXtIjn48.js} +1 -1
- package/dist/assets/{home-BpF3q5rc.js → home-DZ0gECPK.js} +1 -1
- package/dist/assets/{index-DKi5jS9p.js → index-BgdOXbx0.js} +4 -4
- package/dist/assets/{index-BtZZuxRc.js → index-BiH-Puq_.js} +1 -1
- package/dist/assets/{index-ZCq50Wiz.js → index-BkDQUUrJ.js} +1 -1
- package/dist/assets/{index-DwpTMrg8.js → index-CSTIlB6R.js} +1 -1
- package/dist/assets/{index-BYKufEfk.js → index-CpSIcdq6.js} +1 -1
- package/dist/assets/{index-layout-Sw7OZ5f7.js → index-layout-Dq48gweb.js} +1 -1
- package/dist/assets/index-nAnFJtBI.js +1 -0
- package/dist/assets/{pagination-PAprVtYE.js → pagination-CBd1qn1_.js} +1 -1
- package/dist/assets/{query-pkEyawI-.js → query-CL-e0XNa.js} +1 -1
- package/dist/assets/{rank-C5KVO0Rq.js → rank-CuqdZSaD.js} +1 -1
- package/dist/assets/{test-BwiuHZeA.js → test-DMrBZgPe.js} +1 -1
- package/dist/assets/{use-vmodel-Dqa3e3VF.js → use-vmodel-XAhEANu_.js} +1 -1
- package/dist/assets/{user-CzgkhnoZ.js → user-bzorCEtr.js} +1 -1
- package/dist/assets/{virtual_pwa-register-CVx5QtUX.js → virtual_pwa-register-BRK9QVyY.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/dist/assets/board-CmMG_hVW.js +0 -1
- package/dist/assets/constant-Dh1ZtsNO.js +0 -1
- package/dist/assets/index-53cbY7nJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as V,a6 as j,a7 as d,a8 as D,a9 as w,aa as z,ab as k,ac as M,ad as H,ae as T,af as K,ag as G,ah as L,ai as Y,aj as J,ak as X,al as Z,f as W,am as q,an as tt,ao as et,C as Q,ap as $,aq as st,ar as A,as as it,at as nt,au as rt}from"./index-
|
|
1
|
+
import{a5 as V,a6 as j,a7 as d,a8 as D,a9 as w,aa as z,ab as k,ac as M,ad as H,ae as T,af as K,ag as G,ah as L,ai as Y,aj as J,ak as X,al as Z,f as W,am as q,an as tt,ao as et,C as Q,ap as $,aq as st,ar as A,as as it,at as nt,au as rt}from"./index-BgdOXbx0.js";import{b as at}from"./constant-BbgSXH7a.js";import{u as B}from"./contest-DN6vVVUM.js";var ot=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#n=null,this.#i=j(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#a;#l;#i;#n;#b;#c;#f;#o;#h;#r;#d=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),_(this.#t,this.options)?this.#u():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return U(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return U(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#O(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,i=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof d(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),e._defaulted&&!D(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&N(this.#t,i,this.options,e)&&this.#u(),this.updateResult(),s&&(this.#t!==i||d(this.options.enabled,this.#t)!==d(e.enabled,this.#t)||w(this.options.staleTime,this.#t)!==w(e.staleTime,this.#t))&&this.#v();const n=this.#m();s&&(this.#t!==i||d(this.options.enabled,this.#t)!==d(e.enabled,this.#t)||n!==this.#r)&&this.#R(n)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),i=this.createResult(e,t);return ut(this,i)&&(this.#e=i,this.#l=this.options,this.#a=this.#t.state),i}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),e?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(t){this.#d.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),i=this.#s.getQueryCache().build(this.#s,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#u(t){this.#w();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(z)),e}#v(){this.#g();const t=w(this.options.staleTime,this.#t);if(k||this.#e.isStale||!M(t))return;const i=H(this.#e.dataUpdatedAt,t)+1;this.#o=T.setTimeout(()=>{this.#e.isStale||this.updateResult()},i)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#R(t){this.#O(),this.#r=t,!(k||d(this.options.enabled,this.#t)===!1||!M(this.#r)||this.#r===0)&&(this.#h=T.setInterval(()=>{(this.options.refetchIntervalInBackground||K.isFocused())&&this.#u()},this.#r))}#y(){this.#v(),this.#R(this.#m())}#g(){this.#o&&(T.clearTimeout(this.#o),this.#o=void 0)}#O(){this.#h&&(T.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const i=this.#t,s=this.options,n=this.#e,a=this.#a,u=this.#l,v=t!==i?t.state:this.#p,{state:g}=t;let r={...g},S=!1,h;if(e._optimisticResults){const c=this.hasListeners(),C=!c&&_(t,e),y=c&&N(t,i,e,s);(C||y)&&(r={...r,...G(g.data,t.options)}),e._optimisticResults==="isRestoring"&&(r.fetchStatus="idle")}let{error:o,errorUpdatedAt:b,status:f}=r;h=r.data;let O=!1;if(e.placeholderData!==void 0&&h===void 0&&f==="pending"){let c;n?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(c=n.data,O=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#f?.state.data,this.#f):e.placeholderData,c!==void 0&&(f="success",h=L(n?.data,c,e),S=!0)}if(e.select&&h!==void 0&&!O)if(n&&h===a?.data&&e.select===this.#b)h=this.#c;else try{this.#b=e.select,h=e.select(h),h=L(n?.data,h,e),this.#c=h,this.#n=null}catch(c){this.#n=c}this.#n&&(o=this.#n,h=this.#c,b=Date.now(),f="error");const m=r.fetchStatus==="fetching",R=f==="pending",E=f==="error",P=R&&m,x=h!==void 0,p={status:f,fetchStatus:r.fetchStatus,isPending:R,isSuccess:f==="success",isError:E,isInitialLoading:P,isLoading:P,data:h,dataUpdatedAt:r.dataUpdatedAt,error:o,errorUpdatedAt:b,failureCount:r.fetchFailureCount,failureReason:r.fetchFailureReason,errorUpdateCount:r.errorUpdateCount,isFetched:r.dataUpdateCount>0||r.errorUpdateCount>0,isFetchedAfterMount:r.dataUpdateCount>v.dataUpdateCount||r.errorUpdateCount>v.errorUpdateCount,isFetching:m,isRefetching:m&&!R,isLoadingError:E&&!x,isPaused:r.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:E&&x,isStale:F(t,e),refetch:this.refetch,promise:this.#i,isEnabled:d(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=I=>{p.status==="error"?I.reject(p.error):p.data!==void 0&&I.resolve(p.data)},C=()=>{const I=this.#i=p.promise=j();c(I)},y=this.#i;switch(y.status){case"pending":t.queryHash===i.queryHash&&c(y);break;case"fulfilled":(p.status==="error"||p.data!==y.value)&&C();break;case"rejected":(p.status!=="error"||p.error!==y.reason)&&C();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#f=this.#t),D(e,t))return;this.#e=e;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,n=typeof s=="function"?s():s;if(n==="all"||!n&&!this.#d.size)return!0;const a=new Set(n??this.#d);return this.options.throwOnError&&a.add("error"),Object.keys(this.#e).some(u=>{const l=u;return this.#e[l]!==t[l]&&a.has(l)})};this.#S({listeners:i()})}#w(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(t){Y.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ht(t,e){return d(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function _(t,e){return ht(t,e)||t.state.data!==void 0&&U(t,e,e.refetchOnMount)}function U(t,e,i){if(d(e.enabled,t)!==!1&&w(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&F(t,e)}return!1}function N(t,e,i,s){return(t!==e||d(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&F(t,i)}function F(t,e){return d(e.enabled,t)!==!1&&t.isStaleByTime(w(e.staleTime,t))}function ut(t,e){return!D(t.getCurrentResult(),e)}function lt(t=""){if(!J())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=Z(t),i=X(e);if(!i)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return i}function ct(t,e,i){const s=lt(),n=W(()=>{const o=q(e);typeof o.enabled=="function"&&(o.enabled=o.enabled());const b=s.defaultQueryOptions(o);return b._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",b}),a=new t(s,n.value),u=n.value.shallow?tt(a.getCurrentResult()):et(a.getCurrentResult());let l=()=>{};s.isRestoring&&Q(s.isRestoring,o=>{o||(l(),l=a.subscribe(b=>{$(u,b)}))},{immediate:!0});const v=()=>{a.setOptions(n.value),$(u,a.getCurrentResult())};Q(n,v),st(()=>{l()});const g=(...o)=>(v(),u.refetch(...o)),r=()=>new Promise((o,b)=>{let f=()=>{};const O=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const m=a.getOptimisticResult(n.value);m.isStale?(f(),a.fetchOptimistic(n.value).then(o,R=>{A(n.value.throwOnError,[R,a.getCurrentQuery()])?b(R):o(a.getCurrentResult())})):(f(),o(m))}};O(),f=Q(n,O)});Q(()=>u.error,o=>{if(u.isError&&!u.isFetching&&A(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const S=n.value.shallow?it(u):nt(u),h=rt(S);for(const o in u)typeof u[o]=="function"&&(h[o]=u[o]);return h.suspense=r,h.refetch=g,h}function ft(t,e){return ct(ot,t)}const dt=3;async function pt(t,e){const i=t.startsWith("/")?t.slice(1):t;let s=`${window.DATA_HOST}${i}`;const n={allInOne:!1};if(s.includes("#")){const r=new URLSearchParams(s.split("#")[1]);n.allInOne=r.get("allInOne")==="true",s=s.split("#")[0]}t.startsWith("http")&&(s=t),s.endsWith("/")&&(s=s.slice(0,-1));const a=r=>r.includes("?")?`${r}&t=${e??0}`:`${r}?t=${e??0}`,u=n.allInOne?[await fetch(a(s))]:[await fetch(a(`${s}/config.json`)),await fetch(a(`${s}/team.json`)),await fetch(a(`${s}/run.json`))],{status:l,statusText:v}=u[0];if(l>=300||l<200)throw new Error(`fetch data failed. [status=${l}] [statusText=${v}]`);return Promise.all(u.map(r=>r.json())).then(r=>n.allInOne?r[0]:{contest:r[0],teams:r[1],submissions:r[2]})}function yt(t,e,i=!1){let s=3e4,n=s;const a=W(()=>Math.floor(e.value.getTime()/1e3/10));return at.value==="I18N"&&(s=10*1e3,n=s),i&&(s=Number.POSITIVE_INFINITY,n=!1),ft({queryKey:[t,a.value],queryFn:()=>pt(t,a.value),retry:dt,staleTime:s,refetchInterval:n})}function gt(){return B("data-source","",{transform:String})}function Ot(){return B("battle-of-giants","",{transform:String})}export{Ot as a,gt as g,yt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as V,_ as f,P as Z,T as H,M as T,A as R}from"./contest-Dqsw2u_w.js";var n=(t=>(t.PENDING="PENDING",t.WAITING="WAITING",t.PREPARING="PREPARING",t.COMPILING="COMPILING",t.RUNNING="RUNNING",t.JUDGING="JUDGING",t.FROZEN="FROZEN",t.ACCEPTED="ACCEPTED",t.CORRECT="CORRECT",t.PARTIALLY_CORRECT="PARTIALLY_CORRECT",t.REJECTED="REJECTED",t.WRONG_ANSWER="WRONG_ANSWER",t.NO_OUTPUT="NO_OUTPUT",t.COMPILATION_ERROR="COMPILATION_ERROR",t.PRESENTATION_ERROR="PRESENTATION_ERROR",t.RUNTIME_ERROR="RUNTIME_ERROR",t.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",t.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",t.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",t.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",t.HACKED="HACKED",t.JUDGEMENT_FAILED="JUDGEMENT_FAILED",t.CONFIGURATION_ERROR="CONFIGURATION_ERROR",t.FILE_ERROR="FILE_ERROR",t.SYSTEM_ERROR="SYSTEM_ERROR",t.CANCELED="CANCELED",t.SKIPPED="SKIPPED",t.SECURITY_VIOLATED="SECURITY_VIOLATED",t.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",t.UNKNOWN="UNKNOWN",t.UNDEFINED="UNDEFINED",t))(n||{});const It={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},gt={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"};function $(t){return t=t.toUpperCase().replace(" ","_"),["OK","AC",n.ACCEPTED.toString()].includes(t)||[n.CORRECT.toString()].includes(t)?n.ACCEPTED:[n.PARTIALLY_CORRECT.toString()].includes(t)?n.PARTIALLY_CORRECT:["WA",n.WRONG_ANSWER.toString()].includes(t)?n.WRONG_ANSWER:["RJ","INCORRECT",n.REJECTED.toString()].includes(t)?n.REJECTED:["NO",n.NO_OUTPUT.toString()].includes(t)?n.NO_OUTPUT:["PD",n.PENDING.toString()].includes(t)?n.PENDING:[n.WAITING.toString()].includes(t)?n.WAITING:[n.JUDGING.toString()].includes(t)?n.JUDGING:[n.FROZEN.toString()].includes(t)?n.FROZEN:["CE",n.COMPILATION_ERROR.toString()].includes(t)?n.COMPILATION_ERROR:["PE",n.PRESENTATION_ERROR.toString()].includes(t)?n.PRESENTATION_ERROR:["TL","TLE",n.TIME_LIMIT_EXCEEDED.toString()].includes(t)?n.TIME_LIMIT_EXCEEDED:["ML","MLE",n.MEMORY_LIMIT_EXCEEDED.toString()].includes(t)?n.MEMORY_LIMIT_EXCEEDED:["OL","OLE",n.OUTPUT_LIMIT_EXCEEDED.toString()].includes(t)?n.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",n.IDLENESS_LIMIT_EXCEEDED.toString()].includes(t)?n.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",n.RUNTIME_ERROR.toString()].includes(t)?n.RUNTIME_ERROR:["JE",n.JUDGEMENT_FAILED.toString()].includes(t)?n.JUDGEMENT_FAILED:["SE",n.SYSTEM_ERROR.toString()].includes(t)?n.SYSTEM_ERROR:[n.HACKED.toString()].includes(t)?n.HACKED:[n.CONFIGURATION_ERROR.toString()].includes(t)?n.CONFIGURATION_ERROR:[n.CANCELED.toString()].includes(t)?n.CANCELED:[n.SKIPPED.toString()].includes(t)?n.SKIPPED:[n.SECURITY_VIOLATED.toString()].includes(t)?n.SECURITY_VIOLATED:[n.DENIAL_OF_JUDGEMENT.toString()].includes(t)?n.DENIAL_OF_JUDGEMENT:n.UNKNOWN}function q(t){return[n.ACCEPTED,n.CORRECT].includes(t)}function Q(t){return[n.RUNTIME_ERROR,n.TIME_LIMIT_EXCEEDED,n.MEMORY_LIMIT_EXCEEDED,n.OUTPUT_LIMIT_EXCEEDED,n.IDLENESS_LIMIT_EXCEEDED,n.WRONG_ANSWER,n.REJECTED,n.NO_OUTPUT,n.JUDGEMENT_FAILED,n.HACKED].includes(t)}function tt(t){return[n.PENDING,n.WAITING,n.COMPILING,n.JUDGING,n.FROZEN].includes(t)}function et(t){return[n.COMPILATION_ERROR,n.PRESENTATION_ERROR,n.CONFIGURATION_ERROR,n.SYSTEM_ERROR,n.CANCELED,n.SKIPPED,n.UNKNOWN,n.UNDEFINED].includes(t)}class b{constructor(){this.status=n.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return q(this.status)}isRejected(){return Q(this.status)}isPending(){return tt(this.status)}isNotCalculatedPenaltyStatus(){return et(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const e=this.timestampToSecond,i=Math.floor(e/3600),s=Math.floor(e%3600/60),r=e%60,a=m=>m.toString().padStart(2,"0");return`${a(i)}:${a(s)}:${a(r)}`}get timestampDisplayFormatWithMilliSecond(){let e=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const i=(this.timestamp%1e3).toString().padStart(3,"0");e+=`.${i}`}return e}static compare(e,i){if(e.timestamp!==i.timestamp)return e.timestamp-i.timestamp;if(e.teamId===i.teamId){if(e.isAccepted()&&!i.isAccepted())return-1;if(!e.isAccepted()&&i.isAccepted())return 1}return e.id<i.id?-1:e.id===i.id?0:1}}function P(t,e){const i=new b;return i.id=String(t.id??t.submission_id??""),i.teamId=String(t.team_id),i.problemId=String(t.problem_id),i.timestamp=t.timestamp,i.status=$(t.status),i.isIgnore=t.is_ignore??!1,t.time&&(i.time=t.time),t.language&&(i.language=t.language),t.reaction?i.reaction=t.reaction:e?.options.reactionVideoUrlTemplate&&(i.reaction={url:e.options.reactionVideoUrlTemplate.replace(/\$\{submission_id\}/,i.id)}),i}function Nt(t,e){return Array.isArray(t)?t.map((i,s)=>P({...i,id:i.submission_id??String(s)},e)):Object.entries(t).map(([s,r])=>P({...r,id:r.submission_id??s},e))}class p{constructor(){this.id="",this.name="",this.organization="",this.group=[],this.tag=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get membersToArray(){if(Array.isArray(this.members))return this.members;if(typeof this.members=="string"){if(this.members.includes(", "))return this.members.split(", ");if(this.members.includes("、"))return this.members.split("、")}return[]}get membersToString(){return typeof this.members=="string"?this.members:this.members?.join(", ")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const e=this.attemptedProblemNum,i=this.solvedProblemNum;return V(e,i)}calcSE(e){let i=0,s=0;if(this.problemStatistics.forEach(a=>{a.isSolved&&(i+=1,s+=a.problem.statistics.acceptedNum)}),e===0||i===0)return 0;const r=(i*e-s)/e/i;return this.se=Math.round(r*100)/100,this.se}calcSolvedData(e){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const i of this.problemStatistics)i.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=i.failedCount+1,e?.calculationOfPenalty==="in_seconds"||e?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=i.penaltyInSecond:this.penalty+=i.penalty);e?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(e){if(e)for(const i of e)this.rank>=i.minRank&&this.rank<=i.maxRank&&this.awards.push(i.medalType)}isEqualRank(e){return this.solvedProblemNum===e.solvedProblemNum&&this.penalty===e.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const e=[];e.push(this.placeChartPoints[0]);for(let i=1;i<this.placeChartPoints.length-1;i++){const s=this.placeChartPoints[i],r=e[e.length-1];(s.rank!==r.rank||s.lastSolvedProblem!==r.lastSolvedProblem)&&e.push(s)}this.placeChartPoints.length>1&&e.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=e}static compare(e,i){return e.solvedProblemNum!==i.solvedProblemNum?i.solvedProblemNum-e.solvedProblemNum:e.penalty!==i.penalty?e.penalty-i.penalty:e.lastSolvedProblemStatistics&&i.lastSolvedProblemStatistics?e.lastSolvedProblemStatistics.solvedTimestampToMinute-i.lastSolvedProblemStatistics.solvedTimestampToMinute:e.name<i.name?-1:e.name>i.name?1:0}}function O(t){const e=new p;e.id=t.id??t.team_id??"",e.name=t.name??t.team_name??"",e.organization=t.organization??"",e.badge=t.badge,e.group=f.cloneDeep(t.group??[]),e.tag=f.cloneDeep(t.tag??[]),e.coach=t.coach,e.members=t.members,t.official&&e.group.push("official"),t.unofficial&&e.group.push("unofficial"),t.girl&&e.group.push("girl");{const i=t;for(const s of Object.keys(i))(i[s]===1||i[s]===!0)&&e.group.push(s)}return e.group=[...new Set(e.group)],e.group.sort(),t.location&&(e.location=t.location),t.icpc_id&&(e.icpcID=t.icpc_id),e}function bt(t){return Array.isArray(t)?t.map(e=>O(e)):Object.entries(t).map(([i,s])=>O({...s,team_id:s.team_id??i}))}class it{constructor(){this.problem=new Z,this.team=new p,this.submission=new b}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(e,i){return b.compare(e.submission,i.submission)}}const x="3.7.8",st=x,h=typeof Buffer=="function",M=typeof TextDecoder=="function"?new TextDecoder:void 0,y=typeof TextEncoder=="function"?new TextEncoder:void 0,rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(rt),I=(t=>{let e={};return t.forEach((i,s)=>e[i]=s),e})(d),nt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),U=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),F=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),G=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),k=t=>{let e,i,s,r,a="";const l=t.length%3;for(let m=0;m<t.length;){if((i=t.charCodeAt(m++))>255||(s=t.charCodeAt(m++))>255||(r=t.charCodeAt(m++))>255)throw new TypeError("invalid character found");e=i<<16|s<<8|r,a+=d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[e&63]}return l?a.slice(0,l-3)+"===".substring(l):a},A=typeof btoa=="function"?t=>btoa(t):h?t=>Buffer.from(t,"binary").toString("base64"):k,D=h?t=>Buffer.from(t).toString("base64"):t=>{let i=[];for(let s=0,r=t.length;s<r;s+=4096)i.push(u.apply(null,t.subarray(s,s+4096)));return A(i.join(""))},N=(t,e=!1)=>e?F(D(t)):D(t),at=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?u(192|e>>>6)+u(128|e&63):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|e&63)}},ot=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=t=>t.replace(ot,at),L=h?t=>Buffer.from(t,"utf8").toString("base64"):y?t=>D(y.encode(t)):t=>A(w(t)),E=(t,e=!1)=>e?F(L(t)):L(t),v=t=>E(t,!0),lt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),i=e-65536;return u((i>>>10)+55296)+u((i&1023)+56320);case 3:return u((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return u((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},B=t=>t.replace(lt,mt),z=t=>{if(t=t.replace(/\s+/g,""),!nt.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,i,s,r=[];for(let a=0;a<t.length;)e=I[t.charAt(a++)]<<18|I[t.charAt(a++)]<<12|(i=I[t.charAt(a++)])<<6|(s=I[t.charAt(a++)]),i===64?r.push(u(e>>16&255)):s===64?r.push(u(e>>16&255,e>>8&255)):r.push(u(e>>16&255,e>>8&255,e&255));return r.join("")},S=typeof atob=="function"?t=>atob(G(t)):h?t=>Buffer.from(t,"base64").toString("binary"):z,W=h?t=>U(Buffer.from(t,"base64")):t=>U(S(t).split("").map(e=>e.charCodeAt(0))),X=t=>W(Y(t)),ct=h?t=>Buffer.from(t,"base64").toString("utf8"):M?t=>M.decode(W(t)):t=>B(S(t)),Y=t=>G(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),C=t=>ct(Y(t)),ut=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},K=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),j=function(){const t=(e,i)=>Object.defineProperty(String.prototype,e,K(i));t("fromBase64",function(){return C(this)}),t("toBase64",function(e){return E(this,e)}),t("toBase64URI",function(){return E(this,!0)}),t("toBase64URL",function(){return E(this,!0)}),t("toUint8Array",function(){return X(this)})},J=function(){const t=(e,i)=>Object.defineProperty(Uint8Array.prototype,e,K(i));t("toBase64",function(e){return N(this,e)}),t("toBase64URI",function(){return N(this,!0)}),t("toBase64URL",function(){return N(this,!0)})},Et=()=>{j(),J()},_={version:x,VERSION:st,atob:S,atobPolyfill:z,btoa:A,btoaPolyfill:k,fromBase64:C,toBase64:E,encode:E,encodeURI:v,encodeURL:v,utob:w,btou:B,decode:C,isValid:ut,fromUint8Array:N,toUint8Array:X,extendString:j,extendUint8Array:J,extendBuiltins:Et};var ht=(t=>(t[t.BLUE=0]="BLUE",t[t.RED=1]="RED",t))(ht||{});class g{constructor(e=0){this.type=e,this.name=`${e===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=e,this.filterOrganizationMap=i}setFilterTeams(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterTeams=e,this.filterTeamMap=i}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let e=0;return this.teams.forEach(i=>{e+=i.solvedProblemNum}),e}get totalPenalty(){let e=0;return this.teams.forEach(i=>{e+=i.penaltyToMinute}),e}get totalPenaltyToString(){const e=this.totalPenalty,i=a=>a<10?`0${a}`:String(a),s=Math.floor(e/60),r=Math.floor(e%60);return[i(s),i(r)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class dt{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new g(0),this.redTeam=new g(1)}ToBase64(){return _.encode(JSON.stringify(this))}FromBase64(e){if(e.length===0||_.isValid(e)===!1)return;const i=JSON.parse(_.decode(e));this.enable=i.enable,this.topX=i.topX,this.equalTeams=i.equalTeams,this.persist=i.persist,this.blueTeam=new g(0),this.blueTeam.name=i.blueTeam.name,this.blueTeam.setFilterOrganizations(i.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(i.blueTeam.filterTeams),this.redTeam=new g(1),this.redTeam.name=i.redTeam.name,this.redTeam.setFilterOrganizations(i.redTeam.filterOrganizations),this.redTeam.setFilterTeams(i.redTeam.filterTeams)}}class ft{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(e){return this.teamSolvedNumIndex[e]??0}}class pt{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new dt}setSelf(e){this.enableFilterSubmissionsByTimestamp=e.enableFilterSubmissionsByTimestamp,this.width=e.width,this.timestamp=e.timestamp,this.enableFilterTeamsByGroup=e.enableFilterTeamsByGroup,this.group=e.group,this.filterOrganizations=e.filterOrganizations,this.filterOrganizationMap=e.filterOrganizationMap,this.filterTeams=e.filterTeams,this.filterTeamMap=e.filterTeamMap,this.enableAnimatedSubmissions=e.enableAnimatedSubmissions,this.battleOfGiants=e.battleOfGiants}setWidth(e,i){this.width=e,this.timestamp=Math.floor((i.getEndTime().unix()-i.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(e){this.group=e,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=e,this.filterOrganizationMap=i}setFilterTeams(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterTeams=e,this.filterTeamMap=i}isNeedReBuildRank(e){return this.enableFilterSubmissionsByTimestamp!==e.enableFilterSubmissionsByTimestamp||this.width!==e.width||this.timestamp!==e.timestamp||this.enableFilterTeamsByGroup!==e.enableFilterTeamsByGroup||this.group!==e.group}}class _t{constructor(e,i,s){this.contest=e,this.teams=f.cloneDeep(i),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=f.cloneDeep(s).sort(b.compare);{const r=this.contest.options,a=f.cloneDeep(r.submissionTimestampUnit);this.submissions.forEach(l=>{l.timestampUnit=a,l.time&&(r.submissionHasTimeField=!0),l.language&&(r.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(r=>[r.id,r])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(r=>r),this.originTeams.sort(p.compare),this.rankStatistics=new ft,this.options=new pt,this.balloons=[];{const r=new Set;this.submissions.forEach(a=>{a.language&&r.add(a.language)}),this.languages=[...r].sort()}{const r=new Set;this.submissions.forEach(a=>{r.add(a.status)}),this.statuses=[...r].sort()}}cleanRank(){(()=>{this.teams=[];for(const[e,i]of this.teamsMap)this.filterTeamByOrg(i)||this.teams.push(i)})();for(const e of this.teams)e.reset(),e.problemStatistics=this.contest.problems.map(i=>{const s=new H;return s.problem=i,s.contestPenalty=this.contest.penalty,s}),e.problemStatisticsMap=new Map(e.problemStatistics.map(i=>[i.problem.id,i]));this.contest.problems.forEach(e=>{e.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(s=>s.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array.from({length:this.contest.problems.length+1}).fill(0),this.rankStatistics.teamSolvedNumIndex=Array.from({length:this.contest.problems.length+1}).fill(0);let e=0;const i=this.getSubmissions();for(let s=0;s<i.length;s++){const r=i[s],a=r.teamId,l=r.problemId,m=this.teamsMap.get(a),c=this.contest.problemsMap.get(l);(()=>{if(m===void 0||this.filterTeamByOrg(m)||c===void 0)return;const o=m.problemStatisticsMap.get(l);if(o.submissions.push(r),m.submissions.push(r),c.statistics.submittedNum++,o.isSolved){r.isSolved=!1,r.isFirstSolved=!1;return}if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){c.statistics.ignoreNum++,o.ignoreCount++;return}if(o.isSubmitted=!0,o.lastSubmitTimestamp=r.timestampToSecond,o.totalCount++,r.isAccepted()){for(r.isSolved=!0,o.isSolved=!0,o.solvedTimestamp=r.timestampToSecond,c.statistics.acceptedNum++,c.statistics.attemptedNum+=o.failedCount+1,(c.statistics.firstSolveSubmissions.length===0||c.statistics.firstSolveSubmissions[c.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(r.isFirstSolved=!0,o.isFirstSolved=!0,c.statistics.firstSolveSubmissions.push(r));c.statistics.lastSolveSubmissions.length>0;)c.statistics.lastSolveSubmissions.pop();c.statistics.lastSolveSubmissions.push(r),m.lastSolvedProblem=c,m.lastSolvedProblemStatistics=o}r.isRejected()&&(o.failedCount++,c.statistics.rejectedNum++),r.isPending()&&(o.pendingCount++,c.statistics.pendingNum++)})(),(r.timestampToMinute>e||s===i.length-1)&&(this.teams.forEach(o=>o.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.teams.forEach(o=>o.placeChartPoints.push({timePoint:r.timestampToMinute,rank:o.rank,lastSolvedProblem:o.lastSolvedProblem}))),e=r.timestampToMinute}this.teams.forEach(s=>s.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(s=>s.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(s=>s.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(s=>s.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(s=>s.calcAwards(this.contest.awards?.get(this.options.group))),this.teams.forEach(s=>s.postProcessPlaceChartPoints())})(),(()=>{for(const e of this.teams)this.rankStatistics.teamSolvedNum[e.solvedProblemNum]++;{let e=0;const i=this.rankStatistics.teamSolvedNum,s=this.rankStatistics.teamSolvedNumIndex;for(let r=s.length-1;r>=0;r--)e+=i[r]>0?1:0,s[r]=e}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let e=1,i=1,s=null;for(const r of this.teams)r.rank=e++,r.originalRank=i++,s!==null&&r.isEqualRank(s)&&(r.rank=s.rank),s=r}buildOrgRank(){if(!this.contest.organization)return;let e=1,i=null;const s=new Set;for(const r of this.teams){const a=r.organization;s.has(a)||(s.add(a),r.organizationRank=e++,i!==null&&r.isEqualRank(i)&&(r.organizationRank=i.organizationRank),i=r)}}buildOrganizations(){if(!this.contest.organization)return[];const e=new Array,i=new Set;return this.teams.forEach(s=>{const r=s.organization;i.has(r)||(e.push(r),i.add(r))}),e.sort(),e}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const e=this.rankStatistics.effectiveTeamNum,i=[],s=new R,r=new R,a=new R,l=new R;s.medalType=T.GOLD,s.minRank=1,s.maxRank=Math.ceil(e*.1),s.maxRank>=s.minRank&&i.push(s),r.medalType=T.SILVER,r.minRank=s.maxRank+1,r.maxRank=Math.ceil(e*.3),r.maxRank>=r.minRank&&i.push(r),a.medalType=T.BRONZE,a.minRank=r.maxRank+1,a.maxRank=Math.ceil(e*.6),a.maxRank>=a.minRank&&i.push(a),l.medalType=T.HONORABLE,l.minRank=a.maxRank+1,this.teams.forEach(m=>{m.solvedProblemNum>0&&(l.maxRank=Math.max(l.maxRank,m.rank))}),l.maxRank>=l.minRank&&i.push(l),this.contest.awards.set("official",i)}}filterTeamByOrg(e){const i=this.options;return!!(i.enableFilterTeamsByGroup&&!e.group?.includes(i.group))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(e=>!(this.contest.replayContestStartTimestamp!==void 0&&e.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&e.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const e=this.getSubmissions();for(let i=0;i<e.length;i++){const s=e[i],r=s.teamId,a=s.problemId,l=this.teamsMap.get(r),m=this.contest.problemsMap.get(a);(()=>{if(l===void 0||m===void 0)return;const c=l.problemStatisticsMap.get(a);if(!c.isSolved&&s.isAccepted()){c.isSolved=!0,c.solvedTimestamp=s.timestampToSecond;const o=new it;o.team=l,o.problem=m,o.submission=s,this.balloons.push(o)}})()}}setReplayTime(e){this.contest.setReplayTime(e)}}export{it as B,ht as G,_t as R,n as S,p as T,Nt as a,et as b,bt as c,tt as d,gt as e,b as f,Q as g,It as h,q as i,pt as j};
|
|
1
|
+
import{b as V,_ as f,P as Z,T as H,M as T,A as R}from"./contest-DN6vVVUM.js";var n=(t=>(t.PENDING="PENDING",t.WAITING="WAITING",t.PREPARING="PREPARING",t.COMPILING="COMPILING",t.RUNNING="RUNNING",t.JUDGING="JUDGING",t.FROZEN="FROZEN",t.ACCEPTED="ACCEPTED",t.CORRECT="CORRECT",t.PARTIALLY_CORRECT="PARTIALLY_CORRECT",t.REJECTED="REJECTED",t.WRONG_ANSWER="WRONG_ANSWER",t.NO_OUTPUT="NO_OUTPUT",t.COMPILATION_ERROR="COMPILATION_ERROR",t.PRESENTATION_ERROR="PRESENTATION_ERROR",t.RUNTIME_ERROR="RUNTIME_ERROR",t.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",t.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",t.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",t.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",t.HACKED="HACKED",t.JUDGEMENT_FAILED="JUDGEMENT_FAILED",t.CONFIGURATION_ERROR="CONFIGURATION_ERROR",t.FILE_ERROR="FILE_ERROR",t.SYSTEM_ERROR="SYSTEM_ERROR",t.CANCELED="CANCELED",t.SKIPPED="SKIPPED",t.SECURITY_VIOLATED="SECURITY_VIOLATED",t.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",t.UNKNOWN="UNKNOWN",t.UNDEFINED="UNDEFINED",t))(n||{});const It={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},gt={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"};function $(t){return t=t.toUpperCase().replace(" ","_"),["OK","AC",n.ACCEPTED.toString()].includes(t)||[n.CORRECT.toString()].includes(t)?n.ACCEPTED:[n.PARTIALLY_CORRECT.toString()].includes(t)?n.PARTIALLY_CORRECT:["WA",n.WRONG_ANSWER.toString()].includes(t)?n.WRONG_ANSWER:["RJ","INCORRECT",n.REJECTED.toString()].includes(t)?n.REJECTED:["NO",n.NO_OUTPUT.toString()].includes(t)?n.NO_OUTPUT:["PD",n.PENDING.toString()].includes(t)?n.PENDING:[n.WAITING.toString()].includes(t)?n.WAITING:[n.JUDGING.toString()].includes(t)?n.JUDGING:[n.FROZEN.toString()].includes(t)?n.FROZEN:["CE",n.COMPILATION_ERROR.toString()].includes(t)?n.COMPILATION_ERROR:["PE",n.PRESENTATION_ERROR.toString()].includes(t)?n.PRESENTATION_ERROR:["TL","TLE",n.TIME_LIMIT_EXCEEDED.toString()].includes(t)?n.TIME_LIMIT_EXCEEDED:["ML","MLE",n.MEMORY_LIMIT_EXCEEDED.toString()].includes(t)?n.MEMORY_LIMIT_EXCEEDED:["OL","OLE",n.OUTPUT_LIMIT_EXCEEDED.toString()].includes(t)?n.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",n.IDLENESS_LIMIT_EXCEEDED.toString()].includes(t)?n.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",n.RUNTIME_ERROR.toString()].includes(t)?n.RUNTIME_ERROR:["JE",n.JUDGEMENT_FAILED.toString()].includes(t)?n.JUDGEMENT_FAILED:["SE",n.SYSTEM_ERROR.toString()].includes(t)?n.SYSTEM_ERROR:[n.HACKED.toString()].includes(t)?n.HACKED:[n.CONFIGURATION_ERROR.toString()].includes(t)?n.CONFIGURATION_ERROR:[n.CANCELED.toString()].includes(t)?n.CANCELED:[n.SKIPPED.toString()].includes(t)?n.SKIPPED:[n.SECURITY_VIOLATED.toString()].includes(t)?n.SECURITY_VIOLATED:[n.DENIAL_OF_JUDGEMENT.toString()].includes(t)?n.DENIAL_OF_JUDGEMENT:n.UNKNOWN}function q(t){return[n.ACCEPTED,n.CORRECT].includes(t)}function Q(t){return[n.RUNTIME_ERROR,n.TIME_LIMIT_EXCEEDED,n.MEMORY_LIMIT_EXCEEDED,n.OUTPUT_LIMIT_EXCEEDED,n.IDLENESS_LIMIT_EXCEEDED,n.WRONG_ANSWER,n.REJECTED,n.NO_OUTPUT,n.JUDGEMENT_FAILED,n.HACKED].includes(t)}function tt(t){return[n.PENDING,n.WAITING,n.COMPILING,n.JUDGING,n.FROZEN].includes(t)}function et(t){return[n.COMPILATION_ERROR,n.PRESENTATION_ERROR,n.CONFIGURATION_ERROR,n.SYSTEM_ERROR,n.CANCELED,n.SKIPPED,n.UNKNOWN,n.UNDEFINED].includes(t)}class b{constructor(){this.status=n.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return q(this.status)}isRejected(){return Q(this.status)}isPending(){return tt(this.status)}isNotCalculatedPenaltyStatus(){return et(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const e=this.timestampToSecond,i=Math.floor(e/3600),s=Math.floor(e%3600/60),r=e%60,a=m=>m.toString().padStart(2,"0");return`${a(i)}:${a(s)}:${a(r)}`}get timestampDisplayFormatWithMilliSecond(){let e=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const i=(this.timestamp%1e3).toString().padStart(3,"0");e+=`.${i}`}return e}static compare(e,i){if(e.timestamp!==i.timestamp)return e.timestamp-i.timestamp;if(e.teamId===i.teamId){if(e.isAccepted()&&!i.isAccepted())return-1;if(!e.isAccepted()&&i.isAccepted())return 1}return e.id<i.id?-1:e.id===i.id?0:1}}function P(t,e){const i=new b;return i.id=String(t.id??t.submission_id??""),i.teamId=String(t.team_id),i.problemId=String(t.problem_id),i.timestamp=t.timestamp,i.status=$(t.status),i.isIgnore=t.is_ignore??!1,t.time&&(i.time=t.time),t.language&&(i.language=t.language),t.reaction?i.reaction=t.reaction:e?.options.reactionVideoUrlTemplate&&(i.reaction={url:e.options.reactionVideoUrlTemplate.replace(/\$\{submission_id\}/,i.id)}),i}function Nt(t,e){return Array.isArray(t)?t.map((i,s)=>P({...i,id:i.submission_id??String(s)},e)):Object.entries(t).map(([s,r])=>P({...r,id:r.submission_id??s},e))}class p{constructor(){this.id="",this.name="",this.organization="",this.group=[],this.tag=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get membersToArray(){if(Array.isArray(this.members))return this.members;if(typeof this.members=="string"){if(this.members.includes(", "))return this.members.split(", ");if(this.members.includes("、"))return this.members.split("、")}return[]}get membersToString(){return typeof this.members=="string"?this.members:this.members?.join(", ")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const e=this.attemptedProblemNum,i=this.solvedProblemNum;return V(e,i)}calcSE(e){let i=0,s=0;if(this.problemStatistics.forEach(a=>{a.isSolved&&(i+=1,s+=a.problem.statistics.acceptedNum)}),e===0||i===0)return 0;const r=(i*e-s)/e/i;return this.se=Math.round(r*100)/100,this.se}calcSolvedData(e){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const i of this.problemStatistics)i.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=i.failedCount+1,e?.calculationOfPenalty==="in_seconds"||e?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=i.penaltyInSecond:this.penalty+=i.penalty);e?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(e){if(e)for(const i of e)this.rank>=i.minRank&&this.rank<=i.maxRank&&this.awards.push(i.medalType)}isEqualRank(e){return this.solvedProblemNum===e.solvedProblemNum&&this.penalty===e.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const e=[];e.push(this.placeChartPoints[0]);for(let i=1;i<this.placeChartPoints.length-1;i++){const s=this.placeChartPoints[i],r=e[e.length-1];(s.rank!==r.rank||s.lastSolvedProblem!==r.lastSolvedProblem)&&e.push(s)}this.placeChartPoints.length>1&&e.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=e}static compare(e,i){return e.solvedProblemNum!==i.solvedProblemNum?i.solvedProblemNum-e.solvedProblemNum:e.penalty!==i.penalty?e.penalty-i.penalty:e.lastSolvedProblemStatistics&&i.lastSolvedProblemStatistics?e.lastSolvedProblemStatistics.solvedTimestampToMinute-i.lastSolvedProblemStatistics.solvedTimestampToMinute:e.name<i.name?-1:e.name>i.name?1:0}}function O(t){const e=new p;e.id=t.id??t.team_id??"",e.name=t.name??t.team_name??"",e.organization=t.organization??"",e.badge=t.badge,e.group=f.cloneDeep(t.group??[]),e.tag=f.cloneDeep(t.tag??[]),e.coach=t.coach,e.members=t.members,t.official&&e.group.push("official"),t.unofficial&&e.group.push("unofficial"),t.girl&&e.group.push("girl");{const i=t;for(const s of Object.keys(i))(i[s]===1||i[s]===!0)&&e.group.push(s)}return e.group=[...new Set(e.group)],e.group.sort(),t.location&&(e.location=t.location),t.icpc_id&&(e.icpcID=t.icpc_id),e}function bt(t){return Array.isArray(t)?t.map(e=>O(e)):Object.entries(t).map(([i,s])=>O({...s,team_id:s.team_id??i}))}class it{constructor(){this.problem=new Z,this.team=new p,this.submission=new b}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(e,i){return b.compare(e.submission,i.submission)}}const x="3.7.8",st=x,h=typeof Buffer=="function",M=typeof TextDecoder=="function"?new TextDecoder:void 0,y=typeof TextEncoder=="function"?new TextEncoder:void 0,rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(rt),I=(t=>{let e={};return t.forEach((i,s)=>e[i]=s),e})(d),nt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),U=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),F=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),G=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),k=t=>{let e,i,s,r,a="";const l=t.length%3;for(let m=0;m<t.length;){if((i=t.charCodeAt(m++))>255||(s=t.charCodeAt(m++))>255||(r=t.charCodeAt(m++))>255)throw new TypeError("invalid character found");e=i<<16|s<<8|r,a+=d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[e&63]}return l?a.slice(0,l-3)+"===".substring(l):a},A=typeof btoa=="function"?t=>btoa(t):h?t=>Buffer.from(t,"binary").toString("base64"):k,D=h?t=>Buffer.from(t).toString("base64"):t=>{let i=[];for(let s=0,r=t.length;s<r;s+=4096)i.push(u.apply(null,t.subarray(s,s+4096)));return A(i.join(""))},N=(t,e=!1)=>e?F(D(t)):D(t),at=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?u(192|e>>>6)+u(128|e&63):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|e&63)}},ot=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=t=>t.replace(ot,at),L=h?t=>Buffer.from(t,"utf8").toString("base64"):y?t=>D(y.encode(t)):t=>A(w(t)),E=(t,e=!1)=>e?F(L(t)):L(t),v=t=>E(t,!0),lt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),i=e-65536;return u((i>>>10)+55296)+u((i&1023)+56320);case 3:return u((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return u((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},B=t=>t.replace(lt,mt),z=t=>{if(t=t.replace(/\s+/g,""),!nt.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,i,s,r=[];for(let a=0;a<t.length;)e=I[t.charAt(a++)]<<18|I[t.charAt(a++)]<<12|(i=I[t.charAt(a++)])<<6|(s=I[t.charAt(a++)]),i===64?r.push(u(e>>16&255)):s===64?r.push(u(e>>16&255,e>>8&255)):r.push(u(e>>16&255,e>>8&255,e&255));return r.join("")},S=typeof atob=="function"?t=>atob(G(t)):h?t=>Buffer.from(t,"base64").toString("binary"):z,W=h?t=>U(Buffer.from(t,"base64")):t=>U(S(t).split("").map(e=>e.charCodeAt(0))),X=t=>W(Y(t)),ct=h?t=>Buffer.from(t,"base64").toString("utf8"):M?t=>M.decode(W(t)):t=>B(S(t)),Y=t=>G(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),C=t=>ct(Y(t)),ut=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},K=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),j=function(){const t=(e,i)=>Object.defineProperty(String.prototype,e,K(i));t("fromBase64",function(){return C(this)}),t("toBase64",function(e){return E(this,e)}),t("toBase64URI",function(){return E(this,!0)}),t("toBase64URL",function(){return E(this,!0)}),t("toUint8Array",function(){return X(this)})},J=function(){const t=(e,i)=>Object.defineProperty(Uint8Array.prototype,e,K(i));t("toBase64",function(e){return N(this,e)}),t("toBase64URI",function(){return N(this,!0)}),t("toBase64URL",function(){return N(this,!0)})},Et=()=>{j(),J()},_={version:x,VERSION:st,atob:S,atobPolyfill:z,btoa:A,btoaPolyfill:k,fromBase64:C,toBase64:E,encode:E,encodeURI:v,encodeURL:v,utob:w,btou:B,decode:C,isValid:ut,fromUint8Array:N,toUint8Array:X,extendString:j,extendUint8Array:J,extendBuiltins:Et};var ht=(t=>(t[t.BLUE=0]="BLUE",t[t.RED=1]="RED",t))(ht||{});class g{constructor(e=0){this.type=e,this.name=`${e===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=e,this.filterOrganizationMap=i}setFilterTeams(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterTeams=e,this.filterTeamMap=i}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let e=0;return this.teams.forEach(i=>{e+=i.solvedProblemNum}),e}get totalPenalty(){let e=0;return this.teams.forEach(i=>{e+=i.penaltyToMinute}),e}get totalPenaltyToString(){const e=this.totalPenalty,i=a=>a<10?`0${a}`:String(a),s=Math.floor(e/60),r=Math.floor(e%60);return[i(s),i(r)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class dt{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new g(0),this.redTeam=new g(1)}ToBase64(){return _.encode(JSON.stringify(this))}FromBase64(e){if(e.length===0||_.isValid(e)===!1)return;const i=JSON.parse(_.decode(e));this.enable=i.enable,this.topX=i.topX,this.equalTeams=i.equalTeams,this.persist=i.persist,this.blueTeam=new g(0),this.blueTeam.name=i.blueTeam.name,this.blueTeam.setFilterOrganizations(i.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(i.blueTeam.filterTeams),this.redTeam=new g(1),this.redTeam.name=i.redTeam.name,this.redTeam.setFilterOrganizations(i.redTeam.filterOrganizations),this.redTeam.setFilterTeams(i.redTeam.filterTeams)}}class ft{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(e){return this.teamSolvedNumIndex[e]??0}}class pt{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new dt}setSelf(e){this.enableFilterSubmissionsByTimestamp=e.enableFilterSubmissionsByTimestamp,this.width=e.width,this.timestamp=e.timestamp,this.enableFilterTeamsByGroup=e.enableFilterTeamsByGroup,this.group=e.group,this.filterOrganizations=e.filterOrganizations,this.filterOrganizationMap=e.filterOrganizationMap,this.filterTeams=e.filterTeams,this.filterTeamMap=e.filterTeamMap,this.enableAnimatedSubmissions=e.enableAnimatedSubmissions,this.battleOfGiants=e.battleOfGiants}setWidth(e,i){this.width=e,this.timestamp=Math.floor((i.getEndTime().unix()-i.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(e){this.group=e,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=e,this.filterOrganizationMap=i}setFilterTeams(e){const i=new Map;e.forEach(s=>{i.set(s.value,s)}),this.filterTeams=e,this.filterTeamMap=i}isNeedReBuildRank(e){return this.enableFilterSubmissionsByTimestamp!==e.enableFilterSubmissionsByTimestamp||this.width!==e.width||this.timestamp!==e.timestamp||this.enableFilterTeamsByGroup!==e.enableFilterTeamsByGroup||this.group!==e.group}}class _t{constructor(e,i,s){this.contest=e,this.teams=f.cloneDeep(i),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=f.cloneDeep(s).sort(b.compare);{const r=this.contest.options,a=f.cloneDeep(r.submissionTimestampUnit);this.submissions.forEach(l=>{l.timestampUnit=a,l.time&&(r.submissionHasTimeField=!0),l.language&&(r.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(r=>[r.id,r])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(r=>r),this.originTeams.sort(p.compare),this.rankStatistics=new ft,this.options=new pt,this.balloons=[];{const r=new Set;this.submissions.forEach(a=>{a.language&&r.add(a.language)}),this.languages=[...r].sort()}{const r=new Set;this.submissions.forEach(a=>{r.add(a.status)}),this.statuses=[...r].sort()}}cleanRank(){(()=>{this.teams=[];for(const[e,i]of this.teamsMap)this.filterTeamByOrg(i)||this.teams.push(i)})();for(const e of this.teams)e.reset(),e.problemStatistics=this.contest.problems.map(i=>{const s=new H;return s.problem=i,s.contestPenalty=this.contest.penalty,s}),e.problemStatisticsMap=new Map(e.problemStatistics.map(i=>[i.problem.id,i]));this.contest.problems.forEach(e=>{e.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(s=>s.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array.from({length:this.contest.problems.length+1}).fill(0),this.rankStatistics.teamSolvedNumIndex=Array.from({length:this.contest.problems.length+1}).fill(0);let e=0;const i=this.getSubmissions();for(let s=0;s<i.length;s++){const r=i[s],a=r.teamId,l=r.problemId,m=this.teamsMap.get(a),c=this.contest.problemsMap.get(l);(()=>{if(m===void 0||this.filterTeamByOrg(m)||c===void 0)return;const o=m.problemStatisticsMap.get(l);if(o.submissions.push(r),m.submissions.push(r),c.statistics.submittedNum++,o.isSolved){r.isSolved=!1,r.isFirstSolved=!1;return}if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){c.statistics.ignoreNum++,o.ignoreCount++;return}if(o.isSubmitted=!0,o.lastSubmitTimestamp=r.timestampToSecond,o.totalCount++,r.isAccepted()){for(r.isSolved=!0,o.isSolved=!0,o.solvedTimestamp=r.timestampToSecond,c.statistics.acceptedNum++,c.statistics.attemptedNum+=o.failedCount+1,(c.statistics.firstSolveSubmissions.length===0||c.statistics.firstSolveSubmissions[c.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(r.isFirstSolved=!0,o.isFirstSolved=!0,c.statistics.firstSolveSubmissions.push(r));c.statistics.lastSolveSubmissions.length>0;)c.statistics.lastSolveSubmissions.pop();c.statistics.lastSolveSubmissions.push(r),m.lastSolvedProblem=c,m.lastSolvedProblemStatistics=o}r.isRejected()&&(o.failedCount++,c.statistics.rejectedNum++),r.isPending()&&(o.pendingCount++,c.statistics.pendingNum++)})(),(r.timestampToMinute>e||s===i.length-1)&&(this.teams.forEach(o=>o.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.teams.forEach(o=>o.placeChartPoints.push({timePoint:r.timestampToMinute,rank:o.rank,lastSolvedProblem:o.lastSolvedProblem}))),e=r.timestampToMinute}this.teams.forEach(s=>s.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(s=>s.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(s=>s.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(s=>s.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(s=>s.calcAwards(this.contest.awards?.get(this.options.group))),this.teams.forEach(s=>s.postProcessPlaceChartPoints())})(),(()=>{for(const e of this.teams)this.rankStatistics.teamSolvedNum[e.solvedProblemNum]++;{let e=0;const i=this.rankStatistics.teamSolvedNum,s=this.rankStatistics.teamSolvedNumIndex;for(let r=s.length-1;r>=0;r--)e+=i[r]>0?1:0,s[r]=e}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let e=1,i=1,s=null;for(const r of this.teams)r.rank=e++,r.originalRank=i++,s!==null&&r.isEqualRank(s)&&(r.rank=s.rank),s=r}buildOrgRank(){if(!this.contest.organization)return;let e=1,i=null;const s=new Set;for(const r of this.teams){const a=r.organization;s.has(a)||(s.add(a),r.organizationRank=e++,i!==null&&r.isEqualRank(i)&&(r.organizationRank=i.organizationRank),i=r)}}buildOrganizations(){if(!this.contest.organization)return[];const e=new Array,i=new Set;return this.teams.forEach(s=>{const r=s.organization;i.has(r)||(e.push(r),i.add(r))}),e.sort(),e}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const e=this.rankStatistics.effectiveTeamNum,i=[],s=new R,r=new R,a=new R,l=new R;s.medalType=T.GOLD,s.minRank=1,s.maxRank=Math.ceil(e*.1),s.maxRank>=s.minRank&&i.push(s),r.medalType=T.SILVER,r.minRank=s.maxRank+1,r.maxRank=Math.ceil(e*.3),r.maxRank>=r.minRank&&i.push(r),a.medalType=T.BRONZE,a.minRank=r.maxRank+1,a.maxRank=Math.ceil(e*.6),a.maxRank>=a.minRank&&i.push(a),l.medalType=T.HONORABLE,l.minRank=a.maxRank+1,this.teams.forEach(m=>{m.solvedProblemNum>0&&(l.maxRank=Math.max(l.maxRank,m.rank))}),l.maxRank>=l.minRank&&i.push(l),this.contest.awards.set("official",i)}}filterTeamByOrg(e){const i=this.options;return!!(i.enableFilterTeamsByGroup&&!e.group?.includes(i.group))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(e=>!(this.contest.replayContestStartTimestamp!==void 0&&e.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&e.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const e=this.getSubmissions();for(let i=0;i<e.length;i++){const s=e[i],r=s.teamId,a=s.problemId,l=this.teamsMap.get(r),m=this.contest.problemsMap.get(a);(()=>{if(l===void 0||m===void 0)return;const c=l.problemStatisticsMap.get(a);if(!c.isSolved&&s.isAccepted()){c.isSolved=!0,c.solvedTimestamp=s.timestampToSecond;const o=new it;o.team=l,o.problem=m,o.submission=s,this.balloons.push(o)}})()}}setReplayTime(e){this.contest.setReplayTime(e)}}export{it as B,ht as G,_t as R,n as S,p as T,Nt as a,et as b,bt as c,tt as d,gt as e,b as f,Q as g,It as h,q as i,pt as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-TKQ9vyIl.js";import{d as c,m as f,H as _,u as b,c as h,o as v,b as e,k as a,h as s,a as x,a2 as y,z as g}from"./index-BgdOXbx0.js";import{u as k}from"./user-bzorCEtr.js";import{b as l}from"./route-block-B_A1xBdJ.js";import"./use-vmodel-XAhEANu_.js";const V={flex:"","flex-col":"","justify-center":"","items-center":""},w={"text-sm":"","opacity-75":""},I={"w-48":""},B={class:"hidden",for:"input"},C=["disabled"],N=c({name:"IndexPage",__name:"test",setup(R){const i=k(),o=f(i.savedName),u=_();function r(){o.value&&u.push(`/hi/${encodeURIComponent(o.value)}`)}const{t:n}=b();return(U,t)=>{const d=p;return v(),h("div",V,[t[1]||(t[1]=e("div",{"text-4xl":""},[e("div",{"i-carbon-campsite":""})],-1)),t[2]||(t[2]=e("p",null,[e("a",{rel:"noreferrer",href:"https://github.com/antfu/vitesse",target:"_blank"}," Vitesse ")],-1)),e("p",null,[e("em",w,a(s(n)("intro.desc")),1)]),t[3]||(t[3]=e("div",{"py-4":""},null,-1)),e("div",I,[x(d,{modelValue:s(o),"onUpdate:modelValue":t[0]||(t[0]=m=>g(o)?o.value=m:null),placeholder:s(n)("intro.whats-your-name"),autocomplete:"false",onKeydown:y(r,["enter"])},null,8,["modelValue","placeholder"]),e("label",B,a(s(n)("intro.whats-your-name")),1)]),e("div",null,[e("button",{"m-3":"","text-sm":"",btn:"",disabled:!s(o),onClick:r},a(s(n)("button.go")),9,C)])])}}});typeof l=="function"&&l(N);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aA as c,aB as r}from"./index-
|
|
1
|
+
import{aA as c,aB as r}from"./index-BgdOXbx0.js";const d=(...p)=>{const s=c().proxy.$props,t=Object.create(null);for(const e of p)if(typeof e=="string")t[e]=r(s,e,void 0,{eventName:`update:${e}`,passive:!0});else{const[o,n=o,a=`update:${o}`,u={}]=e;t[o]=r(s,n,void 0,{eventName:a,passive:!0,...u})}return t};export{d as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as n,m as r,f as t}from"./index-
|
|
1
|
+
import{ay as n,m as r,f as t}from"./index-BgdOXbx0.js";const f=n("user",()=>{const e=r(""),s=r(new Set),o=t(()=>Array.from(s.value)),u=t(()=>o.value.filter(a=>a!==e.value));function m(a){e.value&&s.value.add(e.value),e.value=a}return{setNewName:m,otherNames:u,savedName:e}});export{f as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as f}from"./index-
|
|
1
|
+
import{_ as f}from"./index-BgdOXbx0.js";function p(n={}){const{immediate:s=!1,onNeedRefresh:u,onOfflineReady:o,onRegistered:d,onRegisteredSW:r,onRegisterError:i}=n;let t,a;const c=async(e=!0)=>{await a};async function l(){if("serviceWorker"in navigator){if(t=await f(async()=>{const{Workbox:e}=await import("./workbox-window.prod.es5-CwtvwXb3.js");return{Workbox:e}},[],import.meta.url).then(({Workbox:e})=>new e("/sw.js",{scope:"/",type:"classic"})).catch(e=>{i?.(e)}),!t)return;t.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),t.addEventListener("installed",e=>{e.isUpdate||o?.()}),t.register({immediate:s}).then(e=>{r?r("/sw.js",e):d?.(e)}).catch(e=>{i?.(e)})}}return a=l(),c}export{p as registerSW};
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.
|
|
1
|
+
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.5/dist/balloon-512x512.svg" type="image/svg+xml"/><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.5/dist/balloon-512x512.svg" color="#00aba9"/><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.5/dist/balloon-192x192.png"/><meta name="msapplication-TileColor" content="#00aba9"/><meta name="author" content="Dup4"/><meta name="title" content="Board - XCPCIO"/><meta name="description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="keywords" content="ICPC, Rank, Board, Leaderboard, ScoreBoard, Standings"/><meta property="og:site_name" content="XCPCIO"/><meta property="og:title" content="Board - XCPCIO"/><meta property="og:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta property="og:type" content="website"/><meta property="og:image" content="https://xcpcio.com/og.png"/><meta property="og:image:type" content="image/png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta name="twitter:title" content="Board - XCPCIO"/><meta name="twitter:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:image" content="https://xcpcio.com/og.png"/><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return`${_}/`}{let _="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.5/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.64.5/dist/assets/index-BgdOXbx0.js"></script><link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.64.5/dist/assets/index-BiwUz1KO.css"><link rel="manifest" href="/manifest.webmanifest"></head><body class="font-sans"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WHLF55BJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><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 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){}</script></body></html>
|
package/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,r)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(n.map((s=>o[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7ee6f867"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_..-5I0UWqRG.css",revision:null},{url:"assets/_...all_-
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,r)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(n.map((s=>o[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7ee6f867"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_..-5I0UWqRG.css",revision:null},{url:"assets/_...all_-C7dMddyX.js",revision:null},{url:"assets/_...all_-CrAXWMms.js",revision:null},{url:"assets/_name_-CCt4iO46.js",revision:null},{url:"assets/_plugin-vue_export-helper-DlAUqK2U.js",revision:null},{url:"assets/about-hRLHJCTa.js",revision:null},{url:"assets/Balloon.vue_vue_type_script_setup_true_lang-VH0oZUbG.js",revision:null},{url:"assets/board-B1ffLyWD.js",revision:null},{url:"assets/Board-BGQzKKUd.js",revision:null},{url:"assets/Board-DfGcLI3S.css",revision:null},{url:"assets/board-layout-DFD_TI2f.js",revision:null},{url:"assets/constant-BbgSXH7a.js",revision:null},{url:"assets/contest-DN6vVVUM.js",revision:null},{url:"assets/ContestStateBadge-BqhxSQpe.css",revision:null},{url:"assets/ContestStateBadge-CRSdSlnb.js",revision:null},{url:"assets/Countdown--bGcDPEr.js",revision:null},{url:"assets/Countdown-CGwMuG9S.css",revision:null},{url:"assets/DataSourceInput.vue_vue_type_script_setup_true_lang-RwTU3Y58.js",revision:null},{url:"assets/dayjs-P3fiAbka.js",revision:null},{url:"assets/default-CFfod7Zl.js",revision:null},{url:"assets/en-78xzu5B_.js",revision:null},{url:"assets/Footer-DjV9rSBI.js",revision:null},{url:"assets/headless-CXtIjn48.js",revision:null},{url:"assets/home-DZ0gECPK.js",revision:null},{url:"assets/index-BgdOXbx0.js",revision:null},{url:"assets/index-BiH-Puq_.js",revision:null},{url:"assets/index-BiwUz1KO.css",revision:null},{url:"assets/index-BkDQUUrJ.js",revision:null},{url:"assets/index-CpSIcdq6.js",revision:null},{url:"assets/index-CREIPGSZ.css",revision:null},{url:"assets/index-CSTIlB6R.js",revision:null},{url:"assets/index-D-msPqye.css",revision:null},{url:"assets/index-layout-Dq48gweb.js",revision:null},{url:"assets/index-nAnFJtBI.js",revision:null},{url:"assets/NavBar-aT2xEvYz.css",revision:null},{url:"assets/NavBar-B0QEjlL_.js",revision:null},{url:"assets/pagination-CBd1qn1_.js",revision:null},{url:"assets/query-CL-e0XNa.js",revision:null},{url:"assets/rank-CuqdZSaD.js",revision:null},{url:"assets/Resolver-BTlxgfNF.css",revision:null},{url:"assets/Resolver-Dv_BVipI.js",revision:null},{url:"assets/RightArrowIcon--6Nl6tOs.js",revision:null},{url:"assets/route-block-B_A1xBdJ.js",revision:null},{url:"assets/test-DMrBZgPe.js",revision:null},{url:"assets/TheInput.vue_vue_type_script_setup_true_lang-TKQ9vyIl.js",revision:null},{url:"assets/Tooltip-DzyPDwbo.css",revision:null},{url:"assets/Tooltip.vue_vue_type_script_setup_true_lang-CyT5yUOa.js",revision:null},{url:"assets/use-vmodel-XAhEANu_.js",revision:null},{url:"assets/user-bzorCEtr.js",revision:null},{url:"assets/virtual_pwa-register-BRK9QVyY.js",revision:null},{url:"assets/workbox-window.prod.es5-CwtvwXb3.js",revision:null},{url:"assets/zh-CN-32UqCzRy.js",revision:null},{url:"index.html",revision:"11260c904da9e7bd32e2ce397dde9529"},{url:"balloon2-192x192.png",revision:"c857ae6d9dfae118ab4397d4358422bd"},{url:"balloon2-512x512.png",revision:"065594f4f743fe3884793c03d3fe7d9e"},{url:"favicon.svg",revision:"5a744f4ccbb122d4a0575be779ddcd43"},{url:"safari-pinned-tab.svg",revision:"5eaf74d1c43d30e0af743b68a3f48504"},{url:"manifest.webmanifest",revision:"2a3579b4def3b981643d514aab210ae8"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/board-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.64.
|
|
4
|
+
"version": "0.64.5",
|
|
5
5
|
"description": "The ICPC Series Competition Leaderboard Visualization Engine",
|
|
6
6
|
"author": "Dup4 <hi@dup4.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vue-router": "^4.5.1",
|
|
54
54
|
"vue-search-select": "^3.2.0",
|
|
55
55
|
"vue-toast-notification": "^3.1.3",
|
|
56
|
-
"@xcpcio/
|
|
57
|
-
"@xcpcio/
|
|
56
|
+
"@xcpcio/types": "0.64.5",
|
|
57
|
+
"@xcpcio/core": "0.64.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@iconify/json": "^2.2.394",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./Board-Bg3Ppuz0.js";import{_ as u}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-CPMBGjH4.js";import{g as f}from"./query-pkEyawI-.js";import{d,c as e,o as t,a as n,q as l,h as a,F as B,G as g}from"./index-DKi5jS9p.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./pagination-PAprVtYE.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-51X8aMF6.js";import"./TheInput.vue_vue_type_script_setup_true_lang-CVZfHKVN.js";import"./use-vmodel-Dqa3e3VF.js";import"./rank-C5KVO0Rq.js";import"./contest-Dqsw2u_w.js";import"./dayjs-R18HHVUp.js";import"./ContestStateBadge-DdwsGPTU.js";import"./constant-Dh1ZtsNO.js";const k={key:0},x=d({__name:"CustomBoard",setup(s){const o=f();return(r,b)=>{const _=u,p=i;return t(),e(B,null,[n(_),a(o).length>0?(t(),e("div",k,[n(p,{"data-source-url":a(o)},null,8,["data-source-url"])])):l("",!0)],64)}}}),m={};function C(s,o){const r=x;return t(),g(r)}typeof c=="function"&&c(m);const z=h(m,[["render",C]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./index-DKi5jS9p.js";const a="0.64.3",c="https://github.com/xcpcio/xcpcio",T="9a2d1cf824",I="https://xcpcio.com",r="Board - XCPCIO",_="Rating - XCPCIO",O="Balloon - XCPCIO",C="Resolver - XCPCIO",i="Countdown - XCPCIO",A=t(()=>window?window.CDN_HOST:""),o=t(()=>window?window.DATA_HOST:""),d=t(()=>o.value.replace("/data/","/rating-data/")),e=t(()=>window?window.DATA_REGION:"");export{a as A,O as B,A as C,o as D,c as G,d as R,r as T,I as X,T as a,e as b,i as c,_ as d,C as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./Countdown-DTJUHvaQ.js";import{_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-CPMBGjH4.js";import{g as f}from"./query-pkEyawI-.js";import{d as l,c as t,o as e,F as h,q as s,h as n,b as C,a as r}from"./index-DKi5jS9p.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./contest-Dqsw2u_w.js";import"./dayjs-R18HHVUp.js";import"./constant-Dh1ZtsNO.js";import"./TheInput.vue_vue_type_script_setup_true_lang-CVZfHKVN.js";import"./use-vmodel-Dqa3e3VF.js";const k={key:0},x={"mt-20":""},v={key:1},b=l({__name:"CustomCountdown",setup(m){const o=f();return(c,y)=>{const u=d,i=p;return e(),t(h,null,[n(o).length===0?(e(),t("div",k,[C("div",x,[r(u)])])):s("",!0),n(o).length>0?(e(),t("div",v,[r(i,{"data-source-url":n(o)},null,8,["data-source-url"])])):s("",!0)],64)}}}),_={};function w(m,o){const c=b;return e(),t("div",null,[r(c)])}typeof a=="function"&&a(_);const j=g(_,[["render",w]]);export{j as default};
|