






#import "RateBodyView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MidImage.h"
#import "BurstUpload.h"
#import "NSString+Anchoring.h"
#import "BoxAlertView.h"
#import "SinOurHerOceanWindow.h"
#import "LearnedTaggingViewController.h"
#import "UIDevice+AirDevice.h"
#import "SquarePenManager.h"

@interface RateBodyView()  <UIGestureRecognizerDelegate> {
    CGPoint goldenModernCloudyHeartSoloAbnormal;
    BOOL paymentsLastUkrainianNapHeavy;
    BOOL obtainAllRestoredWrongProcedureDrive; 
    BOOL sinSwappedRegionApplySon; 
}


@property (nonatomic, strong) SinOurHerOceanWindow *phraseAxesWindow;
@property (nonatomic, weak) UIWindow *nineModerateWindow;


@property (nonatomic, strong) UIImageView *menuInuitView;
@property (nonatomic, strong) UIView *assetVisionView;


@property (nonatomic, strong) UIView *occlusionView;
@property (nonatomic, strong) UILabel *utilitiesLabel;
@property (nonatomic, assign) BOOL ownerParentalBaseballPotentialListen;


@property (nonatomic, strong) NSTimer *duePinBigFillTimer;
@property (nonatomic, assign) UIEdgeInsets rateGallonsArmourRenderToo;
@property (nonatomic, assign) CGRect tagWalkTintDecibelAdoptBypass;


@property (nonatomic, strong) UIImage *linerLookupImage;
@property (nonatomic, copy) NSString *alertConnectedAxesLatitudeBank;
@property (nonatomic, strong) UIImage *touchPartImage;
@property (nonatomic, assign) CGFloat lookMaxDoneOut;
@property (nonatomic, assign) RegistryPageEdge mainPenPlaceEdge;
@property (nonatomic, assign) NSTimeInterval disorderHandlesDescendedAddNewtons;
@property (nonatomic, assign) BOOL childChinaSatisfiedUndoneAdvancedDefaults;
@end

@implementation RateBodyView


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

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

- (void)traveledUnsafeDidFirmwareWrap {
    self.lookMaxDoneOut = 10.0;
    self.disorderHandlesDescendedAddNewtons = 3.0;
    self.childChinaSatisfiedUndoneAdvancedDefaults = YES;
    
    
    self.menuInuitView = [[UIImageView alloc] init];
    self.menuInuitView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.menuInuitView];
    
    self.occlusionView = [[UIView alloc] init];
    self.occlusionView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.occlusionView.layer.cornerRadius = 20;
    self.occlusionView.layer.masksToBounds = YES;
    self.occlusionView.alpha = 0.0;
    
    self.utilitiesLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.utilitiesLabel.text = BurstUpload.ejectPrimeHour.sinkAddErrorEventualMasterMantissa;
    self.utilitiesLabel.numberOfLines = 0;
    self.utilitiesLabel.textColor = [UIColor whiteColor];
    self.utilitiesLabel.textAlignment = NSTextAlignmentCenter;
    self.utilitiesLabel.font = [UIFont systemFontOfSize:14];
    [self.occlusionView addSubview:self.utilitiesLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(kitIronToolBin:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *era = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(doneUsageModal)];
    [self addGestureRecognizer:era];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(misplacedTipDissolveDensityExtendingOne)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setPencilSaveJson:(NSDictionary *)pencilSaveJson {
    _pencilSaveJson = pencilSaveJson;
    if (pencilSaveJson && self.phraseAxesWindow != nil) {
        NSString *action = pencilSaveJson[BurstUpload.styleOrigins.hisButManHindi];
        if ([action isEqualToString:BurstUpload.styleOrigins.mildSawRelay]) {
            self.assetVisionView.hidden = NO;
        }else if ([action isEqualToString:BurstUpload.styleOrigins.increaseZone]) {
            self.assetVisionView.hidden = YES;
        }else if ([action isEqualToString:BurstUpload.styleOrigins.trashHalfEmbeddingIdentifyLighter]) {
            self.assetVisionView.hidden = NO;
        }
    }
}


+ (void)catLayout {
    [self.shared coverBarrierPortalItemShipmentLingerImage:[UIImage clearedPrintedSexualObservingHellmanName:BurstUpload.styleOrigins.gigahertzSubmittedOppositeWorldFlat] waxAlone:BurstUpload.unwrapMaleBundleDatabasesUnify dropImage:nil];
}

+ (void)standardFlashImage:(UIImage *)image {
    [[self shared] coverBarrierPortalItemShipmentLingerImage:image dropImage:nil];
}

+ (void)licensePairImage:(UIImage *)normalImage dropImage:(nullable UIImage *)dropImage {
    RateBodyView *instance = [self shared];
    instance.linerLookupImage = normalImage;
    instance.alertConnectedAxesLatitudeBank = nil;
    instance.touchPartImage = dropImage;
    instance.menuInuitView.image = normalImage;
}

+ (void)siteMonth {
    [[self shared] angleThermalObscuredFeedCat];
}

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


- (void)coverBarrierPortalItemShipmentLingerImage:(UIImage *)image dropImage:(nullable UIImage *)dropImage {
    [self coverBarrierPortalItemShipmentLingerImage:image waxAlone:nil dropImage:dropImage];
}

- (void)coverBarrierPortalItemShipmentLingerImage:(UIImage *)image waxAlone:(NSString *)waxAlone dropImage:(nullable UIImage *)dropImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.linerLookupImage = image;
        self.alertConnectedAxesLatitudeBank = waxAlone;
        self.touchPartImage = dropImage;
        
        if (!self.phraseAxesWindow) {
            [self maskSurrogateRemoveTransmitPoloWindow];
            [self sinhaleseItalicsReservedVectorLease];
            [self peakGrandauntEthernetBarRequestSeparator];
            [self suffixCoverCutPulseHexEar]; 
        }
        
        [self.phraseAxesWindow makeKeyAndVisible];
        [self.nineModerateWindow makeKeyWindow];
        
        [self symptomDivideLazyGivenResourcesExposuresAnimation:YES];
        [self refreshWarpRepeatMantissaRuleTimer];
    });
}

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


- (void)maskSurrogateRemoveTransmitPoloWindow {
    
    self.nineModerateWindow = [self fatCapOwnEqualSynthesisWindow];
    
    
    SinOurHerOceanWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[SinOurHerOceanWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[SinOurHerOceanWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[LearnedTaggingViewController alloc] init];
    window.hidden = NO;
    self.phraseAxesWindow = window;
    
    
    [self.phraseAxesWindow resignKeyWindow];
    [self.nineModerateWindow makeKeyWindow];
    
    
    [self addSubview:self.assetVisionView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.alertConnectedAxesLatitudeBank) {
        [self.menuInuitView sd_setImageWithURL:[NSURL URLWithString:self.alertConnectedAxesLatitudeBank] placeholderImage
                                              :[UIImage clearedPrintedSexualObservingHellmanName:BurstUpload.styleOrigins.gigahertzSubmittedOppositeWorldFlat]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.menuInuitView.image = self.linerLookupImage;
    }
    self.menuInuitView.frame = self.bounds;
    
    [self.phraseAxesWindow addSubview:self];
    [self.phraseAxesWindow addSubview:self.occlusionView];
}


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

          (penPrimaries.size.width - greek/2),
          penPrimaries.size.height - greek/2,
          greek,
          greek
        );
        self.occlusionView.layer.masksToBounds = YES;
        self.occlusionView.layer.cornerRadius = greek/2;
        self.utilitiesLabel.center = CGPointMake(greek/3, greek/4);
    }
}


- (void)doneUsageModal {
    if (self.pencilSaveJson) {
        !self.estimateHandler ?: self.estimateHandler(self.pencilSaveJson[BurstUpload.styleOrigins.manCombined]);
        if ([self.pencilSaveJson[BurstUpload.styleOrigins.hisButManHindi] isEqualToString:BurstUpload.styleOrigins.trashHalfEmbeddingIdentifyLighter]) {
            self.assetVisionView.hidden = YES;
            _pencilSaveJson = nil;
        }
    }else {
        !self.estimateHandler ?: self.estimateHandler(nil);
    }
}

- (void)kitIronToolBin:(UIPanGestureRecognizer *)gesture {
    if (paymentsLastUkrainianNapHeavy) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            goldenModernCloudyHeartSoloAbnormal = self.center;
            _menuInuitView.alpha = 1;
            [self operationSevenIntegrateReplyUnlearn];
            obtainAllRestoredWrongProcedureDrive = NO; 
            sinSwappedRegionApplySon = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.occlusionView.layer removeAllAnimations];
            
            
            self.occlusionView.alpha = 0.0;
            self.occlusionView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self receivedIntroDroppedBigAgeMalayalamButtonsCenter:
                           CGPointMake(goldenModernCloudyHeartSoloAbnormal.x + translation.x,
                                       goldenModernCloudyHeartSoloAbnormal.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL TemporalSub = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect cityFrame = self.occlusionView.frame;
            CGRect whoCamera = CGRectInset(cityFrame, -280, TemporalSub?-100:-280); 
            BOOL compareDense = CGRectContainsPoint(whoCamera, self.center);
            
            
            
            
            if (compareDense != sinSwappedRegionApplySon) {
                sinSwappedRegionApplySon = compareDense;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.occlusionView.alpha = compareDense ? 1.0 : 0.0;
                    self.occlusionView.transform = compareDense ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            compareDense = CGRectContainsPoint(CGRectInset(cityFrame, 0, 0), self.center);
            if (compareDense && !obtainAllRestoredWrongProcedureDrive) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                obtainAllRestoredWrongProcedureDrive = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.occlusionView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!compareDense) {
                if (obtainAllRestoredWrongProcedureDrive) {
                    self.occlusionView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                obtainAllRestoredWrongProcedureDrive = NO;
            }
            
            
            whoCamera = CGRectInset(cityFrame, 0, 0);
            _ownerParentalBaseballPotentialListen = CGRectContainsPoint(whoCamera, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.occlusionView.alpha = 0.0;
                self.occlusionView.transform = CGAffineTransformIdentity;
            }];
            
            if (_ownerParentalBaseballPotentialListen) {
                [BoxAlertView yearsCommonPresenceDeprecateInnerDisplayed:nil message:BurstUpload.ejectPrimeHour.containerBadgeGraphicsBlendCurrencySodium fixStillFill:@[BurstUpload.ejectPrimeHour.illMaskBeen, BurstUpload.ejectPrimeHour.winEdga] completion:^(NSInteger icyMinIndex) {
                    if (icyMinIndex ==1) {
                        [self angleThermalObscuredFeedCat];
                    }else {
                        [self symptomDivideLazyGivenResourcesExposuresAnimation:YES];
                        [self refreshWarpRepeatMantissaRuleTimer];
                    }
                }];
            } else {
                [self symptomDivideLazyGivenResourcesExposuresAnimation:YES];
                [self refreshWarpRepeatMantissaRuleTimer];
            }
            obtainAllRestoredWrongProcedureDrive = NO;
            sinSwappedRegionApplySon = NO;
            break;
        }

        default: break;
    }
}


- (void)symptomDivideLazyGivenResourcesExposuresAnimation:(BOOL)animate {
    if (!_childChinaSatisfiedUndoneAdvancedDefaults) return;
    
    
    if (paymentsLastUkrainianNapHeavy && animate) return;
    
    CGRect caseFrame = [self literalRatioShakeGrantingAllFrame];
    CGPoint center = self.center;
    
    CGFloat fast = caseFrame.origin.x;
    CGFloat chat = caseFrame.origin.x + caseFrame.size.width;
    CGFloat blob = caseFrame.origin.y;
    CGFloat sink = caseFrame.origin.y + caseFrame.size.height;
    
    
    RegistryPageEdge peopleEdge = MeasureWaistIcelandicYardDetectsBeacons;
    CGFloat sayReceived = CGFLOAT_MAX;
    
    
    CGFloat minder = center.x - fast;
    CGFloat addSuch = chat - center.x;
    CGFloat relay = center.y - blob;
    CGFloat fairWith = sink - center.y;
    
    NSArray *cupModern = @[@(minder), @(addSuch), @(relay), @(fairWith)];
    NSArray *edges = @[@(RowNothingDryMolarChunkyProducer), @(ItsNegateSpecifiedZipLongerProlog),
                       @(DeveloperFirstRestoreTorchHusband), @(CoalescePackTaggerAcceptCenteringDeveloper)];
    
    for (NSInteger i = 0; i < cupModern.count; i++) {
        CGFloat distance = [cupModern[i] floatValue];
        if (distance < sayReceived) {
            sayReceived = distance;
            peopleEdge = [edges[i] integerValue];
        }
    }
    
    
    if (peopleEdge == self.mainPenPlaceEdge) {
        CGPoint acquireCenter = self.center;
        CGPoint youWhoCenter = [self exactnessGurationAlignmentHundredExecutingBalticEdge:peopleEdge];
        CGFloat distance = hypot(acquireCenter.x - youWhoCenter.x, acquireCenter.y - youWhoCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.mainPenPlaceEdge = peopleEdge;
    
    
    CGPoint youWhoCenter = [self exactnessGurationAlignmentHundredExecutingBalticEdge:peopleEdge];
    CGPoint shapeCenter = [self protocolsPivotSubscriptHighlightAcuteLookProminentEdge:peopleEdge];
    
    
    paymentsLastUkrainianNapHeavy = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->paymentsLastUkrainianNapHeavy = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = youWhoCenter;
        self.assetVisionView.center = shapeCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)exactnessGurationAlignmentHundredExecutingBalticEdge:(RegistryPageEdge)edge {
    CGRect caseFrame = [self literalRatioShakeGrantingAllFrame];
    CGPoint center = self.center;
    
    CGFloat fast = caseFrame.origin.x;
    CGFloat chat = caseFrame.origin.x + caseFrame.size.width;
    CGFloat blob = caseFrame.origin.y;
    CGFloat sink = caseFrame.origin.y + caseFrame.size.height;
    
    CGPoint youWhoCenter = center;
    
    switch (edge) {
        case RowNothingDryMolarChunkyProducer:
            youWhoCenter.x = fast + self.bounds.size.width/2 + _lookMaxDoneOut;
            break;
        case ItsNegateSpecifiedZipLongerProlog:
            youWhoCenter.x = chat - self.bounds.size.width/2 - _lookMaxDoneOut;
            break;
        case DeveloperFirstRestoreTorchHusband:
            youWhoCenter.y = blob + self.bounds.size.height/2 + _lookMaxDoneOut;
            break;
        case CoalescePackTaggerAcceptCenteringDeveloper:
            youWhoCenter.y = sink - self.bounds.size.height/2 - _lookMaxDoneOut;
            break;
        default:
            break;
    }
    
    
    return [self receivedIntroDroppedBigAgeMalayalamButtonsCenter:youWhoCenter];
}


- (CGPoint)protocolsPivotSubscriptHighlightAcuteLookProminentEdge:(RegistryPageEdge)edge {
    CGPoint shapeCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case RowNothingDryMolarChunkyProducer:
            shapeCenter.x = self.bounds.size.width;
            break;
        case ItsNegateSpecifiedZipLongerProlog:
            
            break;
        case DeveloperFirstRestoreTorchHusband:
            shapeCenter.x = self.bounds.size.width;
            shapeCenter.y = self.bounds.size.height;
            break;
        case CoalescePackTaggerAcceptCenteringDeveloper:
            shapeCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return shapeCenter;
}


- (void)refreshWarpRepeatMantissaRuleTimer {
    if (_disorderHandlesDescendedAddNewtons <= 0) return;
    
    [self operationSevenIntegrateReplyUnlearn];
    _duePinBigFillTimer = [NSTimer scheduledTimerWithTimeInterval:_disorderHandlesDescendedAddNewtons
                                                     target:self
                                                   selector:@selector(commentsOceanManyReceiptLine)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)operationSevenIntegrateReplyUnlearn {
    [_duePinBigFillTimer invalidate];
    _duePinBigFillTimer = nil;
}

- (void)commentsOceanManyReceiptLine {
    [UIView animateWithDuration:0.3 animations:^{
        self.menuInuitView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.mainPenPlaceEdge) {
            case RowNothingDryMolarChunkyProducer:
                frame.origin.x -= self.lookMaxDoneOut;
                break;
            case ItsNegateSpecifiedZipLongerProlog:
                frame.origin.x += self.lookMaxDoneOut;
                break;
            case DeveloperFirstRestoreTorchHusband:
                frame.origin.y -= self.lookMaxDoneOut;
                break;
            case CoalescePackTaggerAcceptCenteringDeveloper:
                frame.origin.y += self.lookMaxDoneOut;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)misplacedTipDissolveDensityExtendingOne {
    [self sinhaleseItalicsReservedVectorLease];
    [self suffixCoverCutPulseHexEar]; 
    [self symptomDivideLazyGivenResourcesExposuresAnimation:YES];
}


- (void)sinhaleseItalicsReservedVectorLease {
    UIWindow *keyWindow = SquarePenManager.shared.notStayThumbWindow; //self.nineModerateWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice specific]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice capHue]) {
        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.rateGallonsArmourRenderToo = safeArea;
    self.tagWalkTintDecibelAdoptBypass = keyWindow.bounds;
}

- (CGRect)literalRatioShakeGrantingAllFrame {
    
    return CGRectMake(
        self.tagWalkTintDecibelAdoptBypass.origin.x + self.rateGallonsArmourRenderToo.left,
        self.tagWalkTintDecibelAdoptBypass.origin.y + self.rateGallonsArmourRenderToo.top,
        self.tagWalkTintDecibelAdoptBypass.size.width - (self.rateGallonsArmourRenderToo.left + self.rateGallonsArmourRenderToo.right),
        self.tagWalkTintDecibelAdoptBypass.size.height - (self.rateGallonsArmourRenderToo.top + self.rateGallonsArmourRenderToo.bottom)
    );
}


- (void)peakGrandauntEthernetBarRequestSeparator {
    NSString *netBorderTip = [[NSUserDefaults standardUserDefaults] valueForKey:BurstUpload.styleOrigins.kilometerSmoothInvitedBalancedNewtonsState];
    if (netBorderTip) {
        self.center = CGPointFromString(netBorderTip);
    }else {
        
        CGRect caseFrame = [self literalRatioShakeGrantingAllFrame];
        self.center = CGPointMake(caseFrame.origin.x + caseFrame.size.width - self.bounds.size.width/2 - _lookMaxDoneOut,
                                  caseFrame.origin.y + caseFrame.size.height/2);
    }
}


- (UIWindow *)fatCapOwnEqualSynthesisWindow {
    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)receivedIntroDroppedBigAgeMalayalamButtonsCenter:(CGPoint)proposedCenter {
    CGRect caseFrame = [self literalRatioShakeGrantingAllFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat fast = caseFrame.origin.x + buttonSize.width/2;
    CGFloat chat = caseFrame.origin.x + caseFrame.size.width - buttonSize.width/2;
    CGFloat blob = caseFrame.origin.y + buttonSize.height/2;
    CGFloat sink = caseFrame.origin.y + caseFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(fast, MIN(proposedCenter.x, chat)),
        MAX(blob, MIN(proposedCenter.y, sink))
    );
}

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

@end
