






#import "MildSeekView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MidImage.h"
#import "BigAddition.h"
#import "NSString+MoreAlien.h"
#import "PopAlertView.h"
#import "LossySunNapManWindow.h"
#import "SubSumGuideForViewController.h"
#import "UIDevice+BinDevice.h"
#import "ThickFlagManager.h"

@interface MildSeekView()  <UIGestureRecognizerDelegate> {
    CGPoint treeScopeTreeLazyAdvisedFeat;
    BOOL spectralCanadianLastHebrewTap;
    BOOL ligaturesDaysQuarterSeeBadAre; 
    BOOL recorderUnfocusedDistantShelfAllocator; 
}


@property (nonatomic, strong) LossySunNapManWindow *loadDayAskWindow;
@property (nonatomic, weak) UIWindow *smileKinGoalWindow;


@property (nonatomic, strong) UIImageView *warpAloneView;
@property (nonatomic, strong) UIView *italianTalkView;


@property (nonatomic, strong) UIView *faxMethodView;
@property (nonatomic, strong) UILabel *floatSinkLabel;
@property (nonatomic, assign) BOOL transitEndpointSceneSenderRecent;


@property (nonatomic, strong) NSTimer *shotBulgarianTimer;
@property (nonatomic, assign) UIEdgeInsets manBrandExtrinsicSpecifyCheck;
@property (nonatomic, assign) CGRect qualityCleanupClockwiseWrappingDeferredObject;


@property (nonatomic, strong) UIImage *cutYouPriorImage;
@property (nonatomic, copy) NSString *areCadenceEvaluateStayUnbounded;
@property (nonatomic, strong) UIImage *fitWidgetImage;
@property (nonatomic, assign) CGFloat areaMidUseMeal;
@property (nonatomic, assign) GigahertzUseEdge promptWonAllEdge;
@property (nonatomic, assign) NSTimeInterval handoffCenteredModifiersRetApply;
@property (nonatomic, assign) BOOL costShoulderOcclusionTotalSpecifiedBest;
@end

@implementation MildSeekView


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

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

- (void)eraOfferSupplyVersionState {
    self.areaMidUseMeal = 10.0;
    self.handoffCenteredModifiersRetApply = 3.0;
    self.costShoulderOcclusionTotalSpecifiedBest = YES;
    
    
    self.warpAloneView = [[UIImageView alloc] init];
    self.warpAloneView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.warpAloneView];
    
    self.faxMethodView = [[UIView alloc] init];
    self.faxMethodView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.faxMethodView.layer.cornerRadius = 20;
    self.faxMethodView.layer.masksToBounds = YES;
    self.faxMethodView.alpha = 0.0;
    
    self.floatSinkLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.floatSinkLabel.text = BigAddition.lateTapLineAll.uptimeMixBoxSignerPeakSlide;
    self.floatSinkLabel.numberOfLines = 0;
    self.floatSinkLabel.textColor = [UIColor whiteColor];
    self.floatSinkLabel.textAlignment = NSTextAlignmentCenter;
    self.floatSinkLabel.font = [UIFont systemFontOfSize:14];
    [self.faxMethodView addSubview:self.floatSinkLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(pinHangRedHead:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *wax = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(stairYetSayNot)];
    [self addGestureRecognizer:wax];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(trySwipeRatioBagPossibleCurl)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setAreRegionsJson:(NSDictionary *)areRegionsJson {
    _areRegionsJson = areRegionsJson;
    if (areRegionsJson && self.loadDayAskWindow != nil) {
        NSString *action = areRegionsJson[BigAddition.noiseFactMen.attachSoftness];
        if ([action isEqualToString:BigAddition.noiseFactMen.otherHexHint]) {
            self.italianTalkView.hidden = NO;
        }else if ([action isEqualToString:BigAddition.noiseFactMen.addProviders]) {
            self.italianTalkView.hidden = YES;
        }else if ([action isEqualToString:BigAddition.noiseFactMen.loopAscendedClosureInuitPin]) {
            self.italianTalkView.hidden = NO;
        }
    }
}


+ (void)noneInner {
    [self.shared decaySliceInsertionModifiedInsertionHumanImage:[UIImage spaNumbersDayPowerRhythmName:BigAddition.noiseFactMen.bodyFrontButterflyLogoIrish] listRead:BigAddition.denseShoulderAnswerToneDatum mailImage:nil];
}

+ (void)sonMaxLibraryImage:(UIImage *)image {
    [[self shared] decaySliceInsertionModifiedInsertionHumanImage:image mailImage:nil];
}

+ (void)episodeDeepImage:(UIImage *)normalImage mailImage:(nullable UIImage *)mailImage {
    MildSeekView *instance = [self shared];
    instance.cutYouPriorImage = normalImage;
    instance.areCadenceEvaluateStayUnbounded = nil;
    instance.fitWidgetImage = mailImage;
    instance.warpAloneView.image = normalImage;
}

+ (void)observers {
    [[self shared] completedIncludingEggResetPassword];
}

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


- (void)decaySliceInsertionModifiedInsertionHumanImage:(UIImage *)image mailImage:(nullable UIImage *)mailImage {
    [self decaySliceInsertionModifiedInsertionHumanImage:image listRead:nil mailImage:mailImage];
}

- (void)decaySliceInsertionModifiedInsertionHumanImage:(UIImage *)image listRead:(NSString *)listRead mailImage:(nullable UIImage *)mailImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.cutYouPriorImage = image;
        self.areCadenceEvaluateStayUnbounded = listRead;
        self.fitWidgetImage = mailImage;
        
        if (!self.loadDayAskWindow) {
            [self traitChannelsDenyReceiptEldestWindow];
            [self digitizedMalformedRadixWarnRouter];
            [self modifyThousandFaxRectangleLoopInhaler];
            [self hueHexAndDanceHandlerOxygen]; 
        }
        
        [self.loadDayAskWindow makeKeyAndVisible];
        [self.smileKinGoalWindow makeKeyWindow];
        
        [self replyConjugateOurDemandReaderYouAnimation:YES];
        [self kilometerReportsIconFactAdvanceTimer];
    });
}

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


- (void)traitChannelsDenyReceiptEldestWindow {
    
    self.smileKinGoalWindow = [self eraInterestBoxSheRetWindow];
    
    
    LossySunNapManWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[LossySunNapManWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[LossySunNapManWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[SubSumGuideForViewController alloc] init];
    window.hidden = NO;
    self.loadDayAskWindow = window;
    
    
    [self.loadDayAskWindow resignKeyWindow];
    [self.smileKinGoalWindow makeKeyWindow];
    
    
    [self addSubview:self.italianTalkView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.areCadenceEvaluateStayUnbounded) {
        [self.warpAloneView sd_setImageWithURL:[NSURL URLWithString:self.areCadenceEvaluateStayUnbounded] placeholderImage
                                              :[UIImage spaNumbersDayPowerRhythmName:BigAddition.noiseFactMen.bodyFrontButterflyLogoIrish]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.warpAloneView.image = self.cutYouPriorImage;
    }
    self.warpAloneView.frame = self.bounds;
    
    [self.loadDayAskWindow addSubview:self];
    [self.loadDayAskWindow addSubview:self.faxMethodView];
}


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

          (reasonFitOpt.size.width - great/2),
          reasonFitOpt.size.height - great/2,
          great,
          great
        );
        self.faxMethodView.layer.masksToBounds = YES;
        self.faxMethodView.layer.cornerRadius = great/2;
        self.floatSinkLabel.center = CGPointMake(great/3, great/4);
    }
}


- (void)stairYetSayNot {
    if (self.areRegionsJson) {
        !self.ownDeltaHandler ?: self.ownDeltaHandler(self.areRegionsJson[BigAddition.noiseFactMen.pitchCanMen]);
        if ([self.areRegionsJson[BigAddition.noiseFactMen.attachSoftness] isEqualToString:BigAddition.noiseFactMen.loopAscendedClosureInuitPin]) {
            self.italianTalkView.hidden = YES;
            _areRegionsJson = nil;
        }
    }else {
        !self.ownDeltaHandler ?: self.ownDeltaHandler(nil);
    }
}

- (void)pinHangRedHead:(UIPanGestureRecognizer *)gesture {
    if (spectralCanadianLastHebrewTap) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            treeScopeTreeLazyAdvisedFeat = self.center;
            _warpAloneView.alpha = 1;
            [self asleepDownloadStepAwayNote];
            ligaturesDaysQuarterSeeBadAre = NO; 
            recorderUnfocusedDistantShelfAllocator = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.faxMethodView.layer removeAllAnimations];
            
            
            self.faxMethodView.alpha = 0.0;
            self.faxMethodView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self notCubicRetSlightAudiogramStrictSonCenter:
                           CGPointMake(treeScopeTreeLazyAdvisedFeat.x + translation.x,
                                       treeScopeTreeLazyAdvisedFeat.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL AtomGramMin = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect nextFrame = self.faxMethodView.frame;
            CGRect diacritic = CGRectInset(nextFrame, -280, AtomGramMin?-100:-280); 
            BOOL yiddishStone = CGRectContainsPoint(diacritic, self.center);
            
            
            
            
            if (yiddishStone != recorderUnfocusedDistantShelfAllocator) {
                recorderUnfocusedDistantShelfAllocator = yiddishStone;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.faxMethodView.alpha = yiddishStone ? 1.0 : 0.0;
                    self.faxMethodView.transform = yiddishStone ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            yiddishStone = CGRectContainsPoint(CGRectInset(nextFrame, 0, 0), self.center);
            if (yiddishStone && !ligaturesDaysQuarterSeeBadAre) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                ligaturesDaysQuarterSeeBadAre = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.faxMethodView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!yiddishStone) {
                if (ligaturesDaysQuarterSeeBadAre) {
                    self.faxMethodView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                ligaturesDaysQuarterSeeBadAre = NO;
            }
            
            
            diacritic = CGRectInset(nextFrame, 0, 0);
            _transitEndpointSceneSenderRecent = CGRectContainsPoint(diacritic, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.faxMethodView.alpha = 0.0;
                self.faxMethodView.transform = CGAffineTransformIdentity;
            }];
            
            if (_transitEndpointSceneSenderRecent) {
                [PopAlertView headlineRedirectPlusDietaryCursorsCorner:nil message:BigAddition.lateTapLineAll.numeratorSpeakingDisablesFlexibleCurlInitiated circularSeed:@[BigAddition.lateTapLineAll.noiseIntent, BigAddition.lateTapLineAll.pinZone] completion:^(NSInteger tipTryIndex) {
                    if (tipTryIndex ==1) {
                        [self completedIncludingEggResetPassword];
                    }else {
                        [self replyConjugateOurDemandReaderYouAnimation:YES];
                        [self kilometerReportsIconFactAdvanceTimer];
                    }
                }];
            } else {
                [self replyConjugateOurDemandReaderYouAnimation:YES];
                [self kilometerReportsIconFactAdvanceTimer];
            }
            ligaturesDaysQuarterSeeBadAre = NO;
            recorderUnfocusedDistantShelfAllocator = NO;
            break;
        }

        default: break;
    }
}


- (void)replyConjugateOurDemandReaderYouAnimation:(BOOL)animate {
    if (!_costShoulderOcclusionTotalSpecifiedBest) return;
    
    
    if (spectralCanadianLastHebrewTap && animate) return;
    
    CGRect turnFrame = [self pedometerCutSexPauseLateFrame];
    CGPoint center = self.center;
    
    CGFloat clip = turnFrame.origin.x;
    CGFloat scan = turnFrame.origin.x + turnFrame.size.width;
    CGFloat atom = turnFrame.origin.y;
    CGFloat dust = turnFrame.origin.y + turnFrame.size.height;
    
    
    GigahertzUseEdge topIcyEdge = DarkerArabicOwnerSixInvertSpeed;
    CGFloat wonGreatTop = CGFLOAT_MAX;
    
    
    CGFloat expose = center.x - clip;
    CGFloat howMale = scan - center.x;
    CGFloat paper = center.y - atom;
    CGFloat illBring = dust - center.y;
    
    NSArray *menAppear = @[@(expose), @(howMale), @(paper), @(illBring)];
    NSArray *edges = @[@(VowelPrimariesLexiconForHeaderDomain), @(ProxySmallThatCheckedYetHighest),
                       @(LigatureTextureRecordDisablesDaily), @(AnimationStreamedAcceptedHallRouteRecycle)];
    
    for (NSInteger i = 0; i < menAppear.count; i++) {
        CGFloat distance = [menAppear[i] floatValue];
        if (distance < wonGreatTop) {
            wonGreatTop = distance;
            topIcyEdge = [edges[i] integerValue];
        }
    }
    
    
    if (topIcyEdge == self.promptWonAllEdge) {
        CGPoint taskBitCenter = self.center;
        CGPoint iodineCenter = [self bridgeFilmPurposeGeneratorParentalCupEdge:topIcyEdge];
        CGFloat distance = hypot(taskBitCenter.x - iodineCenter.x, taskBitCenter.y - iodineCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.promptWonAllEdge = topIcyEdge;
    
    
    CGPoint iodineCenter = [self bridgeFilmPurposeGeneratorParentalCupEdge:topIcyEdge];
    CGPoint trustCenter = [self mapWalkCropPaymentsMotionShareRunEdge:topIcyEdge];
    
    
    spectralCanadianLastHebrewTap = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->spectralCanadianLastHebrewTap = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = iodineCenter;
        self.italianTalkView.center = trustCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)bridgeFilmPurposeGeneratorParentalCupEdge:(GigahertzUseEdge)edge {
    CGRect turnFrame = [self pedometerCutSexPauseLateFrame];
    CGPoint center = self.center;
    
    CGFloat clip = turnFrame.origin.x;
    CGFloat scan = turnFrame.origin.x + turnFrame.size.width;
    CGFloat atom = turnFrame.origin.y;
    CGFloat dust = turnFrame.origin.y + turnFrame.size.height;
    
    CGPoint iodineCenter = center;
    
    switch (edge) {
        case VowelPrimariesLexiconForHeaderDomain:
            iodineCenter.x = clip + self.bounds.size.width/2 + _areaMidUseMeal;
            break;
        case ProxySmallThatCheckedYetHighest:
            iodineCenter.x = scan - self.bounds.size.width/2 - _areaMidUseMeal;
            break;
        case LigatureTextureRecordDisablesDaily:
            iodineCenter.y = atom + self.bounds.size.height/2 + _areaMidUseMeal;
            break;
        case AnimationStreamedAcceptedHallRouteRecycle:
            iodineCenter.y = dust - self.bounds.size.height/2 - _areaMidUseMeal;
            break;
        default:
            break;
    }
    
    
    return [self notCubicRetSlightAudiogramStrictSonCenter:iodineCenter];
}


- (CGPoint)mapWalkCropPaymentsMotionShareRunEdge:(GigahertzUseEdge)edge {
    CGPoint trustCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case VowelPrimariesLexiconForHeaderDomain:
            trustCenter.x = self.bounds.size.width;
            break;
        case ProxySmallThatCheckedYetHighest:
            
            break;
        case LigatureTextureRecordDisablesDaily:
            trustCenter.x = self.bounds.size.width;
            trustCenter.y = self.bounds.size.height;
            break;
        case AnimationStreamedAcceptedHallRouteRecycle:
            trustCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return trustCenter;
}


- (void)kilometerReportsIconFactAdvanceTimer {
    if (_handoffCenteredModifiersRetApply <= 0) return;
    
    [self asleepDownloadStepAwayNote];
    _shotBulgarianTimer = [NSTimer scheduledTimerWithTimeInterval:_handoffCenteredModifiersRetApply
                                                     target:self
                                                   selector:@selector(meanDanceDeciliterMovieIssue)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)asleepDownloadStepAwayNote {
    [_shotBulgarianTimer invalidate];
    _shotBulgarianTimer = nil;
}

- (void)meanDanceDeciliterMovieIssue {
    [UIView animateWithDuration:0.3 animations:^{
        self.warpAloneView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.promptWonAllEdge) {
            case VowelPrimariesLexiconForHeaderDomain:
                frame.origin.x -= self.areaMidUseMeal;
                break;
            case ProxySmallThatCheckedYetHighest:
                frame.origin.x += self.areaMidUseMeal;
                break;
            case LigatureTextureRecordDisablesDaily:
                frame.origin.y -= self.areaMidUseMeal;
                break;
            case AnimationStreamedAcceptedHallRouteRecycle:
                frame.origin.y += self.areaMidUseMeal;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)trySwipeRatioBagPossibleCurl {
    [self digitizedMalformedRadixWarnRouter];
    [self hueHexAndDanceHandlerOxygen]; 
    [self replyConjugateOurDemandReaderYouAnimation:YES];
}


- (void)digitizedMalformedRadixWarnRouter {
    UIWindow *keyWindow = ThickFlagManager.shared.samplerAdobeWindow; //self.smileKinGoalWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice boxBasal]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice waySpa]) {
        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.manBrandExtrinsicSpecifyCheck = safeArea;
    self.qualityCleanupClockwiseWrappingDeferredObject = keyWindow.bounds;
}

- (CGRect)pedometerCutSexPauseLateFrame {
    
    return CGRectMake(
        self.qualityCleanupClockwiseWrappingDeferredObject.origin.x + self.manBrandExtrinsicSpecifyCheck.left,
        self.qualityCleanupClockwiseWrappingDeferredObject.origin.y + self.manBrandExtrinsicSpecifyCheck.top,
        self.qualityCleanupClockwiseWrappingDeferredObject.size.width - (self.manBrandExtrinsicSpecifyCheck.left + self.manBrandExtrinsicSpecifyCheck.right),
        self.qualityCleanupClockwiseWrappingDeferredObject.size.height - (self.manBrandExtrinsicSpecifyCheck.top + self.manBrandExtrinsicSpecifyCheck.bottom)
    );
}


- (void)modifyThousandFaxRectangleLoopInhaler {
    NSString *tintTildeWax = [[NSUserDefaults standardUserDefaults] valueForKey:BigAddition.noiseFactMen.secureOverageReadBadScanSixteen];
    if (tintTildeWax) {
        self.center = CGPointFromString(tintTildeWax);
    }else {
        
        CGRect turnFrame = [self pedometerCutSexPauseLateFrame];
        self.center = CGPointMake(turnFrame.origin.x + turnFrame.size.width - self.bounds.size.width/2 - _areaMidUseMeal,
                                  turnFrame.origin.y + turnFrame.size.height/2);
    }
}


- (UIWindow *)eraInterestBoxSheRetWindow {
    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)notCubicRetSlightAudiogramStrictSonCenter:(CGPoint)proposedCenter {
    CGRect turnFrame = [self pedometerCutSexPauseLateFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat clip = turnFrame.origin.x + buttonSize.width/2;
    CGFloat scan = turnFrame.origin.x + turnFrame.size.width - buttonSize.width/2;
    CGFloat atom = turnFrame.origin.y + buttonSize.height/2;
    CGFloat dust = turnFrame.origin.y + turnFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(clip, MIN(proposedCenter.x, scan)),
        MAX(atom, MIN(proposedCenter.y, dust))
    );
}

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

@end
