!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019fa6ee-c72f-7b93-b4f9-eaa73d2203ef")}catch(e){}}();import{createScraper as l}from"./scraper-dpzf502E.js";const i="#mainContent table.marketTable",d=".marketGrid";function S(r){l({bookie:r},()=>p(r))}function p(r){const t=m(r);return t.length?{runners:t}:{runners:y(r)}}function m(r){const t=[];return document.querySelectorAll('[data-testid="runner-name"]').forEach(s=>{try{const n=s.closest("tr"),e=s.textContent?.match(/^\s*(\d+)\./),c=e?.[1]?parseInt(e[1],10):NaN;if(!n||isNaN(c))return;const o=n.querySelector("button.odds-badge")?.textContent?.trim(),a=o?parseFloat(o):NaN,u=!isNaN(a)&&a>0?a:null;t.push({number:c,odds:{[r]:{win:u}}})}catch(n){console.warn("[outmatched] error parsing runner",n)}}),t}function y(r){const t=document.querySelector(i),s=t?Array.from(t.querySelectorAll("tbody > tr")).filter(e=>e.querySelector(".competitorCell")):Array.from(document.querySelectorAll(`${d} .runnerRow`)),n=[];return s.forEach(e=>{if(!e.classList.contains("scratched"))try{const c=parseInt(e.querySelector(".saddle")?.textContent?.replace(/\D/g,"")||"");if(isNaN(c))return;const o=e.querySelector("a[data-special=FWIN]")?.getAttribute("data-price"),a=o?parseFloat(o):null;n.push({number:c,odds:{[r]:{win:a}}})}catch(c){console.warn("[outmatched] error parsing runner",c)}}),n}export{S as c};

//# chunkId=019fa6ee-c72f-7b93-b4f9-eaa73d2203ef