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EACA,CAAc,+DACd,EACA,6BACA,EACA,CAAM,qBACN,CAAc,6DACd,EACA,CAAc,gEACd,EACA,CAAc,0DACd,EACA,mCACA,EACA,CAAM,qBACN,CAAc,4DACd,EACA,CAAc,8DACd,EACA,CAAc,+DACd,EACA,CAAc,8DACd,EACA,8BACA,EACA,CAAM,qBACN,CAAc,qEACd,EACA,wCACA,EACA,CAAM,qBACN,CAAc,4DACd,EACA,CAAc,sEACd,EACA,CAAc,0EACd,EACA,CAAc,8DACd,EACA,wCACA,EACA,CAAM,qBACN,CAAc,uEACd,EACA,wCACA,EACA,CAAM,qBACN,CAAc,sEACd,EACA,CAAc,yDACd,EACA,+BACA,EACA,CAAM,qBACN,CAAc,8DACd,EACA,iCACA,EACA,CAAM,qBACN,CAAc,8DACd,EACA,CAAc,8DACd,EACA,gCACA,EACA,CAAM,qBACN,CAAc,2DACd,EACA,gCACA,EACA,CAAM,qBACN,CAAc,+DACd,EACA,CAAc,+DACd,EACA,CAAc,8DACd,EACA,mCACA,EACA,CAAM,qBACN,CAAc,+DACd,EACA,CAAc,+DACd,EACA,CAAc,8DACd,EACA,qCACA,EACA,CAAM,qBACN,CAAc,2EACd,EACA,4CACA,EACA,CAAM,qBACN,CAAc,+DACd,EACA,CAAc,+DACd,EACA,CAAc,8DACd,EACA,qCACA,EACA,CAAM,qBACN,CAAc,4DACd,EACA,CAAc,iEACd,EACA,kCACA,EACA,CAAM,qBACN,CAAc,kEACd,EACA,mCACA,EACA,CAAM,qBACN,CAAc,8DACd,EACA,CAAc,8DACd,EACA,CAAc,wDACd,EACA,4BACA,EACA,CAAM,qBACN,CAAc,qEACd,EACA,CAAc,gEACd,EACA,yCACA,EACA,CAAM,qBACN,CAAc,+EACd,EACA,gDACA,EACA,CAAM,qBACN,CAAc,4DACd,EACA,CAAc,0DACd,EACA,CAAc,+DACd,EACA,6BACA,EACA,CAAM,qBACN,CAAc,wEACd,EACA,2CACA,EACA,CAAM,iCACN,CAAc,sDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,8BACA,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,uEACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,6CACd,EACA,8BACA,CAAc,oDACd,EACA,6CACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,0DACd,EACA,CAAc,yDACd,EACA,CAAc,oDACd,EACA,0EACA,EACA,CAAM,QACN,CAAc,+CACd,EACA,CAAc,oDACd,EACA,uEACA,EACA,CAAM,QACN,CAAc,kDACd,EACA,2BACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,mDACd,EACA,CAAc,oDACd,EACA,CAAc,YACd,CAAsB,sDACtB,EACA,CAAsB,kDACtB,EACA,CAAsB,6CACtB,EACA,+DACA,EACA,qBACA,CAAc,6CACd,EACA,6CACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,iDACd,EACA,CAAc,mDACd,EACA,CAAc,oDACd,EACA,CAAc,YACd,CAAsB,sDACtB,EACA,CAAsB,kDACtB,EACA,CAAsB,6CACtB,EACA,+DACA,EACA,wBACA,CAAc,6CACd,EACA,6CACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,0EACA,EACA,CAAM,QACN,CAAc,0DACd,EACA,kFACA,EACA,CAAM,QACN,CAAc,4DACd,EACA,kFACA,EACA,CAAM,QACN,CAAc,2DACd,EACA,CAAc,iDACd,EACA,yEACA,EACA,CAAM,QACN,CAAc,gEACd,EACA,sFACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,uDACd,EACA,qFACA,EACA,CAAM,QACN,CAAc,uDACd,EACA,6EACA,EACA,CAAM,QACN,CAAc,6DACd,EACA,qFACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,CAAc,mDACd,EACA,CAAc,mDACd,EACA,2EACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,mEACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,oEACA,EACA,CAAM,sCACN,CAAc,0DACd,EACA,6CACA,EACA,CAAM,uCACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,6CACd,EACA,uBACA,CAAc,2DACd,EACA,CAAc,+DACd,EACA,CAAc,mDACd,EACA,CAAc,4DACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,mDACd,EACA,CAAc,6CACd,EACA,0EACA,EACA,CAAM,uCACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,oDACd,EACA,+EACA,EACA,CAAM,kCACN,CAAc,uDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,6CACd,EACA,sBACA,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,6CACd,EACA,uBACA,CAAc,2DACd,EACA,CAAc,4DACd,EACA,CAAc,mDACd,EACA,CAAc,+CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,6BACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,6BACA,CAAc,2CACd,EACA,CAAc,uCACd,EACA,uCACA,EACA,CAAM,2CACN,CAAc,oDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,yCACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,qCACN,CAAc,oDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,CAAc,0DACd,EACA,CAAc,mDACd,EACA,CAAc,qDACd,EACA,CAAc,iDACd,EACA,CAAc,0DACd,EACA,0EACA,EACA,CAAM,QACN,CAAc,kDACd,EACA,CAAc,qDACd,EACA,kCACA,CAAc,uCACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,sDACd,EACA,iCACA,CAAc,uCACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,gCACA,CAAc,uCACd,EACA,uCACA,EACA,CAAM,2CACN,CAAc,gEACd,EACA,uCACA,EACA,CAAM,0CACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,kCACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,+BACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,mCACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,+CACd,EACA,kCACA,CAAc,2DACd,EACA,uCACA,EACA,CAAM,gCACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,yBACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,6CACd,EACA,yBACA,CAAc,iDACd,EACA,CAAc,oDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,+CACd,EACA,CAAc,oDACd,EACA,gFACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,+CACd,EACA,CAAc,oDACd,EACA,CAAc,6CACd,EACA,gFACA,EACA,CAAM,QACN,CAAc,qDACd,EACA,CAAc,+CACd,EACA,iFACA,EACA,CAAM,QACN,CAAc,mDACd,EACA,CAAc,mDACd,EACA,yEACA,EACA,CAAM,QACN,CAAc,sDACd,EACA,mCACA,CAAc,uCACd,EACA,uCACA,EACA,CAAM,iCACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,gCACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,kDACd,EACA,8BACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,kDACd,EACA,CAAc,kDACd,EACA,qCACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,0BACA,CAAc,2CACd,EACA,uCACA,EACA,CAAM,sCACN,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,+CACd,EACA,CAAc,oDACd,EACA,4EACA,EACA,CAAM,QACN,CAAc,qDACd,EACA,iFACA,EACA,CAAM,QACN,CAAc,2CACd,EACA,0BACA,CAAc,mDACd,EACA,CAAc,mDACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,2DACd,EACA,CAAc,+DACd,EACA,CAAc,mDACd,EACA,kFACA,EACA,CAAM,mCACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,oDACd,EACA,4BACA,CAAc,6CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,2CACd,EACA,+BACA,CAAc,2CACd,EACA,uCACA,EACA,CAAM,QACN,CAAc,oDACd,EACA,CAAc,kDACd,EACA,mCACA,CAAc,4DACd,EACA,6CACA,EACA,CAAM,QACN,CAAc,iDACd,EACA,CAAc,oDACd,EACA,gCACA,CAAc,mDACd,EACA,6CACA,EACA,CAAM,0CACN,CAAc,2CACd,EACA,uCACA,EACA,CAAM,wCACN,EACA,CAAEC,GAAA,CACF,CACA,UACA,6BACA,kBACA,EACA,CACA,UACA,mBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,UACA,gCACA,YACA,EACA,CACA,UACA,4BACA,YACA,EACA,CACA,UACA,2BACA,YACA,EACA,CACA,QACA,CACA,sBACA,eACA,aACA,EACA,CACA,yBACA,YACA,EACA,CACA,UACA,0BACA,YACA,EACA,CACA,UACA,uBACA,YACA,EACA,CACA,UACA,6BACA,YACA,EACA,CACA,UACA,qBACA,YACA,EACA,CACA,UACA,qBACA,YACA,EACA,CACA,UACA,2BACA,YACA,EACA,CACA,UACA,qCACA,YACA,EACA,CACA,UACA,8BACA,YACA,EACA,CACA,UACA,sBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,UACA,8BACA,YACA,EACA,CACA,UACA,cACA,YACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,kBACA,YACA,EACA,CACA,UACA,mBACA,YACA,EACA,CACA,QACA,CACA,kCACA,UACA,YACA,EACA,CACA,qBACA,YACA,EACA,CACA,UACA,wBACA,YACA,EACA,CACA,UACA,iBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,wBACA,gBACA,eACA,EACA,CACA,WACA,yBACA,YACA,gBACA,EACA,CACA,WACA,qBACA,4BACA,YACA,EACA,CACA,wBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,qBACA,aACA,YACA,EACA,CACA,WACA,wBACA,uBACA,eACA,EACA,CACA,WACA,sBACA,gBACA,aACA,EACA,CACA,WACA,sBACA,iBACA,aACA,EACA,CACA,yBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,qBACA,eACA,YACA,EACA,CACA,mBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,iBACA,cACA,EACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,uBACA,eACA,cACA,EACA,CACA,WACA,sBACA,iBACA,aACA,EACA,CACA,WACA,uBACA,aACA,cACA,EACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,sBACA,YACA,aACA,EACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,kBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,qBACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,UACA,0BACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,gBACA,SACA,CACA,kCACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,YACA,SACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,oBACA,cACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,yBACA,oBACA,gBACA,EACA,CACA,wBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,WACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,kBACA,SACA,CACA,sBACA,mBACA,aACA,EACA,CACA,uBACA,oBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,qBACA,4BACA,YACA,EACA,CACA,mDACA,aACA,YACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,oBACA,0BACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,oBACA,SACA,CACA,YACA,CACA,sBACA,mBACA,aACA,EACA,CACA,yBACA,eACA,gBACA,EACA,CACA,uBACA,oBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,qBACA,4BACA,YACA,EACA,CACA,mDACA,aACA,YACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,oBACA,0BACA,WACA,EACA,CACA,iDACA,QACA,YACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,uBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,iBACA,cACA,EACA,CACA,uBACA,WACA,cACA,EACA,CACA,kBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,2BACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,wBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,UACA,SACA,CACA,4BACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,cACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,sBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,aACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,YACA,CACA,uBACA,iBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,qBACA,YACA,YACA,EACA,CACA,mCACA,eACA,YACA,EACA,CACA,cACA,SACA,CACA,uBACA,eACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,QACA,CACA,YACA,CACA,uBACA,mBACA,cACA,EACA,CACA,wBACA,uBACA,eACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,oDACA,YACA,cACA,EACA,CACA,yBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,qBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,qBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,iBACA,SACA,CACA,uBACA,oBACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,gBACA,cACA,EACA,CACA,yBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CAAEC,GAAA,CACF,CACA,UACA,mBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,2BACA,YACA,EACA,CACA,UACA,wBACA,YACA,EACA,CACA,UACA,qBACA,YACA,EACA,CACA,UACA,iBACA,YACA,EACA,CACA,UACA,cACA,YACA,EACA,CACA,QACA,CACA,kCACA,UACA,YACA,EACA,CACA,qBACA,YACA,EACA,CACA,UACA,6BACA,YACA,EACA,CACA,UACA,iBACA,YACA,EACA,CACA,UACA,qBACA,YACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,6BACA,YACA,EACA,CACA,UACA,kBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,aACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,WACA,uBACA,eACA,cACA,EACA,CACA,gBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,aACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,WACA,oBACA,gBACA,WACA,EACA,CACA,sBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,qBACA,eACA,YACA,EACA,CACA,mBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,kBACA,cACA,EACA,CACA,sBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,iBACA,cACA,EACA,CACA,WACA,uBACA,aACA,cACA,EACA,CACA,YACA,CACA,sBACA,YACA,aACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,oBACA,iBACA,WACA,EACA,CACA,YACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,8CACA,eACA,cACA,EACA,CACA,wBACA,qBACA,eACA,EACA,CACA,WACA,sCACA,WACA,YACA,EACA,CACA,cACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,qBACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,wBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,YACA,cACA,EACA,CACA,WACA,uBACA,UACA,cACA,EACA,CACA,WACA,uBACA,eACA,cACA,EACA,CACA,gBACA,YACA,EACA,CACA,QACA,CACA,uBACA,UACA,cACA,EACA,CACA,uBACA,eACA,cACA,EACA,CACA,eACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,aACA,cACA,EACA,CACA,iBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,eACA,SACA,CACA,sBACA,QACA,aACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,YACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,8CACA,eACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,gBACA,SACA,CACA,wBACA,qBACA,eACA,EACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,kBACA,cACA,EACA,CACA,qBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,wBACA,cACA,EACA,CACA,2BACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,WACA,uBACA,eACA,EACA,CACA,UACA,YACA,SACA,CACA,kCACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,mBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,aACA,cACA,EACA,CACA,cACA,SACA,CACA,YACA,CACA,sBACA,YACA,aACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,oBACA,iBACA,WACA,EACA,CACA,YACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,8CACA,eACA,cACA,EACA,CACA,wBACA,qBACA,eACA,EACA,CACA,sCACA,eACA,YACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,WACA,cACA,EACA,CACA,uBACA,aACA,cACA,EACA,CACA,kBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,aACA,cACA,EACA,CACA,uBACA,gBACA,cACA,EACA,CACA,wBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,iBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,sBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,UACA,SACA,CACA,4BACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,eACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,YACA,SACA,CACA,sBACA,QACA,aACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,aACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,eACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,YACA,CACA,uBACA,iBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,qBACA,YACA,YACA,EACA,CACA,mCACA,eACA,YACA,EACA,CACA,cACA,SACA,CACA,uBACA,aACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,UACA,qBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,qBACA,SACA,CACA,uBACA,eACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,YACA,cACA,EACA,CACA,uBACA,UACA,cACA,EACA,CACA,uBACA,eACA,cACA,EACA,CACA,wBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,YACA,cACA,EACA,CACA,uBACA,UACA,cACA,EACA,CACA,uBACA,eACA,cACA,EACA,CACA,qBACA,YACA,YACA,EACA,CACA,wBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,gBACA,cACA,EACA,CACA,oBACA,gBACA,WACA,EACA,CACA,yBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,sBACA,WACA,aACA,EACA,CACA,kBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,sBACA,mBACA,aACA,EACA,CACA,yBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,cACA,SACA,CACA,sBACA,QACA,aACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,gBACA,SACA,CACA,sBACA,QACA,aACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,YACA,cACA,EACA,CACA,uBACA,UACA,cACA,EACA,CACA,uBACA,eACA,cACA,EACA,CACA,oBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,gBACA,cACA,EACA,CACA,yBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CAAEC,GAAA,CACF,CACA,UACA,mBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,UACA,sBACA,YACA,EACA,CACA,UACA,+BACA,YACA,EACA,CACA,UACA,gCACA,YACA,EACA,CACA,UACA,0BACA,YACA,EACA,CACA,UACA,4BACA,YACA,EACA,CACA,UACA,2BACA,YACA,EACA,CACA,QACA,CACA,sBACA,eACA,aACA,EACA,CACA,yBACA,YACA,EACA,CACA,UACA,0BACA,YACA,EACA,CACA,UACA,4BACA,YACA,EACA,CACA,UACA,uBACA,YACA,EACA,CACA,UACA,qBACA,YACA,EACA,CACA,UACA,8BACA,YACA,EACA,CACA,UACA,8BACA,YACA,EACA,CACA,UACA,0BACA,YACA,EACA,CACA,UACA,qCACA,YACA,EACA,CACA,UACA,wBACA,YACA,EACA,CACA,UACA,uBACA,YACA,EACA,CACA,UACA,sBACA,YACA,EACA,CACA,UACA,cACA,YACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,kBACA,YACA,EACA,CACA,UACA,kCACA,YACA,EACA,CACA,QACA,CACA,sBACA,gBACA,aACA,EACA,CACA,uBACA,YACA,EACA,CACA,QACA,CACA,kCACA,UACA,YACA,EACA,CACA,qBACA,YACA,EACA,CACA,UACA,iBACA,YACA,EACA,CACA,QACA,CACA,uBACA,2BACA,cACA,EACA,CACA,uBACA,YACA,EACA,CACA,UACA,oBACA,YACA,EACA,CACA,UACA,gBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,wBACA,gBACA,eACA,EACA,CACA,wBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,qBACA,aACA,YACA,EACA,CACA,WACA,wBACA,uBACA,eACA,EACA,CACA,WACA,sBACA,gBACA,aACA,EACA,CACA,yBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,oBACA,YACA,WACA,EACA,CACA,wBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,qBACA,eACA,YACA,EACA,CACA,mBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,sBACA,iBACA,aACA,EACA,CACA,qBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,iBACA,cACA,EACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,uBACA,eACA,cACA,EACA,CACA,WACA,sBACA,iBACA,aACA,EACA,CACA,WACA,uBACA,cACA,cACA,EACA,CACA,WACA,uBACA,YACA,cACA,EACA,CACA,WACA,yBACA,aACA,gBACA,EACA,CACA,cACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,yBACA,eACA,gBACA,EACA,CACA,mBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,qBACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,mBACA,cACA,EACA,CACA,WACA,uBACA,wBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,UACA,0BACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,gBACA,SACA,CACA,kCACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,YACA,SACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,oBACA,cACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,gBACA,SACA,CACA,sBACA,YACA,aACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,oBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,yBACA,eACA,gBACA,EACA,CACA,kBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,uBACA,wBACA,cACA,EACA,CACA,2BACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,WACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,kBACA,SACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,oBACA,cACA,EACA,CACA,uBACA,qBACA,cACA,EACA,CACA,uBACA,YACA,cACA,EACA,CACA,sBACA,cACA,aACA,EACA,CACA,sBACA,cACA,aACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,qBACA,4BACA,YACA,EACA,CACA,8CACA,aACA,YACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,mBACA,cACA,EACA,CACA,yBACA,YACA,gBACA,EACA,CACA,wBACA,gBACA,eACA,EACA,CACA,uBACA,qBACA,cACA,EACA,CACA,sBACA,cACA,aACA,EACA,CACA,qBACA,4BACA,YACA,EACA,CACA,uBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,oBACA,SACA,CACA,YACA,CACA,uBACA,cACA,cACA,EACA,CACA,yBACA,eACA,gBACA,EACA,CACA,yBACA,oBACA,gBACA,EACA,CACA,uBACA,oBACA,cACA,EACA,CACA,uBACA,qBACA,cACA,EACA,CACA,uBACA,YACA,cACA,EACA,CACA,sBACA,cACA,aACA,EACA,CACA,sBACA,cACA,aACA,EACA,CACA,sBACA,qBACA,aACA,EACA,CACA,qBACA,4BACA,YACA,EACA,CACA,8CACA,aACA,YACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,2CACA,QACA,YACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,uBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,iBACA,cACA,EACA,CACA,uBACA,WACA,cACA,EACA,CACA,kBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,2BACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,wBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,UACA,SACA,CACA,4BACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,sBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,UACA,aACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,cACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,YACA,CACA,uBACA,iBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,qBACA,YACA,YACA,EACA,CACA,mCACA,eACA,YACA,EACA,CACA,cACA,SACA,CACA,uBACA,eACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,wBACA,wBACA,eACA,EACA,CACA,wBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,qBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,mBACA,cACA,EACA,CACA,oBACA,YACA,WACA,EACA,CACA,qBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,gBACA,cACA,EACA,CACA,yBACA,WACA,6BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,SACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,eACA,EACA,CACA,QACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,QACA,cACA,EACA,CACA,uBACA,SACA,CACA,oBACA,QACA,WACA,EACA,CACA,uBACA,eACA,EACA,CAAEC,GAAA,CACF,CACA,UACA,6BACA,kBACA,EACA,CACA,UACA,sBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,qBACA,eACA,YACA,EACA,CACA,mBACA,YACA,EACA,CACA,aACA,QACA,CACA,WACA,uBACA,qBACA,cACA,EACA,CACA,WACA,uBACA,gBACA,cACA,EACA,CACA,4BACA,YACA,EACA,CACA,QACA,CACA,uBACA,UACA,cACA,EACA,CACA,YACA,CACA,uBACA,YACA,cACA,EACA,CACA,uBACA,cACA,cACA,EACA,CACA,sBACA,iBACA,aACA,EACA,CACA,YACA,CACA,uBACA,iBACA,cACA,EACA,CACA,sBACA,eACA,aACA,EACA,CACA,qBACA,YACA,YACA,EACA,CACA,mCACA,iBACA,YACA,EACA,CACA,4CACA,YACA,cACA,EACA,CACA,WACA,WACA,0BACA,eACA,EACA,CACA,QACA,CACA,uBACA,eACA,cACA,EACA,CACA,kBACA,WACA,uBACA,eACA,EACA,CACA,UACA,kBACA,WACA,6BACA,eACA,EACA,CACA,UACA,aACA,SACA,CACA,uBAC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M,UAAAA,CAAA,EAA+D9M,EAC3E,CAAYxC,IAAAA,CAAA,CAAA7B,UAAAA,CAAA,EAAiB0C,EAAA,CAAAnC,EAAA,CAC7B,IAAAP,EAAAH,OAAA,EAAAI,QACA,6DAEA,IAAA+S,EAAA,CACAD,cAAAA,EACA5B,UAAA,CACAV,kBAAAzQ,EAAAH,OAAA,CAAAI,OAAA,CACA4S,gBAAAH,EACA7B,UAAAA,EACAtQ,QAAAA,EACA0S,eAAA9B,CACA,CACA,EACA/I,EAAA,MAAA6C,MAAA,GAAoCpJ,EAAI,kBACxC0P,OAAA,OACAC,QAAA,CACA,0BACA,iCACA,EACAC,KAAAnU,KAAAiJ,SAAA,CAAAyM,EACA,GACA,GAAA5K,MAAAA,EAAAuC,MAAA,CACA,YAEA,IAAAvC,EAAA+H,EAAA,CACA,sBAAkC/H,EAAAuC,MAAA,CAAgB,IAAIvC,EAAAgI,UAAA,CAAoB,GAG1E,OADA,MAAAhI,EAAA8C,IAAA,EAEA,EAAEgI,GAAA,OAA4B3S,QAAAA,CAAA,CAAAoR,QAAAA,CAAA,CAAkB,IAChD,IAAY9P,IAAAA,CAAA,CAAA7B,UAAAA,CAAA,EAAiB0C,EAAA,CAAAnC,EAAA,CAC7B,IAAAP,EAAAH,OAAA,EAAAI,QACA,6DAEA,IAAAmI,EAAA,MAAA6C,MAAA,GAAoCpJ,EAAI,WAAW8P,EAAQ,GAC3D,GAAAvJ,MAAAA,EAAAuC,MAAA,CACA,YAEA,IAAAvC,EAAA+H,EAAA,CACA,sBAAkC/H,EAAAuC,MAAA,CAAgB,IAAIvC,EAAAgI,UAAA,CAAoB,GAG1E,OADA,MAAAhI,EAAA8C,IAAA,EAEA","sources":["webpack://_N_E/./node_modules/@azuro-org/toolkit/dist/index.js"],"sourcesContent":["import {gnosis,polygon,polygonAmoy,chiliz,spicy,base,baseSepolia}from'viem/chains';import {erc721Abi,parseUnits,formatUnits,encodeAbiParameters,parseAbiParameters,encodeFunctionData}from'viem';import gql from'graphql-tag';import {readContracts,readContract}from'@wagmi/core';import {dictionaries,getMarketKey,getMarketName,getSelectionName,getMarketDescription}from'@azuro-org/dictionaries';const isDevEnabled = Boolean(JSON.parse(process.env.AZURO_UNSTABLE_DEV_ENABLED || 'false'));\nvar Environment;\n(function (Environment) {\n Environment[\"GnosisDevXDAI\"] = \"GnosisDevXDAI\";\n Environment[\"GnosisXDAI\"] = \"GnosisXDAI\";\n Environment[\"PolygonUSDT\"] = \"PolygonUSDT\";\n Environment[\"PolygonAmoyAZUSD\"] = \"PolygonAmoyAZUSD\";\n Environment[\"PolygonAmoyUSDT\"] = \"PolygonAmoyUSDT\";\n Environment[\"ChilizWCHZ\"] = \"ChilizWCHZ\";\n Environment[\"ChilizSpicyWCHZ\"] = \"ChilizSpicyWCHZ\";\n Environment[\"BaseWETH\"] = \"BaseWETH\";\n Environment[\"BaseSepoliaWETH\"] = \"BaseSepoliaWETH\";\n})(Environment || (Environment = {}));\nconst environments = {\n [gnosis.id]: isDevEnabled ? Environment.GnosisDevXDAI : Environment.GnosisXDAI,\n [polygon.id]: Environment.PolygonUSDT,\n [polygonAmoy.id]: isDevEnabled ? Environment.PolygonAmoyUSDT : Environment.PolygonAmoyAZUSD,\n [chiliz.id]: Environment.ChilizWCHZ,\n [spicy.id]: Environment.ChilizSpicyWCHZ,\n [base.id]: Environment.BaseWETH,\n [baseSepolia.id]: Environment.BaseSepoliaWETH,\n};var lpAbi = [\n { 'inputs': [], 'name': 'BetExpired', 'type': 'error',\n },\n { 'inputs': [\n { 'internalType': 'uint64', 'name': 'waitTime', 'type': 'uint64',\n },\n ], 'name': 'ClaimTimeout', 'type': 'error',\n },\n { 'inputs': [], 'name': 'CoreNotActive', 'type': 'error',\n },\n { 'inputs': [], 'name': 'DepositDoesNotExist', 'type': 'error',\n },\n { 'inputs': [], 'name': 'GameAlreadyCanceled', 'type': 'error',\n },\n { 'inputs': [], 'name': 'GameAlreadyCreated', 'type': 'error',\n },\n { 'inputs': [], 'name': 'GameCanceled_', 'type': 'error',\n },\n { 'inputs': [], 'name': 'GameNotExists', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectCoreState', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectFee', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectGameId', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectMinBet', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectMinDepo', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectPercent', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectReinforcementAbility', 'type': 'error',\n },\n { 'inputs': [], 'name': 'IncorrectTimestamp', 'type': 'error',\n },\n { 'inputs': [], 'name': 'LeafNotExist', 'type': 'error',\n },\n { 'inputs': [], 'name': 'LiquidityIsLocked', 'type': 'error',\n },\n { 'inputs': [], 'name': 'LiquidityNotOwned', 'type': 'error',\n },\n { 'inputs': [], 'name': 'NoLiquidity', 'type': 'error',\n },\n { 'inputs': [], 'name': 'NotEnoughLiquidity', 'type': 'error',\n },\n { 'inputs': [], 'name': 'OnlyFactory', 'type': 'error',\n },\n { 'inputs': [\n { 'internalType': 'enum SafeCast.Type', 'name': 'to', 'type': 'uint8',\n },\n ], 'name': 'SafeCastError', 'type': 'error',\n },\n { 'inputs': [], 'name': 'SmallBet', 'type': 'error',\n },\n { 'inputs': [], 'name': 'SmallDepo', 'type': 'error',\n },\n { 'inputs': [], 'name': 'SmallDonation', 'type': 'error',\n },\n { 'inputs': [], 'name': 'UnknownCore', 'type': 'error',\n },\n { 'inputs': [\n { 'internalType': 'uint64', 'name': 'waitTime', 'type': 'uint64',\n },\n ], 'name': 'WithdrawalTimeout', 'type': 'error',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'owner', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'address', 'name': 'approved', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'Approval', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'owner', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'address', 'name': 'operator', 'type': 'address',\n },\n { 'indexed': false, 'internalType': 'bool', 'name': 'approved', 'type': 'bool',\n },\n ], 'name': 'ApprovalForAll', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'address', 'name': 'bettor', 'type': 'address',\n },\n { 'indexed': false, 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n { 'indexed': false, 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256',\n },\n ], 'name': 'BettorWin', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'uint64', 'name': 'newClaimTimeout', 'type': 'uint64',\n },\n ], 'name': 'ClaimTimeoutChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'indexed': false, 'internalType': 'enum ILP.CoreState', 'name': 'state', 'type': 'uint8',\n },\n { 'indexed': false, 'internalType': 'uint64', 'name': 'reinforcementAbility', 'type': 'uint64',\n },\n { 'indexed': false, 'internalType': 'uint128', 'name': 'minBet', 'type': 'uint128',\n },\n ], 'name': 'CoreSettingsUpdated', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'address', 'name': 'newDataProvider', 'type': 'address',\n },\n ], 'name': 'DataProviderChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'enum ILP.FeeType', 'name': 'feeType', 'type': 'uint8',\n },\n { 'indexed': false, 'internalType': 'uint64', 'name': 'fee', 'type': 'uint64',\n },\n ], 'name': 'FeeChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n ], 'name': 'GameCanceled', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'indexed': false, 'internalType': 'uint64', 'name': 'newStart', 'type': 'uint64',\n },\n ], 'name': 'GameShifted', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'uint8', 'name': 'version', 'type': 'uint8',\n },\n ], 'name': 'Initialized', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'account', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n { 'indexed': false, 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256',\n },\n ], 'name': 'LiquidityAdded', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'account', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n { 'indexed': false, 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256',\n },\n ], 'name': 'LiquidityDonated', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'address', 'name': 'newLiquidityManager', 'type': 'address',\n },\n ], 'name': 'LiquidityManagerChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'account', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n { 'indexed': false, 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256',\n },\n ], 'name': 'LiquidityRemoved', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'indexed': false, 'internalType': 'uint128', 'name': 'newMinBet', 'type': 'uint128',\n },\n ], 'name': 'MinBetChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'uint128', 'name': 'newMinDepo', 'type': 'uint128',\n },\n ], 'name': 'MinDepoChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'indexed': false, 'internalType': 'uint64', 'name': 'startsAt', 'type': 'uint64',\n },\n { 'indexed': false, 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'name': 'NewGame', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'previousOwner', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'address', 'name': 'newOwner', 'type': 'address',\n },\n ], 'name': 'OwnershipTransferred', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'uint128', 'name': 'newReinforcementAbility', 'type': 'uint128',\n },\n ], 'name': 'ReinforcementAbilityChanged', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': true, 'internalType': 'address', 'name': 'from', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'address', 'name': 'to', 'type': 'address',\n },\n { 'indexed': true, 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'Transfer', 'type': 'event',\n },\n { 'anonymous': false, 'inputs': [\n { 'indexed': false, 'internalType': 'uint64', 'name': 'newWithdrawTimeout', 'type': 'uint64',\n },\n ], 'name': 'WithdrawTimeoutChanged', 'type': 'event',\n },\n { 'inputs': [], 'name': 'access', 'outputs': [\n { 'internalType': 'contract IAccess', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n ], 'name': 'addCondition', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n ], 'name': 'addCore', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n { 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'name': 'addLiquidity', 'outputs': [\n { 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'internalType': 'uint128', 'name': 'lockedReserve', 'type': 'uint128',\n },\n { 'internalType': 'uint128', 'name': 'finalReserve', 'type': 'uint128',\n },\n { 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n ], 'name': 'addReserve', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'to', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'approve', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'owner', 'type': 'address',\n },\n ], 'name': 'balanceOf', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n { 'internalType': 'uint64', 'name': 'expiresAt', 'type': 'uint64',\n },\n { 'components': [\n { 'internalType': 'address', 'name': 'affiliate', 'type': 'address',\n },\n { 'internalType': 'uint64', 'name': 'minOdds', 'type': 'uint64',\n },\n { 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'internalType': 'struct IBet.BetData', 'name': 'betData', 'type': 'tuple',\n },\n ], 'name': 'bet', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'bettor', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n { 'internalType': 'uint64', 'name': 'expiresAt', 'type': 'uint64',\n },\n { 'components': [\n { 'internalType': 'address', 'name': 'affiliate', 'type': 'address',\n },\n { 'internalType': 'uint64', 'name': 'minOdds', 'type': 'uint64',\n },\n { 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'internalType': 'struct IBet.BetData', 'name': 'betData', 'type': 'tuple',\n },\n ], 'name': 'betFor', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n ], 'name': 'cancelGame', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint64', 'name': 'newClaimTimeout', 'type': 'uint64',\n },\n ], 'name': 'changeClaimTimeout', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'newDataProvider', 'type': 'address',\n },\n ], 'name': 'changeDataProvider', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'enum ILP.FeeType', 'name': 'feeType', 'type': 'uint8',\n },\n { 'internalType': 'uint64', 'name': 'newFee', 'type': 'uint64',\n },\n ], 'name': 'changeFee', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'newLiquidityManager', 'type': 'address',\n },\n ], 'name': 'changeLiquidityManager', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'internalType': 'int128', 'name': 'deltaReserve', 'type': 'int128',\n },\n ], 'name': 'changeLockedLiquidity', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint128', 'name': 'newMinDepo', 'type': 'uint128',\n },\n ], 'name': 'changeMinDepo', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint64', 'name': 'newWithdrawTimeout', 'type': 'uint64',\n },\n ], 'name': 'changeWithdrawTimeout', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'account', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'target', 'type': 'address',\n },\n { 'internalType': 'bytes4', 'name': 'selector', 'type': 'bytes4',\n },\n ], 'name': 'checkAccess', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n ], 'name': 'checkCore', 'outputs': [], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'account', 'type': 'address',\n },\n ], 'name': 'checkOwner', 'outputs': [], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'claimReward', 'outputs': [\n { 'internalType': 'uint128', 'name': 'claimedAmount', 'type': 'uint128',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [], 'name': 'claimTimeout', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'name': 'cores', 'outputs': [\n { 'internalType': 'enum ILP.CoreState', 'name': 'state', 'type': 'uint8',\n },\n { 'internalType': 'uint64', 'name': 'reinforcementAbility', 'type': 'uint64',\n },\n { 'internalType': 'uint128', 'name': 'minBet', 'type': 'uint128',\n },\n { 'internalType': 'uint128', 'name': 'lockedLiquidity', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'internalType': 'uint64', 'name': 'startsAt', 'type': 'uint64',\n },\n { 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'name': 'createGame', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [], 'name': 'dataProvider', 'outputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n { 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n ], 'name': 'donateLiquidity', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [], 'name': 'factory', 'outputs': [\n { 'internalType': 'contract IOwnable', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'name': 'fees', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'name': 'games', 'outputs': [\n { 'internalType': 'bytes32', 'name': 'unusedVariable', 'type': 'bytes32',\n },\n { 'internalType': 'uint128', 'name': 'lockedLiquidity', 'type': 'uint128',\n },\n { 'internalType': 'uint64', 'name': 'startsAt', 'type': 'uint64',\n },\n { 'internalType': 'bool', 'name': 'canceled', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'getApproved', 'outputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n ], 'name': 'getGameInfo', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n { 'internalType': 'bool', 'name': '', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'getLastDepositId', 'outputs': [\n { 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n ], 'name': 'getLockedLiquidityLimit', 'outputs': [\n { 'internalType': 'uint128', 'name': '', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'getReserve', 'outputs': [\n { 'internalType': 'uint128', 'name': 'reserve', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'access_', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'dataProvider_', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'token_', 'type': 'address',\n },\n { 'internalType': 'uint128', 'name': 'minDepo_', 'type': 'uint128',\n },\n { 'internalType': 'uint64', 'name': 'daoFee', 'type': 'uint64',\n },\n { 'internalType': 'uint64', 'name': 'dataProviderFee', 'type': 'uint64',\n },\n ], 'name': 'initialize', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'owner', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'operator', 'type': 'address',\n },\n ], 'name': 'isApprovedForAll', 'outputs': [\n { 'internalType': 'bool', 'name': '', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'depositId', 'type': 'uint256',\n },\n ], 'name': 'isDepositExists', 'outputs': [\n { 'internalType': 'bool', 'name': '', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n ], 'name': 'isGameCanceled', 'outputs': [\n { 'internalType': 'bool', 'name': '', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'liquidityManager', 'outputs': [\n { 'internalType': 'contract ILiquidityManager', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'lockedLiquidity', 'outputs': [\n { 'internalType': 'uint128', 'name': '', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'minDepo', 'outputs': [\n { 'internalType': 'uint128', 'name': '', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'name', 'outputs': [\n { 'internalType': 'string', 'name': '', 'type': 'string',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'nextNode', 'outputs': [\n { 'internalType': 'uint48', 'name': '', 'type': 'uint48',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint48', 'name': 'leaf', 'type': 'uint48',\n },\n ], 'name': 'nodeWithdrawView', 'outputs': [\n { 'internalType': 'uint128', 'name': 'withdrawAmount', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'owner', 'outputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'ownerOf', 'outputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'name': 'rewards', 'outputs': [\n { 'internalType': 'int128', 'name': 'amount', 'type': 'int128',\n },\n { 'internalType': 'uint64', 'name': 'claimedAt', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'from', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'to', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'safeTransferFrom', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'from', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'to', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n { 'internalType': 'bytes', 'name': 'data', 'type': 'bytes',\n },\n ], 'name': 'safeTransferFrom', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'operator', 'type': 'address',\n },\n { 'internalType': 'bool', 'name': 'approved', 'type': 'bool',\n },\n ], 'name': 'setApprovalForAll', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'gameId', 'type': 'uint256',\n },\n { 'internalType': 'uint64', 'name': 'startsAt', 'type': 'uint64',\n },\n ], 'name': 'shiftGame', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'bytes4', 'name': 'interfaceId', 'type': 'bytes4',\n },\n ], 'name': 'supportsInterface', 'outputs': [\n { 'internalType': 'bool', 'name': '', 'type': 'bool',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'symbol', 'outputs': [\n { 'internalType': 'string', 'name': '', 'type': 'string',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'token', 'outputs': [\n { 'internalType': 'address', 'name': '', 'type': 'address',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'index', 'type': 'uint256',\n },\n ], 'name': 'tokenByIndex', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'owner', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'index', 'type': 'uint256',\n },\n ], 'name': 'tokenOfOwnerByIndex', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'tokenURI', 'outputs': [\n { 'internalType': 'string', 'name': '', 'type': 'string',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [], 'name': 'totalSupply', 'outputs': [\n { 'internalType': 'uint256', 'name': '', 'type': 'uint256',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'from', 'type': 'address',\n },\n { 'internalType': 'address', 'name': 'to', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'transferFrom', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'newOwner', 'type': 'address',\n },\n ], 'name': 'transferOwnership', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint48', 'name': '', 'type': 'uint48',\n },\n ], 'name': 'treeNode', 'outputs': [\n { 'internalType': 'uint64', 'name': 'updateId', 'type': 'uint64',\n },\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'internalType': 'enum ILP.CoreState', 'name': 'state', 'type': 'uint8',\n },\n { 'internalType': 'uint64', 'name': 'reinforcementAbility', 'type': 'uint64',\n },\n { 'internalType': 'uint128', 'name': 'minBet', 'type': 'uint128',\n },\n ], 'name': 'updateCoreSettings', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [], 'name': 'updateId', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'viewPayout', 'outputs': [\n { 'internalType': 'uint128', 'name': '', 'type': 'uint128',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint48', 'name': '', 'type': 'uint48',\n },\n ], 'name': 'withdrawAfter', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'uint48', 'name': 'depositId', 'type': 'uint48',\n },\n { 'internalType': 'uint40', 'name': 'percent', 'type': 'uint40',\n },\n ], 'name': 'withdrawLiquidity', 'outputs': [\n { 'internalType': 'uint128', 'name': 'withdrawnAmount', 'type': 'uint128',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [\n { 'internalType': 'address', 'name': 'core', 'type': 'address',\n },\n { 'internalType': 'uint256', 'name': 'tokenId', 'type': 'uint256',\n },\n ], 'name': 'withdrawPayout', 'outputs': [\n { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128',\n },\n ], 'stateMutability': 'nonpayable', 'type': 'function',\n },\n { 'inputs': [], 'name': 'withdrawTimeout', 'outputs': [\n { 'internalType': 'uint64', 'name': '', 'type': 'uint64',\n },\n ], 'stateMutability': 'view', 'type': 'function',\n },\n { 'stateMutability': 'payable', 'type': 'receive',\n },\n];var liveCoreAbi = [\n {\n 'inputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'constructor',\n },\n {\n 'inputs': [],\n 'name': 'AlreadyPaid',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'BetNotExists',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionAlreadyResolved',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionNotFinished',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionNotRunning',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'DuplicateOutcomes',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectAffiliate',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectAmount',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectConditionIds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectCore',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectSettleDate',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectWinningOutcomesCount',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'InvalidBettorSignature',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'InvalidChainId',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'InvalidNonce',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'InvalidOracleSignature',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'OnlyLp',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'name': 'OnlyOracle',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'PayoutLimit',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'enum SafeCast.Type',\n 'name': 'to',\n 'type': 'uint8',\n },\n ],\n 'name': 'SafeCastError',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'SignatureExpired',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'SmallOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'WrongOutcome',\n 'type': 'error',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'gameId',\n 'type': 'uint256',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64[]',\n 'name': 'outcomes',\n 'type': 'uint64[]',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256[]',\n 'name': 'odds',\n 'type': 'uint256[]',\n },\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n ],\n 'name': 'ConditionCreated',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64[]',\n 'name': 'winningOutcomes',\n 'type': 'uint64[]',\n },\n {\n 'indexed': false,\n 'internalType': 'int128',\n 'name': 'lpProfit',\n 'type': 'int128',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64',\n 'name': 'settledAt',\n 'type': 'uint64',\n },\n ],\n 'name': 'ConditionResolved',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'version',\n 'type': 'uint8',\n },\n ],\n 'name': 'Initialized',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64',\n 'name': 'outcomeId',\n 'type': 'uint64',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256',\n 'name': 'nonce',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64',\n 'name': 'odds',\n 'type': 'uint64',\n },\n {\n 'indexed': false,\n 'internalType': 'uint128',\n 'name': 'payoutLimit',\n 'type': 'uint128',\n },\n ],\n 'name': 'NewLiveBet',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'previousOwner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'OwnershipTransferred',\n 'type': 'event',\n },\n {\n 'inputs': [],\n 'name': 'MAX_OUTCOMES_COUNT',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'azuroBet',\n 'outputs': [\n {\n 'internalType': 'contract IAzuroBet',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'bets',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'payout',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint64',\n 'name': 'timestamp',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bool',\n 'name': 'isPaid',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256[]',\n 'name': 'conditionIds',\n 'type': 'uint256[]',\n },\n ],\n 'name': 'cancelConditions',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'account',\n 'type': 'address',\n },\n ],\n 'name': 'checkOwner',\n 'outputs': [],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'conditions',\n 'outputs': [\n {\n 'internalType': 'int128',\n 'name': 'maxReserved',\n 'type': 'int128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'totalNetBets',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'settledAt',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n {\n 'internalType': 'enum IConditionState.ConditionState',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'internalType': 'address',\n 'name': 'oracle',\n 'type': 'address',\n },\n {\n 'internalType': 'bool',\n 'name': 'isExpressForbidden',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'getCondition',\n 'outputs': [\n {\n 'components': [\n {\n 'internalType': 'int128',\n 'name': 'maxReserved',\n 'type': 'int128',\n },\n {\n 'internalType': 'uint128[]',\n 'name': 'payouts',\n 'type': 'uint128[]',\n },\n {\n 'internalType': 'uint128',\n 'name': 'totalNetBets',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'settledAt',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n {\n 'internalType': 'enum IConditionState.ConditionState',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'internalType': 'address',\n 'name': 'oracle',\n 'type': 'address',\n },\n {\n 'internalType': 'bool',\n 'name': 'isExpressForbidden',\n 'type': 'bool',\n },\n ],\n 'internalType': 'struct IClientCondition.Condition',\n 'name': '',\n 'type': 'tuple',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'getOutcomeIndex',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'azuroBet_',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'lp_',\n 'type': 'address',\n },\n ],\n 'name': 'initialize',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'isConditionCanceled',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'isOutcomeWinning',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'lp',\n 'outputs': [\n {\n 'internalType': 'contract ILP',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'nonces',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'outcomeNumbers',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'owner',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'internalType': 'uint64',\n 'name': 'minOdds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bytes',\n 'name': 'data',\n 'type': 'bytes',\n },\n ],\n 'internalType': 'struct IBet.BetData',\n 'name': 'betData',\n 'type': 'tuple',\n },\n ],\n 'name': 'putBet',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'components': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64[]',\n 'name': 'winningOutcomes',\n 'type': 'uint64[]',\n },\n {\n 'internalType': 'uint64',\n 'name': 'settledAt',\n 'type': 'uint64',\n },\n ],\n 'internalType': 'struct IClientCoreBase.ResolveData[]',\n 'name': 'data',\n 'type': 'tuple[]',\n },\n ],\n 'name': 'resolveConditions',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'resolvePayout',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'snapshotTimes',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'snapshots',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': 'totalNetBets',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'transferOwnership',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'viewPayout',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'winningOutcomes',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n];var prematchComboCoreAbi = [\n {\n 'inputs': [],\n 'name': 'AlreadyPaid',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'BetNotExists',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'ConditionNotFinished',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'ConditionNotRunning',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectMaxOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'LargeOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'OnlyLp',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'enum SafeCast.Type',\n 'name': 'to',\n 'type': 'uint8',\n },\n ],\n 'name': 'SafeCastError',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'SameGameIdsNotAllowed',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'SmallOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'TooFewSubbets',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'TooLargeReinforcement',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'WrongToken',\n 'type': 'error',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'owner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'approved',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'Approval',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'owner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'operator',\n 'type': 'address',\n },\n {\n 'indexed': false,\n 'internalType': 'bool',\n 'name': 'approved',\n 'type': 'bool',\n },\n ],\n 'name': 'ApprovalForAll',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'version',\n 'type': 'uint8',\n },\n ],\n 'name': 'Initialized',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint256',\n 'name': 'newMaxOdds',\n 'type': 'uint256',\n },\n ],\n 'name': 'MaxOddsChanged',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'betId',\n 'type': 'uint256',\n },\n {\n 'components': [\n {\n 'internalType': 'uint64',\n 'name': 'odds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'bool',\n 'name': 'isClaimed',\n 'type': 'bool',\n },\n {\n 'components': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcomeId',\n 'type': 'uint64',\n },\n ],\n 'internalType': 'struct ICoreBase.CoreBetData[]',\n 'name': 'subBets',\n 'type': 'tuple[]',\n },\n {\n 'internalType': 'uint64[]',\n 'name': 'conditionOdds',\n 'type': 'uint64[]',\n },\n ],\n 'indexed': false,\n 'internalType': 'struct IBetExpress.Bet',\n 'name': 'bet',\n 'type': 'tuple',\n },\n ],\n 'name': 'NewBet',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'previousOwner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'OwnershipTransferred',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint128',\n 'name': 'newReinforcement',\n 'type': 'uint128',\n },\n ],\n 'name': 'ReinforcementChanged',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'from',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'to',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'Transfer',\n 'type': 'event',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'to',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'approve',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'owner',\n 'type': 'address',\n },\n ],\n 'name': 'balanceOf',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'baseURI',\n 'outputs': [\n {\n 'internalType': 'string',\n 'name': '',\n 'type': 'string',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'components': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcomeId',\n 'type': 'uint64',\n },\n ],\n 'internalType': 'struct ICoreBase.CoreBetData[]',\n 'name': 'subBets',\n 'type': 'tuple[]',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n ],\n 'name': 'calcOdds',\n 'outputs': [\n {\n 'internalType': 'uint64[]',\n 'name': 'conditionOdds',\n 'type': 'uint64[]',\n },\n {\n 'internalType': 'uint256',\n 'name': 'expressOdds',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'calcPayout',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'newMaxOdds',\n 'type': 'uint256',\n },\n ],\n 'name': 'changeMaxOdds',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint128',\n 'name': 'newReinforcement',\n 'type': 'uint128',\n },\n ],\n 'name': 'changeReinforcement',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'account',\n 'type': 'address',\n },\n ],\n 'name': 'checkOwner',\n 'outputs': [],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'core',\n 'outputs': [\n {\n 'internalType': 'contract ICoreBase',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'getApproved',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'betId',\n 'type': 'uint256',\n },\n ],\n 'name': 'getBet',\n 'outputs': [\n {\n 'components': [\n {\n 'internalType': 'uint64',\n 'name': 'odds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'bool',\n 'name': 'isClaimed',\n 'type': 'bool',\n },\n {\n 'components': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcomeId',\n 'type': 'uint64',\n },\n ],\n 'internalType': 'struct ICoreBase.CoreBetData[]',\n 'name': 'subBets',\n 'type': 'tuple[]',\n },\n {\n 'internalType': 'uint64[]',\n 'name': 'conditionOdds',\n 'type': 'uint64[]',\n },\n ],\n 'internalType': 'struct IBetExpress.Bet',\n 'name': 'betInfo',\n 'type': 'tuple',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'lp_',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'core_',\n 'type': 'address',\n },\n ],\n 'name': 'initialize',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'owner',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'operator',\n 'type': 'address',\n },\n ],\n 'name': 'isApprovedForAll',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'lastBetId',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'lockedReserves',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'lp',\n 'outputs': [\n {\n 'internalType': 'contract ILP',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'maxOdds',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'name',\n 'outputs': [\n {\n 'internalType': 'string',\n 'name': '',\n 'type': 'string',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'owner',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'ownerOf',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'internalType': 'uint64',\n 'name': 'minOdds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bytes',\n 'name': 'data',\n 'type': 'bytes',\n },\n ],\n 'internalType': 'struct IBet.BetData',\n 'name': 'betData',\n 'type': 'tuple',\n },\n ],\n 'name': 'putBet',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'betId',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'reinforcement',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'resolvePayout',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': 'account',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': 'payout',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'from',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'to',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'safeTransferFrom',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'from',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'to',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'bytes',\n 'name': 'data',\n 'type': 'bytes',\n },\n ],\n 'name': 'safeTransferFrom',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'operator',\n 'type': 'address',\n },\n {\n 'internalType': 'bool',\n 'name': 'approved',\n 'type': 'bool',\n },\n ],\n 'name': 'setApprovalForAll',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'string',\n 'name': 'uri',\n 'type': 'string',\n },\n ],\n 'name': 'setBaseURI',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'bytes4',\n 'name': 'interfaceId',\n 'type': 'bytes4',\n },\n ],\n 'name': 'supportsInterface',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'symbol',\n 'outputs': [\n {\n 'internalType': 'string',\n 'name': '',\n 'type': 'string',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'tokenURI',\n 'outputs': [\n {\n 'internalType': 'string',\n 'name': '',\n 'type': 'string',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'from',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'to',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'transferFrom',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'transferOwnership',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'viewPayout',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n];var prematchCoreAbi = [\n {\n 'inputs': [],\n 'name': 'AlreadyPaid',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'BetNotExists',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'CantChangeFlag',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionAlreadyCreated',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionAlreadyResolved',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionNotExists',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionNotFinished',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ConditionNotRunning',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'DuplicateOutcomes',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'GameAlreadyStarted',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectConditionId',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectMargin',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectOdds',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectOutcomesCount',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectReinforcement',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectTimestamp',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectWinningOutcomesCount',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'InsufficientFund',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'NoPendingReward',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'NothingChanged',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'OnlyLp',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'name': 'OnlyOracle',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'OutcomesAndOddsCountDiffer',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint64',\n 'name': 'waitTime',\n 'type': 'uint64',\n },\n ],\n 'name': 'ResolveTooEarly',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'enum SafeCast.Type',\n 'name': 'to',\n 'type': 'uint8',\n },\n ],\n 'name': 'SafeCastError',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'SmallOdds',\n 'type': 'error',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'pendingRewardsCount',\n 'type': 'uint256',\n },\n ],\n 'name': 'StartOutOfRange',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'WrongOutcome',\n 'type': 'error',\n },\n {\n 'inputs': [],\n 'name': 'ZeroOdds',\n 'type': 'error',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'gameId',\n 'type': 'uint256',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64[]',\n 'name': 'outcomes',\n 'type': 'uint64[]',\n },\n ],\n 'name': 'ConditionCreated',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64[]',\n 'name': 'winningOutcomes',\n 'type': 'uint64[]',\n },\n {\n 'indexed': false,\n 'internalType': 'int128',\n 'name': 'lpProfit',\n 'type': 'int128',\n },\n ],\n 'name': 'ConditionResolved',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'bool',\n 'name': 'flag',\n 'type': 'bool',\n },\n ],\n 'name': 'ConditionStopped',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'version',\n 'type': 'uint8',\n },\n ],\n 'name': 'Initialized',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64',\n 'name': 'newMargin',\n 'type': 'uint64',\n },\n ],\n 'name': 'MarginChanged',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint64',\n 'name': 'outcomeId',\n 'type': 'uint64',\n },\n {\n 'indexed': false,\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256',\n 'name': 'odds',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint128[]',\n 'name': 'funds',\n 'type': 'uint128[]',\n },\n ],\n 'name': 'NewBet',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint256[]',\n 'name': 'newOdds',\n 'type': 'uint256[]',\n },\n ],\n 'name': 'OddsChanged',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'previousOwner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'OwnershipTransferred',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'indexed': false,\n 'internalType': 'uint128',\n 'name': 'newReinforcement',\n 'type': 'uint128',\n },\n ],\n 'name': 'ReinforcementChanged',\n 'type': 'event',\n },\n {\n 'inputs': [],\n 'name': 'MAX_OUTCOMES_COUNT',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'azuroBet',\n 'outputs': [\n {\n 'internalType': 'contract IAzuroBet',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'bets',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'payout',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bool',\n 'name': 'isPaid',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'calcOdds',\n 'outputs': [\n {\n 'internalType': 'uint64',\n 'name': 'odds',\n 'type': 'uint64',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'cancelCondition',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'newMargin',\n 'type': 'uint64',\n },\n ],\n 'name': 'changeMargin',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256[]',\n 'name': 'newOdds',\n 'type': 'uint256[]',\n },\n ],\n 'name': 'changeOdds',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128',\n 'name': 'newReinforcement',\n 'type': 'uint128',\n },\n ],\n 'name': 'changeReinforcement',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'account',\n 'type': 'address',\n },\n ],\n 'name': 'checkOwner',\n 'outputs': [],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'conditions',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'gameId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128',\n 'name': 'totalNetBets',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'reinforcement',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'fund',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'margin',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint64',\n 'name': 'endsAt',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n {\n 'internalType': 'enum ICondition.ConditionState',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'internalType': 'address',\n 'name': 'oracle',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'gameId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256[]',\n 'name': 'odds',\n 'type': 'uint256[]',\n },\n {\n 'internalType': 'uint64[]',\n 'name': 'outcomes',\n 'type': 'uint64[]',\n },\n {\n 'internalType': 'uint128',\n 'name': 'reinforcement',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'margin',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n ],\n 'name': 'createCondition',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'getCondition',\n 'outputs': [\n {\n 'components': [\n {\n 'internalType': 'uint256',\n 'name': 'gameId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint128[]',\n 'name': 'payouts',\n 'type': 'uint128[]',\n },\n {\n 'internalType': 'uint128[]',\n 'name': 'virtualFunds',\n 'type': 'uint128[]',\n },\n {\n 'internalType': 'uint128',\n 'name': 'totalNetBets',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'reinforcement',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint128',\n 'name': 'fund',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'margin',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint64',\n 'name': 'endsAt',\n 'type': 'uint64',\n },\n {\n 'internalType': 'uint48',\n 'name': 'lastDepositId',\n 'type': 'uint48',\n },\n {\n 'internalType': 'uint8',\n 'name': 'winningOutcomesCount',\n 'type': 'uint8',\n },\n {\n 'internalType': 'enum ICondition.ConditionState',\n 'name': 'state',\n 'type': 'uint8',\n },\n {\n 'internalType': 'address',\n 'name': 'oracle',\n 'type': 'address',\n },\n ],\n 'internalType': 'struct ICondition.Condition',\n 'name': '',\n 'type': 'tuple',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'getOutcomeIndex',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'azuroBet_',\n 'type': 'address',\n },\n {\n 'internalType': 'address',\n 'name': 'lp_',\n 'type': 'address',\n },\n ],\n 'name': 'initialize',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n ],\n 'name': 'isConditionCanceled',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64',\n 'name': 'outcome',\n 'type': 'uint64',\n },\n ],\n 'name': 'isOutcomeWinning',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'lp',\n 'outputs': [\n {\n 'internalType': 'contract ILP',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'outcomeNumbers',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'owner',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'bettor',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'internalType': 'uint64',\n 'name': 'minOdds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bytes',\n 'name': 'data',\n 'type': 'bytes',\n },\n ],\n 'internalType': 'struct IBet.BetData',\n 'name': 'betData',\n 'type': 'tuple',\n },\n ],\n 'name': 'putBet',\n 'outputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint64[]',\n 'name': 'winningOutcomes_',\n 'type': 'uint64[]',\n },\n ],\n 'name': 'resolveCondition',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'resolvePayout',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'conditionId',\n 'type': 'uint256',\n },\n {\n 'internalType': 'bool',\n 'name': 'flag',\n 'type': 'bool',\n },\n ],\n 'name': 'stopCondition',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'transferOwnership',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'name': 'viewPayout',\n 'outputs': [\n {\n 'internalType': 'uint128',\n 'name': '',\n 'type': 'uint128',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n {\n 'internalType': 'uint256',\n 'name': '',\n 'type': 'uint256',\n },\n ],\n 'name': 'winningOutcomes',\n 'outputs': [\n {\n 'internalType': 'bool',\n 'name': '',\n 'type': 'bool',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n];var proxyFrontAbi = [\n {\n 'inputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'constructor',\n },\n {\n 'inputs': [],\n 'name': 'IncorrectValue',\n 'type': 'error',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'internalType': 'uint8',\n 'name': 'version',\n 'type': 'uint8',\n },\n ],\n 'name': 'Initialized',\n 'type': 'event',\n },\n {\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'previousOwner',\n 'type': 'address',\n },\n {\n 'indexed': true,\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'OwnershipTransferred',\n 'type': 'event',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'lp',\n 'type': 'address',\n },\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'core',\n 'type': 'address',\n },\n {\n 'internalType': 'uint128',\n 'name': 'amount',\n 'type': 'uint128',\n },\n {\n 'internalType': 'uint64',\n 'name': 'expiresAt',\n 'type': 'uint64',\n },\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'affiliate',\n 'type': 'address',\n },\n {\n 'internalType': 'uint64',\n 'name': 'minOdds',\n 'type': 'uint64',\n },\n {\n 'internalType': 'bytes',\n 'name': 'data',\n 'type': 'bytes',\n },\n ],\n 'internalType': 'struct IBet.BetData',\n 'name': 'extraData',\n 'type': 'tuple',\n },\n ],\n 'internalType': 'struct IProxyFront.BetData[]',\n 'name': 'data',\n 'type': 'tuple[]',\n },\n ],\n 'name': 'bet',\n 'outputs': [],\n 'stateMutability': 'payable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'account',\n 'type': 'address',\n },\n ],\n 'name': 'checkOwner',\n 'outputs': [],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'initialize',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [],\n 'name': 'owner',\n 'outputs': [\n {\n 'internalType': 'address',\n 'name': '',\n 'type': 'address',\n },\n ],\n 'stateMutability': 'view',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'internalType': 'address',\n 'name': 'newOwner',\n 'type': 'address',\n },\n ],\n 'name': 'transferOwnership',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'inputs': [\n {\n 'components': [\n {\n 'internalType': 'address',\n 'name': 'core',\n 'type': 'address',\n },\n {\n 'internalType': 'uint256',\n 'name': 'tokenId',\n 'type': 'uint256',\n },\n ],\n 'internalType': 'struct IProxyFront.WithdrawPayoutData[]',\n 'name': 'data',\n 'type': 'tuple[]',\n },\n ],\n 'name': 'withdrawPayouts',\n 'outputs': [],\n 'stateMutability': 'nonpayable',\n 'type': 'function',\n },\n {\n 'stateMutability': 'payable',\n 'type': 'receive',\n },\n];var FreeBet = [{ 'inputs': [], 'name': 'AlreadyResolved', 'type': 'error' }, { 'inputs': [], 'name': 'BetAlreadyClaimed', 'type': 'error' }, { 'inputs': [], 'name': 'BetExpired', 'type': 'error' }, { 'inputs': [], 'name': 'IncorrectChainId', 'type': 'error' }, { 'inputs': [], 'name': 'InsufficientContractBalance', 'type': 'error' }, { 'inputs': [], 'name': 'InvalidSignature', 'type': 'error' }, { 'inputs': [], 'name': 'OnlyBetOwner', 'type': 'error' }, { 'inputs': [], 'name': 'OnlyFreeBetOwner', 'type': 'error' }, { 'inputs': [], 'name': 'OnlyManager', 'type': 'error' }, { 'inputs': [], 'name': 'SmallMinOdds', 'type': 'error' }, { 'anonymous': false, 'inputs': [{ 'indexed': false, 'internalType': 'address', 'name': 'newAffiliate', 'type': 'address' }], 'name': 'AffiliateChanged', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': true, 'internalType': 'address', 'name': 'core', 'type': 'address' }, { 'indexed': true, 'internalType': 'address', 'name': 'bettor', 'type': 'address' }, { 'indexed': true, 'internalType': 'uint256', 'name': 'freeBetId', 'type': 'uint256' }, { 'indexed': false, 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256' }], 'name': 'BettorWin', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': false, 'internalType': 'uint8', 'name': 'version', 'type': 'uint8' }], 'name': 'Initialized', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': true, 'internalType': 'address', 'name': 'newLp', 'type': 'address' }], 'name': 'LpChanged', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': false, 'internalType': 'address', 'name': 'newManager', 'type': 'address' }], 'name': 'ManagerChanged', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': true, 'internalType': 'uint256', 'name': 'freeBetId', 'type': 'uint256' }, { 'indexed': false, 'internalType': 'address', 'name': 'core', 'type': 'address' }, { 'indexed': true, 'internalType': 'address', 'name': 'bettor', 'type': 'address' }, { 'indexed': true, 'internalType': 'uint256', 'name': 'azuroBetId', 'type': 'uint256' }, { 'indexed': false, 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128' }, { 'indexed': false, 'internalType': 'uint64', 'name': 'minOdds', 'type': 'uint64' }, { 'indexed': false, 'internalType': 'uint64', 'name': 'expiresAt', 'type': 'uint64' }], 'name': 'NewBet', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': true, 'internalType': 'address', 'name': 'previousOwner', 'type': 'address' }, { 'indexed': true, 'internalType': 'address', 'name': 'newOwner', 'type': 'address' }], 'name': 'OwnershipTransferred', 'type': 'event' }, { 'anonymous': false, 'inputs': [{ 'indexed': false, 'internalType': 'uint256[]', 'name': 'azuroBetId', 'type': 'uint256[]' }], 'name': 'PayoutsResolved', 'type': 'event' }, { 'inputs': [], 'name': 'affiliate', 'outputs': [{ 'internalType': 'address', 'name': '', 'type': 'address' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [{ 'components': [{ 'internalType': 'uint256', 'name': 'chainId', 'type': 'uint256' }, { 'internalType': 'uint256', 'name': 'freeBetId', 'type': 'uint256' }, { 'internalType': 'address', 'name': 'owner', 'type': 'address' }, { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128' }, { 'internalType': 'uint64', 'name': 'minOdds', 'type': 'uint64' }, { 'internalType': 'uint64', 'name': 'expiresAt', 'type': 'uint64' }], 'internalType': 'struct IFreeBet.FreeBetData', 'name': 'freeBetData', 'type': 'tuple' }, { 'internalType': 'bytes', 'name': 'signature', 'type': 'bytes' }, { 'internalType': 'address', 'name': 'core', 'type': 'address' }, { 'internalType': 'uint256', 'name': 'conditionId', 'type': 'uint256' }, { 'internalType': 'uint64', 'name': 'outcomeId', 'type': 'uint64' }, { 'internalType': 'uint64', 'name': 'deadline', 'type': 'uint64' }, { 'internalType': 'uint64', 'name': 'minOdds', 'type': 'uint64' }], 'name': 'bet', 'outputs': [{ 'internalType': 'uint256', 'name': 'azuroBetId', 'type': 'uint256' }], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'account', 'type': 'address' }], 'name': 'checkOwner', 'outputs': [], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [{ 'internalType': 'uint256', 'name': '', 'type': 'uint256' }], 'name': 'freeBets', 'outputs': [{ 'internalType': 'address', 'name': 'owner', 'type': 'address' }, { 'internalType': 'address', 'name': 'core', 'type': 'address' }, { 'internalType': 'uint256', 'name': 'azuroBetId', 'type': 'uint256' }, { 'internalType': 'uint128', 'name': 'amount', 'type': 'uint128' }, { 'internalType': 'uint128', 'name': 'payout', 'type': 'uint128' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'lpAddress', 'type': 'address' }, { 'internalType': 'address', 'name': 'affiliate_', 'type': 'address' }, { 'internalType': 'address', 'name': 'manager_', 'type': 'address' }], 'name': 'initialize', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [], 'name': 'lockedReserve', 'outputs': [{ 'internalType': 'uint256', 'name': '', 'type': 'uint256' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [], 'name': 'lp', 'outputs': [{ 'internalType': 'contract ILP', 'name': '', 'type': 'address' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [], 'name': 'manager', 'outputs': [{ 'internalType': 'address', 'name': '', 'type': 'address' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [], 'name': 'owner', 'outputs': [{ 'internalType': 'address', 'name': '', 'type': 'address' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [{ 'internalType': 'uint256[]', 'name': 'freeBetIds', 'type': 'uint256[]' }], 'name': 'resolvePayout', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'affiliate_', 'type': 'address' }], 'name': 'setAffiliate', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'lp_', 'type': 'address' }], 'name': 'setLp', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'manager_', 'type': 'address' }], 'name': 'setManager', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [], 'name': 'token', 'outputs': [{ 'internalType': 'address', 'name': '', 'type': 'address' }], 'stateMutability': 'view', 'type': 'function' }, { 'inputs': [{ 'internalType': 'address', 'name': 'newOwner', 'type': 'address' }], 'name': 'transferOwnership', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'uint256', 'name': 'freeBetId', 'type': 'uint256' }], 'name': 'withdrawPayout', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'inputs': [{ 'internalType': 'uint256', 'name': 'amount', 'type': 'uint256' }], 'name': 'withdrawReserve', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function' }, { 'stateMutability': 'payable', 'type': 'receive' }];const setupContracts = ({ lp, prematchCore, prematchComboCore, proxyFront, azuroBet, cashout, liveRelayer, liveCore, }) => {\n const contracts = {\n lp: {\n address: lp,\n abi: lpAbi,\n },\n prematchCore: {\n address: prematchCore,\n abi: prematchCoreAbi,\n },\n prematchComboCore: {\n address: prematchComboCore,\n abi: prematchComboCoreAbi,\n },\n proxyFront: {\n address: proxyFront,\n abi: proxyFrontAbi,\n },\n azuroBet: {\n address: azuroBet,\n abi: erc721Abi,\n },\n };\n if (liveRelayer) {\n contracts.liveRelayer = {\n address: liveRelayer,\n };\n }\n if (cashout) {\n contracts.cashout = {\n address: cashout,\n };\n }\n if (liveCore) {\n contracts.liveCore = {\n address: liveCore,\n abi: liveCoreAbi,\n };\n }\n return contracts;\n};const endpointNameByChainId = {\n [gnosis.id]: 'gnosis',\n [polygon.id]: 'polygon',\n [polygonAmoy.id]: 'polygon-amoy-preprod',\n [chiliz.id]: 'chiliz',\n [spicy.id]: 'chiliz-spicy-dev',\n [base.id]: 'base',\n [baseSepolia.id]: 'base-sepolia-dev',\n};\nif (isDevEnabled) {\n endpointNameByChainId[gnosis.id] = 'gnosis-dev';\n endpointNameByChainId[polygonAmoy.id] = 'polygon-amoy-dev';\n}\nconst isDev = (chainId) => {\n return isDevEnabled && (chainId === polygonAmoy.id ||\n chainId === gnosis.id ||\n chainId === spicy.id ||\n chainId === baseSepolia.id);\n};\nconst getPrematchGraphqlEndpoint = (chainId) => `https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-${endpointNameByChainId[chainId]}-v3`;\nconst getLiveGraphqlEndpoint = (chainId) => {\n if (isDev(chainId)) {\n return 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev';\n }\n if (chainId === polygonAmoy.id) {\n return 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-preprod';\n }\n return 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed';\n};\nconst getSocketEndpoint = (chainId) => {\n if (isDev(chainId)) {\n return 'wss://dev-streams.azuro.org/v1/streams';\n }\n if (chainId === polygonAmoy.id) {\n return 'wss://preprod-streams.azuro.org/v1/streams';\n }\n return 'wss://streams.azuro.org/v1/streams';\n};\nconst getApiEndpoint = (chainId) => {\n if (isDev(chainId)) {\n return 'https://dev-api.azuro.org/api/v1/public';\n }\n if (chainId === polygonAmoy.id) {\n return 'https://preprod-api.azuro.org/api/v1/public';\n }\n return 'https://api.azuro.org/api/v1/public';\n};const ODDS_DECIMALS = 12;\nconst MARGIN_DECIMALS = 12;\nconst MIN_LIVE_BET_AMOUNT = 1;\nconst LIVE_BET_DATA_TYPES = {\n ClientBetData: [\n { name: 'attention', type: 'string' },\n { name: 'affiliate', type: 'address' },\n { name: 'core', type: 'address' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint256' },\n { name: 'conditionId', type: 'uint256' },\n { name: 'outcomeId', type: 'uint64' },\n { name: 'minOdds', type: 'uint64' },\n { name: 'expiresAt', type: 'uint256' },\n { name: 'chainId', type: 'uint256' },\n { name: 'relayerFeeAmount', type: 'uint256' },\n ],\n};\nconst LIVE_TYPED_DATA_DOMAIN_NAME = 'Live Betting';\nconst LIVE_TYPED_DATA_DOMAIN_VERSION = '1.0.0';\nconst CASHOUT_DATA_TYPES = {\n CashOutItem: [\n { name: 'betId', type: 'uint256' },\n { name: 'bettingContract', type: 'address' },\n { name: 'minOdds', type: 'uint64' },\n ],\n CashOutOrder: [\n { name: 'attention', type: 'string' },\n { name: 'chainId', type: 'uint256' },\n { name: 'items', type: 'CashOutItem[]' },\n { name: 'expiresAt', type: 'uint64' },\n ],\n};\nconst CASHOUT_TYPED_DATA_DOMAIN_NAME = 'Cash Out';\nconst CASHOUT_TYPED_DATA_DOMAIN_VERSION = '1.0.0';\nconst deBridgeUrl = 'https://api.dln.trade/v1.0';\nconst deBridgeTxUrl = 'https://stats-api.dln.trade/api';\nconst liveHostAddress = '0x67Fca88E2f5F2C33b86bFa4EccfCb8dCD6a56D17';\n/**\n * @deprecated please, check the liveCore address existence for specific chain in chainsData\n */\nconst liveSupportedChains = [polygon.id, gnosis.id, polygonAmoy.id];\nconst gnosisData = {\n chain: gnosis,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(gnosis.id),\n live: getLiveGraphqlEndpoint(gnosis.id),\n },\n socket: getSocketEndpoint(gnosis.id),\n api: getApiEndpoint(gnosis.id),\n environment: environments[gnosis.id],\n contracts: setupContracts({\n lp: '0x204e7371Ade792c5C006fb52711c50a7efC843ed',\n prematchCore: '0x7f3F3f19c4e4015fd9Db2f22e653c766154091EF',\n prematchComboCore: '0xDbC3BE2DDB53e1a288F7b7a4d020F8056D3b0F7C',\n proxyFront: '0x3A1c6640daeAc3513726F06A9f03911CC1080251',\n azuroBet: '0xA3A1B460c68dc91c5B3f71f5487A76fac42858bf',\n cashout: '0x7145e4690A8846d5457D7352625e26b6A605a5AF',\n liveRelayer: '0x936c02503A32aA23BCF7CFaF5c29100b0F93FCfe',\n liveCore: '0x0223ff7efca5aec919c471fa2eb44cda466f1500',\n }),\n betToken: {\n address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',\n symbol: 'WXDAI',\n decimals: 18,\n },\n};\nconst gnosisDevData = {\n chain: gnosis,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(gnosis.id),\n live: getLiveGraphqlEndpoint(gnosis.id),\n },\n socket: getSocketEndpoint(gnosis.id),\n api: getApiEndpoint(gnosis.id),\n environment: environments[gnosis.id],\n contracts: setupContracts({\n lp: '0xe068Bf88317fA2eb3EAEcBfe1e486d8b2dDe7761',\n prematchCore: '0x0eaa5283990af9ca915b1d82261663d25d039d03',\n prematchComboCore: '0xdab6c085e2a24d3417875ea154c1d0abb5d427f9',\n proxyFront: '0xB02205C9e5DdFFa3EEa2731fE76e505B0d3eCCb0',\n azuroBet: '0x9AEb928E13b989d5F013b33c14853d8a944Acbf1',\n cashout: '0x483779Ff0F54Be733F513c14AA3a8382AB1cE019',\n liveRelayer: '0x3B0213eB35735A8E2b19F13C5Ec0a65a8226D5B2',\n liveCore: '0xFc4910f0E7523063f3640e249Fc0f25542b76899',\n }),\n betToken: {\n address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',\n symbol: 'WXDAI',\n decimals: 18,\n },\n};\nconst polygonData = {\n chain: polygon,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(polygon.id),\n live: getLiveGraphqlEndpoint(polygon.id),\n },\n socket: getSocketEndpoint(polygon.id),\n api: getApiEndpoint(polygon.id),\n environment: environments[polygon.id],\n contracts: setupContracts({\n lp: '0x7043E4e1c4045424858ECBCED80989FeAfC11B36',\n prematchCore: '0xA40F8D69D412b79b49EAbdD5cf1b5706395bfCf7',\n prematchComboCore: '0x92a4e8Bc6B92a2e1ced411f41013B5FE6BE07613',\n proxyFront: '0x0DEE52b98ba8326DaD4C346a4F806Fd871360a00',\n azuroBet: '0x8ed7296b5CAe379d07C70280Af622BC410F01Ed7',\n cashout: '0x365f97EE637f7a9260838F7d2a3601EA800627bE',\n liveRelayer: '0xC6BB817a7f02874F360d135D880200A2E440207D',\n liveCore: '0xc389558Faca41bC747F763cf8616704187CDcD04',\n }),\n betToken: {\n address: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',\n symbol: 'USDT',\n decimals: 6,\n },\n};\nconst polygonAmoyData = {\n chain: polygonAmoy,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(polygonAmoy.id),\n live: getLiveGraphqlEndpoint(polygonAmoy.id),\n },\n socket: getSocketEndpoint(polygonAmoy.id),\n api: getApiEndpoint(polygonAmoy.id),\n environment: environments[polygonAmoy.id],\n contracts: setupContracts({\n lp: '0x3528186476FD0eA0AdC9fCcc41de4CD138f99653',\n prematchCore: '0x2477B960080B3439b4684df3D9CE53B2ACe64315',\n prematchComboCore: '0xdF71998f7931caD24439A12A2F56D7326C3D0295',\n proxyFront: '0x7003CaA0847CA296EBF51C43D9021656a663304f',\n azuroBet: '0x5E59ee1b09Cb2Cf031e4Beaa8dB48D4B8b7e38AD',\n cashout: '0x080d71059891Fb4d722855df28bFB208335F1587',\n liveRelayer: '0x355B8493380fA5D57E4d3aFBF7C5f38b64AD5eA9',\n liveCore: '0x51eD5C2596d9AE32cE53ac1915Cb9333AFeF3156',\n }),\n betToken: {\n address: '0xf028b2dd00e20a8d9db3964a5feb0633d2ee46cd',\n symbol: 'AZUSD',\n decimals: 6,\n },\n};\nconst polygonAmoyDevData = {\n chain: polygonAmoy,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(polygonAmoy.id),\n live: getLiveGraphqlEndpoint(polygonAmoy.id),\n },\n socket: getSocketEndpoint(polygonAmoy.id),\n api: getApiEndpoint(polygonAmoy.id),\n environment: environments[polygonAmoy.id],\n contracts: setupContracts({\n lp: '0xDAa095204aCc244020F8f8e915f36533150ACF4b',\n prematchCore: '0x87EBFFe283bE8dEd47c3C87451d1B89c8a2C441A',\n prematchComboCore: '0x471DaC1052248602fdF05377EF99B5b7b3a769a1',\n proxyFront: '0x7003CaA0847CA296EBF51C43D9021656a663304f',\n azuroBet: '0x68af5E36EF6474036604702B33014D3b4dcc93f2',\n cashout: '0x914669F2BE69b1FE2a4927E9C84d1F0b4E933Ab6',\n liveRelayer: '0x38633e7Cbd86959453445C170168855ed1151C22',\n liveCore: '0x00232f2dEEae4541da1C5eC265193C879B2304Eb',\n }),\n betToken: {\n address: '0x683026Eb1b912795E4Eb1e73Da7e38C3F2f830c4',\n symbol: 'USDT',\n decimals: 6,\n },\n};\nconst chilizData = {\n chain: chiliz,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(chiliz.id),\n live: getLiveGraphqlEndpoint(chiliz.id),\n },\n socket: getSocketEndpoint(chiliz.id),\n api: getApiEndpoint(chiliz.id),\n environment: environments[chiliz.id],\n contracts: setupContracts({\n lp: '0x6909eAD2a1DA7b632D5993d329DEf4d2dbBc8261',\n prematchCore: '0x1a21C681Cc83889f4b213485aB6cF4971C43114B',\n prematchComboCore: '0x724fa8931428D5B636F7191d3e848f28Ab23C425',\n proxyFront: '0x45779134E5091756601Cb5bA389f9C76b914E520',\n azuroBet: '0x8609D1c8610D7F24d826FB76ea878d240537A8B8',\n cashout: '0xAE0830d7588aB44e5D4443168a8D666B54F385FE',\n liveRelayer: '0xA95D8Bd97F567380Bdc068462b9da547af37dAfD',\n liveCore: '0x2b387115201fe9daef7f3f5f6f3e29a3a94844bc',\n }),\n betToken: {\n address: '0x677F7e16C7Dd57be1D4C8aD1244883214953DC47',\n symbol: 'WCHZ',\n decimals: 18,\n },\n};\nconst spicyData = {\n chain: spicy,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(spicy.id),\n live: getLiveGraphqlEndpoint(spicy.id),\n },\n socket: getSocketEndpoint(spicy.id),\n api: getApiEndpoint(spicy.id),\n environment: environments[spicy.id],\n contracts: setupContracts({\n lp: '0x82f25d2670994b218b8a4C1e5Acc120D6c27d786',\n prematchCore: '0x035AB843C9F6dCB9D9bDeAC18c191dEc6c975fB7',\n prematchComboCore: '0xF94a49F0D78eAfeda81c785131eb6419EB18b33A',\n proxyFront: '0x67f3228fD58f5A26D93a5dd0c6989b69c95618eB',\n azuroBet: '0x6FA69dD52B5BF761030d3201B1DbE04039bF0BDe',\n cashout: '0xB1E54209e224218A03BFd89f830cCE0414a1921E',\n liveRelayer: '0x699A817E9414698Afc761dCBA83d158894EA7dd4',\n liveCore: '0xC6B38c80427E4038e91798847b5C5b056C358817',\n }),\n betToken: {\n address: '0x721ef6871f1c4efe730dce047d40d1743b886946',\n symbol: 'WCHZ',\n decimals: 18,\n },\n};\nconst baseSepoliaData = {\n chain: baseSepolia,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(baseSepolia.id),\n live: getLiveGraphqlEndpoint(baseSepolia.id),\n },\n socket: getSocketEndpoint(baseSepolia.id),\n api: getApiEndpoint(baseSepolia.id),\n environment: environments[baseSepolia.id],\n contracts: setupContracts({\n lp: '0xCf6a6e4A8b24a109111143567e3d2Ae4e77c4192',\n prematchCore: '0xfa275EAabeFE2B06Fd868A0A88302feF3bB55D5C',\n prematchComboCore: '0x2a91Ea47763bB59280823286A94a600D429c0EA0',\n proxyFront: '0xa39EC5452bE981c8Fb0121Ee11Bc3F0209052C2c',\n azuroBet: '0x8c1ca2bBe98575c9431a937ad48d1C261754Ab99',\n cashout: '0xc73c85898adBf3c9BD50D77Ee6BBF4F132554fFC',\n }),\n betToken: {\n address: '0x9e09f213Ff75e53D52e9e777A6567A68683E935f',\n symbol: 'WETH',\n decimals: 18,\n },\n};\nconst baseData = {\n chain: base,\n graphql: {\n prematch: getPrematchGraphqlEndpoint(base.id),\n live: getLiveGraphqlEndpoint(base.id),\n },\n socket: getSocketEndpoint(base.id),\n api: getApiEndpoint(base.id),\n environment: environments[base.id],\n contracts: setupContracts({\n lp: '0xF22E9e29728d6592eB54b916Ba9f464d9F237dB1',\n prematchCore: '0xf5A6B7940cbdb80F294f1eAc59575562966aa3FC',\n prematchComboCore: '0x4731Bb0D12c4f992Cf02BDc7A48e8656d0E382Ed',\n proxyFront: '0x6e1784b85eCF148BD412ad3c75e7C63B7d3cacB9',\n azuroBet: '0x9Ce099D680401763f9Cb160c8eAc3E5f8307314e',\n cashout: '0xFffF9220288787B24276135E58C0BF68D803F0ad',\n }),\n betToken: {\n address: '0x4200000000000000000000000000000000000006',\n symbol: 'WETH',\n decimals: 18,\n },\n};\nconst chainsData = {\n [gnosis.id]: gnosisData,\n [polygon.id]: polygonData,\n [polygonAmoy.id]: polygonAmoyData,\n [chiliz.id]: chilizData,\n [spicy.id]: spicyData,\n [base.id]: baseData,\n [baseSepolia.id]: baseSepoliaData,\n};\nif (isDevEnabled) {\n chainsData[gnosis.id] = gnosisDevData;\n chainsData[polygonAmoy.id] = polygonAmoyDevData;\n}\nconst chainsDataByEnv = {\n [Environment.GnosisXDAI]: gnosisData,\n [Environment.GnosisDevXDAI]: gnosisDevData,\n [Environment.PolygonUSDT]: polygonData,\n [Environment.PolygonAmoyAZUSD]: polygonAmoyData,\n [Environment.PolygonAmoyUSDT]: polygonAmoyDevData,\n [Environment.ChilizWCHZ]: chilizData,\n [Environment.ChilizSpicyWCHZ]: spicyData,\n [Environment.BaseWETH]: baseData,\n [Environment.BaseSepoliaWETH]: baseSepoliaData,\n};const LiveConditionFragmentDoc = gql `\n fragment LiveCondition on Condition {\n id\n conditionId\n status\n outcomes {\n outcomeId\n }\n game {\n gameId\n sport {\n sportId\n }\n }\n}\n `;const LiveConditionDocument = gql `\n query LiveCondition($conditionId: ID!) {\n condition(id: $conditionId, subgraphError: allow) {\n ...LiveCondition\n }\n}\n ${LiveConditionFragmentDoc}`;const LiveConditionsDocument = gql `\n query LiveConditions($where: Condition_filter!, $orderBy: Condition_orderBy, $orderDirection: OrderDirection) {\n conditions(\n where: $where\n first: 1000\n orderBy: $orderBy\n orderDirection: $orderDirection\n subgraphError: allow\n ) {\n ...LiveCondition\n wonOutcomeIds\n }\n}\n ${LiveConditionFragmentDoc}`;const BettorFragmentDoc = gql `\n fragment Bettor on Bettor {\n id\n rawToPayout\n rawInBets\n rawTotalPayout\n rawTotalProfit\n betsCount\n wonBetsCount\n lostBetsCount\n}\n `;const PrematchConditionFragmentDoc = gql `\n fragment PrematchCondition on Condition {\n id\n conditionId\n status\n title\n isExpressForbidden\n margin\n outcomes {\n title\n outcomeId\n odds: currentOdds\n }\n core {\n address\n liquidityPool {\n address\n }\n }\n game {\n gameId\n sport {\n sportId\n }\n }\n}\n `;const LiveBetFragmentDoc = gql `\n fragment LiveBet on LiveBet {\n id\n tokenId: betId\n amount\n status\n potentialPayout\n payout\n result\n odds\n settledOdds\n createdAt: createdBlockTimestamp\n txHash: createdTxHash\n affiliate\n isRedeemed\n isRedeemable\n isCashedOut\n core {\n address\n liquidityPool {\n address\n }\n }\n selections {\n odds\n result\n outcome {\n outcomeId\n condition {\n conditionId\n status\n gameId\n }\n }\n }\n cashout {\n payout\n }\n}\n `;const MainGameInfoFragmentDoc = gql `\n fragment MainGameInfo on Game {\n id\n gameId\n title\n startsAt\n status\n sport {\n sportId\n slug\n name\n }\n league {\n slug\n name\n country {\n slug\n name\n }\n }\n participants {\n image\n name\n }\n}\n `;const PrematchBetFragmentDoc = gql `\n fragment PrematchBet on Bet {\n id\n tokenId: betId\n amount\n status\n potentialPayout\n payout\n result\n odds\n settledOdds\n createdAt: createdBlockTimestamp\n txHash: createdTxHash\n affiliate\n isRedeemed\n isRedeemable\n isCashedOut\n core {\n address\n liquidityPool {\n address\n }\n }\n selections {\n odds\n result\n outcome {\n outcomeId\n title\n condition {\n conditionId\n status\n title\n game {\n ...MainGameInfo\n }\n }\n }\n }\n freebet {\n freebetId\n contractAddress: freebetContractAddress\n }\n cashout {\n payout\n }\n}\n ${MainGameInfoFragmentDoc}`;const BettorsDocument = gql `\n query Bettors($where: Bettor_filter!) {\n bettors(where: $where, subgraphError: allow) {\n ...Bettor\n }\n}\n ${BettorFragmentDoc}`;const PrematchConditionDocument = gql `\n query PrematchCondition($id: ID!) {\n condition(id: $id, subgraphError: allow) {\n ...PrematchCondition\n }\n}\n ${PrematchConditionFragmentDoc}`;const PrematchConditionsDocument = gql `\n query PrematchConditions($where: Condition_filter!, $orderBy: Condition_orderBy, $orderDirection: OrderDirection) {\n conditions(\n where: $where\n first: 1000\n orderBy: $orderBy\n orderDirection: $orderDirection\n subgraphError: allow\n ) {\n ...PrematchCondition\n wonOutcomeIds\n }\n}\n ${PrematchConditionFragmentDoc}`;const PrematchConditionsBatchDocument = gql `\n query PrematchConditionsBatch($conditionFilter: Condition_filter) {\n conditions(where: $conditionFilter, first: 1000, subgraphError: allow) {\n status\n conditionId\n outcomes {\n id\n outcomeId\n odds: currentOdds\n }\n }\n}\n `;const GameDocument = gql `\n query Game($gameId: BigInt!) {\n games(where: {gameId: $gameId}) {\n ...MainGameInfo\n }\n}\n ${MainGameInfoFragmentDoc}`;const GameBetsDocument = gql `\n query GameBets($gameId: BigInt!, $actor: String) {\n bets(where: {_games_: {gameId: $gameId}, actor: $actor}) {\n rawAmount\n rawPotentialPayout\n result\n selections {\n rawOdds\n outcome {\n outcomeId\n condition {\n conditionId\n game {\n gameId\n }\n }\n }\n }\n freebet {\n id\n }\n }\n liveBets(where: {_gamesIds: [$gameId], actor: $actor}) {\n rawAmount\n rawPotentialPayout\n result\n selections {\n outcome {\n outcomeId\n condition {\n conditionId\n }\n }\n }\n }\n}\n `;const GamesDocument = gql `\n query Games($first: Int, $skip: Int, $where: Game_filter!, $orderBy: Game_orderBy, $orderDirection: OrderDirection) {\n games(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n subgraphError: allow\n ) {\n ...MainGameInfo\n }\n}\n ${MainGameInfoFragmentDoc}`;const LiveBetsDocument = gql `\n query LiveBets($first: Int, $skip: Int, $where: Bet_filter!, $orderBy: Bet_orderBy, $orderDirection: OrderDirection) {\n liveBets(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n subgraphError: allow\n ) {\n ...LiveBet\n }\n}\n ${LiveBetFragmentDoc}`;const NavigationDocument = gql `\n query Navigation($first: Int, $sportFilter: Sport_filter, $gameFilter: Game_filter, $withGameCount: Boolean!) {\n sports(where: $sportFilter, subgraphError: allow) {\n id\n slug\n name\n sportId\n countries(where: {hasActiveLeagues: true}) {\n id\n slug\n name\n leagues(where: {games_: $gameFilter}) {\n id\n slug\n name\n games(first: $first, where: $gameFilter) @include(if: $withGameCount) {\n id\n }\n }\n }\n }\n}\n `;const PrematchBetsDocument = gql `\n query PrematchBets($first: Int, $skip: Int, $where: Bet_filter!, $orderBy: Bet_orderBy, $orderDirection: OrderDirection) {\n bets(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n subgraphError: allow\n ) {\n ...PrematchBet\n }\n}\n ${PrematchBetFragmentDoc}`;const SportsDocument = gql `\n query Sports($first: Int, $sportFilter: Sport_filter, $countryFilter: Country_filter, $leagueFilter: League_filter, $gameFilter: Game_filter, $gameOrderBy: Game_orderBy, $gameOrderDirection: OrderDirection) {\n sports(where: $sportFilter, subgraphError: allow) {\n id\n slug\n name\n sportId\n countries(where: $countryFilter, orderBy: turnover, orderDirection: desc) {\n slug\n name\n turnover\n leagues(where: $leagueFilter, orderBy: turnover, orderDirection: desc) {\n slug\n name\n turnover\n games(\n where: $gameFilter\n first: $first\n orderBy: $gameOrderBy\n orderDirection: $gameOrderDirection\n ) {\n turnover\n ...MainGameInfo\n }\n }\n }\n }\n}\n ${MainGameInfoFragmentDoc}`;const SportsNavigationDocument = gql `\n query SportsNavigation($first: Int, $sportFilter: Sport_filter, $gameFilter: Game_filter, $withGameCount: Boolean!) {\n sports(where: $sportFilter, subgraphError: allow) {\n id\n slug\n name\n sportId\n games(first: $first, where: $gameFilter) @include(if: $withGameCount) {\n id\n }\n }\n}\n `;var AffiliateMonthly_OrderBy;\n(function (AffiliateMonthly_OrderBy) {\n AffiliateMonthly_OrderBy[\"Affiliate\"] = \"affiliate\";\n AffiliateMonthly_OrderBy[\"BetsCount\"] = \"betsCount\";\n AffiliateMonthly_OrderBy[\"Id\"] = \"id\";\n AffiliateMonthly_OrderBy[\"LastAnyBetCreatedTimestamp\"] = \"lastAnyBetCreatedTimestamp\";\n AffiliateMonthly_OrderBy[\"Month\"] = \"month\";\n AffiliateMonthly_OrderBy[\"Year\"] = \"year\";\n})(AffiliateMonthly_OrderBy || (AffiliateMonthly_OrderBy = {}));\nvar Aggregation_Interval$1;\n(function (Aggregation_Interval) {\n Aggregation_Interval[\"Day\"] = \"day\";\n Aggregation_Interval[\"Hour\"] = \"hour\";\n})(Aggregation_Interval$1 || (Aggregation_Interval$1 = {}));\nvar AzuroBetContract_OrderBy;\n(function (AzuroBetContract_OrderBy) {\n AzuroBetContract_OrderBy[\"Address\"] = \"address\";\n AzuroBetContract_OrderBy[\"Core\"] = \"core\";\n AzuroBetContract_OrderBy[\"Id\"] = \"id\";\n})(AzuroBetContract_OrderBy || (AzuroBetContract_OrderBy = {}));\nvar BetMargin_OrderBy;\n(function (BetMargin_OrderBy) {\n BetMargin_OrderBy[\"Id\"] = \"id\";\n BetMargin_OrderBy[\"Margins\"] = \"margins\";\n})(BetMargin_OrderBy || (BetMargin_OrderBy = {}));\nvar BetResult;\n(function (BetResult) {\n BetResult[\"Lost\"] = \"Lost\";\n BetResult[\"Won\"] = \"Won\";\n})(BetResult || (BetResult = {}));\nvar BetStatus$1;\n(function (BetStatus) {\n BetStatus[\"Accepted\"] = \"Accepted\";\n BetStatus[\"Canceled\"] = \"Canceled\";\n BetStatus[\"Resolved\"] = \"Resolved\";\n})(BetStatus$1 || (BetStatus$1 = {}));\nvar BetType;\n(function (BetType) {\n BetType[\"Express\"] = \"Express\";\n BetType[\"Ordinar\"] = \"Ordinar\";\n})(BetType || (BetType = {}));\nvar Bet_OrderBy;\n(function (Bet_OrderBy) {\n Bet_OrderBy[\"CanceledSubBetsCount\"] = \"_canceledSubBetsCount\";\n Bet_OrderBy[\"ConditionIds\"] = \"_conditionIds\";\n Bet_OrderBy[\"Conditions\"] = \"_conditions\";\n Bet_OrderBy[\"Games\"] = \"_games\";\n Bet_OrderBy[\"IsFreebet\"] = \"_isFreebet\";\n Bet_OrderBy[\"LostSubBetsCount\"] = \"_lostSubBetsCount\";\n Bet_OrderBy[\"MarginsForSettle\"] = \"_marginsForSettle\";\n Bet_OrderBy[\"OddsDecimals\"] = \"_oddsDecimals\";\n Bet_OrderBy[\"SubBetsCount\"] = \"_subBetsCount\";\n Bet_OrderBy[\"TokenDecimals\"] = \"_tokenDecimals\";\n Bet_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Bet_OrderBy[\"WonSubBetsCount\"] = \"_wonSubBetsCount\";\n Bet_OrderBy[\"Actor\"] = \"actor\";\n Bet_OrderBy[\"Affiliate\"] = \"affiliate\";\n Bet_OrderBy[\"Amount\"] = \"amount\";\n Bet_OrderBy[\"ApproxSettledAt\"] = \"approxSettledAt\";\n Bet_OrderBy[\"BetId\"] = \"betId\";\n Bet_OrderBy[\"Bettor\"] = \"bettor\";\n Bet_OrderBy[\"Cashout\"] = \"cashout\";\n Bet_OrderBy[\"Core\"] = \"core\";\n Bet_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Bet_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Bet_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Bet_OrderBy[\"Freebet\"] = \"freebet\";\n Bet_OrderBy[\"Id\"] = \"id\";\n Bet_OrderBy[\"IsCashedOut\"] = \"isCashedOut\";\n Bet_OrderBy[\"IsRedeemable\"] = \"isRedeemable\";\n Bet_OrderBy[\"IsRedeemed\"] = \"isRedeemed\";\n Bet_OrderBy[\"Odds\"] = \"odds\";\n Bet_OrderBy[\"Owner\"] = \"owner\";\n Bet_OrderBy[\"Payout\"] = \"payout\";\n Bet_OrderBy[\"PotentialPayout\"] = \"potentialPayout\";\n Bet_OrderBy[\"RawAmount\"] = \"rawAmount\";\n Bet_OrderBy[\"RawOdds\"] = \"rawOdds\";\n Bet_OrderBy[\"RawPayout\"] = \"rawPayout\";\n Bet_OrderBy[\"RawPotentialPayout\"] = \"rawPotentialPayout\";\n Bet_OrderBy[\"RawSettledMargin\"] = \"rawSettledMargin\";\n Bet_OrderBy[\"RawSettledOdds\"] = \"rawSettledOdds\";\n Bet_OrderBy[\"RedeemedBlockNumber\"] = \"redeemedBlockNumber\";\n Bet_OrderBy[\"RedeemedBlockTimestamp\"] = \"redeemedBlockTimestamp\";\n Bet_OrderBy[\"RedeemedTxHash\"] = \"redeemedTxHash\";\n Bet_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n Bet_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n Bet_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n Bet_OrderBy[\"Result\"] = \"result\";\n Bet_OrderBy[\"Selections\"] = \"selections\";\n Bet_OrderBy[\"SettledMargin\"] = \"settledMargin\";\n Bet_OrderBy[\"SettledOdds\"] = \"settledOdds\";\n Bet_OrderBy[\"Status\"] = \"status\";\n Bet_OrderBy[\"Type\"] = \"type\";\n})(Bet_OrderBy || (Bet_OrderBy = {}));\nvar Bettor_OrderBy;\n(function (Bettor_OrderBy) {\n Bettor_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Bettor_OrderBy[\"Address\"] = \"address\";\n Bettor_OrderBy[\"Affiliate\"] = \"affiliate\";\n Bettor_OrderBy[\"AvgBetAmount\"] = \"avgBetAmount\";\n Bettor_OrderBy[\"BetsCount\"] = \"betsCount\";\n Bettor_OrderBy[\"BiggestBetAmount\"] = \"biggestBetAmount\";\n Bettor_OrderBy[\"BiggestPayout\"] = \"biggestPayout\";\n Bettor_OrderBy[\"CanceledBetsCount\"] = \"canceledBetsCount\";\n Bettor_OrderBy[\"ExpressBetsCount\"] = \"expressBetsCount\";\n Bettor_OrderBy[\"FirstBetTimestamp\"] = \"firstBetTimestamp\";\n Bettor_OrderBy[\"Id\"] = \"id\";\n Bettor_OrderBy[\"InBets\"] = \"inBets\";\n Bettor_OrderBy[\"LastBetTimestamp\"] = \"lastBetTimestamp\";\n Bettor_OrderBy[\"LiveBetsCount\"] = \"liveBetsCount\";\n Bettor_OrderBy[\"LostBetsCount\"] = \"lostBetsCount\";\n Bettor_OrderBy[\"Pnl\"] = \"pnl\";\n Bettor_OrderBy[\"PrematchBetsCount\"] = \"prematchBetsCount\";\n Bettor_OrderBy[\"RawAvgBetAmount\"] = \"rawAvgBetAmount\";\n Bettor_OrderBy[\"RawBiggestBetAmount\"] = \"rawBiggestBetAmount\";\n Bettor_OrderBy[\"RawBiggestPayout\"] = \"rawBiggestPayout\";\n Bettor_OrderBy[\"RawInBets\"] = \"rawInBets\";\n Bettor_OrderBy[\"RawToPayout\"] = \"rawToPayout\";\n Bettor_OrderBy[\"RawTotalPayout\"] = \"rawTotalPayout\";\n Bettor_OrderBy[\"RawTotalProfit\"] = \"rawTotalProfit\";\n Bettor_OrderBy[\"RawTurnover\"] = \"rawTurnover\";\n Bettor_OrderBy[\"RedeemedBetsCount\"] = \"redeemedBetsCount\";\n Bettor_OrderBy[\"RedeemedCanceledBetsCount\"] = \"redeemedCanceledBetsCount\";\n Bettor_OrderBy[\"RedeemedLostBetsCount\"] = \"redeemedLostBetsCount\";\n Bettor_OrderBy[\"RedeemedWonBetsCount\"] = \"redeemedWonBetsCount\";\n Bettor_OrderBy[\"SettledBetsCount\"] = \"settledBetsCount\";\n Bettor_OrderBy[\"ToPayout\"] = \"toPayout\";\n Bettor_OrderBy[\"TotalPayout\"] = \"totalPayout\";\n Bettor_OrderBy[\"TotalProfit\"] = \"totalProfit\";\n Bettor_OrderBy[\"Turnover\"] = \"turnover\";\n Bettor_OrderBy[\"WonBetsCount\"] = \"wonBetsCount\";\n})(Bettor_OrderBy || (Bettor_OrderBy = {}));\nvar Cashout_OrderBy;\n(function (Cashout_OrderBy) {\n Cashout_OrderBy[\"OddsDecimals\"] = \"_oddsDecimals\";\n Cashout_OrderBy[\"TokenDecimals\"] = \"_tokenDecimals\";\n Cashout_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Cashout_OrderBy[\"BetContractAddress\"] = \"betContractAddress\";\n Cashout_OrderBy[\"BetId\"] = \"betId\";\n Cashout_OrderBy[\"CashoutContractAddress\"] = \"cashoutContractAddress\";\n Cashout_OrderBy[\"Core\"] = \"core\";\n Cashout_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Cashout_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Cashout_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Cashout_OrderBy[\"Id\"] = \"id\";\n Cashout_OrderBy[\"Odds\"] = \"odds\";\n Cashout_OrderBy[\"Owner\"] = \"owner\";\n Cashout_OrderBy[\"Payout\"] = \"payout\";\n Cashout_OrderBy[\"RawOdds\"] = \"rawOdds\";\n Cashout_OrderBy[\"RawPayout\"] = \"rawPayout\";\n})(Cashout_OrderBy || (Cashout_OrderBy = {}));\nvar ConditionLogStatus;\n(function (ConditionLogStatus) {\n ConditionLogStatus[\"Canceled\"] = \"Canceled\";\n ConditionLogStatus[\"Created\"] = \"Created\";\n ConditionLogStatus[\"Paused\"] = \"Paused\";\n ConditionLogStatus[\"Resolved\"] = \"Resolved\";\n ConditionLogStatus[\"Unpaused\"] = \"Unpaused\";\n})(ConditionLogStatus || (ConditionLogStatus = {}));\nvar ConditionLog_OrderBy;\n(function (ConditionLog_OrderBy) {\n ConditionLog_OrderBy[\"ConditionId\"] = \"conditionId\";\n ConditionLog_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n ConditionLog_OrderBy[\"Id\"] = \"id\";\n ConditionLog_OrderBy[\"IsLive\"] = \"isLive\";\n ConditionLog_OrderBy[\"Status\"] = \"status\";\n})(ConditionLog_OrderBy || (ConditionLog_OrderBy = {}));\nvar ConditionStatus$1;\n(function (ConditionStatus) {\n ConditionStatus[\"Canceled\"] = \"Canceled\";\n ConditionStatus[\"Created\"] = \"Created\";\n ConditionStatus[\"Paused\"] = \"Paused\";\n ConditionStatus[\"Resolved\"] = \"Resolved\";\n})(ConditionStatus$1 || (ConditionStatus$1 = {}));\nvar Condition_OrderBy$1;\n(function (Condition_OrderBy) {\n Condition_OrderBy[\"OutcomesKey\"] = \"_outcomesKey\";\n Condition_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Condition_OrderBy[\"WinningOutcomesCount\"] = \"_winningOutcomesCount\";\n Condition_OrderBy[\"ConditionId\"] = \"conditionId\";\n Condition_OrderBy[\"Core\"] = \"core\";\n Condition_OrderBy[\"CoreAddress\"] = \"coreAddress\";\n Condition_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Condition_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Condition_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Condition_OrderBy[\"Game\"] = \"game\";\n Condition_OrderBy[\"Hidden\"] = \"hidden\";\n Condition_OrderBy[\"Id\"] = \"id\";\n Condition_OrderBy[\"InternalStartsAt\"] = \"internalStartsAt\";\n Condition_OrderBy[\"IsExpressForbidden\"] = \"isExpressForbidden\";\n Condition_OrderBy[\"Margin\"] = \"margin\";\n Condition_OrderBy[\"Outcomes\"] = \"outcomes\";\n Condition_OrderBy[\"OutcomesIds\"] = \"outcomesIds\";\n Condition_OrderBy[\"Provider\"] = \"provider\";\n Condition_OrderBy[\"Reinforcement\"] = \"reinforcement\";\n Condition_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n Condition_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n Condition_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n Condition_OrderBy[\"Status\"] = \"status\";\n Condition_OrderBy[\"Title\"] = \"title\";\n Condition_OrderBy[\"Turnover\"] = \"turnover\";\n Condition_OrderBy[\"WonOutcomeIds\"] = \"wonOutcomeIds\";\n Condition_OrderBy[\"WonOutcomes\"] = \"wonOutcomes\";\n})(Condition_OrderBy$1 || (Condition_OrderBy$1 = {}));\nvar CoreContract_OrderBy;\n(function (CoreContract_OrderBy) {\n CoreContract_OrderBy[\"Address\"] = \"address\";\n CoreContract_OrderBy[\"Id\"] = \"id\";\n CoreContract_OrderBy[\"LiquidityPool\"] = \"liquidityPool\";\n CoreContract_OrderBy[\"Type\"] = \"type\";\n})(CoreContract_OrderBy || (CoreContract_OrderBy = {}));\nvar Country_OrderBy$1;\n(function (Country_OrderBy) {\n Country_OrderBy[\"ActiveLeaguesEntityIds\"] = \"activeLeaguesEntityIds\";\n Country_OrderBy[\"HasActiveLeagues\"] = \"hasActiveLeagues\";\n Country_OrderBy[\"Id\"] = \"id\";\n Country_OrderBy[\"Leagues\"] = \"leagues\";\n Country_OrderBy[\"Name\"] = \"name\";\n Country_OrderBy[\"Slug\"] = \"slug\";\n Country_OrderBy[\"Sport\"] = \"sport\";\n Country_OrderBy[\"Turnover\"] = \"turnover\";\n})(Country_OrderBy$1 || (Country_OrderBy$1 = {}));\nvar EventName$1;\n(function (EventName) {\n EventName[\"AzuroBetTransfer\"] = \"AzuroBetTransfer\";\n EventName[\"BetCashedOut\"] = \"BetCashedOut\";\n EventName[\"BetSettled\"] = \"BetSettled\";\n EventName[\"BettorWin\"] = \"BettorWin\";\n EventName[\"ConditionCreated\"] = \"ConditionCreated\";\n EventName[\"ConditionResolved\"] = \"ConditionResolved\";\n EventName[\"ConditionShifted\"] = \"ConditionShifted\";\n EventName[\"ConditionStopped\"] = \"ConditionStopped\";\n EventName[\"FreeBetBettorWin\"] = \"FreeBetBettorWin\";\n EventName[\"FreeBetMinted\"] = \"FreeBetMinted\";\n EventName[\"FreeBetRedeemed\"] = \"FreeBetRedeemed\";\n EventName[\"FreeBetReissued\"] = \"FreeBetReissued\";\n EventName[\"FreeBetTransfer\"] = \"FreeBetTransfer\";\n EventName[\"GameCanceled\"] = \"GameCanceled\";\n EventName[\"GameShifted\"] = \"GameShifted\";\n EventName[\"LiquidityAdded\"] = \"LiquidityAdded\";\n EventName[\"LiquidityRemoved\"] = \"LiquidityRemoved\";\n EventName[\"LiquidityTransfer\"] = \"LiquidityTransfer\";\n EventName[\"LiveBetSettled\"] = \"LiveBetSettled\";\n EventName[\"MarginChanged\"] = \"MarginChanged\";\n EventName[\"NewBet\"] = \"NewBet\";\n EventName[\"NewGame\"] = \"NewGame\";\n EventName[\"NewLiveBet\"] = \"NewLiveBet\";\n EventName[\"ReinforcementChanged\"] = \"ReinforcementChanged\";\n})(EventName$1 || (EventName$1 = {}));\nvar Event_OrderBy$1;\n(function (Event_OrderBy) {\n Event_OrderBy[\"Affiliate\"] = \"affiliate\";\n Event_OrderBy[\"BetId\"] = \"betId\";\n Event_OrderBy[\"BlockNumber\"] = \"blockNumber\";\n Event_OrderBy[\"BlockTimestamp\"] = \"blockTimestamp\";\n Event_OrderBy[\"ConditionId\"] = \"conditionId\";\n Event_OrderBy[\"ContractAddress\"] = \"contractAddress\";\n Event_OrderBy[\"DepositId\"] = \"depositId\";\n Event_OrderBy[\"FreebetId\"] = \"freebetId\";\n Event_OrderBy[\"GameId\"] = \"gameId\";\n Event_OrderBy[\"GasPrice\"] = \"gasPrice\";\n Event_OrderBy[\"GasUsed\"] = \"gasUsed\";\n Event_OrderBy[\"Id\"] = \"id\";\n Event_OrderBy[\"LogIndex\"] = \"logIndex\";\n Event_OrderBy[\"Name\"] = \"name\";\n Event_OrderBy[\"SortOrder\"] = \"sortOrder\";\n Event_OrderBy[\"TransactionIndex\"] = \"transactionIndex\";\n Event_OrderBy[\"TxHash\"] = \"txHash\";\n})(Event_OrderBy$1 || (Event_OrderBy$1 = {}));\nvar ExpressPrematchRelation_OrderBy;\n(function (ExpressPrematchRelation_OrderBy) {\n ExpressPrematchRelation_OrderBy[\"Id\"] = \"id\";\n ExpressPrematchRelation_OrderBy[\"PrematchAddress\"] = \"prematchAddress\";\n})(ExpressPrematchRelation_OrderBy || (ExpressPrematchRelation_OrderBy = {}));\nvar FreebetContract_OrderBy;\n(function (FreebetContract_OrderBy) {\n FreebetContract_OrderBy[\"Address\"] = \"address\";\n FreebetContract_OrderBy[\"Affiliate\"] = \"affiliate\";\n FreebetContract_OrderBy[\"Id\"] = \"id\";\n FreebetContract_OrderBy[\"LiquidityPool\"] = \"liquidityPool\";\n FreebetContract_OrderBy[\"Manager\"] = \"manager\";\n FreebetContract_OrderBy[\"Name\"] = \"name\";\n})(FreebetContract_OrderBy || (FreebetContract_OrderBy = {}));\nvar FreebetStatus;\n(function (FreebetStatus) {\n FreebetStatus[\"Created\"] = \"Created\";\n FreebetStatus[\"Redeemed\"] = \"Redeemed\";\n FreebetStatus[\"Reissued\"] = \"Reissued\";\n FreebetStatus[\"Withdrawn\"] = \"Withdrawn\";\n})(FreebetStatus || (FreebetStatus = {}));\nvar Freebet_OrderBy;\n(function (Freebet_OrderBy) {\n Freebet_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Freebet_OrderBy[\"Amount\"] = \"amount\";\n Freebet_OrderBy[\"AzuroBetId\"] = \"azuroBetId\";\n Freebet_OrderBy[\"Burned\"] = \"burned\";\n Freebet_OrderBy[\"Core\"] = \"core\";\n Freebet_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Freebet_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Freebet_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Freebet_OrderBy[\"DurationTime\"] = \"durationTime\";\n Freebet_OrderBy[\"ExpiresAt\"] = \"expiresAt\";\n Freebet_OrderBy[\"Freebet\"] = \"freebet\";\n Freebet_OrderBy[\"FreebetContractAddress\"] = \"freebetContractAddress\";\n Freebet_OrderBy[\"FreebetContractAffiliate\"] = \"freebetContractAffiliate\";\n Freebet_OrderBy[\"FreebetContractName\"] = \"freebetContractName\";\n Freebet_OrderBy[\"FreebetId\"] = \"freebetId\";\n Freebet_OrderBy[\"Id\"] = \"id\";\n Freebet_OrderBy[\"IsResolved\"] = \"isResolved\";\n Freebet_OrderBy[\"MinOdds\"] = \"minOdds\";\n Freebet_OrderBy[\"Owner\"] = \"owner\";\n Freebet_OrderBy[\"RawAmount\"] = \"rawAmount\";\n Freebet_OrderBy[\"RawMinOdds\"] = \"rawMinOdds\";\n Freebet_OrderBy[\"Status\"] = \"status\";\n Freebet_OrderBy[\"TokenDecimals\"] = \"tokenDecimals\";\n})(Freebet_OrderBy || (Freebet_OrderBy = {}));\nvar GameStatus$2;\n(function (GameStatus) {\n GameStatus[\"Canceled\"] = \"Canceled\";\n GameStatus[\"Created\"] = \"Created\";\n GameStatus[\"Paused\"] = \"Paused\";\n GameStatus[\"Resolved\"] = \"Resolved\";\n})(GameStatus$2 || (GameStatus$2 = {}));\nvar Game_OrderBy$1;\n(function (Game_OrderBy) {\n Game_OrderBy[\"ActiveConditionsEntityIds\"] = \"_activeConditionsEntityIds\";\n Game_OrderBy[\"CanceledConditionsEntityIds\"] = \"_canceledConditionsEntityIds\";\n Game_OrderBy[\"PausedConditionsEntityIds\"] = \"_pausedConditionsEntityIds\";\n Game_OrderBy[\"ProviderTitle\"] = \"_providerTitle\";\n Game_OrderBy[\"ResolvedConditionsEntityIds\"] = \"_resolvedConditionsEntityIds\";\n Game_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Game_OrderBy[\"Conditions\"] = \"conditions\";\n Game_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Game_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Game_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Game_OrderBy[\"GameId\"] = \"gameId\";\n Game_OrderBy[\"HasActiveConditions\"] = \"hasActiveConditions\";\n Game_OrderBy[\"Id\"] = \"id\";\n Game_OrderBy[\"League\"] = \"league\";\n Game_OrderBy[\"LiquidityPool\"] = \"liquidityPool\";\n Game_OrderBy[\"Participants\"] = \"participants\";\n Game_OrderBy[\"Provider\"] = \"provider\";\n Game_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n Game_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n Game_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n Game_OrderBy[\"ShiftedBlockNumber\"] = \"shiftedBlockNumber\";\n Game_OrderBy[\"ShiftedBlockTimestamp\"] = \"shiftedBlockTimestamp\";\n Game_OrderBy[\"ShiftedTxHash\"] = \"shiftedTxHash\";\n Game_OrderBy[\"Slug\"] = \"slug\";\n Game_OrderBy[\"Sport\"] = \"sport\";\n Game_OrderBy[\"StartsAt\"] = \"startsAt\";\n Game_OrderBy[\"Status\"] = \"status\";\n Game_OrderBy[\"Title\"] = \"title\";\n Game_OrderBy[\"Turnover\"] = \"turnover\";\n})(Game_OrderBy$1 || (Game_OrderBy$1 = {}));\nvar League_OrderBy$1;\n(function (League_OrderBy) {\n League_OrderBy[\"ActiveGamesEntityIds\"] = \"activeGamesEntityIds\";\n League_OrderBy[\"Country\"] = \"country\";\n League_OrderBy[\"Games\"] = \"games\";\n League_OrderBy[\"HasActiveGames\"] = \"hasActiveGames\";\n League_OrderBy[\"Id\"] = \"id\";\n League_OrderBy[\"Name\"] = \"name\";\n League_OrderBy[\"Slug\"] = \"slug\";\n League_OrderBy[\"Turnover\"] = \"turnover\";\n})(League_OrderBy$1 || (League_OrderBy$1 = {}));\nvar LiquidityPoolContractType;\n(function (LiquidityPoolContractType) {\n LiquidityPoolContractType[\"V1\"] = \"V1\";\n LiquidityPoolContractType[\"V2\"] = \"V2\";\n})(LiquidityPoolContractType || (LiquidityPoolContractType = {}));\nvar LiquidityPoolContract_OrderBy;\n(function (LiquidityPoolContract_OrderBy) {\n LiquidityPoolContract_OrderBy[\"Address\"] = \"address\";\n LiquidityPoolContract_OrderBy[\"Apr\"] = \"apr\";\n LiquidityPoolContract_OrderBy[\"Asset\"] = \"asset\";\n LiquidityPoolContract_OrderBy[\"BetsAmount\"] = \"betsAmount\";\n LiquidityPoolContract_OrderBy[\"BetsCount\"] = \"betsCount\";\n LiquidityPoolContract_OrderBy[\"ChainId\"] = \"chainId\";\n LiquidityPoolContract_OrderBy[\"ChainName\"] = \"chainName\";\n LiquidityPoolContract_OrderBy[\"CoreAddresses\"] = \"coreAddresses\";\n LiquidityPoolContract_OrderBy[\"Cores\"] = \"cores\";\n LiquidityPoolContract_OrderBy[\"DaysSinceDeployment\"] = \"daysSinceDeployment\";\n LiquidityPoolContract_OrderBy[\"DepositedAmount\"] = \"depositedAmount\";\n LiquidityPoolContract_OrderBy[\"DepositedWithStakingAmount\"] = \"depositedWithStakingAmount\";\n LiquidityPoolContract_OrderBy[\"FirstCalculatedBlockNumber\"] = \"firstCalculatedBlockNumber\";\n LiquidityPoolContract_OrderBy[\"FirstCalculatedBlockTimestamp\"] = \"firstCalculatedBlockTimestamp\";\n LiquidityPoolContract_OrderBy[\"Id\"] = \"id\";\n LiquidityPoolContract_OrderBy[\"LastCalculatedBlockNumber\"] = \"lastCalculatedBlockNumber\";\n LiquidityPoolContract_OrderBy[\"LastCalculatedBlockTimestamp\"] = \"lastCalculatedBlockTimestamp\";\n LiquidityPoolContract_OrderBy[\"LiquidityManager\"] = \"liquidityManager\";\n LiquidityPoolContract_OrderBy[\"Nfts\"] = \"nfts\";\n LiquidityPoolContract_OrderBy[\"RawApr\"] = \"rawApr\";\n LiquidityPoolContract_OrderBy[\"RawTvl\"] = \"rawTvl\";\n LiquidityPoolContract_OrderBy[\"Token\"] = \"token\";\n LiquidityPoolContract_OrderBy[\"TokenDecimals\"] = \"tokenDecimals\";\n LiquidityPoolContract_OrderBy[\"Tvl\"] = \"tvl\";\n LiquidityPoolContract_OrderBy[\"Type\"] = \"type\";\n LiquidityPoolContract_OrderBy[\"WithdrawTimeout\"] = \"withdrawTimeout\";\n LiquidityPoolContract_OrderBy[\"WithdrawnAmount\"] = \"withdrawnAmount\";\n LiquidityPoolContract_OrderBy[\"WithdrawnWithStakingAmount\"] = \"withdrawnWithStakingAmount\";\n LiquidityPoolContract_OrderBy[\"WonBetsAmount\"] = \"wonBetsAmount\";\n LiquidityPoolContract_OrderBy[\"WonBetsCount\"] = \"wonBetsCount\";\n})(LiquidityPoolContract_OrderBy || (LiquidityPoolContract_OrderBy = {}));\nvar LiquidityPoolNft_OrderBy;\n(function (LiquidityPoolNft_OrderBy) {\n LiquidityPoolNft_OrderBy[\"CreateBlockNumber\"] = \"createBlockNumber\";\n LiquidityPoolNft_OrderBy[\"CreateBlockTimestamp\"] = \"createBlockTimestamp\";\n LiquidityPoolNft_OrderBy[\"DepositedAmount\"] = \"depositedAmount\";\n LiquidityPoolNft_OrderBy[\"HistoricalOwners\"] = \"historicalOwners\";\n LiquidityPoolNft_OrderBy[\"Id\"] = \"id\";\n LiquidityPoolNft_OrderBy[\"IsFullyWithdrawn\"] = \"isFullyWithdrawn\";\n LiquidityPoolNft_OrderBy[\"LiquidityPool\"] = \"liquidityPool\";\n LiquidityPoolNft_OrderBy[\"NftId\"] = \"nftId\";\n LiquidityPoolNft_OrderBy[\"Owner\"] = \"owner\";\n LiquidityPoolNft_OrderBy[\"RawDepositedAmount\"] = \"rawDepositedAmount\";\n LiquidityPoolNft_OrderBy[\"RawWithdrawnAmount\"] = \"rawWithdrawnAmount\";\n LiquidityPoolNft_OrderBy[\"Transactions\"] = \"transactions\";\n LiquidityPoolNft_OrderBy[\"WithdrawTimeout\"] = \"withdrawTimeout\";\n LiquidityPoolNft_OrderBy[\"WithdrawnAmount\"] = \"withdrawnAmount\";\n})(LiquidityPoolNft_OrderBy || (LiquidityPoolNft_OrderBy = {}));\nvar LiquidityPoolTransactionType;\n(function (LiquidityPoolTransactionType) {\n LiquidityPoolTransactionType[\"Deposit\"] = \"Deposit\";\n LiquidityPoolTransactionType[\"Withdrawal\"] = \"Withdrawal\";\n})(LiquidityPoolTransactionType || (LiquidityPoolTransactionType = {}));\nvar LiquidityPoolTransaction_OrderBy;\n(function (LiquidityPoolTransaction_OrderBy) {\n LiquidityPoolTransaction_OrderBy[\"Account\"] = \"account\";\n LiquidityPoolTransaction_OrderBy[\"Amount\"] = \"amount\";\n LiquidityPoolTransaction_OrderBy[\"BlockNumber\"] = \"blockNumber\";\n LiquidityPoolTransaction_OrderBy[\"BlockTimestamp\"] = \"blockTimestamp\";\n LiquidityPoolTransaction_OrderBy[\"Id\"] = \"id\";\n LiquidityPoolTransaction_OrderBy[\"LiquidityPool\"] = \"liquidityPool\";\n LiquidityPoolTransaction_OrderBy[\"Nft\"] = \"nft\";\n LiquidityPoolTransaction_OrderBy[\"RawAmount\"] = \"rawAmount\";\n LiquidityPoolTransaction_OrderBy[\"TxHash\"] = \"txHash\";\n LiquidityPoolTransaction_OrderBy[\"Type\"] = \"type\";\n})(LiquidityPoolTransaction_OrderBy || (LiquidityPoolTransaction_OrderBy = {}));\nvar LiveBet_OrderBy;\n(function (LiveBet_OrderBy) {\n LiveBet_OrderBy[\"CanceledSubBetsCount\"] = \"_canceledSubBetsCount\";\n LiveBet_OrderBy[\"ConditionIds\"] = \"_conditionIds\";\n LiveBet_OrderBy[\"Conditions\"] = \"_conditions\";\n LiveBet_OrderBy[\"GamesIds\"] = \"_gamesIds\";\n LiveBet_OrderBy[\"IsFreebet\"] = \"_isFreebet\";\n LiveBet_OrderBy[\"LostSubBetsCount\"] = \"_lostSubBetsCount\";\n LiveBet_OrderBy[\"MarginsForSettle\"] = \"_marginsForSettle\";\n LiveBet_OrderBy[\"OddsDecimals\"] = \"_oddsDecimals\";\n LiveBet_OrderBy[\"SubBetsCount\"] = \"_subBetsCount\";\n LiveBet_OrderBy[\"TokenDecimals\"] = \"_tokenDecimals\";\n LiveBet_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n LiveBet_OrderBy[\"WonSubBetsCount\"] = \"_wonSubBetsCount\";\n LiveBet_OrderBy[\"Actor\"] = \"actor\";\n LiveBet_OrderBy[\"Affiliate\"] = \"affiliate\";\n LiveBet_OrderBy[\"Amount\"] = \"amount\";\n LiveBet_OrderBy[\"BetId\"] = \"betId\";\n LiveBet_OrderBy[\"Bettor\"] = \"bettor\";\n LiveBet_OrderBy[\"Cashout\"] = \"cashout\";\n LiveBet_OrderBy[\"Core\"] = \"core\";\n LiveBet_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n LiveBet_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n LiveBet_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n LiveBet_OrderBy[\"Freebet\"] = \"freebet\";\n LiveBet_OrderBy[\"Id\"] = \"id\";\n LiveBet_OrderBy[\"IsCashedOut\"] = \"isCashedOut\";\n LiveBet_OrderBy[\"IsRedeemable\"] = \"isRedeemable\";\n LiveBet_OrderBy[\"IsRedeemed\"] = \"isRedeemed\";\n LiveBet_OrderBy[\"Nonce\"] = \"nonce\";\n LiveBet_OrderBy[\"Odds\"] = \"odds\";\n LiveBet_OrderBy[\"Owner\"] = \"owner\";\n LiveBet_OrderBy[\"Payout\"] = \"payout\";\n LiveBet_OrderBy[\"PayoutLimit\"] = \"payoutLimit\";\n LiveBet_OrderBy[\"PotentialPayout\"] = \"potentialPayout\";\n LiveBet_OrderBy[\"RawAmount\"] = \"rawAmount\";\n LiveBet_OrderBy[\"RawOdds\"] = \"rawOdds\";\n LiveBet_OrderBy[\"RawPayout\"] = \"rawPayout\";\n LiveBet_OrderBy[\"RawPayoutLimit\"] = \"rawPayoutLimit\";\n LiveBet_OrderBy[\"RawPotentialPayout\"] = \"rawPotentialPayout\";\n LiveBet_OrderBy[\"RawSettledMargin\"] = \"rawSettledMargin\";\n LiveBet_OrderBy[\"RawSettledOdds\"] = \"rawSettledOdds\";\n LiveBet_OrderBy[\"RedeemedBlockNumber\"] = \"redeemedBlockNumber\";\n LiveBet_OrderBy[\"RedeemedBlockTimestamp\"] = \"redeemedBlockTimestamp\";\n LiveBet_OrderBy[\"RedeemedTxHash\"] = \"redeemedTxHash\";\n LiveBet_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n LiveBet_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n LiveBet_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n LiveBet_OrderBy[\"Result\"] = \"result\";\n LiveBet_OrderBy[\"Selections\"] = \"selections\";\n LiveBet_OrderBy[\"SettledMargin\"] = \"settledMargin\";\n LiveBet_OrderBy[\"SettledOdds\"] = \"settledOdds\";\n LiveBet_OrderBy[\"Status\"] = \"status\";\n})(LiveBet_OrderBy || (LiveBet_OrderBy = {}));\nvar LiveCondition_OrderBy;\n(function (LiveCondition_OrderBy) {\n LiveCondition_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n LiveCondition_OrderBy[\"WinningOutcomesCount\"] = \"_winningOutcomesCount\";\n LiveCondition_OrderBy[\"ConditionId\"] = \"conditionId\";\n LiveCondition_OrderBy[\"Core\"] = \"core\";\n LiveCondition_OrderBy[\"CoreAddress\"] = \"coreAddress\";\n LiveCondition_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n LiveCondition_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n LiveCondition_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n LiveCondition_OrderBy[\"GameId\"] = \"gameId\";\n LiveCondition_OrderBy[\"Hidden\"] = \"hidden\";\n LiveCondition_OrderBy[\"Id\"] = \"id\";\n LiveCondition_OrderBy[\"Outcomes\"] = \"outcomes\";\n LiveCondition_OrderBy[\"OutcomesIds\"] = \"outcomesIds\";\n LiveCondition_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n LiveCondition_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n LiveCondition_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n LiveCondition_OrderBy[\"Status\"] = \"status\";\n LiveCondition_OrderBy[\"Title\"] = \"title\";\n LiveCondition_OrderBy[\"Turnover\"] = \"turnover\";\n LiveCondition_OrderBy[\"WonOutcomeIds\"] = \"wonOutcomeIds\";\n LiveCondition_OrderBy[\"WonOutcomes\"] = \"wonOutcomes\";\n})(LiveCondition_OrderBy || (LiveCondition_OrderBy = {}));\nvar LiveOutcome_OrderBy;\n(function (LiveOutcome_OrderBy) {\n LiveOutcome_OrderBy[\"BetsEntityIds\"] = \"_betsEntityIds\";\n LiveOutcome_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n LiveOutcome_OrderBy[\"Condition\"] = \"condition\";\n LiveOutcome_OrderBy[\"Core\"] = \"core\";\n LiveOutcome_OrderBy[\"Id\"] = \"id\";\n LiveOutcome_OrderBy[\"OutcomeId\"] = \"outcomeId\";\n LiveOutcome_OrderBy[\"Result\"] = \"result\";\n LiveOutcome_OrderBy[\"Selections\"] = \"selections\";\n LiveOutcome_OrderBy[\"SortOrder\"] = \"sortOrder\";\n LiveOutcome_OrderBy[\"Title\"] = \"title\";\n})(LiveOutcome_OrderBy || (LiveOutcome_OrderBy = {}));\nvar LiveSelection_OrderBy;\n(function (LiveSelection_OrderBy) {\n LiveSelection_OrderBy[\"OddsDecimals\"] = \"_oddsDecimals\";\n LiveSelection_OrderBy[\"OutcomeId\"] = \"_outcomeId\";\n LiveSelection_OrderBy[\"Bet\"] = \"bet\";\n LiveSelection_OrderBy[\"Id\"] = \"id\";\n LiveSelection_OrderBy[\"Margin\"] = \"margin\";\n LiveSelection_OrderBy[\"Odds\"] = \"odds\";\n LiveSelection_OrderBy[\"Outcome\"] = \"outcome\";\n LiveSelection_OrderBy[\"RawMargin\"] = \"rawMargin\";\n LiveSelection_OrderBy[\"RawOdds\"] = \"rawOdds\";\n LiveSelection_OrderBy[\"Result\"] = \"result\";\n})(LiveSelection_OrderBy || (LiveSelection_OrderBy = {}));\n/** Defines the order direction, either ascending or descending */\nvar OrderDirection$1;\n(function (OrderDirection) {\n OrderDirection[\"Asc\"] = \"asc\";\n OrderDirection[\"Desc\"] = \"desc\";\n})(OrderDirection$1 || (OrderDirection$1 = {}));\nvar OutcomeResult;\n(function (OutcomeResult) {\n OutcomeResult[\"Lost\"] = \"Lost\";\n OutcomeResult[\"Won\"] = \"Won\";\n})(OutcomeResult || (OutcomeResult = {}));\nvar Outcome_OrderBy$1;\n(function (Outcome_OrderBy) {\n Outcome_OrderBy[\"BetsEntityIds\"] = \"_betsEntityIds\";\n Outcome_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Outcome_OrderBy[\"Condition\"] = \"condition\";\n Outcome_OrderBy[\"Core\"] = \"core\";\n Outcome_OrderBy[\"CurrentOdds\"] = \"currentOdds\";\n Outcome_OrderBy[\"Fund\"] = \"fund\";\n Outcome_OrderBy[\"Id\"] = \"id\";\n Outcome_OrderBy[\"OutcomeId\"] = \"outcomeId\";\n Outcome_OrderBy[\"RawCurrentOdds\"] = \"rawCurrentOdds\";\n Outcome_OrderBy[\"Result\"] = \"result\";\n Outcome_OrderBy[\"Selections\"] = \"selections\";\n Outcome_OrderBy[\"SortOrder\"] = \"sortOrder\";\n Outcome_OrderBy[\"Title\"] = \"title\";\n})(Outcome_OrderBy$1 || (Outcome_OrderBy$1 = {}));\nvar OutcomesKeyConditionRelation_OrderBy;\n(function (OutcomesKeyConditionRelation_OrderBy) {\n OutcomesKeyConditionRelation_OrderBy[\"ConditionEntityId\"] = \"conditionEntityId\";\n OutcomesKeyConditionRelation_OrderBy[\"Id\"] = \"id\";\n})(OutcomesKeyConditionRelation_OrderBy || (OutcomesKeyConditionRelation_OrderBy = {}));\nvar Participant_OrderBy$1;\n(function (Participant_OrderBy) {\n Participant_OrderBy[\"Game\"] = \"game\";\n Participant_OrderBy[\"Id\"] = \"id\";\n Participant_OrderBy[\"Image\"] = \"image\";\n Participant_OrderBy[\"Name\"] = \"name\";\n Participant_OrderBy[\"SortOrder\"] = \"sortOrder\";\n})(Participant_OrderBy$1 || (Participant_OrderBy$1 = {}));\nvar SelectionResult$1;\n(function (SelectionResult) {\n SelectionResult[\"Lost\"] = \"Lost\";\n SelectionResult[\"Won\"] = \"Won\";\n})(SelectionResult$1 || (SelectionResult$1 = {}));\nvar Selection_OrderBy;\n(function (Selection_OrderBy) {\n Selection_OrderBy[\"OddsDecimals\"] = \"_oddsDecimals\";\n Selection_OrderBy[\"OutcomeId\"] = \"_outcomeId\";\n Selection_OrderBy[\"Bet\"] = \"bet\";\n Selection_OrderBy[\"Id\"] = \"id\";\n Selection_OrderBy[\"Margin\"] = \"margin\";\n Selection_OrderBy[\"Odds\"] = \"odds\";\n Selection_OrderBy[\"Outcome\"] = \"outcome\";\n Selection_OrderBy[\"RawMargin\"] = \"rawMargin\";\n Selection_OrderBy[\"RawOdds\"] = \"rawOdds\";\n Selection_OrderBy[\"Result\"] = \"result\";\n})(Selection_OrderBy || (Selection_OrderBy = {}));\nvar SportHub_OrderBy$1;\n(function (SportHub_OrderBy) {\n SportHub_OrderBy[\"Id\"] = \"id\";\n SportHub_OrderBy[\"Name\"] = \"name\";\n SportHub_OrderBy[\"Slug\"] = \"slug\";\n SportHub_OrderBy[\"Sports\"] = \"sports\";\n})(SportHub_OrderBy$1 || (SportHub_OrderBy$1 = {}));\nvar Sport_OrderBy$1;\n(function (Sport_OrderBy) {\n Sport_OrderBy[\"Countries\"] = \"countries\";\n Sport_OrderBy[\"Games\"] = \"games\";\n Sport_OrderBy[\"Id\"] = \"id\";\n Sport_OrderBy[\"Name\"] = \"name\";\n Sport_OrderBy[\"Slug\"] = \"slug\";\n Sport_OrderBy[\"SportId\"] = \"sportId\";\n Sport_OrderBy[\"Sporthub\"] = \"sporthub\";\n})(Sport_OrderBy$1 || (Sport_OrderBy$1 = {}));\nvar _SubgraphErrorPolicy_$1;\n(function (_SubgraphErrorPolicy_) {\n /** Data will be returned even if the subgraph has indexing errors */\n _SubgraphErrorPolicy_[\"Allow\"] = \"allow\";\n /** If the subgraph has indexing errors, data will be omitted. The default. */\n _SubgraphErrorPolicy_[\"Deny\"] = \"deny\";\n})(_SubgraphErrorPolicy_$1 || (_SubgraphErrorPolicy_$1 = {}));var Aggregation_Interval;\n(function (Aggregation_Interval) {\n Aggregation_Interval[\"Day\"] = \"day\";\n Aggregation_Interval[\"Hour\"] = \"hour\";\n})(Aggregation_Interval || (Aggregation_Interval = {}));\nvar ConditionStatus;\n(function (ConditionStatus) {\n ConditionStatus[\"Canceled\"] = \"Canceled\";\n ConditionStatus[\"Created\"] = \"Created\";\n ConditionStatus[\"Paused\"] = \"Paused\";\n ConditionStatus[\"Resolved\"] = \"Resolved\";\n})(ConditionStatus || (ConditionStatus = {}));\nvar Condition_OrderBy;\n(function (Condition_OrderBy) {\n Condition_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Condition_OrderBy[\"WinningOutcomesCount\"] = \"_winningOutcomesCount\";\n Condition_OrderBy[\"ConditionId\"] = \"conditionId\";\n Condition_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Condition_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Condition_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Condition_OrderBy[\"Game\"] = \"game\";\n Condition_OrderBy[\"Id\"] = \"id\";\n Condition_OrderBy[\"InternalStartsAt\"] = \"internalStartsAt\";\n Condition_OrderBy[\"Outcomes\"] = \"outcomes\";\n Condition_OrderBy[\"OutcomesIds\"] = \"outcomesIds\";\n Condition_OrderBy[\"Provider\"] = \"provider\";\n Condition_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n Condition_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n Condition_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n Condition_OrderBy[\"Status\"] = \"status\";\n Condition_OrderBy[\"Title\"] = \"title\";\n Condition_OrderBy[\"Turnover\"] = \"turnover\";\n Condition_OrderBy[\"WonOutcomeIds\"] = \"wonOutcomeIds\";\n Condition_OrderBy[\"WonOutcomes\"] = \"wonOutcomes\";\n})(Condition_OrderBy || (Condition_OrderBy = {}));\nvar Country_OrderBy;\n(function (Country_OrderBy) {\n Country_OrderBy[\"ActiveLeaguesEntityIds\"] = \"activeLeaguesEntityIds\";\n Country_OrderBy[\"HasActiveLeagues\"] = \"hasActiveLeagues\";\n Country_OrderBy[\"Id\"] = \"id\";\n Country_OrderBy[\"Leagues\"] = \"leagues\";\n Country_OrderBy[\"Name\"] = \"name\";\n Country_OrderBy[\"Slug\"] = \"slug\";\n Country_OrderBy[\"Sport\"] = \"sport\";\n Country_OrderBy[\"Turnover\"] = \"turnover\";\n})(Country_OrderBy || (Country_OrderBy = {}));\nvar EventName;\n(function (EventName) {\n EventName[\"ConditionCreated\"] = \"ConditionCreated\";\n EventName[\"ConditionResolved\"] = \"ConditionResolved\";\n EventName[\"ConditionStopped\"] = \"ConditionStopped\";\n EventName[\"GameCanceled\"] = \"GameCanceled\";\n EventName[\"GameUpdated\"] = \"GameUpdated\";\n EventName[\"NewGame\"] = \"NewGame\";\n})(EventName || (EventName = {}));\nvar Event_OrderBy;\n(function (Event_OrderBy) {\n Event_OrderBy[\"BlockNumber\"] = \"blockNumber\";\n Event_OrderBy[\"BlockTimestamp\"] = \"blockTimestamp\";\n Event_OrderBy[\"ConditionId\"] = \"conditionId\";\n Event_OrderBy[\"ContractAddress\"] = \"contractAddress\";\n Event_OrderBy[\"GameId\"] = \"gameId\";\n Event_OrderBy[\"GasPrice\"] = \"gasPrice\";\n Event_OrderBy[\"GasUsed\"] = \"gasUsed\";\n Event_OrderBy[\"Id\"] = \"id\";\n Event_OrderBy[\"LogIndex\"] = \"logIndex\";\n Event_OrderBy[\"Name\"] = \"name\";\n Event_OrderBy[\"SortOrder\"] = \"sortOrder\";\n Event_OrderBy[\"TransactionIndex\"] = \"transactionIndex\";\n Event_OrderBy[\"TxHash\"] = \"txHash\";\n})(Event_OrderBy || (Event_OrderBy = {}));\nvar GameStatus$1;\n(function (GameStatus) {\n GameStatus[\"Canceled\"] = \"Canceled\";\n GameStatus[\"Created\"] = \"Created\";\n GameStatus[\"Finished\"] = \"Finished\";\n GameStatus[\"Paused\"] = \"Paused\";\n GameStatus[\"Resolved\"] = \"Resolved\";\n})(GameStatus$1 || (GameStatus$1 = {}));\nvar Game_OrderBy;\n(function (Game_OrderBy) {\n Game_OrderBy[\"ActiveConditionsEntityIds\"] = \"_activeConditionsEntityIds\";\n Game_OrderBy[\"CanceledConditionsEntityIds\"] = \"_canceledConditionsEntityIds\";\n Game_OrderBy[\"ResolvedConditionsEntityIds\"] = \"_resolvedConditionsEntityIds\";\n Game_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Game_OrderBy[\"Conditions\"] = \"conditions\";\n Game_OrderBy[\"CreatedBlockNumber\"] = \"createdBlockNumber\";\n Game_OrderBy[\"CreatedBlockTimestamp\"] = \"createdBlockTimestamp\";\n Game_OrderBy[\"CreatedTxHash\"] = \"createdTxHash\";\n Game_OrderBy[\"FinishedBlockNumber\"] = \"finishedBlockNumber\";\n Game_OrderBy[\"FinishedBlockTimestamp\"] = \"finishedBlockTimestamp\";\n Game_OrderBy[\"FinishedTxHash\"] = \"finishedTxHash\";\n Game_OrderBy[\"GameId\"] = \"gameId\";\n Game_OrderBy[\"HasActiveConditions\"] = \"hasActiveConditions\";\n Game_OrderBy[\"Id\"] = \"id\";\n Game_OrderBy[\"League\"] = \"league\";\n Game_OrderBy[\"Participants\"] = \"participants\";\n Game_OrderBy[\"Provider\"] = \"provider\";\n Game_OrderBy[\"ResolvedBlockNumber\"] = \"resolvedBlockNumber\";\n Game_OrderBy[\"ResolvedBlockTimestamp\"] = \"resolvedBlockTimestamp\";\n Game_OrderBy[\"ResolvedTxHash\"] = \"resolvedTxHash\";\n Game_OrderBy[\"ShiftedBlockNumber\"] = \"shiftedBlockNumber\";\n Game_OrderBy[\"ShiftedBlockTimestamp\"] = \"shiftedBlockTimestamp\";\n Game_OrderBy[\"ShiftedTxHash\"] = \"shiftedTxHash\";\n Game_OrderBy[\"Slug\"] = \"slug\";\n Game_OrderBy[\"Sport\"] = \"sport\";\n Game_OrderBy[\"StartsAt\"] = \"startsAt\";\n Game_OrderBy[\"Status\"] = \"status\";\n Game_OrderBy[\"Title\"] = \"title\";\n Game_OrderBy[\"Turnover\"] = \"turnover\";\n})(Game_OrderBy || (Game_OrderBy = {}));\nvar League_OrderBy;\n(function (League_OrderBy) {\n League_OrderBy[\"ActiveGamesEntityIds\"] = \"activeGamesEntityIds\";\n League_OrderBy[\"Country\"] = \"country\";\n League_OrderBy[\"Games\"] = \"games\";\n League_OrderBy[\"HasActiveGames\"] = \"hasActiveGames\";\n League_OrderBy[\"Id\"] = \"id\";\n League_OrderBy[\"Name\"] = \"name\";\n League_OrderBy[\"Slug\"] = \"slug\";\n League_OrderBy[\"Turnover\"] = \"turnover\";\n})(League_OrderBy || (League_OrderBy = {}));\n/** Defines the order direction, either ascending or descending */\nvar OrderDirection;\n(function (OrderDirection) {\n OrderDirection[\"Asc\"] = \"asc\";\n OrderDirection[\"Desc\"] = \"desc\";\n})(OrderDirection || (OrderDirection = {}));\nvar Outcome_OrderBy;\n(function (Outcome_OrderBy) {\n Outcome_OrderBy[\"UpdatedAt\"] = \"_updatedAt\";\n Outcome_OrderBy[\"Condition\"] = \"condition\";\n Outcome_OrderBy[\"Id\"] = \"id\";\n Outcome_OrderBy[\"OutcomeId\"] = \"outcomeId\";\n Outcome_OrderBy[\"Result\"] = \"result\";\n Outcome_OrderBy[\"SortOrder\"] = \"sortOrder\";\n Outcome_OrderBy[\"Title\"] = \"title\";\n})(Outcome_OrderBy || (Outcome_OrderBy = {}));\nvar Participant_OrderBy;\n(function (Participant_OrderBy) {\n Participant_OrderBy[\"Game\"] = \"game\";\n Participant_OrderBy[\"Id\"] = \"id\";\n Participant_OrderBy[\"Image\"] = \"image\";\n Participant_OrderBy[\"Name\"] = \"name\";\n Participant_OrderBy[\"SortOrder\"] = \"sortOrder\";\n})(Participant_OrderBy || (Participant_OrderBy = {}));\nvar SelectionResult;\n(function (SelectionResult) {\n SelectionResult[\"Lost\"] = \"Lost\";\n SelectionResult[\"Won\"] = \"Won\";\n})(SelectionResult || (SelectionResult = {}));\nvar SportHub_OrderBy;\n(function (SportHub_OrderBy) {\n SportHub_OrderBy[\"Id\"] = \"id\";\n SportHub_OrderBy[\"Name\"] = \"name\";\n SportHub_OrderBy[\"Slug\"] = \"slug\";\n SportHub_OrderBy[\"Sports\"] = \"sports\";\n})(SportHub_OrderBy || (SportHub_OrderBy = {}));\nvar Sport_OrderBy;\n(function (Sport_OrderBy) {\n Sport_OrderBy[\"Countries\"] = \"countries\";\n Sport_OrderBy[\"Games\"] = \"games\";\n Sport_OrderBy[\"Id\"] = \"id\";\n Sport_OrderBy[\"Name\"] = \"name\";\n Sport_OrderBy[\"Slug\"] = \"slug\";\n Sport_OrderBy[\"SportId\"] = \"sportId\";\n Sport_OrderBy[\"Sporthub\"] = \"sporthub\";\n})(Sport_OrderBy || (Sport_OrderBy = {}));\nvar _SubgraphErrorPolicy_;\n(function (_SubgraphErrorPolicy_) {\n /** Data will be returned even if the subgraph has indexing errors */\n _SubgraphErrorPolicy_[\"Allow\"] = \"allow\";\n /** If the subgraph has indexing errors, data will be omitted. The default. */\n _SubgraphErrorPolicy_[\"Deny\"] = \"deny\";\n})(_SubgraphErrorPolicy_ || (_SubgraphErrorPolicy_ = {}));const CONDITION_PROVIDER_LENGTH = 3;\nconst getProviderFromId = (id) => {\n return +(id.slice(1, 1 + CONDITION_PROVIDER_LENGTH));\n};const calcMindOdds = (props) => {\n const totalOdds = typeof props.odds === 'number' ? props.odds : props.odds.reduce((acc, odds) => acc * +odds, 1);\n const minOdds = 1 + (totalOdds - 1) * (100 - props.slippage) / 100;\n return minOdds.toFixed(ODDS_DECIMALS);\n};const formatToFixed = (value, digitsCount) => {\n value = String(value);\n if (!/\\./.test(value)) {\n return +value;\n }\n const [int, digits] = value.split('.');\n return +`${int}.${digits.substr(0, digitsCount)}`;\n};const ratio = (self, other) => (self > other ? self / other : other / self);\nconst sigmoid = (value) => value / (value + 1);\nconst getOddsFromProbabilities = (probabilities, margin, winningOutcomesCount = 1) => {\n const precision = 0.0001;\n const maxIterations = 10;\n const odds = {};\n const spreads = Object.keys(probabilities).reduce((acc, outcomeId) => {\n acc[+outcomeId] = (1 - probabilities[+outcomeId]) * margin;\n return acc;\n }, {});\n let error = margin;\n for (let iteration = 0; iteration < maxIterations; iteration++) {\n let oddsSpread;\n {\n let spread = 0;\n Object.keys(probabilities).forEach(outcomeId => {\n const price = (1 - spreads[+outcomeId]) / probabilities[+outcomeId];\n odds[+outcomeId] = price;\n spread += 1 / price;\n });\n oddsSpread = 1 - winningOutcomesCount / spread;\n }\n if (ratio(margin, oddsSpread) - 1 < precision) {\n return odds;\n }\n if (margin <= oddsSpread) {\n throw new Error('margin <= oddsSpread');\n }\n const newError = margin - oddsSpread;\n if (newError === error) {\n if (margin / oddsSpread - 1 >= precision) {\n throw new Error('margin / oddsSpread - 1 >= precision');\n }\n return odds;\n }\n error = newError;\n Object.keys(spreads).forEach(outcomeId => {\n spreads[+outcomeId] +=\n (1 - spreads[+outcomeId] - probabilities[+outcomeId]) *\n sigmoid((error * spreads[+outcomeId]) / (1 - 1 / odds[+outcomeId]) / (1 - margin) / oddsSpread);\n });\n }\n throw new Error(`Can't calculate odds from given params: ${JSON.stringify(probabilities)} / ${margin} / ${winningOutcomesCount}`);\n};\nconst calcLiveOdds = ({ selection, betAmount, oddsData }) => {\n const { outcomeId: _outcomeId } = selection;\n const { margin, reinforcement, winningOutcomesCount, outcomes } = oddsData;\n const outcomeId = Number(_outcomeId);\n let allFunds = 0;\n const funds = Object.keys(outcomes).reduce((acc, outcomeKey) => {\n const { clearOdds } = outcomes[+outcomeKey];\n const probability = 1 / clearOdds;\n let fund = reinforcement * probability;\n if (outcomeId === +outcomeKey) {\n fund += Number(betAmount || '');\n }\n allFunds += fund;\n acc[+outcomeKey] = fund;\n return acc;\n }, {});\n const probabilities = Object.keys(funds).reduce((acc, outcomeKey) => {\n const fund = funds[+outcomeKey];\n acc[+outcomeKey] = fund / allFunds;\n return acc;\n }, {});\n const odds = getOddsFromProbabilities(probabilities, margin, winningOutcomesCount);\n if (odds[outcomeId] > outcomes[outcomeId].odds) {\n return outcomes[outcomeId].odds;\n }\n return formatToFixed(odds[outcomeId], 2);\n};\nconst calcPrematchOdds = async (props) => {\n const { config, selections, betAmount, chainId, batchBetAmounts } = props;\n const { betToken, contracts } = chainsData[chainId];\n const isBatch = Boolean(Object.keys(batchBetAmounts || {}).length);\n if (selections.length === 1 || isBatch) {\n let odds = {};\n const contracts = selections.map(({ conditionId, outcomeId, coreAddress }) => {\n const _betAmount = isBatch ? batchBetAmounts?.[`${conditionId}-${outcomeId}`] : betAmount;\n const rawAmount = parseUnits(_betAmount || '', betToken.decimals);\n return {\n abi: prematchCoreAbi,\n address: coreAddress,\n chainId,\n functionName: 'calcOdds',\n args: [BigInt(conditionId), rawAmount, BigInt(outcomeId)],\n };\n });\n try {\n const response = await readContracts(config, {\n contracts,\n });\n odds = selections.reduce((acc, { conditionId, outcomeId }, index) => {\n const key = `${conditionId}-${outcomeId}`;\n const result = response[index]?.result;\n acc[key] = formatToFixed(formatUnits(typeof result === 'bigint' ? result : 0n, ODDS_DECIMALS), 5);\n return acc;\n }, {});\n }\n catch { }\n return odds;\n }\n if (selections.length > 1) {\n const rawAmount = parseUnits(betAmount || '', betToken.decimals);\n const expressAddress = contracts.prematchComboCore.address;\n const subBets = selections.map(({ conditionId, outcomeId }) => ({\n conditionId: BigInt(conditionId),\n outcomeId: BigInt(outcomeId),\n }));\n try {\n const [conditionOdds] = await readContract(config, {\n abi: prematchComboCoreAbi,\n address: expressAddress,\n chainId,\n functionName: 'calcOdds',\n args: [subBets, rawAmount],\n });\n return selections.reduce((acc, { conditionId, outcomeId }, index) => {\n const key = `${conditionId}-${outcomeId}`;\n acc[key] = formatToFixed(formatUnits(conditionOdds[index], ODDS_DECIMALS), 5);\n return acc;\n }, {});\n }\n catch { }\n }\n return {};\n};const getIsPendingResolution = (startDate) => {\n const now = Date.now();\n const isStarted = startDate < now;\n const pendingResolutionDate = startDate + 6000000;\n return isStarted && pendingResolutionDate < now;\n};\nvar GameStatus;\n(function (GameStatus) {\n GameStatus[GameStatus[\"Created\"] = 0] = \"Created\";\n GameStatus[GameStatus[\"Live\"] = 1] = \"Live\";\n GameStatus[GameStatus[\"Resolved\"] = 2] = \"Resolved\";\n GameStatus[GameStatus[\"Canceled\"] = 3] = \"Canceled\";\n GameStatus[GameStatus[\"Paused\"] = 4] = \"Paused\";\n GameStatus[GameStatus[\"PendingResolution\"] = 5] = \"PendingResolution\";\n})(GameStatus || (GameStatus = {}));\nconst getGameStatus = (props) => {\n const { graphStatus, startsAt, isGameInLive } = props;\n const startDate = startsAt * 1000;\n const isStarted = startDate < Date.now();\n // we use LiveGameStatus enum for conditions because it contains PrematchGameStatus\n if (graphStatus === GameStatus$1.Canceled) {\n return GameStatus.Canceled;\n }\n if (graphStatus === GameStatus$1.Paused) {\n return GameStatus.Paused;\n }\n if (graphStatus === GameStatus$1.Resolved) {\n return GameStatus.Resolved;\n }\n if (graphStatus === GameStatus$1.Finished) {\n return GameStatus.PendingResolution;\n }\n if (isStarted) {\n if (!isGameInLive && getIsPendingResolution(startDate)) {\n return GameStatus.PendingResolution;\n }\n return GameStatus.Live;\n }\n return GameStatus.Created;\n};var BetStatus;\n(function (BetStatus) {\n BetStatus[BetStatus[\"Accepted\"] = 0] = \"Accepted\";\n BetStatus[BetStatus[\"Live\"] = 1] = \"Live\";\n BetStatus[BetStatus[\"PendingResolution\"] = 2] = \"PendingResolution\";\n BetStatus[BetStatus[\"Resolved\"] = 3] = \"Resolved\";\n BetStatus[BetStatus[\"Canceled\"] = 4] = \"Canceled\";\n})(BetStatus || (BetStatus = {}));\nconst getExpressIsLive = (games) => {\n const firstStartDate = Math.min(...games.map(({ startsAt }) => +startsAt));\n return +firstStartDate * 1000 < Date.now();\n};\nconst getExpressIsPendingResolution = (games) => {\n const lastStartDate = Math.max(...games.map(({ startsAt }) => +startsAt));\n const lastGames = games.filter(({ startsAt }) => +startsAt === lastStartDate);\n return lastGames.some(({ status, startsAt }) => {\n return getGameStatus({ graphStatus: status, startsAt: +startsAt, isGameInLive: false }) === GameStatus.PendingResolution;\n });\n};\nconst getBetStatus = (props) => {\n const { games, graphStatus, isLiveBet } = props;\n if (graphStatus === BetStatus$1.Canceled) {\n return BetStatus.Canceled;\n }\n if (graphStatus === BetStatus$1.Resolved) {\n return BetStatus.Resolved;\n }\n const isExpress = games.length > 1;\n const isPendingResolution = isExpress\n ? getExpressIsPendingResolution(games)\n : getGameStatus({ graphStatus: games[0].status, startsAt: +games[0].startsAt, isGameInLive: isLiveBet }) === GameStatus.PendingResolution;\n if (isPendingResolution) {\n return BetStatus.PendingResolution;\n }\n const isLive = isExpress ? getExpressIsLive(games) : (getGameStatus({ graphStatus: games[0].status, startsAt: +games[0].startsAt, isGameInLive: isLiveBet }) === GameStatus.Live);\n if (isLive) {\n return BetStatus.Live;\n }\n return BetStatus.Accepted;\n};const getLiveBetFee = async (chainId) => {\n const api = getApiEndpoint(chainId);\n const environment = environments[chainId];\n const response = await fetch(`${api}/orders/gas?environment=${environment}`);\n const data = await response.json();\n return data;\n};const getPrematchBetDataBytes = (selections) => {\n if (selections.length > 1) {\n const tuple = selections.map(({ conditionId, outcomeId }) => [\n BigInt(conditionId),\n BigInt(outcomeId),\n ]);\n return encodeAbiParameters(parseAbiParameters('(uint256, uint64)[]'), [\n tuple,\n ]);\n }\n const { conditionId, outcomeId } = selections[0];\n return encodeAbiParameters(parseAbiParameters('uint256, uint64'), [\n BigInt(conditionId),\n BigInt(outcomeId),\n ]);\n};const groupByConditionId = (data) => {\n return data.reduce((acc, item) => {\n const { conditionId } = item;\n const key = String(conditionId);\n if (!acc[key]) {\n acc[key] = [];\n }\n acc[key].push(item);\n return acc;\n }, {});\n};const groupConditionsByMarket = (conditions) => {\n const outcomesByMarkets = {};\n const result = {};\n const sportId = conditions[0].game.sport.sportId;\n conditions.forEach((condition) => {\n const { conditionId, outcomes: rawOutcomes, status, game: { gameId }, wonOutcomeIds } = condition;\n const coreAddress = condition.core?.address || liveHostAddress;\n const lpAddress = condition.core?.liquidityPool?.address || '';\n const isExpressForbidden = condition.isExpressForbidden ?? true;\n const customMarketName = condition.title;\n const margin = condition.margin;\n rawOutcomes.forEach((rawOutcome) => {\n const { outcomeId } = rawOutcome;\n const odds = rawOutcome.odds;\n const customSelectionName = rawOutcome.title;\n const betTypeOdd = dictionaries.outcomes[outcomeId];\n if (!betTypeOdd) {\n console.warn(`betTypeOdd not found for \"outcomeId: ${outcomeId}\"`);\n return;\n }\n const marketKey = getMarketKey(outcomeId);\n const marketName = customMarketName && customMarketName !== 'null' ? customMarketName : getMarketName({ outcomeId });\n const selectionName = customSelectionName && customSelectionName !== 'null' ? customSelectionName : getSelectionName({ outcomeId, withPoint: true });\n const marketDescription = getMarketDescription({ outcomeId });\n const outcome = {\n coreAddress: coreAddress,\n lpAddress: lpAddress,\n conditionId,\n outcomeId,\n selectionName,\n status,\n gameId,\n isExpressForbidden,\n margin: Boolean(margin) ? formatUnits(BigInt(margin), MARGIN_DECIMALS) : undefined,\n };\n if (Array.isArray(wonOutcomeIds)) {\n outcome.isWon = wonOutcomeIds.includes(outcomeId);\n }\n if (odds) {\n outcome.odds = +odds;\n }\n if (!outcomesByMarkets[marketKey]) {\n outcomesByMarkets[marketKey] = [];\n result[marketKey] = {\n name: marketName,\n marketKey,\n description: marketDescription,\n outcomeRows: [],\n };\n }\n outcomesByMarkets[marketKey].push(outcome);\n });\n });\n // markets with different conditionIds\n const marketsWithDifferentConditionIds = ['1', '2'];\n // sort by outcomeId and group by conditionId\n Object.keys(outcomesByMarkets).forEach((marketKey) => {\n const marketId = marketKey.split('-')[0];\n // get the conditions related to the market\n const outcomes = outcomesByMarkets[marketKey];\n const validSelectionsByMarketId = {\n '1': [1, 2, 3],\n '2': [4, 5, 6],\n };\n const validSelections = validSelectionsByMarketId[marketId];\n if (validSelections?.length) {\n const outcomesSelections = outcomes.map((outcome) => (dictionaries.outcomes[String(outcome.outcomeId)].selectionId));\n const isValid = validSelections.every(selection => outcomesSelections.includes(selection));\n if (!isValid) {\n delete result[marketKey];\n return;\n }\n }\n // sort the conditions by selectionId\n outcomes.sort((a, b) => {\n const { outcomes: dictionaryOutcomes } = dictionaries;\n const left = dictionaryOutcomes[String(a.outcomeId)].selectionId;\n const right = dictionaryOutcomes[String(b.outcomeId)].selectionId;\n return left - right;\n });\n // these markets have few outcomes and not requires additional actions\n if (marketsWithDifferentConditionIds.includes(marketId)) {\n result[marketKey].outcomeRows = [outcomes];\n }\n // others need to be grouped by conditionId to allow draw outcomes in rows in UI, e.g.\n //\n // Team 1 - Total Goals:\n // Over (0.5) Under (0.5)\n // Over (1.5) Under (1.5)\n //\n else {\n const conditionsByConditionId = groupByConditionId(outcomes);\n result[marketKey].outcomeRows = Object.values(conditionsByConditionId).sort((a, b) => {\n const { points, outcomes: dictionaryOutcomes } = dictionaries;\n /*\n we should always sort by param in first outcome\n \n Handicap\n Team 1 (-2.5) Team 2 (2.5)\n Team 1 (-1.5) Team 2 (1.5)\n \n Total Goals\n Over (1.5) Under (1.5)\n Over (2.5) Under (2.5)\n */\n const aPointId = dictionaryOutcomes[String(a[0].outcomeId)].pointsId;\n const bPointId = dictionaryOutcomes[String(b[0].outcomeId)].pointsId;\n const aFirstOutcome = +points[aPointId];\n const bFirstOutcome = +points[bPointId];\n return aFirstOutcome - bFirstOutcome;\n });\n }\n });\n const markets = Object.values(result);\n const orderedMarketKeys = dictionaries.marketOrders?.[sportId];\n if (!orderedMarketKeys) {\n return markets;\n }\n return markets.sort((a, b) => {\n const prevMarketIndex = orderedMarketKeys.indexOf(a.marketKey);\n const nextMarketIndex = orderedMarketKeys.indexOf(b.marketKey);\n if (prevMarketIndex >= 0 && nextMarketIndex >= 0) {\n return prevMarketIndex - nextMarketIndex;\n }\n if (prevMarketIndex < 0 && nextMarketIndex >= 0) {\n return 1;\n }\n if (prevMarketIndex >= 0 && nextMarketIndex < 0) {\n return -1;\n }\n return 0;\n });\n};var FreeBetStatus;\n(function (FreeBetStatus) {\n FreeBetStatus[\"New\"] = \"New\";\n FreeBetStatus[\"Claimed\"] = \"Claimed\";\n FreeBetStatus[\"Redeemed\"] = \"Redeemed\";\n FreeBetStatus[\"Canceled\"] = \"Canceled\";\n FreeBetStatus[\"Reissued\"] = \"Reissued\";\n FreeBetStatus[\"Withdrawn\"] = \"Withdrawn\";\n})(FreeBetStatus || (FreeBetStatus = {}));\nconst getFreeBets = async ({ chainId, account, affiliate }) => {\n const api = getApiEndpoint(chainId);\n const params = new URLSearchParams({\n owner: account.toLowerCase(),\n affiliate: affiliate,\n });\n const response = await fetch(`${api}/freebets/list?${params}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getLiveBetTypedData = ({ account, chainId, bet }) => {\n const { contracts } = chainsData[chainId];\n if (!contracts.liveCore) {\n throw new Error('provided chainId is not supported for live bet');\n }\n const EIP712Domain = {\n name: LIVE_TYPED_DATA_DOMAIN_NAME,\n version: LIVE_TYPED_DATA_DOMAIN_VERSION,\n chainId,\n verifyingContract: contracts.liveCore.address,\n };\n return {\n account: account,\n domain: EIP712Domain,\n primaryType: 'ClientBetData',\n types: LIVE_BET_DATA_TYPES,\n message: {\n attention: bet.attention,\n affiliate: bet.affiliate,\n core: bet.core,\n amount: BigInt(bet.amount),\n nonce: BigInt(bet.nonce),\n conditionId: BigInt(bet.conditionId),\n outcomeId: BigInt(bet.outcomeId),\n minOdds: BigInt(bet.minOdds),\n expiresAt: BigInt(bet.expiresAt),\n chainId: BigInt(bet.chainId),\n relayerFeeAmount: BigInt(bet.relayerFeeAmount),\n },\n };\n};var LiveBetState;\n(function (LiveBetState) {\n LiveBetState[\"Created\"] = \"Created\";\n LiveBetState[\"Pending\"] = \"Pending\";\n LiveBetState[\"Sent\"] = \"Sent\";\n LiveBetState[\"Accepted\"] = \"Accepted\";\n LiveBetState[\"Rejected\"] = \"Rejected\";\n})(LiveBetState || (LiveBetState = {}));\nconst createLiveBet = async (props) => {\n const { chainId, account, bet, signature } = props;\n const { api, environment, contracts } = chainsData[chainId];\n if (!contracts.liveCore) {\n throw new Error('provided chainId is not supported for live bet');\n }\n const order = { bet };\n const signedBet = {\n environment,\n bettor: account.toLowerCase(),\n data: order,\n bettorSignature: signature,\n };\n const response = await fetch(`${api}/orders`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(signedBet),\n });\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getLiveBet = async ({ chainId, orderId }) => {\n const { api, contracts } = chainsData[chainId];\n if (!contracts.liveCore) {\n throw new Error('provided chainId is not supported for live bet');\n }\n const response = await fetch(`${api}/orders/${orderId}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};var WaveLevelName;\n(function (WaveLevelName) {\n WaveLevelName[\"Grey\"] = \"Grey\";\n WaveLevelName[\"Mist\"] = \"Mist\";\n WaveLevelName[\"Sky\"] = \"Sky\";\n WaveLevelName[\"Blue\"] = \"Blue\";\n WaveLevelName[\"Ultramarine\"] = \"Ultramarine\";\n WaveLevelName[\"Bright\"] = \"Bright\";\n WaveLevelName[\"Brilliant\"] = \"Brilliant\";\n WaveLevelName[\"Royal\"] = \"Royal\";\n})(WaveLevelName || (WaveLevelName = {}));\nconst getWaveLevels = async ({ waveId, chainId } = { waveId: 'active', chainId: polygon.id }) => {\n const api = getApiEndpoint(chainId);\n const response = await fetch(`${api}/waves/${waveId}/levels`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return [...data].sort((a, b) => a.level - b.level);\n};const getWaveStats = async ({ account, waveId = 'active', chainId = polygon.id }) => {\n const api = getApiEndpoint(chainId);\n const response = await fetch(`${api}/waves/${waveId}/participants/${account?.toLowerCase()}/stats`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getWavePeriods = async ({ waveId, chainId } = { waveId: 'active', chainId: polygon.id }) => {\n const api = getApiEndpoint(chainId);\n const response = await fetch(`${api}/waves/${waveId}/periods`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getWaveLeaderBoard = async (props = { waveId: 'active', chainId: polygon.id }) => {\n const { waveId, account, startsAt, chainId } = props;\n const api = getApiEndpoint(chainId);\n const baseUrl = `${api}/waves/${waveId}`;\n let endpoint = startsAt\n ? `${baseUrl}/periods/${startsAt}/leaderboard`\n : `${baseUrl}/leaderboard`;\n if (account) {\n endpoint += `?address=${account?.toLowerCase()}`;\n }\n const response = await fetch(endpoint);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n if (startsAt) {\n return data.map((item) => {\n const { address, points, position, expectedPositionMultiplier } = item;\n const rawPoints = parseUnits(points, 12);\n const rawMultipliedPoints = parseUnits(points, 12) * parseUnits(expectedPositionMultiplier, 12);\n const bonusPoints = formatUnits(rawMultipliedPoints - rawPoints, 24);\n const totalMultipliedPoints = formatUnits(rawMultipliedPoints, 24);\n return {\n position,\n address,\n points,\n bonusPoints,\n totalMultipliedPoints,\n bonusMultiplier: +expectedPositionMultiplier,\n level: null,\n levelDescription: null,\n };\n });\n }\n return data.map((item) => {\n const { address, points, position, level, levelDescription, multipliedPoints: totalMultipliedPoints } = item;\n return {\n position,\n address,\n points,\n bonusPoints: null,\n bonusMultiplier: null,\n totalMultipliedPoints,\n level,\n levelDescription,\n };\n });\n};const activateWave = async ({ account, waveId = 'active', chainId = polygon.id }) => {\n const api = getApiEndpoint(chainId);\n const response = await fetch(`${api}/waves/${waveId}/participants/${account?.toLowerCase()}/activate`);\n await response.json();\n};const deBridgeChainIdByOriginalChainId = {\n 245022934: 100000001, // Neon\n 100: 100000002, // Gnosis\n 1890: 100000003, // LightLink\n 1088: 100000004, // Metis\n 7171: 100000005, // Bitrock\n};\nconst getDeBridgeSupportedChains = async () => {\n const response = await fetch(`${deBridgeUrl}/supported-chains-info`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const { chains } = await response.json();\n return chains;\n};const DE_BRIDGE_DEFAULT_DEADLINE = 300; // 5 min\nconst createDeBridgeBet = async (props) => {\n const { account, betAmount, dstChainId, selections, totalOdds, slippage, srcChainId, srcChainTokenIn, affiliate, referralCode, deadline, } = props;\n const { betToken, contracts } = chainsData[dstChainId];\n const fixedAmount = parseFloat(betAmount).toFixed(betToken.decimals);\n const fixedMinOdds = calcMindOdds({ odds: totalOdds, slippage });\n const coreAddress = selections.length > 1 ? contracts.prematchComboCore.address : contracts.prematchCore.address;\n const betData = getPrematchBetDataBytes(selections);\n const rawAmount = parseUnits(fixedAmount, betToken.decimals);\n const rawMinOdds = parseUnits(fixedMinOdds, ODDS_DECIMALS);\n const rawDeadline = BigInt(Math.floor(Date.now() / 1000) + (deadline || DE_BRIDGE_DEFAULT_DEADLINE));\n const params = new URLSearchParams({\n dstChainId: String(deBridgeChainIdByOriginalChainId[dstChainId] || dstChainId),\n srcChainOrderAuthorityAddress: account,\n prependOperatingExpenses: 'false',\n srcChainId: String(deBridgeChainIdByOriginalChainId[srcChainId] || srcChainId),\n srcChainTokenIn,\n srcChainTokenInAmount: 'auto',\n dstChainTokenOut: betToken.address,\n dstChainTokenOutAmount: String(rawAmount),\n dstChainTokenOutRecipient: account,\n dstChainOrderAuthorityAddress: account,\n externalCall: JSON.stringify({\n version: 'evm_1',\n fields: {\n to: contracts.lp.address,\n data: encodeFunctionData({\n abi: contracts.lp.abi,\n functionName: 'betFor',\n args: [\n account,\n coreAddress,\n rawAmount,\n rawDeadline,\n {\n affiliate,\n minOdds: rawMinOdds,\n data: betData,\n },\n ],\n }),\n },\n }),\n referralCode: String(referralCode),\n });\n const response = await fetch(`${deBridgeUrl}/dln/order/create-tx?${params}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getDeBridgeSupportedTokens = async (chainId) => {\n const response = await fetch(`${deBridgeUrl}/token-list?chainId=${chainId}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const { tokens } = await response.json();\n return tokens;\n};var DeBridgeOrderStatus;\n(function (DeBridgeOrderStatus) {\n DeBridgeOrderStatus[\"None\"] = \"None\";\n DeBridgeOrderStatus[\"Created\"] = \"Created\";\n DeBridgeOrderStatus[\"Fulfilled\"] = \"Fulfilled\";\n DeBridgeOrderStatus[\"SentUnlock\"] = \"SentUnlock\";\n DeBridgeOrderStatus[\"OrderCancelled\"] = \"OrderCancelled\";\n DeBridgeOrderStatus[\"SentOrderCancel\"] = \"SentOrderCancel\";\n DeBridgeOrderStatus[\"ClaimedUnlock\"] = \"ClaimedUnlock\";\n DeBridgeOrderStatus[\"ClaimedOrderCancel\"] = \"ClaimedOrderCancel\";\n})(DeBridgeOrderStatus || (DeBridgeOrderStatus = {}));\nvar DeBridgeExternalCallStatus;\n(function (DeBridgeExternalCallStatus) {\n DeBridgeExternalCallStatus[\"NoExtCall\"] = \"NoExtCall\";\n DeBridgeExternalCallStatus[\"AwaitingOrderFulfillment\"] = \"AwaitingOrderFulfillment\";\n DeBridgeExternalCallStatus[\"AwaitingExecution\"] = \"AwaitingExecution\";\n DeBridgeExternalCallStatus[\"Executing\"] = \"Executing\";\n DeBridgeExternalCallStatus[\"Completed\"] = \"Completed\";\n DeBridgeExternalCallStatus[\"Failed\"] = \"Failed\";\n DeBridgeExternalCallStatus[\"Cancelled\"] = \"Cancelled\";\n})(DeBridgeExternalCallStatus || (DeBridgeExternalCallStatus = {}));\nconst getDeBridgeOrder = async (orderId) => {\n const response = await fetch(`${deBridgeTxUrl}/orders/${orderId}?t=${Date.now()}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getPrecalculatedCashouts = async (props) => {\n const { chainId, conditionIds } = props;\n const { api, contracts } = chainsData[chainId];\n if (!contracts.cashout?.address) {\n throw new Error('provided chainId is not supported for cashout');\n }\n const response = await fetch(`${api}/cashout/get-multipliers`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n conditionIds,\n }),\n });\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const { multipliers } = await response.json();\n return multipliers;\n};const getCalculatedCashout = async (props) => {\n const { chainId, account, graphBetId, isLive } = props;\n const { api, environment, contracts } = chainsData[chainId];\n if (!contracts.cashout?.address) {\n throw new Error('provided chainId is not supported for cashout');\n }\n const response = await fetch(`${api}/cashout/get-calculation`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n environment,\n owner: account,\n betId: graphBetId,\n isLive,\n }),\n });\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const { cashoutOdds, owner, betId, ...rest } = await response.json();\n return {\n multiplier: cashoutOdds,\n account: owner,\n tokenId: betId,\n ...rest,\n };\n};const getCashoutTypedData = (props) => {\n const { account, chainId, attention, tokenId, betCoreAddress, multiplier, expiredAt } = props;\n const { contracts } = chainsData[chainId];\n if (!contracts.cashout?.address) {\n throw new Error('provided chainId is not supported for cashout');\n }\n const EIP712Domain = {\n name: CASHOUT_TYPED_DATA_DOMAIN_NAME,\n version: CASHOUT_TYPED_DATA_DOMAIN_VERSION,\n chainId,\n verifyingContract: contracts.cashout.address,\n };\n return {\n account: account,\n domain: EIP712Domain,\n primaryType: 'CashOutOrder',\n types: CASHOUT_DATA_TYPES,\n message: {\n attention: attention || 'By signing this transaction, I agree to cash out on \\'Azuro SDK Example',\n chainId: BigInt(chainId),\n items: [\n {\n betId: BigInt(tokenId),\n bettingContract: betCoreAddress,\n minOdds: typeof multiplier === 'string' ? (parseUnits(multiplier, ODDS_DECIMALS)) : multiplier,\n },\n ],\n expiresAt: BigInt(expiredAt),\n },\n };\n};var CashoutState;\n(function (CashoutState) {\n CashoutState[\"Processing\"] = \"PROCESSING\";\n CashoutState[\"Accepted\"] = \"ACCEPTED\";\n CashoutState[\"Rejected\"] = \"REJECTED\";\n CashoutState[\"Open\"] = \"OPEN\";\n})(CashoutState || (CashoutState = {}));\nconst createCashout = async (props) => {\n const { chainId, calculationId, betCoreAddress, attention, signature } = props;\n const { api, contracts } = chainsData[chainId];\n if (!contracts.cashout?.address) {\n throw new Error('provided chainId is not supported for cashout');\n }\n const signedCashout = {\n calculationId,\n signature: {\n verifyingContract: contracts.cashout.address,\n bettingContract: betCoreAddress,\n attention,\n chainId,\n ownerSignature: signature,\n },\n };\n const response = await fetch(`${api}/cashout/create`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(signedCashout),\n });\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};const getCashout = async ({ chainId, orderId }) => {\n const { api, contracts } = chainsData[chainId];\n if (!contracts.cashout?.address) {\n throw new Error('provided chainId is not supported for cashout');\n }\n const response = await fetch(`${api}/cashout/${orderId}`);\n if (response.status === 404) {\n return null;\n }\n if (!response.ok) {\n throw new Error(`Status ${response.status}: ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n};export{BetResult,BetStatus,Bet_OrderBy,BettorFragmentDoc,BettorsDocument,CASHOUT_DATA_TYPES,CASHOUT_TYPED_DATA_DOMAIN_NAME,CASHOUT_TYPED_DATA_DOMAIN_VERSION,CashoutState,ConditionStatus$1 as ConditionStatus,DeBridgeExternalCallStatus,DeBridgeOrderStatus,Environment,FreeBetStatus,GameBetsDocument,GameDocument,GameStatus,Game_OrderBy$1 as Game_OrderBy,GamesDocument,BetStatus$1 as GraphBetStatus,LIVE_BET_DATA_TYPES,LIVE_TYPED_DATA_DOMAIN_NAME,LIVE_TYPED_DATA_DOMAIN_VERSION,LiveBetFragmentDoc,LiveBetState,LiveBetsDocument,LiveConditionDocument,LiveConditionFragmentDoc,Condition_OrderBy as LiveConditionOrderBy,LiveConditionsDocument,GameStatus$1 as LiveGraphGameStatus,MARGIN_DECIMALS,MIN_LIVE_BET_AMOUNT,MainGameInfoFragmentDoc,NavigationDocument,ODDS_DECIMALS,OrderDirection$1 as OrderDirection,PrematchBetFragmentDoc,PrematchBetsDocument,PrematchConditionDocument,PrematchConditionFragmentDoc,Condition_OrderBy$1 as PrematchConditionOrderBy,PrematchConditionsBatchDocument,PrematchConditionsDocument,GameStatus$2 as PrematchGraphGameStatus,SelectionResult$1 as SelectionResult,SportsDocument,SportsNavigationDocument,WaveLevelName,activateWave,calcLiveOdds,calcMindOdds,calcPrematchOdds,chainsData,chainsDataByEnv,createCashout,createDeBridgeBet,createLiveBet,deBridgeChainIdByOriginalChainId,deBridgeTxUrl,deBridgeUrl,environments,FreeBet as freeBetAbi,getApiEndpoint,getBetStatus,getCalculatedCashout,getCashout,getCashoutTypedData,getDeBridgeOrder,getDeBridgeSupportedChains,getDeBridgeSupportedTokens,getFreeBets,getGameStatus,getLiveBet,getLiveBetFee,getLiveBetTypedData,getLiveGraphqlEndpoint,getPrecalculatedCashouts,getPrematchBetDataBytes,getPrematchGraphqlEndpoint,getProviderFromId,getSocketEndpoint,getWaveLeaderBoard,getWaveLevels,getWavePeriods,getWaveStats,groupByConditionId,groupConditionsByMarket,liveCoreAbi,liveHostAddress,liveSupportedChains,lpAbi,prematchComboCoreAbi,prematchCoreAbi,proxyFrontAbi,setupContracts};"],"names":["Environment","AffiliateMonthly_OrderBy","Aggregation_Interval","AzuroBetContract_OrderBy","BetMargin_OrderBy","BetResult","BetStatus","BetType","Bet_OrderBy","Bettor_OrderBy","Cashout_OrderBy","ConditionLogStatus","ConditionLog_OrderBy","ConditionStatus","Condition_OrderBy","CoreContract_OrderBy","Country_OrderBy","EventName","Event_OrderBy","ExpressPrematchRelation_OrderBy","FreebetContract_OrderBy","FreebetStatus","Freebet_OrderBy","GameStatus","Game_OrderBy","League_OrderBy","LiquidityPoolContractType","LiquidityPoolContract_OrderBy","LiquidityPoolNft_OrderBy","LiquidityPoolTransactionType","LiquidityPoolTransaction_OrderBy","LiveBet_OrderBy","LiveCondition_OrderBy","LiveOutcome_OrderBy","LiveSelection_OrderBy","OrderDirection","OutcomeResult","Outcome_OrderBy","OutcomesKeyConditionRelation_OrderBy","Participant_OrderBy","SelectionResult","Selection_OrderBy","SportHub_OrderBy","Sport_OrderBy","_SubgraphErrorPolicy_","FreeBetStatus","LiveBetState","WaveLevelName","DeBridgeOrderStatus","DeBridgeExternalCallStatus","CashoutState","Aggregation_Interval$1","BetStatus$1","ConditionStatus$1","Condition_OrderBy$1","Country_OrderBy$1","EventName$1","Event_OrderBy$1","GameStatus$2","Game_OrderBy$1","League_OrderBy$1","OrderDirection$1","Outcome_OrderBy$1","Participant_OrderBy$1","SelectionResult$1","SportHub_OrderBy$1","Sport_OrderBy$1","_SubgraphErrorPolicy_$1","GameStatus$1","isDevEnabled","Boolean","JSON","parse","environments","viem_chains__WEBPACK_IMPORTED_MODULE_1__","K","id","GnosisDevXDAI","GnosisXDAI","viem_chains__WEBPACK_IMPORTED_MODULE_2__","y","PolygonUSDT","viem_chains__WEBPACK_IMPORTED_MODULE_3__","v","PolygonAmoyUSDT","PolygonAmoyAZUSD","viem_chains__WEBPACK_IMPORTED_MODULE_4__","i","ChilizWCHZ","viem_chains__WEBPACK_IMPORTED_MODULE_5__","U","ChilizSpicyWCHZ","viem_chains__WEBPACK_IMPORTED_MODULE_6__","u","BaseWETH","viem_chains__WEBPACK_IMPORTED_MODULE_7__","L","BaseSepoliaWETH","lpAbi","liveCoreAbi","prematchComboCoreAbi","prematchCoreAbi","proxyFrontAbi","FreeBet","setupContracts","lp","prematchCore","prematchComboCore","proxyFront","azuroBet","cashout","liveRelayer","liveCore","contracts","address","abi","viem__WEBPACK_IMPORTED_MODULE_8__","Hr","endpointNameByChainId","isDev","chainId","getPrematchGraphqlEndpoint","getLiveGraphqlEndpoint","getSocketEndpoint","getApiEndpoint","ODDS_DECIMALS","MARGIN_DECIMALS","MIN_LIVE_BET_AMOUNT","LIVE_BET_DATA_TYPES","ClientBetData","name","type","CASHOUT_DATA_TYPES","CashOutItem","CashOutOrder","liveHostAddress","gnosisData","chain","graphql","prematch","live","socket","api","environment","betToken","symbol","decimals","gnosisDevData","polygonData","polygonAmoyData","polygonAmoyDevData","chilizData","spicyData","baseSepoliaData","baseData","chainsData","LiveConditionFragmentDoc","graphql_tag__WEBPACK_IMPORTED_MODULE_9__","ZP","LiveConditionDocument","LiveConditionsDocument","BettorFragmentDoc","PrematchConditionFragmentDoc","LiveBetFragmentDoc","MainGameInfoFragmentDoc","PrematchBetFragmentDoc","BettorsDocument","PrematchConditionDocument","PrematchConditionsDocument","PrematchConditionsBatchDocument","GameDocument","GameBetsDocument","GamesDocument","LiveBetsDocument","NavigationDocument","PrematchBetsDocument","SportsDocument","getProviderFromId","slice","calcMindOdds","minOdds","totalOdds","props","odds","reduce","acc","slippage","toFixed","formatToFixed","value","digitsCount","String","test","int","digits","split","substr","ratio","self","other","sigmoid","getOddsFromProbabilities","probabilities","margin","winningOutcomesCount","spreads","Object","keys","outcomeId","error","iteration","oddsSpread","spread","forEach","price","newError","stringify","calcLiveOdds","selection","betAmount","oddsData","_outcomeId","reinforcement","outcomes","Number","allFunds","funds","outcomeKey","clearOdds","fund","calcPrematchOdds","config","selections","batchBetAmounts","isBatch","length","map","conditionId","coreAddress","_betAmount","rawAmount","viem__WEBPACK_IMPORTED_MODULE_10__","functionName","args","BigInt","response","_wagmi_core__WEBPACK_IMPORTED_MODULE_11__","J","index","key","result","viem__WEBPACK_IMPORTED_MODULE_12__","b","expressAddress","subBets","conditionOdds","_wagmi_core__WEBPACK_IMPORTED_MODULE_13__","getIsPendingResolution","now","Date","isStarted","pendingResolutionDate","getGameStatus","graphStatus","startsAt","isGameInLive","startDate","Canceled","Paused","Resolved","Finished","PendingResolution","Live","Created","getExpressIsLive","Math","min","games","getExpressIsPendingResolution","lastStartDate","max","lastGames","filter","some","status","getBetStatus","isLiveBet","isExpress","Accepted","getLiveBetFee","fetch","json","getPrematchBetDataBytes","tuple","viem__WEBPACK_IMPORTED_MODULE_14__","E","viem__WEBPACK_IMPORTED_MODULE_15__","n","groupByConditionId","data","item","push","groupConditionsByMarket","outcomesByMarkets","sportId","conditions","game","sport","rawOutcomes","gameId","wonOutcomeIds","condition","core","lpAddress","liquidityPool","isExpressForbidden","customMarketName","title","rawOutcome","customSelectionName","_azuro_org_dictionaries__WEBPACK_IMPORTED_MODULE_0__","dictionaries","console","warn","marketKey","c7","marketName","lA","selectionName","Lb","withPoint","marketDescription","vi","outcome","undefined","Array","isArray","isWon","includes","description","outcomeRows","marketsWithDifferentConditionIds","marketId","validSelections","validSelectionsByMarketId","outcomesSelections","selectionId","every","sort","a","dictionaryOutcomes","left","conditionsByConditionId","values","points","aPointId","pointsId","bPointId","aFirstOutcome","markets","orderedMarketKeys","marketOrders","prevMarketIndex","indexOf","nextMarketIndex","getFreeBets","account","affiliate","params","URLSearchParams","owner","toLowerCase","ok","statusText","getLiveBetTypedData","bet","domain","version","verifyingContract","primaryType","types","message","attention","amount","nonce","expiresAt","relayerFeeAmount","createLiveBet","signature","signedBet","bettor","bettorSignature","method","headers","body","getLiveBet","orderId","getWaveStats","waveId","getPrecalculatedCashouts","conditionIds","multipliers","getCalculatedCashout","graphBetId","isLive","betId","cashoutOdds","rest","multiplier","tokenId","getCashoutTypedData","betCoreAddress","expiredAt","items","bettingContract","createCashout","calculationId","signedCashout","ownerSignature","getCashout"],"sourceRoot":""}