1import{R as e,S as s,T as a,H as o,O as t,W as r}from"./index-M5qy_4Wm.js";function c(){let r=function(){let e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],s=function(e,s){return Math.floor(Math.random()*(s-e+1)+e)},a=s(0,25),o=s(0,25),t=s(0,9),r=s(0,9);return e[a]+e[o]+String(t)+String(r)}();return new Promise((n,i)=>{const l=e(o("/watl/players"),a("code"),s(r));t(l,e=>{e.exists()?c().then(e=>n(e)):n(r)},{onlyOnce:!0})})}const n={gp:0,win:0,loss:0,drops:0,faults:0,otl:0,forfeit:0,pts:0,score:0,scoreavg:0,high:0,axeavg:0,clutch:0,clutchcall:0,rubber:0,rubberwin:0,baxe:0,baxewin:0,ugame:0,ngame:0,sgame:0,umatch:0,nmatch:0,smatch:0,eightyone:0,sixtyfour:0,score0:0,score1:0,score2:0,score3:0,score4:0,score5:0,score6:0,score7:0,score8:0,score10:0,killcall:0};async function i({first:e="",last:s="",alias:a="".concat(e," ").concat(s),email:t,venue:i="no-venue",venueAccess:l="player",pic:u="https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fperson.svg?alt=media&token=aa915d07-87ec-4eb0-8fbb-5f9818537555",division:m,wktlDivision:f},g={}){const p=await c();let w={division:m||"amateur",wktlDivision:f||"recreational",first:e,firstLowCase:e.toLowerCase(),last:s,lastLowCase:s.toLowerCase(),alias:a,email:t.toLowerCase(),venue:i,venueAccess:l,gender:"",code:p,pic:u,...n,...g};return await r(o("/watl/players"),w).then(e=>({...w,key:e.key}))}export{i as c,c as g};
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.