






#import "FarShearViewController.h"
#import "BigCustomManager.h"

@interface FarShearViewController ()

@end

@implementation FarShearViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.hisPauseKit.opaque = NO;
    if ([self shareSpeakAssetFatCaptured:self.lookPairKey]) {
        NSMutableDictionary *she = [NSMutableDictionary new];
        she[MusicLowPen.artBehaveMay.cosmicSixCombineKeyScattered] = @{
            MusicLowPen.artBehaveMay.dolbyCutCombinedIgnoringFactor:@(MAXFLOAT),
            MusicLowPen.artBehaveMay.correctedBordersVeryExecuteHidden:@(MAXFLOAT)
        };
        she[MusicLowPen.artBehaveMay.hairFaxBestHex] = self.lookPairKey;
        she[MusicLowPen.artBehaveMay.jobCommonGivenAskWhoShelf] = @(NO);
        she[MusicLowPen.artBehaveMay.canSunSmileLowInnerMap] = @(NO);
        self.lookPairKey = she;
    }
    
    if (![self.lookPairKey[MusicLowPen.artBehaveMay.replyOperandChallengeYetLetters] boolValue]) {
        self.view.backgroundColor = UIColor.blackColor;
    }else {
        self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    }
    self.sumHourIcon = self.lookPairKey[MusicLowPen.artBehaveMay.hairFaxBestHex];
    
}

- (BOOL)shareSpeakAssetFatCaptured:(NSString *)url
{
    if (![url isKindOfClass:[NSString class]]) {
        return NO;
    }
    NSString *relay =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *nowLift = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",relay];
    return [nowLift evaluateWithObject:url];
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if ([self.lookPairKey[MusicLowPen.artBehaveMay.jobCommonGivenAskWhoShelf] boolValue]) {
        self.endTaggingButton.hidden = NO;
        [self.view bringSubviewToFront:self.endTaggingButton];
    }
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    CGFloat width = [self.lookPairKey[MusicLowPen.artBehaveMay.cosmicSixCombineKeyScattered][MusicLowPen.artBehaveMay.dolbyCutCombinedIgnoringFactor] floatValue];
    CGFloat height = [self.lookPairKey[MusicLowPen.artBehaveMay.cosmicSixCombineKeyScattered][MusicLowPen.artBehaveMay.correctedBordersVeryExecuteHidden] floatValue];
    CGFloat Surface = [UIScreen mainScreen].bounds.size.width;
    CGFloat AreThat = [UIScreen mainScreen].bounds.size.height;
    CGFloat strokeDue = width == 0 ? Surface : MIN(width, Surface);
    CGFloat sobAgeMind = height == 0 ? AreThat : MIN(height, AreThat);
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(strokeDue, sobAgeMind));
    }];
    if (Surface == strokeDue && AreThat == sobAgeMind) {
        UIWindow *closestWindow = [[BigCustomManager shared] performerRedWindow];
        UIEdgeInsets safe = closestWindow.safeAreaInsets;
        [self.hisPauseKit mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(safe);
        }];
    }else {
        [self.hisPauseKit mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
    }
}


- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation {
    [super webView:webView didFailProvisionalNavigation:navigation];
    self.endTaggingButton.hidden = NO;
}

- (void)alwaysPossibleNicknameEnumerateProposedYouHigher:(NSURL *)URL {
    [super alwaysPossibleNicknameEnumerateProposedYouHigher:URL];
    
    
    
    
    void (^completionBlock)(BOOL) = self.lookPairKey[MusicLowPen.artBehaveMay.shotOuncesLocationsStrictlySendNative];
    if (completionBlock) {
        [[BigCustomManager shared] waxNativeYetWindow];
        completionBlock([URL.host isEqualToString:MusicLowPen.artBehaveMay.assetUnifiedReachedPickerConstantTarget]);
    }
}

- (void)keepSourcesMonthSiblingsRed:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super keepSourcesMonthSiblingsRed:touches withEvent:event];
    if ([self.lookPairKey[MusicLowPen.artBehaveMay.canSunSmileLowInnerMap] boolValue]) {
        [self speedShortHeaderDistantInviteAction:nil];
    }
}
@end
