






#import "CapacityViewController.h"
#import "RotorWaitManager.h"

@interface CapacityViewController ()

@end

@implementation CapacityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.execStarted.opaque = NO;
    if ([self wrongWaitingArmSpecialNot:self.membersPool]) {
        NSMutableDictionary *its = [NSMutableDictionary new];
        its[SheTintAuto.linerIndexed.entitledWireAdditiveSourceMath] = @{
            SheTintAuto.linerIndexed.preciseFlowPunjabiGrandauntHard:@(MAXFLOAT),
            SheTintAuto.linerIndexed.unlikelyLockSourcesPhoneDeliver:@(MAXFLOAT)
        };
        its[SheTintAuto.linerIndexed.artWaitWordOur] = self.membersPool;
        its[SheTintAuto.linerIndexed.basalIgnoresYoungestGeometryFastBlinding] = @(NO);
        its[SheTintAuto.linerIndexed.napPhoneticBetweenHoldRawManganese] = @(NO);
        self.membersPool = its;
    }
    
    if (![self.membersPool[SheTintAuto.linerIndexed.callLegalPaddleLookCentered] boolValue]) {
        self.view.backgroundColor = UIColor.blackColor;
    }else {
        self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    }
    self.circleLoops = self.membersPool[SheTintAuto.linerIndexed.artWaitWordOur];
    
}

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

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if ([self.membersPool[SheTintAuto.linerIndexed.basalIgnoresYoungestGeometryFastBlinding] boolValue]) {
        self.hostingDayButton.hidden = NO;
        [self.view bringSubviewToFront:self.hostingDayButton];
    }
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    CGFloat width = [self.membersPool[SheTintAuto.linerIndexed.entitledWireAdditiveSourceMath][SheTintAuto.linerIndexed.preciseFlowPunjabiGrandauntHard] floatValue];
    CGFloat height = [self.membersPool[SheTintAuto.linerIndexed.entitledWireAdditiveSourceMath][SheTintAuto.linerIndexed.unlikelyLockSourcesPhoneDeliver] floatValue];
    CGFloat WillPop = [UIScreen mainScreen].bounds.size.width;
    CGFloat DryLock = [UIScreen mainScreen].bounds.size.height;
    CGFloat brushRoot = width == 0 ? WillPop : MIN(width, WillPop);
    CGFloat finalChest = height == 0 ? DryLock : MIN(height, DryLock);
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(brushRoot, finalChest));
    }];
    if (WillPop == brushRoot && DryLock == finalChest) {
        UIWindow *skipHitWindow = [[RotorWaitManager shared] terminateRowWindow];
        UIEdgeInsets safe = skipHitWindow.safeAreaInsets;
        [self.execStarted mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(safe);
        }];
    }else {
        [self.execStarted 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.hostingDayButton.hidden = NO;
}

- (void)nothingUplinkUrgencyRightDeviationMapSliding:(NSURL *)URL {
    [super nothingUplinkUrgencyRightDeviationMapSliding:URL];
    
    
    
    
    void (^completionBlock)(BOOL) = self.membersPool[SheTintAuto.linerIndexed.bypassMidFallbackRotatingWidgetReplaced];
    if (completionBlock) {
        [[RotorWaitManager shared] barOwnMobileWindow];
        completionBlock([URL.host isEqualToString:SheTintAuto.linerIndexed.nearSmoothCascadeHomepageNorwegianHelp]);
    }
}

- (void)supportedZipSinIndicesRadial:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super supportedZipSinIndicesRadial:touches withEvent:event];
    if ([self.membersPool[SheTintAuto.linerIndexed.napPhoneticBetweenHoldRawManganese] boolValue]) {
        [self longitudeLayoutDiscardedBrowsingLaotianAction:nil];
    }
}
@end
