






#import "PhotoWonView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MinImage.h"
#import "PrintFarFor.h"
#import "NSString+Aggregate.h"
#import "NetAlertView.h"
#import "RemoveKeepCityWindow.h"
#import "AgeMeterAddSexViewController.h"
#import "UIDevice+AirDevice.h"
#import "WeekStripManager.h"

@interface PhotoWonView()  <UIGestureRecognizerDelegate> {
    CGPoint kernelClockPlusEntriesDoneJoining;
    BOOL universalComputerStrongCompoundExits;
    BOOL charBevelOurImpactTriangleFifteen; 
    BOOL hundredsSinExportedGatewaysSpan; 
}


@property (nonatomic, strong) RemoveKeepCityWindow *axesParentWindow;
@property (nonatomic, weak) UIWindow *hexSpouseManWindow;


@property (nonatomic, strong) UIImageView *walkCloudView;
@property (nonatomic, strong) UIView *artBaseBoldView;


@property (nonatomic, strong) UIView *elevationView;
@property (nonatomic, strong) UILabel *suspendedLabel;
@property (nonatomic, assign) BOOL cubicStrokeHybridMenImage;


@property (nonatomic, strong) NSTimer *rangeAsteriskTimer;
@property (nonatomic, assign) UIEdgeInsets passiveWaxMismatchIterativeResponse;
@property (nonatomic, assign) CGRect popoverCivilDenseMeteringProtocolOvulation;


@property (nonatomic, strong) UIImage *manSupportsImage;
@property (nonatomic, copy) NSString *retCombinedHeadlineEraTop;
@property (nonatomic, strong) UIImage *popUnableImage;
@property (nonatomic, assign) CGFloat todayEggBadJob;
@property (nonatomic, assign) OutStatementEdge pieceSeekSobEdge;
@property (nonatomic, assign) NSTimeInterval musicAdapterSubtractDecipherSpanish;
@property (nonatomic, assign) BOOL polarDetailedConsumerSexualSemanticsOutdoor;
@end

@implementation PhotoWonView


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

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

- (void)stopHandoffAnchorsYouMean {
    self.todayEggBadJob = 10.0;
    self.musicAdapterSubtractDecipherSpanish = 3.0;
    self.polarDetailedConsumerSexualSemanticsOutdoor = YES;
    
    
    self.walkCloudView = [[UIImageView alloc] init];
    self.walkCloudView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.walkCloudView];
    
    self.elevationView = [[UIView alloc] init];
    self.elevationView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.elevationView.layer.cornerRadius = 20;
    self.elevationView.layer.masksToBounds = YES;
    self.elevationView.alpha = 0.0;
    
    self.suspendedLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.suspendedLabel.text = PrintFarFor.tempSockJobHas.domainReleaseGreenDarkerAnimatorBits;
    self.suspendedLabel.numberOfLines = 0;
    self.suspendedLabel.textColor = [UIColor whiteColor];
    self.suspendedLabel.textAlignment = NSTextAlignmentCenter;
    self.suspendedLabel.font = [UIFont systemFontOfSize:14];
    [self.elevationView addSubview:self.suspendedLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(behavePostcard:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *fit = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(mapBigNowMixer)];
    [self addGestureRecognizer:fit];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(footerMenMergeMenstrualPasswordsAny)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setIcyCanFootJson:(NSDictionary *)icyCanFootJson {
    _icyCanFootJson = icyCanFootJson;
    if (icyCanFootJson && self.axesParentWindow != nil) {
        NSString *action = icyCanFootJson[PrintFarFor.guideMaySelf.rearBoostLoops];
        if ([action isEqualToString:PrintFarFor.guideMaySelf.introPinLook]) {
            self.artBaseBoldView.hidden = NO;
        }else if ([action isEqualToString:PrintFarFor.guideMaySelf.launchIodine]) {
            self.artBaseBoldView.hidden = YES;
        }else if ([action isEqualToString:PrintFarFor.guideMaySelf.lessExpertGoogleRankInherited]) {
            self.artBaseBoldView.hidden = NO;
        }
    }
}


+ (void)tripleSay {
    [self.shared collapsesFinalizeSubBasicZipDownImage:[UIImage lossyCurlRadialUnderlinePromotionName:PrintFarFor.guideMaySelf.aspectCurlLambdaHitCompleted] speakHex:PrintFarFor.garbageChildrenRoomRunningEgg liftImage:nil];
}

+ (void)databaseExitsImage:(UIImage *)image {
    [[self shared] collapsesFinalizeSubBasicZipDownImage:image liftImage:nil];
}

+ (void)pinkSlashesImage:(UIImage *)normalImage liftImage:(nullable UIImage *)liftImage {
    PhotoWonView *instance = [self shared];
    instance.manSupportsImage = normalImage;
    instance.retCombinedHeadlineEraTop = nil;
    instance.popUnableImage = liftImage;
    instance.walkCloudView.image = normalImage;
}

+ (void)trustSlab {
    [[self shared] fastStripOppositeMalaySensitive];
}

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


- (void)collapsesFinalizeSubBasicZipDownImage:(UIImage *)image liftImage:(nullable UIImage *)liftImage {
    [self collapsesFinalizeSubBasicZipDownImage:image speakHex:nil liftImage:liftImage];
}

- (void)collapsesFinalizeSubBasicZipDownImage:(UIImage *)image speakHex:(NSString *)speakHex liftImage:(nullable UIImage *)liftImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.manSupportsImage = image;
        self.retCombinedHeadlineEraTop = speakHex;
        self.popUnableImage = liftImage;
        
        if (!self.axesParentWindow) {
            [self exposureHormoneEarlierNorthReachableWindow];
            [self outputsDaySubscriptOvulationUnbounded];
            [self emptyLinearlyContactCheckingCloseRender];
            [self providingAirZipCardioidVendorPublish]; 
        }
        
        [self.axesParentWindow makeKeyAndVisible];
        [self.hexSpouseManWindow makeKeyWindow];
        
        [self offDeliverySiteWeekdaySoftballFastestAnimation:YES];
        [self autoBeenHurricaneRedLengthTimer];
    });
}

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


- (void)exposureHormoneEarlierNorthReachableWindow {
    
    self.hexSpouseManWindow = [self exposuresPressureSlashedPersonStreetWindow];
    
    
    RemoveKeepCityWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[RemoveKeepCityWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[RemoveKeepCityWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[AgeMeterAddSexViewController alloc] init];
    window.hidden = NO;
    self.axesParentWindow = window;
    
    
    [self.axesParentWindow resignKeyWindow];
    [self.hexSpouseManWindow makeKeyWindow];
    
    
    [self addSubview:self.artBaseBoldView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.retCombinedHeadlineEraTop) {
        [self.walkCloudView sd_setImageWithURL:[NSURL URLWithString:self.retCombinedHeadlineEraTop] placeholderImage
                                              :[UIImage lossyCurlRadialUnderlinePromotionName:PrintFarFor.guideMaySelf.aspectCurlLambdaHitCompleted]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.walkCloudView.image = self.manSupportsImage;
    }
    self.walkCloudView.frame = self.bounds;
    
    [self.axesParentWindow addSubview:self];
    [self.axesParentWindow addSubview:self.elevationView];
}


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

          (albanianHead.size.width - boost/2),
          albanianHead.size.height - boost/2,
          boost,
          boost
        );
        self.elevationView.layer.masksToBounds = YES;
        self.elevationView.layer.cornerRadius = boost/2;
        self.suspendedLabel.center = CGPointMake(boost/3, boost/4);
    }
}


- (void)mapBigNowMixer {
    if (self.icyCanFootJson) {
        !self.hexFarsiHandler ?: self.hexFarsiHandler(self.icyCanFootJson[PrintFarFor.guideMaySelf.rootCricket]);
        if ([self.icyCanFootJson[PrintFarFor.guideMaySelf.rearBoostLoops] isEqualToString:PrintFarFor.guideMaySelf.lessExpertGoogleRankInherited]) {
            self.artBaseBoldView.hidden = YES;
            _icyCanFootJson = nil;
        }
    }else {
        !self.hexFarsiHandler ?: self.hexFarsiHandler(nil);
    }
}

- (void)behavePostcard:(UIPanGestureRecognizer *)gesture {
    if (universalComputerStrongCompoundExits) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            kernelClockPlusEntriesDoneJoining = self.center;
            _walkCloudView.alpha = 1;
            [self pressureDivideOwnSchedulerBaltic];
            charBevelOurImpactTriangleFifteen = NO; 
            hundredsSinExportedGatewaysSpan = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.elevationView.layer removeAllAnimations];
            
            
            self.elevationView.alpha = 0.0;
            self.elevationView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self retBufferAscendedFlightOlympusPortraitRecipientCenter:
                           CGPointMake(kernelClockPlusEntriesDoneJoining.x + translation.x,
                                       kernelClockPlusEntriesDoneJoining.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL UnwindRoute = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect pastFrame = self.elevationView.frame;
            CGRect millExits = CGRectInset(pastFrame, -280, UnwindRoute?-100:-280); 
            BOOL howSingleTab = CGRectContainsPoint(millExits, self.center);
            
            
            
            
            if (howSingleTab != hundredsSinExportedGatewaysSpan) {
                hundredsSinExportedGatewaysSpan = howSingleTab;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.elevationView.alpha = howSingleTab ? 1.0 : 0.0;
                    self.elevationView.transform = howSingleTab ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            howSingleTab = CGRectContainsPoint(CGRectInset(pastFrame, 0, 0), self.center);
            if (howSingleTab && !charBevelOurImpactTriangleFifteen) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                charBevelOurImpactTriangleFifteen = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.elevationView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!howSingleTab) {
                if (charBevelOurImpactTriangleFifteen) {
                    self.elevationView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                charBevelOurImpactTriangleFifteen = NO;
            }
            
            
            millExits = CGRectInset(pastFrame, 0, 0);
            _cubicStrokeHybridMenImage = CGRectContainsPoint(millExits, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.elevationView.alpha = 0.0;
                self.elevationView.transform = CGAffineTransformIdentity;
            }];
            
            if (_cubicStrokeHybridMenImage) {
                [NetAlertView ubiquityMildMileIntentMoreHello:nil message:PrintFarFor.tempSockJobHas.ligaturesBookmarksBrokenSphericalReuseExposure maleDayShort:@[PrintFarFor.tempSockJobHas.wonCutDense, PrintFarFor.tempSockJobHas.tenSong] completion:^(NSInteger reportIndex) {
                    if (reportIndex ==1) {
                        [self fastStripOppositeMalaySensitive];
                    }else {
                        [self offDeliverySiteWeekdaySoftballFastestAnimation:YES];
                        [self autoBeenHurricaneRedLengthTimer];
                    }
                }];
            } else {
                [self offDeliverySiteWeekdaySoftballFastestAnimation:YES];
                [self autoBeenHurricaneRedLengthTimer];
            }
            charBevelOurImpactTriangleFifteen = NO;
            hundredsSinExportedGatewaysSpan = NO;
            break;
        }

        default: break;
    }
}


- (void)offDeliverySiteWeekdaySoftballFastestAnimation:(BOOL)animate {
    if (!_polarDetailedConsumerSexualSemanticsOutdoor) return;
    
    
    if (universalComputerStrongCompoundExits && animate) return;
    
    CGRect liveFrame = [self unableSocialDocumentsBothStaleFrame];
    CGPoint center = self.center;
    
    CGFloat quit = liveFrame.origin.x;
    CGFloat pace = liveFrame.origin.x + liveFrame.size.width;
    CGFloat logo = liveFrame.origin.y;
    CGFloat pink = liveFrame.origin.y + liveFrame.size.height;
    
    
    OutStatementEdge wasSpaEdge = EncodingSomaliConnectThreadIrregularTagging;
    CGFloat supplyPitch = CGFLOAT_MAX;
    
    
    CGFloat notToo = center.x - quit;
    CGFloat snapWet = pace - center.x;
    CGFloat infer = center.y - logo;
    CGFloat labelMan = pink - center.y;
    
    NSArray *rearrange = @[@(notToo), @(snapWet), @(infer), @(labelMan)];
    NSArray *edges = @[@(LowDependentPoloFadeChangedSlab), @(NoticeFaceExceedsPeakPunjabiAlgorithm),
                       @(NorwegianMembersCutGenerateIndicator), @(AdvanceIntentSortAmbiguityExportHow)];
    
    for (NSInteger i = 0; i < rearrange.count; i++) {
        CGFloat distance = [rearrange[i] floatValue];
        if (distance < supplyPitch) {
            supplyPitch = distance;
            wasSpaEdge = [edges[i] integerValue];
        }
    }
    
    
    if (wasSpaEdge == self.pieceSeekSobEdge) {
        CGPoint parsingCenter = self.center;
        CGPoint dayFatCenter = [self printableWaistSkipItsAccessoryPresentEdge:wasSpaEdge];
        CGFloat distance = hypot(parsingCenter.x - dayFatCenter.x, parsingCenter.y - dayFatCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.pieceSeekSobEdge = wasSpaEdge;
    
    
    CGPoint dayFatCenter = [self printableWaistSkipItsAccessoryPresentEdge:wasSpaEdge];
    CGPoint brandCenter = [self lossNamePlateKeyAssumeRestingAccurateEdge:wasSpaEdge];
    
    
    universalComputerStrongCompoundExits = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->universalComputerStrongCompoundExits = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = dayFatCenter;
        self.artBaseBoldView.center = brandCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)printableWaistSkipItsAccessoryPresentEdge:(OutStatementEdge)edge {
    CGRect liveFrame = [self unableSocialDocumentsBothStaleFrame];
    CGPoint center = self.center;
    
    CGFloat quit = liveFrame.origin.x;
    CGFloat pace = liveFrame.origin.x + liveFrame.size.width;
    CGFloat logo = liveFrame.origin.y;
    CGFloat pink = liveFrame.origin.y + liveFrame.size.height;
    
    CGPoint dayFatCenter = center;
    
    switch (edge) {
        case LowDependentPoloFadeChangedSlab:
            dayFatCenter.x = quit + self.bounds.size.width/2 + _todayEggBadJob;
            break;
        case NoticeFaceExceedsPeakPunjabiAlgorithm:
            dayFatCenter.x = pace - self.bounds.size.width/2 - _todayEggBadJob;
            break;
        case NorwegianMembersCutGenerateIndicator:
            dayFatCenter.y = logo + self.bounds.size.height/2 + _todayEggBadJob;
            break;
        case AdvanceIntentSortAmbiguityExportHow:
            dayFatCenter.y = pink - self.bounds.size.height/2 - _todayEggBadJob;
            break;
        default:
            break;
    }
    
    
    return [self retBufferAscendedFlightOlympusPortraitRecipientCenter:dayFatCenter];
}


- (CGPoint)lossNamePlateKeyAssumeRestingAccurateEdge:(OutStatementEdge)edge {
    CGPoint brandCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case LowDependentPoloFadeChangedSlab:
            brandCenter.x = self.bounds.size.width;
            break;
        case NoticeFaceExceedsPeakPunjabiAlgorithm:
            
            break;
        case NorwegianMembersCutGenerateIndicator:
            brandCenter.x = self.bounds.size.width;
            brandCenter.y = self.bounds.size.height;
            break;
        case AdvanceIntentSortAmbiguityExportHow:
            brandCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return brandCenter;
}


- (void)autoBeenHurricaneRedLengthTimer {
    if (_musicAdapterSubtractDecipherSpanish <= 0) return;
    
    [self pressureDivideOwnSchedulerBaltic];
    _rangeAsteriskTimer = [NSTimer scheduledTimerWithTimeInterval:_musicAdapterSubtractDecipherSpanish
                                                     target:self
                                                   selector:@selector(revisionPitchReadableMacintoshBracketed)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)pressureDivideOwnSchedulerBaltic {
    [_rangeAsteriskTimer invalidate];
    _rangeAsteriskTimer = nil;
}

- (void)revisionPitchReadableMacintoshBracketed {
    [UIView animateWithDuration:0.3 animations:^{
        self.walkCloudView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.pieceSeekSobEdge) {
            case LowDependentPoloFadeChangedSlab:
                frame.origin.x -= self.todayEggBadJob;
                break;
            case NoticeFaceExceedsPeakPunjabiAlgorithm:
                frame.origin.x += self.todayEggBadJob;
                break;
            case NorwegianMembersCutGenerateIndicator:
                frame.origin.y -= self.todayEggBadJob;
                break;
            case AdvanceIntentSortAmbiguityExportHow:
                frame.origin.y += self.todayEggBadJob;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)footerMenMergeMenstrualPasswordsAny {
    [self outputsDaySubscriptOvulationUnbounded];
    [self providingAirZipCardioidVendorPublish]; 
    [self offDeliverySiteWeekdaySoftballFastestAnimation:YES];
}


- (void)outputsDaySubscriptOvulationUnbounded {
    UIWindow *keyWindow = WeekStripManager.shared.swipePenSideWindow; //self.hexSpouseManWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice graceful]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice lawAsk]) {
        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.passiveWaxMismatchIterativeResponse = safeArea;
    self.popoverCivilDenseMeteringProtocolOvulation = keyWindow.bounds;
}

- (CGRect)unableSocialDocumentsBothStaleFrame {
    
    return CGRectMake(
        self.popoverCivilDenseMeteringProtocolOvulation.origin.x + self.passiveWaxMismatchIterativeResponse.left,
        self.popoverCivilDenseMeteringProtocolOvulation.origin.y + self.passiveWaxMismatchIterativeResponse.top,
        self.popoverCivilDenseMeteringProtocolOvulation.size.width - (self.passiveWaxMismatchIterativeResponse.left + self.passiveWaxMismatchIterativeResponse.right),
        self.popoverCivilDenseMeteringProtocolOvulation.size.height - (self.passiveWaxMismatchIterativeResponse.top + self.passiveWaxMismatchIterativeResponse.bottom)
    );
}


- (void)emptyLinearlyContactCheckingCloseRender {
    NSString *danceTooRear = [[NSUserDefaults standardUserDefaults] valueForKey:PrintFarFor.guideMaySelf.wayArgumentDuplexGrantedCatRename];
    if (danceTooRear) {
        self.center = CGPointFromString(danceTooRear);
    }else {
        
        CGRect liveFrame = [self unableSocialDocumentsBothStaleFrame];
        self.center = CGPointMake(liveFrame.origin.x + liveFrame.size.width - self.bounds.size.width/2 - _todayEggBadJob,
                                  liveFrame.origin.y + liveFrame.size.height/2);
    }
}


- (UIWindow *)exposuresPressureSlashedPersonStreetWindow {
    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)retBufferAscendedFlightOlympusPortraitRecipientCenter:(CGPoint)proposedCenter {
    CGRect liveFrame = [self unableSocialDocumentsBothStaleFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat quit = liveFrame.origin.x + buttonSize.width/2;
    CGFloat pace = liveFrame.origin.x + liveFrame.size.width - buttonSize.width/2;
    CGFloat logo = liveFrame.origin.y + buttonSize.height/2;
    CGFloat pink = liveFrame.origin.y + liveFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(quit, MIN(proposedCenter.x, pace)),
        MAX(logo, MIN(proposedCenter.y, pink))
    );
}

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

@end
