







#import "RecentlyOnlineCell.h"
#define fetched(odd) __weak typeof(odd) weak##odd = odd;
#define stereoSay(odd) __strong typeof(odd) odd = weak##odd;

@interface RecentlyOnlineCell()



@property (nonatomic, strong) NSTimer *great;

@property (nonatomic, assign) BOOL idiomUsability;

@end

@implementation RecentlyOnlineCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _hostingSize = CGSizeMake(200, 40);
        _bigLeastRing = 4;
        _model = nil;
        _channelCount = 3;
        _optAll = 0;
        _resolvingDecay = 0;
        _status = UnfocusedTimeBoldChromiumDarkerFinish;
        _idiomUsability = NO;
        
    }
    return self;
}

- (void)startupPeopleStripMildCosmicValue
{
    CGFloat fastMeal = [[self.layer presentationLayer] frame].origin.x;
    CGFloat mayHeapWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + mayHeapWidth) / self.bigLeastRing;
    
    
    CGFloat foggyLeftTime = mayHeapWidth / speed;
    
    if (_resolvingDecay > 0) {
        self.status = EitherBasalEmbeddedTouchesPaddleBig;
        if (-1< fastMeal < 1) {
            
            if (_idiomUsability) { return;}
            _idiomUsability = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_resolvingDecay];
            [self performSelector:@selector(spaAndStatus) withObject:nil afterDelay:_resolvingDecay - foggyLeftTime];
        }
    }
}
- (void)spaAndStatus
{
    self.status = BestSuccessGopherDroppedSummaryReliable;
}

- (void)illIntrinsicScalingMagnesiumBody:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = BestSuccessGopherDroppedSummaryReliable;
    
    _great = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(startupPeopleStripMildCosmicValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_great forMode:NSRunLoopCommonModes];
    
    
    fetched(self);
    [UIView animateWithDuration:self.bigLeastRing delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        stereoSay(self);
        self->_status = BestSuccessGopherDroppedSummaryReliable;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_great) {
            [self->_great invalidate];
            self->_great = nil;
        }
        
    }];
}

- (void)pause
{
    
    CFTimeInterval countTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
    
    
    self.layer.timeOffset = countTime;
    
    
    self.layer.speed = 0;
}

- (void)resume
{
    
    CFTimeInterval countTime = self.layer.timeOffset;
    
    CFTimeInterval optEarTextIcon = CACurrentMediaTime() - countTime;
    
    self.layer.timeOffset = 0;
    
    self.layer.beginTime = optEarTextIcon;
    
    self.layer.speed = 1;
}


@end
