PageSourceSearch

https://www.xleague.jp/_next/static/chunks/0xweuu_x5d16p.js

js xleague.jp collected 2026-09-24 21:10:07 UTC 7,244 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49991,e=>{"use strict";let t=(0,e.i(74822).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],49991)},23910,e=>{"use strict";var t=e.i(2017),n=e.i(27712),r=e.i(66966);async function a(e,t,n){let r=await fetch(e+t,{headers:{Accept:"application/json"},signal:n,cache:"no-store"});if(!r.ok)throw Error(`HTTP ${r.status} on ${t}`);let a=await r.text();return 65279===a.charCodeAt(0)&&(a=a.slice(1)),JSON.parse(a)}let i=()=>({manifest:null,gameInfo:null,lastFetchAt:null,online:!0});e.s(["LiveScoreCell",0,function({externalLivescoreUrl:e,homeTeamName:l,visitorTeamName:o,fallbackHome:s,fallbackVisitor:u}){let c=function({gameNo:e,dbHomeName:t,dbVisitorName:l}){let[o,s]=(0,n.useState)({homeScore:null,visitorScore:null,online:!0,lastFetchAt:null}),u=(0,n.useRef)(i());return(0,n.useEffect)(()=>{if(!e)return;let n=(0,r.buildProxyBase)(e),o=new AbortController,c=null,f=!1;u.current=i();let m=()=>{let e=u.current;if(!e.gameInfo)return void s({homeScore:null,visitorScore:null,online:e.online,lastFetchAt:e.lastFetchAt});let n=(0,r.matchTeamsToDB)(e.gameInfo.Teams,t,l),a=n?.homeIdx??0,i=n?.visitorIdx??1;s({homeScore:e.gameInfo.Teams[a]?.Score??0,visitorScore:e.gameInfo.Teams[i]?.Score??0,online:e.online,lastFetchAt:e.lastFetchAt})},d=async()=>{try{var e,t,r;let i=await a(n,"last_update.json",o.signal);if(e=u.current.manifest,t=i,r="game_info.json",!e||e.JsonFiles.find(e=>e.Name===r)?.LastUpdate!==t.JsonFiles.find(e=>e.Name===r)?.LastUpdate){let e=await a(n,"game_info.json",o.signal);u.current.gameInfo=e}u.current.manifest=i,u.current.lastFetchAt=new Date,u.current.online=!0,m()}catch(e){if(f||e instanceof DOMException&&"AbortError"===e.name)return;console.error("[livescore-summary] poll failed:",e),u.current.online=!1,m()}},h=()=>{f||(c=setTimeout(async()=>{await d(),h()},"u">typeof document&&document.hidden?6e4:2e4))},p=()=>{f||"u">typeof document&&!document.hidden&&(c&&clearTimeout(c),d().then(h))};return d().then(h),document.addEventListener("visibilitychange",p),()=>{f=!0,c&&clearTimeout(c),document.removeEventListener("visibilitychange",p),o.abort()}},[e,t,l]),o}({gameNo:(0,n.useMemo)(()=>(0,r.extractGameNo)(e),[e]),dbHomeName:l,dbVisitorName:o}),f=c.homeScore??s,m=c.visitorScore??u;return(0,t.jsxs)(t.Fragment,{children:[f," - ",m]})}],23910)},66966,19297,e=>{"use strict";let t=["1Q","2Q","3Q","4Q","OT"];function n(e){let t=e.Comment??"";return!!(/【INT】|【FMB-LOST】/.test(t)||/★\s*(?:TouchDown|TD)\s*★/i.test(t)&&!t.includes("KT側")&&("PUNT"===e.PlayName||"FG"===e.PlayName))}e.s(["QUARTERS",0,t,"emptyLiveState",0,()=>({manifest:null,define:null,gameInfo:null,drivePages:null,drives:new Map,teamStats:null,playerStats:null,lastFetchAt:null,online:!0})],19297);let r={Black:"#1c1c1c",White:"#f5f5f5",Red:"#d32f2f",Blue:"#1565c0",Green:"#2e7d32",Yellow:"#fbc02d",Orange:"#f57c00",Purple:"#6a1b9a"};function a(e,t){for(let n=0;n<t.length;n++)if(e.startsWith(t[n].Name))return n;return 0}function i(e){let n=t.indexOf(e.EndTime?.Quarter);return n>=0?n:t.indexOf(e.StartTime?.Quarter)}function l(e){let t=e.drivePages?.DrivePages??[],n=-1;for(let r of t){let t=e.drives.get(r.ID);if(!t)continue;let a=i(t);a>n&&(n=a)}return n}function o(e){return e.replace(/[A-Za-z0-9]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248)).toLowerCase().replace(/\s+/g,"")}e.s(["POLL_HIDDEN_MS",0,3e4,"POLL_MS",0,5e3,"buildProxyBase",0,function(e){return`/api/livescore/${encodeURIComponent(e)}/`},"computeLinescore",0,function(e){let r=e.gameInfo?.Teams??[],o=e.drivePages?.DrivePages??[],s=[t.map(()=>0),t.map(()=>0)];if(r.length<2)return s;for(let t of o){let l=e.drives.get(t.ID);if(!l)continue;let o=a(t.Title,r),u=i(l);if(u<0)continue;let c=!1;for(let e of l.Plays){let t=e.Comment??"";n(e)&&(c=!0);let r=c?1-o:o;/★\s*(?:TouchDown|TD)\s*★/i.test(t)&&(s[r][u]+=6),"PAT"!==e.PlayName||/失敗|×|NoGood/i.test(t)||(s[r][u]+=/【2pts?】/i.test(t)?2:1),"FG"!==e.PlayName||/×\s*NoGood\s*×|ブロック|ブロック/.test(t)||(s[r][u]+=3),/▼Safty▼/.test(t)&&(s[1-o][u]+=2)}}let u=l(e);if(u>=0)for(let e=0;e<2;e++){let t=r[e]?.Score;if("number"!=typeof t)continue;let n=s[e].reduce((e,t)=>
1e+t,0),a=t-n;0!==a&&(console.warn(`[livescore] reconcile diff detected: ${r[0]?.Name??"team0"} vs ${r[1]?.Name??"team1"} — team=${r[e]?.Name??e} authoritative=${t} computed=${n} diff=${a}`),s[e][u]=Math.max(0,s[e][u]+a))}return s},"computeReachedQuarterIndex",0,l,"contrastText",0,function(e){return e&&"string"==typeof e&&e.startsWith("#")&&7===e.length?(.299*parseInt(e.slice(1,3),16)+.587*parseInt(e.slice(3,5),16)+.114*parseInt(e.slice(5,7),16))/255>.6?"#1c1c1c":"#ffffff":"#ffffff"},"cssColor",0,function(e){return e?r[e]??e:null},"deriveLiveClock",0,function(e){let t=e.drivePages?.DrivePages??[];if(!t.length)return{quarter:"—",time:"--:--",isFinal:!1};let n=t[t.length-1],r=e.drives.get(n.ID);if(!r)return{quarter:"—",time:"--:--",isFinal:!1};let a=r.Plays.some(e=>"試合終了"===e.PlayName);return{quarter:r.EndTime.Quarter,time:r.EndTime.Time,isFinal:a}},"extractGameNo",0,function(e){if(!e)return null;try{let t=new URL(e).searchParams.get("GameNo");return t&&t.length>0?t:null}catch{return null}},"isDefensiveTouchdown",0,function(e){let t=!1;for(let r of e.Plays)if(n(r)&&(t=!0),/★\s*(?:TouchDown|TD)\s*★/i.test(r.Comment??""))return t;return!1},"isEventPlay",0,function(e){return!!(!e.No||e.PlayName.startsWith("+"))||/終了$|TIMEOUT/.test(e.PlayName)},"manifestChanged",0,function(e,t,n){let r=t.JsonFiles.find(e=>e.Name===n)?.LastUpdate;return void 0!==r&&(!e||e.JsonFiles.find(e=>e.Name===n)?.LastUpdate!==r)},"matchTeamsToDB",0,function(e,t,n){if(e.length<2)return null;let r=o(t),a=o(n),i=e.map(e=>o(e.Name)),l=(e,t)=>!!e&&!!t&&(e.startsWith(t)||t.startsWith(e)),s=i.findIndex(e=>l(r,e)),u=i.findIndex(e=>l(a,e));return s<0||u<0||s===u?null:{homeIdx:s,visitorIdx:u}},"normalizePN",0,function(e){return(e??"").replace(/[^A-Za-z]/g,"").toLowerCase()||"event"},"parseTags",0,function(e,t){let n=[],r=e??"";return/★\s*(?:TouchDown|TD)\s*★/i.test(r)&&n.push({kind:"td",label:"TD"}),/×\s*NoGood\s*×/.test(r)?n.push({kind:"fg-miss",label:"FG ✗"}):"FG"===t&&n.push({kind:"fg",label:"FG"}),"PAT"!==t||/失敗|×/.test(r)||n.push({kind:"fg",label:/【2pts?】/i.test(r)?"2PT":"PAT"}),/【INT】/.test(r)&&n.push({kind:"int",label:"INT"}),/【FMB-LOST】/.test(r)&&n.push({kind:"fumble",label:"FUM"}),/【QBサック】/.test(r)&&n.push({kind:"sack",label:"SACK"}),/【パス失敗】/.test(r)&&n.push({kind:"incomp",label:"INC"}),/\(3rd成功\)/.test(r)&&n.push({kind:"conv",label:"3rd ✓"}),/\(3rd失敗\)/.test(r)&&n.push({kind:"no-conv",label:"3rd ✗"}),/\(4th成功\)/.test(r)&&n.push({kind:"conv",label:"4th ✓"}),/\(4th失敗\)/.test(r)&&n.push({kind:"no-conv",label:"4th ✗"}),"+Penalty"===t&&n.push({kind:"pen",label:"PEN"}),n},"pickTeamFromTitle",0,a,"teamHasOT",0,function(e){for(let t of e.drivePages?.DrivePages??[])if(e.drives.get(t.ID)?.EndTime?.Quarter==="OT")return!0;return!1}],66966)}]);

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.