@gooin/garmin-connect 1.8.6 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/common/FileMFASessionStorage.js +1 -1
  2. package/dist/common/HttpClient copy.js +1 -1
  3. package/dist/common/HttpClient.d.ts +1 -0
  4. package/dist/common/HttpClient.js +1 -1
  5. package/dist/common/HttpClient.js.map +1 -1
  6. package/dist/common/HttpClientOLD.js +1 -1
  7. package/dist/common/HttpClientOLDV1.js +1 -1
  8. package/dist/common/HttpClientV1.js +1 -1
  9. package/dist/common/MFAManager.js +1 -1
  10. package/dist/common/MFASessionStorage.js +1 -1
  11. package/dist/common/RedisMFASessionStorage.js +1 -1
  12. package/dist/garmin/GarminConnect.js +1 -1
  13. package/dist/garmin/UrlClass.js +1 -1
  14. package/dist/garmin/common/DateUtils.js +1 -1
  15. package/dist/garmin/common/HydrationUtils.js +1 -1
  16. package/dist/garmin/common/WeightUtils.js +1 -1
  17. package/dist/garmin/modules/activity/base.js +1 -1
  18. package/dist/garmin/modules/activity/cycling.js +1 -1
  19. package/dist/garmin/modules/activity/running.js +1 -1
  20. package/dist/garmin/modules/activity/training-status.js +1 -1
  21. package/dist/garmin/modules/coach/activity-summary.js +1 -1
  22. package/dist/garmin/modules/coach/helpers.js +1 -1
  23. package/dist/garmin/modules/coach/sleep-analysis.js +1 -1
  24. package/dist/garmin/modules/coach/training-overview.js +1 -1
  25. package/dist/garmin/modules/coach/wellness-overview.js +1 -1
  26. package/dist/garmin/modules/coach/wellness-summary.js +1 -1
  27. package/dist/garmin/modules/coach.js +1 -1
  28. package/dist/garmin/modules/course.js +1 -1
  29. package/dist/garmin/modules/device.js +1 -1
  30. package/dist/garmin/modules/misc.js +1 -1
  31. package/dist/garmin/modules/types.js +1 -1
  32. package/dist/garmin/modules/user.js +1 -1
  33. package/dist/garmin/modules/wellness/body-battery.js +1 -1
  34. package/dist/garmin/modules/wellness/heart-rate.js +1 -1
  35. package/dist/garmin/modules/wellness/hrv.js +1 -1
  36. package/dist/garmin/modules/wellness/hydration.js +1 -1
  37. package/dist/garmin/modules/wellness/sleep.js +1 -1
  38. package/dist/garmin/modules/wellness/weight.js +1 -1
  39. package/dist/garmin/modules/workout.js +1 -1
  40. package/dist/garmin/types/activity-stats.js +1 -1
  41. package/dist/garmin/types/activity.js +1 -1
  42. package/dist/garmin/types/body-battery.js +1 -1
  43. package/dist/garmin/types/coach.js +1 -1
  44. package/dist/garmin/types/course.js +1 -1
  45. package/dist/garmin/types/cycling.js +1 -1
  46. package/dist/garmin/types/device.js +1 -1
  47. package/dist/garmin/types/golf.js +1 -1
  48. package/dist/garmin/types/heartrate.js +1 -1
  49. package/dist/garmin/types/hrv.js +1 -1
  50. package/dist/garmin/types/hydration.js +1 -1
  51. package/dist/garmin/types/index.js +1 -1
  52. package/dist/garmin/types/personal-info.js +1 -1
  53. package/dist/garmin/types/race-prediction.js +1 -1
  54. package/dist/garmin/types/sleep.js +1 -1
  55. package/dist/garmin/types/training-status.js +1 -1
  56. package/dist/garmin/types/weight.js +1 -1
  57. package/dist/garmin/types/workout.js +1 -1
  58. package/dist/garmin/workouts/Running.js +1 -1
  59. package/dist/garmin/workouts/templates/RunningTemplate.js +1 -1
  60. package/dist/garmin/workouts/workout-draft.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/utils.js +1 -1
  63. package/package.json +1 -1
@@ -1 +1 @@
1
- 'use strict';const a6_0x349ce6=a6_0x29f5;(function(_0x529b45,_0x3a45f4){const _0x3a80ab=a6_0x29f5,_0x5c5e62=_0x529b45();while(!![]){try{const _0x1581aa=parseInt(_0x3a80ab(0x15e))/0x1+-parseInt(_0x3a80ab(0x157))/0x2*(-parseInt(_0x3a80ab(0x175))/0x3)+-parseInt(_0x3a80ab(0x155))/0x4*(parseInt(_0x3a80ab(0x16e))/0x5)+parseInt(_0x3a80ab(0x15c))/0x6+parseInt(_0x3a80ab(0x151))/0x7+-parseInt(_0x3a80ab(0x167))/0x8+-parseInt(_0x3a80ab(0x170))/0x9*(parseInt(_0x3a80ab(0x16f))/0xa);if(_0x1581aa===_0x3a45f4)break;else _0x5c5e62['push'](_0x5c5e62['shift']());}catch(_0x1a34ac){_0x5c5e62['push'](_0x5c5e62['shift']());}}}(a6_0x3a88,0x83780));function a6_0x29f5(_0x392b11,_0x4d48af){_0x392b11=_0x392b11-0x151;const _0x3a8811=a6_0x3a88();let _0x29f55b=_0x3a8811[_0x392b11];return _0x29f55b;}var __importDefault=this&&this['__importDefault']||function(_0x4f0064){return _0x4f0064&&_0x4f0064['__esModule']?_0x4f0064:{'default':_0x4f0064};};Object[a6_0x349ce6(0x159)](exports,a6_0x349ce6(0x152),{'value':!![]}),exports[a6_0x349ce6(0x16a)]=void 0x0;const FileMFASessionStorage_1=require(a6_0x349ce6(0x16d)),RedisMFASessionStorage_1=require('./RedisMFASessionStorage'),path_1=__importDefault(require(a6_0x349ce6(0x178)));class MFAManager{constructor(_0x148d84){const _0x1b2f91=a6_0x349ce6;this['DEFAULT_TIMEOUT']=0x5*0x3c*0x3e8;if(_0x148d84['type']===_0x1b2f91(0x161)){if(_0x148d84[_0x1b2f91(0x161)])this[_0x1b2f91(0x156)]=new RedisMFASessionStorage_1[(_0x1b2f91(0x163))](undefined,undefined,_0x148d84[_0x1b2f91(0x161)]);else{if(_0x148d84[_0x1b2f91(0x15a)]&&_0x148d84['redisToken'])this[_0x1b2f91(0x156)]=new RedisMFASessionStorage_1[(_0x1b2f91(0x163))](_0x148d84[_0x1b2f91(0x15a)],_0x148d84[_0x1b2f91(0x15d)]);else{if(_0x148d84[_0x1b2f91(0x15a)])this[_0x1b2f91(0x156)]=new RedisMFASessionStorage_1[(_0x1b2f91(0x163))](_0x148d84[_0x1b2f91(0x15a)]);else throw new Error(_0x1b2f91(0x154));}}}else{if(_0x148d84[_0x1b2f91(0x173)]==='file'){const _0x489d98=_0x148d84['dir']||path_1['default']['join'](process[_0x1b2f91(0x16b)](),_0x1b2f91(0x158));this[_0x1b2f91(0x156)]=new FileMFASessionStorage_1[(_0x1b2f91(0x172))](_0x489d98);}else throw new Error(_0x1b2f91(0x168)+_0x148d84[_0x1b2f91(0x173)]);}}static[a6_0x349ce6(0x15f)](_0xf83748){const _0x5bfcae=a6_0x349ce6;if(!MFAManager[_0x5bfcae(0x166)]){if(!_0xf83748)throw new Error('首次创建MFAManager实例必须提供配置');console[_0x5bfcae(0x153)](_0x5bfcae(0x16c),_0xf83748),MFAManager[_0x5bfcae(0x166)]=new MFAManager(_0xf83748);}return MFAManager['instance'];}static[a6_0x349ce6(0x164)](){const _0x150957=a6_0x349ce6;MFAManager[_0x150957(0x166)]=undefined;}async['waitForMFACode'](_0x2509cf,_0x5acd71=this[a6_0x349ce6(0x174)]){const _0x1e7dd4=a6_0x349ce6;return this[_0x1e7dd4(0x156)]['waitForMFACode'](_0x2509cf,_0x5acd71);}async[a6_0x349ce6(0x171)](_0x281044,_0x53081b){const _0x20b122=a6_0x349ce6;return this[_0x20b122(0x156)][_0x20b122(0x171)](_0x281044,_0x53081b);}async[a6_0x349ce6(0x176)](_0x436b9b,_0x157c7d=a6_0x349ce6(0x169)){return this['storage']['cancelMFARequest'](_0x436b9b,_0x157c7d);}async[a6_0x349ce6(0x177)](_0x219f05){const _0x29bf2d=a6_0x349ce6;return this[_0x29bf2d(0x156)][_0x29bf2d(0x177)](_0x219f05);}async['getActiveSessions'](){const _0x818971=a6_0x349ce6;return this[_0x818971(0x156)][_0x818971(0x165)]();}async['cleanupExpiredRequests'](_0x31032c=this['DEFAULT_TIMEOUT']){const _0x1c50d7=a6_0x349ce6;return this[_0x1c50d7(0x156)][_0x1c50d7(0x162)](_0x31032c);}[a6_0x349ce6(0x160)](_0x56fc76=0xea60){setInterval(()=>{const _0x389940=a6_0x29f5;this[_0x389940(0x162)]();},_0x56fc76);}async[a6_0x349ce6(0x15b)](){const _0x19980e=a6_0x349ce6;this[_0x19980e(0x156)]instanceof RedisMFASessionStorage_1[_0x19980e(0x163)]&&await this['storage']['disconnect']();}}function a6_0x3a88(){const _0x5f2203=['redis','cleanupExpiredRequests','RedisMFASessionStorage','resetInstance','getActiveSessions','instance','4950472qTbuiG','不支持的MFA存储类型:\x20','MFA验证已取消','MFAManager','cwd','创建MFA管理器实例','./FileMFASessionStorage','5TmAAVe','35080seSrPo','2448ERdvUK','submitMFACode','FileMFASessionStorage','type','DEFAULT_TIMEOUT','3DomVNZ','cancelMFARequest','hasSession','path','5926186pibeue','__esModule','log','Redis配置不完整,需要提供redisUrl或redis实例','953756PKrSth','storage','817322CYGMyc','.mfa-sessions','defineProperty','redisUrl','disconnect','3695160IuQuLT','redisToken','478801XPaSGD','getInstance','startCleanupTask'];a6_0x3a88=function(){return _0x5f2203;};return a6_0x3a88();}exports[a6_0x349ce6(0x16a)]=MFAManager;
1
+ 'use strict';const a6_0x241df7=a6_0x1e67;(function(_0xe70a22,_0x58ea40){const _0x4d4197=a6_0x1e67,_0x54e1e1=_0xe70a22();while(!![]){try{const _0xb25ad8=parseInt(_0x4d4197(0x190))/0x1+-parseInt(_0x4d4197(0x180))/0x2*(-parseInt(_0x4d4197(0x198))/0x3)+-parseInt(_0x4d4197(0x193))/0x4+parseInt(_0x4d4197(0x194))/0x5+-parseInt(_0x4d4197(0x1a3))/0x6+parseInt(_0x4d4197(0x182))/0x7*(parseInt(_0x4d4197(0x18a))/0x8)+-parseInt(_0x4d4197(0x19f))/0x9*(parseInt(_0x4d4197(0x18c))/0xa);if(_0xb25ad8===_0x58ea40)break;else _0x54e1e1['push'](_0x54e1e1['shift']());}catch(_0x4162dd){_0x54e1e1['push'](_0x54e1e1['shift']());}}}(a6_0x15ff,0xc1558));function a6_0x15ff(){const _0x40cefb=['cwd','.mfa-sessions','redisUrl','27021eWJIql','Redis配置不完整,需要提供redisUrl或redis实例','DEFAULT_TIMEOUT','不支持的MFA存储类型:\x20','waitForMFACode','./RedisMFASessionStorage','type','747mcgvyk','getInstance','MFA验证已取消','getActiveSessions','4599900MoxRLx','dir','log','hasSession','cancelMFARequest','./FileMFASessionStorage','redis','146GfveFt','RedisMFASessionStorage','14zTjVYV','defineProperty','MFAManager','__esModule','storage','cleanupExpiredRequests','instance','FileMFASessionStorage','2274088LLBcyZ','__importDefault','13370jFrgfk','resetInstance','首次创建MFAManager实例必须提供配置','disconnect','235524DIDqSz','submitMFACode','redisToken','1866408aYUtbI','3372810iLNZSL'];a6_0x15ff=function(){return _0x40cefb;};return a6_0x15ff();}var __importDefault=this&&this[a6_0x241df7(0x18b)]||function(_0x4bf65e){const _0xb59473=a6_0x241df7;return _0x4bf65e&&_0x4bf65e[_0xb59473(0x185)]?_0x4bf65e:{'default':_0x4bf65e};};Object[a6_0x241df7(0x183)](exports,a6_0x241df7(0x185),{'value':!![]}),exports['MFAManager']=void 0x0;const FileMFASessionStorage_1=require(a6_0x241df7(0x17e)),RedisMFASessionStorage_1=require(a6_0x241df7(0x19d)),path_1=__importDefault(require('path'));function a6_0x1e67(_0x4c9554,_0x34e0e3){_0x4c9554=_0x4c9554-0x17d;const _0x15ffcc=a6_0x15ff();let _0x1e674b=_0x15ffcc[_0x4c9554];return _0x1e674b;}class MFAManager{constructor(_0x1da65a){const _0x58f7e7=a6_0x241df7;this[_0x58f7e7(0x19a)]=0x5*0x3c*0x3e8;if(_0x1da65a[_0x58f7e7(0x19e)]===_0x58f7e7(0x17f)){if(_0x1da65a[_0x58f7e7(0x17f)])this[_0x58f7e7(0x186)]=new RedisMFASessionStorage_1[(_0x58f7e7(0x181))](undefined,undefined,_0x1da65a[_0x58f7e7(0x17f)]);else{if(_0x1da65a[_0x58f7e7(0x197)]&&_0x1da65a['redisToken'])this['storage']=new RedisMFASessionStorage_1[(_0x58f7e7(0x181))](_0x1da65a['redisUrl'],_0x1da65a[_0x58f7e7(0x192)]);else{if(_0x1da65a[_0x58f7e7(0x197)])this[_0x58f7e7(0x186)]=new RedisMFASessionStorage_1[(_0x58f7e7(0x181))](_0x1da65a[_0x58f7e7(0x197)]);else throw new Error(_0x58f7e7(0x199));}}}else{if(_0x1da65a[_0x58f7e7(0x19e)]==='file'){const _0x514c0d=_0x1da65a[_0x58f7e7(0x1a4)]||path_1['default']['join'](process[_0x58f7e7(0x195)](),_0x58f7e7(0x196));this['storage']=new FileMFASessionStorage_1[(_0x58f7e7(0x189))](_0x514c0d);}else throw new Error(_0x58f7e7(0x19b)+_0x1da65a['type']);}}static[a6_0x241df7(0x1a0)](_0x2dd227){const _0x56a773=a6_0x241df7;if(!MFAManager[_0x56a773(0x188)]){if(!_0x2dd227)throw new Error(_0x56a773(0x18e));console[_0x56a773(0x1a5)]('创建MFA管理器实例',_0x2dd227),MFAManager[_0x56a773(0x188)]=new MFAManager(_0x2dd227);}return MFAManager[_0x56a773(0x188)];}static[a6_0x241df7(0x18d)](){const _0x43c848=a6_0x241df7;MFAManager[_0x43c848(0x188)]=undefined;}async['waitForMFACode'](_0x5a2cd7,_0x3be109=this[a6_0x241df7(0x19a)]){const _0x408f5f=a6_0x241df7;return this[_0x408f5f(0x186)][_0x408f5f(0x19c)](_0x5a2cd7,_0x3be109);}async['submitMFACode'](_0x4e82a7,_0x42c2e0){const _0x4b2ee1=a6_0x241df7;return this['storage'][_0x4b2ee1(0x191)](_0x4e82a7,_0x42c2e0);}async['cancelMFARequest'](_0x13b661,_0x48800a=a6_0x241df7(0x1a1)){const _0x187222=a6_0x241df7;return this['storage'][_0x187222(0x17d)](_0x13b661,_0x48800a);}async[a6_0x241df7(0x1a6)](_0x11ada3){const _0xbd0f9c=a6_0x241df7;return this[_0xbd0f9c(0x186)][_0xbd0f9c(0x1a6)](_0x11ada3);}async[a6_0x241df7(0x1a2)](){const _0x2e8700=a6_0x241df7;return this[_0x2e8700(0x186)][_0x2e8700(0x1a2)]();}async['cleanupExpiredRequests'](_0x5cf6f7=this[a6_0x241df7(0x19a)]){const _0x195dab=a6_0x241df7;return this[_0x195dab(0x186)][_0x195dab(0x187)](_0x5cf6f7);}['startCleanupTask'](_0x4c7a01=0xea60){setInterval(()=>{const _0x4a6b8d=a6_0x1e67;this[_0x4a6b8d(0x187)]();},_0x4c7a01);}async['disconnect'](){const _0x15b33e=a6_0x241df7;this[_0x15b33e(0x186)]instanceof RedisMFASessionStorage_1[_0x15b33e(0x181)]&&await this[_0x15b33e(0x186)][_0x15b33e(0x18f)]();}}exports[a6_0x241df7(0x184)]=MFAManager;
@@ -1 +1 @@
1
- 'use strict';var a7_0x3701da=a7_0xe030;function a7_0x5e68(){var _0x32d8a4=['5LBfTbJ','7502704GRUene','defineProperty','16921872fiptaI','52446IvjQph','1974194hKMYtJ','749ZYVeSR','284537qfIICH','270msxjhx','9yamnae','734928QfuAUR','1xgvnTd','1998716clpAVl'];a7_0x5e68=function(){return _0x32d8a4;};return a7_0x5e68();}(function(_0x41bda2,_0x1557a0){var _0x5cb4f6=a7_0xe030,_0x42ecdd=_0x41bda2();while(!![]){try{var _0x424aef=-parseInt(_0x5cb4f6(0x1b9))/0x1*(-parseInt(_0x5cb4f6(0x1c0))/0x2)+-parseInt(_0x5cb4f6(0x1b8))/0x3+parseInt(_0x5cb4f6(0x1ba))/0x4*(parseInt(_0x5cb4f6(0x1bb))/0x5)+parseInt(_0x5cb4f6(0x1bf))/0x6*(parseInt(_0x5cb4f6(0x1c1))/0x7)+parseInt(_0x5cb4f6(0x1bc))/0x8*(-parseInt(_0x5cb4f6(0x1b7))/0x9)+-parseInt(_0x5cb4f6(0x1c3))/0xa*(-parseInt(_0x5cb4f6(0x1c2))/0xb)+-parseInt(_0x5cb4f6(0x1be))/0xc;if(_0x424aef===_0x1557a0)break;else _0x42ecdd['push'](_0x42ecdd['shift']());}catch(_0x25dd69){_0x42ecdd['push'](_0x42ecdd['shift']());}}}(a7_0x5e68,0x80c8e));function a7_0xe030(_0x5d3661,_0x206dd4){_0x5d3661=_0x5d3661-0x1b7;var _0x5e684b=a7_0x5e68();var _0xe030a1=_0x5e684b[_0x5d3661];return _0xe030a1;}Object[a7_0x3701da(0x1bd)](exports,'__esModule',{'value':!![]});
1
+ 'use strict';var a7_0x30076c=a7_0x4fe2;(function(_0x3d432d,_0x4260c2){var _0x2cc0b6=a7_0x4fe2,_0x57789d=_0x3d432d();while(!![]){try{var _0x324870=parseInt(_0x2cc0b6(0x1d3))/0x1*(-parseInt(_0x2cc0b6(0x1d8))/0x2)+parseInt(_0x2cc0b6(0x1d4))/0x3+-parseInt(_0x2cc0b6(0x1d7))/0x4*(-parseInt(_0x2cc0b6(0x1d1))/0x5)+-parseInt(_0x2cc0b6(0x1d2))/0x6*(parseInt(_0x2cc0b6(0x1d5))/0x7)+-parseInt(_0x2cc0b6(0x1ce))/0x8+-parseInt(_0x2cc0b6(0x1d6))/0x9+parseInt(_0x2cc0b6(0x1d0))/0xa;if(_0x324870===_0x4260c2)break;else _0x57789d['push'](_0x57789d['shift']());}catch(_0x4d6375){_0x57789d['push'](_0x57789d['shift']());}}}(a7_0x12c6,0x77c95));function a7_0x4fe2(_0x3d593b,_0x648c0b){_0x3d593b=_0x3d593b-0x1ce;var _0x12c678=a7_0x12c6();var _0x4fe28e=_0x12c678[_0x3d593b];return _0x4fe28e;}Object[a7_0x30076c(0x1cf)](exports,'__esModule',{'value':!![]});function a7_0x12c6(){var _0xf5dd37=['7772355zWvxPv','28wbBBkP','56GkINOV','7138216ATDywv','defineProperty','32903180YrGiXB','206620kYJnrb','2881584eTOuQi','21787CWYGSo','712485nVubOu','14ZcYqLy'];a7_0x12c6=function(){return _0xf5dd37;};return a7_0x12c6();}
@@ -1 +1 @@
1
- 'use strict';const a8_0x584f66=a8_0x2032;(function(_0x4a67e0,_0x12c162){const _0x30a253=a8_0x2032,_0x366c74=_0x4a67e0();while(!![]){try{const _0x3fec36=parseInt(_0x30a253(0x9a))/0x1+parseInt(_0x30a253(0xb4))/0x2*(parseInt(_0x30a253(0xc0))/0x3)+parseInt(_0x30a253(0xdb))/0x4+-parseInt(_0x30a253(0xbe))/0x5*(parseInt(_0x30a253(0xb0))/0x6)+-parseInt(_0x30a253(0xaa))/0x7*(parseInt(_0x30a253(0xcc))/0x8)+parseInt(_0x30a253(0xae))/0x9*(parseInt(_0x30a253(0xdd))/0xa)+-parseInt(_0x30a253(0xd6))/0xb;if(_0x3fec36===_0x12c162)break;else _0x366c74['push'](_0x366c74['shift']());}catch(_0xa46d22){_0x366c74['push'](_0x366c74['shift']());}}}(a8_0x360b,0xe9ba5));function a8_0x360b(){const _0x5c5ab5=['614957reiPYQ','环境不支持定时器,无法等待MFA验证码','getActiveSessions','del','MFA验证会话状态不正确:\x20','Either\x20redisUrl\x20with\x20redisToken\x20(for\x20Upstash)\x20or\x20redisClient\x20must\x20be\x20provided','MFA验证已取消:\x20','__esModule','删除过期会话失败:\x20','error','code','parse','set','status',',\x20错误:\x20','KEY_PREFIX','1531418EXsfGf','MFA验证会话已过期','waitForMFACode',',\x20状态:\x20','2630727OVDGOd','Upstash\x20Redis\x20module\x20not\x20found.\x20Please\x20install\x20@upstash/redis:\x20npm\x20install\x20@upstash/redis','1247154APDGfu','cleanupExpiredRequests','getSessionKey','rejectedAt','2PlqEku','toISOString','DEFAULT_TIMEOUT','获取活跃会话失败:','ioredis','log','\x20个过期的MFA验证会话','disconnect','map','ceil','35DiVXYT','redis','5229348rAOEAU','string','UpstashRedis','🚀\x20RedisMFASessionStorage\x20收到验证码:','提交MFA验证码失败:\x20',',\x20原因:\x20','mfa:session:','get','getTime','RedisMFASessionStorage','createdAt','stringify','56BGwEig','清理过期请求失败:','message','replace','resolvedAt','quit','now','function','Redis\x20module\x20not\x20found.\x20Please\x20install\x20ioredis:\x20npm\x20install\x20ioredis','cancelMFARequest','18538036hKmlbL','MFA验证码已提交:\x20code\x20','keys','cleanupRequest','hasSession','6068660nUXfaB','waiting','60ZUrdjF','exists','未找到MFA验证会话:\x20'];a8_0x360b=function(){return _0x5c5ab5;};return a8_0x360b();}Object['defineProperty'](exports,a8_0x584f66(0xa1),{'value':!![]}),exports['RedisMFASessionStorage']=void 0x0;class RedisMFASessionStorage{constructor(_0x526acd,_0x1bc599,_0x2f03e4){const _0x23bb0a=a8_0x584f66;this[_0x23bb0a(0xb6)]=0x5*0x3c*0x3e8,this[_0x23bb0a(0xa9)]=_0x23bb0a(0xc6);if(_0x2f03e4)this[_0x23bb0a(0xbf)]=_0x2f03e4;else{if(_0x526acd&&_0x1bc599)try{let _0x4c94a8;typeof require!=='undefined'?_0x4c94a8=require('@upstash/redis'):_0x4c94a8=globalThis[_0x23bb0a(0xc2)];const {Redis:_0x250274}=_0x4c94a8;this['redis']=new _0x250274({'url':_0x526acd,'token':_0x1bc599});}catch(_0x565b7f){throw new Error(_0x23bb0a(0xaf));}else{if(_0x526acd)try{const _0x14e3c9=require(_0x23bb0a(0xb8));this[_0x23bb0a(0xbf)]=new _0x14e3c9(_0x526acd);}catch(_0x5c05d0){throw new Error(_0x23bb0a(0xd4));}else throw new Error(_0x23bb0a(0x9f));}}}[a8_0x584f66(0xb2)](_0x150f86){const _0x58d9f4=a8_0x584f66;return''+this[_0x58d9f4(0xa9)]+_0x150f86;}async[a8_0x584f66(0xac)](_0x18a802,_0x5f7878=this['DEFAULT_TIMEOUT']){const _0x5666f8=a8_0x584f66;await this[_0x5666f8(0xd9)](_0x18a802);const _0x2ad046={'sessionId':_0x18a802,'status':_0x5666f8(0xdc),'createdAt':new Date()[_0x5666f8(0xb5)](),'timeout':_0x5f7878},_0x3d4965=this[_0x5666f8(0xb2)](_0x18a802);return await this[_0x5666f8(0xbf)]['setex'](_0x3d4965,Math[_0x5666f8(0xbd)](_0x5f7878/0x3e8),JSON[_0x5666f8(0xcb)](_0x2ad046)),console[_0x5666f8(0xb9)]('MFA验证会话已创建:\x20'+_0x18a802),new Promise((_0x3bc2aa,_0x526437)=>{const _0x37a26f=_0x5666f8,_0x427ab4=Date[_0x37a26f(0xd2)](),_0x573370=async()=>{const _0x127cf5=_0x37a26f;try{if(Date[_0x127cf5(0xd2)]()-_0x427ab4>_0x5f7878){await this[_0x127cf5(0xd9)](_0x18a802),_0x526437(new Error('MFA验证超时,请重新登录'));return;}const _0x1762d1=await this[_0x127cf5(0xbf)][_0x127cf5(0xc7)](_0x3d4965);if(!_0x1762d1){await this[_0x127cf5(0xd9)](_0x18a802),_0x526437(new Error(_0x127cf5(0xab)));return;}const _0x53c4e9=typeof _0x1762d1==='string'?_0x1762d1:JSON[_0x127cf5(0xcb)](_0x1762d1),_0x4f27bf=JSON[_0x127cf5(0xa5)](_0x53c4e9);if(_0x4f27bf[_0x127cf5(0xa7)]==='resolved'&&_0x4f27bf[_0x127cf5(0xa4)]){await this[_0x127cf5(0xd9)](_0x18a802),console[_0x127cf5(0xb9)](_0x127cf5(0xc3),_0x4f27bf['code']),_0x3bc2aa(_0x4f27bf[_0x127cf5(0xa4)]);return;}if(_0x4f27bf['status']==='rejected'&&_0x4f27bf[_0x127cf5(0xa3)]){await this['cleanupRequest'](_0x18a802),_0x526437(new Error(_0x4f27bf[_0x127cf5(0xa3)]));return;}typeof setTimeout===_0x127cf5(0xd3)?setTimeout(_0x573370,0x3e8):_0x526437(new Error(_0x127cf5(0x9b)));}catch(_0x41e330){await this[_0x127cf5(0xd9)](_0x18a802),_0x526437(_0x41e330 instanceof Error?_0x41e330:new Error(String(_0x41e330)));}};_0x573370();});}async['submitMFACode'](_0x59199d,_0x2c705f){const _0x1f9951=a8_0x584f66,_0x3afe00=this[_0x1f9951(0xb2)](_0x59199d);try{const _0x4015a6=await this[_0x1f9951(0xbf)][_0x1f9951(0xc7)](_0x3afe00);if(!_0x4015a6)return console[_0x1f9951(0xb9)](_0x1f9951(0x99)+_0x59199d),![];const _0x247f0d=typeof _0x4015a6===_0x1f9951(0xc1)?_0x4015a6:JSON[_0x1f9951(0xcb)](_0x4015a6),_0x1cec9b=JSON[_0x1f9951(0xa5)](_0x247f0d);if(_0x1cec9b['status']!==_0x1f9951(0xdc))return console[_0x1f9951(0xb9)](_0x1f9951(0x9e)+_0x59199d+_0x1f9951(0xad)+_0x1cec9b['status']),![];return _0x1cec9b['status']='resolved',_0x1cec9b[_0x1f9951(0xa4)]=_0x2c705f,_0x1cec9b[_0x1f9951(0xd0)]=new Date()['toISOString'](),await this[_0x1f9951(0xbf)]['set'](_0x3afe00,JSON[_0x1f9951(0xcb)](_0x1cec9b)),console[_0x1f9951(0xb9)](_0x1f9951(0xd7)+_0x2c705f+',\x20sessionId\x20'+_0x59199d),!![];}catch(_0x322cab){return console['log'](_0x1f9951(0xc4)+_0x59199d+',\x20错误:\x20'+(_0x322cab instanceof Error?_0x322cab[_0x1f9951(0xce)]:String(_0x322cab))),![];}}async[a8_0x584f66(0xd5)](_0x85963b,_0x18db6c='MFA验证已取消'){const _0x3c6087=a8_0x584f66,_0x3c4bfb=this[_0x3c6087(0xb2)](_0x85963b);try{const _0xb32cf3=await this[_0x3c6087(0xbf)][_0x3c6087(0xc7)](_0x3c4bfb);if(!_0xb32cf3)return console[_0x3c6087(0xb9)](_0x3c6087(0x99)+_0x85963b),![];const _0x163e34=typeof _0xb32cf3===_0x3c6087(0xc1)?_0xb32cf3:JSON[_0x3c6087(0xcb)](_0xb32cf3),_0x257076=JSON[_0x3c6087(0xa5)](_0x163e34);return _0x257076[_0x3c6087(0xa7)]='rejected',_0x257076['error']=_0x18db6c,_0x257076[_0x3c6087(0xb3)]=new Date()[_0x3c6087(0xb5)](),await this[_0x3c6087(0xbf)][_0x3c6087(0xa6)](_0x3c4bfb,JSON[_0x3c6087(0xcb)](_0x257076)),console[_0x3c6087(0xb9)](_0x3c6087(0xa0)+_0x85963b+_0x3c6087(0xc5)+_0x18db6c),!![];}catch(_0x3b89bb){return console['log']('取消MFA验证失败:\x20'+_0x85963b+_0x3c6087(0xa8)+(_0x3b89bb instanceof Error?_0x3b89bb['message']:String(_0x3b89bb))),![];}}async[a8_0x584f66(0xda)](_0x2ff713){const _0x5ce6f0=a8_0x584f66,_0x3cdebf=this['getSessionKey'](_0x2ff713);try{const _0x90392b=await this[_0x5ce6f0(0xbf)][_0x5ce6f0(0x98)](_0x3cdebf);return _0x90392b===0x1;}catch(_0x301d4b){return![];}}async[a8_0x584f66(0x9c)](){const _0x232a24=a8_0x584f66;try{const _0x5a8a40=await this['redis'][_0x232a24(0xd8)](this['KEY_PREFIX']+'*');return _0x5a8a40[_0x232a24(0xbc)](_0x3bbf94=>_0x3bbf94[_0x232a24(0xcf)](this[_0x232a24(0xa9)],''));}catch(_0x29c85b){return console[_0x232a24(0xa3)](_0x232a24(0xb7),_0x29c85b instanceof Error?_0x29c85b:String(_0x29c85b)),[];}}async[a8_0x584f66(0xb1)](_0x3c1bf7=this[a8_0x584f66(0xb6)]){const _0x1af97d=a8_0x584f66;try{const _0x140dbd=await this[_0x1af97d(0xbf)][_0x1af97d(0xd8)](this[_0x1af97d(0xa9)]+'*'),_0x1ab8d1=new Date();let _0x51a987=0x0;for(const _0x2ec8c9 of _0x140dbd){try{const _0x3ec30a=await this[_0x1af97d(0xbf)][_0x1af97d(0xc7)](_0x2ec8c9);if(!_0x3ec30a)continue;const _0x354f02=typeof _0x3ec30a===_0x1af97d(0xc1)?_0x3ec30a:JSON[_0x1af97d(0xcb)](_0x3ec30a),_0x2a99dd=JSON[_0x1af97d(0xa5)](_0x354f02),_0x4f59bd=new Date(_0x2a99dd[_0x1af97d(0xca)]);_0x1ab8d1['getTime']()-_0x4f59bd[_0x1af97d(0xc8)]()>_0x3c1bf7&&(await this[_0x1af97d(0xbf)]['del'](_0x2ec8c9),_0x51a987++);}catch(_0x4c125d){try{await this['redis']['del'](_0x2ec8c9),_0x51a987++;}catch(_0x2a40da){console[_0x1af97d(0xa3)](_0x1af97d(0xa2)+_0x2ec8c9,_0x2a40da instanceof Error?_0x2a40da:String(_0x2a40da));}}}_0x51a987>0x0&&console[_0x1af97d(0xb9)]('清理了\x20'+_0x51a987+_0x1af97d(0xba));}catch(_0x32ba67){console[_0x1af97d(0xa3)](_0x1af97d(0xcd),_0x32ba67 instanceof Error?_0x32ba67:String(_0x32ba67));}}async[a8_0x584f66(0xd9)](_0x4f7144){const _0x51409e=a8_0x584f66,_0x295b62=this[_0x51409e(0xb2)](_0x4f7144);try{await this[_0x51409e(0xbf)][_0x51409e(0x9d)](_0x295b62);}catch(_0x49e927){}}async[a8_0x584f66(0xbb)](){const _0x37dbac=a8_0x584f66;if(this[_0x37dbac(0xbf)]&&typeof this[_0x37dbac(0xbf)][_0x37dbac(0xbb)]===_0x37dbac(0xd3))await this[_0x37dbac(0xbf)][_0x37dbac(0xbb)]();else this[_0x37dbac(0xbf)]&&typeof this[_0x37dbac(0xbf)][_0x37dbac(0xd1)]===_0x37dbac(0xd3)&&await this[_0x37dbac(0xbf)][_0x37dbac(0xd1)]();}}function a8_0x2032(_0x107fce,_0x46402a){_0x107fce=_0x107fce-0x98;const _0x360bef=a8_0x360b();let _0x20322d=_0x360bef[_0x107fce];return _0x20322d;}exports[a8_0x584f66(0xc9)]=RedisMFASessionStorage;
1
+ 'use strict';const a8_0x1e1a19=a8_0x107e;(function(_0x29a78d,_0xdee990){const _0x34e097=a8_0x107e,_0x29c264=_0x29a78d();while(!![]){try{const _0x27e142=parseInt(_0x34e097(0x88))/0x1*(-parseInt(_0x34e097(0xb4))/0x2)+parseInt(_0x34e097(0x7f))/0x3*(-parseInt(_0x34e097(0x89))/0x4)+parseInt(_0x34e097(0x78))/0x5*(parseInt(_0x34e097(0xab))/0x6)+-parseInt(_0x34e097(0x7d))/0x7+parseInt(_0x34e097(0x91))/0x8*(parseInt(_0x34e097(0x97))/0x9)+-parseInt(_0x34e097(0x7c))/0xa+-parseInt(_0x34e097(0x94))/0xb*(-parseInt(_0x34e097(0x9f))/0xc);if(_0x27e142===_0xdee990)break;else _0x29c264['push'](_0x29c264['shift']());}catch(_0x36d21f){_0x29c264['push'](_0x29c264['shift']());}}}(a8_0x1fa8,0x3a49d));Object[a8_0x1e1a19(0xbc)](exports,'__esModule',{'value':!![]}),exports[a8_0x1e1a19(0x92)]=void 0x0;function a8_0x1fa8(){const _0x57b66b=['now','toISOString','ceil','提交MFA验证码失败:\x20','MFA验证会话状态不正确:\x20','message','19692dOlpee','getSessionKey','ioredis','MFA验证已取消','waiting','stringify','set','resolvedAt','MFA验证已取消:\x20','code','resolved','redis','6uGWZie','status','log','UpstashRedis','getTime','hasSession','清理过期请求失败:',',\x20状态:\x20',',\x20sessionId\x20','386GaojNy','exists','quit',',\x20原因:\x20','KEY_PREFIX','清理了\x20','get','删除过期会话失败:\x20','defineProperty','mfa:session:','MFA验证会话已过期','waitForMFACode','parse','setex','2382540ymBfiy','createdAt','\x20个过期的MFA验证会话','function','1962650gCHcXi','1420552DSZuIF','error','1331163SJyCoX','rejectedAt','@upstash/redis','环境不支持定时器,无法等待MFA验证码','string','getActiveSessions','rejected','del','keys','1061fiqAJX','4gFmsmn','DEFAULT_TIMEOUT','未找到MFA验证会话:\x20','cleanupRequest','disconnect','Either\x20redisUrl\x20with\x20redisToken\x20(for\x20Upstash)\x20or\x20redisClient\x20must\x20be\x20provided','MFA验证超时,请重新登录','MFA验证会话已创建:\x20','1544dZFqXz','RedisMFASessionStorage','获取活跃会话失败:','4499OqJOtZ',',\x20错误:\x20','map','6471muUvMR','🚀\x20RedisMFASessionStorage\x20收到验证码:'];a8_0x1fa8=function(){return _0x57b66b;};return a8_0x1fa8();}class RedisMFASessionStorage{constructor(_0x40de5e,_0x2076ae,_0x50febd){const _0x14233b=a8_0x1e1a19;this[_0x14233b(0x8a)]=0x5*0x3c*0x3e8,this[_0x14233b(0xb8)]=_0x14233b(0xbd);if(_0x50febd)this[_0x14233b(0xaa)]=_0x50febd;else{if(_0x40de5e&&_0x2076ae)try{let _0x131c01;typeof require!=='undefined'?_0x131c01=require(_0x14233b(0x81)):_0x131c01=globalThis[_0x14233b(0xae)];const {Redis:_0x115163}=_0x131c01;this[_0x14233b(0xaa)]=new _0x115163({'url':_0x40de5e,'token':_0x2076ae});}catch(_0x432678){throw new Error('Upstash\x20Redis\x20module\x20not\x20found.\x20Please\x20install\x20@upstash/redis:\x20npm\x20install\x20@upstash/redis');}else{if(_0x40de5e)try{const _0x3b35eb=require(_0x14233b(0xa1));this[_0x14233b(0xaa)]=new _0x3b35eb(_0x40de5e);}catch(_0x49e676){throw new Error('Redis\x20module\x20not\x20found.\x20Please\x20install\x20ioredis:\x20npm\x20install\x20ioredis');}else throw new Error(_0x14233b(0x8e));}}}[a8_0x1e1a19(0xa0)](_0x4cdc04){const _0x226d85=a8_0x1e1a19;return''+this[_0x226d85(0xb8)]+_0x4cdc04;}async[a8_0x1e1a19(0x75)](_0x1e4b2b,_0x407da8=this[a8_0x1e1a19(0x8a)]){const _0x599fd4=a8_0x1e1a19;await this['cleanupRequest'](_0x1e4b2b);const _0x392973={'sessionId':_0x1e4b2b,'status':_0x599fd4(0xa3),'createdAt':new Date()[_0x599fd4(0x9a)](),'timeout':_0x407da8},_0x195fd6=this[_0x599fd4(0xa0)](_0x1e4b2b);return await this[_0x599fd4(0xaa)][_0x599fd4(0x77)](_0x195fd6,Math[_0x599fd4(0x9b)](_0x407da8/0x3e8),JSON[_0x599fd4(0xa4)](_0x392973)),console['log'](_0x599fd4(0x90)+_0x1e4b2b),new Promise((_0x1d3924,_0x5ce626)=>{const _0x18f92d=_0x599fd4,_0xaf3cd8=Date[_0x18f92d(0x99)](),_0x592fd9=async()=>{const _0x3a013f=_0x18f92d;try{if(Date['now']()-_0xaf3cd8>_0x407da8){await this[_0x3a013f(0x8c)](_0x1e4b2b),_0x5ce626(new Error(_0x3a013f(0x8f)));return;}const _0x193d42=await this[_0x3a013f(0xaa)][_0x3a013f(0xba)](_0x195fd6);if(!_0x193d42){await this[_0x3a013f(0x8c)](_0x1e4b2b),_0x5ce626(new Error(_0x3a013f(0xbe)));return;}const _0x55e9a0=typeof _0x193d42==='string'?_0x193d42:JSON[_0x3a013f(0xa4)](_0x193d42),_0x2fc1cb=JSON['parse'](_0x55e9a0);if(_0x2fc1cb['status']===_0x3a013f(0xa9)&&_0x2fc1cb[_0x3a013f(0xa8)]){await this[_0x3a013f(0x8c)](_0x1e4b2b),console['log'](_0x3a013f(0x98),_0x2fc1cb[_0x3a013f(0xa8)]),_0x1d3924(_0x2fc1cb['code']);return;}if(_0x2fc1cb[_0x3a013f(0xac)]===_0x3a013f(0x85)&&_0x2fc1cb[_0x3a013f(0x7e)]){await this[_0x3a013f(0x8c)](_0x1e4b2b),_0x5ce626(new Error(_0x2fc1cb[_0x3a013f(0x7e)]));return;}typeof setTimeout==='function'?setTimeout(_0x592fd9,0x3e8):_0x5ce626(new Error(_0x3a013f(0x82)));}catch(_0x82b2c5){await this[_0x3a013f(0x8c)](_0x1e4b2b),_0x5ce626(_0x82b2c5 instanceof Error?_0x82b2c5:new Error(String(_0x82b2c5)));}};_0x592fd9();});}async['submitMFACode'](_0x2a1c30,_0x2bb94c){const _0x45e4cf=a8_0x1e1a19,_0x470b12=this[_0x45e4cf(0xa0)](_0x2a1c30);try{const _0x2ddbbe=await this['redis'][_0x45e4cf(0xba)](_0x470b12);if(!_0x2ddbbe)return console[_0x45e4cf(0xad)](_0x45e4cf(0x8b)+_0x2a1c30),![];const _0x5b1b78=typeof _0x2ddbbe===_0x45e4cf(0x83)?_0x2ddbbe:JSON[_0x45e4cf(0xa4)](_0x2ddbbe),_0x3556c4=JSON[_0x45e4cf(0x76)](_0x5b1b78);if(_0x3556c4[_0x45e4cf(0xac)]!==_0x45e4cf(0xa3))return console[_0x45e4cf(0xad)](_0x45e4cf(0x9d)+_0x2a1c30+_0x45e4cf(0xb2)+_0x3556c4['status']),![];return _0x3556c4[_0x45e4cf(0xac)]=_0x45e4cf(0xa9),_0x3556c4[_0x45e4cf(0xa8)]=_0x2bb94c,_0x3556c4[_0x45e4cf(0xa6)]=new Date()[_0x45e4cf(0x9a)](),await this[_0x45e4cf(0xaa)][_0x45e4cf(0xa5)](_0x470b12,JSON[_0x45e4cf(0xa4)](_0x3556c4)),console['log']('MFA验证码已提交:\x20code\x20'+_0x2bb94c+_0x45e4cf(0xb3)+_0x2a1c30),!![];}catch(_0x1f615c){return console[_0x45e4cf(0xad)](_0x45e4cf(0x9c)+_0x2a1c30+',\x20错误:\x20'+(_0x1f615c instanceof Error?_0x1f615c[_0x45e4cf(0x9e)]:String(_0x1f615c))),![];}}async['cancelMFARequest'](_0x42c853,_0x4587ac=a8_0x1e1a19(0xa2)){const _0x458785=a8_0x1e1a19,_0x5843cb=this[_0x458785(0xa0)](_0x42c853);try{const _0x5ce617=await this[_0x458785(0xaa)]['get'](_0x5843cb);if(!_0x5ce617)return console[_0x458785(0xad)](_0x458785(0x8b)+_0x42c853),![];const _0x53e96b=typeof _0x5ce617===_0x458785(0x83)?_0x5ce617:JSON[_0x458785(0xa4)](_0x5ce617),_0x1373ea=JSON[_0x458785(0x76)](_0x53e96b);return _0x1373ea[_0x458785(0xac)]=_0x458785(0x85),_0x1373ea['error']=_0x4587ac,_0x1373ea[_0x458785(0x80)]=new Date()[_0x458785(0x9a)](),await this[_0x458785(0xaa)]['set'](_0x5843cb,JSON[_0x458785(0xa4)](_0x1373ea)),console['log'](_0x458785(0xa7)+_0x42c853+_0x458785(0xb7)+_0x4587ac),!![];}catch(_0x441313){return console[_0x458785(0xad)]('取消MFA验证失败:\x20'+_0x42c853+_0x458785(0x95)+(_0x441313 instanceof Error?_0x441313[_0x458785(0x9e)]:String(_0x441313))),![];}}async[a8_0x1e1a19(0xb0)](_0x415924){const _0xdcbf87=a8_0x1e1a19,_0x2dd034=this['getSessionKey'](_0x415924);try{const _0x790e94=await this[_0xdcbf87(0xaa)][_0xdcbf87(0xb5)](_0x2dd034);return _0x790e94===0x1;}catch(_0x32bd3d){return![];}}async[a8_0x1e1a19(0x84)](){const _0x2a0edf=a8_0x1e1a19;try{const _0x54ece1=await this[_0x2a0edf(0xaa)][_0x2a0edf(0x87)](this['KEY_PREFIX']+'*');return _0x54ece1[_0x2a0edf(0x96)](_0x4cb3a9=>_0x4cb3a9['replace'](this[_0x2a0edf(0xb8)],''));}catch(_0x1bb7bd){return console[_0x2a0edf(0x7e)](_0x2a0edf(0x93),_0x1bb7bd instanceof Error?_0x1bb7bd:String(_0x1bb7bd)),[];}}async['cleanupExpiredRequests'](_0xb17feb=this['DEFAULT_TIMEOUT']){const _0x24676f=a8_0x1e1a19;try{const _0x44ce98=await this[_0x24676f(0xaa)]['keys'](this[_0x24676f(0xb8)]+'*'),_0x17c0cf=new Date();let _0x5a4d4f=0x0;for(const _0x5a0d88 of _0x44ce98){try{const _0x4489cc=await this[_0x24676f(0xaa)][_0x24676f(0xba)](_0x5a0d88);if(!_0x4489cc)continue;const _0x4f94e4=typeof _0x4489cc===_0x24676f(0x83)?_0x4489cc:JSON[_0x24676f(0xa4)](_0x4489cc),_0x15dda4=JSON[_0x24676f(0x76)](_0x4f94e4),_0x57f879=new Date(_0x15dda4[_0x24676f(0x79)]);_0x17c0cf[_0x24676f(0xaf)]()-_0x57f879[_0x24676f(0xaf)]()>_0xb17feb&&(await this['redis'][_0x24676f(0x86)](_0x5a0d88),_0x5a4d4f++);}catch(_0x4c0142){try{await this['redis'][_0x24676f(0x86)](_0x5a0d88),_0x5a4d4f++;}catch(_0x48ba6b){console[_0x24676f(0x7e)](_0x24676f(0xbb)+_0x5a0d88,_0x48ba6b instanceof Error?_0x48ba6b:String(_0x48ba6b));}}}_0x5a4d4f>0x0&&console['log'](_0x24676f(0xb9)+_0x5a4d4f+_0x24676f(0x7a));}catch(_0x1c1f0c){console['error'](_0x24676f(0xb1),_0x1c1f0c instanceof Error?_0x1c1f0c:String(_0x1c1f0c));}}async[a8_0x1e1a19(0x8c)](_0x2a9f38){const _0x3ead9e=a8_0x1e1a19,_0x1dc999=this[_0x3ead9e(0xa0)](_0x2a9f38);try{await this[_0x3ead9e(0xaa)][_0x3ead9e(0x86)](_0x1dc999);}catch(_0x570555){}}async[a8_0x1e1a19(0x8d)](){const _0x4d3399=a8_0x1e1a19;if(this[_0x4d3399(0xaa)]&&typeof this[_0x4d3399(0xaa)]['disconnect']===_0x4d3399(0x7b))await this['redis']['disconnect']();else this[_0x4d3399(0xaa)]&&typeof this[_0x4d3399(0xaa)][_0x4d3399(0xb6)]===_0x4d3399(0x7b)&&await this[_0x4d3399(0xaa)]['quit']();}}function a8_0x107e(_0x51f9da,_0x4f7729){_0x51f9da=_0x51f9da-0x75;const _0x1fa85a=a8_0x1fa8();let _0x107e5b=_0x1fa85a[_0x51f9da];return _0x107e5b;}exports['RedisMFASessionStorage']=RedisMFASessionStorage;
@@ -1 +1 @@
1
- 'use strict';const a9_0x1f2219=a9_0x4d27;(function(_0x16c5e9,_0x550f49){const _0x4ca943=a9_0x4d27,_0x12e9c0=_0x16c5e9();while(!![]){try{const _0x387b7c=-parseInt(_0x4ca943(0x1eb))/0x1+-parseInt(_0x4ca943(0x1e6))/0x2*(parseInt(_0x4ca943(0x1de))/0x3)+parseInt(_0x4ca943(0x1ed))/0x4*(-parseInt(_0x4ca943(0x1ff))/0x5)+parseInt(_0x4ca943(0x1e5))/0x6*(parseInt(_0x4ca943(0x206))/0x7)+parseInt(_0x4ca943(0x1c7))/0x8+parseInt(_0x4ca943(0x1d9))/0x9*(-parseInt(_0x4ca943(0x1e8))/0xa)+parseInt(_0x4ca943(0x1d0))/0xb*(parseInt(_0x4ca943(0x1db))/0xc);if(_0x387b7c===_0x550f49)break;else _0x12e9c0['push'](_0x12e9c0['shift']());}catch(_0x1681d8){_0x12e9c0['push'](_0x12e9c0['shift']());}}}(a9_0x4c12,0xadb2e));var __importDefault=this&&this[a9_0x1f2219(0x1cb)]||function(_0x564b95){return _0x564b95&&_0x564b95['__esModule']?_0x564b95:{'default':_0x564b95};};Object[a9_0x1f2219(0x201)](exports,a9_0x1f2219(0x1fb),{'value':!![]}),exports[a9_0x1f2219(0x1ee)]=void 0x0;const node_fs_1=require(a9_0x1f2219(0x1fc)),node_path_1=__importDefault(require('node:path')),HttpClient_1=require(a9_0x1f2219(0x1d4)),utils_1=require('../utils'),UrlClass_1=require(a9_0x1f2219(0x1d1)),user_1=require(a9_0x1f2219(0x1f4)),sleep_1=require(a9_0x1f2219(0x1bd)),hrv_1=require('./modules/wellness/hrv'),weight_1=require(a9_0x1f2219(0x1cc)),hydration_1=require(a9_0x1f2219(0x1ef)),body_battery_1=require(a9_0x1f2219(0x1ec)),heart_rate_1=require('./modules/wellness/heart-rate'),base_1=require(a9_0x1f2219(0x1bf)),running_1=require(a9_0x1f2219(0x1fa)),cycling_1=require('./modules/activity/cycling'),training_status_1=require(a9_0x1f2219(0x1f5)),device_1=require(a9_0x1f2219(0x1f6)),workout_1=require('./modules/workout'),course_1=require(a9_0x1f2219(0x1b9)),misc_1=require(a9_0x1f2219(0x1c0)),coach_1=require(a9_0x1f2219(0x1bb));class GarminConnectBase{constructor(_0x1dd3ff,_0x12b76e=a9_0x1f2219(0x1c4)){const _0x1537bc=a9_0x1f2219;var _0x207013,_0x3ad0ea;const {username:_0x1405c9,password:_0x3d1ca9}=_0x1dd3ff;if(!_0x1405c9||!_0x3d1ca9)throw new Error(_0x1537bc(0x1f3));this[_0x1537bc(0x1f1)]=_0x1dd3ff,this[_0x1537bc(0x1d8)]=new UrlClass_1[(_0x1537bc(0x1d5))]((_0x207013=_0x1dd3ff===null||_0x1dd3ff===void 0x0?void 0x0:_0x1dd3ff['domain'])!==null&&_0x207013!==void 0x0?_0x207013:_0x12b76e),this[_0x1537bc(0x20a)]=(_0x3ad0ea=_0x1dd3ff===null||_0x1dd3ff===void 0x0?void 0x0:_0x1dd3ff[_0x1537bc(0x20a)])!==null&&_0x3ad0ea!==void 0x0?_0x3ad0ea:_0x12b76e,this[_0x1537bc(0x1c2)]=undefined,this[_0x1537bc(0x1fe)]={},this[_0x1537bc(0x1ba)]=new HttpClient_1[(_0x1537bc(0x1e3))](this[_0x1537bc(0x1d8)],_0x1dd3ff),this[_0x1537bc(0x1ba)][_0x1537bc(0x1d2)]=_0x21a12f=>{const _0x4d65aa=_0x1537bc;this[_0x4d65aa(0x1dc)](_0x21a12f);};}async[a9_0x1f2219(0x205)](_0x33a6e4,_0x2dd6af,_0xe80191){const _0x5de587=a9_0x1f2219;return _0x33a6e4&&_0x2dd6af&&(this[_0x5de587(0x1f1)][_0x5de587(0x1c1)]=_0x33a6e4,this['config'][_0x5de587(0x1ca)]=_0x2dd6af),await this[_0x5de587(0x1ba)][_0x5de587(0x205)](this[_0x5de587(0x1f1)][_0x5de587(0x1c1)],this[_0x5de587(0x1f1)]['password'],_0xe80191),this;}async[a9_0x1f2219(0x1dd)](_0x47092f){const _0x32defb=a9_0x1f2219,_0xd1197c=await(0x0,utils_1[_0x32defb(0x203)])(_0x47092f);!_0xd1197c&&await(0x0,utils_1[_0x32defb(0x207)])(_0x47092f),this[_0x32defb(0x1ba)][_0x32defb(0x1c5)]&&await(0x0,utils_1[_0x32defb(0x1f8)])(node_path_1[_0x32defb(0x200)][_0x32defb(0x1be)](_0x47092f,_0x32defb(0x1bc)),JSON['stringify'](this['client'][_0x32defb(0x1c5)])),this[_0x32defb(0x1ba)]['oauth2Token']&&await(0x0,utils_1['writeToFile'])(node_path_1[_0x32defb(0x200)][_0x32defb(0x1be)](_0x47092f,'oauth2_token.json'),JSON['stringify'](this['client'][_0x32defb(0x204)]));}async[a9_0x1f2219(0x1c3)](_0x12fae9){const _0x5e2dc5=a9_0x1f2219,_0x31165e=await(0x0,utils_1[_0x5e2dc5(0x203)])(_0x12fae9);if(!_0x31165e)throw new Error(_0x5e2dc5(0x1e4)+_0x12fae9);let _0x4f89a0=await node_fs_1[_0x5e2dc5(0x1d6)][_0x5e2dc5(0x1e1)](node_path_1['default'][_0x5e2dc5(0x1be)](_0x12fae9,_0x5e2dc5(0x1bc)),_0x5e2dc5(0x1cf));const _0x243ff4=JSON[_0x5e2dc5(0x1c9)](_0x4f89a0);this[_0x5e2dc5(0x1ba)][_0x5e2dc5(0x1c5)]=_0x243ff4;let _0x499e94=await node_fs_1['promises']['readFile'](node_path_1[_0x5e2dc5(0x200)][_0x5e2dc5(0x1be)](_0x12fae9,_0x5e2dc5(0x208)),_0x5e2dc5(0x1cf));const _0x529b20=JSON[_0x5e2dc5(0x1c9)](_0x499e94);this[_0x5e2dc5(0x1ba)][_0x5e2dc5(0x204)]=_0x529b20;}[a9_0x1f2219(0x1e2)](){const _0x2cfbfb=a9_0x1f2219;if(!this['client'][_0x2cfbfb(0x1c5)]||!this[_0x2cfbfb(0x1ba)][_0x2cfbfb(0x204)])throw new Error('exportToken:\x20Token\x20not\x20found');return{'oauth1':this[_0x2cfbfb(0x1ba)][_0x2cfbfb(0x1c5)],'oauth2':this[_0x2cfbfb(0x1ba)][_0x2cfbfb(0x204)]};}[a9_0x1f2219(0x1f0)](_0x202049,_0x6603f8){const _0x1e3275=a9_0x1f2219;this[_0x1e3275(0x1ba)][_0x1e3275(0x1c5)]=_0x202049,this[_0x1e3275(0x1ba)][_0x1e3275(0x204)]=_0x6603f8;}[a9_0x1f2219(0x1ea)](_0x16240b){const _0x591cb6=a9_0x1f2219;!this['listeners'][_0x591cb6(0x1f7)]&&(this[_0x591cb6(0x1fe)][_0x591cb6(0x1f7)]=[]),this[_0x591cb6(0x1fe)][_0x591cb6(0x1f7)][_0x591cb6(0x1da)](_0x16240b);}['emitSessionChange'](_0x4501de){const _0x3a2721=a9_0x1f2219,_0x50486c=this[_0x3a2721(0x1fe)][_0x3a2721(0x1f7)]||[];for(const _0x40bd49 of _0x50486c){try{_0x40bd49(_0x4501de);}catch(_0x27e4f2){console['error'](_0x3a2721(0x1e9),_0x27e4f2);}}}async[a9_0x1f2219(0x1ce)](){const _0x35f5e6=a9_0x1f2219;return this[_0x35f5e6(0x1ba)][_0x35f5e6(0x209)](this[_0x35f5e6(0x1d8)]['USER_PROFILE']);}}const WithUser=(0x0,user_1[a9_0x1f2219(0x1e7)])(GarminConnectBase),WithSleep=(0x0,sleep_1['applySleepModule'])(WithUser),WithHRV=(0x0,hrv_1['applyHRVModule'])(WithSleep),WithWeight=(0x0,weight_1[a9_0x1f2219(0x1e0)])(WithHRV),WithHydration=(0x0,hydration_1['applyHydrationModule'])(WithWeight),WithBodyBattery=(0x0,body_battery_1['applyBodyBatteryModule'])(WithHydration),WithHeartRate=(0x0,heart_rate_1[a9_0x1f2219(0x1cd)])(WithBodyBattery),WithActivityBase=(0x0,base_1[a9_0x1f2219(0x1f9)])(WithHeartRate),WithRunning=(0x0,running_1[a9_0x1f2219(0x1f2)])(WithActivityBase),WithCycling=(0x0,cycling_1[a9_0x1f2219(0x1c6)])(WithRunning),WithTrainingStatus=(0x0,training_status_1[a9_0x1f2219(0x1d3)])(WithCycling),WithDevice=(0x0,device_1[a9_0x1f2219(0x202)])(WithTrainingStatus),WithWorkout=(0x0,workout_1[a9_0x1f2219(0x1c8)])(WithDevice),WithCourse=(0x0,course_1[a9_0x1f2219(0x1df)])(WithWorkout),WithMisc=(0x0,misc_1[a9_0x1f2219(0x1d7)])(WithCourse),WithCoach=(0x0,coach_1[a9_0x1f2219(0x1fd)])(WithMisc);function a9_0x4d27(_0x132d6d,_0x19d4fe){_0x132d6d=_0x132d6d-0x1b9;const _0x4c12c7=a9_0x4c12();let _0x4d27bf=_0x4c12c7[_0x132d6d];return _0x4d27bf;}class GarminConnect extends WithCoach{}exports[a9_0x1f2219(0x1ee)]=GarminConnect,exports[a9_0x1f2219(0x200)]=GarminConnect;function a9_0x4c12(){const _0x578059=['./modules/activity/training-status','./modules/device','sessionChange','writeToFile','applyActivityBaseModule','./modules/activity/running','__esModule','node:fs','applyCoachModule','listeners','325OGCrlI','default','defineProperty','applyDeviceModule','checkIsDirectory','oauth2Token','login','54397kvOBrH','createDirectory','oauth2_token.json','get','domain','./modules/course','client','./modules/coach','oauth1_token.json','./modules/wellness/sleep','join','./modules/activity/base','./modules/misc','username','_userHash','loadTokenByFile','garmin.com','oauth1Token','applyCyclingModule','9657360LahWrK','applyWorkoutModule','parse','password','__importDefault','./modules/wellness/weight','applyHeartRateModule','getUserProfile','utf-8','22xrPhnu','./UrlClass','onTokenChange','applyTrainingStatusModule','../common/HttpClient','UrlClass','promises','applyMiscModule','url','7032321Cqibox','push','10359144BmSZPP','emitSessionChange','exportTokenToFile','8601yzwwpA','applyCourseModule','applyWeightModule','readFile','exportToken','HttpClient','loadTokenByFile:\x20Directory\x20not\x20found:\x20','822pELxnv','46ucvSQh','applyUserModule','10hzzjqU','sessionChange\x20listener\x20error:','onSessionChange','1318421OVkaxc','./modules/wellness/body-battery','68992JkePvK','GarminConnect','./modules/wellness/hydration','loadToken','config','applyRunningModule','Missing\x20credentials','./modules/user'];a9_0x4c12=function(){return _0x578059;};return a9_0x4c12();}
1
+ 'use strict';function a9_0x4522(_0x49e209,_0x4dbd79){_0x49e209=_0x49e209-0x1ef;const _0x12387c=a9_0x1238();let _0x452282=_0x12387c[_0x49e209];return _0x452282;}const a9_0x3bb249=a9_0x4522;(function(_0xa4cd2e,_0x5bcd73){const _0x2bb1ac=a9_0x4522,_0x1bf1bc=_0xa4cd2e();while(!![]){try{const _0x59f676=-parseInt(_0x2bb1ac(0x230))/0x1*(parseInt(_0x2bb1ac(0x22a))/0x2)+parseInt(_0x2bb1ac(0x216))/0x3*(-parseInt(_0x2bb1ac(0x208))/0x4)+-parseInt(_0x2bb1ac(0x223))/0x5*(-parseInt(_0x2bb1ac(0x1ef))/0x6)+-parseInt(_0x2bb1ac(0x201))/0x7+-parseInt(_0x2bb1ac(0x226))/0x8*(-parseInt(_0x2bb1ac(0x206))/0x9)+-parseInt(_0x2bb1ac(0x237))/0xa+parseInt(_0x2bb1ac(0x221))/0xb;if(_0x59f676===_0x5bcd73)break;else _0x1bf1bc['push'](_0x1bf1bc['shift']());}catch(_0x3001e1){_0x1bf1bc['push'](_0x1bf1bc['shift']());}}}(a9_0x1238,0x62bcf));var __importDefault=this&&this['__importDefault']||function(_0x33d054){const _0x596931=a9_0x4522;return _0x33d054&&_0x33d054[_0x596931(0x222)]?_0x33d054:{'default':_0x33d054};};function a9_0x1238(){const _0x352586=['listeners','applyDeviceModule','./modules/wellness/sleep','exportTokenToFile','./modules/activity/base','loadTokenByFile:\x20Directory\x20not\x20found:\x20','3900806TuhDfv','applyMiscModule','exportToken:\x20Token\x20not\x20found','username','join','6642PWoIsS','writeToFile','1139332XIfBzV','applyCoachModule','./modules/coach','./modules/activity/training-status','Missing\x20credentials','checkIsDirectory','node:path','loadTokenByFile','login','applyCourseModule','applyHydrationModule','password','oauth1_token.json','readFile','3eSqYuY','sessionChange','get','./modules/wellness/hydration','oauth1Token','./UrlClass','./modules/wellness/heart-rate','domain','parse','../utils','applyRunningModule','13981715cciBPA','__esModule','5luwDob','push','onSessionChange','4272tSZBNX','url','onTokenChange','stringify','998566UzZieQ','getUserProfile','applyBodyBatteryModule','garmin.com','./modules/activity/cycling','./modules/misc','1ywhzRq','promises','GarminConnect','./modules/activity/running','applyWeightModule','error','loadToken','2380sbLWGp','node:fs','applyTrainingStatusModule','default','applyHeartRateModule','applyUserModule','./modules/device','./modules/wellness/weight','485316pqjcIJ','oauth2Token','config','oauth2_token.json','./modules/course','applyHRVModule','sessionChange\x20listener\x20error:','defineProperty','emitSessionChange','utf-8','exportToken','client'];a9_0x1238=function(){return _0x352586;};return a9_0x1238();}Object[a9_0x3bb249(0x1f6)](exports,a9_0x3bb249(0x222),{'value':!![]}),exports['GarminConnect']=void 0x0;const node_fs_1=require(a9_0x3bb249(0x238)),node_path_1=__importDefault(require(a9_0x3bb249(0x20e))),HttpClient_1=require('../common/HttpClient'),utils_1=require(a9_0x3bb249(0x21f)),UrlClass_1=require(a9_0x3bb249(0x21b)),user_1=require('./modules/user'),sleep_1=require(a9_0x3bb249(0x1fd)),hrv_1=require('./modules/wellness/hrv'),weight_1=require(a9_0x3bb249(0x23e)),hydration_1=require(a9_0x3bb249(0x219)),body_battery_1=require('./modules/wellness/body-battery'),heart_rate_1=require(a9_0x3bb249(0x21c)),base_1=require(a9_0x3bb249(0x1ff)),running_1=require(a9_0x3bb249(0x233)),cycling_1=require(a9_0x3bb249(0x22e)),training_status_1=require(a9_0x3bb249(0x20b)),device_1=require(a9_0x3bb249(0x23d)),workout_1=require('./modules/workout'),course_1=require(a9_0x3bb249(0x1f3)),misc_1=require(a9_0x3bb249(0x22f)),coach_1=require(a9_0x3bb249(0x20a));class GarminConnectBase{constructor(_0xd805d9,_0x1fdb0e=a9_0x3bb249(0x22d)){const _0x5be8e8=a9_0x3bb249;var _0x195536,_0x4d68a6;const {username:_0x306e0e,password:_0xdbcf0d}=_0xd805d9;if(!_0x306e0e||!_0xdbcf0d)throw new Error(_0x5be8e8(0x20c));this[_0x5be8e8(0x1f1)]=_0xd805d9,this['url']=new UrlClass_1['UrlClass']((_0x195536=_0xd805d9===null||_0xd805d9===void 0x0?void 0x0:_0xd805d9[_0x5be8e8(0x21d)])!==null&&_0x195536!==void 0x0?_0x195536:_0x1fdb0e),this[_0x5be8e8(0x21d)]=(_0x4d68a6=_0xd805d9===null||_0xd805d9===void 0x0?void 0x0:_0xd805d9[_0x5be8e8(0x21d)])!==null&&_0x4d68a6!==void 0x0?_0x4d68a6:_0x1fdb0e,this['_userHash']=undefined,this['listeners']={},this[_0x5be8e8(0x1fa)]=new HttpClient_1['HttpClient'](this[_0x5be8e8(0x227)],_0xd805d9),this[_0x5be8e8(0x1fa)][_0x5be8e8(0x228)]=_0x45c451=>{const _0x2c5409=_0x5be8e8;this[_0x2c5409(0x1f7)](_0x45c451);};}async['login'](_0x1a7f41,_0x3386d4,_0x3f6091){const _0x5f1282=a9_0x3bb249;return _0x1a7f41&&_0x3386d4&&(this[_0x5f1282(0x1f1)][_0x5f1282(0x204)]=_0x1a7f41,this[_0x5f1282(0x1f1)][_0x5f1282(0x213)]=_0x3386d4),await this[_0x5f1282(0x1fa)][_0x5f1282(0x210)](this[_0x5f1282(0x1f1)][_0x5f1282(0x204)],this[_0x5f1282(0x1f1)]['password'],_0x3f6091),this;}async[a9_0x3bb249(0x1fe)](_0x192aa7){const _0x360236=a9_0x3bb249,_0x262bf2=await(0x0,utils_1[_0x360236(0x20d)])(_0x192aa7);!_0x262bf2&&await(0x0,utils_1['createDirectory'])(_0x192aa7),this[_0x360236(0x1fa)]['oauth1Token']&&await(0x0,utils_1[_0x360236(0x207)])(node_path_1[_0x360236(0x23a)][_0x360236(0x205)](_0x192aa7,'oauth1_token.json'),JSON['stringify'](this[_0x360236(0x1fa)][_0x360236(0x21a)])),this[_0x360236(0x1fa)]['oauth2Token']&&await(0x0,utils_1[_0x360236(0x207)])(node_path_1[_0x360236(0x23a)][_0x360236(0x205)](_0x192aa7,_0x360236(0x1f2)),JSON[_0x360236(0x229)](this['client']['oauth2Token']));}async[a9_0x3bb249(0x20f)](_0x6a7feb){const _0x126545=a9_0x3bb249,_0x5ee51e=await(0x0,utils_1['checkIsDirectory'])(_0x6a7feb);if(!_0x5ee51e)throw new Error(_0x126545(0x200)+_0x6a7feb);let _0x42b5a8=await node_fs_1[_0x126545(0x231)]['readFile'](node_path_1['default'][_0x126545(0x205)](_0x6a7feb,_0x126545(0x214)),'utf-8');const _0x1e41a0=JSON[_0x126545(0x21e)](_0x42b5a8);this[_0x126545(0x1fa)][_0x126545(0x21a)]=_0x1e41a0;let _0x155842=await node_fs_1['promises'][_0x126545(0x215)](node_path_1[_0x126545(0x23a)][_0x126545(0x205)](_0x6a7feb,_0x126545(0x1f2)),_0x126545(0x1f8));const _0x1490f5=JSON[_0x126545(0x21e)](_0x155842);this[_0x126545(0x1fa)][_0x126545(0x1f0)]=_0x1490f5;}[a9_0x3bb249(0x1f9)](){const _0x471f44=a9_0x3bb249;if(!this['client'][_0x471f44(0x21a)]||!this[_0x471f44(0x1fa)][_0x471f44(0x1f0)])throw new Error(_0x471f44(0x203));return{'oauth1':this[_0x471f44(0x1fa)][_0x471f44(0x21a)],'oauth2':this[_0x471f44(0x1fa)][_0x471f44(0x1f0)]};}[a9_0x3bb249(0x236)](_0x10732a,_0x3e1bf9){const _0x508d72=a9_0x3bb249;this[_0x508d72(0x1fa)][_0x508d72(0x21a)]=_0x10732a,this[_0x508d72(0x1fa)][_0x508d72(0x1f0)]=_0x3e1bf9;}[a9_0x3bb249(0x225)](_0x4cdfbb){const _0x4cc32c=a9_0x3bb249;!this['listeners'][_0x4cc32c(0x217)]&&(this[_0x4cc32c(0x1fb)]['sessionChange']=[]),this[_0x4cc32c(0x1fb)][_0x4cc32c(0x217)][_0x4cc32c(0x224)](_0x4cdfbb);}[a9_0x3bb249(0x1f7)](_0x56c8ac){const _0x52294b=a9_0x3bb249,_0x216ad5=this[_0x52294b(0x1fb)][_0x52294b(0x217)]||[];for(const _0x1e8c93 of _0x216ad5){try{_0x1e8c93(_0x56c8ac);}catch(_0x34d04a){console[_0x52294b(0x235)](_0x52294b(0x1f5),_0x34d04a);}}}async[a9_0x3bb249(0x22b)](){const _0x50ae57=a9_0x3bb249;return this[_0x50ae57(0x1fa)][_0x50ae57(0x218)](this['url']['USER_PROFILE']);}}const WithUser=(0x0,user_1[a9_0x3bb249(0x23c)])(GarminConnectBase),WithSleep=(0x0,sleep_1['applySleepModule'])(WithUser),WithHRV=(0x0,hrv_1[a9_0x3bb249(0x1f4)])(WithSleep),WithWeight=(0x0,weight_1[a9_0x3bb249(0x234)])(WithHRV),WithHydration=(0x0,hydration_1[a9_0x3bb249(0x212)])(WithWeight),WithBodyBattery=(0x0,body_battery_1[a9_0x3bb249(0x22c)])(WithHydration),WithHeartRate=(0x0,heart_rate_1[a9_0x3bb249(0x23b)])(WithBodyBattery),WithActivityBase=(0x0,base_1['applyActivityBaseModule'])(WithHeartRate),WithRunning=(0x0,running_1[a9_0x3bb249(0x220)])(WithActivityBase),WithCycling=(0x0,cycling_1['applyCyclingModule'])(WithRunning),WithTrainingStatus=(0x0,training_status_1[a9_0x3bb249(0x239)])(WithCycling),WithDevice=(0x0,device_1[a9_0x3bb249(0x1fc)])(WithTrainingStatus),WithWorkout=(0x0,workout_1['applyWorkoutModule'])(WithDevice),WithCourse=(0x0,course_1[a9_0x3bb249(0x211)])(WithWorkout),WithMisc=(0x0,misc_1[a9_0x3bb249(0x202)])(WithCourse),WithCoach=(0x0,coach_1[a9_0x3bb249(0x209)])(WithMisc);class GarminConnect extends WithCoach{}exports[a9_0x3bb249(0x232)]=GarminConnect,exports[a9_0x3bb249(0x23a)]=GarminConnect;
@@ -1 +1 @@
1
- 'use strict';var a10_0x2f1d1c=a10_0x1d2a;(function(_0x45355c,_0x4c08ca){var _0x447d32=a10_0x1d2a,_0x206337=_0x45355c();while(!![]){try{var _0x1cea45=-parseInt(_0x447d32(0x18a))/0x1*(-parseInt(_0x447d32(0x1bc))/0x2)+parseInt(_0x447d32(0x1b3))/0x3*(parseInt(_0x447d32(0x18e))/0x4)+-parseInt(_0x447d32(0x191))/0x5+parseInt(_0x447d32(0x1cc))/0x6+-parseInt(_0x447d32(0x1e5))/0x7+-parseInt(_0x447d32(0x1da))/0x8*(-parseInt(_0x447d32(0x18c))/0x9)+-parseInt(_0x447d32(0x1b6))/0xa*(parseInt(_0x447d32(0x1dd))/0xb);if(_0x1cea45===_0x4c08ca)break;else _0x206337['push'](_0x206337['shift']());}catch(_0x108d54){_0x206337['push'](_0x206337['shift']());}}}(a10_0x2330,0x3ed73));function a10_0x2330(){var _0x41e876=['/metrics-service/metrics/cycling-ability/latest','/modern/import-data','1168090CLCNfV','/gdprconsent-service/feature/','ACTIVITY','GARMIN_SSO','COURSE_OWNER','ACCOUNT_DEVICE_SYNC','/course-service/course/fit/','/sso','/oauth-service/oauth','DOWNLOAD_KML','GARMIN_SSO_ORIGIN','domain','https://connect.','/course-service/course','/weight-service/weight/range/','/course-service/course/favorites','/metrics-service/metrics/maxmet/latest/','SLEEP_DAILY_SUMMARY','SIGNIN_URL','WELLNESS_UPLOAD_STATUS','WORKOUTS','GOLF_SCORECARD_SUMMARY','UPLOAD_FEATURE','__esModule','/userprofile-service/socialProfile','/usersummary-service/stats/bodybattery/daily','/weather','/download-service/files/wellness/','USER_SETTINGS','/gcs-golfcommunity/api/v2/scorecard/detail','GC_API','/weight-service/user-weight','UPDATE_WEIGHT','DAILY_STEPS','5dndXaa','GC_MODERN','1809HDuqzs','DOWNLOAD_WELLNESS','613568GVdKiC','/upload-service/upload/','ADAPTIVE_TRAINING_PLAN','1221695LpEmyA','DAILY_HYDRATION','/metrics-service/metrics/trainingstatus/weekly','/0?elevation=','DOWNLOAD_GPX','USER_PROFILE','RACE_PREDICTIONS_MONTHLY','RUNNING_TOLERANCE','https://connectapi.','BODY_BATTERY_DAILY','LATEST_LACTATE_THRESHOLD','garmin.com','/workout-service/schedule/','/wellness-service/wellness/dailyHeartRate','COURSE_GPX','BASE_URL','/course-service/course/import','/userprofile-service/userprofile/user-settings/','IMPORT_DATA','UPLOAD','/trainingplan-service/trainingplan/fbt-adaptive/','ENDURANCE_SCORE','PERSONAL_RECORDS','/download-service/export/kml/activity/','DAILY_HEART_RATE','CONSENT_GRANT','/usersummary-service/usersummary/hydration/log','/course-service/course/','/metrics-service/metrics/racepredictions/monthly/','/trainingplan-service/trainingplan/plans','/metrics-service/metrics/endurancescore','LOGIN_URL','/userprofile-service/userprofile/personal-information','DOWNLOAD_TCX','3WrGNdr','/modern','HRV_DAILY_SUMMARY','10FDkygm','/usersummary-service/stats/steps/daily/','/course-service/course/gpx/','ACTIVITY_WEATHER','ACTIVITIES','POWER_CURVE','74072HeyPbH','/range/','HYDRATION_LOG','PERSONAL_RECORD_TYPES','/activity-service/activity/','WORKOUT','/metrics-service/metrics/trainingloadbalance/latest','COURSE_FAVORITE','/fitnessstats-service/powerCurve','/download-service/files/activity/','OAUTH_URL','/userpreference-service/account.deviceSync','TRAINING_PLANS','ACTIVITY_LAPS','/download-service/export/tcx/activity/','/usersummary-service/usersummary/hydration/allData','2652516vkOpeO','LATEST_POWER_TO_WEIGHT','STAT_ACTIVITIES','COURSE_FIT','/gcs-golfcommunity/api/v2/scorecard/summary','CALENDAR','TRAINING_STATUS_DAILY','/biometric-service/biometric/latestLactateThreshold','/web-gateway/device-info/primary-training-device','COURSE','/metrics-service/metrics/runningtolerance/stats','/signin','ACTIVITY_WORKOUTS','/proxy','10992vgRggb','UrlClass','DAILY_SLEEP','4270508JuXCrC','/hrv-service/hrv/daily','/laps','TRAINING_READINESS','defineProperty','PRIMARY_TRAINING_DEVICE'];a10_0x2330=function(){return _0x41e876;};return a10_0x2330();}function a10_0x1d2a(_0x1a563f,_0x583107){_0x1a563f=_0x1a563f-0x16d;var _0x23308e=a10_0x2330();var _0x1d2acd=_0x23308e[_0x1a563f];return _0x1d2acd;}Object[a10_0x2f1d1c(0x1e1)](exports,a10_0x2f1d1c(0x17f),{'value':!![]}),exports[a10_0x2f1d1c(0x1db)]=void 0x0;class UrlClass{constructor(_0x45456f=a10_0x2f1d1c(0x19c)){var _0xe04c2=a10_0x2f1d1c;this[_0xe04c2(0x173)]=_0x45456f,this['GC_MODERN']=_0xe04c2(0x174)+this[_0xe04c2(0x173)]+_0xe04c2(0x1b4),this['GARMIN_SSO_ORIGIN']='https://sso.'+this[_0xe04c2(0x173)],this[_0xe04c2(0x186)]=_0xe04c2(0x199)+this['domain'];}get[a10_0x2f1d1c(0x1e8)](){var _0x1fb592=a10_0x2f1d1c;return this[_0x1fb592(0x172)]+_0x1fb592(0x16f);}get['GARMIN_SSO_EMBED'](){var _0x22dffd=a10_0x2f1d1c;return this[_0x22dffd(0x172)]+'/sso/embed';}get[a10_0x2f1d1c(0x1a0)](){var _0x2a05a1=a10_0x2f1d1c;return this[_0x2a05a1(0x18b)]+_0x2a05a1(0x1d9);}get[a10_0x2f1d1c(0x17a)](){var _0x1dd71b=a10_0x2f1d1c;return this['GARMIN_SSO']+_0x1dd71b(0x1d7);}get[a10_0x2f1d1c(0x1b0)](){var _0x401795=a10_0x2f1d1c;return this[_0x401795(0x1e8)]+'/login';}get[a10_0x2f1d1c(0x1c6)](){var _0x1c2a94=a10_0x2f1d1c;return this['GC_API']+_0x1c2a94(0x170);}get[a10_0x2f1d1c(0x184)](){var _0x4b1768=a10_0x2f1d1c;return this[_0x4b1768(0x186)]+_0x4b1768(0x1a2);}get[a10_0x2f1d1c(0x196)](){var _0x19560a=a10_0x2f1d1c;return this[_0x19560a(0x186)]+_0x19560a(0x180);}get[a10_0x2f1d1c(0x1ba)](){var _0x5c479a=a10_0x2f1d1c;return this[_0x5c479a(0x186)]+'/activitylist-service/activities/search/activities';}get[a10_0x2f1d1c(0x1e7)](){var _0x47412e=a10_0x2f1d1c;return this['GC_API']+_0x47412e(0x1c0);}[a10_0x2f1d1c(0x1c9)](_0x489db3){var _0x1169fb=a10_0x2f1d1c;return this[_0x1169fb(0x186)]+_0x1169fb(0x1c0)+_0x489db3+_0x1169fb(0x1df);}[a10_0x2f1d1c(0x1b9)](_0x309263){var _0x1fad47=a10_0x2f1d1c;return this[_0x1fad47(0x186)]+_0x1fad47(0x1c0)+_0x309263+_0x1fad47(0x182);}[a10_0x2f1d1c(0x1d8)](_0x5b4231){var _0x45b94a=a10_0x2f1d1c;return this[_0x45b94a(0x186)]+'/activity-service/activity/'+_0x5b4231+'/workouts';}get[a10_0x2f1d1c(0x1ce)](){return this['GC_API']+'/fitnessstats-service/activity';}get['DOWNLOAD_ZIP'](){var _0x599625=a10_0x2f1d1c;return this[_0x599625(0x186)]+_0x599625(0x1c5);}get[a10_0x2f1d1c(0x195)](){return this['GC_API']+'/download-service/export/gpx/activity/';}get[a10_0x2f1d1c(0x1b2)](){var _0x147490=a10_0x2f1d1c;return this['GC_API']+_0x147490(0x1ca);}get[a10_0x2f1d1c(0x171)](){var _0x44eef7=a10_0x2f1d1c;return this[_0x44eef7(0x186)]+_0x44eef7(0x1a8);}get[a10_0x2f1d1c(0x1a4)](){var _0x2572fd=a10_0x2f1d1c;return this[_0x2572fd(0x186)]+_0x2572fd(0x18f);}get[a10_0x2f1d1c(0x18d)](){var _0x31350e=a10_0x2f1d1c;return this[_0x31350e(0x186)]+_0x31350e(0x183);}get[a10_0x2f1d1c(0x1a3)](){var _0x240e3a=a10_0x2f1d1c;return this[_0x240e3a(0x186)]+_0x240e3a(0x1e4);}get[a10_0x2f1d1c(0x189)](){var _0x48d53a=a10_0x2f1d1c;return this[_0x48d53a(0x186)]+_0x48d53a(0x1b7);}get[a10_0x2f1d1c(0x1dc)](){var _0x5097e9=a10_0x2f1d1c;return this[_0x5097e9(0x186)]+'/sleep-service/sleep/dailySleepData';}get[a10_0x2f1d1c(0x179)](){var _0x4553e9=a10_0x2f1d1c;return this[_0x4553e9(0x186)]+'/sleep-service/stats/sleep/daily';}get['HRV'](){var _0x40b8bd=a10_0x2f1d1c;return this[_0x40b8bd(0x186)]+'/hrv-service/hrv';}get[a10_0x2f1d1c(0x1b5)](){var _0x1f9401=a10_0x2f1d1c;return this[_0x1f9401(0x186)]+_0x1f9401(0x1de);}get[a10_0x2f1d1c(0x1d2)](){return this['GC_API']+'/metrics-service/metrics/trainingstatus/daily';}get['TRAINING_STATUS_WEEKLY'](){var _0x2c7a5e=a10_0x2f1d1c;return this[_0x2c7a5e(0x186)]+_0x2c7a5e(0x193);}get['TRAINING_LOAD_BALANCE'](){var _0x3968c8=a10_0x2f1d1c;return this[_0x3968c8(0x186)]+_0x3968c8(0x1c2);}get[a10_0x2f1d1c(0x1e0)](){var _0x2ff94f=a10_0x2f1d1c;return this[_0x2ff94f(0x186)]+'/metrics-service/metrics/trainingreadiness';}get[a10_0x2f1d1c(0x1a6)](){var _0x37fb5a=a10_0x2f1d1c;return this['GC_API']+_0x37fb5a(0x1af);}get[a10_0x2f1d1c(0x198)](){var _0x5d1c1d=a10_0x2f1d1c;return this[_0x5d1c1d(0x186)]+_0x5d1c1d(0x1d6);}[a10_0x2f1d1c(0x197)](_0x45f4f0){var _0x5ce0a6=a10_0x2f1d1c;return this[_0x5ce0a6(0x186)]+_0x5ce0a6(0x1ad)+_0x45f4f0;}['BIOMETRIC_STAT_RANGE'](_0x5533ea,_0xed00d1,_0x5bfa2e){var _0x1b66a8=a10_0x2f1d1c;return this['GC_API']+'/biometric-service/stats/'+_0x5533ea+_0x1b66a8(0x1bd)+_0xed00d1+'/'+_0x5bfa2e;}get[a10_0x2f1d1c(0x19b)](){var _0x3f515c=a10_0x2f1d1c;return this['GC_API']+_0x3f515c(0x1d3);}get['PERSONAL_INFO'](){var _0x389fad=a10_0x2f1d1c;return this[_0x389fad(0x186)]+_0x389fad(0x1b1);}get['DAILY_WEIGHT'](){var _0x2b65b4=a10_0x2f1d1c;return this[_0x2b65b4(0x186)]+'/weight-service/weight/dayview';}['WEIGHT_RANGE'](_0x3cbf66,_0x596210){var _0x4393e6=a10_0x2f1d1c;return this['GC_API']+_0x4393e6(0x176)+_0x3cbf66+'/'+_0x596210;}get[a10_0x2f1d1c(0x188)](){var _0x28eaae=a10_0x2f1d1c;return this[_0x28eaae(0x186)]+_0x28eaae(0x187);}get['UPLOAD_FITBIT_CSV'](){var _0x13fcc1=a10_0x2f1d1c;return this[_0x13fcc1(0x186)]+'/upload-service/upload/fitbit/csv';}[a10_0x2f1d1c(0x17e)](_0x2949fc){var _0x16d4ae=a10_0x2f1d1c;return this[_0x16d4ae(0x186)]+_0x16d4ae(0x1e6)+_0x2949fc;}[a10_0x2f1d1c(0x17b)](_0x4bb656,_0x2de041,_0xc1455c){var _0x47df43=a10_0x2f1d1c;return this[_0x47df43(0x186)]+'/wellness-service/wellness/status/'+_0x4bb656+'/'+_0x2de041+'/'+_0xc1455c;}get[a10_0x2f1d1c(0x192)](){var _0x46a6d4=a10_0x2f1d1c;return this[_0x46a6d4(0x186)]+_0x46a6d4(0x1cb);}get[a10_0x2f1d1c(0x1be)](){var _0x59b557=a10_0x2f1d1c;return this['GC_API']+_0x59b557(0x1ab);}get[a10_0x2f1d1c(0x17d)](){var _0x21af26=a10_0x2f1d1c;return this[_0x21af26(0x186)]+_0x21af26(0x1d0);}get['GOLF_SCORECARD_DETAIL'](){var _0x356425=a10_0x2f1d1c;return this['GC_API']+_0x356425(0x185);}get[a10_0x2f1d1c(0x1a9)](){var _0x21ce06=a10_0x2f1d1c;return this[_0x21ce06(0x186)]+_0x21ce06(0x19e);}[a10_0x2f1d1c(0x1c1)](_0x57ef6c){var _0x33a740=a10_0x2f1d1c;if(_0x57ef6c)return this[_0x33a740(0x186)]+'/workout-service/workout/'+_0x57ef6c;return this[_0x33a740(0x186)]+'/workout-service/workout';}get[a10_0x2f1d1c(0x17c)](){return this['GC_API']+'/workout-service/workouts';}get['SCHEDULE_WORKOUTS'](){var _0x413302=a10_0x2f1d1c;return this[_0x413302(0x186)]+_0x413302(0x19d);}get[a10_0x2f1d1c(0x1c8)](){var _0x4fd4a1=a10_0x2f1d1c;return this[_0x4fd4a1(0x186)]+_0x4fd4a1(0x1ae);}['TRAINING_PLAN'](_0x1c5767){return this['GC_API']+'/trainingplan-service/trainingplan/phased/'+_0x1c5767;}[a10_0x2f1d1c(0x190)](_0x6d2a2c){var _0x2f98f2=a10_0x2f1d1c;return this[_0x2f98f2(0x186)]+_0x2f98f2(0x1a5)+_0x6d2a2c;}[a10_0x2f1d1c(0x1d1)](_0x404e91,_0x2a28ea){var _0x307f6d=a10_0x2f1d1c;return this[_0x307f6d(0x186)]+'/calendar-service/year/'+_0x404e91+'/month/'+_0x2a28ea;}[a10_0x2f1d1c(0x1d5)](_0x2cf860){var _0x3337f6=a10_0x2f1d1c;if(_0x2cf860)return this[_0x3337f6(0x186)]+_0x3337f6(0x1ac)+_0x2cf860;return this['GC_API']+_0x3337f6(0x175);}[a10_0x2f1d1c(0x1cf)](_0x394044,_0x9a6f6=!![]){var _0x3c296b=a10_0x2f1d1c;return this[_0x3c296b(0x186)]+_0x3c296b(0x16e)+_0x394044+_0x3c296b(0x194)+_0x9a6f6;}[a10_0x2f1d1c(0x19f)](_0x33301d){var _0x2c2bfc=a10_0x2f1d1c;return this[_0x2c2bfc(0x186)]+_0x2c2bfc(0x1b8)+_0x33301d;}get['COURSE_IMPORT'](){var _0x22e26b=a10_0x2f1d1c;return this['GC_API']+_0x22e26b(0x1a1);}get[a10_0x2f1d1c(0x1c3)](){var _0x22c6cf=a10_0x2f1d1c;return this[_0x22c6cf(0x186)]+_0x22c6cf(0x177);}get[a10_0x2f1d1c(0x1e9)](){var _0xef183=a10_0x2f1d1c;return this[_0xef183(0x186)]+'/web-gateway/course/owner/';}get[a10_0x2f1d1c(0x1aa)](){var _0x37d6e9=a10_0x2f1d1c;return this[_0x37d6e9(0x186)]+'/gdprconsent-service/consent/grant';}get[a10_0x2f1d1c(0x16d)](){var _0x3ce20e=a10_0x2f1d1c;return this[_0x3ce20e(0x186)]+_0x3ce20e(0x1c7);}get[a10_0x2f1d1c(0x1e2)](){var _0x4f0219=a10_0x2f1d1c;return this['GC_API']+_0x4f0219(0x1d4);}get[a10_0x2f1d1c(0x19a)](){var _0x571bc9=a10_0x2f1d1c;return this['GC_API']+_0x571bc9(0x181);}[a10_0x2f1d1c(0x1cd)](_0x2ce932){return this['GC_API']+'/biometric-service/biometric/powerToWeight/latest/'+_0x2ce932;}get['CYCLING_ABILITY'](){var _0x2925c4=a10_0x2f1d1c;return this[_0x2925c4(0x186)]+_0x2925c4(0x1e3);}get[a10_0x2f1d1c(0x1bb)](){var _0x5c4ccc=a10_0x2f1d1c;return this[_0x5c4ccc(0x186)]+_0x5c4ccc(0x1c4);}['MAX_MET_LATEST'](_0x1ec68c){var _0x3332c9=a10_0x2f1d1c;return this[_0x3332c9(0x186)]+_0x3332c9(0x178)+_0x1ec68c;}[a10_0x2f1d1c(0x1bf)](_0x34f59f){return this['GC_API']+'/personalrecord-service/personalrecordtype/prtypes/'+_0x34f59f;}[a10_0x2f1d1c(0x1a7)](_0x37912c){var _0x19bee1=a10_0x2f1d1c;return this[_0x19bee1(0x186)]+'/personalrecord-service/personalrecord/prs/'+_0x37912c+'?includeHistory=false';}}exports[a10_0x2f1d1c(0x1db)]=UrlClass;
1
+ 'use strict';var a10_0x4270a2=a10_0x36db;(function(_0x21ef80,_0x266daf){var _0x5f4d9c=a10_0x36db,_0x238a96=_0x21ef80();while(!![]){try{var _0x45eb6e=parseInt(_0x5f4d9c(0x1d7))/0x1+-parseInt(_0x5f4d9c(0x183))/0x2*(parseInt(_0x5f4d9c(0x1a7))/0x3)+parseInt(_0x5f4d9c(0x1b4))/0x4*(parseInt(_0x5f4d9c(0x1b0))/0x5)+parseInt(_0x5f4d9c(0x1a1))/0x6*(-parseInt(_0x5f4d9c(0x179))/0x7)+-parseInt(_0x5f4d9c(0x174))/0x8+parseInt(_0x5f4d9c(0x17c))/0x9+-parseInt(_0x5f4d9c(0x18c))/0xa*(-parseInt(_0x5f4d9c(0x19c))/0xb);if(_0x45eb6e===_0x266daf)break;else _0x238a96['push'](_0x238a96['shift']());}catch(_0x1f9e72){_0x238a96['push'](_0x238a96['shift']());}}}(a10_0x30ec,0x21e81));function a10_0x30ec(){var _0x2861d9=['/sleep-service/sleep/dailySleepData','TRAINING_LOAD_BALANCE','/metrics-service/metrics/runningtolerance/stats','BIOMETRIC_STAT_RANGE','/download-service/export/gpx/activity/','https://connect.','167453hMDBkS','WELLNESS_UPLOAD_STATUS','/hrv-service/hrv','TRAINING_PLAN','DOWNLOAD_ZIP','GC_MODERN','/metrics-service/metrics/trainingstatus/weekly','GARMIN_SSO','HRV_DAILY_SUMMARY','/userpreference-service/account.deviceSync','/upload-service/upload/','COURSE','/signin','ACCOUNT_DEVICE_SYNC','HYDRATION_LOG','/gdprconsent-service/consent/grant','/course-service/course/','/activitylist-service/activities/search/activities','SIGNIN_URL','COURSE_GPX','/fitnessstats-service/activity','GC_API','/activity-service/activity/','/weight-service/weight/range/','/download-service/files/activity/','TRAINING_READINESS','/download-service/files/wellness/','/hrv-service/hrv/daily','USER_SETTINGS','/course-service/course/gpx/','SLEEP_DAILY_SUMMARY','IMPORT_DATA','/userprofile-service/userprofile/personal-information','/gcs-golfcommunity/api/v2/scorecard/detail','RACE_PREDICTIONS_MONTHLY','/workout-service/workout/','783048vEnimr','https://sso.','/usersummary-service/usersummary/hydration/log','/month/','COURSE_OWNER','42833ZEUTmP','/modern/import-data','/login','443007neYIrV','BASE_URL','UPLOAD_FEATURE','/trainingplan-service/trainingplan/phased/','/upload-service/upload/fitbit/csv','RUNNING_TOLERANCE','/workout-service/workout','2RFwALc','/trainingplan-service/trainingplan/fbt-adaptive/','/workout-service/workouts','/metrics-service/metrics/racepredictions/monthly/','/wellness-service/wellness/status/','/metrics-service/metrics/maxmet/latest/','?includeHistory=false','UrlClass','COURSE_FIT','1275270vybpBI','PERSONAL_INFO','HRV','/course-service/course','TRAINING_STATUS_DAILY','ENDURANCE_SCORE','COURSE_FAVORITE','/metrics-service/metrics/endurancescore','POWER_CURVE','/web-gateway/device-info/primary-training-device','/sso','ACTIVITY_LAPS','TRAINING_PLANS','/gcs-golfcommunity/api/v2/scorecard/summary','DAILY_WEIGHT','/weather','11DKTmYg','ACTIVITY_WORKOUTS','/trainingplan-service/trainingplan/plans','ACTIVITY','MAX_MET_LATEST','72hmLHnZ','/biometric-service/biometric/powerToWeight/latest/','CONSENT_GRANT','/calendar-service/year/','PERSONAL_RECORDS','https://connectapi.','597111swKxif','LOGIN_URL','/personalrecord-service/personalrecordtype/prtypes/','garmin.com','/fitnessstats-service/powerCurve','OAUTH_URL','UPLOAD','/modern','DOWNLOAD_WELLNESS','40OBSzFq','DAILY_HEART_RATE','/metrics-service/metrics/trainingloadbalance/latest','USER_PROFILE','82512kHlBGt','domain','GARMIN_SSO_ORIGIN','WEIGHT_RANGE','/oauth-service/oauth','/metrics-service/metrics/trainingreadiness','UPDATE_WEIGHT','/personalrecord-service/personalrecord/prs/','/usersummary-service/stats/bodybattery/daily','/biometric-service/biometric/latestLactateThreshold','STAT_ACTIVITIES','TRAINING_STATUS_WEEKLY','/course-service/course/import','/range/','/sleep-service/stats/sleep/daily','DAILY_HYDRATION','GOLF_SCORECARD_SUMMARY','DOWNLOAD_GPX','ACTIVITY_WEATHER','ACTIVITIES','/biometric-service/stats/','/gdprconsent-service/feature/','GARMIN_SSO_EMBED','WORKOUT','WORKOUTS','/userprofile-service/userprofile/user-settings/','/wellness-service/wellness/dailyHeartRate','/userprofile-service/socialProfile','/proxy'];a10_0x30ec=function(){return _0x2861d9;};return a10_0x30ec();}function a10_0x36db(_0x3e52b3,_0x238be8){_0x3e52b3=_0x3e52b3-0x156;var _0x30ec2b=a10_0x30ec();var _0x36db73=_0x30ec2b[_0x3e52b3];return _0x36db73;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['UrlClass']=void 0x0;class UrlClass{constructor(_0x3bd435=a10_0x4270a2(0x1aa)){var _0x551e37=a10_0x4270a2;this['domain']=_0x3bd435,this[_0x551e37(0x1dc)]=_0x551e37(0x1d6)+this[_0x551e37(0x1b5)]+_0x551e37(0x1ae),this[_0x551e37(0x1b6)]=_0x551e37(0x175)+this[_0x551e37(0x1b5)],this[_0x551e37(0x165)]=_0x551e37(0x1a6)+this[_0x551e37(0x1b5)];}get[a10_0x4270a2(0x157)](){var _0x264061=a10_0x4270a2;return this[_0x264061(0x1b6)]+_0x264061(0x196);}get[a10_0x4270a2(0x1ca)](){var _0x2efa2b=a10_0x4270a2;return this[_0x2efa2b(0x1b6)]+'/sso/embed';}get[a10_0x4270a2(0x17d)](){var _0x1ea2c3=a10_0x4270a2;return this[_0x1ea2c3(0x1dc)]+_0x1ea2c3(0x1d0);}get[a10_0x4270a2(0x162)](){var _0x47cc48=a10_0x4270a2;return this[_0x47cc48(0x157)]+_0x47cc48(0x15c);}get[a10_0x4270a2(0x1a8)](){var _0x2a9485=a10_0x4270a2;return this[_0x2a9485(0x157)]+_0x2a9485(0x17b);}get[a10_0x4270a2(0x1ac)](){var _0x3d7a4d=a10_0x4270a2;return this[_0x3d7a4d(0x165)]+_0x3d7a4d(0x1b8);}get[a10_0x4270a2(0x16c)](){var _0x31aef7=a10_0x4270a2;return this[_0x31aef7(0x165)]+_0x31aef7(0x1cd);}get[a10_0x4270a2(0x1b3)](){var _0x111295=a10_0x4270a2;return this['GC_API']+_0x111295(0x1cf);}get[a10_0x4270a2(0x1c7)](){var _0x27ff4f=a10_0x4270a2;return this[_0x27ff4f(0x165)]+_0x27ff4f(0x161);}get[a10_0x4270a2(0x19f)](){var _0x28467c=a10_0x4270a2;return this['GC_API']+_0x28467c(0x166);}[a10_0x4270a2(0x197)](_0x1fe890){var _0x416076=a10_0x4270a2;return this['GC_API']+_0x416076(0x166)+_0x1fe890+'/laps';}[a10_0x4270a2(0x1c6)](_0x2f79cb){var _0x1afcf3=a10_0x4270a2;return this[_0x1afcf3(0x165)]+_0x1afcf3(0x166)+_0x2f79cb+_0x1afcf3(0x19b);}[a10_0x4270a2(0x19d)](_0x535a97){var _0x4d7702=a10_0x4270a2;return this[_0x4d7702(0x165)]+_0x4d7702(0x166)+_0x535a97+'/workouts';}get[a10_0x4270a2(0x1be)](){var _0x774262=a10_0x4270a2;return this['GC_API']+_0x774262(0x164);}get[a10_0x4270a2(0x1db)](){var _0x5e7731=a10_0x4270a2;return this['GC_API']+_0x5e7731(0x168);}get[a10_0x4270a2(0x1c5)](){var _0x599f42=a10_0x4270a2;return this[_0x599f42(0x165)]+_0x599f42(0x1d5);}get['DOWNLOAD_TCX'](){var _0x2c7098=a10_0x4270a2;return this[_0x2c7098(0x165)]+'/download-service/export/tcx/activity/';}get['DOWNLOAD_KML'](){var _0xde704e=a10_0x4270a2;return this[_0xde704e(0x165)]+'/download-service/export/kml/activity/';}get[a10_0x4270a2(0x1ad)](){var _0x58a508=a10_0x4270a2;return this[_0x58a508(0x165)]+_0x58a508(0x15a);}get[a10_0x4270a2(0x1af)](){var _0x1235ff=a10_0x4270a2;return this[_0x1235ff(0x165)]+_0x1235ff(0x16a);}get[a10_0x4270a2(0x16f)](){var _0x1fca62=a10_0x4270a2;return this[_0x1fca62(0x165)]+_0x1fca62(0x17a);}get['DAILY_STEPS'](){return this['GC_API']+'/usersummary-service/stats/steps/daily/';}get['DAILY_SLEEP'](){var _0x5bafa8=a10_0x4270a2;return this[_0x5bafa8(0x165)]+_0x5bafa8(0x1d1);}get[a10_0x4270a2(0x16e)](){var _0x2f7af5=a10_0x4270a2;return this[_0x2f7af5(0x165)]+_0x2f7af5(0x1c2);}get[a10_0x4270a2(0x18e)](){var _0x1aa2e9=a10_0x4270a2;return this[_0x1aa2e9(0x165)]+_0x1aa2e9(0x1d9);}get[a10_0x4270a2(0x158)](){var _0x25b241=a10_0x4270a2;return this[_0x25b241(0x165)]+_0x25b241(0x16b);}get[a10_0x4270a2(0x190)](){var _0x2bd519=a10_0x4270a2;return this[_0x2bd519(0x165)]+'/metrics-service/metrics/trainingstatus/daily';}get[a10_0x4270a2(0x1bf)](){var _0x4011b0=a10_0x4270a2;return this[_0x4011b0(0x165)]+_0x4011b0(0x156);}get[a10_0x4270a2(0x1d2)](){var _0x177ea1=a10_0x4270a2;return this['GC_API']+_0x177ea1(0x1b2);}get[a10_0x4270a2(0x169)](){var _0x390370=a10_0x4270a2;return this[_0x390370(0x165)]+_0x390370(0x1b9);}get[a10_0x4270a2(0x191)](){var _0xa4c099=a10_0x4270a2;return this[_0xa4c099(0x165)]+_0xa4c099(0x193);}get[a10_0x4270a2(0x181)](){var _0x3c8dae=a10_0x4270a2;return this[_0x3c8dae(0x165)]+_0x3c8dae(0x1d3);}[a10_0x4270a2(0x172)](_0x300ef2){var _0x4effa6=a10_0x4270a2;return this[_0x4effa6(0x165)]+_0x4effa6(0x186)+_0x300ef2;}[a10_0x4270a2(0x1d4)](_0x5e4494,_0x12b4f4,_0x5ffdd3){var _0xd46678=a10_0x4270a2;return this[_0xd46678(0x165)]+_0xd46678(0x1c8)+_0x5e4494+_0xd46678(0x1c1)+_0x12b4f4+'/'+_0x5ffdd3;}get['LATEST_LACTATE_THRESHOLD'](){var _0x3bf036=a10_0x4270a2;return this[_0x3bf036(0x165)]+_0x3bf036(0x1bd);}get[a10_0x4270a2(0x18d)](){var _0x1893f2=a10_0x4270a2;return this[_0x1893f2(0x165)]+_0x1893f2(0x170);}get[a10_0x4270a2(0x19a)](){var _0x25fb49=a10_0x4270a2;return this[_0x25fb49(0x165)]+'/weight-service/weight/dayview';}[a10_0x4270a2(0x1b7)](_0x4b0128,_0x1a08a1){var _0x16235b=a10_0x4270a2;return this[_0x16235b(0x165)]+_0x16235b(0x167)+_0x4b0128+'/'+_0x1a08a1;}get[a10_0x4270a2(0x1ba)](){var _0x20537e=a10_0x4270a2;return this[_0x20537e(0x165)]+'/weight-service/user-weight';}get['UPLOAD_FITBIT_CSV'](){var _0x8cb9eb=a10_0x4270a2;return this['GC_API']+_0x8cb9eb(0x180);}[a10_0x4270a2(0x17e)](_0x1e5eee){var _0x127827=a10_0x4270a2;return this[_0x127827(0x165)]+_0x127827(0x1c9)+_0x1e5eee;}[a10_0x4270a2(0x1d8)](_0x3d2367,_0x4e6736,_0x4c37eb){var _0x3249a2=a10_0x4270a2;return this[_0x3249a2(0x165)]+_0x3249a2(0x187)+_0x3d2367+'/'+_0x4e6736+'/'+_0x4c37eb;}get[a10_0x4270a2(0x1c3)](){var _0x2ec434=a10_0x4270a2;return this[_0x2ec434(0x165)]+'/usersummary-service/usersummary/hydration/allData';}get[a10_0x4270a2(0x15e)](){var _0x5d604c=a10_0x4270a2;return this[_0x5d604c(0x165)]+_0x5d604c(0x176);}get[a10_0x4270a2(0x1c4)](){var _0x5abf1d=a10_0x4270a2;return this[_0x5abf1d(0x165)]+_0x5abf1d(0x199);}get['GOLF_SCORECARD_DETAIL'](){var _0x5587ab=a10_0x4270a2;return this['GC_API']+_0x5587ab(0x171);}get[a10_0x4270a2(0x1b1)](){var _0x50954b=a10_0x4270a2;return this[_0x50954b(0x165)]+_0x50954b(0x1ce);}[a10_0x4270a2(0x1cb)](_0x46e96c){var _0x3c2bf8=a10_0x4270a2;if(_0x46e96c)return this[_0x3c2bf8(0x165)]+_0x3c2bf8(0x173)+_0x46e96c;return this[_0x3c2bf8(0x165)]+_0x3c2bf8(0x182);}get[a10_0x4270a2(0x1cc)](){var _0x5e2064=a10_0x4270a2;return this['GC_API']+_0x5e2064(0x185);}get['SCHEDULE_WORKOUTS'](){return this['GC_API']+'/workout-service/schedule/';}get[a10_0x4270a2(0x198)](){var _0x2261f1=a10_0x4270a2;return this['GC_API']+_0x2261f1(0x19e);}[a10_0x4270a2(0x1da)](_0x1a99a1){var _0x896951=a10_0x4270a2;return this['GC_API']+_0x896951(0x17f)+_0x1a99a1;}['ADAPTIVE_TRAINING_PLAN'](_0x4493a6){var _0x489de7=a10_0x4270a2;return this[_0x489de7(0x165)]+_0x489de7(0x184)+_0x4493a6;}['CALENDAR'](_0x3d7350,_0x32722f){var _0x3a2ad3=a10_0x4270a2;return this[_0x3a2ad3(0x165)]+_0x3a2ad3(0x1a4)+_0x3d7350+_0x3a2ad3(0x177)+_0x32722f;}[a10_0x4270a2(0x15b)](_0x1c4fd0){var _0x557288=a10_0x4270a2;if(_0x1c4fd0)return this[_0x557288(0x165)]+_0x557288(0x160)+_0x1c4fd0;return this[_0x557288(0x165)]+_0x557288(0x18f);}[a10_0x4270a2(0x18b)](_0x166284,_0x4e1fcf=!![]){return this['GC_API']+'/course-service/course/fit/'+_0x166284+'/0?elevation='+_0x4e1fcf;}[a10_0x4270a2(0x163)](_0x391ef0){var _0x5115a0=a10_0x4270a2;return this[_0x5115a0(0x165)]+_0x5115a0(0x16d)+_0x391ef0;}get['COURSE_IMPORT'](){var _0x1e906d=a10_0x4270a2;return this['GC_API']+_0x1e906d(0x1c0);}get[a10_0x4270a2(0x192)](){return this['GC_API']+'/course-service/course/favorites';}get[a10_0x4270a2(0x178)](){var _0x5884c2=a10_0x4270a2;return this[_0x5884c2(0x165)]+'/web-gateway/course/owner/';}get[a10_0x4270a2(0x1a3)](){var _0x46942c=a10_0x4270a2;return this[_0x46942c(0x165)]+_0x46942c(0x15f);}get[a10_0x4270a2(0x15d)](){var _0x3d195b=a10_0x4270a2;return this[_0x3d195b(0x165)]+_0x3d195b(0x159);}get['PRIMARY_TRAINING_DEVICE'](){var _0x3c758a=a10_0x4270a2;return this['GC_API']+_0x3c758a(0x195);}get['BODY_BATTERY_DAILY'](){var _0x51f8e2=a10_0x4270a2;return this[_0x51f8e2(0x165)]+_0x51f8e2(0x1bc);}['LATEST_POWER_TO_WEIGHT'](_0x38fdf8){var _0x5af447=a10_0x4270a2;return this[_0x5af447(0x165)]+_0x5af447(0x1a2)+_0x38fdf8;}get['CYCLING_ABILITY'](){var _0x522d48=a10_0x4270a2;return this[_0x522d48(0x165)]+'/metrics-service/metrics/cycling-ability/latest';}get[a10_0x4270a2(0x194)](){var _0xbbecb1=a10_0x4270a2;return this[_0xbbecb1(0x165)]+_0xbbecb1(0x1ab);}[a10_0x4270a2(0x1a0)](_0x5ea1ea){var _0x28cbb1=a10_0x4270a2;return this[_0x28cbb1(0x165)]+_0x28cbb1(0x188)+_0x5ea1ea;}['PERSONAL_RECORD_TYPES'](_0xd55e0f){var _0x2e2864=a10_0x4270a2;return this[_0x2e2864(0x165)]+_0x2e2864(0x1a9)+_0xd55e0f;}[a10_0x4270a2(0x1a5)](_0x389393){var _0x3c2bbf=a10_0x4270a2;return this[_0x3c2bbf(0x165)]+_0x3c2bbf(0x1bb)+_0x389393+_0x3c2bbf(0x189);}}exports[a10_0x4270a2(0x18a)]=UrlClass;
@@ -1 +1 @@
1
- 'use strict';function a11_0xe77c(_0x2e8a2a,_0x23efee){_0x2e8a2a=_0x2e8a2a-0x17b;const _0x539ab3=a11_0x539a();let _0xe77cca=_0x539ab3[_0x2e8a2a];return _0xe77cca;}const a11_0x40e38e=a11_0xe77c;(function(_0x28207b,_0x898219){const _0x1e1287=a11_0xe77c,_0x3cf1d1=_0x28207b();while(!![]){try{const _0x5a171b=parseInt(_0x1e1287(0x186))/0x1*(parseInt(_0x1e1287(0x182))/0x2)+parseInt(_0x1e1287(0x187))/0x3+parseInt(_0x1e1287(0x17b))/0x4*(parseInt(_0x1e1287(0x17c))/0x5)+parseInt(_0x1e1287(0x188))/0x6+parseInt(_0x1e1287(0x17f))/0x7+-parseInt(_0x1e1287(0x180))/0x8+parseInt(_0x1e1287(0x18c))/0x9*(-parseInt(_0x1e1287(0x18f))/0xa);if(_0x5a171b===_0x898219)break;else _0x3cf1d1['push'](_0x3cf1d1['shift']());}catch(_0x563e23){_0x3cf1d1['push'](_0x3cf1d1['shift']());}}}(a11_0x539a,0x36aa2));Object[a11_0x40e38e(0x183)](exports,a11_0x40e38e(0x18e),{'value':!![]}),exports[a11_0x40e38e(0x181)]=exports[a11_0x40e38e(0x18a)]=exports[a11_0x40e38e(0x184)]=exports['toDateString']=void 0x0;function toDateString(_0x5a6ef6){const _0x337746=a11_0x40e38e,_0x47ac6c=_0x5a6ef6[_0x337746(0x185)](),_0xecfa9f=new Date(_0x5a6ef6[_0x337746(0x17d)]()-_0x47ac6c*0x3c*0x3e8),[_0x2ecf2f]=_0xecfa9f[_0x337746(0x189)]()['split']('T');return _0x2ecf2f;}exports['toDateString']=toDateString;const toGarminDateString=_0x3def72=>{if(_0x3def72 instanceof Date)return toDateString(_0x3def72);return _0x3def72;};function a11_0x539a(){const _0x5c61ab=['getTime','toLocaleString','2312520ndmfms','1645736edGjLO','getLocalTimestamp','40262nQkcui','defineProperty','toGarminDateString','getTimezoneOffset','19bXhVym','935544qfucJH','40668KiwKdL','toISOString','calculateTimeDifference','floor','9pwPlpM','substring','__esModule','7109510LyJzaI','316qUoSzT','6905XeWCmd'];a11_0x539a=function(){return _0x5c61ab;};return a11_0x539a();}exports[a11_0x40e38e(0x184)]=toGarminDateString;function calculateTimeDifference(_0x3eac6c,_0x13aa1f){const _0x1db8c4=a11_0x40e38e,_0x316810=(_0x13aa1f-_0x3eac6c)/0x3e8,_0x2bec68=Math[_0x1db8c4(0x18b)](_0x316810/0xe10),_0x402868=Math[_0x1db8c4(0x18b)](_0x316810%0xe10/0x3c);return{'hours':_0x2bec68,'minutes':_0x402868};}exports[a11_0x40e38e(0x18a)]=calculateTimeDifference;function getLocalTimestamp(_0x80c99e,_0x55c0a2){const _0xaf530f=a11_0x40e38e,_0x2af449=_0x80c99e['toISOString']()['substring'](0x0,0x17),_0x32d553=new Date(_0x2af449)[_0xaf530f(0x17e)]('en-US',{'timeZone':_0x55c0a2,'hour12':![]}),_0x412f3b=new Date(_0x32d553)[_0xaf530f(0x189)]()[_0xaf530f(0x18d)](0x0,0x17);return _0x412f3b;}exports[a11_0x40e38e(0x181)]=getLocalTimestamp;
1
+ 'use strict';const a11_0x285ae7=a11_0x2a16;(function(_0x3fb6d8,_0x117e32){const _0x1f0fd6=a11_0x2a16,_0x49d6c7=_0x3fb6d8();while(!![]){try{const _0x1c70b2=parseInt(_0x1f0fd6(0x10c))/0x1+-parseInt(_0x1f0fd6(0x107))/0x2+-parseInt(_0x1f0fd6(0x10d))/0x3*(-parseInt(_0x1f0fd6(0x112))/0x4)+-parseInt(_0x1f0fd6(0x113))/0x5*(-parseInt(_0x1f0fd6(0x111))/0x6)+-parseInt(_0x1f0fd6(0xff))/0x7*(-parseInt(_0x1f0fd6(0x110))/0x8)+-parseInt(_0x1f0fd6(0x10f))/0x9+-parseInt(_0x1f0fd6(0x102))/0xa*(parseInt(_0x1f0fd6(0x104))/0xb);if(_0x1c70b2===_0x117e32)break;else _0x49d6c7['push'](_0x49d6c7['shift']());}catch(_0x51e0fb){_0x49d6c7['push'](_0x49d6c7['shift']());}}}(a11_0x54d0,0x9bf95));function a11_0x54d0(){const _0x40c370=['8NiZDlB','95550YZAImP','2460396bUiZPX','290dPxolh','floor','defineProperty','3554404WczrCp','getTime','getTimezoneOffset','20kaVdCM','calculateTimeDifference','8207573VmmzSz','toISOString','substring','1351986wxiHuN','en-US','split','getLocalTimestamp','toGarminDateString','1258128ZkWEBm','3CrEgoN','toDateString','4477509EiHVLG'];a11_0x54d0=function(){return _0x40c370;};return a11_0x54d0();}Object[a11_0x285ae7(0xfe)](exports,'__esModule',{'value':!![]}),exports['getLocalTimestamp']=exports[a11_0x285ae7(0x103)]=exports[a11_0x285ae7(0x10b)]=exports['toDateString']=void 0x0;function a11_0x2a16(_0x29a91b,_0x436e36){_0x29a91b=_0x29a91b-0xfd;const _0x54d029=a11_0x54d0();let _0x2a1604=_0x54d029[_0x29a91b];return _0x2a1604;}function toDateString(_0xe47306){const _0xd40729=a11_0x285ae7,_0x32c091=_0xe47306[_0xd40729(0x101)](),_0x321279=new Date(_0xe47306[_0xd40729(0x100)]()-_0x32c091*0x3c*0x3e8),[_0x42ac24]=_0x321279['toISOString']()[_0xd40729(0x109)]('T');return _0x42ac24;}exports[a11_0x285ae7(0x10e)]=toDateString;const toGarminDateString=_0x5e711b=>{if(_0x5e711b instanceof Date)return toDateString(_0x5e711b);return _0x5e711b;};exports['toGarminDateString']=toGarminDateString;function calculateTimeDifference(_0x120590,_0x388ef6){const _0x484854=a11_0x285ae7,_0x1b1272=(_0x388ef6-_0x120590)/0x3e8,_0x3321bd=Math['floor'](_0x1b1272/0xe10),_0x21537a=Math[_0x484854(0xfd)](_0x1b1272%0xe10/0x3c);return{'hours':_0x3321bd,'minutes':_0x21537a};}exports['calculateTimeDifference']=calculateTimeDifference;function getLocalTimestamp(_0x89e158,_0xe58c25){const _0x14b9bc=a11_0x285ae7,_0x50544a=_0x89e158[_0x14b9bc(0x105)]()[_0x14b9bc(0x106)](0x0,0x17),_0x36c799=new Date(_0x50544a)['toLocaleString'](_0x14b9bc(0x108),{'timeZone':_0xe58c25,'hour12':![]}),_0x280f81=new Date(_0x36c799)[_0x14b9bc(0x105)]()[_0x14b9bc(0x106)](0x0,0x17);return _0x280f81;}exports[a11_0x285ae7(0x10a)]=getLocalTimestamp;
@@ -1 +1 @@
1
- 'use strict';const a12_0xbe78d=a12_0x1f86;function a12_0x1f86(_0x3d910d,_0x521c1f){_0x3d910d=_0x3d910d-0x180;const _0x5a6c98=a12_0x5a6c();let _0x1f8685=_0x5a6c98[_0x3d910d];return _0x1f8685;}(function(_0x3053a5,_0x2b7e16){const _0x3126ff=a12_0x1f86,_0x3caeb3=_0x3053a5();while(!![]){try{const _0x37ad7c=-parseInt(_0x3126ff(0x189))/0x1+parseInt(_0x3126ff(0x182))/0x2*(parseInt(_0x3126ff(0x185))/0x3)+-parseInt(_0x3126ff(0x180))/0x4*(parseInt(_0x3126ff(0x183))/0x5)+parseInt(_0x3126ff(0x184))/0x6+-parseInt(_0x3126ff(0x181))/0x7+parseInt(_0x3126ff(0x18a))/0x8+-parseInt(_0x3126ff(0x188))/0x9;if(_0x37ad7c===_0x2b7e16)break;else _0x3caeb3['push'](_0x3caeb3['shift']());}catch(_0x59cbc6){_0x3caeb3['push'](_0x3caeb3['shift']());}}}(a12_0x5a6c,0xe3a56));function a12_0x5a6c(){const _0x1a498d=['22756347TAzCUp','235988EhnQSQ','4391808vhrarr','389332ZehCCc','2372013ACzggS','528454WAAVlI','5gAGhCQ','10407216vbvyAv','21UcEkiH','convertMLToOunces','convertOuncesToML'];a12_0x5a6c=function(){return _0x1a498d;};return a12_0x5a6c();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a12_0xbe78d(0x187)]=exports[a12_0xbe78d(0x186)]=void 0x0;function convertMLToOunces(_0x5cda90){const _0x942d2=0.033814,_0x141ada=_0x5cda90*_0x942d2;return _0x141ada;}exports[a12_0xbe78d(0x186)]=convertMLToOunces;function convertOuncesToML(_0x368e3d){const _0x4e9b6d=29.5735,_0x4c5da0=_0x368e3d*_0x4e9b6d;return _0x4c5da0;}exports['convertOuncesToML']=convertOuncesToML;
1
+ 'use strict';const a12_0x4da2e5=a12_0x19de;function a12_0x19de(_0x5cc060,_0x1376a3){_0x5cc060=_0x5cc060-0x13f;const _0x47a5e3=a12_0x47a5();let _0x19de94=_0x47a5e3[_0x5cc060];return _0x19de94;}function a12_0x47a5(){const _0x53b4dd=['128704ARJOIF','12414910PIeiqX','658083YCFhcJ','35VVaoZG','1UJAAIg','12NTJHqC','1100803cbMWSk','16jMOvTi','528380eyDSTs','8310016BXdsmq','convertMLToOunces','24UcZGBa','1018492yeHxKk','9OZLqnP','convertOuncesToML','__esModule'];a12_0x47a5=function(){return _0x53b4dd;};return a12_0x47a5();}(function(_0x1b3348,_0x5ea5ba){const _0xd0e17a=a12_0x19de,_0x4c07ce=_0x1b3348();while(!![]){try{const _0x563552=-parseInt(_0xd0e17a(0x14d))/0x1*(-parseInt(_0xd0e17a(0x145))/0x2)+-parseInt(_0xd0e17a(0x14b))/0x3*(parseInt(_0xd0e17a(0x140))/0x4)+-parseInt(_0xd0e17a(0x141))/0x5*(-parseInt(_0xd0e17a(0x144))/0x6)+-parseInt(_0xd0e17a(0x14c))/0x7*(-parseInt(_0xd0e17a(0x149))/0x8)+parseInt(_0xd0e17a(0x146))/0x9*(parseInt(_0xd0e17a(0x14a))/0xa)+-parseInt(_0xd0e17a(0x13f))/0xb+-parseInt(_0xd0e17a(0x14e))/0xc*(parseInt(_0xd0e17a(0x142))/0xd);if(_0x563552===_0x5ea5ba)break;else _0x4c07ce['push'](_0x4c07ce['shift']());}catch(_0x298e5d){_0x4c07ce['push'](_0x4c07ce['shift']());}}}(a12_0x47a5,0x9b8cc));Object['defineProperty'](exports,a12_0x4da2e5(0x148),{'value':!![]}),exports[a12_0x4da2e5(0x147)]=exports[a12_0x4da2e5(0x143)]=void 0x0;function convertMLToOunces(_0x54de38){const _0x2792bd=0.033814,_0x186bdc=_0x54de38*_0x2792bd;return _0x186bdc;}exports[a12_0x4da2e5(0x143)]=convertMLToOunces;function convertOuncesToML(_0xd64319){const _0x38f7e9=29.5735,_0x466953=_0xd64319*_0x38f7e9;return _0x466953;}exports[a12_0x4da2e5(0x147)]=convertOuncesToML;
@@ -1 +1 @@
1
- 'use strict';const a13_0x296298=a13_0x41c4;function a13_0x41c4(_0x5badbb,_0x53d084){_0x5badbb=_0x5badbb-0x7b;const _0x1de21e=a13_0x1de2();let _0x41c4bf=_0x1de21e[_0x5badbb];return _0x41c4bf;}(function(_0x4382e7,_0x10e33f){const _0x1216c4=a13_0x41c4,_0x4b2099=_0x4382e7();while(!![]){try{const _0x57ba7c=-parseInt(_0x1216c4(0x7f))/0x1*(parseInt(_0x1216c4(0x7d))/0x2)+-parseInt(_0x1216c4(0x82))/0x3+parseInt(_0x1216c4(0x84))/0x4*(-parseInt(_0x1216c4(0x7c))/0x5)+-parseInt(_0x1216c4(0x85))/0x6+parseInt(_0x1216c4(0x7e))/0x7*(parseInt(_0x1216c4(0x86))/0x8)+-parseInt(_0x1216c4(0x80))/0x9*(-parseInt(_0x1216c4(0x88))/0xa)+-parseInt(_0x1216c4(0x81))/0xb*(-parseInt(_0x1216c4(0x83))/0xc);if(_0x57ba7c===_0x10e33f)break;else _0x4b2099['push'](_0x4b2099['shift']());}catch(_0x48d90d){_0x4b2099['push'](_0x4b2099['shift']());}}}(a13_0x1de2,0x30167));Object['defineProperty'](exports,a13_0x296298(0x7b),{'value':!![]}),exports[a13_0x296298(0x87)]=void 0x0;function a13_0x1de2(){const _0x21f1d5=['__esModule','312140GZuOqb','4MNolfu','481411asHLuf','24774AkKmWG','243648hANwNN','74800oGAFiN','1026141SlbHQg','1788GmfOUn','24ScBQwI','1037922nkkrfL','8hqWnXT','gramsToPounds','20YDXZtO'];a13_0x1de2=function(){return _0x21f1d5;};return a13_0x1de2();}function gramsToPounds(_0x5b2166){const _0x52b8d5=453.592;return _0x5b2166/_0x52b8d5;}exports[a13_0x296298(0x87)]=gramsToPounds;
1
+ 'use strict';const a13_0x3c1560=a13_0xf848;(function(_0x310707,_0x5a6791){const _0x264f26=a13_0xf848,_0x1201a4=_0x310707();while(!![]){try{const _0x2ab7b7=parseInt(_0x264f26(0x1c4))/0x1+parseInt(_0x264f26(0x1c5))/0x2*(parseInt(_0x264f26(0x1c2))/0x3)+-parseInt(_0x264f26(0x1c7))/0x4+parseInt(_0x264f26(0x1c3))/0x5+parseInt(_0x264f26(0x1c8))/0x6*(-parseInt(_0x264f26(0x1ca))/0x7)+-parseInt(_0x264f26(0x1c9))/0x8*(-parseInt(_0x264f26(0x1bf))/0x9)+-parseInt(_0x264f26(0x1c0))/0xa;if(_0x2ab7b7===_0x5a6791)break;else _0x1201a4['push'](_0x1201a4['shift']());}catch(_0x3253c7){_0x1201a4['push'](_0x1201a4['shift']());}}}(a13_0x464e,0x95ef4));function a13_0xf848(_0x593c94,_0x27f722){_0x593c94=_0x593c94-0x1be;const _0x464e4b=a13_0x464e();let _0xf848b7=_0x464e4b[_0x593c94];return _0xf848b7;}Object[a13_0x3c1560(0x1c1)](exports,a13_0x3c1560(0x1c6),{'value':!![]}),exports[a13_0x3c1560(0x1be)]=void 0x0;function a13_0x464e(){const _0x425262=['2557495SQSVJb','977997bDWgvm','28IAIJSX','__esModule','3178748xrMGDa','298632OmBtBU','8gnTpnk','35dxYfNl','gramsToPounds','10197576tfGAYA','20487330SAoBbV','defineProperty','232254ewITiG'];a13_0x464e=function(){return _0x425262;};return a13_0x464e();}function gramsToPounds(_0x22ac9c){const _0x7b2141=453.592;return _0x22ac9c/_0x7b2141;}exports[a13_0x3c1560(0x1be)]=gramsToPounds;
@@ -1 +1 @@
1
- 'use strict';const a14_0x169adf=a14_0x2f41;(function(_0x115a55,_0x153a25){const _0x2333b1=a14_0x2f41,_0x4d7e09=_0x115a55();while(!![]){try{const _0x5261eb=-parseInt(_0x2333b1(0x187))/0x1*(parseInt(_0x2333b1(0x197))/0x2)+parseInt(_0x2333b1(0x18a))/0x3*(-parseInt(_0x2333b1(0x180))/0x4)+parseInt(_0x2333b1(0x130))/0x5+-parseInt(_0x2333b1(0x16d))/0x6+-parseInt(_0x2333b1(0x141))/0x7*(-parseInt(_0x2333b1(0x183))/0x8)+parseInt(_0x2333b1(0x16c))/0x9*(parseInt(_0x2333b1(0x18c))/0xa)+-parseInt(_0x2333b1(0x172))/0xb*(parseInt(_0x2333b1(0x15b))/0xc);if(_0x5261eb===_0x153a25)break;else _0x4d7e09['push'](_0x4d7e09['shift']());}catch(_0x28e259){_0x4d7e09['push'](_0x4d7e09['shift']());}}}(a14_0x8120,0x92917));function a14_0x8120(){const _0xd03129=['content-type','groupByEventType','9osncLg','Can\x27t\x20find\x20daily\x20steps\x20for\x20this\x20date.','323670hiLoMC','toFormat','kml','splitSummaries.duration.CLIMB_ACTIVE','__esModule','gpx','uploadActivity\x20-\x20Invalid\x20format:\x20','UPLOAD','getActivityWeather','getActivityStats','splitSummaries.numClimbsAttempted.CLIMB_ACTIVE','26EFqhmv','append','../../../utils','createDirectory','node:path','maxHr','fit','STAT_ACTIVITIES','ACTIVITY_WORKOUTS','metric','/details','toDateString','DOWNLOAD_TCX','endDate','totalSteps','avgSpeed','avgWheelchairCadence','4639230jwcQYH','maxStress','downloadWellnessData','movingDuration','elevationGain','getActivityWorkouts','DateTime','join','avgGroundContactTime','DAILY_STEPS','../../common/DateUtils','close','avgVerticalOscillation','writeToFile','avgHr','userfile','avgStrideLength','2215507EoiFIH','ACTIVITIES','avgRunCadence','default','standardizedUnits','uploadActivity','downloadOriginalActivityData','Missing\x20activityId','form-data','downloadOriginalActivityData\x20-\x20Invalid\x20type:\x20','1970-01-01','find','yyyy-MM-dd','getActivities','url','maxWheelchairCadence','deleteActivity','lifetime','post','now','getHeaders','splitSummaries.noOfSplits.CLIMB_ACTIVE','get','getSteps','createReadStream','extname','742068ffFLqw','maxSpeed','startDate','Error\x20in\x20getActivityStats:\x20','checkIsDirectory','includes','arraybuffer','ACTIVITY_LAPS','zip','ACTIVITY','tcx','__importDefault','client','splitSummaries.numClimbsCompleted.CLIMB_ACTIVE','maxBikeCadence','activityId','luxon','225yRNVdF','1394112VGjPWM','toGarminDateString','groupByParentActivityType','steps','toLowerCase','55rNXnfT','getActivityDetails','ACTIVITY_WEATHER','applyActivityBaseModule','duration','maxRunCadence','beginPackWeight','countActivities','message','avgPower','splitSummaries.numClimbSends.CLIMB_ACTIVE','activityType','splitSummaries.duration.CLIMB_REST','false','165716MQbkFh','calories','defineProperty','8fJMWrp','DOWNLOAD_KML','getActivityLaps','delete','60565Fdjrwa'];a14_0x8120=function(){return _0xd03129;};return a14_0x8120();}var __importDefault=this&&this[a14_0x169adf(0x166)]||function(_0x2fe8c0){const _0x34d847=a14_0x169adf;return _0x2fe8c0&&_0x2fe8c0[_0x34d847(0x190)]?_0x2fe8c0:{'default':_0x2fe8c0};};function a14_0x2f41(_0x7432ce,_0xbe9565){_0x7432ce=_0x7432ce-0x123;const _0x8120ab=a14_0x8120();let _0x2f419a=_0x8120ab[_0x7432ce];return _0x2f419a;}Object[a14_0x169adf(0x182)](exports,a14_0x169adf(0x190),{'value':!![]}),exports['applyActivityBaseModule']=void 0x0;const form_data_1=__importDefault(require(a14_0x169adf(0x149))),lodash_1=__importDefault(require('lodash')),luxon_1=require(a14_0x169adf(0x16b)),node_fs_1=require('node:fs'),node_path_1=__importDefault(require(a14_0x169adf(0x123))),utils_1=require(a14_0x169adf(0x199)),DateUtils_1=require(a14_0x169adf(0x13a)),DEFAULT_ACTIVITY_STATS_METRICS=[a14_0x169adf(0x176),'distance',a14_0x169adf(0x133),a14_0x169adf(0x156),a14_0x169adf(0x18f),'splitSummaries.totalAscent.CLIMB_ACTIVE','splitSummaries.maxElevationGain.CLIMB_ACTIVE',a14_0x169adf(0x196),a14_0x169adf(0x168),a14_0x169adf(0x17c),'splitSummaries.numFalls.CLIMB_ACTIVE',a14_0x169adf(0x181),a14_0x169adf(0x134),'elevationLoss',a14_0x169adf(0x12e),a14_0x169adf(0x15c),'avgGradeAdjustedSpeed',a14_0x169adf(0x13e),a14_0x169adf(0x124),a14_0x169adf(0x143),a14_0x169adf(0x177),'avgBikeCadence',a14_0x169adf(0x169),a14_0x169adf(0x12f),a14_0x169adf(0x150),a14_0x169adf(0x17b),'maxPower',a14_0x169adf(0x13c),a14_0x169adf(0x138),a14_0x169adf(0x140),'avgStress',a14_0x169adf(0x131),a14_0x169adf(0x17e),a14_0x169adf(0x178),a14_0x169adf(0x170)];function applyActivityBaseModule(_0x3d6e3c){const _0x408b9c=a14_0x169adf;return class _0x167176 extends _0x3d6e3c{async[_0x408b9c(0x14e)](_0x5c6150,_0x42a3b9,_0x4a146b,_0x182ca8,_0x435ae5,_0x23277c,_0x3bc367,_0x430654,_0x28d5cf,_0x377231){const _0x5d93e5=_0x408b9c;let _0x2f96a3=await this['client']['get'](this[_0x5d93e5(0x14f)][_0x5d93e5(0x142)],{'params':{'start':_0x5c6150,'limit':_0x42a3b9,'activityType':_0x4a146b,'subActivityType':_0x182ca8,'minDistance':_0x435ae5,'maxDistance':_0x23277c,'excludeChildren':_0x3bc367,'startDate':_0x430654,'endDate':_0x28d5cf,'search':_0x377231}});if(_0x377231){const _0xe98949=_0x377231[_0x5d93e5(0x171)]();_0x2f96a3=_0x2f96a3['filter'](_0x43911a=>_0x43911a['activityName']&&_0x43911a['activityName']['toLowerCase']()[_0x5d93e5(0x160)](_0xe98949));}return _0x2f96a3;}async['getActivity'](_0x579eba){const _0x3e114b=_0x408b9c;if(!_0x579eba[_0x3e114b(0x16a)])throw new Error('Missing\x20activityId');return this['client'][_0x3e114b(0x157)](this[_0x3e114b(0x14f)][_0x3e114b(0x164)]+_0x579eba['activityId']);}async[_0x408b9c(0x173)](_0x3985b6){const _0x16ac4c=_0x408b9c;if(!_0x3985b6['activityId'])throw new Error(_0x16ac4c(0x148));return this[_0x16ac4c(0x167)]['get'](this['url'][_0x16ac4c(0x164)]+_0x3985b6[_0x16ac4c(0x16a)]+_0x16ac4c(0x129),{'params':{'maxChartSize':0x7d0,'maxPolylineSize':0xfa0}});}async[_0x408b9c(0x185)](_0x424bd2){const _0x486983=_0x408b9c;if(!_0x424bd2[_0x486983(0x16a)])throw new Error(_0x486983(0x148));return this[_0x486983(0x167)][_0x486983(0x157)](this[_0x486983(0x14f)][_0x486983(0x162)](_0x424bd2[_0x486983(0x16a)]));}async[_0x408b9c(0x194)](_0x35549e){const _0x962c0=_0x408b9c;if(!_0x35549e[_0x962c0(0x16a)])throw new Error(_0x962c0(0x148));return this[_0x962c0(0x167)][_0x962c0(0x157)](this[_0x962c0(0x14f)][_0x962c0(0x174)](_0x35549e['activityId']));}async[_0x408b9c(0x135)](_0x4fcaa6){const _0x39c67c=_0x408b9c;if(!_0x4fcaa6[_0x39c67c(0x16a)])throw new Error('Missing\x20activityId');return this[_0x39c67c(0x167)][_0x39c67c(0x157)](this['url'][_0x39c67c(0x127)](_0x4fcaa6[_0x39c67c(0x16a)]));}async[_0x408b9c(0x179)](){const _0x193ad8=_0x408b9c;return this[_0x193ad8(0x167)][_0x193ad8(0x157)](this[_0x193ad8(0x14f)][_0x193ad8(0x126)],{'params':{'aggregation':'lifetime','startDate':_0x193ad8(0x14b),'endDate':luxon_1[_0x193ad8(0x136)][_0x193ad8(0x154)]()[_0x193ad8(0x18d)](_0x193ad8(0x14d)),'metric':_0x193ad8(0x176)}});}async[_0x408b9c(0x195)](_0x41c445){const _0x726b7f=_0x408b9c;var _0x2424c8;try{const _0x8951d9=new URLSearchParams();_0x8951d9[_0x726b7f(0x198)]('aggregation',_0x726b7f(0x152)),_0x8951d9['append'](_0x726b7f(0x16f),_0x726b7f(0x17f)),_0x8951d9[_0x726b7f(0x198)](_0x726b7f(0x189),_0x726b7f(0x17f)),_0x8951d9[_0x726b7f(0x198)](_0x726b7f(0x15d),(0x0,DateUtils_1['toGarminDateString'])(_0x41c445[_0x726b7f(0x15d)])),_0x8951d9[_0x726b7f(0x198)](_0x726b7f(0x12c),(0x0,DateUtils_1[_0x726b7f(0x16e)])(_0x41c445[_0x726b7f(0x12c)]));_0x41c445['activityType']&&_0x8951d9[_0x726b7f(0x198)](_0x726b7f(0x17d),_0x41c445[_0x726b7f(0x17d)]);for(const _0x3aabc5 of(_0x2424c8=_0x41c445['metrics'])!==null&&_0x2424c8!==void 0x0?_0x2424c8:DEFAULT_ACTIVITY_STATS_METRICS){_0x8951d9[_0x726b7f(0x198)](_0x726b7f(0x128),_0x3aabc5);}return _0x8951d9['append'](_0x726b7f(0x145),_0x726b7f(0x17f)),this[_0x726b7f(0x167)][_0x726b7f(0x157)](this['url'][_0x726b7f(0x126)],{'params':_0x8951d9});}catch(_0x3d84cf){throw new Error(_0x726b7f(0x15e)+_0x3d84cf[_0x726b7f(0x17a)]);}}async[_0x408b9c(0x132)](_0x5eb94,_0xccf4f6){const _0x4ebdd2=_0x408b9c,_0x2fdd24=(0x0,DateUtils_1[_0x4ebdd2(0x12a)])(_0x5eb94),_0x1e28a7=await(0x0,utils_1[_0x4ebdd2(0x15f)])(_0xccf4f6);!_0x1e28a7&&await(0x0,utils_1[_0x4ebdd2(0x19a)])(_0xccf4f6);let _0x4c8ec6=await this[_0x4ebdd2(0x167)][_0x4ebdd2(0x157)](this[_0x4ebdd2(0x14f)]['DOWNLOAD_WELLNESS']+_0x2fdd24,{'responseType':'arraybuffer'});await(0x0,utils_1[_0x4ebdd2(0x13d)])(node_path_1['default']['join'](_0xccf4f6,_0x2fdd24+'.zip'),_0x4c8ec6);}async[_0x408b9c(0x147)](_0x5de7b5,_0x3351b9,_0x5cbc44=_0x408b9c(0x163)){const _0x111398=_0x408b9c;if(!_0x5de7b5['activityId'])throw new Error(_0x111398(0x148));const _0x52c1c2=await(0x0,utils_1[_0x111398(0x15f)])(_0x3351b9);!_0x52c1c2&&await(0x0,utils_1[_0x111398(0x19a)])(_0x3351b9);let _0x394b35;if(_0x5cbc44===_0x111398(0x165))_0x394b35=await this[_0x111398(0x167)][_0x111398(0x157)](this[_0x111398(0x14f)][_0x111398(0x12b)]+_0x5de7b5[_0x111398(0x16a)]);else{if(_0x5cbc44===_0x111398(0x191))_0x394b35=await this['client']['get'](this[_0x111398(0x14f)]['DOWNLOAD_GPX']+_0x5de7b5['activityId']);else{if(_0x5cbc44===_0x111398(0x18e))_0x394b35=await this['client']['get'](this[_0x111398(0x14f)][_0x111398(0x184)]+_0x5de7b5[_0x111398(0x16a)]);else{if(_0x5cbc44===_0x111398(0x163))_0x394b35=await this[_0x111398(0x167)]['get'](this['url']['DOWNLOAD_ZIP']+_0x5de7b5[_0x111398(0x16a)],{'responseType':_0x111398(0x161)});else throw new Error(_0x111398(0x14a)+_0x5cbc44);}}}await(0x0,utils_1[_0x111398(0x13d)])(node_path_1[_0x111398(0x144)][_0x111398(0x137)](_0x3351b9,_0x5de7b5['activityId']+'.'+_0x5cbc44),_0x394b35);}async[_0x408b9c(0x146)](_0x2c432b,_0x22ee72=_0x408b9c(0x125)){const _0x2f55ad=_0x408b9c;var _0x4b2c52;const _0x305599={'tcx':_0x2f55ad(0x165),'gpx':_0x2f55ad(0x191),'fit':_0x2f55ad(0x125)},_0xc087f4=(_0x4b2c52=_0x22ee72||node_path_1[_0x2f55ad(0x144)][_0x2f55ad(0x15a)](_0x2c432b))===null||_0x4b2c52===void 0x0?void 0x0:_0x4b2c52[_0x2f55ad(0x171)]();if(!lodash_1[_0x2f55ad(0x144)]['includes'](_0x305599,_0xc087f4))throw new Error(_0x2f55ad(0x192)+_0x22ee72);const _0x35ebc1=(0x0,node_fs_1[_0x2f55ad(0x159)])(_0x2c432b),_0x2142b4=new form_data_1['default']();_0x2142b4[_0x2f55ad(0x198)](_0x2f55ad(0x13f),_0x35ebc1);const _0x30cfd7=await this[_0x2f55ad(0x167)][_0x2f55ad(0x153)](this[_0x2f55ad(0x14f)][_0x2f55ad(0x193)]+'.'+_0x22ee72,_0x2142b4,{'headers':{'Content-Type':_0x2142b4[_0x2f55ad(0x155)]()[_0x2f55ad(0x188)]}});return _0x35ebc1[_0x2f55ad(0x13b)](),_0x30cfd7;}async[_0x408b9c(0x151)](_0x3a50d1){const _0xfd0264=_0x408b9c;if(!_0x3a50d1[_0xfd0264(0x16a)])throw new Error(_0xfd0264(0x148));await this[_0xfd0264(0x167)][_0xfd0264(0x186)](this['url'][_0xfd0264(0x164)]+_0x3a50d1[_0xfd0264(0x16a)]);}async[_0x408b9c(0x158)](_0x5ba857=new Date()){const _0x563749=_0x408b9c,_0x561b83=(0x0,DateUtils_1['toDateString'])(_0x5ba857),_0x19cd45=await this[_0x563749(0x167)][_0x563749(0x157)](''+this[_0x563749(0x14f)][_0x563749(0x139)]+_0x561b83+'/'+_0x561b83),_0x338eee=_0x19cd45[_0x563749(0x14c)](({calendarDate:_0x3c6598})=>_0x3c6598===_0x561b83);if(!_0x338eee)throw new Error(_0x563749(0x18b));return _0x338eee[_0x563749(0x12d)];}};}exports[a14_0x169adf(0x175)]=applyActivityBaseModule;
1
+ 'use strict';function a14_0x5e38(){const _0x4c9ea5=['content-type','node:fs','uploadActivity','post','3037040yZhYtH','createReadStream','avgGradeAdjustedSpeed','form-data','ACTIVITIES','get','avgStress','elevationLoss','uploadActivity\x20-\x20Invalid\x20format:\x20','applyActivityBaseModule','steps','getActivity','ACTIVITY','gpx','UPLOAD','includes','DOWNLOAD_GPX','now','DAILY_STEPS','groupByParentActivityType','ACTIVITY_WORKOUTS','toLowerCase','maxHr','avgRunCadence','avgSpeed','__esModule','default','DOWNLOAD_TCX','1970-01-01','toGarminDateString','join','avgVerticalOscillation','message','../../common/DateUtils','592407NUwhEl','getActivityWeather','maxSpeed','DOWNLOAD_ZIP','append','movingDuration','tcx','2092765lguBpq','kml','14581GrxlTm','splitSummaries.numClimbSends.CLIMB_ACTIVE','avgWheelchairCadence','avgPower','14070357cqTXGC','startDate','distance','beginPackWeight','activityName','getActivityDetails','totalSteps','../../../utils','splitSummaries.duration.CLIMB_REST','url','maxPower','DateTime','maxStress','writeToFile','aggregation','__importDefault','ACTIVITY_WEATHER','splitSummaries.maxElevationGain.CLIMB_ACTIVE','.zip','deleteActivity','duration','splitSummaries.duration.CLIMB_ACTIVE','checkIsDirectory','arraybuffer','downloadOriginalActivityData\x20-\x20Invalid\x20type:\x20','splitSummaries.noOfSplits.CLIMB_ACTIVE','avgBikeCadence','DOWNLOAD_KML','endDate','maxBikeCadence','splitSummaries.numClimbsAttempted.CLIMB_ACTIVE','elevationGain','filter','lifetime','downloadOriginalActivityData','activityId','fit','countActivities','5299692jiVlCl','splitSummaries.numClimbsCompleted.CLIMB_ACTIVE','userfile','getHeaders','false','8Evxoae','client','190sQTQnq','standardizedUnits','getActivityWorkouts','getActivities','getActivityStats','luxon','Missing\x20activityId','maxWheelchairCadence','avgGroundContactTime','yyyy-MM-dd','getSteps','4909037PpsUhk','activityType','groupByEventType'];a14_0x5e38=function(){return _0x4c9ea5;};return a14_0x5e38();}const a14_0x35df3f=a14_0x59e4;(function(_0xa9ac23,_0x227550){const _0x87ddb7=a14_0x59e4,_0x41dde2=_0xa9ac23();while(!![]){try{const _0x3091c0=parseInt(_0x87ddb7(0xc0))/0x1*(parseInt(_0x87ddb7(0xf1))/0x2)+-parseInt(_0x87ddb7(0xb7))/0x3+-parseInt(_0x87ddb7(0xef))/0x4*(parseInt(_0x87ddb7(0xbe))/0x5)+-parseInt(_0x87ddb7(0xea))/0x6+-parseInt(_0x87ddb7(0xfc))/0x7+parseInt(_0x87ddb7(0x103))/0x8+parseInt(_0x87ddb7(0xc4))/0x9;if(_0x3091c0===_0x227550)break;else _0x41dde2['push'](_0x41dde2['shift']());}catch(_0x43aa8a){_0x41dde2['push'](_0x41dde2['shift']());}}}(a14_0x5e38,0xad1ba));var __importDefault=this&&this[a14_0x35df3f(0xd3)]||function(_0x4eb3b4){const _0x9b5430=a14_0x35df3f;return _0x4eb3b4&&_0x4eb3b4[_0x9b5430(0xae)]?_0x4eb3b4:{'default':_0x4eb3b4};};Object['defineProperty'](exports,a14_0x35df3f(0xae),{'value':!![]}),exports['applyActivityBaseModule']=void 0x0;const form_data_1=__importDefault(require(a14_0x35df3f(0x106))),lodash_1=__importDefault(require('lodash')),luxon_1=require(a14_0x35df3f(0xf6)),node_fs_1=require(a14_0x35df3f(0x100)),node_path_1=__importDefault(require('node:path')),utils_1=require(a14_0x35df3f(0xcb)),DateUtils_1=require(a14_0x35df3f(0xb6)),DEFAULT_ACTIVITY_STATS_METRICS=[a14_0x35df3f(0xd8),a14_0x35df3f(0xc6),a14_0x35df3f(0xbc),a14_0x35df3f(0xdd),a14_0x35df3f(0xd9),'splitSummaries.totalAscent.CLIMB_ACTIVE',a14_0x35df3f(0xd5),a14_0x35df3f(0xe2),a14_0x35df3f(0xeb),a14_0x35df3f(0xc1),'splitSummaries.numFalls.CLIMB_ACTIVE','calories',a14_0x35df3f(0xe3),a14_0x35df3f(0x10a),a14_0x35df3f(0xad),a14_0x35df3f(0xb9),a14_0x35df3f(0x105),'avgHr',a14_0x35df3f(0xab),a14_0x35df3f(0xac),'maxRunCadence',a14_0x35df3f(0xde),a14_0x35df3f(0xe1),a14_0x35df3f(0xc2),a14_0x35df3f(0xf8),a14_0x35df3f(0xc3),a14_0x35df3f(0xce),a14_0x35df3f(0xb4),a14_0x35df3f(0xf9),'avgStrideLength',a14_0x35df3f(0x109),a14_0x35df3f(0xd0),a14_0x35df3f(0xcc),a14_0x35df3f(0xc7),a14_0x35df3f(0x10d)];function applyActivityBaseModule(_0x86268e){const _0xdfe9b3=a14_0x35df3f;return class _0x32d306 extends _0x86268e{async[_0xdfe9b3(0xf4)](_0x5d7989,_0x2b0001,_0x17ce6e,_0x1535e7,_0x2c4da3,_0xa21ff4,_0x3091ca,_0x3c964b,_0x5b7830,_0x1bcbfa){const _0xf8c362=_0xdfe9b3;let _0x316146=await this['client'][_0xf8c362(0x108)](this[_0xf8c362(0xcd)][_0xf8c362(0x107)],{'params':{'start':_0x5d7989,'limit':_0x2b0001,'activityType':_0x17ce6e,'subActivityType':_0x1535e7,'minDistance':_0x2c4da3,'maxDistance':_0xa21ff4,'excludeChildren':_0x3091ca,'startDate':_0x3c964b,'endDate':_0x5b7830,'search':_0x1bcbfa}});if(_0x1bcbfa){const _0x152cea=_0x1bcbfa[_0xf8c362(0xaa)]();_0x316146=_0x316146[_0xf8c362(0xe4)](_0x3a11cf=>_0x3a11cf[_0xf8c362(0xc8)]&&_0x3a11cf['activityName'][_0xf8c362(0xaa)]()[_0xf8c362(0x112)](_0x152cea));}return _0x316146;}async[_0xdfe9b3(0x10e)](_0x1f143c){const _0x265802=_0xdfe9b3;if(!_0x1f143c[_0x265802(0xe7)])throw new Error('Missing\x20activityId');return this[_0x265802(0xf0)]['get'](this[_0x265802(0xcd)]['ACTIVITY']+_0x1f143c[_0x265802(0xe7)]);}async[_0xdfe9b3(0xc9)](_0x2f7baf){const _0x31cbe6=_0xdfe9b3;if(!_0x2f7baf['activityId'])throw new Error(_0x31cbe6(0xf7));return this[_0x31cbe6(0xf0)][_0x31cbe6(0x108)](this[_0x31cbe6(0xcd)]['ACTIVITY']+_0x2f7baf[_0x31cbe6(0xe7)]+'/details',{'params':{'maxChartSize':0x7d0,'maxPolylineSize':0xfa0}});}async['getActivityLaps'](_0x305ec9){const _0x14fc5c=_0xdfe9b3;if(!_0x305ec9[_0x14fc5c(0xe7)])throw new Error(_0x14fc5c(0xf7));return this[_0x14fc5c(0xf0)]['get'](this[_0x14fc5c(0xcd)]['ACTIVITY_LAPS'](_0x305ec9['activityId']));}async[_0xdfe9b3(0xb8)](_0x30b1f9){const _0x5d0a75=_0xdfe9b3;if(!_0x30b1f9[_0x5d0a75(0xe7)])throw new Error(_0x5d0a75(0xf7));return this[_0x5d0a75(0xf0)][_0x5d0a75(0x108)](this['url'][_0x5d0a75(0xd4)](_0x30b1f9['activityId']));}async[_0xdfe9b3(0xf3)](_0x40fc72){const _0x18c45d=_0xdfe9b3;if(!_0x40fc72['activityId'])throw new Error('Missing\x20activityId');return this['client'][_0x18c45d(0x108)](this[_0x18c45d(0xcd)][_0x18c45d(0xa9)](_0x40fc72[_0x18c45d(0xe7)]));}async[_0xdfe9b3(0xe9)](){const _0x247d3a=_0xdfe9b3;return this['client'][_0x247d3a(0x108)](this[_0x247d3a(0xcd)]['STAT_ACTIVITIES'],{'params':{'aggregation':'lifetime','startDate':_0x247d3a(0xb1),'endDate':luxon_1[_0x247d3a(0xcf)][_0x247d3a(0xa6)]()['toFormat'](_0x247d3a(0xfa)),'metric':'duration'}});}async[_0xdfe9b3(0xf5)](_0x3973ef){const _0x4405dd=_0xdfe9b3;var _0x6e32a4;try{const _0x1bd45c=new URLSearchParams();_0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xd2),_0x4405dd(0xe5)),_0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xa8),_0x4405dd(0xee)),_0x1bd45c['append'](_0x4405dd(0xfe),_0x4405dd(0xee)),_0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xc5),(0x0,DateUtils_1[_0x4405dd(0xb2)])(_0x3973ef[_0x4405dd(0xc5)])),_0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xe0),(0x0,DateUtils_1[_0x4405dd(0xb2)])(_0x3973ef['endDate']));_0x3973ef[_0x4405dd(0xfd)]&&_0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xfd),_0x3973ef[_0x4405dd(0xfd)]);for(const _0x3d8aff of(_0x6e32a4=_0x3973ef['metrics'])!==null&&_0x6e32a4!==void 0x0?_0x6e32a4:DEFAULT_ACTIVITY_STATS_METRICS){_0x1bd45c[_0x4405dd(0xbb)]('metric',_0x3d8aff);}return _0x1bd45c[_0x4405dd(0xbb)](_0x4405dd(0xf2),'false'),this[_0x4405dd(0xf0)]['get'](this[_0x4405dd(0xcd)]['STAT_ACTIVITIES'],{'params':_0x1bd45c});}catch(_0x1eb439){throw new Error('Error\x20in\x20getActivityStats:\x20'+_0x1eb439[_0x4405dd(0xb5)]);}}async['downloadWellnessData'](_0x1ae5a6,_0x4325ef){const _0x1203f9=_0xdfe9b3,_0x10b915=(0x0,DateUtils_1['toDateString'])(_0x1ae5a6),_0x5b1da5=await(0x0,utils_1[_0x1203f9(0xda)])(_0x4325ef);!_0x5b1da5&&await(0x0,utils_1['createDirectory'])(_0x4325ef);let _0x613c03=await this['client'][_0x1203f9(0x108)](this[_0x1203f9(0xcd)]['DOWNLOAD_WELLNESS']+_0x10b915,{'responseType':_0x1203f9(0xdb)});await(0x0,utils_1[_0x1203f9(0xd1)])(node_path_1[_0x1203f9(0xaf)][_0x1203f9(0xb3)](_0x4325ef,_0x10b915+_0x1203f9(0xd6)),_0x613c03);}async[_0xdfe9b3(0xe6)](_0x22a468,_0x42a787,_0x57b5cf='zip'){const _0x1e01bd=_0xdfe9b3;if(!_0x22a468[_0x1e01bd(0xe7)])throw new Error('Missing\x20activityId');const _0xd60a95=await(0x0,utils_1['checkIsDirectory'])(_0x42a787);!_0xd60a95&&await(0x0,utils_1['createDirectory'])(_0x42a787);let _0xf3af45;if(_0x57b5cf===_0x1e01bd(0xbd))_0xf3af45=await this[_0x1e01bd(0xf0)][_0x1e01bd(0x108)](this[_0x1e01bd(0xcd)][_0x1e01bd(0xb0)]+_0x22a468['activityId']);else{if(_0x57b5cf===_0x1e01bd(0x110))_0xf3af45=await this[_0x1e01bd(0xf0)][_0x1e01bd(0x108)](this['url'][_0x1e01bd(0xa5)]+_0x22a468[_0x1e01bd(0xe7)]);else{if(_0x57b5cf===_0x1e01bd(0xbf))_0xf3af45=await this[_0x1e01bd(0xf0)]['get'](this[_0x1e01bd(0xcd)][_0x1e01bd(0xdf)]+_0x22a468[_0x1e01bd(0xe7)]);else{if(_0x57b5cf==='zip')_0xf3af45=await this[_0x1e01bd(0xf0)][_0x1e01bd(0x108)](this['url'][_0x1e01bd(0xba)]+_0x22a468[_0x1e01bd(0xe7)],{'responseType':_0x1e01bd(0xdb)});else throw new Error(_0x1e01bd(0xdc)+_0x57b5cf);}}}await(0x0,utils_1[_0x1e01bd(0xd1)])(node_path_1[_0x1e01bd(0xaf)]['join'](_0x42a787,_0x22a468[_0x1e01bd(0xe7)]+'.'+_0x57b5cf),_0xf3af45);}async[_0xdfe9b3(0x101)](_0x39f53f,_0x5b25b9=_0xdfe9b3(0xe8)){const _0x4786ea=_0xdfe9b3;var _0x57e205;const _0x50b6b9={'tcx':_0x4786ea(0xbd),'gpx':_0x4786ea(0x110),'fit':_0x4786ea(0xe8)},_0x43e2c6=(_0x57e205=_0x5b25b9||node_path_1[_0x4786ea(0xaf)]['extname'](_0x39f53f))===null||_0x57e205===void 0x0?void 0x0:_0x57e205[_0x4786ea(0xaa)]();if(!lodash_1[_0x4786ea(0xaf)][_0x4786ea(0x112)](_0x50b6b9,_0x43e2c6))throw new Error(_0x4786ea(0x10b)+_0x5b25b9);const _0x40dd0b=(0x0,node_fs_1[_0x4786ea(0x104)])(_0x39f53f),_0x4bcf60=new form_data_1[(_0x4786ea(0xaf))]();_0x4bcf60[_0x4786ea(0xbb)](_0x4786ea(0xec),_0x40dd0b);const _0x4e7ea1=await this[_0x4786ea(0xf0)][_0x4786ea(0x102)](this[_0x4786ea(0xcd)][_0x4786ea(0x111)]+'.'+_0x5b25b9,_0x4bcf60,{'headers':{'Content-Type':_0x4bcf60[_0x4786ea(0xed)]()[_0x4786ea(0xff)]}});return _0x40dd0b['close'](),_0x4e7ea1;}async[_0xdfe9b3(0xd7)](_0x4d1325){const _0x18943c=_0xdfe9b3;if(!_0x4d1325['activityId'])throw new Error(_0x18943c(0xf7));await this[_0x18943c(0xf0)]['delete'](this[_0x18943c(0xcd)][_0x18943c(0x10f)]+_0x4d1325[_0x18943c(0xe7)]);}async[_0xdfe9b3(0xfb)](_0x2ff515=new Date()){const _0x578ad8=_0xdfe9b3,_0x1acaa3=(0x0,DateUtils_1['toDateString'])(_0x2ff515),_0x42ac8a=await this[_0x578ad8(0xf0)][_0x578ad8(0x108)](''+this[_0x578ad8(0xcd)][_0x578ad8(0xa7)]+_0x1acaa3+'/'+_0x1acaa3),_0x1e6497=_0x42ac8a['find'](({calendarDate:_0x5c14d7})=>_0x5c14d7===_0x1acaa3);if(!_0x1e6497)throw new Error('Can\x27t\x20find\x20daily\x20steps\x20for\x20this\x20date.');return _0x1e6497[_0x578ad8(0xca)];}};}function a14_0x59e4(_0x4894c5,_0x1c8f27){_0x4894c5=_0x4894c5-0xa5;const _0x5e3847=a14_0x5e38();let _0x59e4a6=_0x5e3847[_0x4894c5];return _0x59e4a6;}exports[a14_0x35df3f(0x10c)]=applyActivityBaseModule;
@@ -1 +1 @@
1
- 'use strict';const a15_0x3fe8b9=a15_0x2359;(function(_0x406bd6,_0x5a9176){const _0xea337f=a15_0x2359,_0x13d90d=_0x406bd6();while(!![]){try{const _0x4b8687=parseInt(_0xea337f(0xda))/0x1*(parseInt(_0xea337f(0xce))/0x2)+parseInt(_0xea337f(0xd6))/0x3*(parseInt(_0xea337f(0xe5))/0x4)+parseInt(_0xea337f(0xcb))/0x5*(parseInt(_0xea337f(0xc9))/0x6)+-parseInt(_0xea337f(0xd0))/0x7*(parseInt(_0xea337f(0xd4))/0x8)+-parseInt(_0xea337f(0xd5))/0x9*(-parseInt(_0xea337f(0xcd))/0xa)+parseInt(_0xea337f(0xd1))/0xb+-parseInt(_0xea337f(0xe4))/0xc;if(_0x4b8687===_0x5a9176)break;else _0x13d90d['push'](_0x13d90d['shift']());}catch(_0x14a72b){_0x13d90d['push'](_0x13d90d['shift']());}}}(a15_0x36f8,0x66aec));function a15_0x2359(_0x543940,_0x3371a7){_0x543940=_0x543940-0xc7;const _0x36f892=a15_0x36f8();let _0x23596a=_0x36f892[_0x543940];return _0x23596a;}Object[a15_0x3fe8b9(0xe6)](exports,a15_0x3fe8b9(0xd9),{'value':!![]}),exports[a15_0x3fe8b9(0xe1)]=void 0x0;const DateUtils_1=require(a15_0x3fe8b9(0xeb));function applyCyclingModule(_0x1b2c28){const _0x56c179=a15_0x3fe8b9;return class _0x454263 extends _0x1b2c28{async[_0x56c179(0xd3)](_0xc05109=new Date()){const _0x18e2d4=_0x56c179;try{const _0xb5ac2b=(0x0,DateUtils_1['toGarminDateString'])(_0xc05109),_0x103b1c=await this[_0x18e2d4(0xc7)][_0x18e2d4(0xd7)](this['url'][_0x18e2d4(0xea)](_0xb5ac2b));return _0x103b1c;}catch(_0x1c5586){throw new Error(_0x18e2d4(0xe7)+_0x1c5586['message']);}}async[_0x56c179(0xcc)](_0x4ab24b,_0x2301f7,_0x37c3db=_0x56c179(0xdd),_0x5e64ba=_0x56c179(0xdc)){const _0x3b2ef9=_0x56c179;try{return this[_0x3b2ef9(0xc7)][_0x3b2ef9(0xd7)](this[_0x3b2ef9(0xcf)]['BIOMETRIC_STAT_RANGE']('powerToWeight',(0x0,DateUtils_1[_0x3b2ef9(0xca)])(_0x4ab24b),(0x0,DateUtils_1[_0x3b2ef9(0xca)])(_0x2301f7)),{'params':{'aggregation':_0x37c3db,'sport':_0x5e64ba}});}catch(_0x4df8bb){throw new Error(_0x3b2ef9(0xe0)+_0x4df8bb[_0x3b2ef9(0xe3)]);}}async[_0x56c179(0xec)](){const _0x26d310=_0x56c179;try{const _0x3b30a8=await this[_0x26d310(0xc7)][_0x26d310(0xd7)](this[_0x26d310(0xcf)][_0x26d310(0xde)]);if(!_0x3b30a8||typeof _0x3b30a8!==_0x26d310(0xdf))return null;return _0x3b30a8;}catch(_0x3d5b10){throw new Error(_0x26d310(0xc8)+_0x3d5b10['message']);}}async[_0x56c179(0xdb)](_0x392d22=_0x56c179(0xdc),_0xaa305c,_0x52d84d){const _0x533850=_0x56c179;try{const _0x4450b7={'sport':_0x392d22};_0xaa305c&&(_0x4450b7[_0x533850(0xd8)]=(0x0,DateUtils_1[_0x533850(0xca)])(_0xaa305c));_0x52d84d&&(_0x4450b7[_0x533850(0xe8)]=(0x0,DateUtils_1[_0x533850(0xca)])(_0x52d84d));const _0x2ecefb=await this['client'][_0x533850(0xd7)](this['url']['POWER_CURVE'],{'params':_0x4450b7});return _0x2ecefb;}catch(_0x20366b){throw new Error(_0x533850(0xd2)+_0x20366b[_0x533850(0xe3)]);}}async['getMaxMet'](_0x1e962e=new Date(),_0x2fa78a){const _0x19c23e=_0x56c179;var _0x383e73;try{const _0x4476ce=(0x0,DateUtils_1[_0x19c23e(0xca)])(_0x1e962e),_0x75792b={};_0x2fa78a&&(_0x75792b['sport']=_0x2fa78a);const _0x4c16be=await this[_0x19c23e(0xc7)]['get'](this[_0x19c23e(0xcf)][_0x19c23e(0xe2)](_0x4476ce),{'params':_0x75792b});return _0x4c16be;}catch(_0x47719b){if((_0x383e73=_0x47719b[_0x19c23e(0xe3)])===null||_0x383e73===void 0x0?void 0x0:_0x383e73['includes']('404'))return null;throw new Error(_0x19c23e(0xe9)+_0x47719b[_0x19c23e(0xe3)]);}}};}function a15_0x36f8(){const _0x13adb3=['object','Error\x20in\x20getPowerToWeightRange:\x20','applyCyclingModule','MAX_MET_LATEST','message','17145780BGiVnb','4FcvUbR','defineProperty','Error\x20in\x20getLatestPowerToWeight:\x20','endDate','Error\x20in\x20getMaxMet:\x20','LATEST_POWER_TO_WEIGHT','../../common/DateUtils','getCyclingAbility','client','Error\x20in\x20getCyclingAbility:\x20','24homYte','toGarminDateString','943105LuQlMK','getPowerToWeightRange','2240230rpRcKV','321836evKXop','url','87836xPymdq','4007421onJbdh','Error\x20in\x20getPowerCurve:\x20','getLatestPowerToWeight','344knrRGL','9JRQsDx','1690185dTuHsL','get','startDate','__esModule','3WUMwtU','getPowerCurve','cycling','weekly','CYCLING_ABILITY'];a15_0x36f8=function(){return _0x13adb3;};return a15_0x36f8();}exports['applyCyclingModule']=applyCyclingModule;
1
+ 'use strict';const a15_0x2bcab2=a15_0x1bb8;(function(_0xb2d70a,_0x565721){const _0x298af4=a15_0x1bb8,_0x26b961=_0xb2d70a();while(!![]){try{const _0xaa397e=-parseInt(_0x298af4(0x8e))/0x1+-parseInt(_0x298af4(0x9c))/0x2+parseInt(_0x298af4(0x7d))/0x3*(-parseInt(_0x298af4(0x83))/0x4)+parseInt(_0x298af4(0x7f))/0x5*(-parseInt(_0x298af4(0x7b))/0x6)+parseInt(_0x298af4(0x9d))/0x7*(parseInt(_0x298af4(0x89))/0x8)+-parseInt(_0x298af4(0x8a))/0x9*(-parseInt(_0x298af4(0x9f))/0xa)+parseInt(_0x298af4(0x81))/0xb;if(_0xaa397e===_0x565721)break;else _0x26b961['push'](_0x26b961['shift']());}catch(_0x57f35d){_0x26b961['push'](_0x26b961['shift']());}}}(a15_0x101e,0xe1197));function a15_0x1bb8(_0x32d9b0,_0x3c9d41){_0x32d9b0=_0x32d9b0-0x7b;const _0x101efd=a15_0x101e();let _0x1bb828=_0x101efd[_0x32d9b0];return _0x1bb828;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a15_0x2bcab2(0x87)]=void 0x0;function a15_0x101e(){const _0x5318c1=['client','23053580DiEqCA','message','218340eCcyxz','Error\x20in\x20getLatestPowerToWeight:\x20','MAX_MET_LATEST','includes','applyCyclingModule','getPowerCurve','5080848njLRXH','27hIjQaP','CYCLING_ABILITY','Error\x20in\x20getCyclingAbility:\x20','object','898974YlUfoq','toGarminDateString','Error\x20in\x20getPowerToWeightRange:\x20','getMaxMet','startDate','weekly','get','../../common/DateUtils','getPowerToWeightRange','Error\x20in\x20getMaxMet:\x20','sport','Error\x20in\x20getPowerCurve:\x20','url','POWER_CURVE','1478350NAIdDD','7mgqrDX','cycling','4751580gaULrH','845796WWTsLl','endDate','18XVjgGw','powerToWeight','45CGdgqV'];a15_0x101e=function(){return _0x5318c1;};return a15_0x101e();}const DateUtils_1=require(a15_0x2bcab2(0x95));function applyCyclingModule(_0x454f56){const _0x523caf=a15_0x2bcab2;return class _0x529b3c extends _0x454f56{async['getLatestPowerToWeight'](_0x119187=new Date()){const _0x9a7c71=a15_0x1bb8;try{const _0x3581f0=(0x0,DateUtils_1['toGarminDateString'])(_0x119187),_0x498c74=await this['client'][_0x9a7c71(0x94)](this['url']['LATEST_POWER_TO_WEIGHT'](_0x3581f0));return _0x498c74;}catch(_0x1eb689){throw new Error(_0x9a7c71(0x84)+_0x1eb689[_0x9a7c71(0x82)]);}}async[_0x523caf(0x96)](_0xfbf6ff,_0x2770da,_0x406af7=_0x523caf(0x93),_0x5839ec=_0x523caf(0x9e)){const _0x405d6d=_0x523caf;try{return this[_0x405d6d(0x80)][_0x405d6d(0x94)](this['url']['BIOMETRIC_STAT_RANGE'](_0x405d6d(0x7e),(0x0,DateUtils_1[_0x405d6d(0x8f)])(_0xfbf6ff),(0x0,DateUtils_1[_0x405d6d(0x8f)])(_0x2770da)),{'params':{'aggregation':_0x406af7,'sport':_0x5839ec}});}catch(_0x205b50){throw new Error(_0x405d6d(0x90)+_0x205b50[_0x405d6d(0x82)]);}}async['getCyclingAbility'](){const _0x5c3d3f=_0x523caf;try{const _0x4c4b4a=await this['client']['get'](this[_0x5c3d3f(0x9a)][_0x5c3d3f(0x8b)]);if(!_0x4c4b4a||typeof _0x4c4b4a!==_0x5c3d3f(0x8d))return null;return _0x4c4b4a;}catch(_0x2728e1){throw new Error(_0x5c3d3f(0x8c)+_0x2728e1['message']);}}async[_0x523caf(0x88)](_0x407ee0=_0x523caf(0x9e),_0xf84515,_0x4c8f90){const _0x2f3c75=_0x523caf;try{const _0x199a85={'sport':_0x407ee0};_0xf84515&&(_0x199a85[_0x2f3c75(0x92)]=(0x0,DateUtils_1[_0x2f3c75(0x8f)])(_0xf84515));_0x4c8f90&&(_0x199a85[_0x2f3c75(0x7c)]=(0x0,DateUtils_1['toGarminDateString'])(_0x4c8f90));const _0x3e7f02=await this[_0x2f3c75(0x80)][_0x2f3c75(0x94)](this[_0x2f3c75(0x9a)][_0x2f3c75(0x9b)],{'params':_0x199a85});return _0x3e7f02;}catch(_0x330664){throw new Error(_0x2f3c75(0x99)+_0x330664['message']);}}async[_0x523caf(0x91)](_0x3bdee3=new Date(),_0x292fcf){const _0x133c63=_0x523caf;var _0x178926;try{const _0x5248a6=(0x0,DateUtils_1['toGarminDateString'])(_0x3bdee3),_0x54bdfb={};_0x292fcf&&(_0x54bdfb[_0x133c63(0x98)]=_0x292fcf);const _0x3264ab=await this[_0x133c63(0x80)]['get'](this[_0x133c63(0x9a)][_0x133c63(0x85)](_0x5248a6),{'params':_0x54bdfb});return _0x3264ab;}catch(_0xb058e9){if((_0x178926=_0xb058e9[_0x133c63(0x82)])===null||_0x178926===void 0x0?void 0x0:_0x178926[_0x133c63(0x86)]('404'))return null;throw new Error(_0x133c63(0x97)+_0xb058e9[_0x133c63(0x82)]);}}};}exports[a15_0x2bcab2(0x87)]=applyCyclingModule;
@@ -1 +1 @@
1
- 'use strict';const a16_0x598cca=a16_0x268a;(function(_0x3b22e6,_0x4f17cf){const _0x39c8e1=a16_0x268a,_0x45379f=_0x3b22e6();while(!![]){try{const _0x1fc097=-parseInt(_0x39c8e1(0xff))/0x1*(parseInt(_0x39c8e1(0xeb))/0x2)+parseInt(_0x39c8e1(0xd6))/0x3+-parseInt(_0x39c8e1(0xd5))/0x4*(-parseInt(_0x39c8e1(0xe5))/0x5)+parseInt(_0x39c8e1(0xcf))/0x6*(parseInt(_0x39c8e1(0xfc))/0x7)+-parseInt(_0x39c8e1(0x102))/0x8*(parseInt(_0x39c8e1(0x105))/0x9)+-parseInt(_0x39c8e1(0xd2))/0xa*(-parseInt(_0x39c8e1(0xf5))/0xb)+parseInt(_0x39c8e1(0xe9))/0xc*(parseInt(_0x39c8e1(0xfb))/0xd);if(_0x1fc097===_0x4f17cf)break;else _0x45379f['push'](_0x45379f['shift']());}catch(_0x4bfb3a){_0x45379f['push'](_0x45379f['shift']());}}}(a16_0xcf0f,0x460c9));function a16_0xcf0f(){const _0x1fbbf2=['from','padStart','toGarminDateString','time5K','/km','updatedDate','monthly','message','106180KCcgFa','floor','BIOMETRIC_STAT_RANGE','../../common/DateUtils','1575816hTXHnj','weekly','26RCspeW','timeMarathon','Error\x20in\x20getLactateThresholdSpeedRange:\x20','client','getLactateThresholdHeartRateRange','defineProperty','getUserProfile','value','getLatestLactateThreshold','localeCompare','11SikuLd','until','sort','join','timeHalfMarathon','getRunningTolerance','13IosxLA','35lxPvmA','Error\x20in\x20getLactateThresholdHeartRateRange:\x20','lactateThresholdHeartRate','44021DTLFPd','map','set','24EyGPeq','all','Error\x20in\x20getRacePredictionsMonthly:\x20','988038GZaTur','getLactateThresholdSpeedRange','Could\x20not\x20retrieve\x20display\x20name\x20for\x20race\x20predictions.','getRunningLactateThreshold','toString','displayName','RUNNING','25614MrUbdf','time10K','url','1562800zhGyFm','getEnduranceScore','applyRunningModule','68OglcNV','1555755jYIQzT','ENDURANCE_SCORE','get','__esModule','getRacePredictionsMonthly','values','LATEST'];a16_0xcf0f=function(){return _0x1fbbf2;};return a16_0xcf0f();}Object[a16_0x598cca(0xf0)](exports,a16_0x598cca(0xd9),{'value':!![]}),exports[a16_0x598cca(0xd4)]=void 0x0;function a16_0x268a(_0x1d1b06,_0x383809){_0x1d1b06=_0x1d1b06-0xcd;const _0xcf0fad=a16_0xcf0f();let _0x268a00=_0xcf0fad[_0x1d1b06];return _0x268a00;}const DateUtils_1=require(a16_0x598cca(0xe8)),lactateThresholdSpeedToPace=_0x2047ab=>{const _0x11ca59=a16_0x598cca,_0x37e4f5=_0x2047ab*0xa,_0x5e2264=0x3e8/_0x37e4f5,_0x50c9f6=Math[_0x11ca59(0xe6)](_0x5e2264/0x3c),_0x48dffc=Math['round'](_0x5e2264%0x3c),_0x10f323=_0x48dffc===0x3c?_0x50c9f6+0x1:_0x50c9f6,_0x29d43c=_0x48dffc===0x3c?0x0:_0x48dffc;return{'speedMetersPerSecond':_0x37e4f5,'paceSecondsPerKilometer':_0x5e2264,'paceMinutesPerKilometer':_0x10f323+':'+_0x29d43c[_0x11ca59(0x109)]()[_0x11ca59(0xde)](0x2,'0')+_0x11ca59(0xe1)};},formatSecondsAsTime=_0x20b87b=>{const _0x692775=a16_0x598cca,_0x41fae1=Math[_0x692775(0xe6)](_0x20b87b/0xe10),_0x2240e6=Math['floor'](_0x20b87b%0xe10/0x3c),_0xc772e0=_0x20b87b%0x3c;return[_0x41fae1,_0x2240e6,_0xc772e0][_0x692775(0x100)](_0x264baf=>_0x264baf['toString']()[_0x692775(0xde)](0x2,'0'))[_0x692775(0xf8)](':');},formatRacePrediction=_0x246b53=>({..._0x246b53,'time5KFormatted':formatSecondsAsTime(_0x246b53[a16_0x598cca(0xe0)]),'time10KFormatted':formatSecondsAsTime(_0x246b53[a16_0x598cca(0xd0)]),'timeHalfMarathonFormatted':formatSecondsAsTime(_0x246b53[a16_0x598cca(0xf9)]),'timeMarathonFormatted':formatSecondsAsTime(_0x246b53[a16_0x598cca(0xec)])});function applyRunningModule(_0x1599a4){const _0x45cde9=a16_0x598cca;return class _0x12aefa extends _0x1599a4{async[_0x45cde9(0xd3)](_0x3fab1e,_0xdd036f){const _0x1932a5=_0x45cde9;if(_0xdd036f===undefined)return this[_0x1932a5(0xee)][_0x1932a5(0xd8)](this[_0x1932a5(0xd1)][_0x1932a5(0xd7)],{'params':{'calendarDate':(0x0,DateUtils_1['toGarminDateString'])(_0x3fab1e)}});return this[_0x1932a5(0xee)][_0x1932a5(0xd8)](this[_0x1932a5(0xd1)][_0x1932a5(0xd7)]+'/stats',{'params':{'startDate':(0x0,DateUtils_1[_0x1932a5(0xdf)])(_0x3fab1e),'endDate':(0x0,DateUtils_1[_0x1932a5(0xdf)])(_0xdd036f),'aggregation':_0x1932a5(0xea)}});}async[_0x45cde9(0xfa)](_0x58aff0,_0x31847d,_0x30046f=_0x45cde9(0xea)){const _0x176c0e=_0x45cde9;return this[_0x176c0e(0xee)]['get'](this['url']['RUNNING_TOLERANCE'],{'params':{'startDate':(0x0,DateUtils_1[_0x176c0e(0xdf)])(_0x58aff0),'endDate':(0x0,DateUtils_1['toGarminDateString'])(_0x31847d),'aggregation':_0x30046f}});}async[_0x45cde9(0xda)](_0x1eaf9c,_0x155813){const _0x18e960=_0x45cde9;try{const _0x44ad34=await this[_0x18e960(0xf1)](),_0x42ff88=_0x44ad34[_0x18e960(0xcd)];if(!_0x42ff88)throw new Error(_0x18e960(0x107));const _0x212ccf=await this[_0x18e960(0xee)][_0x18e960(0xd8)](this[_0x18e960(0xd1)]['RACE_PREDICTIONS_MONTHLY'](_0x42ff88),{'params':{'fromCalendarDate':(0x0,DateUtils_1[_0x18e960(0xdf)])(_0x1eaf9c),'toCalendarDate':(0x0,DateUtils_1[_0x18e960(0xdf)])(_0x155813)}});return _0x212ccf['map'](formatRacePrediction);}catch(_0x4e71ed){throw new Error(_0x18e960(0x104)+_0x4e71ed[_0x18e960(0xe4)]);}}async[_0x45cde9(0x106)](_0x31ef17,_0x46ef64){const _0x3f8726=_0x45cde9;try{return this['client']['get'](this[_0x3f8726(0xd1)][_0x3f8726(0xe7)]('lactateThresholdSpeed',(0x0,DateUtils_1[_0x3f8726(0xdf)])(_0x31ef17),(0x0,DateUtils_1['toGarminDateString'])(_0x46ef64)),{'params':{'aggregation':_0x3f8726(0xe3),'aggregationStrategy':_0x3f8726(0xdc),'sport':_0x3f8726(0xce)}});}catch(_0x30a1e7){throw new Error(_0x3f8726(0xed)+_0x30a1e7[_0x3f8726(0xe4)]);}}async['getLactateThresholdHeartRateRange'](_0x1b27af,_0x201182){const _0x4fc4a3=_0x45cde9;try{return this[_0x4fc4a3(0xee)][_0x4fc4a3(0xd8)](this[_0x4fc4a3(0xd1)][_0x4fc4a3(0xe7)](_0x4fc4a3(0xfe),(0x0,DateUtils_1[_0x4fc4a3(0xdf)])(_0x1b27af),(0x0,DateUtils_1['toGarminDateString'])(_0x201182)),{'params':{'aggregation':_0x4fc4a3(0xe3),'aggregationStrategy':_0x4fc4a3(0xdc),'sport':_0x4fc4a3(0xce)}});}catch(_0x3a96e3){throw new Error(_0x4fc4a3(0xfd)+_0x3a96e3[_0x4fc4a3(0xe4)]);}}async[_0x45cde9(0xf3)](){const _0x19f747=_0x45cde9;try{return this[_0x19f747(0xee)]['get'](this[_0x19f747(0xd1)]['LATEST_LACTATE_THRESHOLD']);}catch(_0x1b73df){throw new Error('Error\x20in\x20getLatestLactateThreshold:\x20'+_0x1b73df['message']);}}async[_0x45cde9(0x108)](_0x3e6e82,_0x33ad72){const _0xeb49da=_0x45cde9;var _0x342cd8,_0x4d76e1;const [_0x3e87ae,_0x32cb2a,_0x3f4876]=await Promise[_0xeb49da(0x103)]([this['getLactateThresholdSpeedRange'](_0x3e6e82,_0x33ad72),this[_0xeb49da(0xef)](_0x3e6e82,_0x33ad72),this[_0xeb49da(0xf3)]()]),_0x38641b=new Map();for(const _0x1f10c5 of _0x3e87ae){const _0x578d26=lactateThresholdSpeedToPace(_0x1f10c5[_0xeb49da(0xf2)]);_0x38641b[_0xeb49da(0x101)](_0x1f10c5[_0xeb49da(0xdd)],{'from':_0x1f10c5['from'],'until':_0x1f10c5[_0xeb49da(0xf6)],'updatedDate':_0x1f10c5[_0xeb49da(0xe2)],'speed':_0x1f10c5['value'],..._0x578d26});}for(const _0x3931e3 of _0x32cb2a){const _0x2bef1b=(_0x342cd8=_0x38641b['get'](_0x3931e3[_0xeb49da(0xdd)]))!==null&&_0x342cd8!==void 0x0?_0x342cd8:{'from':_0x3931e3[_0xeb49da(0xdd)],'until':_0x3931e3[_0xeb49da(0xf6)]};_0x38641b[_0xeb49da(0x101)](_0x3931e3[_0xeb49da(0xdd)],{..._0x2bef1b,'updatedDate':(_0x4d76e1=_0x2bef1b[_0xeb49da(0xe2)])!==null&&_0x4d76e1!==void 0x0?_0x4d76e1:_0x3931e3[_0xeb49da(0xe2)],'heartRate':_0x3931e3['value']});}return{'speed':_0x3e87ae,'heartRate':_0x32cb2a,'combined':Array[_0xeb49da(0xdd)](_0x38641b[_0xeb49da(0xdb)]())[_0xeb49da(0xf7)]((_0x1cdf51,_0x15e797)=>_0x1cdf51[_0xeb49da(0xdd)][_0xeb49da(0xf4)](_0x15e797[_0xeb49da(0xdd)])),'latest':_0x3f4876};}};}exports[a16_0x598cca(0xd4)]=applyRunningModule;
1
+ 'use strict';const a16_0x34dd72=a16_0x2b17;(function(_0x2c00e7,_0x3c39f6){const _0x4ba82b=a16_0x2b17,_0x2ffb4f=_0x2c00e7();while(!![]){try{const _0x4d84a4=parseInt(_0x4ba82b(0x17f))/0x1+-parseInt(_0x4ba82b(0x153))/0x2+-parseInt(_0x4ba82b(0x17a))/0x3+parseInt(_0x4ba82b(0x174))/0x4*(-parseInt(_0x4ba82b(0x189))/0x5)+parseInt(_0x4ba82b(0x172))/0x6+-parseInt(_0x4ba82b(0x181))/0x7+parseInt(_0x4ba82b(0x167))/0x8*(parseInt(_0x4ba82b(0x17c))/0x9);if(_0x4d84a4===_0x3c39f6)break;else _0x2ffb4f['push'](_0x2ffb4f['shift']());}catch(_0x357302){_0x2ffb4f['push'](_0x2ffb4f['shift']());}}}(a16_0x3a05,0x5a407));function a16_0x2b17(_0x595f75,_0x22f874){_0x595f75=_0x595f75-0x152;const _0x3a056f=a16_0x3a05();let _0x2b17d8=_0x3a056f[_0x595f75];return _0x2b17d8;}Object[a16_0x34dd72(0x15a)](exports,a16_0x34dd72(0x171),{'value':!![]}),exports[a16_0x34dd72(0x15d)]=void 0x0;const DateUtils_1=require(a16_0x34dd72(0x16e)),lactateThresholdSpeedToPace=_0x877a53=>{const _0x56d2c7=a16_0x34dd72,_0x2cc74c=_0x877a53*0xa,_0x4873d6=0x3e8/_0x2cc74c,_0x1e456b=Math[_0x56d2c7(0x15b)](_0x4873d6/0x3c),_0x343131=Math[_0x56d2c7(0x175)](_0x4873d6%0x3c),_0x2ac8af=_0x343131===0x3c?_0x1e456b+0x1:_0x1e456b,_0x2b778e=_0x343131===0x3c?0x0:_0x343131;return{'speedMetersPerSecond':_0x2cc74c,'paceSecondsPerKilometer':_0x4873d6,'paceMinutesPerKilometer':_0x2ac8af+':'+_0x2b778e['toString']()[_0x56d2c7(0x17b)](0x2,'0')+_0x56d2c7(0x16f)};},formatSecondsAsTime=_0x1715ec=>{const _0x44a4b8=a16_0x34dd72,_0x10370f=Math['floor'](_0x1715ec/0xe10),_0x5cf1d6=Math[_0x44a4b8(0x15b)](_0x1715ec%0xe10/0x3c),_0x8fe0d3=_0x1715ec%0x3c;return[_0x10370f,_0x5cf1d6,_0x8fe0d3][_0x44a4b8(0x169)](_0x4a85d5=>_0x4a85d5[_0x44a4b8(0x160)]()[_0x44a4b8(0x17b)](0x2,'0'))[_0x44a4b8(0x166)](':');},formatRacePrediction=_0x34ef0d=>({..._0x34ef0d,'time5KFormatted':formatSecondsAsTime(_0x34ef0d[a16_0x34dd72(0x184)]),'time10KFormatted':formatSecondsAsTime(_0x34ef0d[a16_0x34dd72(0x15c)]),'timeHalfMarathonFormatted':formatSecondsAsTime(_0x34ef0d[a16_0x34dd72(0x18a)]),'timeMarathonFormatted':formatSecondsAsTime(_0x34ef0d[a16_0x34dd72(0x173)])});function applyRunningModule(_0x38a065){const _0x1af216=a16_0x34dd72;return class _0x3b6189 extends _0x38a065{async[_0x1af216(0x15e)](_0x34341e,_0x4b2579){const _0x2c6504=_0x1af216;if(_0x4b2579===undefined)return this['client'][_0x2c6504(0x163)](this[_0x2c6504(0x178)][_0x2c6504(0x162)],{'params':{'calendarDate':(0x0,DateUtils_1[_0x2c6504(0x188)])(_0x34341e)}});return this['client'][_0x2c6504(0x163)](this['url'][_0x2c6504(0x162)]+'/stats',{'params':{'startDate':(0x0,DateUtils_1[_0x2c6504(0x188)])(_0x34341e),'endDate':(0x0,DateUtils_1[_0x2c6504(0x188)])(_0x4b2579),'aggregation':_0x2c6504(0x18c)}});}async[_0x1af216(0x180)](_0x3e0845,_0x1530ff,_0xa5707c=_0x1af216(0x18c)){const _0x3959f2=_0x1af216;return this['client']['get'](this[_0x3959f2(0x178)]['RUNNING_TOLERANCE'],{'params':{'startDate':(0x0,DateUtils_1['toGarminDateString'])(_0x3e0845),'endDate':(0x0,DateUtils_1[_0x3959f2(0x188)])(_0x1530ff),'aggregation':_0xa5707c}});}async[_0x1af216(0x16c)](_0xb66c96,_0x175d58){const _0x119d5c=_0x1af216;try{const _0x26b7cb=await this[_0x119d5c(0x164)](),_0x538ecd=_0x26b7cb[_0x119d5c(0x179)];if(!_0x538ecd)throw new Error(_0x119d5c(0x176));const _0xaf776=await this[_0x119d5c(0x158)][_0x119d5c(0x163)](this[_0x119d5c(0x178)][_0x119d5c(0x15f)](_0x538ecd),{'params':{'fromCalendarDate':(0x0,DateUtils_1[_0x119d5c(0x188)])(_0xb66c96),'toCalendarDate':(0x0,DateUtils_1[_0x119d5c(0x188)])(_0x175d58)}});return _0xaf776[_0x119d5c(0x169)](formatRacePrediction);}catch(_0x97cc91){throw new Error(_0x119d5c(0x165)+_0x97cc91[_0x119d5c(0x16a)]);}}async[_0x1af216(0x154)](_0x1271b2,_0xea6bca){const _0x757c2e=_0x1af216;try{return this[_0x757c2e(0x158)]['get'](this[_0x757c2e(0x178)][_0x757c2e(0x155)](_0x757c2e(0x168),(0x0,DateUtils_1[_0x757c2e(0x188)])(_0x1271b2),(0x0,DateUtils_1[_0x757c2e(0x188)])(_0xea6bca)),{'params':{'aggregation':_0x757c2e(0x170),'aggregationStrategy':_0x757c2e(0x16b),'sport':_0x757c2e(0x161)}});}catch(_0x5236a4){throw new Error(_0x757c2e(0x18b)+_0x5236a4[_0x757c2e(0x16a)]);}}async[_0x1af216(0x17d)](_0x4eec7e,_0x4d0b22){const _0x2b3210=_0x1af216;try{return this['client'][_0x2b3210(0x163)](this[_0x2b3210(0x178)][_0x2b3210(0x155)](_0x2b3210(0x152),(0x0,DateUtils_1[_0x2b3210(0x188)])(_0x4eec7e),(0x0,DateUtils_1[_0x2b3210(0x188)])(_0x4d0b22)),{'params':{'aggregation':_0x2b3210(0x170),'aggregationStrategy':_0x2b3210(0x16b),'sport':_0x2b3210(0x161)}});}catch(_0x201f10){throw new Error(_0x2b3210(0x156)+_0x201f10[_0x2b3210(0x16a)]);}}async[_0x1af216(0x187)](){const _0x378577=_0x1af216;try{return this[_0x378577(0x158)][_0x378577(0x163)](this[_0x378577(0x178)]['LATEST_LACTATE_THRESHOLD']);}catch(_0xcd7628){throw new Error(_0x378577(0x157)+_0xcd7628[_0x378577(0x16a)]);}}async['getRunningLactateThreshold'](_0x338f9a,_0x27244e){const _0xf9af7c=_0x1af216;var _0x575ba9,_0x19aca6;const [_0x39fda5,_0x41b856,_0x4eccde]=await Promise[_0xf9af7c(0x183)]([this[_0xf9af7c(0x154)](_0x338f9a,_0x27244e),this['getLactateThresholdHeartRateRange'](_0x338f9a,_0x27244e),this[_0xf9af7c(0x187)]()]),_0x1b0600=new Map();for(const _0x1d12f0 of _0x39fda5){const _0x2d6802=lactateThresholdSpeedToPace(_0x1d12f0['value']);_0x1b0600[_0xf9af7c(0x186)](_0x1d12f0['from'],{'from':_0x1d12f0['from'],'until':_0x1d12f0[_0xf9af7c(0x16d)],'updatedDate':_0x1d12f0[_0xf9af7c(0x177)],'speed':_0x1d12f0['value'],..._0x2d6802});}for(const _0x1b6436 of _0x41b856){const _0x2241dc=(_0x575ba9=_0x1b0600[_0xf9af7c(0x163)](_0x1b6436[_0xf9af7c(0x159)]))!==null&&_0x575ba9!==void 0x0?_0x575ba9:{'from':_0x1b6436[_0xf9af7c(0x159)],'until':_0x1b6436[_0xf9af7c(0x16d)]};_0x1b0600[_0xf9af7c(0x186)](_0x1b6436[_0xf9af7c(0x159)],{..._0x2241dc,'updatedDate':(_0x19aca6=_0x2241dc[_0xf9af7c(0x177)])!==null&&_0x19aca6!==void 0x0?_0x19aca6:_0x1b6436[_0xf9af7c(0x177)],'heartRate':_0x1b6436['value']});}return{'speed':_0x39fda5,'heartRate':_0x41b856,'combined':Array['from'](_0x1b0600[_0xf9af7c(0x182)]())[_0xf9af7c(0x185)]((_0x3ac048,_0xe51296)=>_0x3ac048['from'][_0xf9af7c(0x17e)](_0xe51296[_0xf9af7c(0x159)])),'latest':_0x4eccde};}};}function a16_0x3a05(){const _0x454220=['__esModule','2202036uxkUZa','timeMarathon','12GzGPYc','round','Could\x20not\x20retrieve\x20display\x20name\x20for\x20race\x20predictions.','updatedDate','url','displayName','655281jBTOAo','padStart','1962HCRumb','getLactateThresholdHeartRateRange','localeCompare','719846fJBIhb','getRunningTolerance','2620527YybGPJ','values','all','time5K','sort','set','getLatestLactateThreshold','toGarminDateString','118640BysOaC','timeHalfMarathon','Error\x20in\x20getLactateThresholdSpeedRange:\x20','weekly','lactateThresholdHeartRate','984086YJSWGC','getLactateThresholdSpeedRange','BIOMETRIC_STAT_RANGE','Error\x20in\x20getLactateThresholdHeartRateRange:\x20','Error\x20in\x20getLatestLactateThreshold:\x20','client','from','defineProperty','floor','time10K','applyRunningModule','getEnduranceScore','RACE_PREDICTIONS_MONTHLY','toString','RUNNING','ENDURANCE_SCORE','get','getUserProfile','Error\x20in\x20getRacePredictionsMonthly:\x20','join','16104uGxnsS','lactateThresholdSpeed','map','message','LATEST','getRacePredictionsMonthly','until','../../common/DateUtils','/km','monthly'];a16_0x3a05=function(){return _0x454220;};return a16_0x3a05();}exports['applyRunningModule']=applyRunningModule;
@@ -1 +1 @@
1
- 'use strict';const a17_0x39d78a=a17_0x3a5b;(function(_0x36201b,_0x452725){const _0x12f367=a17_0x3a5b,_0x5560f9=_0x36201b();while(!![]){try{const _0x22386e=-parseInt(_0x12f367(0x10a))/0x1*(parseInt(_0x12f367(0x112))/0x2)+-parseInt(_0x12f367(0xfd))/0x3+-parseInt(_0x12f367(0x10f))/0x4+parseInt(_0x12f367(0xf7))/0x5*(-parseInt(_0x12f367(0x101))/0x6)+parseInt(_0x12f367(0xf9))/0x7+-parseInt(_0x12f367(0x103))/0x8+parseInt(_0x12f367(0x111))/0x9;if(_0x22386e===_0x452725)break;else _0x5560f9['push'](_0x5560f9['shift']());}catch(_0x9a80ec){_0x5560f9['push'](_0x5560f9['shift']());}}}(a17_0x42fa,0x2ae6a));function a17_0x3a5b(_0x4aabfa,_0x1b334b){_0x4aabfa=_0x4aabfa-0xf6;const _0x42fa3c=a17_0x42fa();let _0x3a5bde=_0x42fa3c[_0x4aabfa];return _0x3a5bde;}Object['defineProperty'](exports,a17_0x39d78a(0xfc),{'value':!![]}),exports[a17_0x39d78a(0x109)]=void 0x0;function a17_0x42fa(){const _0x5dc215=['applyTrainingStatusModule','9qLyxMh','getMorningTrainingReadiness','find','Error\x20in\x20getWeeklyTrainingStatus:\x20','length','820872rRTPYJ','TRAINING_STATUS_WEEKLY','8630586EcdRJU','28476rugEfy','client','url','getTrainingReadiness','5JUFEWr','getUserProfile','1238944PjUOYx','message','Error\x20in\x20getTrainingReadiness:\x20','__esModule','92715kVyKKX','toDateString','AFTER_WAKEUP_RESET','inputContext','1468776niRmbQ','getTrainingLoadBalance','2809304UMebqI','Error\x20in\x20getTrainingStatus:\x20','get','getWeeklyTrainingStatus','Could\x20not\x20retrieve\x20display\x20name\x20for\x20weekly\x20training\x20status.','../../common/DateUtils'];a17_0x42fa=function(){return _0x5dc215;};return a17_0x42fa();}const DateUtils_1=require(a17_0x39d78a(0x108));function applyTrainingStatusModule(_0x1ef011){const _0x3908f2=a17_0x39d78a;return class _0x4798de extends _0x1ef011{async['getTrainingStatus'](_0x13fdfa=new Date()){const _0x213f8f=a17_0x3a5b;try{const _0x1000bb=(0x0,DateUtils_1[_0x213f8f(0xfe)])(_0x13fdfa),_0x2a4f89=await this[_0x213f8f(0x113)][_0x213f8f(0x105)](this[_0x213f8f(0x114)]['TRAINING_STATUS_DAILY']+'/'+_0x1000bb);return _0x2a4f89;}catch(_0x276f77){throw new Error(_0x213f8f(0x104)+_0x276f77[_0x213f8f(0xfa)]);}}async[_0x3908f2(0x102)](_0x460999=new Date()){const _0x92ac42=_0x3908f2;try{const _0x433e33=(0x0,DateUtils_1[_0x92ac42(0xfe)])(_0x460999),_0x32d35a=await this['client'][_0x92ac42(0x105)](this[_0x92ac42(0x114)]['TRAINING_LOAD_BALANCE']+'/'+_0x433e33);return _0x32d35a;}catch(_0xf5728e){throw new Error('Error\x20in\x20getTrainingLoadBalance:\x20'+_0xf5728e[_0x92ac42(0xfa)]);}}async[_0x3908f2(0xf6)](_0x37990b=new Date()){const _0x416d52=_0x3908f2;try{const _0x386b87=(0x0,DateUtils_1[_0x416d52(0xfe)])(_0x37990b);return this[_0x416d52(0x113)][_0x416d52(0x105)](this[_0x416d52(0x114)]['TRAINING_READINESS']+'/'+_0x386b87);}catch(_0x5e902c){throw new Error(_0x416d52(0xfb)+_0x5e902c[_0x416d52(0xfa)]);}}async[_0x3908f2(0x10b)](_0x169731=new Date()){const _0x27087d=_0x3908f2;var _0x82a961;const _0x31afc9=await this[_0x27087d(0xf6)](_0x169731);if(!_0x31afc9[_0x27087d(0x10e)])return null;return(_0x82a961=_0x31afc9[_0x27087d(0x10c)](_0x5c2d9a=>_0x5c2d9a[_0x27087d(0x100)]===_0x27087d(0xff)))!==null&&_0x82a961!==void 0x0?_0x82a961:_0x31afc9[0x0];}async[_0x3908f2(0x106)](_0x539f45,_0x1fd35d){const _0x4d2091=_0x3908f2;try{const _0x3a9cfd=await this[_0x4d2091(0xf8)](),_0x41f145=_0x3a9cfd['displayName'];if(!_0x41f145)throw new Error(_0x4d2091(0x107));const _0x2534da=(0x0,DateUtils_1[_0x4d2091(0xfe)])(_0x539f45),_0x5a889a=(0x0,DateUtils_1[_0x4d2091(0xfe)])(_0x1fd35d),_0x4d8b71=await this[_0x4d2091(0x113)]['get'](this['url'][_0x4d2091(0x110)]+'/'+_0x41f145,{'params':{'fromCalendarDate':_0x2534da,'toCalendarDate':_0x5a889a}});return _0x4d8b71;}catch(_0x208431){throw new Error(_0x4d2091(0x10d)+_0x208431[_0x4d2091(0xfa)]);}}};}exports['applyTrainingStatusModule']=applyTrainingStatusModule;
1
+ 'use strict';function a17_0x2497(){const _0x470f86=['99560iChtnF','../../common/DateUtils','TRAINING_READINESS','__esModule','getMorningTrainingReadiness','Error\x20in\x20getWeeklyTrainingStatus:\x20','client','393198qqrxpS','1828270CBXWxy','defineProperty','toDateString','get','Could\x20not\x20retrieve\x20display\x20name\x20for\x20weekly\x20training\x20status.','4407690ExeTmd','length','Error\x20in\x20getTrainingStatus:\x20','TRAINING_STATUS_WEEKLY','applyTrainingStatusModule','Error\x20in\x20getTrainingLoadBalance:\x20','526389GISOBM','find','getTrainingReadiness','getTrainingLoadBalance','Error\x20in\x20getTrainingReadiness:\x20','displayName','url','getUserProfile','63094HaPftu','423752tecgHP','AFTER_WAKEUP_RESET','message','getTrainingStatus','getWeeklyTrainingStatus'];a17_0x2497=function(){return _0x470f86;};return a17_0x2497();}const a17_0x5e1fe1=a17_0x28da;(function(_0xc75e9,_0x32a2db){const _0x15836d=a17_0x28da,_0x811be0=_0xc75e9();while(!![]){try{const _0x439956=-parseInt(_0x15836d(0x149))/0x1+-parseInt(_0x15836d(0x14a))/0x2+parseInt(_0x15836d(0x141))/0x3+-parseInt(_0x15836d(0x14f))/0x4+-parseInt(_0x15836d(0x157))/0x5+parseInt(_0x15836d(0x156))/0x6+parseInt(_0x15836d(0x15c))/0x7;if(_0x439956===_0x32a2db)break;else _0x811be0['push'](_0x811be0['shift']());}catch(_0x9fe968){_0x811be0['push'](_0x811be0['shift']());}}}(a17_0x2497,0x32160));Object[a17_0x5e1fe1(0x158)](exports,a17_0x5e1fe1(0x152),{'value':!![]}),exports[a17_0x5e1fe1(0x13f)]=void 0x0;const DateUtils_1=require(a17_0x5e1fe1(0x150));function a17_0x28da(_0x1f737e,_0x48c7d9){_0x1f737e=_0x1f737e-0x13c;const _0x2497bb=a17_0x2497();let _0x28da0e=_0x2497bb[_0x1f737e];return _0x28da0e;}function applyTrainingStatusModule(_0x30e559){const _0x52c362=a17_0x5e1fe1;return class _0x59d128 extends _0x30e559{async[_0x52c362(0x14d)](_0x13c04d=new Date()){const _0x4bf6d7=_0x52c362;try{const _0x1d7470=(0x0,DateUtils_1[_0x4bf6d7(0x159)])(_0x13c04d),_0x1129e6=await this['client'][_0x4bf6d7(0x15a)](this[_0x4bf6d7(0x147)]['TRAINING_STATUS_DAILY']+'/'+_0x1d7470);return _0x1129e6;}catch(_0xcfbfa4){throw new Error(_0x4bf6d7(0x13d)+_0xcfbfa4[_0x4bf6d7(0x14c)]);}}async[_0x52c362(0x144)](_0x428ff8=new Date()){const _0x13743d=_0x52c362;try{const _0x4d231b=(0x0,DateUtils_1[_0x13743d(0x159)])(_0x428ff8),_0x3df729=await this[_0x13743d(0x155)][_0x13743d(0x15a)](this['url']['TRAINING_LOAD_BALANCE']+'/'+_0x4d231b);return _0x3df729;}catch(_0x91f2eb){throw new Error(_0x13743d(0x140)+_0x91f2eb[_0x13743d(0x14c)]);}}async[_0x52c362(0x143)](_0x54a2b2=new Date()){const _0x37f2d4=_0x52c362;try{const _0x52f03b=(0x0,DateUtils_1['toDateString'])(_0x54a2b2);return this[_0x37f2d4(0x155)][_0x37f2d4(0x15a)](this[_0x37f2d4(0x147)][_0x37f2d4(0x151)]+'/'+_0x52f03b);}catch(_0x2ed065){throw new Error(_0x37f2d4(0x145)+_0x2ed065[_0x37f2d4(0x14c)]);}}async[_0x52c362(0x153)](_0xdc0d9=new Date()){const _0x240db8=_0x52c362;var _0xcbe003;const _0x1677e1=await this[_0x240db8(0x143)](_0xdc0d9);if(!_0x1677e1[_0x240db8(0x13c)])return null;return(_0xcbe003=_0x1677e1[_0x240db8(0x142)](_0x5991e0=>_0x5991e0['inputContext']===_0x240db8(0x14b)))!==null&&_0xcbe003!==void 0x0?_0xcbe003:_0x1677e1[0x0];}async[_0x52c362(0x14e)](_0x1b7857,_0x5e3d90){const _0x2ff237=_0x52c362;try{const _0x5bf237=await this[_0x2ff237(0x148)](),_0xfc1e7=_0x5bf237[_0x2ff237(0x146)];if(!_0xfc1e7)throw new Error(_0x2ff237(0x15b));const _0x2a7216=(0x0,DateUtils_1['toDateString'])(_0x1b7857),_0x17bc1e=(0x0,DateUtils_1[_0x2ff237(0x159)])(_0x5e3d90),_0x1c5627=await this[_0x2ff237(0x155)][_0x2ff237(0x15a)](this[_0x2ff237(0x147)][_0x2ff237(0x13e)]+'/'+_0xfc1e7,{'params':{'fromCalendarDate':_0x2a7216,'toCalendarDate':_0x17bc1e}});return _0x1c5627;}catch(_0x57583d){throw new Error(_0x2ff237(0x154)+_0x57583d[_0x2ff237(0x14c)]);}}};}exports[a17_0x5e1fe1(0x13f)]=applyTrainingStatusModule;