"use strict";(("undefined"!=typeof self?self:this).wpChessCom_thpS=("undefined"!=typeof self?self:this).wpChessCom_thpS||[]).push([[439],{6439:function(e,t,s){s.d(t,{GetCurrentCoach:function(){return GetCurrentCoach},ListCoaches:function(){return ListCoaches}});var r=s(2505);function ListCoaches(e,t,s,n,o){return r.post(`${n??""}${s??"/rpc"}/chesscom.coaches.v2.CoachesService/ListCoaches`,e,{headers:t,params:void 0,withCredentials:!0,signal:o,transformRequest:[bigIntRequestTransformRequest,r.defaults.transformRequest??[]].flat()})}function GetCurrentCoach(e,t,s,n,o){return r.post(`${n??""}${s??"/rpc"}/chesscom.coaches.v2.CoachesService/GetCurrentCoach`,e,{headers:t,params:void 0,withCredentials:!0,signal:o,transformRequest:[bigIntRequestTransformRequest,r.defaults.transformRequest??[]].flat()})}let bigIntRequestTransformRequest=e=>{if("bigint"==typeof e)return e.toString();if("object"!=typeof e)return e;if(Array.isArray(e))return e.map(bigIntRequestTransformRequest);for(let t in e)e[t]=bigIntRequestTransformRequest(e[t]);return e}}}]);