






#import "IdentityView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+KeyImage.h"
#import "PaceDownHue.h"
#import "NSString+Extension.h"
#import "AskAlertView.h"
#import "AnimatingMonthWindow.h"
#import "StickyMoleHeapViewController.h"
#import "UIDevice+BagDevice.h"
#import "AboutLikeManager.h"

@interface IdentityView()  <UIGestureRecognizerDelegate> {
    CGPoint tatarToneRowsUnorderedLighterBring;
    BOOL iterateKurdishPhysicalWayUnordered;
    BOOL modeReuseWhoShortcutNecessaryBundle; 
    BOOL effortPresetReceiverPortalLargest; 
}


@property (nonatomic, strong) AnimatingMonthWindow *napNowBurnWindow;
@property (nonatomic, weak) UIWindow *mismatchCityWindow;


@property (nonatomic, strong) UIImageView *eggPeopleView;
@property (nonatomic, strong) UIView *seePerformsView;


@property (nonatomic, strong) UIView *affineYetView;
@property (nonatomic, strong) UILabel *fractionsLabel;
@property (nonatomic, assign) BOOL precisionPinkDisplaysAgeDid;


@property (nonatomic, strong) NSTimer *faxDueNearHueTimer;
@property (nonatomic, assign) UIEdgeInsets cornersMatchHourlyMenSucceeded;
@property (nonatomic, assign) CGRect specialWarningKeepRetFunctionsWire;


@property (nonatomic, strong) UIImage *disposeDustImage;
@property (nonatomic, copy) NSString *deltaMixChangedSonBad;
@property (nonatomic, strong) UIImage *loveFloatImage;
@property (nonatomic, assign) CGFloat beganEmergency;
@property (nonatomic, assign) TopRowSwitchEdge spanRowLimitEdge;
@property (nonatomic, assign) NSTimeInterval ruleEuropeanBehaviorThreadPage;
@property (nonatomic, assign) BOOL paceSubsetBlockerJustClearedPrevented;
@end

@implementation IdentityView


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

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

- (void)connectSliceAlignFirmwareTheme {
    self.beganEmergency = 10.0;
    self.ruleEuropeanBehaviorThreadPage = 3.0;
    self.paceSubsetBlockerJustClearedPrevented = YES;
    
    
    self.eggPeopleView = [[UIImageView alloc] init];
    self.eggPeopleView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.eggPeopleView];
    
    self.affineYetView = [[UIView alloc] init];
    self.affineYetView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.affineYetView.layer.cornerRadius = 20;
    self.affineYetView.layer.masksToBounds = YES;
    self.affineYetView.alpha = 0.0;
    
    self.fractionsLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.fractionsLabel.text = PaceDownHue.touchBusyMalay.thickSuperiorsHailAcquireMegawattsYellow;
    self.fractionsLabel.numberOfLines = 0;
    self.fractionsLabel.textColor = [UIColor whiteColor];
    self.fractionsLabel.textAlignment = NSTextAlignmentCenter;
    self.fractionsLabel.font = [UIFont systemFontOfSize:14];
    [self.affineYetView addSubview:self.fractionsLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(availSnowStill:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *she = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(discardedDirty)];
    [self addGestureRecognizer:she];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(folderReturnsFragmentsSumGenreEar)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setLeapManTabJson:(NSDictionary *)leapManTabJson {
    _leapManTabJson = leapManTabJson;
    if (leapManTabJson && self.napNowBurnWindow != nil) {
        NSString *action = leapManTabJson[PaceDownHue.absoluteAuto.sheDelayTagBit];
        if ([action isEqualToString:PaceDownHue.absoluteAuto.infoMoireWin]) {
            self.seePerformsView.hidden = NO;
        }else if ([action isEqualToString:PaceDownHue.absoluteAuto.inverseEmail]) {
            self.seePerformsView.hidden = YES;
        }else if ([action isEqualToString:PaceDownHue.absoluteAuto.focusedSmileEastSelectorIntro]) {
            self.seePerformsView.hidden = NO;
        }
    }
}


+ (void)toneSplat {
    [self.shared consumerPosterHellmanBloodWhoAlwaysImage:[UIImage whoGallonsFemaleReportingSawName:PaceDownHue.absoluteAuto.centeringTwoFeatureEditorTeam] noteLogo:PaceDownHue.zeroBookSlidingAzimuthInland helpImage:nil];
}

+ (void)drawBlueAdoptImage:(UIImage *)image {
    [[self shared] consumerPosterHellmanBloodWhoAlwaysImage:image helpImage:nil];
}

+ (void)acuteResumeImage:(UIImage *)normalImage helpImage:(nullable UIImage *)helpImage {
    IdentityView *instance = [self shared];
    instance.disposeDustImage = normalImage;
    instance.deltaMixChangedSonBad = nil;
    instance.loveFloatImage = helpImage;
    instance.eggPeopleView.image = normalImage;
}

+ (void)soundPlay {
    [[self shared] silenceFactoriesBroadcastSymmetricFetched];
}

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


- (void)consumerPosterHellmanBloodWhoAlwaysImage:(UIImage *)image helpImage:(nullable UIImage *)helpImage {
    [self consumerPosterHellmanBloodWhoAlwaysImage:image noteLogo:nil helpImage:helpImage];
}

- (void)consumerPosterHellmanBloodWhoAlwaysImage:(UIImage *)image noteLogo:(NSString *)noteLogo helpImage:(nullable UIImage *)helpImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.disposeDustImage = image;
        self.deltaMixChangedSonBad = noteLogo;
        self.loveFloatImage = helpImage;
        
        if (!self.napNowBurnWindow) {
            [self labeledRemainingHelperRawItsWindow];
            [self olympusFatPersianBackupTwenty];
            [self checkerIgnoringRunCoalescePubEar];
            [self formLeapOuncesUrgentAppleRaise]; 
        }
        
        [self.napNowBurnWindow makeKeyAndVisible];
        [self.mismatchCityWindow makeKeyWindow];
        
        [self tooCornerNegateLoadingTerahertzAdobeAnimation:YES];
        [self allowRegionPacketRevertChargingTimer];
    });
}

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


- (void)labeledRemainingHelperRawItsWindow {
    
    self.mismatchCityWindow = [self weekSeeTipYouStylizeWindow];
    
    
    AnimatingMonthWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[AnimatingMonthWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[AnimatingMonthWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[StickyMoleHeapViewController alloc] init];
    window.hidden = NO;
    self.napNowBurnWindow = window;
    
    
    [self.napNowBurnWindow resignKeyWindow];
    [self.mismatchCityWindow makeKeyWindow];
    
    
    [self addSubview:self.seePerformsView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.deltaMixChangedSonBad) {
        [self.eggPeopleView sd_setImageWithURL:[NSURL URLWithString:self.deltaMixChangedSonBad] placeholderImage
                                              :[UIImage whoGallonsFemaleReportingSawName:PaceDownHue.absoluteAuto.centeringTwoFeatureEditorTeam]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.eggPeopleView.image = self.disposeDustImage;
    }
    self.eggPeopleView.frame = self.bounds;
    
    [self.napNowBurnWindow addSubview:self];
    [self.napNowBurnWindow addSubview:self.affineYetView];
}


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

          (kannadaPaste.size.width - exist/2),
          kannadaPaste.size.height - exist/2,
          exist,
          exist
        );
        self.affineYetView.layer.masksToBounds = YES;
        self.affineYetView.layer.cornerRadius = exist/2;
        self.fractionsLabel.center = CGPointMake(exist/3, exist/4);
    }
}


- (void)discardedDirty {
    if (self.leapManTabJson) {
        !self.hostRoomHandler ?: self.hostRoomHandler(self.leapManTabJson[PaceDownHue.absoluteAuto.manBoundLow]);
        if ([self.leapManTabJson[PaceDownHue.absoluteAuto.sheDelayTagBit] isEqualToString:PaceDownHue.absoluteAuto.focusedSmileEastSelectorIntro]) {
            self.seePerformsView.hidden = YES;
            _leapManTabJson = nil;
        }
    }else {
        !self.hostRoomHandler ?: self.hostRoomHandler(nil);
    }
}

- (void)availSnowStill:(UIPanGestureRecognizer *)gesture {
    if (iterateKurdishPhysicalWayUnordered) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            tatarToneRowsUnorderedLighterBring = self.center;
            _eggPeopleView.alpha = 1;
            [self lookMirroringUserPastProtein];
            modeReuseWhoShortcutNecessaryBundle = NO; 
            effortPresetReceiverPortalLargest = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.affineYetView.layer removeAllAnimations];
            
            
            self.affineYetView.alpha = 0.0;
            self.affineYetView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self rationalArcadeSoftwareReturnsTornadoPenChatCenter:
                           CGPointMake(tatarToneRowsUnorderedLighterBring.x + translation.x,
                                       tatarToneRowsUnorderedLighterBring.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL HelloAtomic = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect certFrame = self.affineYetView.frame;
            CGRect axialEdit = CGRectInset(certFrame, -280, HelloAtomic?-100:-280); 
            BOOL stakeMinPolo = CGRectContainsPoint(axialEdit, self.center);
            
            
            
            
            if (stakeMinPolo != effortPresetReceiverPortalLargest) {
                effortPresetReceiverPortalLargest = stakeMinPolo;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.affineYetView.alpha = stakeMinPolo ? 1.0 : 0.0;
                    self.affineYetView.transform = stakeMinPolo ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            stakeMinPolo = CGRectContainsPoint(CGRectInset(certFrame, 0, 0), self.center);
            if (stakeMinPolo && !modeReuseWhoShortcutNecessaryBundle) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                modeReuseWhoShortcutNecessaryBundle = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.affineYetView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!stakeMinPolo) {
                if (modeReuseWhoShortcutNecessaryBundle) {
                    self.affineYetView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                modeReuseWhoShortcutNecessaryBundle = NO;
            }
            
            
            axialEdit = CGRectInset(certFrame, 0, 0);
            _precisionPinkDisplaysAgeDid = CGRectContainsPoint(axialEdit, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.affineYetView.alpha = 0.0;
                self.affineYetView.transform = CGAffineTransformIdentity;
            }];
            
            if (_precisionPinkDisplaysAgeDid) {
                [AskAlertView notationWasTokenTriggerYouBars:nil message:PaceDownHue.touchBusyMalay.comparedProcessedStepEquallyIllLanguages bypassMenHow:@[PaceDownHue.touchBusyMalay.optAloneBig, PaceDownHue.touchBusyMalay.twitter] completion:^(NSInteger dueBedIndex) {
                    if (dueBedIndex ==1) {
                        [self silenceFactoriesBroadcastSymmetricFetched];
                    }else {
                        [self tooCornerNegateLoadingTerahertzAdobeAnimation:YES];
                        [self allowRegionPacketRevertChargingTimer];
                    }
                }];
            } else {
                [self tooCornerNegateLoadingTerahertzAdobeAnimation:YES];
                [self allowRegionPacketRevertChargingTimer];
            }
            modeReuseWhoShortcutNecessaryBundle = NO;
            effortPresetReceiverPortalLargest = NO;
            break;
        }

        default: break;
    }
}


- (void)tooCornerNegateLoadingTerahertzAdobeAnimation:(BOOL)animate {
    if (!_paceSubsetBlockerJustClearedPrevented) return;
    
    
    if (iterateKurdishPhysicalWayUnordered && animate) return;
    
    CGRect meanFrame = [self observingStrokeMomentaryAlcoholBevelFrame];
    CGPoint center = self.center;
    
    CGFloat shot = meanFrame.origin.x;
    CGFloat edit = meanFrame.origin.x + meanFrame.size.width;
    CGFloat loud = meanFrame.origin.y;
    CGFloat film = meanFrame.origin.y + meanFrame.size.height;
    
    
    TopRowSwitchEdge niacinEdge = BalanceFillerTableRunZipHundred;
    CGFloat effortTwist = CGFLOAT_MAX;
    
    
    CGFloat airKey = center.x - shot;
    CGFloat suchHue = edit - center.x;
    CGFloat caret = center.y - loud;
    CGFloat attached = film - center.y;
    
    NSArray *openMiles = @[@(airKey), @(suchHue), @(caret), @(attached)];
    NSArray *edges = @[@(ButterflyMuteKeyboardCupPointerBlur), @(EstablishFairMainSawKilogramOnline),
                       @(DismissAutomaticSemicolonImageGeneral), @(CompanyWarpCupPashtoSymbolsInstant)];
    
    for (NSInteger i = 0; i < openMiles.count; i++) {
        CGFloat distance = [openMiles[i] floatValue];
        if (distance < effortTwist) {
            effortTwist = distance;
            niacinEdge = [edges[i] integerValue];
        }
    }
    
    
    if (niacinEdge == self.spanRowLimitEdge) {
        CGPoint moleNotCenter = self.center;
        CGPoint insideCenter = [self leapPrepReturnMergeKeyDetectsEdge:niacinEdge];
        CGFloat distance = hypot(moleNotCenter.x - insideCenter.x, moleNotCenter.y - insideCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.spanRowLimitEdge = niacinEdge;
    
    
    CGPoint insideCenter = [self leapPrepReturnMergeKeyDetectsEdge:niacinEdge];
    CGPoint extraCenter = [self creamyLowActivatedSubscriptStartZipAdvertiseEdge:niacinEdge];
    
    
    iterateKurdishPhysicalWayUnordered = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->iterateKurdishPhysicalWayUnordered = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = insideCenter;
        self.seePerformsView.center = extraCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)leapPrepReturnMergeKeyDetectsEdge:(TopRowSwitchEdge)edge {
    CGRect meanFrame = [self observingStrokeMomentaryAlcoholBevelFrame];
    CGPoint center = self.center;
    
    CGFloat shot = meanFrame.origin.x;
    CGFloat edit = meanFrame.origin.x + meanFrame.size.width;
    CGFloat loud = meanFrame.origin.y;
    CGFloat film = meanFrame.origin.y + meanFrame.size.height;
    
    CGPoint insideCenter = center;
    
    switch (edge) {
        case ButterflyMuteKeyboardCupPointerBlur:
            insideCenter.x = shot + self.bounds.size.width/2 + _beganEmergency;
            break;
        case EstablishFairMainSawKilogramOnline:
            insideCenter.x = edit - self.bounds.size.width/2 - _beganEmergency;
            break;
        case DismissAutomaticSemicolonImageGeneral:
            insideCenter.y = loud + self.bounds.size.height/2 + _beganEmergency;
            break;
        case CompanyWarpCupPashtoSymbolsInstant:
            insideCenter.y = film - self.bounds.size.height/2 - _beganEmergency;
            break;
        default:
            break;
    }
    
    
    return [self rationalArcadeSoftwareReturnsTornadoPenChatCenter:insideCenter];
}


- (CGPoint)creamyLowActivatedSubscriptStartZipAdvertiseEdge:(TopRowSwitchEdge)edge {
    CGPoint extraCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case ButterflyMuteKeyboardCupPointerBlur:
            extraCenter.x = self.bounds.size.width;
            break;
        case EstablishFairMainSawKilogramOnline:
            
            break;
        case DismissAutomaticSemicolonImageGeneral:
            extraCenter.x = self.bounds.size.width;
            extraCenter.y = self.bounds.size.height;
            break;
        case CompanyWarpCupPashtoSymbolsInstant:
            extraCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return extraCenter;
}


- (void)allowRegionPacketRevertChargingTimer {
    if (_ruleEuropeanBehaviorThreadPage <= 0) return;
    
    [self lookMirroringUserPastProtein];
    _faxDueNearHueTimer = [NSTimer scheduledTimerWithTimeInterval:_ruleEuropeanBehaviorThreadPage
                                                     target:self
                                                   selector:@selector(loudFinnishWakeBatteryFinal)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)lookMirroringUserPastProtein {
    [_faxDueNearHueTimer invalidate];
    _faxDueNearHueTimer = nil;
}

- (void)loudFinnishWakeBatteryFinal {
    [UIView animateWithDuration:0.3 animations:^{
        self.eggPeopleView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.spanRowLimitEdge) {
            case ButterflyMuteKeyboardCupPointerBlur:
                frame.origin.x -= self.beganEmergency;
                break;
            case EstablishFairMainSawKilogramOnline:
                frame.origin.x += self.beganEmergency;
                break;
            case DismissAutomaticSemicolonImageGeneral:
                frame.origin.y -= self.beganEmergency;
                break;
            case CompanyWarpCupPashtoSymbolsInstant:
                frame.origin.y += self.beganEmergency;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)folderReturnsFragmentsSumGenreEar {
    [self olympusFatPersianBackupTwenty];
    [self formLeapOuncesUrgentAppleRaise]; 
    [self tooCornerNegateLoadingTerahertzAdobeAnimation:YES];
}


- (void)olympusFatPersianBackupTwenty {
    UIWindow *keyWindow = AboutLikeManager.shared.scriptRhythmWindow; //self.mismatchCityWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice whiteMid]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice german]) {
        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.cornersMatchHourlyMenSucceeded = safeArea;
    self.specialWarningKeepRetFunctionsWire = keyWindow.bounds;
}

- (CGRect)observingStrokeMomentaryAlcoholBevelFrame {
    
    return CGRectMake(
        self.specialWarningKeepRetFunctionsWire.origin.x + self.cornersMatchHourlyMenSucceeded.left,
        self.specialWarningKeepRetFunctionsWire.origin.y + self.cornersMatchHourlyMenSucceeded.top,
        self.specialWarningKeepRetFunctionsWire.size.width - (self.cornersMatchHourlyMenSucceeded.left + self.cornersMatchHourlyMenSucceeded.right),
        self.specialWarningKeepRetFunctionsWire.size.height - (self.cornersMatchHourlyMenSucceeded.top + self.cornersMatchHourlyMenSucceeded.bottom)
    );
}


- (void)checkerIgnoringRunCoalescePubEar {
    NSString *sunHerAssign = [[NSUserDefaults standardUserDefaults] valueForKey:PaceDownHue.absoluteAuto.overwriteBrowsingLongerMinSwipeCompleted];
    if (sunHerAssign) {
        self.center = CGPointFromString(sunHerAssign);
    }else {
        
        CGRect meanFrame = [self observingStrokeMomentaryAlcoholBevelFrame];
        self.center = CGPointMake(meanFrame.origin.x + meanFrame.size.width - self.bounds.size.width/2 - _beganEmergency,
                                  meanFrame.origin.y + meanFrame.size.height/2);
    }
}


- (UIWindow *)weekSeeTipYouStylizeWindow {
    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)rationalArcadeSoftwareReturnsTornadoPenChatCenter:(CGPoint)proposedCenter {
    CGRect meanFrame = [self observingStrokeMomentaryAlcoholBevelFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat shot = meanFrame.origin.x + buttonSize.width/2;
    CGFloat edit = meanFrame.origin.x + meanFrame.size.width - buttonSize.width/2;
    CGFloat loud = meanFrame.origin.y + buttonSize.height/2;
    CGFloat film = meanFrame.origin.y + meanFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(shot, MIN(proposedCenter.x, edit)),
        MAX(loud, MIN(proposedCenter.y, film))
    );
}

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

@end
