






#import "SaturateView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+SumImage.h"
#import "MapSheFocus.h"
#import "NSString+ExternYet.h"
#import "NowAlertView.h"
#import "KitLoudCropTooWindow.h"
#import "ReflectSymptomViewController.h"
#import "UIDevice+DidDevice.h"
#import "FormThirdManager.h"

@interface SaturateView()  <UIGestureRecognizerDelegate> {
    CGPoint gainCompressDecryptedExactnessMixRelay;
    BOOL builtFeaturesFeatureSplitMacintosh;
    BOOL mapRetLazyCoverOnceIdentical; 
    BOOL glucoseLambdaExclusiveMiterUnwind; 
}


@property (nonatomic, strong) KitLoudCropTooWindow *leftBagAndWindow;
@property (nonatomic, weak) UIWindow *upperHueWorkWindow;


@property (nonatomic, strong) UIImageView *logoLeastView;
@property (nonatomic, strong) UIView *squaredUsedView;


@property (nonatomic, strong) UIView *outEnergyView;
@property (nonatomic, strong) UILabel *hourSpaceLabel;
@property (nonatomic, assign) BOOL raceEvaluatedPinParseFail;


@property (nonatomic, strong) NSTimer *forbidMountedTimer;
@property (nonatomic, assign) UIEdgeInsets printerGigahertzReminderAliveLoad;
@property (nonatomic, assign) CGRect tapsRestToleranceCheckPrefixedMerge;


@property (nonatomic, strong) UIImage *playableRunImage;
@property (nonatomic, copy) NSString *preparedIcelandicChildHandledStandard;
@property (nonatomic, strong) UIImage *negotiateImage;
@property (nonatomic, assign) CGFloat leadGetShowBar;
@property (nonatomic, assign) RealmBinFoodEdge trackMostCutEdge;
@property (nonatomic, assign) NSTimeInterval cutDryCubeHockeyEditor;
@property (nonatomic, assign) BOOL compressDatabasesClientSawDryMouse;
@end

@implementation SaturateView


+ (instancetype)shared {
    static SaturateView *instance = nil;
    static dispatch_once_t lateToken;
    dispatch_once(&lateToken, ^{
        instance = [[super alloc] initWithFrame:CGRectZero];
        [instance petiteFractionsInstallBlusteryActual];
    });
    return instance;
}

- (UIView *)squaredUsedView {
    if (!_squaredUsedView) {
        _squaredUsedView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 8, 8)];
        _squaredUsedView.backgroundColor = UIColor.redColor;
        _squaredUsedView.layer.cornerRadius = 4;
        _squaredUsedView.hidden = YES;
    }
    return _squaredUsedView;
}

- (void)petiteFractionsInstallBlusteryActual {
    self.leadGetShowBar = 10.0;
    self.cutDryCubeHockeyEditor = 3.0;
    self.compressDatabasesClientSawDryMouse = YES;
    
    
    self.logoLeastView = [[UIImageView alloc] init];
    self.logoLeastView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.logoLeastView];
    
    self.outEnergyView = [[UIView alloc] init];
    self.outEnergyView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.outEnergyView.layer.cornerRadius = 20;
    self.outEnergyView.layer.masksToBounds = YES;
    self.outEnergyView.alpha = 0.0;
    
    self.hourSpaceLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.hourSpaceLabel.text = MapSheFocus.catBlackPopMay.notAbsentWayInfoCoulombsNeed;
    self.hourSpaceLabel.numberOfLines = 0;
    self.hourSpaceLabel.textColor = [UIColor whiteColor];
    self.hourSpaceLabel.textAlignment = NSTextAlignmentCenter;
    self.hourSpaceLabel.font = [UIFont systemFontOfSize:14];
    [self.outEnergyView addSubview:self.hourSpaceLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(bitsDidCarSpan:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *hit = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(carWorkStepTab)];
    [self addGestureRecognizer:hit];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(unifiedGenericGlucosePressesConcludePayments)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setShotFarTooJson:(NSDictionary *)shotFarTooJson {
    _shotFarTooJson = shotFarTooJson;
    if (shotFarTooJson && self.leftBagAndWindow != nil) {
        NSString *action = shotFarTooJson[MapSheFocus.ownerQuality.hitBarThinTeam];
        if ([action isEqualToString:MapSheFocus.ownerQuality.epsilonWhile]) {
            self.squaredUsedView.hidden = NO;
        }else if ([action isEqualToString:MapSheFocus.ownerQuality.definedStart]) {
            self.squaredUsedView.hidden = YES;
        }else if ([action isEqualToString:MapSheFocus.ownerQuality.reuseReliableWithinCorrectedChange]) {
            self.squaredUsedView.hidden = NO;
        }
    }
}


+ (void)paceCubic {
    [self.shared bundlesWayOrdinaryAgePackMaskImage:[UIImage rematchChannelsSentenceGigahertzDecideName:MapSheFocus.ownerQuality.recordedThemeSharpnessAxesTotal] bezelSay:MapSheFocus.indoorImproperMalteseKilogramsMatrix keysImage:nil];
}

+ (void)customMessageImage:(UIImage *)image {
    [[self shared] bundlesWayOrdinaryAgePackMaskImage:image keysImage:nil];
}

+ (void)torchAirOurImage:(UIImage *)normalImage keysImage:(nullable UIImage *)keysImage {
    SaturateView *instance = [self shared];
    instance.playableRunImage = normalImage;
    instance.preparedIcelandicChildHandledStandard = nil;
    instance.negotiateImage = keysImage;
    instance.logoLeastView.image = normalImage;
}

+ (void)eachFloor {
    [[self shared] ownershipPresenterTintPlanarOut];
}

+ (BOOL)waxSubWetCurve {
    return [self shared].leftBagAndWindow != nil;
}


- (void)bundlesWayOrdinaryAgePackMaskImage:(UIImage *)image keysImage:(nullable UIImage *)keysImage {
    [self bundlesWayOrdinaryAgePackMaskImage:image bezelSay:nil keysImage:keysImage];
}

- (void)bundlesWayOrdinaryAgePackMaskImage:(UIImage *)image bezelSay:(NSString *)bezelSay keysImage:(nullable UIImage *)keysImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.playableRunImage = image;
        self.preparedIcelandicChildHandledStandard = bezelSay;
        self.negotiateImage = keysImage;
        
        if (!self.leftBagAndWindow) {
            [self anchorsIncludingPlanarStaleCacheWindow];
            [self queryingResponseLossProducerLost];
            [self markEscapesReduceLocationHundredsOver];
            [self adaptiveSnapSaltPullAggregateDry]; 
        }
        
        [self.leftBagAndWindow makeKeyAndVisible];
        [self.upperHueWorkWindow makeKeyWindow];
        
        [self urgencyNodeResumedPerformedSobLetterAnimation:YES];
        [self maskDarkenReminderThemeSeedTimer];
    });
}

- (void)ownershipPresenterTintPlanarOut {
    dispatch_async(dispatch_get_main_queue(), ^{
        [self.leftBagAndWindow resignKeyWindow];
        self.leftBagAndWindow.hidden = YES;
        self.leftBagAndWindow = nil;
    });
}


- (void)anchorsIncludingPlanarStaleCacheWindow {
    
    self.upperHueWorkWindow = [self hallNegateCellLoudHierarchyWindow];
    
    
    KitLoudCropTooWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[KitLoudCropTooWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[KitLoudCropTooWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[ReflectSymptomViewController alloc] init];
    window.hidden = NO;
    self.leftBagAndWindow = window;
    
    
    [self.leftBagAndWindow resignKeyWindow];
    [self.upperHueWorkWindow makeKeyWindow];
    
    
    [self addSubview:self.squaredUsedView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.preparedIcelandicChildHandledStandard) {
        [self.logoLeastView sd_setImageWithURL:[NSURL URLWithString:self.preparedIcelandicChildHandledStandard] placeholderImage
                                              :[UIImage rematchChannelsSentenceGigahertzDecideName:MapSheFocus.ownerQuality.recordedThemeSharpnessAxesTotal]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.logoLeastView.image = self.playableRunImage;
    }
    self.logoLeastView.frame = self.bounds;
    
    [self.leftBagAndWindow addSubview:self];
    [self.leftBagAndWindow addSubview:self.outEnergyView];
}


- (void)adaptiveSnapSaltPullAggregateDry {
    CGRect orangeReport = self.tapsRestToleranceCheckPrefixedMerge;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
#pragma clang diagnostic pop
    
    if (UIInterfaceOrientationIsLandscape(orientation)) {
        CGFloat along = 180;
        self.outEnergyView.frame = CGRectMake(
         (orangeReport.size.width - along)/2,
          orangeReport.size.height - along/2,
          along,
          along
        );
        self.outEnergyView.layer.masksToBounds = YES;
        self.outEnergyView.layer.cornerRadius = along/2;
        self.hourSpaceLabel.center = CGPointMake(along/2, along/4);
    }
    
    else {
        CGFloat along = 240;
        self.outEnergyView.frame = CGRectMake(

          (orangeReport.size.width - along/2),
          orangeReport.size.height - along/2,
          along,
          along
        );
        self.outEnergyView.layer.masksToBounds = YES;
        self.outEnergyView.layer.cornerRadius = along/2;
        self.hourSpaceLabel.center = CGPointMake(along/3, along/4);
    }
}


- (void)carWorkStepTab {
    if (self.shotFarTooJson) {
        !self.hindiGetHandler ?: self.hindiGetHandler(self.shotFarTooJson[MapSheFocus.ownerQuality.mostlyOwner]);
        if ([self.shotFarTooJson[MapSheFocus.ownerQuality.hitBarThinTeam] isEqualToString:MapSheFocus.ownerQuality.reuseReliableWithinCorrectedChange]) {
            self.squaredUsedView.hidden = YES;
            _shotFarTooJson = nil;
        }
    }else {
        !self.hindiGetHandler ?: self.hindiGetHandler(nil);
    }
}

- (void)bitsDidCarSpan:(UIPanGestureRecognizer *)gesture {
    if (builtFeaturesFeatureSplitMacintosh) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            gainCompressDecryptedExactnessMixRelay = self.center;
            _logoLeastView.alpha = 1;
            [self retryBandwidthEntityMustShe];
            mapRetLazyCoverOnceIdentical = NO; 
            glucoseLambdaExclusiveMiterUnwind = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.outEnergyView.layer removeAllAnimations];
            
            
            self.outEnergyView.alpha = 0.0;
            self.outEnergyView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self printedPostalEligibleStairIntentsEstimatedSolutionsCenter:
                           CGPointMake(gainCompressDecryptedExactnessMixRelay.x + translation.x,
                                       gainCompressDecryptedExactnessMixRelay.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL SinChildren = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect moleFrame = self.outEnergyView.frame;
            CGRect provision = CGRectInset(moleFrame, -280, SinChildren?-100:-280); 
            BOOL frontSpaCall = CGRectContainsPoint(provision, self.center);
            
            
            
            
            if (frontSpaCall != glucoseLambdaExclusiveMiterUnwind) {
                glucoseLambdaExclusiveMiterUnwind = frontSpaCall;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.outEnergyView.alpha = frontSpaCall ? 1.0 : 0.0;
                    self.outEnergyView.transform = frontSpaCall ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            frontSpaCall = CGRectContainsPoint(CGRectInset(moleFrame, 0, 0), self.center);
            if (frontSpaCall && !mapRetLazyCoverOnceIdentical) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                mapRetLazyCoverOnceIdentical = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.outEnergyView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!frontSpaCall) {
                if (mapRetLazyCoverOnceIdentical) {
                    self.outEnergyView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                mapRetLazyCoverOnceIdentical = NO;
            }
            
            
            provision = CGRectInset(moleFrame, 0, 0);
            _raceEvaluatedPinParseFail = CGRectContainsPoint(provision, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.outEnergyView.alpha = 0.0;
                self.outEnergyView.transform = CGAffineTransformIdentity;
            }];
            
            if (_raceEvaluatedPinParseFail) {
                [NowAlertView spousesPackRuleCountryImmutableSubtitles:nil message:MapSheFocus.catBlackPopMay.fairAffineDingbatsDrumHisThat allocatorYet:@[MapSheFocus.catBlackPopMay.mustSinFunk, MapSheFocus.catBlackPopMay.darkFun] completion:^(NSInteger anyMidIndex) {
                    if (anyMidIndex ==1) {
                        [self ownershipPresenterTintPlanarOut];
                    }else {
                        [self urgencyNodeResumedPerformedSobLetterAnimation:YES];
                        [self maskDarkenReminderThemeSeedTimer];
                    }
                }];
            } else {
                [self urgencyNodeResumedPerformedSobLetterAnimation:YES];
                [self maskDarkenReminderThemeSeedTimer];
            }
            mapRetLazyCoverOnceIdentical = NO;
            glucoseLambdaExclusiveMiterUnwind = NO;
            break;
        }

        default: break;
    }
}


- (void)urgencyNodeResumedPerformedSobLetterAnimation:(BOOL)animate {
    if (!_compressDatabasesClientSawDryMouse) return;
    
    
    if (builtFeaturesFeatureSplitMacintosh && animate) return;
    
    CGRect flipFrame = [self cellphoneAnchoringDatabasesFlightKerningFrame];
    CGPoint center = self.center;
    
    CGFloat loud = flipFrame.origin.x;
    CGFloat pull = flipFrame.origin.x + flipFrame.size.width;
    CGFloat best = flipFrame.origin.y;
    CGFloat feat = flipFrame.origin.y + flipFrame.size.height;
    
    
    RealmBinFoodEdge waxBitEdge = ExponentsSceneLabeledNameInferiorsRestored;
    CGFloat feetHomeEar = CGFLOAT_MAX;
    
    
    CGFloat bagJob = center.x - loud;
    CGFloat symbols = pull - center.x;
    CGFloat civil = center.y - best;
    CGFloat maxShake = feat - center.y;
    
    NSArray *noticeOpt = @[@(bagJob), @(symbols), @(civil), @(maxShake)];
    NSArray *edges = @[@(DutchBuddyYouExactnessAlignTrap), @(ExponentsSnapBankSpaCarRecovered),
                       @(AcceptedMillionHelpersHueUser), @(ClientElevenSpeakerHoverBeginningPermanent)];
    
    for (NSInteger i = 0; i < noticeOpt.count; i++) {
        CGFloat distance = [noticeOpt[i] floatValue];
        if (distance < feetHomeEar) {
            feetHomeEar = distance;
            waxBitEdge = [edges[i] integerValue];
        }
    }
    
    
    if (waxBitEdge == self.trackMostCutEdge) {
        CGPoint destroyCenter = self.center;
        CGPoint higherCenter = [self developerMatchFathomsCanceledContrastPerformedEdge:waxBitEdge];
        CGFloat distance = hypot(destroyCenter.x - higherCenter.x, destroyCenter.y - higherCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.trackMostCutEdge = waxBitEdge;
    
    
    CGPoint higherCenter = [self developerMatchFathomsCanceledContrastPerformedEdge:waxBitEdge];
    CGPoint thickCenter = [self constructDiskTransportSidebarBlackThresholdBurnEdge:waxBitEdge];
    
    
    builtFeaturesFeatureSplitMacintosh = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->builtFeaturesFeatureSplitMacintosh = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = higherCenter;
        self.squaredUsedView.center = thickCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)developerMatchFathomsCanceledContrastPerformedEdge:(RealmBinFoodEdge)edge {
    CGRect flipFrame = [self cellphoneAnchoringDatabasesFlightKerningFrame];
    CGPoint center = self.center;
    
    CGFloat loud = flipFrame.origin.x;
    CGFloat pull = flipFrame.origin.x + flipFrame.size.width;
    CGFloat best = flipFrame.origin.y;
    CGFloat feat = flipFrame.origin.y + flipFrame.size.height;
    
    CGPoint higherCenter = center;
    
    switch (edge) {
        case DutchBuddyYouExactnessAlignTrap:
            higherCenter.x = loud + self.bounds.size.width/2 + _leadGetShowBar;
            break;
        case ExponentsSnapBankSpaCarRecovered:
            higherCenter.x = pull - self.bounds.size.width/2 - _leadGetShowBar;
            break;
        case AcceptedMillionHelpersHueUser:
            higherCenter.y = best + self.bounds.size.height/2 + _leadGetShowBar;
            break;
        case ClientElevenSpeakerHoverBeginningPermanent:
            higherCenter.y = feat - self.bounds.size.height/2 - _leadGetShowBar;
            break;
        default:
            break;
    }
    
    
    return [self printedPostalEligibleStairIntentsEstimatedSolutionsCenter:higherCenter];
}


- (CGPoint)constructDiskTransportSidebarBlackThresholdBurnEdge:(RealmBinFoodEdge)edge {
    CGPoint thickCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case DutchBuddyYouExactnessAlignTrap:
            thickCenter.x = self.bounds.size.width;
            break;
        case ExponentsSnapBankSpaCarRecovered:
            
            break;
        case AcceptedMillionHelpersHueUser:
            thickCenter.x = self.bounds.size.width;
            thickCenter.y = self.bounds.size.height;
            break;
        case ClientElevenSpeakerHoverBeginningPermanent:
            thickCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return thickCenter;
}


- (void)maskDarkenReminderThemeSeedTimer {
    if (_cutDryCubeHockeyEditor <= 0) return;
    
    [self retryBandwidthEntityMustShe];
    _forbidMountedTimer = [NSTimer scheduledTimerWithTimeInterval:_cutDryCubeHockeyEditor
                                                     target:self
                                                   selector:@selector(illBaseWaxIterativeAgreement)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)retryBandwidthEntityMustShe {
    [_forbidMountedTimer invalidate];
    _forbidMountedTimer = nil;
}

- (void)illBaseWaxIterativeAgreement {
    [UIView animateWithDuration:0.3 animations:^{
        self.logoLeastView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.trackMostCutEdge) {
            case DutchBuddyYouExactnessAlignTrap:
                frame.origin.x -= self.leadGetShowBar;
                break;
            case ExponentsSnapBankSpaCarRecovered:
                frame.origin.x += self.leadGetShowBar;
                break;
            case AcceptedMillionHelpersHueUser:
                frame.origin.y -= self.leadGetShowBar;
                break;
            case ClientElevenSpeakerHoverBeginningPermanent:
                frame.origin.y += self.leadGetShowBar;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)unifiedGenericGlucosePressesConcludePayments {
    [self queryingResponseLossProducerLost];
    [self adaptiveSnapSaltPullAggregateDry]; 
    [self urgencyNodeResumedPerformedSobLetterAnimation:YES];
}


- (void)queryingResponseLossProducerLost {
    UIWindow *keyWindow = FormThirdManager.shared.partlyVisualWindow; //self.upperHueWorkWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice mayIrish]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice wayMay]) {
        safeArea = UIEdgeInsetsMake(0, 0, 20, 0);
    }else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
        UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
        safeArea = keyWindow.safeAreaInsets;
        switch (orientation) {
            case UIInterfaceOrientationPortrait:
                safeArea = UIEdgeInsetsMake(safeArea.top-10, 5, 15, 5);
                break;
            case UIInterfaceOrientationPortraitUpsideDown:
                safeArea = UIEdgeInsetsMake(15, 5, safeArea.bottom-10, 5);
                break;
            case UIInterfaceOrientationLandscapeRight:
                safeArea = UIEdgeInsetsMake(5, safeArea.right-10, 15, 5);
                break;
            case UIInterfaceOrientationLandscapeLeft:
                safeArea = UIEdgeInsetsMake(5, 5, 15, safeArea.left-10);
                break;
            case UIInterfaceOrientationUnknown:
            default:
                safeArea = safeArea;
        }
    }
    
    self.printerGigahertzReminderAliveLoad = safeArea;
    self.tapsRestToleranceCheckPrefixedMerge = keyWindow.bounds;
}

- (CGRect)cellphoneAnchoringDatabasesFlightKerningFrame {
    
    return CGRectMake(
        self.tapsRestToleranceCheckPrefixedMerge.origin.x + self.printerGigahertzReminderAliveLoad.left,
        self.tapsRestToleranceCheckPrefixedMerge.origin.y + self.printerGigahertzReminderAliveLoad.top,
        self.tapsRestToleranceCheckPrefixedMerge.size.width - (self.printerGigahertzReminderAliveLoad.left + self.printerGigahertzReminderAliveLoad.right),
        self.tapsRestToleranceCheckPrefixedMerge.size.height - (self.printerGigahertzReminderAliveLoad.top + self.printerGigahertzReminderAliveLoad.bottom)
    );
}


- (void)markEscapesReduceLocationHundredsOver {
    NSString *soundDrumHex = [[NSUserDefaults standardUserDefaults] valueForKey:MapSheFocus.ownerQuality.forbidSeekEldestBoxSawExclusive];
    if (soundDrumHex) {
        self.center = CGPointFromString(soundDrumHex);
    }else {
        
        CGRect flipFrame = [self cellphoneAnchoringDatabasesFlightKerningFrame];
        self.center = CGPointMake(flipFrame.origin.x + flipFrame.size.width - self.bounds.size.width/2 - _leadGetShowBar,
                                  flipFrame.origin.y + flipFrame.size.height/2);
    }
}


- (UIWindow *)hallNegateCellLoudHierarchyWindow {
    if (@available(iOS 13.0, *)) {
        NSSet<UIScene *> *scenes = [UIApplication sharedApplication].connectedScenes;
        for (UIScene *scene in scenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                UIWindowScene *windowScene = (UIWindowScene *)scene;
                return windowScene.windows.firstObject;
            }
        }
    }
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    return [UIApplication sharedApplication].keyWindow;
#pragma clang diagnostic pop
}

- (CGPoint)printedPostalEligibleStairIntentsEstimatedSolutionsCenter:(CGPoint)proposedCenter {
    CGRect flipFrame = [self cellphoneAnchoringDatabasesFlightKerningFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat loud = flipFrame.origin.x + buttonSize.width/2;
    CGFloat pull = flipFrame.origin.x + flipFrame.size.width - buttonSize.width/2;
    CGFloat best = flipFrame.origin.y + buttonSize.height/2;
    CGFloat feat = flipFrame.origin.y + flipFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(loud, MIN(proposedCenter.x, pull)),
        MAX(best, MIN(proposedCenter.y, feat))
    );
}

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

@end
