@gooin/garmin-connect 1.8.0 → 1.8.1

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 (60) hide show
  1. package/dist/common/FileMFASessionStorage.js +1 -1
  2. package/dist/common/HttpClient copy.js +1 -1
  3. package/dist/common/HttpClient.js +1 -1
  4. package/dist/common/HttpClientOLD.js +1 -1
  5. package/dist/common/HttpClientOLDV1.js +1 -1
  6. package/dist/common/HttpClientV1.js +1 -1
  7. package/dist/common/MFAManager.js +1 -1
  8. package/dist/common/MFASessionStorage.js +1 -1
  9. package/dist/common/RedisMFASessionStorage.js +1 -1
  10. package/dist/garmin/GarminConnect.d.ts +243 -3
  11. package/dist/garmin/GarminConnect.js +1 -1
  12. package/dist/garmin/GarminConnect.js.map +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/training-overview.js +1 -1
  24. package/dist/garmin/modules/coach/wellness-overview.js +1 -1
  25. package/dist/garmin/modules/coach/wellness-summary.js +1 -1
  26. package/dist/garmin/modules/coach.js +1 -1
  27. package/dist/garmin/modules/course.js +1 -1
  28. package/dist/garmin/modules/device.js +1 -1
  29. package/dist/garmin/modules/misc.js +1 -1
  30. package/dist/garmin/modules/types.js +1 -1
  31. package/dist/garmin/modules/user.js +1 -1
  32. package/dist/garmin/modules/wellness/body-battery.js +1 -1
  33. package/dist/garmin/modules/wellness/heart-rate.js +1 -1
  34. package/dist/garmin/modules/wellness/hrv.js +1 -1
  35. package/dist/garmin/modules/wellness/hydration.js +1 -1
  36. package/dist/garmin/modules/wellness/sleep.js +1 -1
  37. package/dist/garmin/modules/wellness/weight.js +1 -1
  38. package/dist/garmin/modules/workout.js +1 -1
  39. package/dist/garmin/types/activity-stats.js +1 -1
  40. package/dist/garmin/types/activity.js +1 -1
  41. package/dist/garmin/types/body-battery.js +1 -1
  42. package/dist/garmin/types/coach.js +1 -1
  43. package/dist/garmin/types/course.js +1 -1
  44. package/dist/garmin/types/cycling.js +1 -1
  45. package/dist/garmin/types/device.js +1 -1
  46. package/dist/garmin/types/golf.js +1 -1
  47. package/dist/garmin/types/heartrate.js +1 -1
  48. package/dist/garmin/types/hrv.js +1 -1
  49. package/dist/garmin/types/hydration.js +1 -1
  50. package/dist/garmin/types/index.js +1 -1
  51. package/dist/garmin/types/personal-info.js +1 -1
  52. package/dist/garmin/types/race-prediction.js +1 -1
  53. package/dist/garmin/types/sleep.js +1 -1
  54. package/dist/garmin/types/training-status.js +1 -1
  55. package/dist/garmin/types/weight.js +1 -1
  56. package/dist/garmin/workouts/Running.js +1 -1
  57. package/dist/garmin/workouts/templates/RunningTemplate.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/utils.js +1 -1
  60. package/package.json +1 -1
@@ -1 +1 @@
1
- 'use strict';function a17_0x5ed6(_0x29c6b0,_0x3b4e32){_0x29c6b0=_0x29c6b0-0xa1;const _0x5bc666=a17_0x5bc6();let _0x5ed68e=_0x5bc666[_0x29c6b0];return _0x5ed68e;}const a17_0x2a743c=a17_0x5ed6;(function(_0x13a03a,_0x3d4891){const _0x13f2d3=a17_0x5ed6,_0x4187f8=_0x13a03a();while(!![]){try{const _0x13a5d9=parseInt(_0x13f2d3(0xa8))/0x1*(parseInt(_0x13f2d3(0xb0))/0x2)+-parseInt(_0x13f2d3(0xba))/0x3+parseInt(_0x13f2d3(0xa1))/0x4+-parseInt(_0x13f2d3(0xa9))/0x5*(-parseInt(_0x13f2d3(0xab))/0x6)+-parseInt(_0x13f2d3(0xa6))/0x7*(parseInt(_0x13f2d3(0xb2))/0x8)+-parseInt(_0x13f2d3(0xac))/0x9+parseInt(_0x13f2d3(0xa2))/0xa;if(_0x13a5d9===_0x3d4891)break;else _0x4187f8['push'](_0x4187f8['shift']());}catch(_0x2a3ce3){_0x4187f8['push'](_0x4187f8['shift']());}}}(a17_0x5bc6,0x3d23f));function a17_0x5bc6(){const _0xb6b0d8=['1674448jUqotE','3632960NvpveS','getWeeklyTrainingStatus','TRAINING_STATUS_WEEKLY','displayName','21cFCeAD','url','1hWRczk','1010670mlHcOF','applyTrainingStatusModule','6nmwxnL','3496554JSqoyL','message','../../common/DateUtils','Error\x20in\x20getTrainingLoadBalance:\x20','107336Qcfkvl','getUserProfile','891352pnZsmy','get','Error\x20in\x20getWeeklyTrainingStatus:\x20','getTrainingStatus','toDateString','client','TRAINING_STATUS_DAILY','Error\x20in\x20getTrainingStatus:\x20','193548miUtPf'];a17_0x5bc6=function(){return _0xb6b0d8;};return a17_0x5bc6();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a17_0x2a743c(0xaa)]=void 0x0;const DateUtils_1=require(a17_0x2a743c(0xae));function applyTrainingStatusModule(_0x39f44b){const _0x222b5e=a17_0x2a743c;return class _0x126063 extends _0x39f44b{async[_0x222b5e(0xb5)](_0x59c07e=new Date()){const _0x4d928b=_0x222b5e;try{const _0x1796a8=(0x0,DateUtils_1[_0x4d928b(0xb6)])(_0x59c07e),_0x1d5ecd=await this[_0x4d928b(0xb7)][_0x4d928b(0xb3)](this[_0x4d928b(0xa7)][_0x4d928b(0xb8)]+'/'+_0x1796a8);return _0x1d5ecd;}catch(_0x243244){throw new Error(_0x4d928b(0xb9)+_0x243244['message']);}}async['getTrainingLoadBalance'](_0xc9850=new Date()){const _0x3795f1=_0x222b5e;try{const _0xf82f6d=(0x0,DateUtils_1[_0x3795f1(0xb6)])(_0xc9850),_0x3087f3=await this[_0x3795f1(0xb7)][_0x3795f1(0xb3)](this[_0x3795f1(0xa7)]['TRAINING_LOAD_BALANCE']+'/'+_0xf82f6d);return _0x3087f3;}catch(_0xf4228c){throw new Error(_0x3795f1(0xaf)+_0xf4228c['message']);}}async[_0x222b5e(0xa3)](_0x5bf309,_0x1ceafd){const _0x453146=_0x222b5e;try{const _0x73fe1f=await this[_0x453146(0xb1)](),_0x39acfe=_0x73fe1f[_0x453146(0xa5)];if(!_0x39acfe)throw new Error('Could\x20not\x20retrieve\x20display\x20name\x20for\x20weekly\x20training\x20status.');const _0x5558a8=(0x0,DateUtils_1[_0x453146(0xb6)])(_0x5bf309),_0x4895d2=(0x0,DateUtils_1['toDateString'])(_0x1ceafd),_0x3439ea=await this[_0x453146(0xb7)][_0x453146(0xb3)](this[_0x453146(0xa7)][_0x453146(0xa4)]+'/'+_0x39acfe,{'params':{'fromCalendarDate':_0x5558a8,'toCalendarDate':_0x4895d2}});return _0x3439ea;}catch(_0x366820){throw new Error(_0x453146(0xb4)+_0x366820[_0x453146(0xad)]);}}};}exports[a17_0x2a743c(0xaa)]=applyTrainingStatusModule;
1
+ 'use strict';function a17_0x2ecf(){const _0x5e55da=['2194968CPyHtA','1430058CKzfja','TRAINING_STATUS_DAILY','2476JqSaKx','toDateString','12tiAKGo','getTrainingStatus','../../common/DateUtils','displayName','8781EFFJEJ','TRAINING_LOAD_BALANCE','Error\x20in\x20getWeeklyTrainingStatus:\x20','612338zAHmrq','get','1629hdvTft','18730FmjTbM','3310250ZefWCy','6391NEAVLD','TRAINING_STATUS_WEEKLY','Could\x20not\x20retrieve\x20display\x20name\x20for\x20weekly\x20training\x20status.','getUserProfile','4VDsRoz','message','url','Error\x20in\x20getTrainingLoadBalance:\x20','client','7928gQbbFb','Error\x20in\x20getTrainingStatus:\x20'];a17_0x2ecf=function(){return _0x5e55da;};return a17_0x2ecf();}const a17_0x3912a2=a17_0x3165;(function(_0x409738,_0xed7a4e){const _0x2ab7b0=a17_0x3165,_0x12144c=_0x409738();while(!![]){try{const _0x111af2=-parseInt(_0x2ab7b0(0x1b0))/0x1*(parseInt(_0x2ab7b0(0x1a7))/0x2)+parseInt(_0x2ab7b0(0x1a4))/0x3*(parseInt(_0x2ab7b0(0x19e))/0x4)+-parseInt(_0x2ab7b0(0x1ab))/0x5*(parseInt(_0x2ab7b0(0x1a0))/0x6)+parseInt(_0x2ab7b0(0x19c))/0x7+-parseInt(_0x2ab7b0(0x199))/0x8*(-parseInt(_0x2ab7b0(0x1a9))/0x9)+-parseInt(_0x2ab7b0(0x1aa))/0xa*(-parseInt(_0x2ab7b0(0x1ac))/0xb)+parseInt(_0x2ab7b0(0x19b))/0xc;if(_0x111af2===_0xed7a4e)break;else _0x12144c['push'](_0x12144c['shift']());}catch(_0x4a9ffd){_0x12144c['push'](_0x12144c['shift']());}}}(a17_0x2ecf,0xe0145));function a17_0x3165(_0x2ea3aa,_0x5c889b){_0x2ea3aa=_0x2ea3aa-0x197;const _0x2ecf3e=a17_0x2ecf();let _0x316578=_0x2ecf3e[_0x2ea3aa];return _0x316578;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['applyTrainingStatusModule']=void 0x0;const DateUtils_1=require(a17_0x3912a2(0x1a2));function applyTrainingStatusModule(_0x3867ab){const _0xacc1ad=a17_0x3912a2;return class _0x409ae2 extends _0x3867ab{async[_0xacc1ad(0x1a1)](_0x5cb46f=new Date()){const _0xc8e721=_0xacc1ad;try{const _0x6dc14d=(0x0,DateUtils_1['toDateString'])(_0x5cb46f),_0x182b6d=await this[_0xc8e721(0x198)][_0xc8e721(0x1a8)](this[_0xc8e721(0x1b2)][_0xc8e721(0x19d)]+'/'+_0x6dc14d);return _0x182b6d;}catch(_0x47c9b3){throw new Error(_0xc8e721(0x19a)+_0x47c9b3['message']);}}async['getTrainingLoadBalance'](_0x1473a8=new Date()){const _0x3c63fa=_0xacc1ad;try{const _0x463383=(0x0,DateUtils_1[_0x3c63fa(0x19f)])(_0x1473a8),_0x3a0741=await this[_0x3c63fa(0x198)]['get'](this[_0x3c63fa(0x1b2)][_0x3c63fa(0x1a5)]+'/'+_0x463383);return _0x3a0741;}catch(_0x505dd5){throw new Error(_0x3c63fa(0x197)+_0x505dd5[_0x3c63fa(0x1b1)]);}}async['getWeeklyTrainingStatus'](_0xefba1e,_0x5e1124){const _0x40066f=_0xacc1ad;try{const _0x3b7551=await this[_0x40066f(0x1af)](),_0x389ad9=_0x3b7551[_0x40066f(0x1a3)];if(!_0x389ad9)throw new Error(_0x40066f(0x1ae));const _0x5e1937=(0x0,DateUtils_1[_0x40066f(0x19f)])(_0xefba1e),_0x2951a5=(0x0,DateUtils_1[_0x40066f(0x19f)])(_0x5e1124),_0x338be7=await this[_0x40066f(0x198)][_0x40066f(0x1a8)](this['url'][_0x40066f(0x1ad)]+'/'+_0x389ad9,{'params':{'fromCalendarDate':_0x5e1937,'toCalendarDate':_0x2951a5}});return _0x338be7;}catch(_0x225b97){throw new Error(_0x40066f(0x1a6)+_0x225b97[_0x40066f(0x1b1)]);}}};}exports['applyTrainingStatusModule']=applyTrainingStatusModule;
@@ -1 +1 @@
1
- 'use strict';const a18_0x59ca23=a18_0x5ef1;(function(_0x1b5190,_0x3c40b7){const _0x2bf034=a18_0x5ef1,_0x4207e5=_0x1b5190();while(!![]){try{const _0x89e74d=parseInt(_0x2bf034(0x22d))/0x1+-parseInt(_0x2bf034(0x265))/0x2+parseInt(_0x2bf034(0x26e))/0x3*(parseInt(_0x2bf034(0x22f))/0x4)+parseInt(_0x2bf034(0x1fb))/0x5*(-parseInt(_0x2bf034(0x21c))/0x6)+parseInt(_0x2bf034(0x1ef))/0x7+parseInt(_0x2bf034(0x230))/0x8+parseInt(_0x2bf034(0x236))/0x9*(-parseInt(_0x2bf034(0x287))/0xa);if(_0x89e74d===_0x3c40b7)break;else _0x4207e5['push'](_0x4207e5['shift']());}catch(_0x511391){_0x4207e5['push'](_0x4207e5['shift']());}}}(a18_0xc1c7,0x9a75b));function a18_0xc1c7(){const _0x44c9cd=['duration','noOfSplits','targetValue','aerobicTrainingEffect','weather','good_cadence','anaerobicMessage','flags','53157iPwxit','hot_weather_workout','816ZdsgYI','2750392KOZSkj','unshift','toMinutes','strideLength','anaerobic','indoor_cardio','1348461cktfAC','hard_session','catch','summaryStats','locationName','durationSec','running','getActivityLaps','./helpers','steps','very_low_load','verticalOscillation','run','unknown','count','strideCm','intensity','cooldown','startTimeLocal','floor','trail_or_hike_like','beginPotentialStamina','reduce','meaningful_aerobic_stimulus','minAvailableStamina','high_load','subjective','bodyBatteryDelta','steep_climb','threshold','groundContactBalanceLeft','avgTempC','directWorkoutFeel','anaerobicTrainingEffect','vo2','vertRatio','intensityType','interval_rest','cycling','quality_session','trainingEffectLabel','trail','elevGainM','round','avgCadence','base','movementBreakdown','174176hcSAfa','calories','aerobic_improving','elevationLoss','lowerSnake','windDirection','length','activityId','location','6237CjynPr','rwd_run','active','avgGradeAdjustedSpeed','activityTrainingLoad','walk','minor_anaerobic_stimulus','map','limit','targetValueHigh','impact','apparentTemp','avgHr','rest','_run','vo2max_training_effect','pace','moderateIntensityMinutes','wkId','all','runForm','biking','getActivityWeather','windSpeed','start','50OSzbnZ','activityType','rwd_stand','includes','effect','compactLower','data','time','vigorousIntensityMinutes','meaningful_training_load','distanceKm','name','groundContactTime','stand','desc','anaerobicTrainingEffectMessage','differenceBodyBattery','maxHR','directWorkoutComplianceScore','defineProperty','relativeHumidity','number','tempo','durationMin','movingDuration','endPotentialStamina','associatedWorkoutId','slice','rwd_walk','tempo_run','startTime','toLowerCase','targetType','workoutId','push','buildActivitiesSummary','elevationGain','cadence','aerobic','moderate_high_load','weatherTypeDTO','directWorkoutRpe','one_low_load_cardio_session','7196350bmdSlF','aerobicMessage','type','lapDTOs','durationValue','trainingImpactStats','interval_cooldown','keys','activities_summary_v1','activityName','structured','buildActivityDetailSummary','55915ZkkTfG','checkTokenVaild','targetValueLow','warmup','averageTemperature','averageHR','recoveryHeartRate','maxRunCadence','durationType','isFinite','metadataDTO','summary','activityTypeDTO','getActivities','workout','summaryDTO','typeKey','isArray','label','string','splitSummaries','aiHints','filter','distance','windDirectionCompassPoint','verticalRatio','activity_detail_v1','maxHr','activity_detail_available_for_deeper_analysis','vo2max','laps','trainingEffect','load','204QlBNRe','/km','sport','split','subActivityType','some','from','_active_intervals','subSport'];a18_0xc1c7=function(){return _0x44c9cd;};return a18_0xc1c7();}Object[a18_0x59ca23(0x1d7)](exports,'__esModule',{'value':!![]}),exports[a18_0x59ca23(0x1fa)]=exports[a18_0x59ca23(0x1e7)]=void 0x0;const helpers_1=require(a18_0x59ca23(0x23e)),numeric=_0x15dfc9=>typeof _0x15dfc9===a18_0x59ca23(0x1d9)&&Number['isFinite'](_0x15dfc9)?_0x15dfc9:null,roundNumber=(_0x42dc6a,_0x3dfd91=0x0)=>(0x0,helpers_1['round'])(numeric(_0x42dc6a),_0x3dfd91),compactDate=_0x400004=>_0x400004?_0x400004[a18_0x59ca23(0x1df)](0x0,0xa):null,compactTime=_0x58b19f=>{const _0x1fdb26=a18_0x59ca23;if(!_0x58b19f)return null;const _0x1891e1=_0x58b19f[_0x1fdb26(0x1c7)]('T')?_0x58b19f[_0x1fdb26(0x21f)]('T')[0x1]:_0x58b19f[_0x1fdb26(0x21f)]('\x20')[0x1];return _0x1891e1?_0x1891e1['slice'](0x0,0x5):null;},formatPace=_0x1f0500=>{const _0x1c37c7=a18_0x59ca23;if(!_0x1f0500||!Number[_0x1c37c7(0x204)](_0x1f0500))return null;const _0x4fece7=Math[_0x1c37c7(0x261)](_0x1f0500),_0x1a0306=Math[_0x1c37c7(0x249)](_0x4fece7/0x3c),_0x335979=_0x4fece7%0x3c;return _0x1a0306+':'+_0x335979['toString']()['padStart'](0x2,'0')+_0x1c37c7(0x21d);},paceFromDistance=(_0x465461,_0x50e0d3)=>{const _0x3f10e9=numeric(_0x465461),_0x150d31=numeric(_0x50e0d3);if(!_0x3f10e9||!_0x150d31||_0x3f10e9<=0x0)return null;return formatPace(_0x150d31/(_0x3f10e9/0x3e8));},paceFromSpeed=_0x43a49d=>{const _0x4cea54=numeric(_0x43a49d);if(!_0x4cea54||_0x4cea54<=0x0)return null;return formatPace(0x3e8/_0x4cea54);},normalizeMessage=_0x50510b=>{const _0x1cdf92=a18_0x59ca23;var _0x3f7b11;const _0x91d82b=(0x0,helpers_1[_0x1cdf92(0x269)])(_0x50510b);return(_0x3f7b11=_0x91d82b===null||_0x91d82b===void 0x0?void 0x0:_0x91d82b['replace'](/_\d+$/,''))!==null&&_0x3f7b11!==void 0x0?_0x3f7b11:null;},trainingLabel=_0x2b98b0=>{const _0x88c782=a18_0x59ca23;var _0x3dfede;return(_0x3dfede=(0x0,helpers_1[_0x88c782(0x1c9)])(typeof _0x2b98b0===_0x88c782(0x20e)?_0x2b98b0:undefined))!==null&&_0x3dfede!==void 0x0?_0x3dfede:'unknown';},buildTrainingEffect=_0x400d71=>{const _0x25f09a=a18_0x59ca23;var _0x3b093b;return{'aerobic':roundNumber((_0x3b093b=_0x400d71[_0x25f09a(0x228)])!==null&&_0x3b093b!==void 0x0?_0x3b093b:_0x400d71[_0x25f09a(0x21a)],0x1),'anaerobic':roundNumber(_0x400d71[_0x25f09a(0x257)],0x1),'label':trainingLabel(_0x400d71[_0x25f09a(0x25e)])};},hrZones=_0x5c1434=>{const _0x966b6b=a18_0x59ca23,_0xa2715e=[0x1,0x2,0x3,0x4,0x5][_0x966b6b(0x275)](_0x665f78=>roundNumber(_0x5c1434['hrTimeInZone_'+_0x665f78],0x1));return _0xa2715e[_0x966b6b(0x221)](_0x5c2ead=>_0x5c2ead!==null)?_0xa2715e[_0x966b6b(0x275)](_0x5d33b4=>_0x5d33b4!==null&&_0x5d33b4!==void 0x0?_0x5d33b4:0x0):[];},sportKey=_0x54eb7c=>{const _0x1f54e7=a18_0x59ca23;var _0x20090f,_0x9bde7a,_0x2ef607,_0x39715f;return(_0x39715f=(_0x9bde7a=(_0x20090f=_0x54eb7c['activityType'])===null||_0x20090f===void 0x0?void 0x0:_0x20090f['typeKey'])!==null&&_0x9bde7a!==void 0x0?_0x9bde7a:(_0x2ef607=_0x54eb7c[_0x1f54e7(0x207)])===null||_0x2ef607===void 0x0?void 0x0:_0x2ef607[_0x1f54e7(0x20b)])!==null&&_0x39715f!==void 0x0?_0x39715f:null;},primarySport=_0x3aafd1=>{const _0x2a9ac2=a18_0x59ca23,_0x382166=sportKey(_0x3aafd1);if(!_0x382166)return null;if(_0x382166['includes'](_0x2a9ac2(0x23c)))return _0x2a9ac2(0x23c);if(_0x382166[_0x2a9ac2(0x1c7)](_0x2a9ac2(0x25c))||_0x382166[_0x2a9ac2(0x1c7)](_0x2a9ac2(0x283)))return _0x2a9ac2(0x25c);return _0x382166;},workoutId=_0x1aee2b=>{const _0x3cc563=a18_0x59ca23;var _0x4b2a50,_0x353633,_0x44cff3;return roundNumber((_0x44cff3=(_0x4b2a50=_0x1aee2b[_0x3cc563(0x1e5)])!==null&&_0x4b2a50!==void 0x0?_0x4b2a50:(_0x353633=_0x1aee2b[_0x3cc563(0x205)])===null||_0x353633===void 0x0?void 0x0:_0x353633[_0x3cc563(0x1de)])!==null&&_0x44cff3!==void 0x0?_0x44cff3:_0x1aee2b[_0x3cc563(0x1de)]);},hasDistance=_0x2285ff=>_0x2285ff!==null&&_0x2285ff>0x0,buildActivityFlags=(_0x11964d,_0x11f3dd,_0x264272,_0x5cb29a,_0x3d4226,_0x240d1f)=>{const _0x5b0346=a18_0x59ca23;var _0x2dd00b,_0x25deca;const _0x18ffa4=[];if((_0x3d4226!==null&&_0x3d4226!==void 0x0?_0x3d4226:0x0)<0xa)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x240));if(_0x3d4226!==null&&_0x3d4226>=0x64)_0x18ffa4['push'](_0x5b0346(0x25d));if(_0x3d4226!==null&&_0x3d4226>=0x96)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x237));if(_0x3d4226!==null&&_0x3d4226>=0x96)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x1eb));if(_0x3d4226!==null&&_0x3d4226>=0xfa)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x24f));if(_0x11964d===_0x5b0346(0x235))_0x18ffa4[_0x5b0346(0x1e6)]('non_endurance_training');if(_0x11964d===null||_0x11964d===void 0x0?void 0x0:_0x11964d['includes'](_0x5b0346(0x25f)))_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x24a));if((_0x264272!==null&&_0x264272!==void 0x0?_0x264272:0x0)>=0x12c)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x252));(_0x11964d===null||_0x11964d===void 0x0?void 0x0:_0x11964d[_0x5b0346(0x1c7)](_0x5b0346(0x23c)))&&(_0x240d1f[_0x5b0346(0x20d)]==='tempo'||((_0x2dd00b=_0x240d1f[_0x5b0346(0x1ea)])!==null&&_0x2dd00b!==void 0x0?_0x2dd00b:0x0)>=0x3)&&_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x1e1));if(((_0x25deca=_0x240d1f[_0x5b0346(0x1ea)])!==null&&_0x25deca!==void 0x0?_0x25deca:0x0)>=0x3)_0x18ffa4[_0x5b0346(0x1e6)](_0x5b0346(0x267));return hasDistance(_0x11f3dd)&&_0x11f3dd<0x2&&(_0x5cb29a!==null&&_0x5cb29a!==void 0x0?_0x5cb29a:0x0)>=0x8c&&_0x18ffa4[_0x5b0346(0x1e6)]('high_hr_for_low_distance'),Array[_0x5b0346(0x222)](new Set(_0x18ffa4));},splitSummaries=_0x374796=>Array[a18_0x59ca23(0x20c)](_0x374796[a18_0x59ca23(0x20f)])?_0x374796['splitSummaries']:[],normalizeSegmentType=_0x1966a9=>{const _0x15737a=a18_0x59ca23;if(!_0x1966a9)return null;const _0x18d447=_0x1966a9[_0x15737a(0x1e3)]();if(_0x18d447==='interval_warmup')return _0x15737a(0x1fe);if(_0x18d447===_0x15737a(0x1f5))return _0x15737a(0x247);if(_0x18d447==='interval_recovery'||_0x18d447===_0x15737a(0x25b))return _0x15737a(0x27b);if(_0x18d447==='interval_active')return _0x15737a(0x270);return null;},inferWorkoutType=(_0x2ac3fa,_0x44badd)=>{const _0x36f4c7=a18_0x59ca23,_0x46c8c5=((_0x2ac3fa!==null&&_0x2ac3fa!==void 0x0?_0x2ac3fa:'')+'\x20'+(_0x44badd!==null&&_0x44badd!==void 0x0?_0x44badd:''))[_0x36f4c7(0x1e3)](),_0xb4c96e=[];if(_0x46c8c5['includes'](_0x36f4c7(0x253)))_0xb4c96e['push']('threshold');if(_0x46c8c5['includes'](_0x36f4c7(0x258)))_0xb4c96e[_0x36f4c7(0x1e6)](_0x36f4c7(0x218));if(_0x46c8c5[_0x36f4c7(0x1c7)]('tempo'))_0xb4c96e[_0x36f4c7(0x1e6)](_0x36f4c7(0x1da));if(_0x46c8c5[_0x36f4c7(0x1c7)]('base'))_0xb4c96e['push'](_0x36f4c7(0x263));return _0xb4c96e['length']>0x0?_0xb4c96e['join']('_'):null;},splitCount=_0x33e447=>{const _0x5823f6=a18_0x59ca23;var _0x38b52b;return(_0x38b52b=roundNumber(_0x33e447[_0x5823f6(0x226)]))!==null&&_0x38b52b!==void 0x0?_0x38b52b:0x1;},weightedAverage=(_0x3ffb48,_0x4f17d2,_0x3cdba8=a18_0x59ca23(0x225),_0x59e550=0x0)=>{const _0x13b3b9=a18_0x59ca23;var _0x57742d;let _0x13eb7c=0x0,_0x2b4e6c=0x0;for(const _0x2a2a99 of _0x3ffb48){const _0x5f5262=numeric(_0x2a2a99[_0x4f17d2]),_0xc8c7b5=(_0x57742d=numeric(_0x2a2a99[_0x3cdba8]))!==null&&_0x57742d!==void 0x0?_0x57742d:0x0;_0x5f5262!==null&&_0xc8c7b5>0x0&&(_0x13eb7c+=_0x5f5262*_0xc8c7b5,_0x2b4e6c+=_0xc8c7b5);}return _0x2b4e6c>0x0?(0x0,helpers_1[_0x13b3b9(0x261)])(_0x13eb7c/_0x2b4e6c,_0x59e550):null;},groupSplits=(_0x237646,_0x1597fd)=>_0x237646[a18_0x59ca23(0x211)](_0x34382c=>normalizeSegmentType(_0x34382c['splitType'])===_0x1597fd),summarizeWorkoutSegment=(_0x434a23,_0x29bc36,_0x169665)=>{const _0xf35825=a18_0x59ca23,_0x1f6bec=_0x29bc36['reduce']((_0xcb9174,_0x417bc1)=>{var _0x50e6c0;return _0xcb9174+((_0x50e6c0=numeric(_0x417bc1['distance']))!==null&&_0x50e6c0!==void 0x0?_0x50e6c0:0x0);},0x0),_0x2dec2f=_0x29bc36[_0xf35825(0x24c)]((_0x258b63,_0x4171ab)=>{const _0x245c25=_0xf35825;var _0x200c36;return _0x258b63+((_0x200c36=numeric(_0x4171ab[_0x245c25(0x225)]))!==null&&_0x200c36!==void 0x0?_0x200c36:0x0);},0x0),_0x1c92cf=_0x29bc36[_0xf35825(0x24c)]((_0x28ed46,_0x39b15e)=>_0x28ed46+splitCount(_0x39b15e),0x0),_0x3f6dec={'type':_0x434a23,'count':_0x1c92cf,'distanceKm':(0x0,helpers_1[_0xf35825(0x261)])(_0x1f6bec/0x3e8,0x2),'durationMin':(0x0,helpers_1[_0xf35825(0x261)])(_0x2dec2f/0x3c,0x1),'pace':paceFromDistance(_0x1f6bec,_0x2dec2f)};return{..._0x3f6dec,'avgHr':_0x169665?weightedAverage(_0x29bc36,'averageHR'):null,'maxHr':_0x169665?(0x0,helpers_1['round'])(_0x29bc36['reduce']((_0x1da107,_0x450468)=>numeric(_0x450468[_0xf35825(0x1d5)])===null?_0x1da107:_0x1da107===null?numeric(_0x450468[_0xf35825(0x1d5)]):Math['max'](_0x1da107,numeric(_0x450468['maxHR'])),null)):null,'avgCadence':_0x169665?weightedAverage(_0x29bc36,'averageRunCadence'):null};},workoutSegments=(_0x27c9bc,_0x379ea0)=>['warmup','active',a18_0x59ca23(0x27b),'cooldown']['map'](_0x18111c=>{const _0x3f459f=a18_0x59ca23,_0x3dd6fe=groupSplits(splitSummaries(_0x27c9bc),_0x18111c);return _0x3dd6fe[_0x3f459f(0x26b)]>0x0?summarizeWorkoutSegment(_0x18111c,_0x3dd6fe,_0x379ea0):null;})[a18_0x59ca23(0x211)](_0x2aa75b=>Boolean(_0x2aa75b)),fToC=_0x29dc7c=>{const _0x7b39da=a18_0x59ca23;var _0x4fbc8f;return(_0x4fbc8f=(0x0,helpers_1[_0x7b39da(0x261)])((_0x29dc7c-0x20)*0x5/0x9,0x1))!==null&&_0x4fbc8f!==void 0x0?_0x4fbc8f:_0x29dc7c;},compactLaps=_0x6ffde9=>{const _0xcb40fd=a18_0x59ca23;var _0x84b33a,_0x1ffa06,_0x4f1b31,_0x32f567,_0x5ce85d;const _0x1b19e=[];for(const _0x5954e7 of _0x6ffde9){if(_0x5954e7[_0xcb40fd(0x225)]<=0x0&&_0x5954e7[_0xcb40fd(0x212)]<=0x0)continue;const _0x4b8e8a=(_0x84b33a=(0x0,helpers_1[_0xcb40fd(0x261)])(_0x5954e7[_0xcb40fd(0x212)]/0x3e8,0x2))!==null&&_0x84b33a!==void 0x0?_0x84b33a:0x0,_0x41aade=(_0x4f1b31=(_0x1ffa06=(0x0,helpers_1[_0xcb40fd(0x261)])(_0x5954e7[_0xcb40fd(0x225)]/0x3c,0x1))!==null&&_0x1ffa06!==void 0x0?_0x1ffa06:(0x0,helpers_1[_0xcb40fd(0x261)])(_0x5954e7[_0xcb40fd(0x1dc)]/0x3c,0x1))!==null&&_0x4f1b31!==void 0x0?_0x4f1b31:0x0,_0x412669=paceFromDistance(_0x5954e7[_0xcb40fd(0x212)],_0x5954e7[_0xcb40fd(0x1dc)]||_0x5954e7[_0xcb40fd(0x225)]),_0x29d002=roundNumber(_0x5954e7[_0xcb40fd(0x200)]),_0x36c4f9=roundNumber(_0x5954e7['maxHR']),_0x5c81e5=roundNumber(_0x5954e7['averageRunCadence']),_0x2696d2=roundNumber(_0x5954e7[_0xcb40fd(0x1e8)]),_0x1f7e2f=roundNumber(_0x5954e7[_0xcb40fd(0x233)]),_0x5aae49=roundNumber(_0x5954e7[_0xcb40fd(0x241)],0x1),_0x4ab663=roundNumber(_0x5954e7[_0xcb40fd(0x214)],0x1),_0x197645=roundNumber(_0x5954e7[_0xcb40fd(0x1d0)]),_0x2aa933=roundNumber(_0x5954e7[_0xcb40fd(0x254)],0x1),_0x46b7ab=_0x5954e7[_0xcb40fd(0x1ff)]!=null?roundNumber(_0x5954e7['averageTemperature']):null;_0x1b19e['push']([(_0x5ce85d=(_0x32f567=_0x5954e7[_0xcb40fd(0x25a)])===null||_0x32f567===void 0x0?void 0x0:_0x32f567[_0xcb40fd(0x1e3)]())!==null&&_0x5ce85d!==void 0x0?_0x5ce85d:'',_0x4b8e8a,_0x41aade,_0x412669!==null&&_0x412669!==void 0x0?_0x412669:'',_0x29d002,_0x36c4f9,_0x5c81e5,_0x2696d2,_0x1f7e2f,_0x5aae49,_0x4ab663,_0x197645,_0x2aa933,_0x46b7ab]);}return{'schema':LAP_SCHEMA,'data':_0x1b19e};},LAP_SCHEMA=[a18_0x59ca23(0x1f1),'distanceKm','durationMin','pace','avgHr',a18_0x59ca23(0x216),a18_0x59ca23(0x262),a18_0x59ca23(0x260),a18_0x59ca23(0x245),'vertOscCm',a18_0x59ca23(0x259),'gctMs','gctBalanceL',a18_0x59ca23(0x255)],LIST_WORKOUT_SEGMENT_SCHEMA=[a18_0x59ca23(0x1f1),a18_0x59ca23(0x244),a18_0x59ca23(0x1ce),a18_0x59ca23(0x1db),a18_0x59ca23(0x27e)],buildWorkout=(_0x485b05,_0x3a76da)=>{const _0x3db932=a18_0x59ca23,_0x54920e=workoutId(_0x485b05),_0x87d824=workoutSegments(_0x485b05,![]);return{'structured':_0x54920e!==null||_0x87d824[_0x3db932(0x26b)]>0x0,'workoutId':_0x54920e,'type':inferWorkoutType(_0x485b05[_0x3db932(0x1f8)],_0x3a76da),'segmentSchema':[...LIST_WORKOUT_SEGMENT_SCHEMA],'segments':_0x87d824[_0x3db932(0x275)](_0x1b84f9=>[_0x1b84f9[_0x3db932(0x1f1)],_0x1b84f9[_0x3db932(0x244)],_0x1b84f9[_0x3db932(0x1ce)],_0x1b84f9[_0x3db932(0x1db)],_0x1b84f9[_0x3db932(0x27e)]])};},compactActivity=_0x3b7eab=>{const _0x5d3fb2=a18_0x59ca23;var _0x140ce5,_0x5d66f8;const _0x1bdc8b=_0x3b7eab,_0x47ae0e=primarySport(_0x1bdc8b),_0x1e9af0=sportKey(_0x1bdc8b),_0x511199=compactDate(_0x3b7eab[_0x5d3fb2(0x248)]),_0x598694=roundNumber(_0x3b7eab[_0x5d3fb2(0x212)]/0x3e8,0x2),_0x2073ee=(0x0,helpers_1[_0x5d3fb2(0x232)])(_0x3b7eab[_0x5d3fb2(0x225)]),_0x28790d=roundNumber(_0x3b7eab[_0x5d3fb2(0x1e8)]),_0x4fd56e=buildTrainingEffect(_0x1bdc8b),_0x4cfd1a=roundNumber(_0x1bdc8b[_0x5d3fb2(0x272)]),_0x1ae96d=roundNumber(_0x3b7eab['averageHR']),_0x33b164=buildWorkout(_0x1bdc8b,_0x4fd56e[_0x5d3fb2(0x20d)]),_0xc308e=buildActivityFlags(_0x47ae0e,_0x598694,_0x28790d,_0x1ae96d,_0x4cfd1a,_0x4fd56e);if(_0x33b164['structured'])_0xc308e[_0x5d3fb2(0x231)](_0x5d3fb2(0x1f9));const _0x4952af={'id':_0x3b7eab['activityId'],'date':_0x511199,'time':compactTime(_0x3b7eab[_0x5d3fb2(0x248)]),'sport':_0x47ae0e,'subSport':_0x1e9af0,'name':(_0x140ce5=_0x3b7eab['activityName'])!==null&&_0x140ce5!==void 0x0?_0x140ce5:null,'summary':{'distanceKm':_0x598694,'durationMin':_0x2073ee!==null&&_0x2073ee!==void 0x0?_0x2073ee:roundNumber(((_0x5d66f8=numeric(_0x3b7eab[_0x5d3fb2(0x225)]))!==null&&_0x5d66f8!==void 0x0?_0x5d66f8:0x0)/0x3c,0x1),'pace':paceFromDistance(_0x3b7eab[_0x5d3fb2(0x212)],_0x3b7eab[_0x5d3fb2(0x225)]),'avgHr':_0x1ae96d,'maxHr':roundNumber(_0x3b7eab[_0x5d3fb2(0x1d5)]),'elevGainM':_0x28790d},'impact':{'label':_0x4fd56e[_0x5d3fb2(0x20d)],'load':_0x4cfd1a,'aerobicTE':_0x4fd56e[_0x5d3fb2(0x1ea)],'anaerobicTE':_0x4fd56e['anaerobic'],'bodyBatteryDelta':roundNumber(_0x1bdc8b['differenceBodyBattery'])},'intensity':{'hrZonesSec':hrZones(_0x1bdc8b)},'flags':_0xc308e};return _0x33b164[_0x5d3fb2(0x1f9)]&&(_0x4952af[_0x5d3fb2(0x209)]=_0x33b164),_0x4952af;},summarizeSports=_0x254050=>{const _0x34cd34=a18_0x59ca23;var _0x14c3ae,_0x512c94,_0xa7c56b,_0x28c888,_0x3cbed5,_0x731cf2,_0x351e63,_0x1a69f3,_0x542790,_0x26e10d,_0x4834b7,_0x41adb0,_0xdf8283,_0xca2210;const _0x23e839={};for(const _0x3b8a53 of _0x254050){const _0x511942=(_0x14c3ae=_0x3b8a53[_0x34cd34(0x21e)])!==null&&_0x14c3ae!==void 0x0?_0x14c3ae:_0x34cd34(0x243),_0x435f7d=(_0x512c94=_0x23e839[_0x511942])!==null&&_0x512c94!==void 0x0?_0x512c94:{'count':0x0,'durationMin':0x0,'load':0x0},_0xe7b7f=(_0xa7c56b=_0x3b8a53[_0x34cd34(0x206)][_0x34cd34(0x1ce)])!==null&&_0xa7c56b!==void 0x0?_0xa7c56b:0x0,_0x4e57ff=(_0x28c888=_0x3b8a53[_0x34cd34(0x206)][_0x34cd34(0x260)])!==null&&_0x28c888!==void 0x0?_0x28c888:0x0;_0x435f7d[_0x34cd34(0x244)]+=0x1,_0x435f7d['durationMin']+=(_0x3cbed5=_0x3b8a53[_0x34cd34(0x206)][_0x34cd34(0x1db)])!==null&&_0x3cbed5!==void 0x0?_0x3cbed5:0x0,_0x435f7d['load']+=(_0x731cf2=_0x3b8a53[_0x34cd34(0x278)][_0x34cd34(0x21b)])!==null&&_0x731cf2!==void 0x0?_0x731cf2:0x0,_0xe7b7f>0x0&&(_0x435f7d[_0x34cd34(0x1ce)]=((_0x351e63=_0x435f7d[_0x34cd34(0x1ce)])!==null&&_0x351e63!==void 0x0?_0x351e63:0x0)+_0xe7b7f),_0x4e57ff>0x0&&(_0x435f7d[_0x34cd34(0x260)]=((_0x1a69f3=_0x435f7d[_0x34cd34(0x260)])!==null&&_0x1a69f3!==void 0x0?_0x1a69f3:0x0)+_0x4e57ff),_0x23e839[_0x511942]=_0x435f7d;}for(const _0x3b53c7 of Object[_0x34cd34(0x1f6)](_0x23e839)){const _0x4eeeb2=_0x23e839[_0x3b53c7];_0x4eeeb2[_0x34cd34(0x1ce)]=(_0x26e10d=(0x0,helpers_1['round'])((_0x542790=_0x4eeeb2[_0x34cd34(0x1ce)])!==null&&_0x542790!==void 0x0?_0x542790:null,0x2))!==null&&_0x26e10d!==void 0x0?_0x26e10d:undefined,_0x4eeeb2[_0x34cd34(0x1db)]=(_0x4834b7=(0x0,helpers_1[_0x34cd34(0x261)])(_0x4eeeb2[_0x34cd34(0x1db)]))!==null&&_0x4834b7!==void 0x0?_0x4834b7:0x0,_0x4eeeb2[_0x34cd34(0x260)]=(_0xdf8283=(0x0,helpers_1[_0x34cd34(0x261)])((_0x41adb0=_0x4eeeb2['elevGainM'])!==null&&_0x41adb0!==void 0x0?_0x41adb0:null))!==null&&_0xdf8283!==void 0x0?_0xdf8283:undefined,_0x4eeeb2[_0x34cd34(0x21b)]=(_0xca2210=(0x0,helpers_1[_0x34cd34(0x261)])(_0x4eeeb2[_0x34cd34(0x21b)]))!==null&&_0xca2210!==void 0x0?_0xca2210:0x0;}return _0x23e839;},buildActivitiesAiHints=_0x3e3590=>{const _0x173096=a18_0x59ca23,_0x49b514=[];return _0x3e3590[_0x173096(0x221)](_0x7c60d5=>{const _0x13d29f=_0x173096;var _0x1a0135;return((_0x1a0135=_0x7c60d5[_0x13d29f(0x21e)])===null||_0x1a0135===void 0x0?void 0x0:_0x1a0135[_0x13d29f(0x1c7)](_0x13d29f(0x23c)))&&_0x7c60d5[_0x13d29f(0x22c)][_0x13d29f(0x1c7)](_0x13d29f(0x1e1));})&&_0x49b514[_0x173096(0x1e6)]('recent_running_tempo_session'),_0x3e3590['some'](_0x4d08d7=>_0x4d08d7[_0x173096(0x21e)]==='indoor_cardio'&&_0x4d08d7['flags'][_0x173096(0x1c7)]('very_low_load'))&&_0x49b514[_0x173096(0x1e6)](_0x173096(0x1ee)),_0x3e3590[_0x173096(0x26b)]>0x0&&_0x49b514[_0x173096(0x1e6)](_0x173096(0x217)),_0x49b514;},detailSummary=_0x425e79=>{const _0x9b934e=a18_0x59ca23;var _0x3edb96;return(_0x3edb96=_0x425e79[_0x9b934e(0x20a)])!==null&&_0x3edb96!==void 0x0?_0x3edb96:_0x425e79;},buildDetailRunForm=_0x2e0e20=>({'cadence':roundNumber(_0x2e0e20['averageRunCadence']),'maxCadence':roundNumber(_0x2e0e20[a18_0x59ca23(0x202)]),'strideCm':roundNumber(_0x2e0e20['strideLength']),'gctMs':roundNumber(_0x2e0e20[a18_0x59ca23(0x1d0)]),'gctBalanceLeft':roundNumber(_0x2e0e20[a18_0x59ca23(0x254)],0x1),'verticalOscCm':roundNumber(_0x2e0e20['verticalOscillation'],0x1),'verticalRatio':roundNumber(_0x2e0e20[a18_0x59ca23(0x214)],0x1)}),compactWorkout=_0x42fbf6=>{const _0x5486be=a18_0x59ca23;var _0x37b712,_0xc66ffe,_0x7eea72,_0x5cb3d4,_0x5736da;if(!(_0x42fbf6===null||_0x42fbf6===void 0x0?void 0x0:_0x42fbf6[_0x5486be(0x26b)]))return undefined;const _0x30ce16=_0x42fbf6[0x0],_0x3104c0=_0x30ce16['workoutName']||null,_0x5280aa=[],_0x50ee97=_0x30ce16[_0x5486be(0x23f)];for(let _0x9718d=0x0;_0x9718d<_0x50ee97[_0x5486be(0x26b)];_0x9718d++){const _0x4d520d=_0x50ee97[_0x9718d];if(_0x4d520d[_0x5486be(0x203)]==='REPEAT_UNTIL_STEPS_CMPLT'){const _0x414acf=Math[_0x5486be(0x261)]((_0x37b712=_0x4d520d[_0x5486be(0x227)])!==null&&_0x37b712!==void 0x0?_0x37b712:0x1),_0x495415=Math['round'](_0x4d520d[_0x5486be(0x1f3)]),_0x327a18=_0x5280aa[_0x5486be(0x26b)]-_0x495415,_0x34a6c0=_0x5280aa['length'];for(let _0x2169d9=0x0;_0x2169d9<_0x414acf;_0x2169d9++){for(let _0x257178=_0x327a18;_0x257178<_0x34a6c0;_0x257178++){_0x5280aa[_0x5486be(0x1e6)]([..._0x5280aa[_0x257178]]);}}}else{if(_0x4d520d[_0x5486be(0x246)]){const _0x4ee3e6=(_0x7eea72=(_0xc66ffe=_0x4d520d[_0x5486be(0x203)])===null||_0xc66ffe===void 0x0?void 0x0:_0xc66ffe[_0x5486be(0x1e3)]())!==null&&_0x7eea72!==void 0x0?_0x7eea72:_0x5486be(0x1cb);_0x5280aa['push']([_0x4d520d['intensity'][_0x5486be(0x1e3)](),_0x4ee3e6,_0x4d520d['durationValue'],(_0x5736da=(_0x5cb3d4=_0x4d520d[_0x5486be(0x1e4)])===null||_0x5cb3d4===void 0x0?void 0x0:_0x5cb3d4['toLowerCase']())!==null&&_0x5736da!==void 0x0?_0x5736da:null,roundNumber(_0x4d520d[_0x5486be(0x1fd)]),roundNumber(_0x4d520d[_0x5486be(0x277)])]);}}}return{'name':_0x3104c0,'schema':WORKOUT_SCHEMA,'steps':_0x5280aa};},WORKOUT_SCHEMA=[a18_0x59ca23(0x246),'durationType',a18_0x59ca23(0x1f3),a18_0x59ca23(0x1e4),'targetLow','targetHigh'],normalizeMovementType=_0x1a05b4=>{const _0x5de4a9=a18_0x59ca23;if(!_0x1a05b4)return null;const _0x397f0c=_0x1a05b4['toLowerCase']();if(_0x397f0c===_0x5de4a9(0x26f))return'run';if(_0x397f0c===_0x5de4a9(0x1e0))return _0x5de4a9(0x273);if(_0x397f0c===_0x5de4a9(0x1c6))return _0x5de4a9(0x1d1);return null;},buildMovementBreakdown=_0x437770=>{const _0x403e8c=a18_0x59ca23,_0x1efeff={};for(const _0x28f150 of['run',_0x403e8c(0x273),_0x403e8c(0x1d1)]){const _0x40b356=splitSummaries(_0x437770)['filter'](_0x2e2179=>normalizeMovementType(_0x2e2179['splitType'])===_0x28f150);if(_0x40b356[_0x403e8c(0x26b)]===0x0)continue;const _0x39f20f=_0x40b356[_0x403e8c(0x24c)]((_0x575d42,_0x1a0f4f)=>{var _0x12271e;return _0x575d42+((_0x12271e=numeric(_0x1a0f4f['distance']))!==null&&_0x12271e!==void 0x0?_0x12271e:0x0);},0x0),_0x417216=_0x40b356[_0x403e8c(0x24c)]((_0x42196d,_0x560572)=>{const _0x419e9e=_0x403e8c;var _0x4bdc86;return _0x42196d+((_0x4bdc86=numeric(_0x560572[_0x419e9e(0x225)]))!==null&&_0x4bdc86!==void 0x0?_0x4bdc86:0x0);},0x0),_0x2a7e10={'distanceKm':(0x0,helpers_1[_0x403e8c(0x261)])(_0x39f20f/0x3e8,0x2),'avgHr':weightedAverage(_0x40b356,_0x403e8c(0x200))};_0x417216>=0x3c?_0x2a7e10[_0x403e8c(0x1db)]=(0x0,helpers_1[_0x403e8c(0x261)])(_0x417216/0x3c,0x1):_0x2a7e10[_0x403e8c(0x23b)]=(0x0,helpers_1[_0x403e8c(0x261)])(_0x417216,0x1),_0x1efeff[_0x28f150]=_0x2a7e10;}return _0x1efeff;},buildDetailAiHints=(_0x3da3bc,_0x2c9966,_0x3d3413,_0x32b801,_0x53e02f,_0x4548be,_0x4aec5d)=>{const _0x101e3b=a18_0x59ca23;var _0x56d7cd,_0x15db3c,_0x4605cc;const _0x245a77=[],_0x489436=(_0x56d7cd=_0x4548be===null||_0x4548be===void 0x0?void 0x0:_0x4548be[_0x101e3b(0x1ca)])!==null&&_0x56d7cd!==void 0x0?_0x56d7cd:[],_0x3119ff=_0x489436['filter'](_0x24035d=>_0x24035d[0x0]===_0x101e3b(0x270)),_0x5e1614=_0x489436['filter'](_0x5aa929=>_0x5aa929[0x0]===_0x101e3b(0x27b));if(_0x3119ff[_0x101e3b(0x26b)]>0x1)_0x245a77[_0x101e3b(0x1e6)](_0x3119ff[_0x101e3b(0x26b)]+_0x101e3b(0x223));if(_0x3da3bc&&_0x3da3bc!==_0x101e3b(0x243))_0x245a77[_0x101e3b(0x1e6)](_0x3da3bc+_0x101e3b(0x27c));if((_0x2c9966!==null&&_0x2c9966!==void 0x0?_0x2c9966:0x0)>=0x4)_0x245a77['push']('high_aerobic_stimulus');else(_0x2c9966!==null&&_0x2c9966!==void 0x0?_0x2c9966:0x0)>=2.5&&_0x245a77[_0x101e3b(0x1e6)](_0x101e3b(0x24d));if(_0x3da3bc===_0x101e3b(0x218))_0x245a77[_0x101e3b(0x1e6)](_0x101e3b(0x27d));(_0x3d3413!==null&&_0x3d3413!==void 0x0?_0x3d3413:0x0)>0x0&&(_0x3d3413!==null&&_0x3d3413!==void 0x0?_0x3d3413:0x0)<0x2&&_0x245a77['push'](_0x101e3b(0x274));if(((_0x15db3c=_0x32b801===null||_0x32b801===void 0x0?void 0x0:_0x32b801[_0x101e3b(0x1e9)])!==null&&_0x15db3c!==void 0x0?_0x15db3c:0x0)>=0xaa)_0x245a77[_0x101e3b(0x1e6)](_0x101e3b(0x22a));(_0x53e02f!==null&&_0x53e02f!==void 0x0?_0x53e02f:0x0)<=-0x8&&(_0x53e02f!==null&&_0x53e02f!==void 0x0?_0x53e02f:0x0)>-0x14&&_0x245a77[_0x101e3b(0x1e6)]('body_battery_moderate_drain');const _0x2e9f80=_0x3119ff[_0x101e3b(0x24c)]((_0x2addcd,_0x1bc6e1)=>{var _0xcdab9e;return _0x2addcd+((_0xcdab9e=_0x1bc6e1[0x2])!==null&&_0xcdab9e!==void 0x0?_0xcdab9e:0x0);},0x0);if(_0x2e9f80>=0x14)_0x245a77[_0x101e3b(0x1e6)](_0x101e3b(0x1cd));const _0xc13b23=_0x5e1614[_0x101e3b(0x26b)]>0x0?_0x5e1614[_0x101e3b(0x24c)]((_0x4e0f15,_0x551770)=>{var _0x5f3dde;return _0x4e0f15+((_0x5f3dde=_0x551770[0x4])!==null&&_0x5f3dde!==void 0x0?_0x5f3dde:0x0);},0x0)/_0x5e1614['length']:null,_0x389c3e=(_0x4605cc=_0x4aec5d[_0x101e3b(0x242)])===null||_0x4605cc===void 0x0?void 0x0:_0x4605cc[_0x101e3b(0x27a)];_0xc13b23!==null&&_0xc13b23>0x0&&(_0x389c3e!==null&&_0x389c3e!==void 0x0?_0x389c3e:0x0)>0x0&&_0xc13b23>=(_0x389c3e!==null&&_0x389c3e!==void 0x0?_0x389c3e:0x0)&&_0x245a77[_0x101e3b(0x1e6)]('rest_hr_high_indicates_incomplete_recovery_between_reps');const _0x20fadc=_0x489436['map'](_0x4c29e3=>_0x4c29e3[0xd])[_0x101e3b(0x211)](_0x221653=>_0x221653!==null);if(_0x20fadc[_0x101e3b(0x26b)]>0x0){const _0x28eaaf=Math['min'](..._0x20fadc),_0x19e3c7=Math['max'](..._0x20fadc);if(_0x28eaaf<=0x5)_0x245a77[_0x101e3b(0x1e6)]('cold_weather_workout');if(_0x19e3c7>=0x1e)_0x245a77[_0x101e3b(0x1e6)](_0x101e3b(0x22e));}return Array[_0x101e3b(0x222)](new Set(_0x245a77));},buildActivitiesSummary=async(_0x47f9de,_0x2ec6ba,_0xc87349={})=>{const _0x1ce9fd=a18_0x59ca23;var _0x346c5d,_0x20dcbb,_0x4bb839,_0x5bea2a;await _0x2ec6ba[_0x1ce9fd(0x1fc)]();const _0x1f2e10=await _0x47f9de[_0x1ce9fd(0x208)]((_0x346c5d=_0xc87349[_0x1ce9fd(0x286)])!==null&&_0x346c5d!==void 0x0?_0x346c5d:0x0,(_0x20dcbb=_0xc87349[_0x1ce9fd(0x276)])!==null&&_0x20dcbb!==void 0x0?_0x20dcbb:0x14,_0xc87349[_0x1ce9fd(0x1c5)],_0xc87349[_0x1ce9fd(0x220)]),_0x5b4c9f=_0x1f2e10[_0x1ce9fd(0x275)](compactActivity),_0x22e983=(_0x4bb839=(0x0,helpers_1[_0x1ce9fd(0x261)])(_0x5b4c9f['reduce']((_0x56c4ad,_0x44f2dc)=>{const _0x1add82=_0x1ce9fd;var _0x670a81;return _0x56c4ad+((_0x670a81=_0x44f2dc[_0x1add82(0x278)]['load'])!==null&&_0x670a81!==void 0x0?_0x670a81:0x0);},0x0)))!==null&&_0x4bb839!==void 0x0?_0x4bb839:0x0,_0x39e64c=(_0x5bea2a=(0x0,helpers_1[_0x1ce9fd(0x261)])(_0x5b4c9f[_0x1ce9fd(0x24c)]((_0x5b7a8e,_0x159a82)=>{const _0x16b994=_0x1ce9fd;var _0x359277;return _0x5b7a8e+((_0x359277=_0x159a82['summary'][_0x16b994(0x1db)])!==null&&_0x359277!==void 0x0?_0x359277:0x0);},0x0)))!==null&&_0x5bea2a!==void 0x0?_0x5bea2a:0x0;return{'schema':_0x1ce9fd(0x1f7),'summary':{'activities':_0x5b4c9f[_0x1ce9fd(0x26b)],'sports':summarizeSports(_0x5b4c9f),'totalLoad':_0x22e983,'totalDurationMin':_0x39e64c,'hardSessions':_0x5b4c9f[_0x1ce9fd(0x211)](_0x5625ed=>{var _0x5cc478;return((_0x5cc478=_0x5625ed['impact']['load'])!==null&&_0x5cc478!==void 0x0?_0x5cc478:0x0)>=0x96;})[_0x1ce9fd(0x26b)],'easySessions':_0x5b4c9f[_0x1ce9fd(0x211)](_0x2a94a5=>{const _0x482ed9=_0x1ce9fd;var _0x340a91,_0x2baa57;return((_0x340a91=_0x2a94a5['impact']['load'])!==null&&_0x340a91!==void 0x0?_0x340a91:0x0)>0x0&&((_0x2baa57=_0x2a94a5[_0x482ed9(0x278)][_0x482ed9(0x21b)])!==null&&_0x2baa57!==void 0x0?_0x2baa57:0x0)<0x32;})[_0x1ce9fd(0x26b)],'otherSessions':_0x5b4c9f[_0x1ce9fd(0x211)](_0x221442=>{const _0xd4d16d=_0x1ce9fd;var _0x9e24d4;return((_0x9e24d4=_0x221442[_0xd4d16d(0x278)][_0xd4d16d(0x21b)])!==null&&_0x9e24d4!==void 0x0?_0x9e24d4:0x0)===0x0;})[_0x1ce9fd(0x26b)]},'activities':_0x5b4c9f,'aiHints':buildActivitiesAiHints(_0x5b4c9f)};};exports['buildActivitiesSummary']=buildActivitiesSummary;const buildActivityDetailSummary=async(_0x1fa41a,_0x32cd8e,_0x15052d)=>{const _0x23286a=a18_0x59ca23;var _0x2c8b81,_0x2dc3d4,_0xaedc29,_0x34d1c1;await _0x32cd8e['checkTokenVaild']();const _0x1b8c3f=await((async()=>{const _0x4d51be=a18_0x5ef1;var _0x5a3d93,_0x25c4c3,_0x43602a,_0x22beb5,_0x5f2e96,_0x16ebe0,_0x357169;const _0x5c5cf5=await _0x1fa41a['getActivity']({'activityId':_0x15052d[_0x4d51be(0x26c)]}),_0x418da6=_0x5c5cf5,_0xefe92=detailSummary(_0x418da6),_0x3bc071=buildTrainingEffect(_0xefe92);return{'id':_0x418da6[_0x4d51be(0x26c)],'sport':primarySport(_0x418da6),'subSport':sportKey(_0x418da6),'name':(_0x5a3d93=_0x418da6[_0x4d51be(0x1f8)])!==null&&_0x5a3d93!==void 0x0?_0x5a3d93:null,'location':(_0x25c4c3=_0x418da6[_0x4d51be(0x23a)])!==null&&_0x25c4c3!==void 0x0?_0x25c4c3:null,'wkId':workoutId(_0x418da6),'startTime':(_0x43602a=_0xefe92[_0x4d51be(0x248)])!==null&&_0x43602a!==void 0x0?_0x43602a:_0x418da6[_0x4d51be(0x248)],'effect':_0x3bc071,'label':_0x3bc071['label'],'load':roundNumber(_0xefe92[_0x4d51be(0x272)]),'bodyBatteryDelta':roundNumber(_0xefe92[_0x4d51be(0x1d4)]),'runForm':buildDetailRunForm(_0xefe92),'movementBreakdown':buildMovementBreakdown(_0x418da6),'summaryStats':{'distanceKm':roundNumber(_0xefe92[_0x4d51be(0x212)]/0x3e8,0x2),'durationMin':roundNumber(((_0x22beb5=numeric(_0xefe92[_0x4d51be(0x225)]))!==null&&_0x22beb5!==void 0x0?_0x22beb5:0x0)/0x3c,0x1),'movingMin':roundNumber(((_0x5f2e96=numeric(_0xefe92[_0x4d51be(0x1dc)]))!==null&&_0x5f2e96!==void 0x0?_0x5f2e96:0x0)/0x3c,0x1),'elapsedMin':roundNumber(((_0x16ebe0=numeric(_0xefe92['elapsedDuration']))!==null&&_0x16ebe0!==void 0x0?_0x16ebe0:0x0)/0x3c,0x1),'pace':paceFromDistance(_0xefe92[_0x4d51be(0x212)],_0xefe92[_0x4d51be(0x225)]),'gapPace':paceFromSpeed(_0xefe92[_0x4d51be(0x271)]),'avgHr':roundNumber(_0xefe92[_0x4d51be(0x200)]),'maxHr':roundNumber(_0xefe92[_0x4d51be(0x1d5)]),'calories':roundNumber(_0xefe92[_0x4d51be(0x266)]),'elevGainM':roundNumber(_0xefe92[_0x4d51be(0x1e8)]),'elevLossM':roundNumber(_0xefe92[_0x4d51be(0x268)]),'avgTempC':roundNumber(_0xefe92[_0x4d51be(0x1ff)])},'trainingImpactStats':{'aerobicMessage':normalizeMessage(_0xefe92['aerobicTrainingEffectMessage']),'anaerobicMessage':normalizeMessage(_0xefe92[_0x4d51be(0x1d3)]),'recoveryHr':roundNumber(_0xefe92[_0x4d51be(0x201)])},'intensity':{'moderateMin':roundNumber(_0xefe92[_0x4d51be(0x27f)]),'vigorousMin':roundNumber(_0xefe92[_0x4d51be(0x1cc)])},'stamina':{'begin':roundNumber(_0xefe92[_0x4d51be(0x24b)]),'end':roundNumber(_0xefe92[_0x4d51be(0x1dd)]),'minAvailable':roundNumber(_0xefe92[_0x4d51be(0x24e)])},'subjective':{'feel':roundNumber(_0xefe92[_0x4d51be(0x256)]),'rpe':roundNumber(_0xefe92[_0x4d51be(0x1ed)]),'complianceScore':roundNumber((_0x357169=_0xefe92[_0x4d51be(0x1d6)])!==null&&_0x357169!==void 0x0?_0x357169:_0xefe92['workoutComplianceScore'])}};})()),[_0x280bf7,_0x179779,_0xe7718f]=await Promise[_0x23286a(0x281)]([_0x1fa41a[_0x23286a(0x23d)]({'activityId':_0x15052d['activityId']})['catch'](()=>null),_0x1fa41a[_0x23286a(0x284)]({'activityId':_0x15052d[_0x23286a(0x26c)]})[_0x23286a(0x238)](()=>null),_0x1fa41a['getActivityWorkouts']({'activityId':_0x15052d[_0x23286a(0x26c)]})[_0x23286a(0x238)](()=>null)]),_0x2caf89=_0x280bf7,_0x4db6c1=((_0x2c8b81=_0x2caf89===null||_0x2caf89===void 0x0?void 0x0:_0x2caf89[_0x23286a(0x1f2)])===null||_0x2c8b81===void 0x0?void 0x0:_0x2c8b81[_0x23286a(0x26b)])?compactLaps(_0x2caf89[_0x23286a(0x1f2)]):undefined,_0x3f1121=_0xe7718f,_0x2f2ed6=compactWorkout(_0x3f1121!==null&&_0x3f1121!==void 0x0?_0x3f1121:[]),_0x4afa96=_0x179779,_0x3da790=_0x4afa96?{'tempC':fToC(_0x4afa96['temp']),'apparentTempC':fToC(_0x4afa96[_0x23286a(0x279)]),'dewPointC':fToC(_0x4afa96['dewPoint']),'relativeHumidity':roundNumber(_0x4afa96[_0x23286a(0x1d8)]),'windDirection':roundNumber(_0x4afa96[_0x23286a(0x26a)]),'windDirectionCompass':(_0x2dc3d4=_0x4afa96[_0x23286a(0x213)])!==null&&_0x2dc3d4!==void 0x0?_0x2dc3d4:null,'windSpeed':roundNumber(_0x4afa96[_0x23286a(0x285)]),'condition':(_0x34d1c1=(_0xaedc29=_0x4afa96[_0x23286a(0x1ec)])===null||_0xaedc29===void 0x0?void 0x0:_0xaedc29[_0x23286a(0x1d2)])!==null&&_0x34d1c1!==void 0x0?_0x34d1c1:null}:undefined,_0x519434={'schema':_0x23286a(0x215),'id':_0x1b8c3f['id'],'date':compactDate(_0x1b8c3f[_0x23286a(0x1e2)]),'startTime':compactTime(_0x1b8c3f[_0x23286a(0x1e2)]),'sport':_0x1b8c3f[_0x23286a(0x21e)],'subSport':_0x1b8c3f[_0x23286a(0x224)],'name':_0x1b8c3f[_0x23286a(0x1cf)],'location':_0x1b8c3f[_0x23286a(0x26d)],'isStructuredWorkout':_0x1b8c3f[_0x23286a(0x280)]!==null,'workoutId':_0x1b8c3f[_0x23286a(0x280)],'summary':_0x1b8c3f[_0x23286a(0x239)],'trainingImpact':{'label':_0x1b8c3f[_0x23286a(0x20d)],'load':_0x1b8c3f[_0x23286a(0x21b)],'aerobicTE':_0x1b8c3f[_0x23286a(0x1c8)][_0x23286a(0x1ea)],'anaerobicTE':_0x1b8c3f['effect'][_0x23286a(0x234)],'aerobicMessage':_0x1b8c3f[_0x23286a(0x1f4)][_0x23286a(0x1f0)],'anaerobicMessage':_0x1b8c3f[_0x23286a(0x1f4)][_0x23286a(0x22b)],'bodyBatteryDelta':_0x1b8c3f[_0x23286a(0x251)],'recoveryHr':_0x1b8c3f['trainingImpactStats']['recoveryHr']},'intensity':_0x1b8c3f[_0x23286a(0x246)],'runForm':_0x1b8c3f[_0x23286a(0x282)],'stamina':_0x1b8c3f['stamina'],'subjective':_0x1b8c3f[_0x23286a(0x250)],'movementBreakdown':_0x1b8c3f[_0x23286a(0x264)],'aiHints':[]};if(_0x4db6c1)_0x519434[_0x23286a(0x219)]=_0x4db6c1;if(_0x2f2ed6)_0x519434[_0x23286a(0x209)]=_0x2f2ed6;if(_0x3da790)_0x519434[_0x23286a(0x229)]=_0x3da790;return _0x519434[_0x23286a(0x210)]=buildDetailAiHints(_0x1b8c3f[_0x23286a(0x20d)],_0x1b8c3f[_0x23286a(0x1c8)][_0x23286a(0x1ea)],_0x1b8c3f[_0x23286a(0x1c8)]['anaerobic'],_0x1b8c3f['runForm'],_0x1b8c3f[_0x23286a(0x251)],_0x4db6c1,_0x1b8c3f[_0x23286a(0x264)]),_0x519434;};function a18_0x5ef1(_0x1719e9,_0x42df2c){_0x1719e9=_0x1719e9-0x1c5;const _0xc1c7f0=a18_0xc1c7();let _0x5ef17a=_0xc1c7f0[_0x1719e9];return _0x5ef17a;}exports[a18_0x59ca23(0x1fa)]=buildActivityDetailSummary;
1
+ 'use strict';const a18_0x150497=a18_0x38c1;(function(_0x40ca2e,_0x25fea0){const _0x373edb=a18_0x38c1,_0x5c2f1e=_0x40ca2e();while(!![]){try{const _0x5261da=parseInt(_0x373edb(0x109))/0x1+parseInt(_0x373edb(0x8d))/0x2+-parseInt(_0x373edb(0x10b))/0x3*(-parseInt(_0x373edb(0x12a))/0x4)+parseInt(_0x373edb(0xc9))/0x5+-parseInt(_0x373edb(0x135))/0x6+-parseInt(_0x373edb(0xfd))/0x7*(parseInt(_0x373edb(0x137))/0x8)+-parseInt(_0x373edb(0xcb))/0x9;if(_0x5261da===_0x25fea0)break;else _0x5c2f1e['push'](_0x5c2f1e['shift']());}catch(_0x2916a0){_0x5c2f1e['push'](_0x5c2f1e['shift']());}}}(a18_0x372d,0x9367a));Object[a18_0x150497(0x89)](exports,a18_0x150497(0x117),{'value':!![]}),exports['buildActivityDetailSummary']=exports['buildActivitiesSummary']=void 0x0;const helpers_1=require(a18_0x150497(0xf4)),numeric=_0x55ef5f=>typeof _0x55ef5f===a18_0x150497(0x10c)&&Number[a18_0x150497(0xb3)](_0x55ef5f)?_0x55ef5f:null,roundNumber=(_0x315e43,_0x3aa86e=0x0)=>(0x0,helpers_1['round'])(numeric(_0x315e43),_0x3aa86e),compactDate=_0x2621b2=>_0x2621b2?_0x2621b2[a18_0x150497(0xf5)](0x0,0xa):null,compactTime=_0x3b4a08=>{const _0x40a618=a18_0x150497;if(!_0x3b4a08)return null;const _0x49d479=_0x3b4a08['includes']('T')?_0x3b4a08[_0x40a618(0x114)]('T')[0x1]:_0x3b4a08[_0x40a618(0x114)]('\x20')[0x1];return _0x49d479?_0x49d479['slice'](0x0,0x5):null;},formatPace=_0x29c991=>{const _0x2537ae=a18_0x150497;if(!_0x29c991||!Number[_0x2537ae(0xb3)](_0x29c991))return null;const _0x2a350a=Math['round'](_0x29c991),_0x105526=Math[_0x2537ae(0xdc)](_0x2a350a/0x3c),_0x5f1e7c=_0x2a350a%0x3c;return _0x105526+':'+_0x5f1e7c[_0x2537ae(0xa6)]()['padStart'](0x2,'0')+_0x2537ae(0xdd);},paceFromDistance=(_0x435835,_0x2a88af)=>{const _0x591649=numeric(_0x435835),_0x5b48c9=numeric(_0x2a88af);if(!_0x591649||!_0x5b48c9||_0x591649<=0x0)return null;return formatPace(_0x5b48c9/(_0x591649/0x3e8));},paceFromSpeed=_0x129d51=>{const _0x29434e=numeric(_0x129d51);if(!_0x29434e||_0x29434e<=0x0)return null;return formatPace(0x3e8/_0x29434e);},normalizeMessage=_0x3000a6=>{const _0x489b98=a18_0x150497;var _0x20b610;const _0x2fe1bd=(0x0,helpers_1[_0x489b98(0x10f)])(_0x3000a6);return(_0x20b610=_0x2fe1bd===null||_0x2fe1bd===void 0x0?void 0x0:_0x2fe1bd[_0x489b98(0xa0)](/_\d+$/,''))!==null&&_0x20b610!==void 0x0?_0x20b610:null;},trainingLabel=_0x3a8dca=>{const _0x2b2a21=a18_0x150497;var _0x17b9df;return(_0x17b9df=(0x0,helpers_1['compactLower'])(typeof _0x3a8dca===_0x2b2a21(0xe0)?_0x3a8dca:undefined))!==null&&_0x17b9df!==void 0x0?_0x17b9df:_0x2b2a21(0xf3);},buildTrainingEffect=_0x2d7190=>{const _0x5a5cd6=a18_0x150497;var _0x61b704;return{'aerobic':roundNumber((_0x61b704=_0x2d7190[_0x5a5cd6(0xcd)])!==null&&_0x61b704!==void 0x0?_0x61b704:_0x2d7190['trainingEffect'],0x1),'anaerobic':roundNumber(_0x2d7190['anaerobicTrainingEffect'],0x1),'label':trainingLabel(_0x2d7190[_0x5a5cd6(0x90)])};},hrZones=_0x387eee=>{const _0x534fec=a18_0x150497,_0x234b4d=[0x1,0x2,0x3,0x4,0x5][_0x534fec(0x7f)](_0x4f153d=>roundNumber(_0x387eee['hrTimeInZone_'+_0x4f153d],0x1));return _0x234b4d[_0x534fec(0xdb)](_0x40f098=>_0x40f098!==null)?_0x234b4d[_0x534fec(0x7f)](_0x3f5b16=>_0x3f5b16!==null&&_0x3f5b16!==void 0x0?_0x3f5b16:0x0):[];},sportKey=_0x5191d1=>{const _0x1d31b5=a18_0x150497;var _0x4d1f71,_0x521c01,_0x2a5a7d,_0x19235f;return(_0x19235f=(_0x521c01=(_0x4d1f71=_0x5191d1['activityType'])===null||_0x4d1f71===void 0x0?void 0x0:_0x4d1f71['typeKey'])!==null&&_0x521c01!==void 0x0?_0x521c01:(_0x2a5a7d=_0x5191d1[_0x1d31b5(0xc7)])===null||_0x2a5a7d===void 0x0?void 0x0:_0x2a5a7d[_0x1d31b5(0x9c)])!==null&&_0x19235f!==void 0x0?_0x19235f:null;},primarySport=_0x39ccc4=>{const _0x511405=a18_0x150497,_0x3e6857=sportKey(_0x39ccc4);if(!_0x3e6857)return null;if(_0x3e6857[_0x511405(0x102)](_0x511405(0x99)))return _0x511405(0x99);if(_0x3e6857[_0x511405(0x102)]('cycling')||_0x3e6857[_0x511405(0x102)]('biking'))return'cycling';return _0x3e6857;},workoutId=_0x438b1b=>{const _0x124db4=a18_0x150497;var _0x243b74,_0x30c9a3,_0x3a8da1;return roundNumber((_0x3a8da1=(_0x243b74=_0x438b1b[_0x124db4(0x10e)])!==null&&_0x243b74!==void 0x0?_0x243b74:(_0x30c9a3=_0x438b1b[_0x124db4(0x94)])===null||_0x30c9a3===void 0x0?void 0x0:_0x30c9a3['associatedWorkoutId'])!==null&&_0x3a8da1!==void 0x0?_0x3a8da1:_0x438b1b[_0x124db4(0x115)]);},hasDistance=_0x4667a0=>_0x4667a0!==null&&_0x4667a0>0x0,buildActivityFlags=(_0x47bb4d,_0xef618b,_0x8ad63d,_0x3e8bc7,_0x2799a9,_0xc92db0)=>{const _0x4593f0=a18_0x150497;var _0x30466a,_0x43e562;const _0xc81183=[];if((_0x2799a9!==null&&_0x2799a9!==void 0x0?_0x2799a9:0x0)<0xa)_0xc81183[_0x4593f0(0x130)]('very_low_load');if(_0x2799a9!==null&&_0x2799a9>=0x64)_0xc81183[_0x4593f0(0x130)](_0x4593f0(0xb2));if(_0x2799a9!==null&&_0x2799a9>=0x96)_0xc81183[_0x4593f0(0x130)]('hard_session');if(_0x2799a9!==null&&_0x2799a9>=0x96)_0xc81183[_0x4593f0(0x130)]('moderate_high_load');if(_0x2799a9!==null&&_0x2799a9>=0xfa)_0xc81183['push'](_0x4593f0(0xf7));if(_0x47bb4d==='indoor_cardio')_0xc81183['push'](_0x4593f0(0x101));if(_0x47bb4d===null||_0x47bb4d===void 0x0?void 0x0:_0x47bb4d[_0x4593f0(0x102)](_0x4593f0(0x128)))_0xc81183['push'](_0x4593f0(0xe9));if((_0x8ad63d!==null&&_0x8ad63d!==void 0x0?_0x8ad63d:0x0)>=0x12c)_0xc81183[_0x4593f0(0x130)](_0x4593f0(0x10d));(_0x47bb4d===null||_0x47bb4d===void 0x0?void 0x0:_0x47bb4d[_0x4593f0(0x102)]('running'))&&(_0xc92db0['label']==='tempo'||((_0x30466a=_0xc92db0[_0x4593f0(0x133)])!==null&&_0x30466a!==void 0x0?_0x30466a:0x0)>=0x3)&&_0xc81183['push'](_0x4593f0(0x118));if(((_0x43e562=_0xc92db0[_0x4593f0(0x133)])!==null&&_0x43e562!==void 0x0?_0x43e562:0x0)>=0x3)_0xc81183[_0x4593f0(0x130)]('aerobic_improving');return hasDistance(_0xef618b)&&_0xef618b<0x2&&(_0x3e8bc7!==null&&_0x3e8bc7!==void 0x0?_0x3e8bc7:0x0)>=0x8c&&_0xc81183[_0x4593f0(0x130)]('high_hr_for_low_distance'),Array[_0x4593f0(0x121)](new Set(_0xc81183));},splitSummaries=_0x5a7ae6=>Array['isArray'](_0x5a7ae6[a18_0x150497(0xfa)])?_0x5a7ae6['splitSummaries']:[],normalizeSegmentType=_0xdb8b2c=>{const _0x448cc9=a18_0x150497;if(!_0xdb8b2c)return null;const _0x2737d4=_0xdb8b2c['toLowerCase']();if(_0x2737d4==='interval_warmup')return _0x448cc9(0xe3);if(_0x2737d4==='interval_cooldown')return _0x448cc9(0xc8);if(_0x2737d4==='interval_recovery'||_0x2737d4===_0x448cc9(0xfb))return _0x448cc9(0x11e);if(_0x2737d4===_0x448cc9(0x12d))return _0x448cc9(0x123);return null;},inferWorkoutType=(_0x561ea3,_0x2e80ef)=>{const _0x1143ae=a18_0x150497,_0x3d99ae=((_0x561ea3!==null&&_0x561ea3!==void 0x0?_0x561ea3:'')+'\x20'+(_0x2e80ef!==null&&_0x2e80ef!==void 0x0?_0x2e80ef:''))[_0x1143ae(0xf1)](),_0x3bf721=[];if(_0x3d99ae[_0x1143ae(0x102)](_0x1143ae(0x7e)))_0x3bf721[_0x1143ae(0x130)](_0x1143ae(0x7e));if(_0x3d99ae[_0x1143ae(0x102)](_0x1143ae(0xf9)))_0x3bf721[_0x1143ae(0x130)](_0x1143ae(0xa1));if(_0x3d99ae[_0x1143ae(0x102)]('tempo'))_0x3bf721[_0x1143ae(0x130)](_0x1143ae(0x134));if(_0x3d99ae['includes'](_0x1143ae(0xac)))_0x3bf721[_0x1143ae(0x130)](_0x1143ae(0xac));return _0x3bf721[_0x1143ae(0x100)]>0x0?_0x3bf721[_0x1143ae(0x127)]('_'):null;},splitCount=_0x3bbeb0=>{const _0x5dbc2f=a18_0x150497;var _0x4e88d9;return(_0x4e88d9=roundNumber(_0x3bbeb0[_0x5dbc2f(0xaa)]))!==null&&_0x4e88d9!==void 0x0?_0x4e88d9:0x1;},weightedAverage=(_0xb0aa43,_0x52c74f,_0x184a73=a18_0x150497(0x88),_0x4220f6=0x0)=>{const _0xdc0889=a18_0x150497;var _0x2a583c;let _0x20bd97=0x0,_0x17af76=0x0;for(const _0x1ceee9 of _0xb0aa43){const _0x5e93f8=numeric(_0x1ceee9[_0x52c74f]),_0x3c1c65=(_0x2a583c=numeric(_0x1ceee9[_0x184a73]))!==null&&_0x2a583c!==void 0x0?_0x2a583c:0x0;_0x5e93f8!==null&&_0x3c1c65>0x0&&(_0x20bd97+=_0x5e93f8*_0x3c1c65,_0x17af76+=_0x3c1c65);}return _0x17af76>0x0?(0x0,helpers_1[_0xdc0889(0xc1)])(_0x20bd97/_0x17af76,_0x4220f6):null;},groupSplits=(_0x2966c9,_0x468d45)=>_0x2966c9[a18_0x150497(0x91)](_0x34b4f8=>normalizeSegmentType(_0x34b4f8['splitType'])===_0x468d45),summarizeWorkoutSegment=(_0xc24d26,_0x228745,_0x48301b)=>{const _0xefbf1f=a18_0x150497,_0x87a16e=_0x228745['reduce']((_0x4e512f,_0x2cfdfd)=>{const _0x104420=a18_0x38c1;var _0x39cec9;return _0x4e512f+((_0x39cec9=numeric(_0x2cfdfd[_0x104420(0xd7)]))!==null&&_0x39cec9!==void 0x0?_0x39cec9:0x0);},0x0),_0x5714a5=_0x228745[_0xefbf1f(0xd4)]((_0x45b201,_0xdfc6de)=>{const _0x4eae9e=_0xefbf1f;var _0xe1a7d1;return _0x45b201+((_0xe1a7d1=numeric(_0xdfc6de[_0x4eae9e(0x88)]))!==null&&_0xe1a7d1!==void 0x0?_0xe1a7d1:0x0);},0x0),_0xa5480e=_0x228745[_0xefbf1f(0xd4)]((_0x55a4f4,_0x212835)=>_0x55a4f4+splitCount(_0x212835),0x0),_0x44c4f2={'type':_0xc24d26,'count':_0xa5480e,'distanceKm':(0x0,helpers_1[_0xefbf1f(0xc1)])(_0x87a16e/0x3e8,0x2),'durationMin':(0x0,helpers_1[_0xefbf1f(0xc1)])(_0x5714a5/0x3c,0x1),'pace':paceFromDistance(_0x87a16e,_0x5714a5)};return{..._0x44c4f2,'avgHr':_0x48301b?weightedAverage(_0x228745,_0xefbf1f(0xe4)):null,'maxHr':_0x48301b?(0x0,helpers_1['round'])(_0x228745[_0xefbf1f(0xd4)]((_0x193e27,_0x45dfc4)=>numeric(_0x45dfc4['maxHR'])===null?_0x193e27:_0x193e27===null?numeric(_0x45dfc4[_0xefbf1f(0xc4)]):Math[_0xefbf1f(0x82)](_0x193e27,numeric(_0x45dfc4[_0xefbf1f(0xc4)])),null)):null,'avgCadence':_0x48301b?weightedAverage(_0x228745,_0xefbf1f(0xd3)):null};},workoutSegments=(_0xc9eba7,_0x3d1e95)=>['warmup',a18_0x150497(0x123),a18_0x150497(0x11e),a18_0x150497(0xc8)]['map'](_0x6de729=>{const _0x3fbd29=a18_0x150497,_0x20f4a8=groupSplits(splitSummaries(_0xc9eba7),_0x6de729);return _0x20f4a8[_0x3fbd29(0x100)]>0x0?summarizeWorkoutSegment(_0x6de729,_0x20f4a8,_0x3d1e95):null;})[a18_0x150497(0x91)](_0x317b17=>Boolean(_0x317b17)),fToC=_0x1257a3=>{var _0x22067d;return(_0x22067d=(0x0,helpers_1['round'])((_0x1257a3-0x20)*0x5/0x9,0x1))!==null&&_0x22067d!==void 0x0?_0x22067d:_0x1257a3;},compactLaps=_0x397cf4=>{const _0x1fef5b=a18_0x150497;var _0x7ecbb3,_0x5ec2c5,_0x1c9fc0,_0x53b9ec,_0x3cf284;const _0x568469=[];for(const _0x2f63be of _0x397cf4){if(_0x2f63be['duration']<=0x0&&_0x2f63be['distance']<=0x0)continue;const _0x4af01d=(_0x7ecbb3=(0x0,helpers_1[_0x1fef5b(0xc1)])(_0x2f63be[_0x1fef5b(0xd7)]/0x3e8,0x2))!==null&&_0x7ecbb3!==void 0x0?_0x7ecbb3:0x0,_0x37b1a4=(_0x1c9fc0=(_0x5ec2c5=(0x0,helpers_1['round'])(_0x2f63be['duration']/0x3c,0x1))!==null&&_0x5ec2c5!==void 0x0?_0x5ec2c5:(0x0,helpers_1[_0x1fef5b(0xc1)])(_0x2f63be[_0x1fef5b(0x119)]/0x3c,0x1))!==null&&_0x1c9fc0!==void 0x0?_0x1c9fc0:0x0,_0x2e312d=paceFromDistance(_0x2f63be[_0x1fef5b(0xd7)],_0x2f63be[_0x1fef5b(0x119)]||_0x2f63be[_0x1fef5b(0x88)]),_0x18e13a=roundNumber(_0x2f63be[_0x1fef5b(0xe4)]),_0x2ee200=roundNumber(_0x2f63be[_0x1fef5b(0xc4)]),_0x75ede2=roundNumber(_0x2f63be[_0x1fef5b(0xd3)]),_0x435211=roundNumber(_0x2f63be['elevationGain']),_0x17e096=roundNumber(_0x2f63be[_0x1fef5b(0xda)]),_0x56bd38=roundNumber(_0x2f63be['verticalOscillation'],0x1),_0x5a5972=roundNumber(_0x2f63be['verticalRatio'],0x1),_0x1acbc0=roundNumber(_0x2f63be['groundContactTime']),_0x579151=roundNumber(_0x2f63be['groundContactBalanceLeft'],0x1),_0x3a623a=_0x2f63be[_0x1fef5b(0x106)]!=null?roundNumber(_0x2f63be['averageTemperature']):null;_0x568469['push']([(_0x3cf284=(_0x53b9ec=_0x2f63be[_0x1fef5b(0x8f)])===null||_0x53b9ec===void 0x0?void 0x0:_0x53b9ec[_0x1fef5b(0xf1)]())!==null&&_0x3cf284!==void 0x0?_0x3cf284:'',_0x4af01d,_0x37b1a4,_0x2e312d!==null&&_0x2e312d!==void 0x0?_0x2e312d:'',_0x18e13a,_0x2ee200,_0x75ede2,_0x435211,_0x17e096,_0x56bd38,_0x5a5972,_0x1acbc0,_0x579151,_0x3a623a]);}return{'schema':LAP_SCHEMA,'data':_0x568469};},LAP_SCHEMA=['type',a18_0x150497(0xf2),'durationMin',a18_0x150497(0x9d),a18_0x150497(0x9e),a18_0x150497(0x8e),a18_0x150497(0xeb),a18_0x150497(0x8a),a18_0x150497(0x7a),a18_0x150497(0x111),'vertRatio',a18_0x150497(0x80),a18_0x150497(0x11c),a18_0x150497(0xa9)],LIST_WORKOUT_SEGMENT_SCHEMA=[a18_0x150497(0x9a),a18_0x150497(0xe6),a18_0x150497(0xf2),a18_0x150497(0xfc),a18_0x150497(0x9d)],buildWorkout=(_0x419ca4,_0xa44200)=>{const _0x5a6b6e=a18_0x150497,_0x171c51=workoutId(_0x419ca4),_0x41a4b3=workoutSegments(_0x419ca4,![]);return{'structured':_0x171c51!==null||_0x41a4b3[_0x5a6b6e(0x100)]>0x0,'workoutId':_0x171c51,'type':inferWorkoutType(_0x419ca4[_0x5a6b6e(0xae)],_0xa44200),'segmentSchema':[...LIST_WORKOUT_SEGMENT_SCHEMA],'segments':_0x41a4b3[_0x5a6b6e(0x7f)](_0x2b5208=>[_0x2b5208['type'],_0x2b5208[_0x5a6b6e(0xe6)],_0x2b5208[_0x5a6b6e(0xf2)],_0x2b5208[_0x5a6b6e(0xfc)],_0x2b5208['pace']])};},compactActivity=_0xdac9c7=>{const _0x2e7d29=a18_0x150497;var _0x541a16,_0x46d90f;const _0x4ae38c=_0xdac9c7,_0x13c926=primarySport(_0x4ae38c),_0x447e25=sportKey(_0x4ae38c),_0x3968ca=compactDate(_0xdac9c7[_0x2e7d29(0x132)]),_0x31df76=roundNumber(_0xdac9c7['distance']/0x3e8,0x2),_0x117b5e=(0x0,helpers_1['toMinutes'])(_0xdac9c7[_0x2e7d29(0x88)]),_0x4e607d=roundNumber(_0xdac9c7[_0x2e7d29(0xb6)]),_0x591790=buildTrainingEffect(_0x4ae38c),_0xa04d3c=roundNumber(_0x4ae38c['activityTrainingLoad']),_0x1f360f=roundNumber(_0xdac9c7[_0x2e7d29(0xe4)]),_0x4b2301=buildWorkout(_0x4ae38c,_0x591790[_0x2e7d29(0xe5)]),_0x155807=buildActivityFlags(_0x13c926,_0x31df76,_0x4e607d,_0x1f360f,_0xa04d3c,_0x591790);if(_0x4b2301['structured'])_0x155807[_0x2e7d29(0xc0)](_0x2e7d29(0xb7));const _0x3c02c6={'id':_0xdac9c7['activityId'],'date':_0x3968ca,'time':compactTime(_0xdac9c7[_0x2e7d29(0x132)]),'sport':_0x13c926,'subSport':_0x447e25,'name':(_0x541a16=_0xdac9c7['activityName'])!==null&&_0x541a16!==void 0x0?_0x541a16:null,'summary':{'distanceKm':_0x31df76,'durationMin':_0x117b5e!==null&&_0x117b5e!==void 0x0?_0x117b5e:roundNumber(((_0x46d90f=numeric(_0xdac9c7[_0x2e7d29(0x88)]))!==null&&_0x46d90f!==void 0x0?_0x46d90f:0x0)/0x3c,0x1),'pace':paceFromDistance(_0xdac9c7['distance'],_0xdac9c7[_0x2e7d29(0x88)]),'avgHr':_0x1f360f,'maxHr':roundNumber(_0xdac9c7[_0x2e7d29(0xc4)]),'elevGainM':_0x4e607d},'impact':{'label':_0x591790['label'],'load':_0xa04d3c,'aerobicTE':_0x591790[_0x2e7d29(0x133)],'anaerobicTE':_0x591790[_0x2e7d29(0xab)],'bodyBatteryDelta':roundNumber(_0x4ae38c[_0x2e7d29(0xb0)])},'intensity':{'hrZonesSec':hrZones(_0x4ae38c)},'flags':_0x155807};return _0x4b2301[_0x2e7d29(0xb7)]&&(_0x3c02c6['workout']=_0x4b2301),_0x3c02c6;},summarizeSports=_0x314bb2=>{const _0x5c9798=a18_0x150497;var _0x50d151,_0x35b8ad,_0x36b1f6,_0x4c5d82,_0x49b8b3,_0x3f7021,_0x4285a9,_0x33fa9b,_0x546eee,_0x75e844,_0x164d2f,_0x14f487,_0x53c798,_0xf4861f;const _0x562a8b={};for(const _0x306d33 of _0x314bb2){const _0x8341e5=(_0x50d151=_0x306d33[_0x5c9798(0x9f)])!==null&&_0x50d151!==void 0x0?_0x50d151:'unknown',_0x2b5465=(_0x35b8ad=_0x562a8b[_0x8341e5])!==null&&_0x35b8ad!==void 0x0?_0x35b8ad:{'count':0x0,'durationMin':0x0,'load':0x0},_0x2d3e84=(_0x36b1f6=_0x306d33[_0x5c9798(0x124)][_0x5c9798(0xf2)])!==null&&_0x36b1f6!==void 0x0?_0x36b1f6:0x0,_0x1c6d8f=(_0x4c5d82=_0x306d33[_0x5c9798(0x124)]['elevGainM'])!==null&&_0x4c5d82!==void 0x0?_0x4c5d82:0x0;_0x2b5465[_0x5c9798(0xe6)]+=0x1,_0x2b5465[_0x5c9798(0xfc)]+=(_0x49b8b3=_0x306d33[_0x5c9798(0x124)][_0x5c9798(0xfc)])!==null&&_0x49b8b3!==void 0x0?_0x49b8b3:0x0,_0x2b5465[_0x5c9798(0xa7)]+=(_0x3f7021=_0x306d33[_0x5c9798(0x93)][_0x5c9798(0xa7)])!==null&&_0x3f7021!==void 0x0?_0x3f7021:0x0,_0x2d3e84>0x0&&(_0x2b5465['distanceKm']=((_0x4285a9=_0x2b5465[_0x5c9798(0xf2)])!==null&&_0x4285a9!==void 0x0?_0x4285a9:0x0)+_0x2d3e84),_0x1c6d8f>0x0&&(_0x2b5465[_0x5c9798(0x8a)]=((_0x33fa9b=_0x2b5465[_0x5c9798(0x8a)])!==null&&_0x33fa9b!==void 0x0?_0x33fa9b:0x0)+_0x1c6d8f),_0x562a8b[_0x8341e5]=_0x2b5465;}for(const _0x466a9e of Object['keys'](_0x562a8b)){const _0x5bf080=_0x562a8b[_0x466a9e];_0x5bf080[_0x5c9798(0xf2)]=(_0x75e844=(0x0,helpers_1[_0x5c9798(0xc1)])((_0x546eee=_0x5bf080[_0x5c9798(0xf2)])!==null&&_0x546eee!==void 0x0?_0x546eee:null,0x2))!==null&&_0x75e844!==void 0x0?_0x75e844:undefined,_0x5bf080[_0x5c9798(0xfc)]=(_0x164d2f=(0x0,helpers_1['round'])(_0x5bf080[_0x5c9798(0xfc)]))!==null&&_0x164d2f!==void 0x0?_0x164d2f:0x0,_0x5bf080[_0x5c9798(0x8a)]=(_0x53c798=(0x0,helpers_1[_0x5c9798(0xc1)])((_0x14f487=_0x5bf080[_0x5c9798(0x8a)])!==null&&_0x14f487!==void 0x0?_0x14f487:null))!==null&&_0x53c798!==void 0x0?_0x53c798:undefined,_0x5bf080['load']=(_0xf4861f=(0x0,helpers_1[_0x5c9798(0xc1)])(_0x5bf080[_0x5c9798(0xa7)]))!==null&&_0xf4861f!==void 0x0?_0xf4861f:0x0;}return _0x562a8b;},buildActivitiesAiHints=_0x4f1ca7=>{const _0x25ba55=a18_0x150497,_0x48ca42=[];return _0x4f1ca7[_0x25ba55(0xdb)](_0x12bedd=>{const _0x5e0f4e=_0x25ba55;var _0x3256fb;return((_0x3256fb=_0x12bedd[_0x5e0f4e(0x9f)])===null||_0x3256fb===void 0x0?void 0x0:_0x3256fb[_0x5e0f4e(0x102)](_0x5e0f4e(0x99)))&&_0x12bedd[_0x5e0f4e(0x11a)][_0x5e0f4e(0x102)](_0x5e0f4e(0x118));})&&_0x48ca42[_0x25ba55(0x130)](_0x25ba55(0x108)),_0x4f1ca7[_0x25ba55(0xdb)](_0x40a2e6=>_0x40a2e6['sport']===_0x25ba55(0x104)&&_0x40a2e6[_0x25ba55(0x11a)][_0x25ba55(0x102)]('very_low_load'))&&_0x48ca42[_0x25ba55(0x130)]('one_low_load_cardio_session'),_0x4f1ca7['length']>0x0&&_0x48ca42['push'](_0x25ba55(0x129)),_0x48ca42;},detailSummary=_0x19054c=>{var _0x4e8f8d;return(_0x4e8f8d=_0x19054c['summaryDTO'])!==null&&_0x4e8f8d!==void 0x0?_0x4e8f8d:_0x19054c;},buildDetailRunForm=_0x16f102=>({'cadence':roundNumber(_0x16f102[a18_0x150497(0xd3)]),'maxCadence':roundNumber(_0x16f102[a18_0x150497(0x92)]),'strideCm':roundNumber(_0x16f102[a18_0x150497(0xda)]),'gctMs':roundNumber(_0x16f102[a18_0x150497(0x105)]),'gctBalanceLeft':roundNumber(_0x16f102[a18_0x150497(0xea)],0x1),'verticalOscCm':roundNumber(_0x16f102['verticalOscillation'],0x1),'verticalRatio':roundNumber(_0x16f102[a18_0x150497(0xcc)],0x1)}),compactWorkout=_0x249883=>{const _0x2510f8=a18_0x150497;var _0x240900,_0x2bb4c4,_0xcc77df,_0x5daa3a,_0x279711;if(!(_0x249883===null||_0x249883===void 0x0?void 0x0:_0x249883['length']))return undefined;const _0x2bcfdd=_0x249883[0x0],_0x255b21=_0x2bcfdd[_0x2510f8(0xed)]||null,_0x4a23f8=[],_0x12a13f=_0x2bcfdd['steps'];for(let _0x27ec2d=0x0;_0x27ec2d<_0x12a13f['length'];_0x27ec2d++){const _0x5e1dbc=_0x12a13f[_0x27ec2d];if(_0x5e1dbc[_0x2510f8(0xd5)]===_0x2510f8(0xf0)){const _0x547c73=Math[_0x2510f8(0xc1)]((_0x240900=_0x5e1dbc[_0x2510f8(0x112)])!==null&&_0x240900!==void 0x0?_0x240900:0x1),_0x21603e=Math[_0x2510f8(0xc1)](_0x5e1dbc[_0x2510f8(0x12f)]),_0x339439=_0x4a23f8['length']-_0x21603e,_0x4585e1=_0x4a23f8[_0x2510f8(0x100)];for(let _0x1dd6e5=0x0;_0x1dd6e5<_0x547c73;_0x1dd6e5++){for(let _0x588158=_0x339439;_0x588158<_0x4585e1;_0x588158++){_0x4a23f8[_0x2510f8(0x130)]([..._0x4a23f8[_0x588158]]);}}}else{if(_0x5e1dbc[_0x2510f8(0x125)]){const _0x41a4b6=(_0xcc77df=(_0x2bb4c4=_0x5e1dbc[_0x2510f8(0xd5)])===null||_0x2bb4c4===void 0x0?void 0x0:_0x2bb4c4['toLowerCase']())!==null&&_0xcc77df!==void 0x0?_0xcc77df:'time';_0x4a23f8[_0x2510f8(0x130)]([_0x5e1dbc[_0x2510f8(0x125)][_0x2510f8(0xf1)](),_0x41a4b6,_0x5e1dbc[_0x2510f8(0x12f)],(_0x279711=(_0x5daa3a=_0x5e1dbc[_0x2510f8(0xca)])===null||_0x5daa3a===void 0x0?void 0x0:_0x5daa3a[_0x2510f8(0xf1)]())!==null&&_0x279711!==void 0x0?_0x279711:null,roundNumber(_0x5e1dbc[_0x2510f8(0xcf)]),roundNumber(_0x5e1dbc[_0x2510f8(0xb4)])]);}}}return{'name':_0x255b21,'schema':WORKOUT_SCHEMA,'steps':_0x4a23f8};},WORKOUT_SCHEMA=['intensity','durationType',a18_0x150497(0x12f),a18_0x150497(0xca),a18_0x150497(0xec),'targetHigh'],normalizeMovementType=_0x2d4234=>{const _0x2a1d94=a18_0x150497;if(!_0x2d4234)return null;const _0x21d243=_0x2d4234[_0x2a1d94(0xf1)]();if(_0x21d243===_0x2a1d94(0x12e))return _0x2a1d94(0xe8);if(_0x21d243==='rwd_walk')return'walk';if(_0x21d243===_0x2a1d94(0xe1))return _0x2a1d94(0xaf);return null;},buildMovementBreakdown=_0x928cea=>{const _0xe431ae=a18_0x150497,_0x51d602={};for(const _0x62cb12 of[_0xe431ae(0xe8),_0xe431ae(0xc5),_0xe431ae(0xaf)]){const _0x167f75=splitSummaries(_0x928cea)[_0xe431ae(0x91)](_0x556db6=>normalizeMovementType(_0x556db6[_0xe431ae(0x79)])===_0x62cb12);if(_0x167f75[_0xe431ae(0x100)]===0x0)continue;const _0x216be7=_0x167f75[_0xe431ae(0xd4)]((_0x20ffb5,_0x3a96dd)=>{const _0x237267=_0xe431ae;var _0x131b65;return _0x20ffb5+((_0x131b65=numeric(_0x3a96dd[_0x237267(0xd7)]))!==null&&_0x131b65!==void 0x0?_0x131b65:0x0);},0x0),_0x33e05a=_0x167f75[_0xe431ae(0xd4)]((_0x43e81f,_0x2c432b)=>{const _0x37e249=_0xe431ae;var _0x123e71;return _0x43e81f+((_0x123e71=numeric(_0x2c432b[_0x37e249(0x88)]))!==null&&_0x123e71!==void 0x0?_0x123e71:0x0);},0x0),_0x1b7014={'distanceKm':(0x0,helpers_1['round'])(_0x216be7/0x3e8,0x2),'avgHr':weightedAverage(_0x167f75,_0xe431ae(0xe4))};_0x33e05a>=0x3c?_0x1b7014[_0xe431ae(0xfc)]=(0x0,helpers_1[_0xe431ae(0xc1)])(_0x33e05a/0x3c,0x1):_0x1b7014[_0xe431ae(0xa8)]=(0x0,helpers_1['round'])(_0x33e05a,0x1),_0x51d602[_0x62cb12]=_0x1b7014;}return _0x51d602;},buildDetailAiHints=(_0x50cf37,_0x30da37,_0x10ec4d,_0x5a06d7,_0x3d5af5,_0x2d73be,_0x4d4756)=>{const _0xdf1fa0=a18_0x150497;var _0x208a70,_0x2e2288,_0x430147;const _0x16929a=[],_0x1d37ab=(_0x208a70=_0x2d73be===null||_0x2d73be===void 0x0?void 0x0:_0x2d73be[_0xdf1fa0(0x8c)])!==null&&_0x208a70!==void 0x0?_0x208a70:[],_0x4d6a57=_0x1d37ab[_0xdf1fa0(0x91)](_0x1adb7d=>_0x1adb7d[0x0]===_0xdf1fa0(0x123)),_0xb1098b=_0x1d37ab[_0xdf1fa0(0x91)](_0x3f3701=>_0x3f3701[0x0]===_0xdf1fa0(0x11e));if(_0x4d6a57['length']>0x1)_0x16929a['push'](_0x4d6a57['length']+_0xdf1fa0(0xf6));if(_0x50cf37&&_0x50cf37!==_0xdf1fa0(0xf3))_0x16929a[_0xdf1fa0(0x130)](_0x50cf37+_0xdf1fa0(0x98));if((_0x30da37!==null&&_0x30da37!==void 0x0?_0x30da37:0x0)>=0x4)_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0xa5));else(_0x30da37!==null&&_0x30da37!==void 0x0?_0x30da37:0x0)>=2.5&&_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0x138));if(_0x50cf37===_0xdf1fa0(0xa1))_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0x120));(_0x10ec4d!==null&&_0x10ec4d!==void 0x0?_0x10ec4d:0x0)>0x0&&(_0x10ec4d!==null&&_0x10ec4d!==void 0x0?_0x10ec4d:0x0)<0x2&&_0x16929a['push'](_0xdf1fa0(0x86));if(((_0x2e2288=_0x5a06d7===null||_0x5a06d7===void 0x0?void 0x0:_0x5a06d7[_0xdf1fa0(0xbf)])!==null&&_0x2e2288!==void 0x0?_0x2e2288:0x0)>=0xaa)_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0xb9));(_0x3d5af5!==null&&_0x3d5af5!==void 0x0?_0x3d5af5:0x0)<=-0x8&&(_0x3d5af5!==null&&_0x3d5af5!==void 0x0?_0x3d5af5:0x0)>-0x14&&_0x16929a['push'](_0xdf1fa0(0xbc));const _0x5839f2=_0x4d6a57[_0xdf1fa0(0xd4)]((_0x4a5b35,_0x3d0173)=>{var _0x96e69c;return _0x4a5b35+((_0x96e69c=_0x3d0173[0x2])!==null&&_0x96e69c!==void 0x0?_0x96e69c:0x0);},0x0);if(_0x5839f2>=0x14)_0x16929a[_0xdf1fa0(0x130)]('meaningful_training_load');const _0x4a73e9=_0xb1098b[_0xdf1fa0(0x100)]>0x0?_0xb1098b['reduce']((_0x47f269,_0x53607e)=>{var _0x1e3638;return _0x47f269+((_0x1e3638=_0x53607e[0x4])!==null&&_0x1e3638!==void 0x0?_0x1e3638:0x0);},0x0)/_0xb1098b[_0xdf1fa0(0x100)]:null,_0x3be212=(_0x430147=_0x4d4756[_0xdf1fa0(0xe8)])===null||_0x430147===void 0x0?void 0x0:_0x430147['avgHr'];_0x4a73e9!==null&&_0x4a73e9>0x0&&(_0x3be212!==null&&_0x3be212!==void 0x0?_0x3be212:0x0)>0x0&&_0x4a73e9>=(_0x3be212!==null&&_0x3be212!==void 0x0?_0x3be212:0x0)&&_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0xd9));const _0x5d87d5=_0x1d37ab[_0xdf1fa0(0x7f)](_0x56c75c=>_0x56c75c[0xd])[_0xdf1fa0(0x91)](_0xf9f224=>_0xf9f224!==null);if(_0x5d87d5[_0xdf1fa0(0x100)]>0x0){const _0x54cd98=Math[_0xdf1fa0(0xd6)](..._0x5d87d5),_0x15f14a=Math[_0xdf1fa0(0x82)](..._0x5d87d5);if(_0x54cd98<=0x5)_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0x103));if(_0x15f14a>=0x1e)_0x16929a[_0xdf1fa0(0x130)](_0xdf1fa0(0xb5));}return Array[_0xdf1fa0(0x121)](new Set(_0x16929a));},buildActivitiesSummary=async(_0x41cf75,_0x27734a,_0x978b5b={})=>{const _0x124251=a18_0x150497;var _0x33fde8,_0xd828af,_0x75755d,_0x22dd47;await _0x27734a[_0x124251(0xd2)]();const _0x16462d=await _0x41cf75[_0x124251(0x116)]((_0x33fde8=_0x978b5b['start'])!==null&&_0x33fde8!==void 0x0?_0x33fde8:0x0,(_0xd828af=_0x978b5b[_0x124251(0xd1)])!==null&&_0xd828af!==void 0x0?_0xd828af:0x14,_0x978b5b[_0x124251(0xc6)],_0x978b5b['subActivityType']),_0x734cf7=_0x16462d[_0x124251(0x7f)](compactActivity),_0x306ec4=(_0x75755d=(0x0,helpers_1[_0x124251(0xc1)])(_0x734cf7[_0x124251(0xd4)]((_0x5ebef5,_0x4ae469)=>{const _0x3c8e49=_0x124251;var _0x53a620;return _0x5ebef5+((_0x53a620=_0x4ae469[_0x3c8e49(0x93)]['load'])!==null&&_0x53a620!==void 0x0?_0x53a620:0x0);},0x0)))!==null&&_0x75755d!==void 0x0?_0x75755d:0x0,_0x3b60a3=(_0x22dd47=(0x0,helpers_1[_0x124251(0xc1)])(_0x734cf7['reduce']((_0x1fb6fd,_0x3d7fa8)=>{const _0x14b070=_0x124251;var _0x4e070d;return _0x1fb6fd+((_0x4e070d=_0x3d7fa8[_0x14b070(0x124)][_0x14b070(0xfc)])!==null&&_0x4e070d!==void 0x0?_0x4e070d:0x0);},0x0)))!==null&&_0x22dd47!==void 0x0?_0x22dd47:0x0;return{'schema':_0x124251(0x81),'summary':{'activities':_0x734cf7[_0x124251(0x100)],'sports':summarizeSports(_0x734cf7),'totalLoad':_0x306ec4,'totalDurationMin':_0x3b60a3,'hardSessions':_0x734cf7[_0x124251(0x91)](_0x327c0b=>{const _0x5ecbdd=_0x124251;var _0x277df4;return((_0x277df4=_0x327c0b[_0x5ecbdd(0x93)]['load'])!==null&&_0x277df4!==void 0x0?_0x277df4:0x0)>=0x96;})[_0x124251(0x100)],'easySessions':_0x734cf7[_0x124251(0x91)](_0x390d03=>{const _0x4edb57=_0x124251;var _0x217665,_0x5e7d3c;return((_0x217665=_0x390d03[_0x4edb57(0x93)][_0x4edb57(0xa7)])!==null&&_0x217665!==void 0x0?_0x217665:0x0)>0x0&&((_0x5e7d3c=_0x390d03['impact']['load'])!==null&&_0x5e7d3c!==void 0x0?_0x5e7d3c:0x0)<0x32;})[_0x124251(0x100)],'otherSessions':_0x734cf7[_0x124251(0x91)](_0x43643d=>{const _0x1bb080=_0x124251;var _0x26a26e;return((_0x26a26e=_0x43643d[_0x1bb080(0x93)][_0x1bb080(0xa7)])!==null&&_0x26a26e!==void 0x0?_0x26a26e:0x0)===0x0;})[_0x124251(0x100)]},'activities':_0x734cf7,'aiHints':buildActivitiesAiHints(_0x734cf7)};};exports['buildActivitiesSummary']=buildActivitiesSummary;function a18_0x38c1(_0x5a6275,_0xd0266e){_0x5a6275=_0x5a6275-0x79;const _0x372d76=a18_0x372d();let _0x38c14a=_0x372d76[_0x5a6275];return _0x38c14a;}const buildActivityDetailSummary=async(_0x58fd6b,_0x1fa0e2,_0x1ecd0e)=>{const _0x46c930=a18_0x150497;var _0x565a44,_0x1c931e,_0x54485f,_0x31b374;await _0x1fa0e2[_0x46c930(0xd2)]();const _0x25ea81=await((async()=>{const _0x27d0d2=_0x46c930;var _0x748e63,_0x136f9e,_0x517d70,_0x4544e7,_0x598505,_0x3852bc,_0x5d0fb0;const _0x5bf8d7=await _0x58fd6b[_0x27d0d2(0x87)]({'activityId':_0x1ecd0e[_0x27d0d2(0xa2)]}),_0xe12dd1=_0x5bf8d7,_0x20f3fb=detailSummary(_0xe12dd1),_0x44f130=buildTrainingEffect(_0x20f3fb);return{'id':_0xe12dd1[_0x27d0d2(0xa2)],'sport':primarySport(_0xe12dd1),'subSport':sportKey(_0xe12dd1),'name':(_0x748e63=_0xe12dd1[_0x27d0d2(0xae)])!==null&&_0x748e63!==void 0x0?_0x748e63:null,'location':(_0x136f9e=_0xe12dd1[_0x27d0d2(0x113)])!==null&&_0x136f9e!==void 0x0?_0x136f9e:null,'wkId':workoutId(_0xe12dd1),'startTime':(_0x517d70=_0x20f3fb['startTimeLocal'])!==null&&_0x517d70!==void 0x0?_0x517d70:_0xe12dd1[_0x27d0d2(0x132)],'effect':_0x44f130,'label':_0x44f130['label'],'load':roundNumber(_0x20f3fb[_0x27d0d2(0x8b)]),'bodyBatteryDelta':roundNumber(_0x20f3fb[_0x27d0d2(0xb0)]),'runForm':buildDetailRunForm(_0x20f3fb),'movementBreakdown':buildMovementBreakdown(_0xe12dd1),'summaryStats':{'distanceKm':roundNumber(_0x20f3fb[_0x27d0d2(0xd7)]/0x3e8,0x2),'durationMin':roundNumber(((_0x4544e7=numeric(_0x20f3fb[_0x27d0d2(0x88)]))!==null&&_0x4544e7!==void 0x0?_0x4544e7:0x0)/0x3c,0x1),'movingMin':roundNumber(((_0x598505=numeric(_0x20f3fb[_0x27d0d2(0x119)]))!==null&&_0x598505!==void 0x0?_0x598505:0x0)/0x3c,0x1),'elapsedMin':roundNumber(((_0x3852bc=numeric(_0x20f3fb['elapsedDuration']))!==null&&_0x3852bc!==void 0x0?_0x3852bc:0x0)/0x3c,0x1),'pace':paceFromDistance(_0x20f3fb[_0x27d0d2(0xd7)],_0x20f3fb[_0x27d0d2(0x88)]),'gapPace':paceFromSpeed(_0x20f3fb[_0x27d0d2(0x85)]),'avgHr':roundNumber(_0x20f3fb[_0x27d0d2(0xe4)]),'maxHr':roundNumber(_0x20f3fb[_0x27d0d2(0xc4)]),'calories':roundNumber(_0x20f3fb[_0x27d0d2(0xef)]),'elevGainM':roundNumber(_0x20f3fb[_0x27d0d2(0xb6)]),'elevLossM':roundNumber(_0x20f3fb[_0x27d0d2(0x11b)]),'avgTempC':roundNumber(_0x20f3fb['averageTemperature'])},'trainingImpactStats':{'aerobicMessage':normalizeMessage(_0x20f3fb['aerobicTrainingEffectMessage']),'anaerobicMessage':normalizeMessage(_0x20f3fb[_0x27d0d2(0x11f)]),'recoveryHr':roundNumber(_0x20f3fb[_0x27d0d2(0x7b)])},'intensity':{'moderateMin':roundNumber(_0x20f3fb['moderateIntensityMinutes']),'vigorousMin':roundNumber(_0x20f3fb[_0x27d0d2(0x7d)])},'stamina':{'begin':roundNumber(_0x20f3fb[_0x27d0d2(0xad)]),'end':roundNumber(_0x20f3fb['endPotentialStamina']),'minAvailable':roundNumber(_0x20f3fb[_0x27d0d2(0xbe)])},'subjective':{'feel':roundNumber(_0x20f3fb[_0x27d0d2(0xff)]),'rpe':roundNumber(_0x20f3fb[_0x27d0d2(0x11d)]),'complianceScore':roundNumber((_0x5d0fb0=_0x20f3fb[_0x27d0d2(0xb1)])!==null&&_0x5d0fb0!==void 0x0?_0x5d0fb0:_0x20f3fb[_0x27d0d2(0xa4)])}};})()),[_0x10c515,_0x43588a,_0x412681]=await Promise[_0x46c930(0xc2)]([_0x58fd6b[_0x46c930(0xd8)]({'activityId':_0x1ecd0e['activityId']})['catch'](()=>null),_0x58fd6b[_0x46c930(0x95)]({'activityId':_0x1ecd0e['activityId']})['catch'](()=>null),_0x58fd6b[_0x46c930(0xe2)]({'activityId':_0x1ecd0e['activityId']})[_0x46c930(0xee)](()=>null)]),_0x300c57=_0x10c515,_0x12847b=((_0x565a44=_0x300c57===null||_0x300c57===void 0x0?void 0x0:_0x300c57[_0x46c930(0x122)])===null||_0x565a44===void 0x0?void 0x0:_0x565a44[_0x46c930(0x100)])?compactLaps(_0x300c57[_0x46c930(0x122)]):undefined,_0xa20076=_0x412681,_0x330de8=compactWorkout(_0xa20076!==null&&_0xa20076!==void 0x0?_0xa20076:[]),_0xe00919=_0x43588a,_0x3d36ff=_0xe00919?{'tempC':fToC(_0xe00919[_0x46c930(0xa3)]),'apparentTempC':fToC(_0xe00919[_0x46c930(0xfe)]),'dewPointC':fToC(_0xe00919[_0x46c930(0x126)]),'relativeHumidity':roundNumber(_0xe00919[_0x46c930(0xde)]),'windDirection':roundNumber(_0xe00919[_0x46c930(0x107)]),'windDirectionCompass':(_0x1c931e=_0xe00919['windDirectionCompassPoint'])!==null&&_0x1c931e!==void 0x0?_0x1c931e:null,'windSpeed':roundNumber(_0xe00919['windSpeed']),'condition':(_0x31b374=(_0x54485f=_0xe00919[_0x46c930(0x110)])===null||_0x54485f===void 0x0?void 0x0:_0x54485f[_0x46c930(0x10a)])!==null&&_0x31b374!==void 0x0?_0x31b374:null}:undefined,_0x3974a6={'schema':_0x46c930(0x7c),'id':_0x25ea81['id'],'date':compactDate(_0x25ea81[_0x46c930(0x12b)]),'startTime':compactTime(_0x25ea81[_0x46c930(0x12b)]),'sport':_0x25ea81[_0x46c930(0x9f)],'subSport':_0x25ea81[_0x46c930(0x83)],'name':_0x25ea81[_0x46c930(0x97)],'location':_0x25ea81[_0x46c930(0xe7)],'isStructuredWorkout':_0x25ea81[_0x46c930(0x9b)]!==null,'workoutId':_0x25ea81['wkId'],'summary':_0x25ea81[_0x46c930(0xc3)],'trainingImpact':{'label':_0x25ea81[_0x46c930(0xe5)],'load':_0x25ea81[_0x46c930(0xa7)],'aerobicTE':_0x25ea81[_0x46c930(0xdf)][_0x46c930(0x133)],'anaerobicTE':_0x25ea81[_0x46c930(0xdf)]['anaerobic'],'aerobicMessage':_0x25ea81[_0x46c930(0x12c)][_0x46c930(0xce)],'anaerobicMessage':_0x25ea81[_0x46c930(0x12c)][_0x46c930(0xb8)],'bodyBatteryDelta':_0x25ea81[_0x46c930(0xd0)],'recoveryHr':_0x25ea81['trainingImpactStats'][_0x46c930(0xbd)]},'intensity':_0x25ea81[_0x46c930(0x125)],'runForm':_0x25ea81['runForm'],'stamina':_0x25ea81[_0x46c930(0xbb)],'subjective':_0x25ea81[_0x46c930(0x96)],'movementBreakdown':_0x25ea81[_0x46c930(0xf8)],'aiHints':[]};if(_0x12847b)_0x3974a6[_0x46c930(0x84)]=_0x12847b;if(_0x330de8)_0x3974a6[_0x46c930(0x136)]=_0x330de8;if(_0x3d36ff)_0x3974a6['weather']=_0x3d36ff;return _0x3974a6['aiHints']=buildDetailAiHints(_0x25ea81[_0x46c930(0xe5)],_0x25ea81[_0x46c930(0xdf)][_0x46c930(0x133)],_0x25ea81[_0x46c930(0xdf)][_0x46c930(0xab)],_0x25ea81[_0x46c930(0x131)],_0x25ea81['bodyBatteryDelta'],_0x12847b,_0x25ea81[_0x46c930(0xf8)]),_0x3974a6;};exports[a18_0x150497(0xba)]=buildActivityDetailSummary;function a18_0x372d(){const _0x251164=['613396wvWOaF','desc','9rszCkH','number','steep_climb','workoutId','lowerSnake','weatherTypeDTO','vertOscCm','targetValue','locationName','split','associatedWorkoutId','getActivities','__esModule','tempo_run','movingDuration','flags','elevationLoss','gctBalanceL','directWorkoutRpe','rest','anaerobicTrainingEffectMessage','vo2max_training_effect','from','lapDTOs','active','summary','intensity','dewPoint','join','trail','activity_detail_available_for_deeper_analysis','1078900PMyBSu','startTime','trainingImpactStats','interval_active','rwd_run','durationValue','push','runForm','startTimeLocal','aerobic','tempo','616752kaLrue','workout','24qkcALr','meaningful_aerobic_stimulus','splitType','strideCm','recoveryHeartRate','activity_detail_v1','vigorousIntensityMinutes','threshold','map','gctMs','activities_summary_v1','max','subSport','laps','avgGradeAdjustedSpeed','minor_anaerobic_stimulus','getActivity','duration','defineProperty','elevGainM','activityTrainingLoad','data','1117904mtzrtA','maxHr','intensityType','trainingEffectLabel','filter','maxRunCadence','impact','metadataDTO','getActivityWeather','subjective','name','_run','running','type','wkId','typeKey','pace','avgHr','sport','replace','vo2max','activityId','temp','workoutComplianceScore','high_aerobic_stimulus','toString','load','durationSec','avgTempC','noOfSplits','anaerobic','base','beginPotentialStamina','activityName','stand','differenceBodyBattery','directWorkoutComplianceScore','quality_session','isFinite','targetValueHigh','hot_weather_workout','elevationGain','structured','anaerobicMessage','good_cadence','buildActivityDetailSummary','stamina','body_battery_moderate_drain','recoveryHr','minAvailableStamina','cadence','unshift','round','all','summaryStats','maxHR','walk','activityType','activityTypeDTO','cooldown','3637125ixzref','targetType','15963831eilSll','verticalRatio','aerobicTrainingEffect','aerobicMessage','targetValueLow','bodyBatteryDelta','limit','checkTokenVaild','averageRunCadence','reduce','durationType','min','distance','getActivityLaps','rest_hr_high_indicates_incomplete_recovery_between_reps','strideLength','some','floor','/km','relativeHumidity','effect','string','rwd_stand','getActivityWorkouts','warmup','averageHR','label','count','location','run','trail_or_hike_like','groundContactBalanceLeft','avgCadence','targetLow','workoutName','catch','calories','REPEAT_UNTIL_STEPS_CMPLT','toLowerCase','distanceKm','unknown','./helpers','slice','_active_intervals','high_load','movementBreakdown','vo2','splitSummaries','interval_rest','durationMin','533463JNfLGC','apparentTemp','directWorkoutFeel','length','non_endurance_training','includes','cold_weather_workout','indoor_cardio','groundContactTime','averageTemperature','windDirection','recent_running_tempo_session'];a18_0x372d=function(){return _0x251164;};return a18_0x372d();}
@@ -1 +1 @@
1
- 'use strict';const a19_0x4b17e9=a19_0x1b10;(function(_0x4f058c,_0x4a39b5){const _0x44fc11=a19_0x1b10,_0x180f73=_0x4f058c();while(!![]){try{const _0x2048f9=parseInt(_0x44fc11(0x18a))/0x1+-parseInt(_0x44fc11(0x19f))/0x2*(-parseInt(_0x44fc11(0x1e4))/0x3)+parseInt(_0x44fc11(0x18f))/0x4+parseInt(_0x44fc11(0x1df))/0x5+parseInt(_0x44fc11(0x222))/0x6*(-parseInt(_0x44fc11(0x1bd))/0x7)+parseInt(_0x44fc11(0x17b))/0x8*(-parseInt(_0x44fc11(0x1be))/0x9)+parseInt(_0x44fc11(0x21a))/0xa*(parseInt(_0x44fc11(0x1da))/0xb);if(_0x2048f9===_0x4a39b5)break;else _0x180f73['push'](_0x180f73['shift']());}catch(_0x4ac782){_0x180f73['push'](_0x180f73['shift']());}}}(a19_0xf80a,0x44ac6));Object[a19_0x4b17e9(0x19c)](exports,'__esModule',{'value':!![]}),exports[a19_0x4b17e9(0x21b)]=exports[a19_0x4b17e9(0x1a5)]=exports[a19_0x4b17e9(0x1fc)]=exports[a19_0x4b17e9(0x22a)]=exports[a19_0x4b17e9(0x203)]=exports[a19_0x4b17e9(0x212)]=exports[a19_0x4b17e9(0x1f9)]=exports[a19_0x4b17e9(0x1d2)]=exports[a19_0x4b17e9(0x1dc)]=exports['maximum']=exports[a19_0x4b17e9(0x1b9)]=exports[a19_0x4b17e9(0x1e3)]=exports[a19_0x4b17e9(0x1f1)]=exports[a19_0x4b17e9(0x1a6)]=exports[a19_0x4b17e9(0x1c6)]=exports['loadBalanceTuple']=exports[a19_0x4b17e9(0x1ef)]=exports[a19_0x4b17e9(0x225)]=exports[a19_0x4b17e9(0x193)]=exports[a19_0x4b17e9(0x1a3)]=exports['compactTrainingStatuses']=exports[a19_0x4b17e9(0x202)]=exports[a19_0x4b17e9(0x18e)]=exports[a19_0x4b17e9(0x218)]=exports[a19_0x4b17e9(0x18c)]=exports[a19_0x4b17e9(0x17d)]=exports['metricValue']=exports[a19_0x4b17e9(0x1ba)]=exports[a19_0x4b17e9(0x1db)]=exports[a19_0x4b17e9(0x21c)]=exports[a19_0x4b17e9(0x231)]=exports['lowerSnake']=exports[a19_0x4b17e9(0x1ee)]=exports['extractWeeklyTrainingStatus']=exports[a19_0x4b17e9(0x219)]=exports[a19_0x4b17e9(0x1d3)]=exports['extractUser']=exports[a19_0x4b17e9(0x229)]=exports[a19_0x4b17e9(0x1fa)]=exports[a19_0x4b17e9(0x1c1)]=exports[a19_0x4b17e9(0x1ab)]=exports[a19_0x4b17e9(0x209)]=exports[a19_0x4b17e9(0x189)]=void 0x0;function a19_0x1b10(_0x128ea0,_0x1bb39f){_0x128ea0=_0x128ea0-0x179;const _0xf80af=a19_0xf80a();let _0x1b10e6=_0xf80af[_0x128ea0];return _0x1b10e6;}const DateUtils_1=require(a19_0x4b17e9(0x1e0)),addDays=(_0x330c5f,_0x4bd8f4)=>{const _0x32285f=a19_0x4b17e9,_0x3ac4f0=new Date(_0x330c5f[_0x32285f(0x1fb)]());return _0x3ac4f0[_0x32285f(0x17c)](_0x3ac4f0[_0x32285f(0x1e5)]()+_0x4bd8f4),_0x3ac4f0;};exports[a19_0x4b17e9(0x189)]=addDays;const normalizeDate=(_0x20622e,_0x3db539)=>_0x20622e instanceof Date?_0x20622e:_0x20622e?new Date(_0x20622e):_0x3db539;exports[a19_0x4b17e9(0x209)]=normalizeDate;const getRange=(_0x5a7c99,_0x46f641)=>{const _0x150f95=a19_0x4b17e9;var _0x2cae76,_0x3ad321;const _0x16b803=(0x0,exports[_0x150f95(0x209)])((_0x2cae76=_0x5a7c99[_0x150f95(0x221)])!==null&&_0x2cae76!==void 0x0?_0x2cae76:_0x5a7c99['date'],new Date()),_0x415523=(_0x3ad321=_0x5a7c99[_0x150f95(0x21d)])!==null&&_0x3ad321!==void 0x0?_0x3ad321:_0x46f641,_0x249c52=(0x0,exports[_0x150f95(0x209)])(_0x5a7c99[_0x150f95(0x1a7)],(0x0,exports['addDays'])(_0x16b803,-(_0x415523-0x1)));return{'startDate':_0x249c52,'endDate':_0x16b803,'startDateString':(0x0,DateUtils_1[_0x150f95(0x1fe)])(_0x249c52),'endDateString':(0x0,DateUtils_1['toGarminDateString'])(_0x16b803)};};exports['getRange']=getRange;const capture=async(_0x395086,_0x4f4f4b,_0x5ba5c7)=>{const _0x416c42=a19_0x4b17e9;var _0x1de5dc;try{return await _0x5ba5c7();}catch(_0x24d1e2){return _0x4f4f4b[_0x395086]=(_0x1de5dc=_0x24d1e2===null||_0x24d1e2===void 0x0?void 0x0:_0x24d1e2[_0x416c42(0x1e2)])!==null&&_0x1de5dc!==void 0x0?_0x1de5dc:String(_0x24d1e2),null;}};exports[a19_0x4b17e9(0x1c1)]=capture;const latestActivityStats=_0x428516=>{const _0x33969b=a19_0x4b17e9,_0xe64bd=[..._0x428516][_0x33969b(0x1fd)]((_0x1f5a16,_0xe8f764)=>_0x1f5a16[_0x33969b(0x208)][_0x33969b(0x1d5)](_0xe8f764['date']));return _0xe64bd[_0x33969b(0x1a2)]>0x0?_0xe64bd[_0xe64bd[_0x33969b(0x1a2)]-0x1]:null;};exports[a19_0x4b17e9(0x1fa)]=latestActivityStats;const compactPowerCurve=_0x476f9f=>{const _0xd4e722=a19_0x4b17e9;if(!_0x476f9f||!Array[_0xd4e722(0x230)](_0x476f9f[_0xd4e722(0x198)]))return _0x476f9f;const _0x256c67=new Set([0x5,0xa,0x1e,0x3c,0x12c,0x258,0x4b0,0x708,0xe10,0x1c20,0x3840]),_0x376691=_0x476f9f[_0xd4e722(0x198)][_0xd4e722(0x184)](_0x3ad661=>_0x256c67[_0xd4e722(0x1f0)](_0x3ad661[_0xd4e722(0x1a9)]));return{..._0x476f9f,'entries':_0x376691[_0xd4e722(0x1a2)]>0x0?_0x376691:[..._0x476f9f[_0xd4e722(0x198)]][_0xd4e722(0x1fd)]((_0x16317b,_0x3e2491)=>_0x16317b[_0xd4e722(0x1a9)]-_0x3e2491[_0xd4e722(0x1a9)])[_0xd4e722(0x233)](0x0,0x14)};};exports['compactPowerCurve']=compactPowerCurve;const extractUser=_0x310bb7=>{const _0x5a2ed4=a19_0x4b17e9;var _0x2be9fd,_0xc6b41d;const _0x4ebf1d=_0x310bb7===null||_0x310bb7===void 0x0?void 0x0:_0x310bb7[_0x5a2ed4(0x220)],_0x2e5b74=_0x310bb7===null||_0x310bb7===void 0x0?void 0x0:_0x310bb7[_0x5a2ed4(0x1cd)];return{'age':_0x4ebf1d===null||_0x4ebf1d===void 0x0?void 0x0:_0x4ebf1d['age'],'birthDate':(_0x2be9fd=_0x310bb7===null||_0x310bb7===void 0x0?void 0x0:_0x310bb7[_0x5a2ed4(0x22e)])!==null&&_0x2be9fd!==void 0x0?_0x2be9fd:_0x4ebf1d===null||_0x4ebf1d===void 0x0?void 0x0:_0x4ebf1d['birthDate'],'gender':(_0xc6b41d=_0x310bb7===null||_0x310bb7===void 0x0?void 0x0:_0x310bb7[_0x5a2ed4(0x1b6)])!==null&&_0xc6b41d!==void 0x0?_0xc6b41d:_0x4ebf1d===null||_0x4ebf1d===void 0x0?void 0x0:_0x4ebf1d['genderType'],'height':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74[_0x5a2ed4(0x1ac)],'weight':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74[_0x5a2ed4(0x224)],'vo2Max':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74[_0x5a2ed4(0x19e)],'vo2MaxCycling':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74['vo2MaxCycling'],'lactateThresholdHeartRate':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74['lactateThresholdHeartRate'],'activityClass':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74[_0x5a2ed4(0x204)],'functionalThresholdPower':_0x2e5b74===null||_0x2e5b74===void 0x0?void 0x0:_0x2e5b74[_0x5a2ed4(0x201)]};};exports[a19_0x4b17e9(0x1b0)]=extractUser;const extractCurrentTrainingStatus=_0x3da4b9=>{const _0x2d6523=a19_0x4b17e9;var _0x949a9a,_0x438f25,_0xd02cb9;const _0x3bb6d0=Object[_0x2d6523(0x1a8)]((_0x949a9a=_0x3da4b9===null||_0x3da4b9===void 0x0?void 0x0:_0x3da4b9['latestTrainingStatusData'])!==null&&_0x949a9a!==void 0x0?_0x949a9a:{});return(_0xd02cb9=(_0x438f25=_0x3bb6d0[_0x2d6523(0x19d)](_0x3bccb4=>_0x3bccb4[_0x2d6523(0x1bf)]))!==null&&_0x438f25!==void 0x0?_0x438f25:_0x3bb6d0[0x0])!==null&&_0xd02cb9!==void 0x0?_0xd02cb9:null;};exports[a19_0x4b17e9(0x1d3)]=extractCurrentTrainingStatus;const extractLoadBalance=_0x4c7caf=>{const _0x13313e=a19_0x4b17e9;var _0x102688,_0xbbdd50,_0x5667e8;const _0x1785a5=Object[_0x13313e(0x1a8)]((_0x102688=_0x4c7caf===null||_0x4c7caf===void 0x0?void 0x0:_0x4c7caf[_0x13313e(0x1f4)])!==null&&_0x102688!==void 0x0?_0x102688:{});return(_0x5667e8=(_0xbbdd50=_0x1785a5[_0x13313e(0x19d)](_0x5c348c=>_0x5c348c[_0x13313e(0x1bf)]))!==null&&_0xbbdd50!==void 0x0?_0xbbdd50:_0x1785a5[0x0])!==null&&_0x5667e8!==void 0x0?_0x5667e8:null;};exports[a19_0x4b17e9(0x219)]=extractLoadBalance;const extractWeeklyTrainingStatus=_0x49962f=>{const _0x166ecc=a19_0x4b17e9;var _0x28c059;return Object[_0x166ecc(0x1a8)]((_0x28c059=_0x49962f===null||_0x49962f===void 0x0?void 0x0:_0x49962f[_0x166ecc(0x185)])!==null&&_0x28c059!==void 0x0?_0x28c059:{})['flat']()[_0x166ecc(0x184)](_0x27afca=>_0x27afca[_0x166ecc(0x1bf)])['sort']((_0x13787a,_0x32f115)=>_0x13787a[_0x166ecc(0x191)][_0x166ecc(0x1d5)](_0x32f115['calendarDate']));};exports['extractWeeklyTrainingStatus']=extractWeeklyTrainingStatus;const round=(_0x487cae,_0x27b2de=0x0)=>{const _0x4b6f72=a19_0x4b17e9;if(_0x487cae===null||_0x487cae===undefined||Number[_0x4b6f72(0x210)](_0x487cae))return null;const _0x434583=0xa**_0x27b2de;return Math[_0x4b6f72(0x1ee)](_0x487cae*_0x434583)/_0x434583;};exports['round']=round;const lowerSnake=_0x44414b=>_0x44414b?_0x44414b[a19_0x4b17e9(0x22b)]():null;exports['lowerSnake']=lowerSnake;const normalizeGender=_0x1a8396=>{const _0x5b7af7=a19_0x4b17e9;if(!_0x1a8396)return null;const _0x1a3719=_0x1a8396[_0x5b7af7(0x1d9)]();if(_0x1a3719['startsWith']('M'))return'M';if(_0x1a3719['startsWith']('F'))return'F';return _0x1a8396;};exports[a19_0x4b17e9(0x231)]=normalizeGender;const normalizeSport=_0x3a4c54=>_0x3a4c54?_0x3a4c54['toLowerCase']():null;exports[a19_0x4b17e9(0x21c)]=normalizeSport;const normalizeStatus=(_0x32e7b8,_0x1ac05d)=>{const _0x1b3972=a19_0x4b17e9;var _0x3d6ae5;if(_0x1ac05d)return _0x1ac05d[_0x1b3972(0x1ce)]('_')[0x0][_0x1b3972(0x22b)]();const _0x46248d={0x2:_0x1b3972(0x197),0x3:'overreaching',0x4:_0x1b3972(0x179),0x5:'recovery',0x6:_0x1b3972(0x223),0x7:_0x1b3972(0x1a4),0x8:'strained'};return typeof _0x32e7b8===_0x1b3972(0x192)?(_0x3d6ae5=_0x46248d[_0x32e7b8])!==null&&_0x3d6ae5!==void 0x0?_0x3d6ae5:null:null;};exports['normalizeStatus']=normalizeStatus;const normalizeTrend=_0x54f0b5=>{const _0x1f7fa9=a19_0x4b17e9;var _0x5a7dc;if(typeof _0x54f0b5==='string')return _0x54f0b5['toLowerCase']();const _0x5d7eee={0x1:_0x1f7fa9(0x18d),0x2:_0x1f7fa9(0x1f5),0x3:_0x1f7fa9(0x1aa)};return typeof _0x54f0b5==='number'?(_0x5a7dc=_0x5d7eee[_0x54f0b5])!==null&&_0x5a7dc!==void 0x0?_0x5a7dc:null:null;};exports[a19_0x4b17e9(0x1ba)]=normalizeTrend;const metricValue=(_0x2df739,_0x5c5df6,_0x3beec7)=>{const _0x3c2efb=a19_0x4b17e9;var _0x1a7207,_0x36bab6;const _0x1dedd9=(_0x36bab6=(_0x1a7207=_0x2df739===null||_0x2df739===void 0x0?void 0x0:_0x2df739['stats'])===null||_0x1a7207===void 0x0?void 0x0:_0x1a7207[_0x3c2efb(0x1b7)])===null||_0x36bab6===void 0x0?void 0x0:_0x36bab6[_0x5c5df6],_0x1f0351=_0x1dedd9===null||_0x1dedd9===void 0x0?void 0x0:_0x1dedd9[_0x3beec7];return typeof _0x1f0351==='number'?_0x1f0351:null;};exports[a19_0x4b17e9(0x1d8)]=metricValue;const buildYearStats=_0xfd8c1f=>{const _0x51f046=a19_0x4b17e9;var _0x4f1aa5,_0x1a32c3,_0x236761,_0x2c7782,_0x21157f;return{'activities':(_0x1a32c3=(_0x4f1aa5=_0xfd8c1f===null||_0xfd8c1f===void 0x0?void 0x0:_0xfd8c1f[_0x51f046(0x21f)])!==null&&_0x4f1aa5!==void 0x0?_0x4f1aa5:(0x0,exports[_0x51f046(0x1d8)])(_0xfd8c1f,_0x51f046(0x1a9),_0x51f046(0x1b8)))!==null&&_0x1a32c3!==void 0x0?_0x1a32c3:0x0,'distanceKm':(0x0,exports['round'])(((_0x236761=(0x0,exports[_0x51f046(0x1d8)])(_0xfd8c1f,_0x51f046(0x1c9),_0x51f046(0x1cf)))!==null&&_0x236761!==void 0x0?_0x236761:0x0)/0x186a0),'durationH':(0x0,exports['round'])(((_0x2c7782=(0x0,exports[_0x51f046(0x1d8)])(_0xfd8c1f,_0x51f046(0x1a9),_0x51f046(0x1cf)))!==null&&_0x2c7782!==void 0x0?_0x2c7782:0x0)/0x36ee80),'elevGainM':(0x0,exports[_0x51f046(0x1ee)])(((_0x21157f=(0x0,exports[_0x51f046(0x1d8)])(_0xfd8c1f,_0x51f046(0x1c5),'sum'))!==null&&_0x21157f!==void 0x0?_0x21157f:0x0)/0x64),'avgHr':(0x0,exports[_0x51f046(0x1ee)])((0x0,exports[_0x51f046(0x1d8)])(_0xfd8c1f,_0x51f046(0x226),'avg')),'maxHr':(0x0,exports[_0x51f046(0x1ee)])((0x0,exports['metricValue'])(_0xfd8c1f,_0x51f046(0x1ae),'max'))};};function a19_0xf80a(){const _0x360a1d=['high_aerobic_low','today','avgStress','chronic','filter','reportData','needMin','high_chronic_load','current_','addDays','251452aUDZSA','set','hasSportStats','declining','thresholdPaceFromSpeed','1174356jJfbON','recovery_data_partial','calendarDate','number','buildTrendLoad','highAerobic','from','flat','unproductive','entries','bodyBattery','trainingStatusFeedbackPhrase','rem_low','defineProperty','find','vo2Max','240740nEgEuA','maximum','startsWith','length','countStatusDays','productive','buildReadiness','compactLower','startDate','values','duration','improving','getRange','height','durationMin','maxHr','padStart','extractUser','quality','map','max','resting_hr','trainingStatus','gender','all','count','minimum','normalizeTrend','acwrStatus','sleep','49462FwUalK','711mrWlSa','primaryTrainingDevice','body_battery_high','capture','available','/km','dailyAcuteChronicWorkloadRatio','elevationGain','toMinutes','toString','reduce','distance','no_data','status','low_aerobic_high','biometricProfile','split','sum','00:','high_recharge','buildUnavailableMetrics','extractCurrentTrainingStatus','hrv','localeCompare','state','caution','metricValue','toUpperCase','11KANBZY','normalizeStatus','availability','running','good','982815SsYBqP','../../common/DateUtils','acute','message','average','3EDnaOT','getDate','loadBalance','weeklyTrainingLoad','spo2','push','restingHr','triathlon_candidate','fair_overall','readiness','round','findPowerToWeight','has','numericValues','balanced','overview_excludes_swimming_by_source','metricsTrainingLoadBalanceDTOMap','stable','remMin','last_night_sleep_short','good_7d_sleep_average','buildIncludedMetrics','latestActivityStats','getTime','bodyBatteryTrend','sort','toGarminDateString','isMultiSport','dailyTrainingLoadAcute','functionalThresholdPower','metricStatus','hrvTrend','activityClass','poor_overall','improving_low_point','_last_night_','date','normalizeDate','strong_run_bike_vo2','poor','get','acwr','sleep_stress_low','respiration','isNaN','recent7d','statusDaysFromHrv','compactTrainingStatuses','low','body_battery','hrv_','sleep_score_','compactRaceTime','extractLoadBalance','2416070mKUogj','buildWellnessAiHints','normalizeSport','recentDays','cycling','countOfActivities','userInfo','endDate','390GPIEMg','peaking','weight','buildAiHints','avgHr','fair','lastNightAvg','compactPowerCurve','sleepTrend','toLowerCase','includes','sports','birthDate','moderate_good','isArray','normalizeGender','high','slice','maintaining','multiSport','36760fmVBMS','setDate','buildYearStats','recovery_data_complete','moderate_recharge'];a19_0xf80a=function(){return _0x360a1d;};return a19_0xf80a();}exports[a19_0x4b17e9(0x17d)]=buildYearStats;const hasSportStats=_0x687292=>{const _0x334c69=a19_0x4b17e9;var _0x186d85,_0x56b8fa;return((_0x186d85=_0x687292===null||_0x687292===void 0x0?void 0x0:_0x687292['countOfActivities'])!==null&&_0x186d85!==void 0x0?_0x186d85:0x0)>0x0||((_0x56b8fa=(0x0,exports[_0x334c69(0x1d8)])(_0x687292,_0x334c69(0x1a9),_0x334c69(0x1cf)))!==null&&_0x56b8fa!==void 0x0?_0x56b8fa:0x0)>0x0;};exports[a19_0x4b17e9(0x18c)]=hasSportStats;const compactRaceTime=_0x44bf49=>{const _0x579a7a=a19_0x4b17e9;if(!_0x44bf49)return null;if(_0x44bf49[_0x579a7a(0x1a1)](_0x579a7a(0x1d0)))return _0x44bf49[_0x579a7a(0x233)](0x3);if(_0x44bf49[_0x579a7a(0x1a1)]('0'))return _0x44bf49[_0x579a7a(0x233)](0x1);return _0x44bf49;};exports[a19_0x4b17e9(0x218)]=compactRaceTime;const thresholdPaceFromSpeed=_0x786d5=>{const _0x399863=a19_0x4b17e9;if(!_0x786d5)return null;const _0x15db28=_0x786d5*0xa,_0x795b90=0x3e8/_0x15db28,_0x4ff10e=Math['floor'](_0x795b90/0x3c),_0x238549=Math['round'](_0x795b90%0x3c);return(_0x238549===0x3c?_0x4ff10e+0x1:_0x4ff10e)+':'+(_0x238549===0x3c?0x0:_0x238549)[_0x399863(0x1c7)]()[_0x399863(0x1af)](0x2,'0')+_0x399863(0x1c3);};exports[a19_0x4b17e9(0x18e)]=thresholdPaceFromSpeed;const metricStatus=(_0x412510,_0x282cdf,_0x55a5b3)=>{const _0x46d2d3=a19_0x4b17e9;if(_0x412510===null||_0x412510===undefined)return null;if(_0x282cdf!==null&&_0x282cdf!==undefined&&_0x412510<_0x282cdf)return _0x46d2d3(0x214);if(_0x55a5b3!==null&&_0x55a5b3!==undefined&&_0x412510>_0x55a5b3)return _0x46d2d3(0x232);return'ok';};exports['metricStatus']=metricStatus;const compactTrainingStatuses=_0x3d0f4d=>{const _0x20cd01=a19_0x4b17e9;var _0x18eedb;const _0x5326d3=new Map(),_0x3dc2ea=Object[_0x20cd01(0x1a8)]((_0x18eedb=_0x3d0f4d===null||_0x3d0f4d===void 0x0?void 0x0:_0x3d0f4d['reportData'])!==null&&_0x18eedb!==void 0x0?_0x18eedb:{})[_0x20cd01(0x196)]()['sort']((_0x2b0210,_0x116e27)=>_0x2b0210[_0x20cd01(0x191)][_0x20cd01(0x1d5)](_0x116e27[_0x20cd01(0x191)]));for(const _0x26c0ed of _0x3dc2ea){const _0x37ece2=_0x5326d3[_0x20cd01(0x20c)](_0x26c0ed[_0x20cd01(0x191)]);(!_0x37ece2||_0x26c0ed['primaryTrainingDevice'])&&_0x5326d3[_0x20cd01(0x18b)](_0x26c0ed[_0x20cd01(0x191)],_0x26c0ed);}return Array[_0x20cd01(0x195)](_0x5326d3[_0x20cd01(0x1a8)]())['sort']((_0x55677f,_0x3e88ea)=>_0x55677f[_0x20cd01(0x191)][_0x20cd01(0x1d5)](_0x3e88ea[_0x20cd01(0x191)]));};exports[a19_0x4b17e9(0x213)]=compactTrainingStatuses;const countStatusDays=_0x131880=>{const _0x5cf07e=a19_0x4b17e9;var _0x20f439;const _0x5f348f={'productive':0x0,'maintaining':0x0,'recovery':0x0,'peaking':0x0,'unproductive':0x0,'overreaching':0x0};for(const _0x2e7f67 of _0x131880){const _0x3b58d1=(0x0,exports[_0x5cf07e(0x1db)])(_0x2e7f67[_0x5cf07e(0x1b5)],_0x2e7f67[_0x5cf07e(0x19a)]);_0x3b58d1&&(_0x5f348f[_0x3b58d1]=((_0x20f439=_0x5f348f[_0x3b58d1])!==null&&_0x20f439!==void 0x0?_0x20f439:0x0)+0x1);}return _0x5f348f;};exports[a19_0x4b17e9(0x1a3)]=countStatusDays;const buildTrendLoad=_0x54fddf=>{const _0x3ad997=a19_0x4b17e9;var _0x535607,_0x1ea945,_0xb6e000,_0x2bac36;const _0x3834ee=_0x54fddf['map'](_0x382e68=>{const _0x14fa25=a19_0x1b10;var _0x4bb2a0,_0x474404,_0x13fe1f,_0x5b5f2f,_0x36c2e2;const _0x3d36d6=_0x382e68['acuteTrainingLoadDTO'];return{'chronic':(_0x474404=(_0x4bb2a0=_0x3d36d6===null||_0x3d36d6===void 0x0?void 0x0:_0x3d36d6['dailyTrainingLoadChronic'])!==null&&_0x4bb2a0!==void 0x0?_0x4bb2a0:_0x382e68[_0x14fa25(0x1e7)])!==null&&_0x474404!==void 0x0?_0x474404:null,'acute':(_0x5b5f2f=(_0x13fe1f=_0x3d36d6===null||_0x3d36d6===void 0x0?void 0x0:_0x3d36d6[_0x14fa25(0x200)])!==null&&_0x13fe1f!==void 0x0?_0x13fe1f:_0x382e68['weeklyTrainingLoad'])!==null&&_0x5b5f2f!==void 0x0?_0x5b5f2f:null,'acwr':(_0x36c2e2=_0x3d36d6===null||_0x3d36d6===void 0x0?void 0x0:_0x3d36d6[_0x14fa25(0x1c4)])!==null&&_0x36c2e2!==void 0x0?_0x36c2e2:null};})[_0x3ad997(0x184)](_0x43f44c=>_0x43f44c[_0x3ad997(0x183)]!==null||_0x43f44c['acute']!==null||_0x43f44c['acwr']!==null);return{'chronicStart':(0x0,exports[_0x3ad997(0x1ee)])((_0x1ea945=(_0x535607=_0x3834ee[0x0])===null||_0x535607===void 0x0?void 0x0:_0x535607['chronic'])!==null&&_0x1ea945!==void 0x0?_0x1ea945:null),'chronicEnd':(0x0,exports['round'])((_0x2bac36=(_0xb6e000=_0x3834ee[_0x3834ee[_0x3ad997(0x1a2)]-0x1])===null||_0xb6e000===void 0x0?void 0x0:_0xb6e000['chronic'])!==null&&_0x2bac36!==void 0x0?_0x2bac36:null),'maxAcute':(0x0,exports[_0x3ad997(0x1ee)])(_0x3834ee[_0x3ad997(0x1c8)]((_0x5661e8,_0x275b82)=>_0x275b82[_0x3ad997(0x1e1)]===null?_0x5661e8:_0x5661e8===null?_0x275b82[_0x3ad997(0x1e1)]:Math[_0x3ad997(0x1b3)](_0x5661e8,_0x275b82['acute']),null)),'maxAcwr':(0x0,exports[_0x3ad997(0x1ee)])(_0x3834ee['reduce']((_0x102bf0,_0x58f2c0)=>_0x58f2c0[_0x3ad997(0x20d)]===null?_0x102bf0:_0x102bf0===null?_0x58f2c0['acwr']:Math[_0x3ad997(0x1b3)](_0x102bf0,_0x58f2c0['acwr']),null),0x1)};};exports[a19_0x4b17e9(0x193)]=buildTrendLoad;const buildAiHints=_0x270f6e=>{const _0x25538c=a19_0x4b17e9;var _0x3ea99e,_0x44b0f2,_0x167369;const _0xbbe164=[_0x25538c(0x1f3)];if(_0x270f6e[_0x25538c(0x17a)][_0x25538c(0x1ff)])_0xbbe164['push'](_0x25538c(0x1eb));((_0x3ea99e=_0x270f6e[_0x25538c(0x22d)][_0x25538c(0x1dd)][_0x25538c(0x19e)])!==null&&_0x3ea99e!==void 0x0?_0x3ea99e:0x0)>=0x32&&((_0x44b0f2=_0x270f6e[_0x25538c(0x22d)][_0x25538c(0x21e)][_0x25538c(0x19e)])!==null&&_0x44b0f2!==void 0x0?_0x44b0f2:0x0)>=0x32&&_0xbbe164[_0x25538c(0x1e9)](_0x25538c(0x20a));if(((_0x167369=_0x270f6e[_0x25538c(0x1d6)]['chronicLoad'])!==null&&_0x167369!==void 0x0?_0x167369:0x0)>=0x384)_0xbbe164[_0x25538c(0x1e9)](_0x25538c(0x187));return _0x270f6e[_0x25538c(0x1e6)]['lowAerobic'][0x3]==='high'&&_0xbbe164[_0x25538c(0x1e9)](_0x25538c(0x1cc)),_0x270f6e[_0x25538c(0x1e6)][_0x25538c(0x194)][0x3]===_0x25538c(0x214)&&_0xbbe164[_0x25538c(0x1e9)](_0x25538c(0x180)),_0x270f6e['state'][_0x25538c(0x1cb)]&&_0x270f6e[_0x25538c(0x1d6)]['acwrStatus']&&_0xbbe164['push'](_0x25538c(0x188)+_0x270f6e['state']['status']+'_'+_0x270f6e[_0x25538c(0x1d6)][_0x25538c(0x1bb)]+'_acwr'),_0xbbe164;};exports['buildAiHints']=buildAiHints;const findPowerToWeight=(_0x4b8af7,_0x3ee398)=>{const _0x1d4d5e=a19_0x4b17e9;var _0x24ac7f;return(_0x24ac7f=_0x4b8af7===null||_0x4b8af7===void 0x0?void 0x0:_0x4b8af7[_0x1d4d5e(0x19d)](_0x39aecc=>{const _0x545024=_0x1d4d5e;var _0x331865;return((_0x331865=_0x39aecc['sport'])===null||_0x331865===void 0x0?void 0x0:_0x331865[_0x545024(0x22b)]())===_0x3ee398[_0x545024(0x22b)]();}))!==null&&_0x24ac7f!==void 0x0?_0x24ac7f:null;};exports[a19_0x4b17e9(0x1ef)]=findPowerToWeight;const loadBalanceTuple=(_0x167faf,_0x57eb72,_0xa5c2b)=>[(0x0,exports[a19_0x4b17e9(0x1ee)])(_0x167faf),(0x0,exports[a19_0x4b17e9(0x1ee)])(_0x57eb72),(0x0,exports[a19_0x4b17e9(0x1ee)])(_0xa5c2b),(0x0,exports[a19_0x4b17e9(0x202)])(_0x167faf,_0x57eb72,_0xa5c2b)];exports['loadBalanceTuple']=loadBalanceTuple;const toMinutes=_0x10fe18=>typeof _0x10fe18==='number'?(0x0,exports[a19_0x4b17e9(0x1ee)])(_0x10fe18/0x3c):null;exports[a19_0x4b17e9(0x1c6)]=toMinutes;const compactLower=_0x594821=>_0x594821?_0x594821[a19_0x4b17e9(0x22b)]():null;exports[a19_0x4b17e9(0x1a6)]=compactLower;const numericValues=_0xf83dd6=>_0xf83dd6[a19_0x4b17e9(0x184)](_0x332926=>typeof _0x332926==='number');exports[a19_0x4b17e9(0x1f1)]=numericValues;const average=(_0x36de6b,_0x48b9f6=0x0)=>{const _0x36d77d=a19_0x4b17e9,_0x5c9ecb=(0x0,exports[_0x36d77d(0x1f1)])(_0x36de6b);if(_0x5c9ecb[_0x36d77d(0x1a2)]===0x0)return null;return(0x0,exports[_0x36d77d(0x1ee)])(_0x5c9ecb[_0x36d77d(0x1c8)]((_0x332b6d,_0x58f129)=>_0x332b6d+_0x58f129,0x0)/_0x5c9ecb['length'],_0x48b9f6);};exports['average']=average;const minimum=_0xfe0c52=>{const _0x3926bb=a19_0x4b17e9,_0x4997f2=(0x0,exports['numericValues'])(_0xfe0c52);return _0x4997f2[_0x3926bb(0x1a2)]>0x0?Math['min'](..._0x4997f2):null;};exports[a19_0x4b17e9(0x1b9)]=minimum;const maximum=_0x14a93d=>{const _0x9e8b4c=a19_0x4b17e9,_0x4c7997=(0x0,exports[_0x9e8b4c(0x1f1)])(_0x14a93d);return _0x4c7997[_0x9e8b4c(0x1a2)]>0x0?Math[_0x9e8b4c(0x1b3)](..._0x4c7997):null;};exports[a19_0x4b17e9(0x1a0)]=maximum;const availability=(_0x5a69d0,_0x50aa6e)=>{const _0x3d6365=a19_0x4b17e9;if(_0x5a69d0&&_0x50aa6e)return _0x3d6365(0x1c2);if(_0x5a69d0)return'partial';return _0x3d6365(0x1ca);};exports[a19_0x4b17e9(0x1dc)]=availability;const buildUnavailableMetrics=_0x46226e=>{const _0x45e841=a19_0x4b17e9,_0x183e16={'hrv':_0x45e841(0x1d4),'sleep':_0x45e841(0x1bc),'bodyBattery':_0x45e841(0x215),'restingHeartRate':_0x45e841(0x1b4),'respiration':_0x45e841(0x20f),'spo2':_0x45e841(0x1e8),'skinTemp':'skin_temp'};return Object['entries'](_0x46226e)[_0x45e841(0x184)](([,_0x25a4f])=>_0x25a4f!==_0x45e841(0x1c2))['map'](([_0x3033fd])=>{var _0x1897aa;return(_0x1897aa=_0x183e16[_0x3033fd])!==null&&_0x1897aa!==void 0x0?_0x1897aa:_0x3033fd;});};exports[a19_0x4b17e9(0x1d2)]=buildUnavailableMetrics;const buildIncludedMetrics=_0x5479cb=>{const _0x2a469e=a19_0x4b17e9,_0xf53074={'hrv':_0x2a469e(0x1d4),'sleep':'sleep','bodyBattery':_0x2a469e(0x215),'restingHeartRate':_0x2a469e(0x1b4),'respiration':'respiration'};return Object[_0x2a469e(0x198)](_0xf53074)[_0x2a469e(0x184)](([_0x386632])=>_0x5479cb[_0x386632]===_0x2a469e(0x1c2))[_0x2a469e(0x1b2)](([,_0x4fdc22])=>_0x4fdc22);};exports[a19_0x4b17e9(0x1f9)]=buildIncludedMetrics;const statusDaysFromHrv=_0x37ca5f=>{const _0x36b757=a19_0x4b17e9;var _0x472911,_0x4d6326;const _0xdee37d={};for(const _0x8c622 of _0x37ca5f){const _0x12acf7=(_0x472911=(0x0,exports['compactLower'])(_0x8c622[_0x36b757(0x1cb)]))!==null&&_0x472911!==void 0x0?_0x472911:'unknown';_0xdee37d[_0x12acf7]=((_0x4d6326=_0xdee37d[_0x12acf7])!==null&&_0x4d6326!==void 0x0?_0x4d6326:0x0)+0x1;}return _0xdee37d;};exports[a19_0x4b17e9(0x212)]=statusDaysFromHrv;const hrvTrend=_0x445e7a=>{const _0x5bc259=a19_0x4b17e9;var _0x392132,_0x9fa280,_0x34d445,_0x539dc9;if(_0x445e7a[_0x5bc259(0x1a2)]===0x0)return null;const _0x1c248f=(0x0,exports['statusDaysFromHrv'])(_0x445e7a),_0x427597=(_0x9fa280=(_0x392132=Object[_0x5bc259(0x198)](_0x1c248f)[_0x5bc259(0x1fd)]((_0x5ce6af,_0x54c5eb)=>_0x54c5eb[0x1]-_0x5ce6af[0x1])[0x0])===null||_0x392132===void 0x0?void 0x0:_0x392132[0x0])!==null&&_0x9fa280!==void 0x0?_0x9fa280:'unknown',_0xf2db30=(_0x34d445=_0x445e7a[0x0])===null||_0x34d445===void 0x0?void 0x0:_0x34d445[_0x5bc259(0x228)],_0x25faee=(_0x539dc9=_0x445e7a[_0x445e7a[_0x5bc259(0x1a2)]-0x1])===null||_0x539dc9===void 0x0?void 0x0:_0x539dc9[_0x5bc259(0x228)],_0x10d024=typeof _0xf2db30===_0x5bc259(0x192)&&typeof _0x25faee===_0x5bc259(0x192)?_0x25faee-_0xf2db30>=0x4?_0x5bc259(0x1aa):_0xf2db30-_0x25faee>=0x4?_0x5bc259(0x18d):_0x5bc259(0x1f5):_0x5bc259(0x1f5);return _0x10d024+'_'+_0x427597;};exports['hrvTrend']=hrvTrend;const sleepTrend=(_0x5c39b0,_0x3b6033,_0x2386b4,_0x4bff0e)=>{const _0x239091=a19_0x4b17e9,_0x329a37=_0x5c39b0===null?null:_0x5c39b0>=0x50?'good_overall':_0x5c39b0>=0x46?_0x239091(0x1ec):_0x239091(0x205);if(!_0x329a37)return null;const _0x1edb62=_0x3b6033!==null&&_0x2386b4!==null&&_0x3b6033<_0x2386b4*0.9;if(_0x1edb62)return _0x329a37+'_last_night_short';if(_0x4bff0e&&[_0x239091(0x227),_0x239091(0x20b)]['includes'](_0x4bff0e))return _0x329a37+_0x239091(0x207)+_0x4bff0e;return _0x329a37;};exports[a19_0x4b17e9(0x22a)]=sleepTrend;const bodyBatteryTrend=(_0x528a9a,_0x467145,_0x12a65f)=>{const _0x3680d4=a19_0x4b17e9;if(_0x528a9a===null&&_0x467145===null)return null;const _0x546a8e=_0x528a9a!==null&&_0x528a9a>=0x55?_0x3680d4(0x1d1):_0x3680d4(0x17f),_0x486367=_0x12a65f!==null&&_0x467145!==null&&_0x12a65f>_0x467145?_0x3680d4(0x206):'low_point_watch';return _0x546a8e+'_'+_0x486367;};exports[a19_0x4b17e9(0x1fc)]=bodyBatteryTrend;const buildReadiness=_0x293e4e=>{const _0x5cb8f6=a19_0x4b17e9;var _0x23dae5;const _0x41d904=[],_0x3e993e=[];if(_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1d4)][_0x5cb8f6(0x1cb)]===_0x5cb8f6(0x1f2))_0x41d904['push']('hrv_balanced');else _0x293e4e['today'][_0x5cb8f6(0x1d4)][_0x5cb8f6(0x1cb)]&&_0x3e993e[_0x5cb8f6(0x1e9)](_0x5cb8f6(0x216)+_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1d4)][_0x5cb8f6(0x1cb)]);((_0x23dae5=_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x199)]['high'])!==null&&_0x23dae5!==void 0x0?_0x23dae5:0x0)>=0x50&&_0x41d904['push'](_0x5cb8f6(0x1c0));_0x293e4e['today'][_0x5cb8f6(0x1bc)]['restingHr']!==null&&_0x293e4e['today'][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1ea)]<=0x32&&_0x41d904[_0x5cb8f6(0x1e9)]('resting_hr_low');_0x293e4e[_0x5cb8f6(0x181)]['sleep'][_0x5cb8f6(0x182)]!==null&&_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x182)]<=0xf&&_0x41d904[_0x5cb8f6(0x1e9)](_0x5cb8f6(0x20e));_0x293e4e[_0x5cb8f6(0x181)]['sleep'][_0x5cb8f6(0x1ad)]!==null&&_0x293e4e['today']['sleep'][_0x5cb8f6(0x186)]!==null&&_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1ad)]<_0x293e4e[_0x5cb8f6(0x181)]['sleep'][_0x5cb8f6(0x186)]*0.9&&_0x3e993e[_0x5cb8f6(0x1e9)](_0x5cb8f6(0x1f7));_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1b1)]&&[_0x5cb8f6(0x227),_0x5cb8f6(0x20b)][_0x5cb8f6(0x22c)](_0x293e4e[_0x5cb8f6(0x181)]['sleep'][_0x5cb8f6(0x1b1)])&&_0x3e993e['push'](_0x5cb8f6(0x217)+_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1b1)]);_0x293e4e['today'][_0x5cb8f6(0x1bc)]['remMin']!==null&&_0x293e4e[_0x5cb8f6(0x181)][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1ad)]!==null&&_0x293e4e['today'][_0x5cb8f6(0x1bc)][_0x5cb8f6(0x1f6)]<_0x293e4e[_0x5cb8f6(0x181)]['sleep']['durationMin']*0.18&&_0x3e993e[_0x5cb8f6(0x1e9)](_0x5cb8f6(0x19b));const _0x4d9f8f=_0x293e4e[_0x5cb8f6(0x1dc)][_0x5cb8f6(0x1d4)]===_0x5cb8f6(0x1c2)&&_0x293e4e['availability']['sleep']===_0x5cb8f6(0x1c2)&&_0x293e4e['availability'][_0x5cb8f6(0x199)]==='available',_0x12a508=_0x4d9f8f?_0x5cb8f6(0x232):_0x293e4e[_0x5cb8f6(0x1dc)][_0x5cb8f6(0x1bc)]!==_0x5cb8f6(0x1ca)||_0x293e4e['availability']['hrv']!=='no_data'?'medium':_0x5cb8f6(0x214),_0x976931=_0x3e993e[_0x5cb8f6(0x1a2)]===0x0&&_0x41d904[_0x5cb8f6(0x1a2)]>=0x3?_0x5cb8f6(0x1de):_0x41d904['length']>=_0x3e993e[_0x5cb8f6(0x1a2)]?_0x5cb8f6(0x22f):_0x5cb8f6(0x1d7);return{'status':_0x976931,'confidence':_0x12a508,'positiveSignals':_0x41d904,'cautionSignals':_0x3e993e};};exports[a19_0x4b17e9(0x1a5)]=buildReadiness;const buildWellnessAiHints=_0x876c50=>{const _0x3aba54=a19_0x4b17e9;var _0xdbd72,_0x15124b;const _0x55972f=[];_0x876c50[_0x3aba54(0x1dc)][_0x3aba54(0x1d4)]==='available'&&_0x876c50[_0x3aba54(0x1dc)][_0x3aba54(0x1bc)]==='available'&&_0x876c50[_0x3aba54(0x1dc)][_0x3aba54(0x199)]===_0x3aba54(0x1c2)?_0x55972f[_0x3aba54(0x1e9)](_0x3aba54(0x17e)):_0x55972f[_0x3aba54(0x1e9)](_0x3aba54(0x190));if(_0x876c50[_0x3aba54(0x181)][_0x3aba54(0x1d4)][_0x3aba54(0x1cb)])_0x55972f[_0x3aba54(0x1e9)]('hrv_'+_0x876c50[_0x3aba54(0x181)][_0x3aba54(0x1d4)]['status']);((_0xdbd72=_0x876c50[_0x3aba54(0x211)]['sleep']['avgScore'])!==null&&_0xdbd72!==void 0x0?_0xdbd72:0x0)>=0x50&&_0x55972f['push'](_0x3aba54(0x1f8));for(const _0x4fbfa4 of _0x876c50[_0x3aba54(0x1ed)]['cautionSignals']){_0x55972f[_0x3aba54(0x1e9)](_0x4fbfa4);}return((_0x15124b=_0x876c50[_0x3aba54(0x181)][_0x3aba54(0x199)][_0x3aba54(0x232)])!==null&&_0x15124b!==void 0x0?_0x15124b:0x0)>=0x50&&_0x55972f['push'](_0x3aba54(0x1c0)),_0x55972f['push'](_0x876c50[_0x3aba54(0x1ed)][_0x3aba54(0x1cb)]+'_readiness'),Array[_0x3aba54(0x195)](new Set(_0x55972f));};exports[a19_0x4b17e9(0x21b)]=buildWellnessAiHints;
1
+ 'use strict';const a19_0xd47d65=a19_0x1839;(function(_0x35007d,_0x1011be){const _0x2b263e=a19_0x1839,_0x2152b8=_0x35007d();while(!![]){try{const _0x17b1bf=parseInt(_0x2b263e(0x8a))/0x1*(-parseInt(_0x2b263e(0x11a))/0x2)+-parseInt(_0x2b263e(0xeb))/0x3+-parseInt(_0x2b263e(0xde))/0x4+-parseInt(_0x2b263e(0xf2))/0x5+-parseInt(_0x2b263e(0xab))/0x6+-parseInt(_0x2b263e(0xc0))/0x7+parseInt(_0x2b263e(0xc9))/0x8*(parseInt(_0x2b263e(0xd6))/0x9);if(_0x17b1bf===_0x1011be)break;else _0x2152b8['push'](_0x2152b8['shift']());}catch(_0x714cfc){_0x2152b8['push'](_0x2152b8['shift']());}}}(a19_0x1a4d,0x54f7c));Object[a19_0xd47d65(0xfb)](exports,a19_0xd47d65(0xd4),{'value':!![]}),exports[a19_0xd47d65(0x124)]=exports['buildReadiness']=exports[a19_0xd47d65(0x73)]=exports[a19_0xd47d65(0x70)]=exports[a19_0xd47d65(0x11f)]=exports[a19_0xd47d65(0xad)]=exports[a19_0xd47d65(0xee)]=exports[a19_0xd47d65(0xe8)]=exports['availability']=exports[a19_0xd47d65(0xe9)]=exports[a19_0xd47d65(0x94)]=exports[a19_0xd47d65(0xc2)]=exports['numericValues']=exports[a19_0xd47d65(0xed)]=exports['toMinutes']=exports[a19_0xd47d65(0xd3)]=exports['findPowerToWeight']=exports[a19_0xd47d65(0xd0)]=exports[a19_0xd47d65(0x117)]=exports['countStatusDays']=exports[a19_0xd47d65(0xa0)]=exports[a19_0xd47d65(0x8c)]=exports[a19_0xd47d65(0xca)]=exports[a19_0xd47d65(0xf0)]=exports[a19_0xd47d65(0x6c)]=exports[a19_0xd47d65(0x10a)]=exports['metricValue']=exports[a19_0xd47d65(0xf5)]=exports[a19_0xd47d65(0xcd)]=exports[a19_0xd47d65(0xf3)]=exports[a19_0xd47d65(0x11c)]=exports[a19_0xd47d65(0xf9)]=exports[a19_0xd47d65(0x126)]=exports[a19_0xd47d65(0x96)]=exports['extractLoadBalance']=exports[a19_0xd47d65(0xa9)]=exports['extractUser']=exports[a19_0xd47d65(0xb7)]=exports[a19_0xd47d65(0xc4)]=exports[a19_0xd47d65(0xf6)]=exports[a19_0xd47d65(0xfd)]=exports[a19_0xd47d65(0x89)]=exports[a19_0xd47d65(0xa7)]=void 0x0;const DateUtils_1=require(a19_0xd47d65(0x80)),addDays=(_0x4761e5,_0x368318)=>{const _0x2f063d=a19_0xd47d65,_0x504e17=new Date(_0x4761e5['getTime']());return _0x504e17[_0x2f063d(0x98)](_0x504e17[_0x2f063d(0xbd)]()+_0x368318),_0x504e17;};exports[a19_0xd47d65(0xa7)]=addDays;const normalizeDate=(_0x3bfb00,_0x352878)=>_0x3bfb00 instanceof Date?_0x3bfb00:_0x3bfb00?new Date(_0x3bfb00):_0x352878;exports[a19_0xd47d65(0x89)]=normalizeDate;const getRange=(_0x20067d,_0x2b8e71)=>{const _0x15310b=a19_0xd47d65;var _0x1623fd,_0x1ddcfd;const _0x4e785e=(0x0,exports[_0x15310b(0x89)])((_0x1623fd=_0x20067d[_0x15310b(0x9f)])!==null&&_0x1623fd!==void 0x0?_0x1623fd:_0x20067d[_0x15310b(0x86)],new Date()),_0x3b6e6e=(_0x1ddcfd=_0x20067d[_0x15310b(0xe4)])!==null&&_0x1ddcfd!==void 0x0?_0x1ddcfd:_0x2b8e71,_0x430540=(0x0,exports[_0x15310b(0x89)])(_0x20067d[_0x15310b(0x118)],(0x0,exports[_0x15310b(0xa7)])(_0x4e785e,-(_0x3b6e6e-0x1)));return{'startDate':_0x430540,'endDate':_0x4e785e,'startDateString':(0x0,DateUtils_1[_0x15310b(0xc5)])(_0x430540),'endDateString':(0x0,DateUtils_1['toGarminDateString'])(_0x4e785e)};};exports[a19_0xd47d65(0xfd)]=getRange;const capture=async(_0x342252,_0x200f21,_0x592462)=>{var _0x4bc901;try{return await _0x592462();}catch(_0x87cc8b){return _0x200f21[_0x342252]=(_0x4bc901=_0x87cc8b===null||_0x87cc8b===void 0x0?void 0x0:_0x87cc8b['message'])!==null&&_0x4bc901!==void 0x0?_0x4bc901:String(_0x87cc8b),null;}};exports[a19_0xd47d65(0xf6)]=capture;const latestActivityStats=_0x427575=>{const _0x8d596b=a19_0xd47d65,_0x40fa44=[..._0x427575][_0x8d596b(0xbc)]((_0x52a0d7,_0x488cd0)=>_0x52a0d7[_0x8d596b(0x86)]['localeCompare'](_0x488cd0[_0x8d596b(0x86)]));return _0x40fa44['length']>0x0?_0x40fa44[_0x40fa44[_0x8d596b(0x111)]-0x1]:null;};exports[a19_0xd47d65(0xc4)]=latestActivityStats;const compactPowerCurve=_0x4cd176=>{const _0x59b254=a19_0xd47d65;if(!_0x4cd176||!Array[_0x59b254(0xf7)](_0x4cd176[_0x59b254(0xd1)]))return _0x4cd176;const _0x4cf923=new Set([0x5,0xa,0x1e,0x3c,0x12c,0x258,0x4b0,0x708,0xe10,0x1c20,0x3840]),_0x3858cd=_0x4cd176['entries']['filter'](_0x491314=>_0x4cf923[_0x59b254(0x77)](_0x491314[_0x59b254(0x8b)]));return{..._0x4cd176,'entries':_0x3858cd[_0x59b254(0x111)]>0x0?_0x3858cd:[..._0x4cd176[_0x59b254(0xd1)]][_0x59b254(0xbc)]((_0x38e211,_0x275d1d)=>_0x38e211[_0x59b254(0x8b)]-_0x275d1d['duration'])[_0x59b254(0xda)](0x0,0x14)};};exports['compactPowerCurve']=compactPowerCurve;const extractUser=_0x3680e1=>{const _0x1e62ae=a19_0xd47d65;var _0x2eb4fb,_0x40825d;const _0x3d4e03=_0x3680e1===null||_0x3680e1===void 0x0?void 0x0:_0x3680e1[_0x1e62ae(0x83)],_0x47063f=_0x3680e1===null||_0x3680e1===void 0x0?void 0x0:_0x3680e1[_0x1e62ae(0x115)];return{'age':_0x3d4e03===null||_0x3d4e03===void 0x0?void 0x0:_0x3d4e03[_0x1e62ae(0xbf)],'birthDate':(_0x2eb4fb=_0x3680e1===null||_0x3680e1===void 0x0?void 0x0:_0x3680e1['birthDate'])!==null&&_0x2eb4fb!==void 0x0?_0x2eb4fb:_0x3d4e03===null||_0x3d4e03===void 0x0?void 0x0:_0x3d4e03['birthDate'],'gender':(_0x40825d=_0x3680e1===null||_0x3680e1===void 0x0?void 0x0:_0x3680e1[_0x1e62ae(0x110)])!==null&&_0x40825d!==void 0x0?_0x40825d:_0x3d4e03===null||_0x3d4e03===void 0x0?void 0x0:_0x3d4e03[_0x1e62ae(0xd2)],'height':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0xd9)],'weight':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0x6d)],'vo2Max':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0x122)],'vo2MaxCycling':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0x107)],'lactateThresholdHeartRate':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0xbb)],'activityClass':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0xaa)],'functionalThresholdPower':_0x47063f===null||_0x47063f===void 0x0?void 0x0:_0x47063f[_0x1e62ae(0xa6)]};};exports[a19_0xd47d65(0xe1)]=extractUser;const extractCurrentTrainingStatus=_0x5460ad=>{const _0x561a2e=a19_0xd47d65;var _0x505bcd,_0x244359,_0x327f9b;const _0x2cad67=Object['values']((_0x505bcd=_0x5460ad===null||_0x5460ad===void 0x0?void 0x0:_0x5460ad[_0x561a2e(0x79)])!==null&&_0x505bcd!==void 0x0?_0x505bcd:{});return(_0x327f9b=(_0x244359=_0x2cad67[_0x561a2e(0x93)](_0x4d37d2=>_0x4d37d2[_0x561a2e(0x82)]))!==null&&_0x244359!==void 0x0?_0x244359:_0x2cad67[0x0])!==null&&_0x327f9b!==void 0x0?_0x327f9b:null;};exports['extractCurrentTrainingStatus']=extractCurrentTrainingStatus;const extractLoadBalance=_0x1a29f2=>{const _0x1c8c5b=a19_0xd47d65;var _0x4a4345,_0x5169ed,_0x52c7da;const _0x5617ca=Object['values']((_0x4a4345=_0x1a29f2===null||_0x1a29f2===void 0x0?void 0x0:_0x1a29f2[_0x1c8c5b(0xff)])!==null&&_0x4a4345!==void 0x0?_0x4a4345:{});return(_0x52c7da=(_0x5169ed=_0x5617ca['find'](_0x346267=>_0x346267[_0x1c8c5b(0x82)]))!==null&&_0x5169ed!==void 0x0?_0x5169ed:_0x5617ca[0x0])!==null&&_0x52c7da!==void 0x0?_0x52c7da:null;};exports['extractLoadBalance']=extractLoadBalance;const extractWeeklyTrainingStatus=_0x504d2e=>{const _0x41d761=a19_0xd47d65;var _0x15ec4a;return Object[_0x41d761(0xec)]((_0x15ec4a=_0x504d2e===null||_0x504d2e===void 0x0?void 0x0:_0x504d2e[_0x41d761(0x6e)])!==null&&_0x15ec4a!==void 0x0?_0x15ec4a:{})['flat']()[_0x41d761(0x7e)](_0x1bcc7a=>_0x1bcc7a[_0x41d761(0x82)])['sort']((_0x5905f8,_0x1f6b26)=>_0x5905f8[_0x41d761(0x9b)][_0x41d761(0x6f)](_0x1f6b26[_0x41d761(0x9b)]));};exports[a19_0xd47d65(0x96)]=extractWeeklyTrainingStatus;const round=(_0x595b73,_0x36670e=0x0)=>{if(_0x595b73===null||_0x595b73===undefined||Number['isNaN'](_0x595b73))return null;const _0x1c901a=0xa**_0x36670e;return Math['round'](_0x595b73*_0x1c901a)/_0x1c901a;};exports[a19_0xd47d65(0x126)]=round;const lowerSnake=_0x32cc7e=>_0x32cc7e?_0x32cc7e[a19_0xd47d65(0x8d)]():null;exports[a19_0xd47d65(0xf9)]=lowerSnake;const normalizeGender=_0x56b515=>{const _0x266b55=a19_0xd47d65;if(!_0x56b515)return null;const _0x1b54e3=_0x56b515[_0x266b55(0x11e)]();if(_0x1b54e3['startsWith']('M'))return'M';if(_0x1b54e3[_0x266b55(0xd8)]('F'))return'F';return _0x56b515;};exports[a19_0xd47d65(0x11c)]=normalizeGender;const normalizeSport=_0x370571=>_0x370571?_0x370571[a19_0xd47d65(0x8d)]():null;exports[a19_0xd47d65(0xf3)]=normalizeSport;const normalizeStatus=(_0x2ab573,_0x1fbe38)=>{const _0x378fc3=a19_0xd47d65;var _0x375d38;if(_0x1fbe38)return _0x1fbe38[_0x378fc3(0xf4)]('_')[0x0][_0x378fc3(0x8d)]();const _0x5b4a7c={0x2:_0x378fc3(0xcf),0x3:_0x378fc3(0xb8),0x4:_0x378fc3(0xb1),0x5:_0x378fc3(0x95),0x6:_0x378fc3(0x101),0x7:'productive',0x8:'strained'};return typeof _0x2ab573===_0x378fc3(0x112)?(_0x375d38=_0x5b4a7c[_0x2ab573])!==null&&_0x375d38!==void 0x0?_0x375d38:null:null;};exports[a19_0xd47d65(0xcd)]=normalizeStatus;function a19_0x1a4d(){const _0x57ac93=['medium','caution','hasSportStats','weight','reportData','localeCompare','sleepTrend','rem_low','/km','bodyBatteryTrend','body_battery_high','skin_temp','improving_low_point','has','flat','latestTrainingStatusData','durationMin','buildReadiness','avg','low_point_watch','filter','_last_night_short','../../common/DateUtils','avgStress','primaryTrainingDevice','userInfo','lastNightAvg','acwr','date','hrv','sleep','normalizeDate','29DETfEt','duration','metricStatus','toLowerCase','max','sports','spo2','isMultiSport','metricValue','find','minimum','recovery','extractWeeklyTrainingStatus','moderate_recharge','setDate','good_7d_sleep_average','partial','calendarDate','_readiness','remMin','from','endDate','compactTrainingStatuses','reduce','status','current_','multiSport','sport','functionalThresholdPower','addDays','sleep_stress_low','extractCurrentTrainingStatus','activityClass','2942280oEqOZZ','stats','statusDaysFromHrv','poor','low_aerobic_high','high_chronic_load','maintaining','good_overall','acute','_acwr','today','hrv_balanced','compactPowerCurve','overreaching','trainingStatusFeedbackPhrase','strong_run_bike_vo2','lactateThresholdHeartRate','sort','getDate','floor','age','1242584fzSMLm','_last_night_','average','no_data','latestActivityStats','toGarminDateString','countOfActivities','running','avgScore','112wDwyfH','thresholdPaceFromSpeed','hrv_','poor_overall','normalizeStatus','highAerobic','unproductive','buildAiHints','entries','genderType','loadBalanceTuple','__esModule','high','1528173TCdqpF','numericValues','startsWith','height','slice','dailyTrainingLoadChronic','quality','lowAerobic','1546816tQhsDX','loadBalance','unknown','extractUser','cautionSignals','all','recentDays','resting_hr_low','weeklyTrainingLoad','resting_hr','buildUnavailableMetrics','maximum','avgHr','1541301ZmcEDJ','values','compactLower','buildIncludedMetrics','overview_excludes_swimming_by_source','compactRaceTime','toMinutes','1165440JerOgQ','normalizeSport','split','normalizeTrend','capture','isArray','availability','lowerSnake','high_aerobic_low','defineProperty','body_battery','getRange','bodyBattery','metricsTrainingLoadBalanceDTOMap','min','peaking','readiness','sum','last_night_sleep_short','balanced','state','vo2MaxCycling','chronic','declining','buildYearStats','map','stable','low','distance','push','gender','length','number','recent7d','acuteTrainingLoadDTO','biometricProfile','includes','buildTrendLoad','startDate','fair','15702SJQvNJ','get','normalizeGender','cycling','toUpperCase','hrvTrend','acwrStatus','available','vo2Max','moderate_good','buildWellnessAiHints','needMin','round','improving','recovery_data_complete'];a19_0x1a4d=function(){return _0x57ac93;};return a19_0x1a4d();}const normalizeTrend=_0x1bdd76=>{const _0x46166e=a19_0xd47d65;var _0xf0d6e1;if(typeof _0x1bdd76==='string')return _0x1bdd76[_0x46166e(0x8d)]();const _0x1ab62b={0x1:'declining',0x2:'stable',0x3:_0x46166e(0x127)};return typeof _0x1bdd76===_0x46166e(0x112)?(_0xf0d6e1=_0x1ab62b[_0x1bdd76])!==null&&_0xf0d6e1!==void 0x0?_0xf0d6e1:null:null;};exports[a19_0xd47d65(0xf5)]=normalizeTrend;const metricValue=(_0x30a6f3,_0x53c1d6,_0x2622ba)=>{const _0x38ca12=a19_0xd47d65;var _0x4533eb,_0xc85ba5;const _0xfeea48=(_0xc85ba5=(_0x4533eb=_0x30a6f3===null||_0x30a6f3===void 0x0?void 0x0:_0x30a6f3[_0x38ca12(0xac)])===null||_0x4533eb===void 0x0?void 0x0:_0x4533eb[_0x38ca12(0xe3)])===null||_0xc85ba5===void 0x0?void 0x0:_0xc85ba5[_0x53c1d6],_0x18e973=_0xfeea48===null||_0xfeea48===void 0x0?void 0x0:_0xfeea48[_0x2622ba];return typeof _0x18e973===_0x38ca12(0x112)?_0x18e973:null;};exports[a19_0xd47d65(0x92)]=metricValue;const buildYearStats=_0x2043a1=>{const _0x135c5b=a19_0xd47d65;var _0x51e683,_0x2b6fe8,_0x3c98ce,_0x28cc6a,_0x42e7b7;return{'activities':(_0x2b6fe8=(_0x51e683=_0x2043a1===null||_0x2043a1===void 0x0?void 0x0:_0x2043a1[_0x135c5b(0xc6)])!==null&&_0x51e683!==void 0x0?_0x51e683:(0x0,exports['metricValue'])(_0x2043a1,_0x135c5b(0x8b),'count'))!==null&&_0x2b6fe8!==void 0x0?_0x2b6fe8:0x0,'distanceKm':(0x0,exports[_0x135c5b(0x126)])(((_0x3c98ce=(0x0,exports[_0x135c5b(0x92)])(_0x2043a1,_0x135c5b(0x10e),_0x135c5b(0x103)))!==null&&_0x3c98ce!==void 0x0?_0x3c98ce:0x0)/0x186a0),'durationH':(0x0,exports[_0x135c5b(0x126)])(((_0x28cc6a=(0x0,exports[_0x135c5b(0x92)])(_0x2043a1,'duration',_0x135c5b(0x103)))!==null&&_0x28cc6a!==void 0x0?_0x28cc6a:0x0)/0x36ee80),'elevGainM':(0x0,exports[_0x135c5b(0x126)])(((_0x42e7b7=(0x0,exports['metricValue'])(_0x2043a1,'elevationGain',_0x135c5b(0x103)))!==null&&_0x42e7b7!==void 0x0?_0x42e7b7:0x0)/0x64),'avgHr':(0x0,exports[_0x135c5b(0x126)])((0x0,exports[_0x135c5b(0x92)])(_0x2043a1,_0x135c5b(0xea),_0x135c5b(0x7c))),'maxHr':(0x0,exports[_0x135c5b(0x126)])((0x0,exports[_0x135c5b(0x92)])(_0x2043a1,'maxHr',_0x135c5b(0x8e)))};};exports['buildYearStats']=buildYearStats;const hasSportStats=_0x597510=>{const _0x266340=a19_0xd47d65;var _0x3a960c,_0x5bc9bb;return((_0x3a960c=_0x597510===null||_0x597510===void 0x0?void 0x0:_0x597510['countOfActivities'])!==null&&_0x3a960c!==void 0x0?_0x3a960c:0x0)>0x0||((_0x5bc9bb=(0x0,exports[_0x266340(0x92)])(_0x597510,_0x266340(0x8b),_0x266340(0x103)))!==null&&_0x5bc9bb!==void 0x0?_0x5bc9bb:0x0)>0x0;};exports[a19_0xd47d65(0x6c)]=hasSportStats;const compactRaceTime=_0x570bac=>{const _0x5d2cb6=a19_0xd47d65;if(!_0x570bac)return null;if(_0x570bac['startsWith']('00:'))return _0x570bac['slice'](0x3);if(_0x570bac[_0x5d2cb6(0xd8)]('0'))return _0x570bac['slice'](0x1);return _0x570bac;};exports[a19_0xd47d65(0xf0)]=compactRaceTime;const thresholdPaceFromSpeed=_0x4c02a6=>{const _0x30cb8e=a19_0xd47d65;if(!_0x4c02a6)return null;const _0x5be371=_0x4c02a6*0xa,_0x2d7a90=0x3e8/_0x5be371,_0x365988=Math[_0x30cb8e(0xbe)](_0x2d7a90/0x3c),_0x26c35d=Math[_0x30cb8e(0x126)](_0x2d7a90%0x3c);return(_0x26c35d===0x3c?_0x365988+0x1:_0x365988)+':'+(_0x26c35d===0x3c?0x0:_0x26c35d)['toString']()['padStart'](0x2,'0')+_0x30cb8e(0x72);};exports[a19_0xd47d65(0xca)]=thresholdPaceFromSpeed;const metricStatus=(_0x18ace7,_0x1672f5,_0x1138d6)=>{const _0x39635f=a19_0xd47d65;if(_0x18ace7===null||_0x18ace7===undefined)return null;if(_0x1672f5!==null&&_0x1672f5!==undefined&&_0x18ace7<_0x1672f5)return _0x39635f(0x10d);if(_0x1138d6!==null&&_0x1138d6!==undefined&&_0x18ace7>_0x1138d6)return _0x39635f(0xd5);return'ok';};exports['metricStatus']=metricStatus;const compactTrainingStatuses=_0x512c72=>{const _0x4089bf=a19_0xd47d65;var _0x1311bc;const _0xd5a678=new Map(),_0x5d3009=Object[_0x4089bf(0xec)]((_0x1311bc=_0x512c72===null||_0x512c72===void 0x0?void 0x0:_0x512c72[_0x4089bf(0x6e)])!==null&&_0x1311bc!==void 0x0?_0x1311bc:{})[_0x4089bf(0x78)]()[_0x4089bf(0xbc)]((_0x39e4a1,_0x3c8074)=>_0x39e4a1[_0x4089bf(0x9b)][_0x4089bf(0x6f)](_0x3c8074['calendarDate']));for(const _0x40f9d5 of _0x5d3009){const _0x4829e5=_0xd5a678[_0x4089bf(0x11b)](_0x40f9d5[_0x4089bf(0x9b)]);(!_0x4829e5||_0x40f9d5[_0x4089bf(0x82)])&&_0xd5a678['set'](_0x40f9d5[_0x4089bf(0x9b)],_0x40f9d5);}return Array[_0x4089bf(0x9e)](_0xd5a678[_0x4089bf(0xec)]())[_0x4089bf(0xbc)]((_0x79ad52,_0x38ff88)=>_0x79ad52[_0x4089bf(0x9b)][_0x4089bf(0x6f)](_0x38ff88['calendarDate']));};exports[a19_0xd47d65(0xa0)]=compactTrainingStatuses;const countStatusDays=_0x4c723b=>{const _0x8b500b=a19_0xd47d65;var _0x4e7269;const _0x243d68={'productive':0x0,'maintaining':0x0,'recovery':0x0,'peaking':0x0,'unproductive':0x0,'overreaching':0x0};for(const _0x5f2f3b of _0x4c723b){const _0x37b47b=(0x0,exports['normalizeStatus'])(_0x5f2f3b['trainingStatus'],_0x5f2f3b[_0x8b500b(0xb9)]);_0x37b47b&&(_0x243d68[_0x37b47b]=((_0x4e7269=_0x243d68[_0x37b47b])!==null&&_0x4e7269!==void 0x0?_0x4e7269:0x0)+0x1);}return _0x243d68;};exports['countStatusDays']=countStatusDays;const buildTrendLoad=_0x51f66f=>{const _0x8802ef=a19_0xd47d65;var _0x14db04,_0x410f11,_0x30894d,_0x2be209;const _0x19069c=_0x51f66f[_0x8802ef(0x10b)](_0x5496f7=>{const _0x5483f3=_0x8802ef;var _0x54e992,_0x24f928,_0x644b71,_0x48d0dd,_0x9b4294;const _0x2c168e=_0x5496f7[_0x5483f3(0x114)];return{'chronic':(_0x24f928=(_0x54e992=_0x2c168e===null||_0x2c168e===void 0x0?void 0x0:_0x2c168e[_0x5483f3(0xdb)])!==null&&_0x54e992!==void 0x0?_0x54e992:_0x5496f7[_0x5483f3(0xe6)])!==null&&_0x24f928!==void 0x0?_0x24f928:null,'acute':(_0x48d0dd=(_0x644b71=_0x2c168e===null||_0x2c168e===void 0x0?void 0x0:_0x2c168e['dailyTrainingLoadAcute'])!==null&&_0x644b71!==void 0x0?_0x644b71:_0x5496f7['weeklyTrainingLoad'])!==null&&_0x48d0dd!==void 0x0?_0x48d0dd:null,'acwr':(_0x9b4294=_0x2c168e===null||_0x2c168e===void 0x0?void 0x0:_0x2c168e['dailyAcuteChronicWorkloadRatio'])!==null&&_0x9b4294!==void 0x0?_0x9b4294:null};})[_0x8802ef(0x7e)](_0x33564b=>_0x33564b[_0x8802ef(0x108)]!==null||_0x33564b['acute']!==null||_0x33564b[_0x8802ef(0x85)]!==null);return{'chronicStart':(0x0,exports[_0x8802ef(0x126)])((_0x410f11=(_0x14db04=_0x19069c[0x0])===null||_0x14db04===void 0x0?void 0x0:_0x14db04[_0x8802ef(0x108)])!==null&&_0x410f11!==void 0x0?_0x410f11:null),'chronicEnd':(0x0,exports['round'])((_0x2be209=(_0x30894d=_0x19069c[_0x19069c[_0x8802ef(0x111)]-0x1])===null||_0x30894d===void 0x0?void 0x0:_0x30894d[_0x8802ef(0x108)])!==null&&_0x2be209!==void 0x0?_0x2be209:null),'maxAcute':(0x0,exports['round'])(_0x19069c[_0x8802ef(0xa1)]((_0x4e0133,_0x4c261d)=>_0x4c261d[_0x8802ef(0xb3)]===null?_0x4e0133:_0x4e0133===null?_0x4c261d[_0x8802ef(0xb3)]:Math[_0x8802ef(0x8e)](_0x4e0133,_0x4c261d[_0x8802ef(0xb3)]),null)),'maxAcwr':(0x0,exports['round'])(_0x19069c[_0x8802ef(0xa1)]((_0x36ecf8,_0x592a31)=>_0x592a31['acwr']===null?_0x36ecf8:_0x36ecf8===null?_0x592a31[_0x8802ef(0x85)]:Math[_0x8802ef(0x8e)](_0x36ecf8,_0x592a31[_0x8802ef(0x85)]),null),0x1)};};exports['buildTrendLoad']=buildTrendLoad;const buildAiHints=_0x5557c9=>{const _0x4bedc0=a19_0xd47d65;var _0x36de8e,_0x213d85,_0x128f54;const _0x56a6d2=[_0x4bedc0(0xef)];if(_0x5557c9[_0x4bedc0(0xa4)][_0x4bedc0(0x91)])_0x56a6d2['push']('triathlon_candidate');((_0x36de8e=_0x5557c9[_0x4bedc0(0x8f)][_0x4bedc0(0xc7)][_0x4bedc0(0x122)])!==null&&_0x36de8e!==void 0x0?_0x36de8e:0x0)>=0x32&&((_0x213d85=_0x5557c9['sports'][_0x4bedc0(0x11d)]['vo2Max'])!==null&&_0x213d85!==void 0x0?_0x213d85:0x0)>=0x32&&_0x56a6d2[_0x4bedc0(0x10f)](_0x4bedc0(0xba));if(((_0x128f54=_0x5557c9[_0x4bedc0(0x106)]['chronicLoad'])!==null&&_0x128f54!==void 0x0?_0x128f54:0x0)>=0x384)_0x56a6d2[_0x4bedc0(0x10f)](_0x4bedc0(0xb0));return _0x5557c9[_0x4bedc0(0xdf)][_0x4bedc0(0xdd)][0x3]===_0x4bedc0(0xd5)&&_0x56a6d2[_0x4bedc0(0x10f)](_0x4bedc0(0xaf)),_0x5557c9[_0x4bedc0(0xdf)][_0x4bedc0(0xce)][0x3]===_0x4bedc0(0x10d)&&_0x56a6d2[_0x4bedc0(0x10f)](_0x4bedc0(0xfa)),_0x5557c9[_0x4bedc0(0x106)][_0x4bedc0(0xa2)]&&_0x5557c9[_0x4bedc0(0x106)][_0x4bedc0(0x120)]&&_0x56a6d2[_0x4bedc0(0x10f)](_0x4bedc0(0xa3)+_0x5557c9[_0x4bedc0(0x106)][_0x4bedc0(0xa2)]+'_'+_0x5557c9['state']['acwrStatus']+_0x4bedc0(0xb4)),_0x56a6d2;};exports[a19_0xd47d65(0xd0)]=buildAiHints;const findPowerToWeight=(_0x1a62bf,_0x1b6dbf)=>{var _0x47e6db;return(_0x47e6db=_0x1a62bf===null||_0x1a62bf===void 0x0?void 0x0:_0x1a62bf['find'](_0xeeddf2=>{const _0x51f278=a19_0x1839;var _0x321a83;return((_0x321a83=_0xeeddf2[_0x51f278(0xa5)])===null||_0x321a83===void 0x0?void 0x0:_0x321a83['toLowerCase']())===_0x1b6dbf[_0x51f278(0x8d)]();}))!==null&&_0x47e6db!==void 0x0?_0x47e6db:null;};exports['findPowerToWeight']=findPowerToWeight;const loadBalanceTuple=(_0xf35a2,_0x10f509,_0xc525d3)=>[(0x0,exports[a19_0xd47d65(0x126)])(_0xf35a2),(0x0,exports[a19_0xd47d65(0x126)])(_0x10f509),(0x0,exports['round'])(_0xc525d3),(0x0,exports[a19_0xd47d65(0x8c)])(_0xf35a2,_0x10f509,_0xc525d3)];exports[a19_0xd47d65(0xd3)]=loadBalanceTuple;const toMinutes=_0x1caac7=>typeof _0x1caac7===a19_0xd47d65(0x112)?(0x0,exports[a19_0xd47d65(0x126)])(_0x1caac7/0x3c):null;exports[a19_0xd47d65(0xf1)]=toMinutes;const compactLower=_0xe1fe92=>_0xe1fe92?_0xe1fe92['toLowerCase']():null;exports[a19_0xd47d65(0xed)]=compactLower;const numericValues=_0x333681=>_0x333681['filter'](_0x427386=>typeof _0x427386===a19_0xd47d65(0x112));exports[a19_0xd47d65(0xd7)]=numericValues;const average=(_0x38aaed,_0x3d0a9e=0x0)=>{const _0x5627fd=a19_0xd47d65,_0x80608b=(0x0,exports['numericValues'])(_0x38aaed);if(_0x80608b['length']===0x0)return null;return(0x0,exports[_0x5627fd(0x126)])(_0x80608b['reduce']((_0x2d30fb,_0x5e08b7)=>_0x2d30fb+_0x5e08b7,0x0)/_0x80608b[_0x5627fd(0x111)],_0x3d0a9e);};exports['average']=average;const minimum=_0x3bece2=>{const _0x47c342=a19_0xd47d65,_0x3fa89c=(0x0,exports[_0x47c342(0xd7)])(_0x3bece2);return _0x3fa89c[_0x47c342(0x111)]>0x0?Math[_0x47c342(0x100)](..._0x3fa89c):null;};exports[a19_0xd47d65(0x94)]=minimum;const maximum=_0x1171f0=>{const _0x30115a=a19_0xd47d65,_0x4f0764=(0x0,exports[_0x30115a(0xd7)])(_0x1171f0);return _0x4f0764['length']>0x0?Math['max'](..._0x4f0764):null;};function a19_0x1839(_0x1b1ffa,_0x4d33d1){_0x1b1ffa=_0x1b1ffa-0x6a;const _0x1a4d4b=a19_0x1a4d();let _0x183909=_0x1a4d4b[_0x1b1ffa];return _0x183909;}exports[a19_0xd47d65(0xe9)]=maximum;const availability=(_0x358309,_0x5b22c9)=>{const _0x4e9b24=a19_0xd47d65;if(_0x358309&&_0x5b22c9)return _0x4e9b24(0x121);if(_0x358309)return _0x4e9b24(0x9a);return _0x4e9b24(0xc3);};exports[a19_0xd47d65(0xf8)]=availability;const buildUnavailableMetrics=_0x43f168=>{const _0x3867f6=a19_0xd47d65,_0x53b069={'hrv':_0x3867f6(0x87),'sleep':_0x3867f6(0x88),'bodyBattery':_0x3867f6(0xfc),'restingHeartRate':_0x3867f6(0xe7),'respiration':'respiration','spo2':_0x3867f6(0x90),'skinTemp':_0x3867f6(0x75)};return Object[_0x3867f6(0xd1)](_0x43f168)[_0x3867f6(0x7e)](([,_0x9cb475])=>_0x9cb475!==_0x3867f6(0x121))['map'](([_0x4e953b])=>{var _0x44c58d;return(_0x44c58d=_0x53b069[_0x4e953b])!==null&&_0x44c58d!==void 0x0?_0x44c58d:_0x4e953b;});};exports[a19_0xd47d65(0xe8)]=buildUnavailableMetrics;const buildIncludedMetrics=_0x23177c=>{const _0x2e7c20=a19_0xd47d65,_0x59463b={'hrv':_0x2e7c20(0x87),'sleep':'sleep','bodyBattery':_0x2e7c20(0xfc),'restingHeartRate':_0x2e7c20(0xe7),'respiration':'respiration'};return Object['entries'](_0x59463b)['filter'](([_0x4eda94])=>_0x23177c[_0x4eda94]===_0x2e7c20(0x121))['map'](([,_0x1b0bc6])=>_0x1b0bc6);};exports[a19_0xd47d65(0xee)]=buildIncludedMetrics;const statusDaysFromHrv=_0x4d80ae=>{const _0x146ddb=a19_0xd47d65;var _0x52eb41,_0x3ee73f;const _0x126fcc={};for(const _0x35a783 of _0x4d80ae){const _0x44299d=(_0x52eb41=(0x0,exports[_0x146ddb(0xed)])(_0x35a783[_0x146ddb(0xa2)]))!==null&&_0x52eb41!==void 0x0?_0x52eb41:_0x146ddb(0xe0);_0x126fcc[_0x44299d]=((_0x3ee73f=_0x126fcc[_0x44299d])!==null&&_0x3ee73f!==void 0x0?_0x3ee73f:0x0)+0x1;}return _0x126fcc;};exports[a19_0xd47d65(0xad)]=statusDaysFromHrv;const hrvTrend=_0x3bbd76=>{const _0x57a520=a19_0xd47d65;var _0x268e9a,_0x51fcbd,_0x40d9ed,_0x9cdf5d;if(_0x3bbd76[_0x57a520(0x111)]===0x0)return null;const _0x58e8e6=(0x0,exports['statusDaysFromHrv'])(_0x3bbd76),_0x137fb5=(_0x51fcbd=(_0x268e9a=Object[_0x57a520(0xd1)](_0x58e8e6)[_0x57a520(0xbc)]((_0x51844d,_0x19b734)=>_0x19b734[0x1]-_0x51844d[0x1])[0x0])===null||_0x268e9a===void 0x0?void 0x0:_0x268e9a[0x0])!==null&&_0x51fcbd!==void 0x0?_0x51fcbd:'unknown',_0x45ff63=(_0x40d9ed=_0x3bbd76[0x0])===null||_0x40d9ed===void 0x0?void 0x0:_0x40d9ed['lastNightAvg'],_0xc03522=(_0x9cdf5d=_0x3bbd76[_0x3bbd76['length']-0x1])===null||_0x9cdf5d===void 0x0?void 0x0:_0x9cdf5d[_0x57a520(0x84)],_0x42be0c=typeof _0x45ff63===_0x57a520(0x112)&&typeof _0xc03522==='number'?_0xc03522-_0x45ff63>=0x4?_0x57a520(0x127):_0x45ff63-_0xc03522>=0x4?_0x57a520(0x109):_0x57a520(0x10c):_0x57a520(0x10c);return _0x42be0c+'_'+_0x137fb5;};exports[a19_0xd47d65(0x11f)]=hrvTrend;const sleepTrend=(_0x247e32,_0x4f3d02,_0x364cbd,_0x2d0a5b)=>{const _0x3b1e1c=a19_0xd47d65,_0x32b99b=_0x247e32===null?null:_0x247e32>=0x50?_0x3b1e1c(0xb2):_0x247e32>=0x46?'fair_overall':_0x3b1e1c(0xcc);if(!_0x32b99b)return null;const _0x1e67c2=_0x4f3d02!==null&&_0x364cbd!==null&&_0x4f3d02<_0x364cbd*0.9;if(_0x1e67c2)return _0x32b99b+_0x3b1e1c(0x7f);if(_0x2d0a5b&&[_0x3b1e1c(0x119),'poor'][_0x3b1e1c(0x116)](_0x2d0a5b))return _0x32b99b+_0x3b1e1c(0xc1)+_0x2d0a5b;return _0x32b99b;};exports[a19_0xd47d65(0x70)]=sleepTrend;const bodyBatteryTrend=(_0x2d143f,_0x3d0e38,_0x478f2a)=>{const _0x472a96=a19_0xd47d65;if(_0x2d143f===null&&_0x3d0e38===null)return null;const _0x146039=_0x2d143f!==null&&_0x2d143f>=0x55?'high_recharge':_0x472a96(0x97),_0x35b0c6=_0x478f2a!==null&&_0x3d0e38!==null&&_0x478f2a>_0x3d0e38?_0x472a96(0x76):_0x472a96(0x7d);return _0x146039+'_'+_0x35b0c6;};exports[a19_0xd47d65(0x73)]=bodyBatteryTrend;const buildReadiness=_0x43e839=>{const _0x502dec=a19_0xd47d65;var _0x234b2f;const _0x2981d9=[],_0x1b4b95=[];if(_0x43e839[_0x502dec(0xb5)][_0x502dec(0x87)][_0x502dec(0xa2)]===_0x502dec(0x105))_0x2981d9[_0x502dec(0x10f)](_0x502dec(0xb6));else _0x43e839[_0x502dec(0xb5)]['hrv']['status']&&_0x1b4b95[_0x502dec(0x10f)](_0x502dec(0xcb)+_0x43e839[_0x502dec(0xb5)][_0x502dec(0x87)][_0x502dec(0xa2)]);((_0x234b2f=_0x43e839['today'][_0x502dec(0xfe)]['high'])!==null&&_0x234b2f!==void 0x0?_0x234b2f:0x0)>=0x50&&_0x2981d9[_0x502dec(0x10f)](_0x502dec(0x74));_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)]['restingHr']!==null&&_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)]['restingHr']<=0x32&&_0x2981d9[_0x502dec(0x10f)](_0x502dec(0xe5));_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x81)]!==null&&_0x43e839['today'][_0x502dec(0x88)][_0x502dec(0x81)]<=0xf&&_0x2981d9[_0x502dec(0x10f)](_0x502dec(0xa8));_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x7a)]!==null&&_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x125)]!==null&&_0x43e839['today']['sleep'][_0x502dec(0x7a)]<_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x125)]*0.9&&_0x1b4b95[_0x502dec(0x10f)](_0x502dec(0x104));_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0xdc)]&&[_0x502dec(0x119),_0x502dec(0xae)][_0x502dec(0x116)](_0x43e839['today'][_0x502dec(0x88)][_0x502dec(0xdc)])&&_0x1b4b95[_0x502dec(0x10f)]('sleep_score_'+_0x43e839['today']['sleep'][_0x502dec(0xdc)]);_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x9d)]!==null&&_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x7a)]!==null&&_0x43e839[_0x502dec(0xb5)]['sleep'][_0x502dec(0x9d)]<_0x43e839[_0x502dec(0xb5)][_0x502dec(0x88)][_0x502dec(0x7a)]*0.18&&_0x1b4b95[_0x502dec(0x10f)](_0x502dec(0x71));const _0x5e7156=_0x43e839[_0x502dec(0xf8)][_0x502dec(0x87)]==='available'&&_0x43e839[_0x502dec(0xf8)][_0x502dec(0x88)]===_0x502dec(0x121)&&_0x43e839['availability'][_0x502dec(0xfe)]===_0x502dec(0x121),_0x21cd29=_0x5e7156?_0x502dec(0xd5):_0x43e839[_0x502dec(0xf8)][_0x502dec(0x88)]!==_0x502dec(0xc3)||_0x43e839['availability'][_0x502dec(0x87)]!=='no_data'?_0x502dec(0x6a):'low',_0x3adf4f=_0x1b4b95[_0x502dec(0x111)]===0x0&&_0x2981d9[_0x502dec(0x111)]>=0x3?'good':_0x2981d9[_0x502dec(0x111)]>=_0x1b4b95[_0x502dec(0x111)]?_0x502dec(0x123):_0x502dec(0x6b);return{'status':_0x3adf4f,'confidence':_0x21cd29,'positiveSignals':_0x2981d9,'cautionSignals':_0x1b4b95};};exports[a19_0xd47d65(0x7b)]=buildReadiness;const buildWellnessAiHints=_0x1ea3ed=>{const _0x2a95f3=a19_0xd47d65;var _0x49644a,_0x2248c0;const _0x4d2319=[];_0x1ea3ed[_0x2a95f3(0xf8)][_0x2a95f3(0x87)]===_0x2a95f3(0x121)&&_0x1ea3ed['availability'][_0x2a95f3(0x88)]===_0x2a95f3(0x121)&&_0x1ea3ed[_0x2a95f3(0xf8)][_0x2a95f3(0xfe)]===_0x2a95f3(0x121)?_0x4d2319['push'](_0x2a95f3(0x128)):_0x4d2319['push']('recovery_data_partial');if(_0x1ea3ed[_0x2a95f3(0xb5)][_0x2a95f3(0x87)][_0x2a95f3(0xa2)])_0x4d2319[_0x2a95f3(0x10f)](_0x2a95f3(0xcb)+_0x1ea3ed[_0x2a95f3(0xb5)][_0x2a95f3(0x87)][_0x2a95f3(0xa2)]);((_0x49644a=_0x1ea3ed[_0x2a95f3(0x113)][_0x2a95f3(0x88)][_0x2a95f3(0xc8)])!==null&&_0x49644a!==void 0x0?_0x49644a:0x0)>=0x50&&_0x4d2319['push'](_0x2a95f3(0x99));for(const _0x3661f6 of _0x1ea3ed[_0x2a95f3(0x102)][_0x2a95f3(0xe2)]){_0x4d2319[_0x2a95f3(0x10f)](_0x3661f6);}return((_0x2248c0=_0x1ea3ed['today'][_0x2a95f3(0xfe)]['high'])!==null&&_0x2248c0!==void 0x0?_0x2248c0:0x0)>=0x50&&_0x4d2319['push'](_0x2a95f3(0x74)),_0x4d2319['push'](_0x1ea3ed['readiness'][_0x2a95f3(0xa2)]+_0x2a95f3(0x9c)),Array[_0x2a95f3(0x9e)](new Set(_0x4d2319));};exports[a19_0xd47d65(0x124)]=buildWellnessAiHints;
@@ -1 +1 @@
1
- 'use strict';function a20_0xdd21(){const _0xe80c48=['pop','thresholdPaceFromSpeed','max.rep.weight','swimming','306387nvPZep','getTrainingLoadBalance','2316BkVzZo','compactRaceTime','set','monthlyLoadAnaerobicTargetMin','vo2Max','weeklyTrainingLoad','deadlift','slice','barbellCurl','longestSwim','value','dbCurl','triathlon','monthlyLoadAnaerobicTargetMax','getPersonalInfo','100mSwim','dailyAcuteChronicWorkloadRatio','normalizeStatus','1500mSwim','status','endDateString','__esModule','time10KFormatted','20lEyUUE','acuteTrainingLoadDTO','time5KFormatted','all','profileType','countStatusDays','speed','aerobicEndurance','dbDeadlift','squat','personalInfo','500ydSwim','dbSquat','buildYearStats','3jVStxr','latestActivityStats','startDateString','not_supported_by_source','dailyTrainingLoadAcute','streak','trendDays','cyclingActivityStats','fullMarathon','1000ydSwim','getRange','sport','avgBikeCadence','anaerobicCapacity','lactateThresholdHeartRate','lowerSnake','1mile','cycling','round','getRacePredictionsMonthly','avgRunCadence','powerToWeight','endDate','loadTunnelMax','floor','dbRow','CYCLING','avg','isStale','fitnessTrendSport','bestWeek','335374EnLKkl','176477NXONTr','800300ZGSwzo','includes','ACCEPTED','dailyTrainingLoadChronic','108828iSfowE','extractLoadBalance','swimming_not_available_in_this_overview_source','monthlyLoadAerobicHighTargetMin','24262YBZzui','weight','buildTrainingOverview','hasSportStats','cyclingMaxMet','aerobicCapacity','metricValue','running','extractCurrentTrainingStatus','10k','lactateThreshold','runningActivityStats','aiHints','age','getWeeklyTrainingStatus','monthlyLoadAerobicLow','overheadPress','RUNNING','extractUser','findPowerToWeight','max.power','toLowerCase','hearRate','capture','functionalThresholdPower','timeHalfMarathonFormatted','localeCompare','monthlyLoadAerobicLowTargetMax','getTrainingStatus','vo2MaxCycling','normalizeGender','compactTrainingStatuses','avgPower','getCyclingAbility','getPersonalRecordTypes','280sfiuYa','defineProperty','activityType','sort','cyclingAbility','40k','toString','halfMarathon','activityStartDateTimeLocalFormatted','height','buildAiHints','1650ydSwim','buildTrendLoad','training_overview_v1','monthlyLoadAerobicLowTargetMin','latestPowerToWeight','getMaxMet','./helpers','row','find','calendarDate','gender','training_overview','getActivityStats','avgGroundContactTime','trainingStatus','farthestRide','key','currentStreak','normalizeSport','not_provided_by_source_endpoint','weeklyTrainingStatus','trainingBalanceFeedbackPhrase','1000mSwim','personalRecords','loadBalanceTuple','catch','test','getRunningLactateThreshold','benchPress','monthlyLoadAnaerobic','padStart','avgVerticalOscillation','steps','length','reverse'];a20_0xdd21=function(){return _0xe80c48;};return a20_0xdd21();}const a20_0x886239=a20_0x3caf;(function(_0x3a811c,_0x13652c){const _0x5f3d45=a20_0x3caf,_0x155bcf=_0x3a811c();while(!![]){try{const _0x53dadb=parseInt(_0x5f3d45(0x165))/0x1+-parseInt(_0x5f3d45(0x164))/0x2*(parseInt(_0x5f3d45(0x145))/0x3)+parseInt(_0x5f3d45(0x16a))/0x4+parseInt(_0x5f3d45(0x166))/0x5+-parseInt(_0x5f3d45(0x120))/0x6+-parseInt(_0x5f3d45(0x16e))/0x7*(parseInt(_0x5f3d45(0xec))/0x8)+parseInt(_0x5f3d45(0x11e))/0x9*(parseInt(_0x5f3d45(0x137))/0xa);if(_0x53dadb===_0x13652c)break;else _0x155bcf['push'](_0x155bcf['shift']());}catch(_0x529e27){_0x155bcf['push'](_0x155bcf['shift']());}}}(a20_0xdd21,0x22c6f));function a20_0x3caf(_0x49c731,_0x4fd8ef){_0x49c731=_0x49c731-0xdc;const _0xdd21b7=a20_0xdd21();let _0x3caf11=_0xdd21b7[_0x49c731];return _0x3caf11;}Object[a20_0x886239(0xed)](exports,a20_0x886239(0x135),{'value':!![]}),exports[a20_0x886239(0x170)]=void 0x0;const helpers_1=require(a20_0x886239(0xfd)),compactPersonalRecords=(_0x154796,_0x2b6e3d)=>{const _0x2c5acb=a20_0x886239;var _0x328105,_0x34679c,_0x59dbfa,_0x6cca82,_0x1d6605,_0x430101;if(!(_0x2b6e3d===null||_0x2b6e3d===void 0x0?void 0x0:_0x2b6e3d[_0x2c5acb(0x118)])||!(_0x154796===null||_0x154796===void 0x0?void 0x0:_0x154796[_0x2c5acb(0x118)]))return undefined;const _0x153d6f=new Map();for(const _0xbabd1c of _0x154796){_0x153d6f[_0x2c5acb(0x122)](_0xbabd1c['id'],{'key':_0xbabd1c[_0x2c5acb(0x107)],'sport':_0xbabd1c[_0x2c5acb(0x150)][_0x2c5acb(0xde)]()});}const _0x8b26be={'pr.label.1k.run':'1k','pr.label.1mile.run':_0x2c5acb(0x155),'pr.label.5k.run':'5k','pr.label.10k.run':_0x2c5acb(0x177),'pr.label.half.marathon':_0x2c5acb(0xf3),'pr.label.full.marathon':_0x2c5acb(0x14d),'pr.label.farthest.run':'farthestRun','pr.label.farthest.cycle':_0x2c5acb(0x106),'pr.label.max.elev':'maxElevation','pr.label.max.power':'maxPower','pr.label.40k.cycle':_0x2c5acb(0xf1),'pr.label.steps.best.day':'bestDay','pr.label.steps.best.week':_0x2c5acb(0x163),'pr.label.steps.best.month':'bestMonth','pr.label.steps.longest.streak':'longestStreak','pr.label.steps.current.streak':_0x2c5acb(0x108),'pr.label.longest.poolswim':_0x2c5acb(0x129),'pr.label.100m.poolswim':_0x2c5acb(0x12f),'pr.label.100yd.poolswim':'100ydSwim','pr.label.400m.poolswim':'400mSwim','pr.label.500yd.poolswim':_0x2c5acb(0x142),'pr.label.750m.poolswim':'750mSwim','pr.label.1000m.poolswim':_0x2c5acb(0x10d),'pr.label.1000yd.poolswim':_0x2c5acb(0x14e),'pr.label.1500m.poolswim':_0x2c5acb(0x132),'pr.label.1650yd.poolswim':_0x2c5acb(0xf7),'pr.label.max.rep.weight.bench_press':_0x2c5acb(0x113),'pr.label.max.rep.weight.overhead_press':_0x2c5acb(0x17e),'pr.label.max.rep.weight.squat':_0x2c5acb(0x140),'pr.label.max.rep.weight.deadlift':_0x2c5acb(0x126),'pr.label.max.rep.weight.row':_0x2c5acb(0xfe),'pr.label.max.rep.weight.barbell_biceps_curl':_0x2c5acb(0x128),'pr.label.max.rep.weight.dumbbell_squat':_0x2c5acb(0x143),'pr.label.max.rep.weight.dumbbell_row':_0x2c5acb(0x15e),'pr.label.max.rep.weight.dumbbell_deadlift':_0x2c5acb(0x13f),'pr.label.max.rep.weight.dumbbell_biceps_curl':_0x2c5acb(0x12b),'pr.label.max.rep.weight.dumbbell_bench_press':'dbBenchPress','pr.label.max.rep.weight.overhead_dumbbell_press':'dbOverheadPress'},_0x21a42f=_0x47301b=>{const _0x2d44d1=_0x2c5acb;if(_0x47301b<0xe10){const _0x11e309=Math['floor'](_0x47301b/0x3c),_0x308288=Math['round'](_0x47301b%0x3c);return _0x11e309+':'+_0x308288['toString']()[_0x2d44d1(0x115)](0x2,'0');}const _0x4ccc04=Math[_0x2d44d1(0x15d)](_0x47301b/0xe10),_0x153935=Math[_0x2d44d1(0x15d)](_0x47301b%0xe10/0x3c),_0x1578ca=Math[_0x2d44d1(0x157)](_0x47301b%0x3c);return _0x4ccc04+':'+_0x153935[_0x2d44d1(0xf2)]()[_0x2d44d1(0x115)](0x2,'0')+':'+_0x1578ca[_0x2d44d1(0xf2)]()[_0x2d44d1(0x115)](0x2,'0');},_0x2699b5=_0x3b8ff6=>{const _0x1a0a4e=_0x2c5acb,_0x3222ec=_0x3b8ff6[_0x1a0a4e(0xde)]();if(/(steps|streak|max\.rep\.weight|max\.power|max\.elev|farthest|longest)/[_0x1a0a4e(0x111)](_0x3222ec))return![];return!![];},_0x4a5b91=[];for(const _0x6f1cc6 of _0x2b6e3d){if(_0x6f1cc6[_0x2c5acb(0x133)]!==_0x2c5acb(0x168)||_0x6f1cc6['value']<=0x0)continue;if(!_0x6f1cc6[_0x2c5acb(0xee)])continue;const _0x4b2f4c=_0x153d6f['get'](_0x6f1cc6['typeId']);if(!_0x4b2f4c)continue;const _0x1c2580=(_0x328105=_0x8b26be[_0x4b2f4c['key']])!==null&&_0x328105!==void 0x0?_0x328105:_0x4b2f4c['key'],_0x2d5fef=(_0x59dbfa=(_0x34679c=_0x6f1cc6[_0x2c5acb(0xf4)])===null||_0x34679c===void 0x0?void 0x0:_0x34679c[_0x2c5acb(0x127)](0x0,0xa))!==null&&_0x59dbfa!==void 0x0?_0x59dbfa:null,_0xa85704=_0x6f1cc6[_0x2c5acb(0xee)];let _0x4f9a81,_0x246956;if(_0x2699b5(_0x4b2f4c['key']))_0x4f9a81=_0x21a42f(_0x6f1cc6['value']),_0x246956='';else{if(_0x4b2f4c[_0x2c5acb(0x107)]['includes'](_0x2c5acb(0x117)))_0x4f9a81=String(Math[_0x2c5acb(0x157)](_0x6f1cc6[_0x2c5acb(0x12a)])),_0x246956=_0x2c5acb(0x117);else{if(_0x4b2f4c[_0x2c5acb(0x107)]['includes'](_0x2c5acb(0x14a)))_0x4f9a81=String(Math[_0x2c5acb(0x157)](_0x6f1cc6[_0x2c5acb(0x12a)])),_0x246956='days';else{if(_0x4b2f4c[_0x2c5acb(0x107)][_0x2c5acb(0x167)](_0x2c5acb(0x11c)))_0x4f9a81=String((_0x6cca82=(0x0,helpers_1[_0x2c5acb(0x157)])(_0x6f1cc6[_0x2c5acb(0x12a)],0x1))!==null&&_0x6cca82!==void 0x0?_0x6cca82:_0x6f1cc6['value']),_0x246956='kg';else{if(_0x4b2f4c['key'][_0x2c5acb(0x167)](_0x2c5acb(0xdd)))_0x4f9a81=String(Math[_0x2c5acb(0x157)](_0x6f1cc6[_0x2c5acb(0x12a)])),_0x246956='w';else{if(_0x4b2f4c['key'][_0x2c5acb(0x167)]('max.elev'))_0x4f9a81=String((_0x1d6605=(0x0,helpers_1[_0x2c5acb(0x157)])(_0x6f1cc6[_0x2c5acb(0x12a)],0x1))!==null&&_0x1d6605!==void 0x0?_0x1d6605:_0x6f1cc6[_0x2c5acb(0x12a)]),_0x246956='m';else{const _0x4bcbd0=_0x6f1cc6[_0x2c5acb(0x12a)]/0x3e8;_0x4f9a81=String((_0x430101=(0x0,helpers_1['round'])(_0x4bcbd0>=0x1?_0x4bcbd0:_0x6f1cc6['value'],0x2))!==null&&_0x430101!==void 0x0?_0x430101:_0x6f1cc6['value']),_0x246956=_0x4bcbd0>=0x1?'km':'m';}}}}}}_0x4a5b91['push']({'type':_0x1c2580,'sport':_0xa85704,'value':_0x4f9a81,'unit':_0x246956,'date':_0x2d5fef});}return _0x4a5b91['length']>0x0?_0x4a5b91:undefined;},buildTrainingOverview=async(_0x6c8b62,_0x593346,_0x21d033={})=>{const _0x4c640d=a20_0x886239;var _0x5d226f,_0x2a461f,_0x2042dd,_0x39e6aa,_0xa68814,_0x207f12,_0x33a098,_0x4a043f,_0x30049b,_0x452e46,_0x3482c6,_0x40dabe,_0x413655,_0x477e4b,_0x9acca3,_0x950749,_0x465b84,_0x1880e7,_0x22987e,_0x439e24,_0x3394be,_0x427c77,_0x53dd67,_0xbf7d8b,_0xb57f03,_0x2b53c2,_0x56e3a2,_0x5101c6,_0x4b0df2,_0x3e94c6,_0x162b8f,_0x5449f7,_0x435ae0;await _0x593346['checkTokenVaild']();const _0x24fa07={},_0x1f88a5=(_0x2a461f=(_0x5d226f=_0x21d033['rangeDays'])!==null&&_0x5d226f!==void 0x0?_0x5d226f:_0x21d033['recentDays'])!==null&&_0x2a461f!==void 0x0?_0x2a461f:0x16d,_0x1db066=(_0x2042dd=_0x21d033[_0x4c640d(0x14b)])!==null&&_0x2042dd!==void 0x0?_0x2042dd:0x5a,_0x56f7d9=(0x0,helpers_1[_0x4c640d(0x14f)])({..._0x21d033,'recentDays':_0x1f88a5},0x16d),_0x45a837=(0x0,helpers_1['getRange'])({..._0x21d033,'recentDays':_0x1db066},0x5a),_0x2d0a38=_0x56f7d9['endDateString'],[_0x1b46ef,_0x58e87e,_0x4896fc,_0x5e8dba,_0x47e125,_0x29e324,_0x1249ca,_0x259830,_0x536ec5,_0x53ec2b,_0x374b53,_0x2fe3ee]=await Promise[_0x4c640d(0x13a)]([(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x141),_0x24fa07,async()=>(0x0,helpers_1[_0x4c640d(0x180)])(await _0x6c8b62[_0x4c640d(0x12e)]())),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x105),_0x24fa07,async()=>(0x0,helpers_1[_0x4c640d(0x176)])(await _0x6c8b62[_0x4c640d(0xe5)](_0x56f7d9[_0x4c640d(0x15b)]))),(0x0,helpers_1[_0x4c640d(0xe0)])('trainingLoadBalance',_0x24fa07,async()=>(0x0,helpers_1[_0x4c640d(0x16b)])(await _0x6c8b62[_0x4c640d(0x11f)](_0x56f7d9[_0x4c640d(0x15b)]))),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x10b),_0x24fa07,async()=>(0x0,helpers_1[_0x4c640d(0xe8)])(await _0x6c8b62[_0x4c640d(0x17c)](_0x45a837['startDate'],_0x45a837['endDate']))),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x179),_0x24fa07,async()=>{const _0x2b8afc=_0x4c640d;var _0x1cc92c;return(0x0,helpers_1[_0x2b8afc(0x146)])((_0x1cc92c=await _0x6c8b62['getActivityStats']({'startDate':_0x56f7d9[_0x2b8afc(0x147)],'endDate':_0x56f7d9[_0x2b8afc(0x134)],'activityType':_0x2b8afc(0x175)}))!==null&&_0x1cc92c!==void 0x0?_0x1cc92c:[]);}),(0x0,helpers_1['capture'])(_0x4c640d(0x14c),_0x24fa07,async()=>{const _0x5a3ea6=_0x4c640d;var _0x39874b;return(0x0,helpers_1[_0x5a3ea6(0x146)])((_0x39874b=await _0x6c8b62[_0x5a3ea6(0x103)]({'startDate':_0x56f7d9[_0x5a3ea6(0x147)],'endDate':_0x56f7d9[_0x5a3ea6(0x134)],'activityType':_0x5a3ea6(0x156)}))!==null&&_0x39874b!==void 0x0?_0x39874b:[]);}),(0x0,helpers_1['capture'])('racePredictions',_0x24fa07,async()=>{const _0x3cfc85=_0x4c640d;var _0x2daef4;const _0x4bdf96=await _0x6c8b62[_0x3cfc85(0x158)](_0x45a837[_0x3cfc85(0x147)],_0x45a837['endDateString']);return(_0x2daef4=_0x4bdf96===null||_0x4bdf96===void 0x0?void 0x0:_0x4bdf96[_0x3cfc85(0x127)]()[_0x3cfc85(0xef)]((_0x329f07,_0x11a2de)=>_0x329f07[_0x3cfc85(0x100)][_0x3cfc85(0xe3)](_0x11a2de[_0x3cfc85(0x100)]))[_0x3cfc85(0x11a)]())!==null&&_0x2daef4!==void 0x0?_0x2daef4:null;}),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x178),_0x24fa07,async()=>{const _0x29c927=_0x4c640d;var _0x1c2246;const _0x5f26bc=await _0x6c8b62[_0x29c927(0x112)](_0x45a837[_0x29c927(0x147)],_0x45a837[_0x29c927(0x134)]);return(_0x1c2246=_0x5f26bc===null||_0x5f26bc===void 0x0?void 0x0:_0x5f26bc['latest'])===null||_0x1c2246===void 0x0?void 0x0:_0x1c2246[_0x29c927(0x127)]()[_0x29c927(0xef)]((_0x31c0e4,_0x29c215)=>_0x31c0e4[_0x29c927(0x100)][_0x29c927(0xe3)](_0x29c215[_0x29c927(0x100)]));}),(0x0,helpers_1['capture'])(_0x4c640d(0xfb),_0x24fa07,()=>_0x6c8b62['getLatestPowerToWeight'](_0x56f7d9['endDateString'])),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0xf0),_0x24fa07,()=>_0x6c8b62[_0x4c640d(0xea)]()),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x172),_0x24fa07,()=>_0x6c8b62[_0x4c640d(0xfc)](_0x56f7d9['endDateString'],_0x4c640d(0x156))),(0x0,helpers_1[_0x4c640d(0xe0)])(_0x4c640d(0x10e),_0x24fa07,async()=>{const _0x34cd64=_0x4c640d,[_0x27ab77,_0x3a52df]=await Promise['all']([_0x6c8b62[_0x34cd64(0xeb)]()[_0x34cd64(0x110)](()=>null),_0x6c8b62['getPersonalRecords']()['catch'](()=>null)]);return compactPersonalRecords(_0x27ab77!==null&&_0x27ab77!==void 0x0?_0x27ab77:null,_0x3a52df!==null&&_0x3a52df!==void 0x0?_0x3a52df:null);})]),_0x4117e1=_0x1b46ef!==null&&_0x1b46ef!==void 0x0?_0x1b46ef:(0x0,helpers_1[_0x4c640d(0x180)])(null),_0x55096a=_0x58e87e!==null&&_0x58e87e!==void 0x0?_0x58e87e:null,_0x543bef=_0x4896fc!==null&&_0x4896fc!==void 0x0?_0x4896fc:null,_0x3a22a8=_0x5e8dba!==null&&_0x5e8dba!==void 0x0?_0x5e8dba:[],_0x22f5a1=(0x0,helpers_1[_0x4c640d(0x171)])(_0x47e125!==null&&_0x47e125!==void 0x0?_0x47e125:null),_0x42ec65=(0x0,helpers_1[_0x4c640d(0x171)])(_0x29e324!==null&&_0x29e324!==void 0x0?_0x29e324:null),_0x1ca773=[..._0x22f5a1?['running']:[],..._0x42ec65?['cycling']:[]],_0x56e0ae=(0x0,helpers_1[_0x4c640d(0x144)])(_0x47e125),_0x4c7ee2=(0x0,helpers_1[_0x4c640d(0x144)])(_0x29e324),_0x3c7d18=((_0x39e6aa=_0x56e0ae['durationH'])!==null&&_0x39e6aa!==void 0x0?_0x39e6aa:0x0)+((_0xa68814=_0x4c7ee2['durationH'])!==null&&_0xa68814!==void 0x0?_0xa68814:0x0),_0x4d7c05=_0x3c7d18>0x0?{'running':(0x0,helpers_1[_0x4c640d(0x157)])(((_0x207f12=_0x56e0ae['durationH'])!==null&&_0x207f12!==void 0x0?_0x207f12:0x0)/_0x3c7d18,0x2),'cycling':(0x0,helpers_1[_0x4c640d(0x157)])(((_0x33a098=_0x4c7ee2['durationH'])!==null&&_0x33a098!==void 0x0?_0x33a098:0x0)/_0x3c7d18,0x2)}:{'running':0x0,'cycling':0x0},_0xab3ac5=_0x3c7d18>0x0?_0x4d7c05[_0x4c640d(0x175)]>=_0x4d7c05['cycling']?_0x4c640d(0x175):_0x4c640d(0x156):null,_0x1ad373=_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x138)],_0x48bba8=(_0x30049b=(_0x4a043f=_0x1ad373===null||_0x1ad373===void 0x0?void 0x0:_0x1ad373[_0x4c640d(0x149)])!==null&&_0x4a043f!==void 0x0?_0x4a043f:_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x125)])!==null&&_0x30049b!==void 0x0?_0x30049b:null,_0x1bd4f0=(_0x3482c6=(_0x452e46=_0x1ad373===null||_0x1ad373===void 0x0?void 0x0:_0x1ad373[_0x4c640d(0x169)])!==null&&_0x452e46!==void 0x0?_0x452e46:_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x15c)])!==null&&_0x3482c6!==void 0x0?_0x3482c6:null,_0x2eb2ff=(_0x40dabe=_0x1ad373===null||_0x1ad373===void 0x0?void 0x0:_0x1ad373[_0x4c640d(0x130)])!==null&&_0x40dabe!==void 0x0?_0x40dabe:_0x48bba8!==null&&_0x1bd4f0?_0x48bba8/_0x1bd4f0:null,_0x23ad7e=(_0x413655=_0x259830===null||_0x259830===void 0x0?void 0x0:_0x259830[_0x4c640d(0x127)]()['reverse']()[_0x4c640d(0xff)](_0x273e21=>_0x273e21['speed']!==null))!==null&&_0x413655!==void 0x0?_0x413655:null,_0x4f8ad9=(_0x477e4b=_0x259830===null||_0x259830===void 0x0?void 0x0:_0x259830[_0x4c640d(0x127)]()[_0x4c640d(0x119)]()[_0x4c640d(0xff)](_0x1800bb=>_0x1800bb['hearRate']!==null||_0x1800bb['heartRate']!==null))!==null&&_0x477e4b!==void 0x0?_0x477e4b:null,_0x5c4fe0=(0x0,helpers_1[_0x4c640d(0xdc)])(_0x536ec5,_0x4c640d(0x15f)),_0xfcc315=(0x0,helpers_1[_0x4c640d(0xdc)])(_0x536ec5,_0x4c640d(0x17f)),_0x1775fc={'schema':_0x4c640d(0xf9),'snapshotDate':_0x2d0a38,'rangeDays':_0x1f88a5,'source':{'provider':'garmin','endpointType':_0x4c640d(0x102),'includedSports':[_0x4c640d(0x175),_0x4c640d(0x156)],'excludedSports':[{'sport':_0x4c640d(0x11d),'reason':_0x4c640d(0x10a)}]},'athlete':{'age':(_0x9acca3=_0x4117e1[_0x4c640d(0x17b)])!==null&&_0x9acca3!==void 0x0?_0x9acca3:null,'gender':(0x0,helpers_1[_0x4c640d(0xe7)])(_0x4117e1[_0x4c640d(0x101)]),'heightCm':(_0x950749=_0x4117e1[_0x4c640d(0xf5)])!==null&&_0x950749!==void 0x0?_0x950749:null,'weightKg':_0x4117e1[_0x4c640d(0x16f)]&&_0x4117e1[_0x4c640d(0x16f)]>0x1f4?(0x0,helpers_1['round'])(_0x4117e1[_0x4c640d(0x16f)]/0x3e8,0x1):(0x0,helpers_1[_0x4c640d(0x157)])(_0x4117e1['weight'],0x1),'type':_0x22f5a1&&_0x42ec65?_0x4c640d(0x12c):(_0x465b84=_0x1ca773[0x0])!==null&&_0x465b84!==void 0x0?_0x465b84:null,'observedSports':_0x1ca773},'state':{'status':(0x0,helpers_1[_0x4c640d(0x131)])(_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x105)],_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a['trainingStatusFeedbackPhrase']),'trend':(0x0,helpers_1['normalizeTrend'])(_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a['fitnessTrend']),'statusSport':(0x0,helpers_1[_0x4c640d(0x109)])(_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x150)]),'fitnessTrendSport':(0x0,helpers_1['normalizeSport'])(_0x55096a===null||_0x55096a===void 0x0?void 0x0:_0x55096a[_0x4c640d(0x162)]),'acuteLoad':(0x0,helpers_1[_0x4c640d(0x157)])(_0x48bba8),'chronicLoad':(0x0,helpers_1[_0x4c640d(0x157)])(_0x1bd4f0),'acwr':(0x0,helpers_1['round'])(_0x2eb2ff,0x1),'acwrStatus':(0x0,helpers_1[_0x4c640d(0x154)])(_0x1ad373===null||_0x1ad373===void 0x0?void 0x0:_0x1ad373['acwrStatus'])},'loadBalance':{'lowAerobic':(0x0,helpers_1[_0x4c640d(0x10f)])(_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x17d)],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0xfa)],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0xe4)]),'highAerobic':(0x0,helpers_1[_0x4c640d(0x10f)])(_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef['monthlyLoadAerobicHigh'],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x16d)],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef['monthlyLoadAerobicHighTargetMax']),'anaerobic':(0x0,helpers_1[_0x4c640d(0x10f)])(_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x114)],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x123)],_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x12d)]),'feedback':(0x0,helpers_1[_0x4c640d(0x154)])(_0x543bef===null||_0x543bef===void 0x0?void 0x0:_0x543bef[_0x4c640d(0x10c)])},'sports':{'running':{'available':_0x22f5a1,'vo2Max':(_0x1880e7=_0x4117e1[_0x4c640d(0x124)])!==null&&_0x1880e7!==void 0x0?_0x1880e7:null,'threshold':{'pace':(0x0,helpers_1[_0x4c640d(0x11b)])(_0x23ad7e===null||_0x23ad7e===void 0x0?void 0x0:_0x23ad7e[_0x4c640d(0x13d)]),'hr':(_0x3394be=(_0x439e24=(_0x22987e=_0x4f8ad9===null||_0x4f8ad9===void 0x0?void 0x0:_0x4f8ad9[_0x4c640d(0xdf)])!==null&&_0x22987e!==void 0x0?_0x22987e:_0x4f8ad9===null||_0x4f8ad9===void 0x0?void 0x0:_0x4f8ad9['heartRate'])!==null&&_0x439e24!==void 0x0?_0x439e24:_0x4117e1[_0x4c640d(0x153)])!==null&&_0x3394be!==void 0x0?_0x3394be:null},'power':{'ftp':(_0x53dd67=(_0x427c77=_0xfcc315===null||_0xfcc315===void 0x0?void 0x0:_0xfcc315[_0x4c640d(0xe1)])!==null&&_0x427c77!==void 0x0?_0x427c77:_0x4117e1[_0x4c640d(0xe1)])!==null&&_0x53dd67!==void 0x0?_0x53dd67:null,'wkg':(0x0,helpers_1[_0x4c640d(0x157)])(_0xfcc315===null||_0xfcc315===void 0x0?void 0x0:_0xfcc315[_0x4c640d(0x15a)],0x2),'stale':(_0xbf7d8b=_0xfcc315===null||_0xfcc315===void 0x0?void 0x0:_0xfcc315[_0x4c640d(0x161)])!==null&&_0xbf7d8b!==void 0x0?_0xbf7d8b:null},'year':_0x56e0ae,'form':{'cadence':(0x0,helpers_1[_0x4c640d(0x157)])((0x0,helpers_1[_0x4c640d(0x174)])(_0x47e125,_0x4c640d(0x159),_0x4c640d(0x160))),'strideCm':(0x0,helpers_1[_0x4c640d(0x157)])((0x0,helpers_1[_0x4c640d(0x174)])(_0x47e125,'avgStrideLength',_0x4c640d(0x160))),'gctMs':(0x0,helpers_1[_0x4c640d(0x157)])((0x0,helpers_1[_0x4c640d(0x174)])(_0x47e125,_0x4c640d(0x104),'avg')),'voCm':(0x0,helpers_1['round'])((0x0,helpers_1[_0x4c640d(0x174)])(_0x47e125,_0x4c640d(0x116),_0x4c640d(0x160)),0x1)},'prediction':{'5k':(0x0,helpers_1[_0x4c640d(0x121)])(_0x1249ca===null||_0x1249ca===void 0x0?void 0x0:_0x1249ca[_0x4c640d(0x139)]),'10k':(0x0,helpers_1[_0x4c640d(0x121)])(_0x1249ca===null||_0x1249ca===void 0x0?void 0x0:_0x1249ca[_0x4c640d(0x136)]),'hm':(0x0,helpers_1['compactRaceTime'])(_0x1249ca===null||_0x1249ca===void 0x0?void 0x0:_0x1249ca[_0x4c640d(0xe2)]),'fm':(0x0,helpers_1['compactRaceTime'])(_0x1249ca===null||_0x1249ca===void 0x0?void 0x0:_0x1249ca['timeMarathonFormatted'])}},'cycling':{'available':_0x42ec65,'vo2Max':(_0x56e3a2=(_0x2b53c2=(_0xb57f03=_0x374b53===null||_0x374b53===void 0x0?void 0x0:_0x374b53[_0x4c640d(0x156)])===null||_0xb57f03===void 0x0?void 0x0:_0xb57f03['vo2MaxValue'])!==null&&_0x2b53c2!==void 0x0?_0x2b53c2:_0x4117e1[_0x4c640d(0xe6)])!==null&&_0x56e3a2!==void 0x0?_0x56e3a2:null,'power':{'ftp':(_0x4b0df2=(_0x5101c6=_0x5c4fe0===null||_0x5c4fe0===void 0x0?void 0x0:_0x5c4fe0['functionalThresholdPower'])!==null&&_0x5101c6!==void 0x0?_0x5101c6:_0x4117e1['functionalThresholdPower'])!==null&&_0x4b0df2!==void 0x0?_0x4b0df2:null,'wkg':(0x0,helpers_1[_0x4c640d(0x157)])(_0x5c4fe0===null||_0x5c4fe0===void 0x0?void 0x0:_0x5c4fe0[_0x4c640d(0x15a)],0x2),'stale':(_0x3e94c6=_0x5c4fe0===null||_0x5c4fe0===void 0x0?void 0x0:_0x5c4fe0[_0x4c640d(0x161)])!==null&&_0x3e94c6!==void 0x0?_0x3e94c6:null},'year':_0x4c7ee2,'form':{'avgPower':(0x0,helpers_1[_0x4c640d(0x157)])((0x0,helpers_1[_0x4c640d(0x174)])(_0x29e324,_0x4c640d(0xe9),'avg')),'cadence':(0x0,helpers_1[_0x4c640d(0x157)])((0x0,helpers_1['metricValue'])(_0x29e324,_0x4c640d(0x151),'avg'))},'ability':{'type':(0x0,helpers_1[_0x4c640d(0x154)])(_0x53ec2b===null||_0x53ec2b===void 0x0?void 0x0:_0x53ec2b[_0x4c640d(0x13b)]),'aerobicEndurance':(_0x162b8f=_0x53ec2b===null||_0x53ec2b===void 0x0?void 0x0:_0x53ec2b[_0x4c640d(0x13e)])!==null&&_0x162b8f!==void 0x0?_0x162b8f:null,'aerobicCapacity':(_0x5449f7=_0x53ec2b===null||_0x53ec2b===void 0x0?void 0x0:_0x53ec2b[_0x4c640d(0x173)])!==null&&_0x5449f7!==void 0x0?_0x5449f7:null,'anaerobicCapacity':(_0x435ae0=_0x53ec2b===null||_0x53ec2b===void 0x0?void 0x0:_0x53ec2b[_0x4c640d(0x152)])!==null&&_0x435ae0!==void 0x0?_0x435ae0:null}}},'multiSport':{'isMultiSport':_0x1ca773[_0x4c640d(0x118)]>0x1,'observedSports':_0x1ca773,'durationShare':_0x4d7c05,'dominantByDuration':_0xab3ac5,'note':_0x4c640d(0x16c)},'trend90d':{'statusDays':(0x0,helpers_1[_0x4c640d(0x13c)])(_0x3a22a8),'load':(0x0,helpers_1[_0x4c640d(0xf8)])(_0x3a22a8)},'dataCompleteness':{'profile':_0x1b46ef!==null,'trainingStatus':_0x55096a!==null,'loadBalance':_0x543bef!==null,'runningStats':_0x22f5a1,'cyclingStats':_0x42ec65,'swimmingStats':_0x4c640d(0x148),'recovery':![],'recentActivities':![],'subjectiveFeedback':![],'personalRecords':Array['isArray'](_0x2fe3ee)&&_0x2fe3ee[_0x4c640d(0x118)]>0x0},'aiHints':[]};return _0x2fe3ee&&(_0x1775fc[_0x4c640d(0x10e)]=_0x2fe3ee),_0x1775fc[_0x4c640d(0x17a)]=(0x0,helpers_1[_0x4c640d(0xf6)])(_0x1775fc),_0x1775fc;};exports['buildTrainingOverview']=buildTrainingOverview;
1
+ 'use strict';function a20_0x397a(_0xb3fe35,_0x19b737){_0xb3fe35=_0xb3fe35-0xaa;const _0x4fa54a=a20_0x4fa5();let _0x397ac5=_0x4fa54a[_0xb3fe35];return _0x397ac5;}const a20_0x1ae372=a20_0x397a;function a20_0x4fa5(){const _0x15a6a9=['10k','getWeeklyTrainingStatus','249580TBWVzx','not_supported_by_source','hearRate','1177614UEAdVF','getMaxMet','racePredictions','push','padStart','all','trainingBalanceFeedbackPhrase','runningActivityStats','vo2Max','100ydSwim','triathlon','thresholdPaceFromSpeed','acuteTrainingLoadDTO','typeId','swimming_not_available_in_this_overview_source','fullMarathon','buildAiHints','personalRecords','dailyTrainingLoadAcute','max.rep.weight','timeHalfMarathonFormatted','28axhzat','1437YfVCZn','round','getRange','endDateString','dailyTrainingLoadChronic','localeCompare','lowerSnake','key','set','metricValue','dbBenchPress','toString','find','bestMonth','heartRate','halfMarathon','avgVerticalOscillation','profileType','avgBikeCadence','rangeDays','avgRunCadence','durationH','1650ydSwim','monthlyLoadAerobicHighTargetMin','500ydSwim','monthlyLoadAerobicLow','buildTrendLoad','hasSportStats','100mSwim','garmin','aerobicCapacity','trainingStatus','cyclingActivityStats','getPersonalRecordTypes','training_overview_v1','75163GMMjqy','dbCurl','endDate','maxElevation','getCyclingAbility','trendDays','compactRaceTime','running','vo2MaxValue','longestSwim','maxPower','aerobicEndurance','normalizeGender','avgPower','trainingStatusFeedbackPhrase','length','aiHints','avgGroundContactTime','activityType','avg','age','dbDeadlift','40k','avgStrideLength','weeklyTrainingStatus','status','getTrainingStatus','sport','isArray','extractUser','loadBalanceTuple','latestActivityStats','400axTmUO','normalizeTrend','calendarDate','monthlyLoadAerobicHighTargetMax','extractCurrentTrainingStatus','includes','barbellCurl','bestWeek','countStatusDays','startDateString','weight','farthestRun','getLatestPowerToWeight','isStale','currentStreak','1000mSwim','anaerobicCapacity','extractLoadBalance','35869mpClmi','findPowerToWeight','checkTokenVaild','buildYearStats','getPersonalRecords','pop','gender','dbOverheadPress','4078488goXPPM','60EAKyYP','overheadPress','getPersonalInfo','monthlyLoadAnaerobicTargetMax','reverse','streak','1mile','750mSwim','3623753tDvzXc','monthlyLoadAnaerobic','buildTrainingOverview','cyclingAbility','1500mSwim','cycling','getActivityStats','acwrStatus','fitnessTrend','normalizeStatus','value','getTrainingLoadBalance','toLowerCase','latestPowerToWeight','steps','monthlyLoadAerobicLowTargetMax','floor','ACCEPTED','lactateThreshold','height','compactTrainingStatuses','max.power','defineProperty','1000ydSwim','slice','monthlyLoadAerobicLowTargetMin','startDate','normalizeSport','recentDays','swimming','powerToWeight','getRunningLactateThreshold','training_overview','monthlyLoadAnaerobicTargetMin','lactateThresholdHeartRate','1412TdRPUI','bestDay','get','24ExELBq','vo2MaxCycling','trainingLoadBalance','catch','time10KFormatted','capture','benchPress','not_provided_by_source_endpoint','functionalThresholdPower','sort'];a20_0x4fa5=function(){return _0x15a6a9;};return a20_0x4fa5();}(function(_0x5210a3,_0x55f30b){const _0x57ba9b=a20_0x397a,_0x159f70=_0x5210a3();while(!![]){try{const _0x5b4368=parseInt(_0x57ba9b(0xd6))/0x1*(-parseInt(_0x57ba9b(0x131))/0x2)+-parseInt(_0x57ba9b(0x132))/0x3*(-parseInt(_0x57ba9b(0x10a))/0x4)+parseInt(_0x57ba9b(0x119))/0x5*(parseInt(_0x57ba9b(0xdf))/0x6)+parseInt(_0x57ba9b(0xe7))/0x7+-parseInt(_0x57ba9b(0x10d))/0x8*(parseInt(_0x57ba9b(0x11c))/0x9)+parseInt(_0x57ba9b(0xc4))/0xa*(-parseInt(_0x57ba9b(0x155))/0xb)+parseInt(_0x57ba9b(0xde))/0xc;if(_0x5b4368===_0x55f30b)break;else _0x159f70['push'](_0x159f70['shift']());}catch(_0x2f7b13){_0x159f70['push'](_0x159f70['shift']());}}}(a20_0x4fa5,0x57590));Object[a20_0x1ae372(0xfd)](exports,'__esModule',{'value':!![]}),exports[a20_0x1ae372(0xe9)]=void 0x0;const helpers_1=require('./helpers'),compactPersonalRecords=(_0xc7b079,_0x52079b)=>{const _0x3f1ea3=a20_0x1ae372;var _0xe20a6,_0x44c986,_0x1337d0,_0x6fc7fe,_0x571bbf,_0x52f803;if(!(_0x52079b===null||_0x52079b===void 0x0?void 0x0:_0x52079b[_0x3f1ea3(0xb3)])||!(_0xc7b079===null||_0xc7b079===void 0x0?void 0x0:_0xc7b079['length']))return undefined;const _0x1d1cd5=new Map();for(const _0x5ccdb2 of _0xc7b079){_0x1d1cd5[_0x3f1ea3(0x13a)](_0x5ccdb2['id'],{'key':_0x5ccdb2['key'],'sport':_0x5ccdb2['sport'][_0x3f1ea3(0xf3)]()});}const _0x18fe8b={'pr.label.1k.run':'1k','pr.label.1mile.run':_0x3f1ea3(0xe5),'pr.label.5k.run':'5k','pr.label.10k.run':_0x3f1ea3(0x117),'pr.label.half.marathon':_0x3f1ea3(0x141),'pr.label.full.marathon':_0x3f1ea3(0x12b),'pr.label.farthest.run':_0x3f1ea3(0xcf),'pr.label.farthest.cycle':'farthestRide','pr.label.max.elev':_0x3f1ea3(0x158),'pr.label.max.power':_0x3f1ea3(0xae),'pr.label.40k.cycle':_0x3f1ea3(0xba),'pr.label.steps.best.day':_0x3f1ea3(0x10b),'pr.label.steps.best.week':_0x3f1ea3(0xcb),'pr.label.steps.best.month':_0x3f1ea3(0x13f),'pr.label.steps.longest.streak':'longestStreak','pr.label.steps.current.streak':_0x3f1ea3(0xd2),'pr.label.longest.poolswim':_0x3f1ea3(0xad),'pr.label.100m.poolswim':_0x3f1ea3(0x14e),'pr.label.100yd.poolswim':_0x3f1ea3(0x125),'pr.label.400m.poolswim':'400mSwim','pr.label.500yd.poolswim':_0x3f1ea3(0x14a),'pr.label.750m.poolswim':_0x3f1ea3(0xe6),'pr.label.1000m.poolswim':_0x3f1ea3(0xd3),'pr.label.1000yd.poolswim':_0x3f1ea3(0xfe),'pr.label.1500m.poolswim':_0x3f1ea3(0xeb),'pr.label.1650yd.poolswim':_0x3f1ea3(0x148),'pr.label.max.rep.weight.bench_press':_0x3f1ea3(0x113),'pr.label.max.rep.weight.overhead_press':_0x3f1ea3(0xe0),'pr.label.max.rep.weight.squat':'squat','pr.label.max.rep.weight.deadlift':'deadlift','pr.label.max.rep.weight.row':'row','pr.label.max.rep.weight.barbell_biceps_curl':_0x3f1ea3(0xca),'pr.label.max.rep.weight.dumbbell_squat':'dbSquat','pr.label.max.rep.weight.dumbbell_row':'dbRow','pr.label.max.rep.weight.dumbbell_deadlift':_0x3f1ea3(0xb9),'pr.label.max.rep.weight.dumbbell_biceps_curl':_0x3f1ea3(0x156),'pr.label.max.rep.weight.dumbbell_bench_press':_0x3f1ea3(0x13c),'pr.label.max.rep.weight.overhead_dumbbell_press':_0x3f1ea3(0xdd)},_0x3a1185=_0x4e6a2d=>{const _0x112fa5=_0x3f1ea3;if(_0x4e6a2d<0xe10){const _0x5602c3=Math[_0x112fa5(0xf7)](_0x4e6a2d/0x3c),_0xb8f538=Math['round'](_0x4e6a2d%0x3c);return _0x5602c3+':'+_0xb8f538[_0x112fa5(0x13d)]()['padStart'](0x2,'0');}const _0x348b3e=Math['floor'](_0x4e6a2d/0xe10),_0x5e5b6b=Math['floor'](_0x4e6a2d%0xe10/0x3c),_0x734961=Math[_0x112fa5(0x133)](_0x4e6a2d%0x3c);return _0x348b3e+':'+_0x5e5b6b[_0x112fa5(0x13d)]()[_0x112fa5(0x120)](0x2,'0')+':'+_0x734961[_0x112fa5(0x13d)]()[_0x112fa5(0x120)](0x2,'0');},_0x5d5c04=_0x2cfa66=>{const _0x50d0fb=_0x3f1ea3,_0x53e111=_0x2cfa66[_0x50d0fb(0xf3)]();if(/(steps|streak|max\.rep\.weight|max\.power|max\.elev|farthest|longest)/['test'](_0x53e111))return![];return!![];},_0x4ba826=[];for(const _0x2d8114 of _0x52079b){if(_0x2d8114[_0x3f1ea3(0xbd)]!==_0x3f1ea3(0xf8)||_0x2d8114[_0x3f1ea3(0xf1)]<=0x0)continue;if(!_0x2d8114[_0x3f1ea3(0xb6)])continue;const _0x1bc44e=_0x1d1cd5[_0x3f1ea3(0x10c)](_0x2d8114[_0x3f1ea3(0x129)]);if(!_0x1bc44e)continue;const _0x19a3a8=(_0xe20a6=_0x18fe8b[_0x1bc44e[_0x3f1ea3(0x139)]])!==null&&_0xe20a6!==void 0x0?_0xe20a6:_0x1bc44e[_0x3f1ea3(0x139)],_0x260c67=(_0x1337d0=(_0x44c986=_0x2d8114['activityStartDateTimeLocalFormatted'])===null||_0x44c986===void 0x0?void 0x0:_0x44c986[_0x3f1ea3(0xff)](0x0,0xa))!==null&&_0x1337d0!==void 0x0?_0x1337d0:null,_0x547f91=_0x2d8114[_0x3f1ea3(0xb6)];let _0x55c0ce,_0x510e1e;if(_0x5d5c04(_0x1bc44e[_0x3f1ea3(0x139)]))_0x55c0ce=_0x3a1185(_0x2d8114['value']),_0x510e1e='';else{if(_0x1bc44e[_0x3f1ea3(0x139)][_0x3f1ea3(0xc9)]('steps'))_0x55c0ce=String(Math[_0x3f1ea3(0x133)](_0x2d8114[_0x3f1ea3(0xf1)])),_0x510e1e=_0x3f1ea3(0xf5);else{if(_0x1bc44e[_0x3f1ea3(0x139)][_0x3f1ea3(0xc9)](_0x3f1ea3(0xe4)))_0x55c0ce=String(Math[_0x3f1ea3(0x133)](_0x2d8114[_0x3f1ea3(0xf1)])),_0x510e1e='days';else{if(_0x1bc44e[_0x3f1ea3(0x139)][_0x3f1ea3(0xc9)](_0x3f1ea3(0x12f)))_0x55c0ce=String((_0x6fc7fe=(0x0,helpers_1[_0x3f1ea3(0x133)])(_0x2d8114[_0x3f1ea3(0xf1)],0x1))!==null&&_0x6fc7fe!==void 0x0?_0x6fc7fe:_0x2d8114[_0x3f1ea3(0xf1)]),_0x510e1e='kg';else{if(_0x1bc44e[_0x3f1ea3(0x139)][_0x3f1ea3(0xc9)](_0x3f1ea3(0xfc)))_0x55c0ce=String(Math['round'](_0x2d8114['value'])),_0x510e1e='w';else{if(_0x1bc44e[_0x3f1ea3(0x139)][_0x3f1ea3(0xc9)]('max.elev'))_0x55c0ce=String((_0x571bbf=(0x0,helpers_1['round'])(_0x2d8114[_0x3f1ea3(0xf1)],0x1))!==null&&_0x571bbf!==void 0x0?_0x571bbf:_0x2d8114[_0x3f1ea3(0xf1)]),_0x510e1e='m';else{const _0x1f4a18=_0x2d8114['value']/0x3e8;_0x55c0ce=String((_0x52f803=(0x0,helpers_1[_0x3f1ea3(0x133)])(_0x1f4a18>=0x1?_0x1f4a18:_0x2d8114[_0x3f1ea3(0xf1)],0x2))!==null&&_0x52f803!==void 0x0?_0x52f803:_0x2d8114[_0x3f1ea3(0xf1)]),_0x510e1e=_0x1f4a18>=0x1?'km':'m';}}}}}}_0x4ba826[_0x3f1ea3(0x11f)]({'type':_0x19a3a8,'sport':_0x547f91,'value':_0x55c0ce,'unit':_0x510e1e,'date':_0x260c67});}return _0x4ba826[_0x3f1ea3(0xb3)]>0x0?_0x4ba826:undefined;},buildTrainingOverview=async(_0x244acc,_0x497077,_0x3c7b4e={})=>{const _0x13d4f3=a20_0x1ae372;var _0x3d4e4c,_0x20bbfb,_0x9a87a2,_0x3abf0f,_0x526db8,_0x139bc1,_0x46c00d,_0x45bd30,_0x137fd2,_0x5187a8,_0x8bc463,_0x3fed4e,_0x259cea,_0x4db215,_0x26141a,_0x1083e4,_0x59273a,_0x48371f,_0x5376b2,_0x1bf7ca,_0x44f468,_0x5bf404,_0x444c50,_0xbf7908,_0x2fd913,_0x1d9f0c,_0x46b929,_0x4760ae,_0x5ae822,_0x1181ba,_0x4bf56a,_0x200033,_0x5c5c13;await _0x497077[_0x13d4f3(0xd8)]();const _0x1cf576={},_0x1ab4bf=(_0x20bbfb=(_0x3d4e4c=_0x3c7b4e[_0x13d4f3(0x145)])!==null&&_0x3d4e4c!==void 0x0?_0x3d4e4c:_0x3c7b4e[_0x13d4f3(0x103)])!==null&&_0x20bbfb!==void 0x0?_0x20bbfb:0x16d,_0x1415b9=(_0x9a87a2=_0x3c7b4e[_0x13d4f3(0x15a)])!==null&&_0x9a87a2!==void 0x0?_0x9a87a2:0x5a,_0x2811fd=(0x0,helpers_1[_0x13d4f3(0x134)])({..._0x3c7b4e,'recentDays':_0x1ab4bf},0x16d),_0x51d493=(0x0,helpers_1[_0x13d4f3(0x134)])({..._0x3c7b4e,'recentDays':_0x1415b9},0x5a),_0xe63fc0=_0x2811fd[_0x13d4f3(0x135)],[_0x2e28dd,_0xadf66e,_0x1bacd2,_0x4f407d,_0x4a4e68,_0x2e2484,_0x7945b8,_0x5a1dee,_0x2634e7,_0x223075,_0x17c35b,_0x9ce700]=await Promise['all']([(0x0,helpers_1[_0x13d4f3(0x112)])('personalInfo',_0x1cf576,async()=>(0x0,helpers_1['extractUser'])(await _0x244acc[_0x13d4f3(0xe1)]())),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0x151),_0x1cf576,async()=>(0x0,helpers_1[_0x13d4f3(0xc8)])(await _0x244acc[_0x13d4f3(0xbe)](_0x2811fd[_0x13d4f3(0x157)]))),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0x10f),_0x1cf576,async()=>(0x0,helpers_1[_0x13d4f3(0xd5)])(await _0x244acc[_0x13d4f3(0xf2)](_0x2811fd[_0x13d4f3(0x157)]))),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0xbc),_0x1cf576,async()=>(0x0,helpers_1[_0x13d4f3(0xfb)])(await _0x244acc[_0x13d4f3(0x118)](_0x51d493[_0x13d4f3(0x101)],_0x51d493['endDate']))),(0x0,helpers_1['capture'])(_0x13d4f3(0x123),_0x1cf576,async()=>{const _0x13ee99=_0x13d4f3;var _0x279551;return(0x0,helpers_1['latestActivityStats'])((_0x279551=await _0x244acc[_0x13ee99(0xed)]({'startDate':_0x2811fd[_0x13ee99(0xcd)],'endDate':_0x2811fd[_0x13ee99(0x135)],'activityType':'running'}))!==null&&_0x279551!==void 0x0?_0x279551:[]);}),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0x152),_0x1cf576,async()=>{const _0x17aa2d=_0x13d4f3;var _0x27f899;return(0x0,helpers_1[_0x17aa2d(0xc3)])((_0x27f899=await _0x244acc[_0x17aa2d(0xed)]({'startDate':_0x2811fd['startDateString'],'endDate':_0x2811fd[_0x17aa2d(0x135)],'activityType':_0x17aa2d(0xec)}))!==null&&_0x27f899!==void 0x0?_0x27f899:[]);}),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0x11e),_0x1cf576,async()=>{const _0x204516=_0x13d4f3;var _0x20f306;const _0x37e1f0=await _0x244acc['getRacePredictionsMonthly'](_0x51d493[_0x204516(0xcd)],_0x51d493[_0x204516(0x135)]);return(_0x20f306=_0x37e1f0===null||_0x37e1f0===void 0x0?void 0x0:_0x37e1f0[_0x204516(0xff)]()[_0x204516(0x116)]((_0x4fd578,_0x15e301)=>_0x4fd578[_0x204516(0xc6)]['localeCompare'](_0x15e301[_0x204516(0xc6)]))[_0x204516(0xdb)]())!==null&&_0x20f306!==void 0x0?_0x20f306:null;}),(0x0,helpers_1['capture'])(_0x13d4f3(0xf9),_0x1cf576,async()=>{const _0x99abe5=_0x13d4f3;var _0x25cc7e;const _0x5a9c0d=await _0x244acc[_0x99abe5(0x106)](_0x51d493[_0x99abe5(0xcd)],_0x51d493['endDateString']);return(_0x25cc7e=_0x5a9c0d===null||_0x5a9c0d===void 0x0?void 0x0:_0x5a9c0d['latest'])===null||_0x25cc7e===void 0x0?void 0x0:_0x25cc7e[_0x99abe5(0xff)]()['sort']((_0x3a44b1,_0x26fed7)=>_0x3a44b1['calendarDate'][_0x99abe5(0x137)](_0x26fed7[_0x99abe5(0xc6)]));}),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0xf4),_0x1cf576,()=>_0x244acc[_0x13d4f3(0xd0)](_0x2811fd[_0x13d4f3(0x135)])),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0xea),_0x1cf576,()=>_0x244acc[_0x13d4f3(0x159)]()),(0x0,helpers_1[_0x13d4f3(0x112)])('cyclingMaxMet',_0x1cf576,()=>_0x244acc[_0x13d4f3(0x11d)](_0x2811fd[_0x13d4f3(0x135)],_0x13d4f3(0xec))),(0x0,helpers_1[_0x13d4f3(0x112)])(_0x13d4f3(0x12d),_0x1cf576,async()=>{const _0x235ba8=_0x13d4f3,[_0x37dd41,_0x35aed5]=await Promise[_0x235ba8(0x121)]([_0x244acc[_0x235ba8(0x153)]()[_0x235ba8(0x110)](()=>null),_0x244acc[_0x235ba8(0xda)]()[_0x235ba8(0x110)](()=>null)]);return compactPersonalRecords(_0x37dd41!==null&&_0x37dd41!==void 0x0?_0x37dd41:null,_0x35aed5!==null&&_0x35aed5!==void 0x0?_0x35aed5:null);})]),_0x4df60f=_0x2e28dd!==null&&_0x2e28dd!==void 0x0?_0x2e28dd:(0x0,helpers_1[_0x13d4f3(0xc1)])(null),_0x59ca5d=_0xadf66e!==null&&_0xadf66e!==void 0x0?_0xadf66e:null,_0x1262c3=_0x1bacd2!==null&&_0x1bacd2!==void 0x0?_0x1bacd2:null,_0x5e26c5=_0x4f407d!==null&&_0x4f407d!==void 0x0?_0x4f407d:[],_0xbc00b6=(0x0,helpers_1[_0x13d4f3(0x14d)])(_0x4a4e68!==null&&_0x4a4e68!==void 0x0?_0x4a4e68:null),_0x478b5b=(0x0,helpers_1[_0x13d4f3(0x14d)])(_0x2e2484!==null&&_0x2e2484!==void 0x0?_0x2e2484:null),_0x5499a6=[..._0xbc00b6?[_0x13d4f3(0xab)]:[],..._0x478b5b?[_0x13d4f3(0xec)]:[]],_0x4312b4=(0x0,helpers_1[_0x13d4f3(0xd9)])(_0x4a4e68),_0x3648e6=(0x0,helpers_1[_0x13d4f3(0xd9)])(_0x2e2484),_0x106a7c=((_0x3abf0f=_0x4312b4[_0x13d4f3(0x147)])!==null&&_0x3abf0f!==void 0x0?_0x3abf0f:0x0)+((_0x526db8=_0x3648e6['durationH'])!==null&&_0x526db8!==void 0x0?_0x526db8:0x0),_0x454cfa=_0x106a7c>0x0?{'running':(0x0,helpers_1[_0x13d4f3(0x133)])(((_0x139bc1=_0x4312b4['durationH'])!==null&&_0x139bc1!==void 0x0?_0x139bc1:0x0)/_0x106a7c,0x2),'cycling':(0x0,helpers_1['round'])(((_0x46c00d=_0x3648e6[_0x13d4f3(0x147)])!==null&&_0x46c00d!==void 0x0?_0x46c00d:0x0)/_0x106a7c,0x2)}:{'running':0x0,'cycling':0x0},_0xa73775=_0x106a7c>0x0?_0x454cfa[_0x13d4f3(0xab)]>=_0x454cfa[_0x13d4f3(0xec)]?_0x13d4f3(0xab):'cycling':null,_0x39d9b7=_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d[_0x13d4f3(0x128)],_0x389a0a=(_0x137fd2=(_0x45bd30=_0x39d9b7===null||_0x39d9b7===void 0x0?void 0x0:_0x39d9b7[_0x13d4f3(0x12e)])!==null&&_0x45bd30!==void 0x0?_0x45bd30:_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d['weeklyTrainingLoad'])!==null&&_0x137fd2!==void 0x0?_0x137fd2:null,_0x5955aa=(_0x8bc463=(_0x5187a8=_0x39d9b7===null||_0x39d9b7===void 0x0?void 0x0:_0x39d9b7[_0x13d4f3(0x136)])!==null&&_0x5187a8!==void 0x0?_0x5187a8:_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d['loadTunnelMax'])!==null&&_0x8bc463!==void 0x0?_0x8bc463:null,_0x2f8f6a=(_0x3fed4e=_0x39d9b7===null||_0x39d9b7===void 0x0?void 0x0:_0x39d9b7['dailyAcuteChronicWorkloadRatio'])!==null&&_0x3fed4e!==void 0x0?_0x3fed4e:_0x389a0a!==null&&_0x5955aa?_0x389a0a/_0x5955aa:null,_0x13ee18=(_0x259cea=_0x5a1dee===null||_0x5a1dee===void 0x0?void 0x0:_0x5a1dee['slice']()['reverse']()[_0x13d4f3(0x13e)](_0x2f711d=>_0x2f711d['speed']!==null))!==null&&_0x259cea!==void 0x0?_0x259cea:null,_0x2b1140=(_0x4db215=_0x5a1dee===null||_0x5a1dee===void 0x0?void 0x0:_0x5a1dee[_0x13d4f3(0xff)]()[_0x13d4f3(0xe3)]()[_0x13d4f3(0x13e)](_0x4d3347=>_0x4d3347[_0x13d4f3(0x11b)]!==null||_0x4d3347[_0x13d4f3(0x140)]!==null))!==null&&_0x4db215!==void 0x0?_0x4db215:null,_0x7385e4=(0x0,helpers_1[_0x13d4f3(0xd7)])(_0x2634e7,'CYCLING'),_0x14085c=(0x0,helpers_1[_0x13d4f3(0xd7)])(_0x2634e7,'RUNNING'),_0x54d485={'schema':_0x13d4f3(0x154),'snapshotDate':_0xe63fc0,'rangeDays':_0x1ab4bf,'source':{'provider':_0x13d4f3(0x14f),'endpointType':_0x13d4f3(0x107),'includedSports':['running',_0x13d4f3(0xec)],'excludedSports':[{'sport':_0x13d4f3(0x104),'reason':_0x13d4f3(0x114)}]},'athlete':{'age':(_0x26141a=_0x4df60f[_0x13d4f3(0xb8)])!==null&&_0x26141a!==void 0x0?_0x26141a:null,'gender':(0x0,helpers_1[_0x13d4f3(0xb0)])(_0x4df60f[_0x13d4f3(0xdc)]),'heightCm':(_0x1083e4=_0x4df60f[_0x13d4f3(0xfa)])!==null&&_0x1083e4!==void 0x0?_0x1083e4:null,'weightKg':_0x4df60f[_0x13d4f3(0xce)]&&_0x4df60f['weight']>0x1f4?(0x0,helpers_1[_0x13d4f3(0x133)])(_0x4df60f[_0x13d4f3(0xce)]/0x3e8,0x1):(0x0,helpers_1['round'])(_0x4df60f[_0x13d4f3(0xce)],0x1),'type':_0xbc00b6&&_0x478b5b?_0x13d4f3(0x126):(_0x59273a=_0x5499a6[0x0])!==null&&_0x59273a!==void 0x0?_0x59273a:null,'observedSports':_0x5499a6},'state':{'status':(0x0,helpers_1[_0x13d4f3(0xf0)])(_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d[_0x13d4f3(0x151)],_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d[_0x13d4f3(0xb2)]),'trend':(0x0,helpers_1[_0x13d4f3(0xc5)])(_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d[_0x13d4f3(0xef)]),'statusSport':(0x0,helpers_1[_0x13d4f3(0x102)])(_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d[_0x13d4f3(0xbf)]),'fitnessTrendSport':(0x0,helpers_1[_0x13d4f3(0x102)])(_0x59ca5d===null||_0x59ca5d===void 0x0?void 0x0:_0x59ca5d['fitnessTrendSport']),'acuteLoad':(0x0,helpers_1['round'])(_0x389a0a),'chronicLoad':(0x0,helpers_1[_0x13d4f3(0x133)])(_0x5955aa),'acwr':(0x0,helpers_1[_0x13d4f3(0x133)])(_0x2f8f6a,0x1),'acwrStatus':(0x0,helpers_1[_0x13d4f3(0x138)])(_0x39d9b7===null||_0x39d9b7===void 0x0?void 0x0:_0x39d9b7[_0x13d4f3(0xee)])},'loadBalance':{'lowAerobic':(0x0,helpers_1['loadBalanceTuple'])(_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0x14b)],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0x100)],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0xf6)]),'highAerobic':(0x0,helpers_1[_0x13d4f3(0xc2)])(_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3['monthlyLoadAerobicHigh'],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0x149)],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0xc7)]),'anaerobic':(0x0,helpers_1['loadBalanceTuple'])(_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0xe8)],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0x108)],_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0xe2)]),'feedback':(0x0,helpers_1[_0x13d4f3(0x138)])(_0x1262c3===null||_0x1262c3===void 0x0?void 0x0:_0x1262c3[_0x13d4f3(0x122)])},'sports':{'running':{'available':_0xbc00b6,'vo2Max':(_0x48371f=_0x4df60f[_0x13d4f3(0x124)])!==null&&_0x48371f!==void 0x0?_0x48371f:null,'threshold':{'pace':(0x0,helpers_1[_0x13d4f3(0x127)])(_0x13ee18===null||_0x13ee18===void 0x0?void 0x0:_0x13ee18['speed']),'hr':(_0x44f468=(_0x1bf7ca=(_0x5376b2=_0x2b1140===null||_0x2b1140===void 0x0?void 0x0:_0x2b1140['hearRate'])!==null&&_0x5376b2!==void 0x0?_0x5376b2:_0x2b1140===null||_0x2b1140===void 0x0?void 0x0:_0x2b1140[_0x13d4f3(0x140)])!==null&&_0x1bf7ca!==void 0x0?_0x1bf7ca:_0x4df60f[_0x13d4f3(0x109)])!==null&&_0x44f468!==void 0x0?_0x44f468:null},'power':{'ftp':(_0x444c50=(_0x5bf404=_0x14085c===null||_0x14085c===void 0x0?void 0x0:_0x14085c[_0x13d4f3(0x115)])!==null&&_0x5bf404!==void 0x0?_0x5bf404:_0x4df60f['functionalThresholdPower'])!==null&&_0x444c50!==void 0x0?_0x444c50:null,'wkg':(0x0,helpers_1[_0x13d4f3(0x133)])(_0x14085c===null||_0x14085c===void 0x0?void 0x0:_0x14085c[_0x13d4f3(0x105)],0x2),'stale':(_0xbf7908=_0x14085c===null||_0x14085c===void 0x0?void 0x0:_0x14085c[_0x13d4f3(0xd1)])!==null&&_0xbf7908!==void 0x0?_0xbf7908:null},'year':_0x4312b4,'form':{'cadence':(0x0,helpers_1[_0x13d4f3(0x133)])((0x0,helpers_1[_0x13d4f3(0x13b)])(_0x4a4e68,_0x13d4f3(0x146),_0x13d4f3(0xb7))),'strideCm':(0x0,helpers_1[_0x13d4f3(0x133)])((0x0,helpers_1[_0x13d4f3(0x13b)])(_0x4a4e68,_0x13d4f3(0xbb),_0x13d4f3(0xb7))),'gctMs':(0x0,helpers_1[_0x13d4f3(0x133)])((0x0,helpers_1['metricValue'])(_0x4a4e68,_0x13d4f3(0xb5),_0x13d4f3(0xb7))),'voCm':(0x0,helpers_1['round'])((0x0,helpers_1[_0x13d4f3(0x13b)])(_0x4a4e68,_0x13d4f3(0x142),_0x13d4f3(0xb7)),0x1)},'prediction':{'5k':(0x0,helpers_1[_0x13d4f3(0xaa)])(_0x7945b8===null||_0x7945b8===void 0x0?void 0x0:_0x7945b8['time5KFormatted']),'10k':(0x0,helpers_1[_0x13d4f3(0xaa)])(_0x7945b8===null||_0x7945b8===void 0x0?void 0x0:_0x7945b8[_0x13d4f3(0x111)]),'hm':(0x0,helpers_1[_0x13d4f3(0xaa)])(_0x7945b8===null||_0x7945b8===void 0x0?void 0x0:_0x7945b8[_0x13d4f3(0x130)]),'fm':(0x0,helpers_1[_0x13d4f3(0xaa)])(_0x7945b8===null||_0x7945b8===void 0x0?void 0x0:_0x7945b8['timeMarathonFormatted'])}},'cycling':{'available':_0x478b5b,'vo2Max':(_0x46b929=(_0x1d9f0c=(_0x2fd913=_0x17c35b===null||_0x17c35b===void 0x0?void 0x0:_0x17c35b[_0x13d4f3(0xec)])===null||_0x2fd913===void 0x0?void 0x0:_0x2fd913[_0x13d4f3(0xac)])!==null&&_0x1d9f0c!==void 0x0?_0x1d9f0c:_0x4df60f[_0x13d4f3(0x10e)])!==null&&_0x46b929!==void 0x0?_0x46b929:null,'power':{'ftp':(_0x5ae822=(_0x4760ae=_0x7385e4===null||_0x7385e4===void 0x0?void 0x0:_0x7385e4[_0x13d4f3(0x115)])!==null&&_0x4760ae!==void 0x0?_0x4760ae:_0x4df60f[_0x13d4f3(0x115)])!==null&&_0x5ae822!==void 0x0?_0x5ae822:null,'wkg':(0x0,helpers_1['round'])(_0x7385e4===null||_0x7385e4===void 0x0?void 0x0:_0x7385e4[_0x13d4f3(0x105)],0x2),'stale':(_0x1181ba=_0x7385e4===null||_0x7385e4===void 0x0?void 0x0:_0x7385e4['isStale'])!==null&&_0x1181ba!==void 0x0?_0x1181ba:null},'year':_0x3648e6,'form':{'avgPower':(0x0,helpers_1[_0x13d4f3(0x133)])((0x0,helpers_1[_0x13d4f3(0x13b)])(_0x2e2484,_0x13d4f3(0xb1),_0x13d4f3(0xb7))),'cadence':(0x0,helpers_1[_0x13d4f3(0x133)])((0x0,helpers_1[_0x13d4f3(0x13b)])(_0x2e2484,_0x13d4f3(0x144),_0x13d4f3(0xb7)))},'ability':{'type':(0x0,helpers_1['lowerSnake'])(_0x223075===null||_0x223075===void 0x0?void 0x0:_0x223075[_0x13d4f3(0x143)]),'aerobicEndurance':(_0x4bf56a=_0x223075===null||_0x223075===void 0x0?void 0x0:_0x223075[_0x13d4f3(0xaf)])!==null&&_0x4bf56a!==void 0x0?_0x4bf56a:null,'aerobicCapacity':(_0x200033=_0x223075===null||_0x223075===void 0x0?void 0x0:_0x223075[_0x13d4f3(0x150)])!==null&&_0x200033!==void 0x0?_0x200033:null,'anaerobicCapacity':(_0x5c5c13=_0x223075===null||_0x223075===void 0x0?void 0x0:_0x223075[_0x13d4f3(0xd4)])!==null&&_0x5c5c13!==void 0x0?_0x5c5c13:null}}},'multiSport':{'isMultiSport':_0x5499a6[_0x13d4f3(0xb3)]>0x1,'observedSports':_0x5499a6,'durationShare':_0x454cfa,'dominantByDuration':_0xa73775,'note':_0x13d4f3(0x12a)},'trend90d':{'statusDays':(0x0,helpers_1[_0x13d4f3(0xcc)])(_0x5e26c5),'load':(0x0,helpers_1[_0x13d4f3(0x14c)])(_0x5e26c5)},'dataCompleteness':{'profile':_0x2e28dd!==null,'trainingStatus':_0x59ca5d!==null,'loadBalance':_0x1262c3!==null,'runningStats':_0xbc00b6,'cyclingStats':_0x478b5b,'swimmingStats':_0x13d4f3(0x11a),'recovery':![],'recentActivities':![],'subjectiveFeedback':![],'personalRecords':Array[_0x13d4f3(0xc0)](_0x9ce700)&&_0x9ce700[_0x13d4f3(0xb3)]>0x0},'aiHints':[]};return _0x9ce700&&(_0x54d485[_0x13d4f3(0x12d)]=_0x9ce700),_0x54d485[_0x13d4f3(0xb4)]=(0x0,helpers_1[_0x13d4f3(0x12c)])(_0x54d485),_0x54d485;};exports[a20_0x1ae372(0xe9)]=buildTrainingOverview;
@@ -1 +1 @@
1
- 'use strict';const a21_0x349cce=a21_0x1919;(function(_0x12c201,_0x468353){const _0x5a11e3=a21_0x1919,_0x23af0f=_0x12c201();while(!![]){try{const _0x3b741a=parseInt(_0x5a11e3(0x19c))/0x1+-parseInt(_0x5a11e3(0x1c4))/0x2+parseInt(_0x5a11e3(0x1db))/0x3*(parseInt(_0x5a11e3(0x1dc))/0x4)+parseInt(_0x5a11e3(0x1cd))/0x5+parseInt(_0x5a11e3(0x1be))/0x6*(-parseInt(_0x5a11e3(0x1c2))/0x7)+-parseInt(_0x5a11e3(0x1b8))/0x8+-parseInt(_0x5a11e3(0x19b))/0x9;if(_0x3b741a===_0x468353)break;else _0x23af0f['push'](_0x23af0f['shift']());}catch(_0x39cd5b){_0x23af0f['push'](_0x23af0f['shift']());}}}(a21_0x4408,0x469fa));function a21_0x1919(_0x568dcf,_0x177a11){_0x568dcf=_0x568dcf-0x18d;const _0x440888=a21_0x4408();let _0x19194d=_0x440888[_0x568dcf];return _0x19194d;}function a21_0x4408(){const _0x1d4716=['toMinutes','availability','totalSleepTimeInSeconds','restingHr','moderate_good','numericValues','compactLower','buildIncludedMetrics','bodyBatteryTrend','today','lastNightAvg','awakeSleepSeconds','range','2029572pEuTJp','100413fEKEmQ','average','bodyBatteryChange','needMin','deepSleepSeconds','bodyBattery','respiration','weeklyAvg','spO2','daily','hrv','find','skinTempC','remTime','maximum','minimum','avgHeartRate','durationMin','sleepScore','localeCompare','some','averageRespirationValue','highBodyBattery','lightSleepSeconds','wellness_overview_v1','calendarDate','hrvReadingCount','number','1021904wtqXyV','score','sleep','recent','overall','sleepScores','548778JPVbme','values','lowBodyBattery','buildWellnessOverview','14UFJurl','./wellness-summary','22984VLUeRC','__esModule','low','restingHeartRate','sleepScoreQuality','dailySleepDTO','buildReadiness','endDate','lightTime','2822460kPmozB','buildUnavailableMetrics','recentDays','baseline','statusDaysFromHrv','status','length','map','filter','awakeTime','avgSleepStress','sleepTrend','sleepTimeSeconds','sort','213AnBvlF','9692yfnjKY','deepTime','balancedLow'];a21_0x4408=function(){return _0x1d4716;};return a21_0x4408();}Object['defineProperty'](exports,a21_0x349cce(0x1c5),{'value':!![]}),exports['buildWellnessOverview']=void 0x0;const helpers_1=require('./helpers'),wellness_summary_1=require(a21_0x349cce(0x1c3)),buildWellnessOverview=async(_0x7155e4,_0x3c4bed,_0x9b20d6={})=>{const _0x12e62e=a21_0x349cce;var _0x5da0ff,_0x3e9c27,_0x57873b,_0x4f75d7,_0xeac7ad,_0x2ee36b,_0x4692af,_0x4155d1,_0x2cf44b,_0x46f7ed,_0x1fa36f,_0x16ca41,_0x92da4c,_0x590b26,_0x11bb79,_0x3124e2,_0x43271b,_0x1506bc,_0x2f1e71,_0x80091c,_0x11d25e,_0x2a7d7d,_0x4fe60c,_0x6c4587,_0x56a6d3,_0x13202b,_0x1ddd86,_0x57593e,_0x7de145,_0x44c914,_0x3d76dd,_0x4577b8,_0x48d2b8,_0x4f8eec,_0x5ba416,_0x13614f;const _0x52af13=(_0x3e9c27=(_0x5da0ff=_0x9b20d6['rangeDays'])!==null&&_0x5da0ff!==void 0x0?_0x5da0ff:_0x9b20d6[_0x12e62e(0x1cf)])!==null&&_0x3e9c27!==void 0x0?_0x3e9c27:0x7,_0x1da1cc=await(0x0,wellness_summary_1['buildWellnessSummary'])(_0x7155e4,_0x3c4bed,{..._0x9b20d6,'recentDays':_0x52af13}),_0x533801=_0x1da1cc[_0x12e62e(0x19a)][_0x12e62e(0x1cb)],_0x3cea92=_0x1da1cc[_0x12e62e(0x197)]['hrv'],_0xd7abc7=[..._0x1da1cc[_0x12e62e(0x1bb)][_0x12e62e(0x1a6)]]['sort']((_0x353cbb,_0x516d5d)=>_0x353cbb[_0x12e62e(0x1b5)][_0x12e62e(0x1af)](_0x516d5d[_0x12e62e(0x1b5)])),_0x20c1dd=[..._0x1da1cc[_0x12e62e(0x1bb)]['sleep'][_0x12e62e(0x1a5)]]['sort']((_0x3768e8,_0x17e6c5)=>_0x3768e8[_0x12e62e(0x1b5)]['localeCompare'](_0x17e6c5[_0x12e62e(0x1b5)])),_0x576e27=_0x20c1dd[_0x12e62e(0x1a7)](_0x6aaee1=>_0x6aaee1[_0x12e62e(0x1b5)]===_0x533801),_0x6994da=_0x576e27===null||_0x576e27===void 0x0?void 0x0:_0x576e27[_0x12e62e(0x1bf)],_0x36d76c=(_0x57873b=_0x1da1cc['today'][_0x12e62e(0x1ba)])===null||_0x57873b===void 0x0?void 0x0:_0x57873b[_0x12e62e(0x1c9)],_0x421573=[..._0x1da1cc[_0x12e62e(0x1bb)][_0x12e62e(0x1a1)]][_0x12e62e(0x1da)]((_0x37e704,_0x349d6f)=>_0x37e704[_0x12e62e(0x1b5)][_0x12e62e(0x1af)](_0x349d6f[_0x12e62e(0x1b5)])),_0x558ec7=_0x421573['find'](_0x1ef777=>_0x1ef777['calendarDate']===_0x533801),_0x55c606={'score':(_0x4692af=(_0x4f75d7=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1ae)])!==null&&_0x4f75d7!==void 0x0?_0x4f75d7:(_0x2ee36b=(_0xeac7ad=_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1bd)])===null||_0xeac7ad===void 0x0?void 0x0:_0xeac7ad[_0x12e62e(0x1bc)])===null||_0x2ee36b===void 0x0?void 0x0:_0x2ee36b['value'])!==null&&_0x4692af!==void 0x0?_0x4692af:null,'quality':(_0x4155d1=(0x0,helpers_1[_0x12e62e(0x194)])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1c8)]))!==null&&_0x4155d1!==void 0x0?_0x4155d1:(0x0,helpers_1['compactLower'])((_0x46f7ed=(_0x2cf44b=_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1bd)])===null||_0x2cf44b===void 0x0?void 0x0:_0x2cf44b[_0x12e62e(0x1bc)])===null||_0x46f7ed===void 0x0?void 0x0:_0x46f7ed['qualifierKey']),'durationMin':(_0x1fa36f=(0x0,helpers_1[_0x12e62e(0x18e)])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x190)]))!==null&&_0x1fa36f!==void 0x0?_0x1fa36f:(0x0,helpers_1['toMinutes'])(_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1d9)]),'needMin':(_0x16ca41=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da['sleepNeed'])!==null&&_0x16ca41!==void 0x0?_0x16ca41:null,'deepMin':(_0x92da4c=(0x0,helpers_1['toMinutes'])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1dd)]))!==null&&_0x92da4c!==void 0x0?_0x92da4c:(0x0,helpers_1[_0x12e62e(0x18e)])(_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1a0)]),'lightMin':(_0x590b26=(0x0,helpers_1[_0x12e62e(0x18e)])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1cc)]))!==null&&_0x590b26!==void 0x0?_0x590b26:(0x0,helpers_1['toMinutes'])(_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1b3)]),'remMin':(_0x11bb79=(0x0,helpers_1[_0x12e62e(0x18e)])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1a9)]))!==null&&_0x11bb79!==void 0x0?_0x11bb79:(0x0,helpers_1['toMinutes'])(_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c['remSleepSeconds']),'awakeMin':(_0x3124e2=(0x0,helpers_1[_0x12e62e(0x18e)])(_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1d6)]))!==null&&_0x3124e2!==void 0x0?_0x3124e2:(0x0,helpers_1['toMinutes'])(_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x199)]),'bodyBatteryChange':(_0x2f1e71=(_0x43271b=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da['bodyBatteryChange'])!==null&&_0x43271b!==void 0x0?_0x43271b:(_0x1506bc=_0x1da1cc[_0x12e62e(0x197)][_0x12e62e(0x1ba)])===null||_0x1506bc===void 0x0?void 0x0:_0x1506bc['bodyBatteryChange'])!==null&&_0x2f1e71!==void 0x0?_0x2f1e71:null,'restingHr':(_0x2a7d7d=(_0x80091c=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1c7)])!==null&&_0x80091c!==void 0x0?_0x80091c:(_0x11d25e=_0x1da1cc[_0x12e62e(0x197)][_0x12e62e(0x1ba)])===null||_0x11d25e===void 0x0?void 0x0:_0x11d25e[_0x12e62e(0x1c7)])!==null&&_0x2a7d7d!==void 0x0?_0x2a7d7d:null,'avgHr':(_0x4fe60c=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1ac)])!==null&&_0x4fe60c!==void 0x0?_0x4fe60c:null,'avgStress':(_0x6c4587=_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1d7)])!==null&&_0x6c4587!==void 0x0?_0x6c4587:null,'respiration':(_0x13202b=(_0x56a6d3=_0x6994da===null||_0x6994da===void 0x0?void 0x0:_0x6994da[_0x12e62e(0x1a2)])!==null&&_0x56a6d3!==void 0x0?_0x56a6d3:_0x36d76c===null||_0x36d76c===void 0x0?void 0x0:_0x36d76c[_0x12e62e(0x1b1)])!==null&&_0x13202b!==void 0x0?_0x13202b:null},_0x34a05e=_0x20c1dd[_0x12e62e(0x1d4)](_0x41fa3b=>_0x41fa3b['values']['sleepScore']),_0xe3c36d=_0x20c1dd[_0x12e62e(0x1d4)](_0x22bc09=>(0x0,helpers_1['toMinutes'])(_0x22bc09[_0x12e62e(0x1bf)][_0x12e62e(0x190)])),_0x455d2d=_0x20c1dd[_0x12e62e(0x1d4)](_0x3dc456=>_0x3dc456['values']['sleepNeed']),_0x3a3c50=_0x20c1dd['map'](_0x2713fe=>_0x2713fe['values'][_0x12e62e(0x19e)]),_0x3c1c5d=_0x20c1dd[_0x12e62e(0x1d4)](_0x1dfac7=>_0x1dfac7[_0x12e62e(0x1bf)]['restingHeartRate']),_0x1f88ad=_0x20c1dd[_0x12e62e(0x1d4)](_0x481413=>_0x481413['values'][_0x12e62e(0x1a2)]),_0x1e4acf=_0x421573[_0x12e62e(0x1d4)](_0x52afaa=>_0x52afaa['values']['lowBodyBattery']),_0x181ce6=_0x421573[_0x12e62e(0x1d4)](_0x100bff=>_0x100bff[_0x12e62e(0x1bf)][_0x12e62e(0x1b2)]),_0x45f93f=_0x3cea92!==null,_0x30410a=_0x45f93f||_0xd7abc7['length']>0x0,_0x343726=_0x55c606[_0x12e62e(0x1b9)]!==null||_0x55c606[_0x12e62e(0x1ad)]!==null,_0x4299a7=_0x343726||_0x20c1dd[_0x12e62e(0x1d3)]>0x0,_0x4a0829=_0x558ec7!==undefined,_0xbad045=_0x4a0829||_0x421573[_0x12e62e(0x1d3)]>0x0,_0x3962c9=_0x55c606[_0x12e62e(0x191)]!==null,_0x1c0901=_0x3962c9||(0x0,helpers_1[_0x12e62e(0x193)])(_0x3c1c5d)[_0x12e62e(0x1d3)]>0x0,_0x489137=_0x55c606[_0x12e62e(0x1a2)]!==null,_0x41b235=_0x489137||(0x0,helpers_1[_0x12e62e(0x193)])(_0x1f88ad)[_0x12e62e(0x1d3)]>0x0,_0x37706b=_0x20c1dd['some'](_0x1ccef6=>typeof _0x1ccef6['values'][_0x12e62e(0x1a4)]===_0x12e62e(0x1b7)),_0xf4181b=_0x20c1dd[_0x12e62e(0x1b0)](_0x45e338=>typeof _0x45e338[_0x12e62e(0x1bf)][_0x12e62e(0x1a8)]===_0x12e62e(0x1b7)||typeof _0x45e338['values']['skinTempF']===_0x12e62e(0x1b7)),_0x3697c0={'hrv':(0x0,helpers_1[_0x12e62e(0x18f)])(_0x30410a,_0x45f93f),'sleep':(0x0,helpers_1['availability'])(_0x4299a7,_0x343726),'bodyBattery':(0x0,helpers_1[_0x12e62e(0x18f)])(_0xbad045,_0x4a0829),'restingHeartRate':(0x0,helpers_1[_0x12e62e(0x18f)])(_0x1c0901,_0x3962c9),'respiration':(0x0,helpers_1['availability'])(_0x41b235,_0x489137),'spo2':(0x0,helpers_1[_0x12e62e(0x18f)])(_0x37706b,![]),'skinTemp':(0x0,helpers_1[_0x12e62e(0x18f)])(_0xf4181b,![])},_0x3960b6=(0x0,helpers_1[_0x12e62e(0x19d)])(_0x34a05e),_0x1cec7f=(0x0,helpers_1[_0x12e62e(0x19d)])(_0x181ce6),_0x141f2c=(0x0,helpers_1[_0x12e62e(0x1ab)])(_0x1e4acf),_0x14dc4a=(_0x57593e=(_0x1ddd86=_0x421573[_0x421573['length']-0x1])===null||_0x1ddd86===void 0x0?void 0x0:_0x1ddd86[_0x12e62e(0x1bf)][_0x12e62e(0x1c0)])!==null&&_0x57593e!==void 0x0?_0x57593e:null,_0x26bbea={'schema':_0x12e62e(0x1b4),'snapshotDate':_0x533801,'rangeDays':_0x52af13,'source':{'provider':'garmin','includedMetrics':(0x0,helpers_1[_0x12e62e(0x195)])(_0x3697c0),'unavailableMetrics':(0x0,helpers_1[_0x12e62e(0x1ce)])(_0x3697c0)},'availability':_0x3697c0,'today':{'date':_0x533801,'hrv':{'status':(0x0,helpers_1[_0x12e62e(0x194)])(_0x3cea92===null||_0x3cea92===void 0x0?void 0x0:_0x3cea92[_0x12e62e(0x1d2)]),'lastNightAvg':(_0x7de145=_0x3cea92===null||_0x3cea92===void 0x0?void 0x0:_0x3cea92[_0x12e62e(0x198)])!==null&&_0x7de145!==void 0x0?_0x7de145:null,'weeklyAvg':(_0x44c914=_0x3cea92===null||_0x3cea92===void 0x0?void 0x0:_0x3cea92[_0x12e62e(0x1a3)])!==null&&_0x44c914!==void 0x0?_0x44c914:null,'baseline':[(_0x4577b8=(_0x3d76dd=_0x3cea92===null||_0x3cea92===void 0x0?void 0x0:_0x3cea92[_0x12e62e(0x1d0)])===null||_0x3d76dd===void 0x0?void 0x0:_0x3d76dd[_0x12e62e(0x18d)])!==null&&_0x4577b8!==void 0x0?_0x4577b8:null,(_0x4f8eec=(_0x48d2b8=_0x3cea92===null||_0x3cea92===void 0x0?void 0x0:_0x3cea92[_0x12e62e(0x1d0)])===null||_0x48d2b8===void 0x0?void 0x0:_0x48d2b8['balancedUpper'])!==null&&_0x4f8eec!==void 0x0?_0x4f8eec:null],'readings':_0x1da1cc['today'][_0x12e62e(0x1b6)]},'sleep':_0x55c606,'bodyBattery':{'low':(_0x5ba416=_0x558ec7===null||_0x558ec7===void 0x0?void 0x0:_0x558ec7[_0x12e62e(0x1bf)][_0x12e62e(0x1c0)])!==null&&_0x5ba416!==void 0x0?_0x5ba416:null,'high':(_0x13614f=_0x558ec7===null||_0x558ec7===void 0x0?void 0x0:_0x558ec7[_0x12e62e(0x1bf)]['highBodyBattery'])!==null&&_0x13614f!==void 0x0?_0x13614f:null,'changeDuringSleep':_0x55c606[_0x12e62e(0x19e)]}},'recent7d':{'hrv':{'statusDays':(0x0,helpers_1[_0x12e62e(0x1d1)])(_0xd7abc7),'avgLastNight':(0x0,helpers_1[_0x12e62e(0x19d)])(_0xd7abc7['map'](_0x4ec082=>_0x4ec082['lastNightAvg'])),'minLastNight':(0x0,helpers_1[_0x12e62e(0x1ab)])(_0xd7abc7[_0x12e62e(0x1d4)](_0x3075b0=>_0x3075b0[_0x12e62e(0x198)])),'maxLastNight':(0x0,helpers_1[_0x12e62e(0x1aa)])(_0xd7abc7[_0x12e62e(0x1d4)](_0xa550bf=>_0xa550bf['lastNightAvg'])),'trend':(0x0,helpers_1['hrvTrend'])(_0xd7abc7)},'sleep':{'avgScore':_0x3960b6,'avgDurationMin':(0x0,helpers_1[_0x12e62e(0x19d)])(_0xe3c36d),'avgNeedMin':(0x0,helpers_1[_0x12e62e(0x19d)])(_0x455d2d),'avgBodyBatteryChange':(0x0,helpers_1['average'])(_0x3a3c50),'avgRestingHr':(0x0,helpers_1[_0x12e62e(0x19d)])(_0x3c1c5d),'avgRespiration':(0x0,helpers_1[_0x12e62e(0x19d)])(_0x1f88ad,0x1),'lowScoreDays':_0x20c1dd[_0x12e62e(0x1d5)](_0x3ff7cf=>_0x3ff7cf[_0x12e62e(0x1bf)]['sleepScore']<0x4b)[_0x12e62e(0x1d4)](_0x353994=>[_0x353994['calendarDate'],_0x353994[_0x12e62e(0x1bf)][_0x12e62e(0x1ae)]]),'trend':(0x0,helpers_1[_0x12e62e(0x1d8)])(_0x3960b6,_0x55c606['durationMin'],_0x55c606[_0x12e62e(0x19f)],_0x55c606['quality'])},'bodyBattery':{'avgLow':(0x0,helpers_1[_0x12e62e(0x19d)])(_0x1e4acf),'avgHigh':_0x1cec7f,'minLow':_0x141f2c,'maxHigh':(0x0,helpers_1[_0x12e62e(0x1aa)])(_0x181ce6),'trend':(0x0,helpers_1[_0x12e62e(0x196)])(_0x1cec7f,_0x141f2c,_0x14dc4a)}},'readiness':{'status':_0x12e62e(0x192),'confidence':_0x12e62e(0x1c6),'positiveSignals':[],'cautionSignals':[]},'aiHints':[]};return _0x26bbea['readiness']=(0x0,helpers_1[_0x12e62e(0x1ca)])(_0x26bbea),_0x26bbea['aiHints']=(0x0,helpers_1['buildWellnessAiHints'])(_0x26bbea),_0x26bbea;};exports[a21_0x349cce(0x1c1)]=buildWellnessOverview;
1
+ 'use strict';const a21_0x5c6af2=a21_0x47e6;function a21_0x47e6(_0x55faf1,_0x21510a){_0x55faf1=_0x55faf1-0xfe;const _0x40a97a=a21_0x40a9();let _0x47e68e=_0x40a97a[_0x55faf1];return _0x47e68e;}(function(_0x1e853f,_0x2c5a66){const _0x1cfeba=a21_0x47e6,_0x29fb98=_0x1e853f();while(!![]){try{const _0x1c3c85=parseInt(_0x1cfeba(0x143))/0x1+-parseInt(_0x1cfeba(0x11d))/0x2+-parseInt(_0x1cfeba(0x109))/0x3*(-parseInt(_0x1cfeba(0x132))/0x4)+parseInt(_0x1cfeba(0xff))/0x5*(parseInt(_0x1cfeba(0x137))/0x6)+parseInt(_0x1cfeba(0x129))/0x7+parseInt(_0x1cfeba(0x136))/0x8+-parseInt(_0x1cfeba(0x10d))/0x9;if(_0x1c3c85===_0x2c5a66)break;else _0x29fb98['push'](_0x29fb98['shift']());}catch(_0x5575a1){_0x29fb98['push'](_0x29fb98['shift']());}}}(a21_0x40a9,0xab3c2));Object[a21_0x5c6af2(0x139)](exports,a21_0x5c6af2(0x113),{'value':!![]}),exports['buildWellnessOverview']=void 0x0;const helpers_1=require(a21_0x5c6af2(0x138)),wellness_summary_1=require(a21_0x5c6af2(0x119)),buildWellnessOverview=async(_0x352430,_0x4a572d,_0x2cf55c={})=>{const _0x375185=a21_0x5c6af2;var _0x186781,_0x12a810,_0x3c057e,_0x59461f,_0x4a065a,_0x2422d3,_0x5d1536,_0x13797c,_0x457d5b,_0x918182,_0x4491b2,_0x2b4549,_0x3c5a0f,_0x415392,_0x8a7e2,_0x424c77,_0x188a41,_0x111b7a,_0x1fc709,_0x5ac690,_0x1826c3,_0x91f0eb,_0xce501f,_0x1439f0,_0x1133b7,_0x572905,_0x3696c8,_0x2136ab,_0x4d3a78,_0x45c8fb,_0x25a760,_0x5561d0,_0x10b7da,_0x557098,_0xad7d7c,_0x545bde;const _0x106fd7=(_0x12a810=(_0x186781=_0x2cf55c[_0x375185(0x120)])!==null&&_0x186781!==void 0x0?_0x186781:_0x2cf55c['recentDays'])!==null&&_0x12a810!==void 0x0?_0x12a810:0x7,_0x4f5b91=await(0x0,wellness_summary_1['buildWellnessSummary'])(_0x352430,_0x4a572d,{..._0x2cf55c,'recentDays':_0x106fd7}),_0x46b383=_0x4f5b91['range']['endDate'],_0x2f32dc=_0x4f5b91['today']['hrv'],_0x183958=[..._0x4f5b91['recent'][_0x375185(0x10e)]][_0x375185(0x126)]((_0x1e96d2,_0x121f3b)=>_0x1e96d2[_0x375185(0x12c)]['localeCompare'](_0x121f3b[_0x375185(0x12c)])),_0x4d403a=[..._0x4f5b91[_0x375185(0x14a)][_0x375185(0x13a)][_0x375185(0x12f)]]['sort']((_0x1c6522,_0x3265be)=>_0x1c6522[_0x375185(0x12c)][_0x375185(0x147)](_0x3265be[_0x375185(0x12c)])),_0x4fc49b=_0x4d403a[_0x375185(0x145)](_0x14185c=>_0x14185c['calendarDate']===_0x46b383),_0x353a12=_0x4fc49b===null||_0x4fc49b===void 0x0?void 0x0:_0x4fc49b[_0x375185(0x105)],_0x36f121=(_0x3c057e=_0x4f5b91[_0x375185(0x122)][_0x375185(0x13a)])===null||_0x3c057e===void 0x0?void 0x0:_0x3c057e[_0x375185(0x11a)],_0x4e778a=[..._0x4f5b91[_0x375185(0x14a)][_0x375185(0x12b)]][_0x375185(0x126)]((_0x337d9b,_0x4a8ad6)=>_0x337d9b[_0x375185(0x12c)][_0x375185(0x147)](_0x4a8ad6[_0x375185(0x12c)])),_0x4c71cb=_0x4e778a[_0x375185(0x145)](_0x3083d3=>_0x3083d3[_0x375185(0x12c)]===_0x46b383),_0x4f5c7c={'score':(_0x5d1536=(_0x59461f=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x107)])!==null&&_0x59461f!==void 0x0?_0x59461f:(_0x2422d3=(_0x4a065a=_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x10c)])===null||_0x4a065a===void 0x0?void 0x0:_0x4a065a['overall'])===null||_0x2422d3===void 0x0?void 0x0:_0x2422d3[_0x375185(0x12d)])!==null&&_0x5d1536!==void 0x0?_0x5d1536:null,'quality':(_0x13797c=(0x0,helpers_1['compactLower'])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x100)]))!==null&&_0x13797c!==void 0x0?_0x13797c:(0x0,helpers_1[_0x375185(0x106)])((_0x918182=(_0x457d5b=_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x10c)])===null||_0x457d5b===void 0x0?void 0x0:_0x457d5b['overall'])===null||_0x918182===void 0x0?void 0x0:_0x918182[_0x375185(0x108)]),'durationMin':(_0x4491b2=(0x0,helpers_1[_0x375185(0x130)])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x13c)]))!==null&&_0x4491b2!==void 0x0?_0x4491b2:(0x0,helpers_1[_0x375185(0x130)])(_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x12e)]),'needMin':(_0x2b4549=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x133)])!==null&&_0x2b4549!==void 0x0?_0x2b4549:null,'deepMin':(_0x3c5a0f=(0x0,helpers_1[_0x375185(0x130)])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x13e)]))!==null&&_0x3c5a0f!==void 0x0?_0x3c5a0f:(0x0,helpers_1[_0x375185(0x130)])(_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121['deepSleepSeconds']),'lightMin':(_0x415392=(0x0,helpers_1[_0x375185(0x130)])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12['lightTime']))!==null&&_0x415392!==void 0x0?_0x415392:(0x0,helpers_1['toMinutes'])(_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x14e)]),'remMin':(_0x8a7e2=(0x0,helpers_1[_0x375185(0x130)])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x135)]))!==null&&_0x8a7e2!==void 0x0?_0x8a7e2:(0x0,helpers_1['toMinutes'])(_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121['remSleepSeconds']),'awakeMin':(_0x424c77=(0x0,helpers_1[_0x375185(0x130)])(_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x101)]))!==null&&_0x424c77!==void 0x0?_0x424c77:(0x0,helpers_1[_0x375185(0x130)])(_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x123)]),'bodyBatteryChange':(_0x1fc709=(_0x188a41=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12['bodyBatteryChange'])!==null&&_0x188a41!==void 0x0?_0x188a41:(_0x111b7a=_0x4f5b91[_0x375185(0x122)][_0x375185(0x13a)])===null||_0x111b7a===void 0x0?void 0x0:_0x111b7a['bodyBatteryChange'])!==null&&_0x1fc709!==void 0x0?_0x1fc709:null,'restingHr':(_0x91f0eb=(_0x5ac690=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x11e)])!==null&&_0x5ac690!==void 0x0?_0x5ac690:(_0x1826c3=_0x4f5b91[_0x375185(0x122)][_0x375185(0x13a)])===null||_0x1826c3===void 0x0?void 0x0:_0x1826c3[_0x375185(0x11e)])!==null&&_0x91f0eb!==void 0x0?_0x91f0eb:null,'avgHr':(_0xce501f=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x104)])!==null&&_0xce501f!==void 0x0?_0xce501f:null,'avgStress':(_0x1439f0=_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x144)])!==null&&_0x1439f0!==void 0x0?_0x1439f0:null,'respiration':(_0x572905=(_0x1133b7=_0x353a12===null||_0x353a12===void 0x0?void 0x0:_0x353a12[_0x375185(0x131)])!==null&&_0x1133b7!==void 0x0?_0x1133b7:_0x36f121===null||_0x36f121===void 0x0?void 0x0:_0x36f121[_0x375185(0x121)])!==null&&_0x572905!==void 0x0?_0x572905:null},_0x3bd031=_0x4d403a['map'](_0x378e85=>_0x378e85[_0x375185(0x105)]['sleepScore']),_0x56ef56=_0x4d403a[_0x375185(0x148)](_0x3bed8c=>(0x0,helpers_1[_0x375185(0x130)])(_0x3bed8c['values']['totalSleepTimeInSeconds'])),_0x4b30f3=_0x4d403a[_0x375185(0x148)](_0x111f23=>_0x111f23[_0x375185(0x105)][_0x375185(0x133)]),_0x4e8478=_0x4d403a['map'](_0x47f6b7=>_0x47f6b7[_0x375185(0x105)]['bodyBatteryChange']),_0x130f36=_0x4d403a['map'](_0x538784=>_0x538784[_0x375185(0x105)]['restingHeartRate']),_0x320c70=_0x4d403a[_0x375185(0x148)](_0x327a26=>_0x327a26[_0x375185(0x105)]['respiration']),_0x4be37c=_0x4e778a[_0x375185(0x148)](_0x2206fe=>_0x2206fe[_0x375185(0x105)][_0x375185(0x134)]),_0x1c4adf=_0x4e778a['map'](_0xc387b7=>_0xc387b7[_0x375185(0x105)][_0x375185(0x14b)]),_0x452a18=_0x2f32dc!==null,_0x1a4e3b=_0x452a18||_0x183958[_0x375185(0x103)]>0x0,_0x63d292=_0x4f5c7c[_0x375185(0x14d)]!==null||_0x4f5c7c[_0x375185(0x127)]!==null,_0x45f407=_0x63d292||_0x4d403a['length']>0x0,_0x3d69a2=_0x4c71cb!==undefined,_0x487c8d=_0x3d69a2||_0x4e778a[_0x375185(0x103)]>0x0,_0x2248b7=_0x4f5c7c[_0x375185(0xfe)]!==null,_0xfc77a3=_0x2248b7||(0x0,helpers_1['numericValues'])(_0x130f36)['length']>0x0,_0x43a4b4=_0x4f5c7c[_0x375185(0x131)]!==null,_0x4ec150=_0x43a4b4||(0x0,helpers_1[_0x375185(0x10a)])(_0x320c70)[_0x375185(0x103)]>0x0,_0x2d0f38=_0x4d403a[_0x375185(0x111)](_0xe864a=>typeof _0xe864a['values']['spO2']===_0x375185(0x11c)),_0x13f31f=_0x4d403a['some'](_0x32c483=>typeof _0x32c483[_0x375185(0x105)][_0x375185(0x140)]===_0x375185(0x11c)||typeof _0x32c483[_0x375185(0x105)][_0x375185(0x13d)]===_0x375185(0x11c)),_0x40e591={'hrv':(0x0,helpers_1['availability'])(_0x1a4e3b,_0x452a18),'sleep':(0x0,helpers_1[_0x375185(0x11f)])(_0x45f407,_0x63d292),'bodyBattery':(0x0,helpers_1[_0x375185(0x11f)])(_0x487c8d,_0x3d69a2),'restingHeartRate':(0x0,helpers_1[_0x375185(0x11f)])(_0xfc77a3,_0x2248b7),'respiration':(0x0,helpers_1[_0x375185(0x11f)])(_0x4ec150,_0x43a4b4),'spo2':(0x0,helpers_1['availability'])(_0x2d0f38,![]),'skinTemp':(0x0,helpers_1[_0x375185(0x11f)])(_0x13f31f,![])},_0x15374f=(0x0,helpers_1[_0x375185(0x141)])(_0x3bd031),_0x5885d7=(0x0,helpers_1['average'])(_0x1c4adf),_0x5cefc8=(0x0,helpers_1['minimum'])(_0x4be37c),_0xd204b2=(_0x2136ab=(_0x3696c8=_0x4e778a[_0x4e778a[_0x375185(0x103)]-0x1])===null||_0x3696c8===void 0x0?void 0x0:_0x3696c8['values']['lowBodyBattery'])!==null&&_0x2136ab!==void 0x0?_0x2136ab:null,_0x11af13={'schema':_0x375185(0x10f),'snapshotDate':_0x46b383,'rangeDays':_0x106fd7,'source':{'provider':_0x375185(0x110),'includedMetrics':(0x0,helpers_1[_0x375185(0x115)])(_0x40e591),'unavailableMetrics':(0x0,helpers_1['buildUnavailableMetrics'])(_0x40e591)},'availability':_0x40e591,'today':{'date':_0x46b383,'hrv':{'status':(0x0,helpers_1['compactLower'])(_0x2f32dc===null||_0x2f32dc===void 0x0?void 0x0:_0x2f32dc['status']),'lastNightAvg':(_0x4d3a78=_0x2f32dc===null||_0x2f32dc===void 0x0?void 0x0:_0x2f32dc[_0x375185(0x125)])!==null&&_0x4d3a78!==void 0x0?_0x4d3a78:null,'weeklyAvg':(_0x45c8fb=_0x2f32dc===null||_0x2f32dc===void 0x0?void 0x0:_0x2f32dc[_0x375185(0x128)])!==null&&_0x45c8fb!==void 0x0?_0x45c8fb:null,'baseline':[(_0x5561d0=(_0x25a760=_0x2f32dc===null||_0x2f32dc===void 0x0?void 0x0:_0x2f32dc[_0x375185(0x146)])===null||_0x25a760===void 0x0?void 0x0:_0x25a760[_0x375185(0x149)])!==null&&_0x5561d0!==void 0x0?_0x5561d0:null,(_0x557098=(_0x10b7da=_0x2f32dc===null||_0x2f32dc===void 0x0?void 0x0:_0x2f32dc['baseline'])===null||_0x10b7da===void 0x0?void 0x0:_0x10b7da[_0x375185(0x124)])!==null&&_0x557098!==void 0x0?_0x557098:null],'readings':_0x4f5b91[_0x375185(0x122)]['hrvReadingCount']},'sleep':_0x4f5c7c,'bodyBattery':{'low':(_0xad7d7c=_0x4c71cb===null||_0x4c71cb===void 0x0?void 0x0:_0x4c71cb['values'][_0x375185(0x134)])!==null&&_0xad7d7c!==void 0x0?_0xad7d7c:null,'high':(_0x545bde=_0x4c71cb===null||_0x4c71cb===void 0x0?void 0x0:_0x4c71cb[_0x375185(0x105)]['highBodyBattery'])!==null&&_0x545bde!==void 0x0?_0x545bde:null,'changeDuringSleep':_0x4f5c7c[_0x375185(0x118)]}},'recent7d':{'hrv':{'statusDays':(0x0,helpers_1[_0x375185(0x117)])(_0x183958),'avgLastNight':(0x0,helpers_1[_0x375185(0x141)])(_0x183958[_0x375185(0x148)](_0x2fad1f=>_0x2fad1f[_0x375185(0x125)])),'minLastNight':(0x0,helpers_1[_0x375185(0x142)])(_0x183958[_0x375185(0x148)](_0x48e6ee=>_0x48e6ee['lastNightAvg'])),'maxLastNight':(0x0,helpers_1['maximum'])(_0x183958[_0x375185(0x148)](_0x3fd30a=>_0x3fd30a['lastNightAvg'])),'trend':(0x0,helpers_1[_0x375185(0x11b)])(_0x183958)},'sleep':{'avgScore':_0x15374f,'avgDurationMin':(0x0,helpers_1[_0x375185(0x141)])(_0x56ef56),'avgNeedMin':(0x0,helpers_1['average'])(_0x4b30f3),'avgBodyBatteryChange':(0x0,helpers_1[_0x375185(0x141)])(_0x4e8478),'avgRestingHr':(0x0,helpers_1[_0x375185(0x141)])(_0x130f36),'avgRespiration':(0x0,helpers_1['average'])(_0x320c70,0x1),'lowScoreDays':_0x4d403a['filter'](_0x19b80e=>_0x19b80e['values']['sleepScore']<0x4b)[_0x375185(0x148)](_0x3ddc82=>[_0x3ddc82[_0x375185(0x12c)],_0x3ddc82[_0x375185(0x105)][_0x375185(0x107)]]),'trend':(0x0,helpers_1[_0x375185(0x13f)])(_0x15374f,_0x4f5c7c[_0x375185(0x127)],_0x4f5c7c['needMin'],_0x4f5c7c[_0x375185(0x102)])},'bodyBattery':{'avgLow':(0x0,helpers_1[_0x375185(0x141)])(_0x4be37c),'avgHigh':_0x5885d7,'minLow':_0x5cefc8,'maxHigh':(0x0,helpers_1['maximum'])(_0x1c4adf),'trend':(0x0,helpers_1[_0x375185(0x112)])(_0x5885d7,_0x5cefc8,_0xd204b2)}},'readiness':{'status':_0x375185(0x14f),'confidence':_0x375185(0x114),'positiveSignals':[],'cautionSignals':[]},'aiHints':[]};return _0x11af13[_0x375185(0x116)]=(0x0,helpers_1[_0x375185(0x12a)])(_0x11af13),_0x11af13[_0x375185(0x14c)]=(0x0,helpers_1[_0x375185(0x13b)])(_0x11af13),_0x11af13;};function a21_0x40a9(){const _0x297190=['balancedLow','recent','highBodyBattery','aiHints','score','lightSleepSeconds','moderate_good','restingHr','1247705hZouLJ','sleepScoreQuality','awakeTime','quality','length','avgHeartRate','values','compactLower','sleepScore','qualifierKey','69KJHoVq','numericValues','buildWellnessOverview','sleepScores','189027MERjjR','hrv','wellness_overview_v1','garmin','some','bodyBatteryTrend','__esModule','low','buildIncludedMetrics','readiness','statusDaysFromHrv','bodyBatteryChange','./wellness-summary','dailySleepDTO','hrvTrend','number','1250978muHMfM','restingHeartRate','availability','rangeDays','averageRespirationValue','today','awakeSleepSeconds','balancedUpper','lastNightAvg','sort','durationMin','weeklyAvg','4221616LTJQLD','buildReadiness','bodyBattery','calendarDate','value','sleepTimeSeconds','daily','toMinutes','respiration','472xIalez','sleepNeed','lowBodyBattery','remTime','2722208ltQEpA','6YiEJol','./helpers','defineProperty','sleep','buildWellnessAiHints','totalSleepTimeInSeconds','skinTempF','deepTime','sleepTrend','skinTempC','average','minimum','152251MpkIhp','avgSleepStress','find','baseline','localeCompare','map'];a21_0x40a9=function(){return _0x297190;};return a21_0x40a9();}exports[a21_0x5c6af2(0x10b)]=buildWellnessOverview;