







#import "FarCapKeepSiteCell.h"
#define tagBody(fit) __weak typeof(fit) weak##fit = fit;
#define dueInvite(fit) __strong typeof(fit) fit = weak##fit;

@interface FarCapKeepSiteCell()



@property (nonatomic, strong) NSTimer *relay;

@property (nonatomic, assign) BOOL senderPrevents;

@end

@implementation FarCapKeepSiteCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _lineIcySize = CGSizeMake(200, 40);
        _hangCoercion = 4;
        _model = nil;
        _channelCount = 3;
        _answer = 0;
        _flowJobOptFace = 0;
        _status = ResizeAdjustedSixBikeAddArguments;
        _senderPrevents = NO;
        
    }
    return self;
}

- (void)distinctNormalizePubExtrasFourteenValue
{
    CGFloat oneSleep = [[self.layer presentationLayer] frame].origin.x;
    CGFloat callingWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + callingWidth) / self.hangCoercion;
    
    
    CGFloat pathIssueTime = callingWidth / speed;
    
    if (_flowJobOptFace > 0) {
        self.status = KeyboardArtsBlackFireLevelChecking;
        if (oneSleep > -1 && oneSleep < 1) {
            
            if (_senderPrevents) { return;}
            _senderPrevents = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_flowJobOptFace];
            [self performSelector:@selector(binaryStatus) withObject:nil afterDelay:_flowJobOptFace - pathIssueTime];
        }
    }
}
- (void)binaryStatus
{
    self.status = GolfPanelButtonNibblesMeanBackwards;
}

- (void)stakeDestroyFloaterVerticalMiddle:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = GolfPanelButtonNibblesMeanBackwards;
    
    _relay = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(distinctNormalizePubExtrasFourteenValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_relay forMode:NSRunLoopCommonModes];
    
    
    tagBody(self);
    [UIView animateWithDuration:self.hangCoercion delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        dueInvite(self);
        self->_status = GolfPanelButtonNibblesMeanBackwards;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_relay) {
            [self->_relay invalidate];
            self->_relay = nil;
        }
        
    }];
}

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

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


@end
