PageSourceSearch

https://robotstatistics.com/assets/cancelledEvents-Dpqkr6bo.js

js robotstatistics.com collected 2026-09-24 14:01:08 UTC 2,193 bytes, 1 lines download raw bytes

1var e=[{value:`upcoming`,label:`Upcoming`,description:`Future & live`},{value:`finished`,label:`Completed`,description:`Past events`},{value:`all`,label:`All`,description:`Every status`}],t={hs:{value:`hs`,label:`HS only`,shortLabel:`HS`,description:`High School`},ms:{value:`ms`,label:`MS only`,shortLabel:`MS`,description:`Middle School`},es:{value:`es`,label:`ES only`,shortLabel:`ES`,description:`Elementary School`}},n={1:[`hs`,`ms`],41:[`ms`,`es`]},r={hs:[/\bhigh[\s-]*school\b/i,/\bhs\b/i,/\bhigh\s+vex\b/i],ms:[/\bmiddle[\s-]*school\b/i,/\bms\b/i,/\bmiddle\s+vex\b/i],es:[/\belementary[\s-]*school\b/i,/\bes\b/i,/\belementary\s+vex\b/i]},i=/\b(?:blended|mixed)\b/i;function a(e){let t=Number(e?.program?.id??e?.id??e?.programid??e?.program_id??e);return Number.isFinite(t)?t:null}function o(e){let t=String(e||``).trim().toLowerCase().replace(/[\s_-]+/g,``);return[`hs`,`high`,`highschool`].includes(t)?`hs`:[`ms`,`middle`,`middleschool`].includes(t)?`ms`:[`es`,`elementary`,`elementaryschool`].includes(t)?`es`:t===`all`?`all`:null}function s(e){let r=n[a(e)]||[];return r.length?[{value:`all`,label:`All grades`,shortLabel:`All`,description:`Every grade`},...r.map(e=>t[e])]:[]}function c(e,t){let r=a(t);if(!r||a(e)!==r)return`all`;let i=o(e?.grade??e?.team_grade);return(n[r]||[]).includes(i)?i:`all`}function l(e,t){let s=n[a(e)||a(t)]||[];if(!s.length)return[];let c=[e?.grade,e?.team_grade,e?.grade_level,...Array.isArray(e?.grades)?e.grades:[]].map(o).filter(e=>s.includes(e)),l=String(e?.name||``),u=s.filter(e=>r[e].some(e=>e.test(l)));return i.test(l)?[...s]:[...new Set([...c,...u])]}function u(e,t,n){let r=o(t);return!r||r===`all`||l(e,n).includes(r)}function d(e){let t=String(e?.location?.country||e?.country||e?.location_country||``).trim().toUpperCase();return[`UNITED STATES`,`USA`,`US`].includes(t)}function f(e,t){if(t===`all`)return!0;let n=String(e?.status||``).trim().toLowerCase();return t===`finished`?n===`finished`:t!==`upcoming`||n!==`finished`}function p(e,{status:t=`all`,usOnly:n=!1,grade:r=`all`,program:i}={}){return(Array.isArray(e)?e:[]).filter(e=>f(e,t)&&(!n||d(e))&&u(e,r,i))}var m=[60006];export{s as a,p as i,e as n,u as o,c as r,o as s,m as t};

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