






#import "AliveFarView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+DryImage.h"
#import "RedFlexible.h"
#import "NSString+AffineDog.h"
#import "EndAlertView.h"
#import "GlyphRotorNineWindow.h"
#import "ChestAwayTrialViewController.h"
#import "UIDevice+NapDevice.h"
#import "PerformerManager.h"

@interface AliveFarView()  <UIGestureRecognizerDelegate> {
    CGPoint acquireLongerPreventAttachedClustersFlatness;
    BOOL analysisRollMinuteLeftFinger;
    BOOL ironTamilFormatWeeklyOceanLong; 
    BOOL insulinDiscountsDigestTransposeBoost; 
}


@property (nonatomic, strong) GlyphRotorNineWindow *barSoloistWindow;
@property (nonatomic, weak) UIWindow *todayPrimaryWindow;


@property (nonatomic, strong) UIImageView *nanogramsView;
@property (nonatomic, strong) UIView *chatterLoveView;


@property (nonatomic, strong) UIView *secondaryView;
@property (nonatomic, strong) UILabel *sunLooperLabel;
@property (nonatomic, assign) BOOL rankEqualityDrainMildFractions;


@property (nonatomic, strong) NSTimer *ovulationBothTimer;
@property (nonatomic, assign) UIEdgeInsets countingRingOverallAgreementHandled;
@property (nonatomic, assign) CGRect parentalMinWasTintMapDisables;


@property (nonatomic, strong) UIImage *pongFoodOutImage;
@property (nonatomic, copy) NSString *impliedAdvancesFinderParagraphLoops;
@property (nonatomic, strong) UIImage *skinStairImage;
@property (nonatomic, assign) CGFloat writeManRowMid;
@property (nonatomic, assign) PutAcceptTabEdge realVolatileEdge;
@property (nonatomic, assign) NSTimeInterval insertJobGrowPanoramasPrevents;
@property (nonatomic, assign) BOOL consumesOutPowerLightenSuchCenter;
@end

@implementation AliveFarView


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

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

- (void)undoRunInviteNegotiateIll {
    self.writeManRowMid = 10.0;
    self.insertJobGrowPanoramasPrevents = 3.0;
    self.consumesOutPowerLightenSuchCenter = YES;
    
    
    self.nanogramsView = [[UIImageView alloc] init];
    self.nanogramsView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.nanogramsView];
    
    self.secondaryView = [[UIView alloc] init];
    self.secondaryView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.secondaryView.layer.cornerRadius = 20;
    self.secondaryView.layer.masksToBounds = YES;
    self.secondaryView.alpha = 0.0;
    
    self.sunLooperLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.sunLooperLabel.text = RedFlexible.daySentFaxWill.pickBoldEmbeddedMileSelectorReader;
    self.sunLooperLabel.numberOfLines = 0;
    self.sunLooperLabel.textColor = [UIColor whiteColor];
    self.sunLooperLabel.textAlignment = NSTextAlignmentCenter;
    self.sunLooperLabel.font = [UIFont systemFontOfSize:14];
    [self.secondaryView addSubview:self.sunLooperLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(stoneSexCapSin:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *due = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(trackSpanExits)];
    [self addGestureRecognizer:due];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(documentsCaretSonIgnoresStreamedHandles)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setTooHandoffJson:(NSDictionary *)tooHandoffJson {
    _tooHandoffJson = tooHandoffJson;
    if (tooHandoffJson && self.barSoloistWindow != nil) {
        NSString *action = tooHandoffJson[RedFlexible.capContinued.modernContacts];
        if ([action isEqualToString:RedFlexible.capContinued.improperHour]) {
            self.chatterLoveView.hidden = NO;
        }else if ([action isEqualToString:RedFlexible.capContinued.aboutHueBlob]) {
            self.chatterLoveView.hidden = YES;
        }else if ([action isEqualToString:RedFlexible.capContinued.thousandsHeadlineFixOverdueText]) {
            self.chatterLoveView.hidden = NO;
        }
    }
}


+ (void)hiddenArm {
    [self.shared loadRegionArteryMightOccurCutImage:[UIImage detectedSeeExpectsSamplingEndsName:RedFlexible.capContinued.ellipseAgeWithSixAge] makeCard:RedFlexible.numbersSplatDatabasesLockingAlcohol hairImage:nil];
}

+ (void)thinVeryQuoteImage:(UIImage *)image {
    [[self shared] loadRegionArteryMightOccurCutImage:image hairImage:nil];
}

+ (void)todayTeluguImage:(UIImage *)normalImage hairImage:(nullable UIImage *)hairImage {
    AliveFarView *instance = [self shared];
    instance.pongFoodOutImage = normalImage;
    instance.impliedAdvancesFinderParagraphLoops = nil;
    instance.skinStairImage = hairImage;
    instance.nanogramsView.image = normalImage;
}

+ (void)illCousin {
    [[self shared] invokeRollbackTeamDiskWill];
}

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


- (void)loadRegionArteryMightOccurCutImage:(UIImage *)image hairImage:(nullable UIImage *)hairImage {
    [self loadRegionArteryMightOccurCutImage:image makeCard:nil hairImage:hairImage];
}

- (void)loadRegionArteryMightOccurCutImage:(UIImage *)image makeCard:(NSString *)makeCard hairImage:(nullable UIImage *)hairImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.pongFoodOutImage = image;
        self.impliedAdvancesFinderParagraphLoops = makeCard;
        self.skinStairImage = hairImage;
        
        if (!self.barSoloistWindow) {
            [self headerFeedEntityStringAudibleWindow];
            [self anchorTipCanceledSeekBuffering];
            [self parentalRedoneUndefinedSubSignTagger];
            [self enumerateFeatureWarpHexExpectsCan]; 
        }
        
        [self.barSoloistWindow makeKeyAndVisible];
        [self.todayPrimaryWindow makeKeyWindow];
        
        [self positionTransformEpisodeTwentyFormatNineAnimation:YES];
        [self glucoseEnteredRestingExactSchemesTimer];
    });
}

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


- (void)headerFeedEntityStringAudibleWindow {
    
    self.todayPrimaryWindow = [self narrativeParticleBezelGradientExtendingWindow];
    
    
    GlyphRotorNineWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[GlyphRotorNineWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[GlyphRotorNineWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[ChestAwayTrialViewController alloc] init];
    window.hidden = NO;
    self.barSoloistWindow = window;
    
    
    [self.barSoloistWindow resignKeyWindow];
    [self.todayPrimaryWindow makeKeyWindow];
    
    
    [self addSubview:self.chatterLoveView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.impliedAdvancesFinderParagraphLoops) {
        [self.nanogramsView sd_setImageWithURL:[NSURL URLWithString:self.impliedAdvancesFinderParagraphLoops] placeholderImage
                                              :[UIImage detectedSeeExpectsSamplingEndsName:RedFlexible.capContinued.ellipseAgeWithSixAge]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.nanogramsView.image = self.pongFoodOutImage;
    }
    self.nanogramsView.frame = self.bounds;
    
    [self.barSoloistWindow addSubview:self];
    [self.barSoloistWindow addSubview:self.secondaryView];
}


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

          (stackOddLoop.size.width - pulse/2),
          stackOddLoop.size.height - pulse/2,
          pulse,
          pulse
        );
        self.secondaryView.layer.masksToBounds = YES;
        self.secondaryView.layer.cornerRadius = pulse/2;
        self.sunLooperLabel.center = CGPointMake(pulse/3, pulse/4);
    }
}


- (void)trackSpanExits {
    if (self.tooHandoffJson) {
        !self.hasHindiHandler ?: self.hasHindiHandler(self.tooHandoffJson[RedFlexible.capContinued.sixRingLink]);
        if ([self.tooHandoffJson[RedFlexible.capContinued.modernContacts] isEqualToString:RedFlexible.capContinued.thousandsHeadlineFixOverdueText]) {
            self.chatterLoveView.hidden = YES;
            _tooHandoffJson = nil;
        }
    }else {
        !self.hasHindiHandler ?: self.hasHindiHandler(nil);
    }
}

- (void)stoneSexCapSin:(UIPanGestureRecognizer *)gesture {
    if (analysisRollMinuteLeftFinger) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            acquireLongerPreventAttachedClustersFlatness = self.center;
            _nanogramsView.alpha = 1;
            [self stringKilometerOuncesStyleBiometry];
            ironTamilFormatWeeklyOceanLong = NO; 
            insulinDiscountsDigestTransposeBoost = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.secondaryView.layer removeAllAnimations];
            
            
            self.secondaryView.alpha = 0.0;
            self.secondaryView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self specifyFormatFixingNowAddSpecialNotCenter:
                           CGPointMake(acquireLongerPreventAttachedClustersFlatness.x + translation.x,
                                       acquireLongerPreventAttachedClustersFlatness.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL BoostNotify = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect taskFrame = self.secondaryView.frame;
            CGRect siteVisit = CGRectInset(taskFrame, -280, BoostNotify?-100:-280); 
            BOOL symmetricSon = CGRectContainsPoint(siteVisit, self.center);
            
            
            
            
            if (symmetricSon != insulinDiscountsDigestTransposeBoost) {
                insulinDiscountsDigestTransposeBoost = symmetricSon;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.secondaryView.alpha = symmetricSon ? 1.0 : 0.0;
                    self.secondaryView.transform = symmetricSon ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            symmetricSon = CGRectContainsPoint(CGRectInset(taskFrame, 0, 0), self.center);
            if (symmetricSon && !ironTamilFormatWeeklyOceanLong) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                ironTamilFormatWeeklyOceanLong = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.secondaryView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!symmetricSon) {
                if (ironTamilFormatWeeklyOceanLong) {
                    self.secondaryView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                ironTamilFormatWeeklyOceanLong = NO;
            }
            
            
            siteVisit = CGRectInset(taskFrame, 0, 0);
            _rankEqualityDrainMildFractions = CGRectContainsPoint(siteVisit, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.secondaryView.alpha = 0.0;
                self.secondaryView.transform = CGAffineTransformIdentity;
            }];
            
            if (_rankEqualityDrainMildFractions) {
                [EndAlertView silenceMountedOverhangThousandTextureCurrency:nil message:RedFlexible.daySentFaxWill.swashesRemoteElevenSequenceThirdHour pipeLowAllow:@[RedFlexible.daySentFaxWill.literalTemp, RedFlexible.daySentFaxWill.seekCut] completion:^(NSInteger sobEyeIndex) {
                    if (sobEyeIndex ==1) {
                        [self invokeRollbackTeamDiskWill];
                    }else {
                        [self positionTransformEpisodeTwentyFormatNineAnimation:YES];
                        [self glucoseEnteredRestingExactSchemesTimer];
                    }
                }];
            } else {
                [self positionTransformEpisodeTwentyFormatNineAnimation:YES];
                [self glucoseEnteredRestingExactSchemesTimer];
            }
            ironTamilFormatWeeklyOceanLong = NO;
            insulinDiscountsDigestTransposeBoost = NO;
            break;
        }

        default: break;
    }
}


- (void)positionTransformEpisodeTwentyFormatNineAnimation:(BOOL)animate {
    if (!_consumesOutPowerLightenSuchCenter) return;
    
    
    if (analysisRollMinuteLeftFinger && animate) return;
    
    CGRect sameFrame = [self tensionCupPriorExistHeadsetFrame];
    CGPoint center = self.center;
    
    CGFloat slow = sameFrame.origin.x;
    CGFloat lose = sameFrame.origin.x + sameFrame.size.width;
    CGFloat tall = sameFrame.origin.y;
    CGFloat sock = sameFrame.origin.y + sameFrame.size.height;
    
    
    PutAcceptTabEdge carTabEdge = TabularCurveContainerOwnRadioPaper;
    CGFloat phoneticBut = CGFLOAT_MAX;
    
    
    CGFloat finger = center.x - slow;
    CGFloat sizeFix = lose - center.x;
    CGFloat quick = center.y - tall;
    CGFloat tooStand = sock - center.y;
    
    NSArray *causeAuto = @[@(finger), @(sizeFix), @(quick), @(tooStand)];
    NSArray *edges = @[@(PresetBrandClientMandatoryLeftoverLook), @(ProminentDitheredCenterCaseSubtractSort),
                       @(LogSpaLinkAnotherBlinding), @(CallbacksBundleQuoteHyphenRelativeCyrillic)];
    
    for (NSInteger i = 0; i < causeAuto.count; i++) {
        CGFloat distance = [causeAuto[i] floatValue];
        if (distance < phoneticBut) {
            phoneticBut = distance;
            carTabEdge = [edges[i] integerValue];
        }
    }
    
    
    if (carTabEdge == self.realVolatileEdge) {
        CGPoint raceTryCenter = self.center;
        CGPoint sheYouCenter = [self whoHeavyTertiaryExpectsAudiogramHisEdge:carTabEdge];
        CGFloat distance = hypot(raceTryCenter.x - sheYouCenter.x, raceTryCenter.y - sheYouCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.realVolatileEdge = carTabEdge;
    
    
    CGPoint sheYouCenter = [self whoHeavyTertiaryExpectsAudiogramHisEdge:carTabEdge];
    CGPoint makerCenter = [self ownerFoodPrinterMightIllTrashGoogleEdge:carTabEdge];
    
    
    analysisRollMinuteLeftFinger = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->analysisRollMinuteLeftFinger = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = sheYouCenter;
        self.chatterLoveView.center = makerCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)whoHeavyTertiaryExpectsAudiogramHisEdge:(PutAcceptTabEdge)edge {
    CGRect sameFrame = [self tensionCupPriorExistHeadsetFrame];
    CGPoint center = self.center;
    
    CGFloat slow = sameFrame.origin.x;
    CGFloat lose = sameFrame.origin.x + sameFrame.size.width;
    CGFloat tall = sameFrame.origin.y;
    CGFloat sock = sameFrame.origin.y + sameFrame.size.height;
    
    CGPoint sheYouCenter = center;
    
    switch (edge) {
        case PresetBrandClientMandatoryLeftoverLook:
            sheYouCenter.x = slow + self.bounds.size.width/2 + _writeManRowMid;
            break;
        case ProminentDitheredCenterCaseSubtractSort:
            sheYouCenter.x = lose - self.bounds.size.width/2 - _writeManRowMid;
            break;
        case LogSpaLinkAnotherBlinding:
            sheYouCenter.y = tall + self.bounds.size.height/2 + _writeManRowMid;
            break;
        case CallbacksBundleQuoteHyphenRelativeCyrillic:
            sheYouCenter.y = sock - self.bounds.size.height/2 - _writeManRowMid;
            break;
        default:
            break;
    }
    
    
    return [self specifyFormatFixingNowAddSpecialNotCenter:sheYouCenter];
}


- (CGPoint)ownerFoodPrinterMightIllTrashGoogleEdge:(PutAcceptTabEdge)edge {
    CGPoint makerCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case PresetBrandClientMandatoryLeftoverLook:
            makerCenter.x = self.bounds.size.width;
            break;
        case ProminentDitheredCenterCaseSubtractSort:
            
            break;
        case LogSpaLinkAnotherBlinding:
            makerCenter.x = self.bounds.size.width;
            makerCenter.y = self.bounds.size.height;
            break;
        case CallbacksBundleQuoteHyphenRelativeCyrillic:
            makerCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return makerCenter;
}


- (void)glucoseEnteredRestingExactSchemesTimer {
    if (_insertJobGrowPanoramasPrevents <= 0) return;
    
    [self stringKilometerOuncesStyleBiometry];
    _ovulationBothTimer = [NSTimer scheduledTimerWithTimeInterval:_insertJobGrowPanoramasPrevents
                                                     target:self
                                                   selector:@selector(provisionSelectorLoadingFatalMust)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)stringKilometerOuncesStyleBiometry {
    [_ovulationBothTimer invalidate];
    _ovulationBothTimer = nil;
}

- (void)provisionSelectorLoadingFatalMust {
    [UIView animateWithDuration:0.3 animations:^{
        self.nanogramsView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.realVolatileEdge) {
            case PresetBrandClientMandatoryLeftoverLook:
                frame.origin.x -= self.writeManRowMid;
                break;
            case ProminentDitheredCenterCaseSubtractSort:
                frame.origin.x += self.writeManRowMid;
                break;
            case LogSpaLinkAnotherBlinding:
                frame.origin.y -= self.writeManRowMid;
                break;
            case CallbacksBundleQuoteHyphenRelativeCyrillic:
                frame.origin.y += self.writeManRowMid;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)documentsCaretSonIgnoresStreamedHandles {
    [self anchorTipCanceledSeekBuffering];
    [self enumerateFeatureWarpHexExpectsCan]; 
    [self positionTransformEpisodeTwentyFormatNineAnimation:YES];
}


- (void)anchorTipCanceledSeekBuffering {
    UIWindow *keyWindow = PerformerManager.shared.sobHandBasalWindow; //self.todayPrimaryWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice gateways]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice putKin]) {
        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.countingRingOverallAgreementHandled = safeArea;
    self.parentalMinWasTintMapDisables = keyWindow.bounds;
}

- (CGRect)tensionCupPriorExistHeadsetFrame {
    
    return CGRectMake(
        self.parentalMinWasTintMapDisables.origin.x + self.countingRingOverallAgreementHandled.left,
        self.parentalMinWasTintMapDisables.origin.y + self.countingRingOverallAgreementHandled.top,
        self.parentalMinWasTintMapDisables.size.width - (self.countingRingOverallAgreementHandled.left + self.countingRingOverallAgreementHandled.right),
        self.parentalMinWasTintMapDisables.size.height - (self.countingRingOverallAgreementHandled.top + self.countingRingOverallAgreementHandled.bottom)
    );
}


- (void)parentalRedoneUndefinedSubSignTagger {
    NSString *redEarHockey = [[NSUserDefaults standardUserDefaults] valueForKey:RedFlexible.capContinued.executeIndianFinderCollationRawKey];
    if (redEarHockey) {
        self.center = CGPointFromString(redEarHockey);
    }else {
        
        CGRect sameFrame = [self tensionCupPriorExistHeadsetFrame];
        self.center = CGPointMake(sameFrame.origin.x + sameFrame.size.width - self.bounds.size.width/2 - _writeManRowMid,
                                  sameFrame.origin.y + sameFrame.size.height/2);
    }
}


- (UIWindow *)narrativeParticleBezelGradientExtendingWindow {
    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)specifyFormatFixingNowAddSpecialNotCenter:(CGPoint)proposedCenter {
    CGRect sameFrame = [self tensionCupPriorExistHeadsetFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat slow = sameFrame.origin.x + buttonSize.width/2;
    CGFloat lose = sameFrame.origin.x + sameFrame.size.width - buttonSize.width/2;
    CGFloat tall = sameFrame.origin.y + buttonSize.height/2;
    CGFloat sock = sameFrame.origin.y + sameFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(slow, MIN(proposedCenter.x, lose)),
        MAX(tall, MIN(proposedCenter.y, sock))
    );
}

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

@end
