





#import "LemmaSlopeOutputAverageCrop.h"
@import Network;

static NSString *moreCapCarSpan = nil;
static nw_path_monitor_t fatTatarTagPin = NULL;

@implementation LemmaSlopeOutputAverageCrop

+ (BOOL)pressTopEdgaTableThumb {
    return moreCapCarSpan != nil;
}

+ (NSString *)leakyMayMostType {
    return moreCapCarSpan ?: @"none";
}

+ (void)howAssertSupplyStickyHexCreation:(void (^)(BOOL pressTopEdgaTableThumb))completion {
    
    if (fatTatarTagPin != NULL) {
        nw_path_monitor_cancel(fatTatarTagPin);
        fatTatarTagPin = NULL;
    }
    
    
    fatTatarTagPin = nw_path_monitor_create();
    nw_path_monitor_set_queue(fatTatarTagPin, dispatch_get_main_queue());
    
    __block nw_path_monitor_t dueDueInvite = fatTatarTagPin;
    nw_path_monitor_set_update_handler(fatTatarTagPin, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                moreCapCarSpan = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                moreCapCarSpan = @"cellular";
            } else {
                
                moreCapCarSpan = @"other";
            }
            
            
            if (dueDueInvite) {
                nw_path_monitor_cancel(dueDueInvite);
                dueDueInvite = NULL;
                fatTatarTagPin = NULL;
            }
            
        } else {
            moreCapCarSpan = nil;
        }
        
        
        if (completion) {
            completion([self pressTopEdgaTableThumb]);
        }
        
    });
    
    
    nw_path_monitor_start(fatTatarTagPin);
}

@end
