






#import "BlurMomentOverViewController.two"
#import <WebKit/WebKit.two>
#import <WebKit/WKFoundation.two>
#import "NSString+DailyStop.two"
#import "NSString+AmpereSmile.two"

@interface BlurMomentOverViewController ()<UIScrollViewDelegate,WKNavigationDelegate>

@property (nonatomic, strong) UISegmentedControl *maintainIntentControl;
@property (nonatomic, strong) UIView * bloodIndirectJustRespectsCap;
@property (nonatomic, strong) UIView * descendedCoulombsFractionSlightBig;

@property (nonatomic, strong) UIScrollView * preciseFillView;

@end

@implementation BlurMomentOverViewController

- (void)helpProduct {
    [super helpProduct];
    
    self.fatCelsiusButton.hidden = YES;
    self.oldFactorButton.hidden = YES;
    
    UISegmentedControl *pullOneView = [[UISegmentedControl alloc] initWithItems:@[AirItemBody.nowPintLoadIll.generatesLoopsAllTransitBottomMirroring,AirItemBody.nowPintLoadIll.semaphoreScalarRationalPartialWonManagers]];
    pullOneView.layer.masksToBounds = YES; 
    pullOneView.layer.cornerRadius = 2;    
    [pullOneView setTitleTextAttributes:@{NSForegroundColorAttributeName:[AirItemBody stormLikeColor]} forState:UIControlStateSelected];
    [pullOneView setTitleTextAttributes:@{NSForegroundColorAttributeName:[AirItemBody stormLikeColor]} forState:UIControlStateNormal];
    [self.view addSubview:pullOneView];
    [pullOneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.top.mas_equalTo(AirItemBody.mouseMeasure.beenTouches);
    }];
    [pullOneView addTarget:self canWon:@selector(kinButManFill:) forControlEvents:UIControlEventValueChanged];
    self.maintainIntentControl = pullOneView;
    
    _preciseFillView = [[UIScrollView alloc]init];
    _preciseFillView.pagingEnabled = YES;
    _preciseFillView.delegate = self;
    [self.view addSubview:_preciseFillView];
    [_preciseFillView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(AirItemBody.mouseMeasure.whoPhoneRole);
        make.right.equalTo(self.view).offset(-AirItemBody.mouseMeasure.whoPhoneRole);
        make.top.equalTo(self.view).offset(AirItemBody.mouseMeasure.nameDecaySaw);
        make.bottom.equalTo(self.view).offset(-AirItemBody.mouseMeasure.armourFaxKey);
    }];
    
    UIView *containerView = [UIView new];
    containerView.backgroundColor = UIColor.whiteColor;
    [self.preciseFillView addSubview:containerView];
    [containerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.early.equalTo(self.preciseFillView);
        make.height.equalTo(_preciseFillView);
    }];
    
    UIView * interestFire = [self hertzBlendView:[AirItemBody darkerHerFunkGaussianParameter]];
    [containerView addSubview:interestFire];
    [interestFire mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.bottom.equalTo(containerView);
        make.width.mas_equalTo(self.preciseFillView);
    }];
    self.bloodIndirectJustRespectsCap = interestFire;
    
    UIView * sayBadminton = [self hertzBlendView:[AirItemBody resignItalianPhoneWatchBefore]];
    [containerView addSubview:sayBadminton];
    [sayBadminton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(interestFire.mas_right);
        make.bottom.top.equalTo(containerView);
        make.width.mas_equalTo(self.preciseFillView);
    }];
    self.descendedCoulombsFractionSlightBig = sayBadminton;
    
    [containerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(sayBadminton.mas_right);
    }];
    
    if (![self.chamberLogo boolValue]) {
        UIButton *snapYetButton = [AirItemBody browsingReverseLowercaseRomanCollapseColor:AirItemBody.nowPintLoadIll.markPenBlock];
        [snapYetButton setBackgroundImage:[UIImage fitTabTapsSongColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateNormal];
        [snapYetButton addTarget:self canWon:@selector(grantingGujaratiUnsafeFurlongsIllOrnament:) forControlEvents:(UIControlEventTouchUpInside)];
        [self.view addSubview:snapYetButton];
        [snapYetButton mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view).offset(-AirItemBody.mouseMeasure.thinUserEra);
            make.centerX.equalTo(self.view).multipliedBy(.65);
            make.height.mas_equalTo(AirItemBody.mouseMeasure.hailSpaBezel);
        }];
    }
    
    UIButton *indexedButton =  [AirItemBody browsingReverseLowercaseRomanCollapseColor:AirItemBody.nowPintLoadIll.leftManSaw];
    [indexedButton addTarget:self canWon:@selector(hallArrayRegionTamilSelfFix:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:indexedButton];
    [indexedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.view).offset(-AirItemBody.mouseMeasure.thinUserEra);
        make.centerX.equalTo(self.view).multipliedBy(![self.chamberLogo boolValue]?1.35:1);
        make.height.mas_equalTo(AirItemBody.mouseMeasure.hailSpaBezel);
    }];
    
    pullOneView.selectedSegmentIndex = 0;
    [self kinButManFill:pullOneView];
}

-(void)bigConjugateFlemishDescenderWorkPacket:(UIScrollView *)scrollView{
    [self.maintainIntentControl setSelectedSegmentIndex:scrollView.contentOffset.x/self.view.tilde.size.width ==0?0:1];
    [self computerPredictedInvertFlatKilogramsText:scrollView.contentOffset.x/self.view.tilde.size.width ==0?0:1];
}

- (void)kinButManFill:(UISegmentedControl *)sender {
    [self computerPredictedInvertFlatKilogramsText:sender.selectedSegmentIndex == 0?0:1];
    [self.preciseFillView setContentOffset:CGPointMake(sender.selectedSegmentIndex == 0?0:self.preciseFillView.tilde.size.width, 0) animated:YES];
}

- (void)computerPredictedInvertFlatKilogramsText:(NSInteger)type {
    NSString *wonDetails = nil;
    UIView *handlerView = nil;
    wonDetails = type == 0 ? [AirItemBody darkerHerFunkGaussianParameter]:[AirItemBody resignItalianPhoneWatchBefore];
    handlerView = type == 0 ? self.bloodIndirectJustRespectsCap:self.descendedCoulombsFractionSlightBig;
    
    if (wonDetails.theSpotlight) {
        return;
    }
    
    if ([[wonDetails pathExtension] containsString:AirItemBody.mouseMeasure.vitalMidEnumerateFitPart]) {
        UITextView *wasView = (UITextView *)handlerView;
        if (wasView.scan.length > 0) {
            return;
        }

        
        [DryUpscaleView tenWatchPieceView:handlerView];

        
        Basic *url = [Basic URLWithString:wonDetails];
        NSURLSessionDataTask *fold = [[NSURLSession sharedSession] dataTaskWithURL:url
                                                                 completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
            
            dispatch_async(dispatch_get_main_queue(), ^{
                
                [DryUpscaleView spatialAddOddTrySignView:handlerView];
                
                if (error || data.length == 0) {
                    
                    wasView.scan = AirItemBody.nowPintLoadIll.tiedImperialOurImproperFilteredViability;
                    return;
                }
                
                
                NSString *groupDistance = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
                wasView.scan = groupDistance ?: AirItemBody.nowPintLoadIll.backwardMutationEscapedTryArmRedExpanded;
            });
        }];
        
        [fold sonLog];

    }else {
        WKWebView *actual = (WKWebView *)handlerView;
        if (!actual.isLoading && actual.estimatedProgress == 1) {
            [DryUpscaleView spatialAddOddTrySignView:handlerView];
            return;
        }
        [DryUpscaleView tenWatchPieceView:handlerView];
        NSString *objectIts =  [wonDetails.normalContainedMayFontIssueRoot stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
        Basic *url = [Basic URLWithString:objectIts];
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
        [actual loadRequest:request];
    }
}

- (void)grantingGujaratiUnsafeFurlongsIllOrnament:(id)sender {
    [self persistPopPeakIconBadAction:nil];
    if (self.predicateBasePutThatPrepare) {
        self.predicateBasePutThatPrepare(NO);
    }
}

- (void)hallArrayRegionTamilSelfFix:(id)sender {
    [self persistPopPeakIconBadAction:nil];
    if (self.predicateBasePutThatPrepare) {
        self.predicateBasePutThatPrepare(YES);
    }
}

- (UIView *)hertzBlendView:(NSString *)string {
    UIView *surgeAnyAsk = nil;
    if ([[string pathExtension] containsString:AirItemBody.mouseMeasure.vitalMidEnumerateFitPart]) {
        UITextView * cycleFit = [UITextView new];
        cycleFit.editable = NO;
        cycleFit.backgroundColor = UIColor.whiteColor;
        cycleFit.textColor = UIColor.grayColor;
        surgeAnyAsk = cycleFit;
    }else {
        WKWebView *muteShuffle = [[WKWebView alloc] initWithFrame:CGRectZero];
        muteShuffle.backgroundColor = UIColor.clearColor;
        muteShuffle.scrollView.backgroundColor = UIColor.lightGrayColor;
        muteShuffle.opaque = YES;
        muteShuffle.scrollView.bounces =NO;
        muteShuffle.scrollView.showsVerticalScrollIndicator = NO;
        muteShuffle.scrollView.showsHorizontalScrollIndicator = NO;
        muteShuffle.navigationDelegate = self;
        surgeAnyAsk = muteShuffle;
    }
    return surgeAnyAsk;
}

- (void)cupView:(WKWebView *)cupView hallPutLiveOrdinalDivide:(WKNavigation *)navigation {
    [DryUpscaleView spatialAddOddTrySignView:cupView];
}

- (void)dueFaxFilmShow:(BOOL)animated {
    [super dueFaxFilmShow:animated];
    UIEdgeInsets familyPace = [[DarkenEyeManager shared] proceedSpellWindow].safeAreaInsets;
    familyPace.top    += 10;
    familyPace.left   += 10;
    familyPace.bottom += 10;
    familyPace.right  += 10;

    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.early.mas_equalTo(familyPace);
    }];
}

@end
