






#import "LooseMidViewController.h"
#import "UnpluggedManager.h"

@interface LooseMidViewController ()

@end

@implementation LooseMidViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.fivePubSize.opaque = NO;
    if ([self digitalStarStiffnessRecordSnow:self.modalKeyDid]) {
        NSMutableDictionary *his = [NSMutableDictionary new];
        his[PinMovement.cupFormatSun.numbersKernelsMinMaleLacrosse] = @{
            PinMovement.cupFormatSun.quitComposeContextsCheckingTarget:@(MAXFLOAT),
            PinMovement.cupFormatSun.featWristWarnOccurTrusted:@(MAXFLOAT)
        };
        his[PinMovement.cupFormatSun.automaticFloat] = self.modalKeyDid;
        his[PinMovement.cupFormatSun.receivedExhaustedPriorTransformOfferDetail] = @(NO);
        his[PinMovement.cupFormatSun.hindiWeekOtherIdentityExternalDiacritic] = @(NO);
        self.modalKeyDid = his;
    }
    
    if (![self.modalKeyDid[PinMovement.cupFormatSun.areSeasonTiedSiteEasy] boolValue]) {
        self.view.backgroundColor = UIColor.blackColor;
    }else {
        self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    }
    self.extraMaxAdd = self.modalKeyDid[PinMovement.cupFormatSun.automaticFloat];
    
}

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

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if ([self.modalKeyDid[PinMovement.cupFormatSun.receivedExhaustedPriorTransformOfferDetail] boolValue]) {
        self.bagDesktopButton.hidden = NO;
        [self.view bringSubviewToFront:self.bagDesktopButton];
    }
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    CGFloat width = [self.modalKeyDid[PinMovement.cupFormatSun.numbersKernelsMinMaleLacrosse][PinMovement.cupFormatSun.quitComposeContextsCheckingTarget] floatValue];
    CGFloat height = [self.modalKeyDid[PinMovement.cupFormatSun.numbersKernelsMinMaleLacrosse][PinMovement.cupFormatSun.featWristWarnOccurTrusted] floatValue];
    CGFloat HasBase = [UIScreen mainScreen].bounds.size.width;
    CGFloat RowRest = [UIScreen mainScreen].bounds.size.height;
    CGFloat mayRandom = width == 0 ? HasBase : MIN(width, HasBase);
    CGFloat whoEndHeap = height == 0 ? RowRest : MIN(height, RowRest);
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(mayRandom, whoEndHeap));
    }];
    if (HasBase == mayRandom && RowRest == whoEndHeap) {
        UIWindow *spousesWindow = [[UnpluggedManager shared] gainMusicMayWindow];
        UIEdgeInsets safe = spousesWindow.safeAreaInsets;
        [self.fivePubSize mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(safe);
        }];
    }else {
        [self.fivePubSize 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.bagDesktopButton.hidden = NO;
}

- (void)dominantPosterIssueOurSafeEarCanceled:(NSURL *)URL {
    [super dominantPosterIssueOurSafeEarCanceled:URL];
    
    
    
    
    void (^completionBlock)(BOOL) = self.modalKeyDid[PinMovement.cupFormatSun.carFitSoftnessLogoPreparingPlain];
    if (completionBlock) {
        [[UnpluggedManager shared] policyHitOurWindow];
        completionBlock([URL.host isEqualToString:PinMovement.cupFormatSun.requireSumInsertingAmbienceTenStreet]);
    }
}

- (void)twelveStrongestModifyAutoMargins:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super twelveStrongestModifyAutoMargins:touches withEvent:event];
    if ([self.modalKeyDid[PinMovement.cupFormatSun.hindiWeekOtherIdentityExternalDiacritic] boolValue]) {
        [self paletteExtrasSeedTipIssuerAction:nil];
    }
}
@end
