






#import "FarBrownView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+LawImage.h"
#import "SumWorkTrad.h"
#import "NSString+BoostTone.h"
#import "PanAlertView.h"
#import "SleetDidCupSinWindow.h"
#import "PencilFreeFeetViewController.h"
#import "UIDevice+HisDevice.h"
#import "WrestlingManager.h"

@interface FarBrownView()  <UIGestureRecognizerDelegate> {
    CGPoint napScoreLifetimeContainerNordicTransient;
    BOOL beaconWillLabeledCircleDepth;
    BOOL accessedEntriesContainerTwoRemembersExponents; 
    BOOL primaryBeginOldestAscendedIrregular; 
}


@property (nonatomic, strong) SleetDidCupSinWindow *draftSolveWindow;
@property (nonatomic, weak) UIWindow *groupSamplesWindow;


@property (nonatomic, strong) UIImageView *canArabicView;
@property (nonatomic, strong) UIView *orderingSixView;


@property (nonatomic, strong) UIView *badLingerView;
@property (nonatomic, strong) UILabel *caretGoalLabel;
@property (nonatomic, assign) BOOL keepSuperiorsDatumChildParsing;


@property (nonatomic, strong) NSTimer *cupKerningRowTimer;
@property (nonatomic, assign) UIEdgeInsets helpTightAlphabetClampedAnimated;
@property (nonatomic, assign) CGRect linerLatitudeSegueNumericScrollMonth;


@property (nonatomic, strong) UIImage *lowWhoInuitImage;
@property (nonatomic, copy) NSString *pubFilenamesCubeAdvanceAcross;
@property (nonatomic, strong) UIImage *deciliterImage;
@property (nonatomic, assign) CGFloat smileMileMonth;
@property (nonatomic, assign) TwoHebrewAskEdge artElevationEdge;
@property (nonatomic, assign) NSTimeInterval canonicalMediumProducerSupportArts;
@property (nonatomic, assign) BOOL describeAudiogramTryFragmentOutAge;
@end

@implementation FarBrownView


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

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

- (void)vitaminTextBinUnpluggedInner {
    self.smileMileMonth = 10.0;
    self.canonicalMediumProducerSupportArts = 3.0;
    self.describeAudiogramTryFragmentOutAge = YES;
    
    
    self.canArabicView = [[UIImageView alloc] init];
    self.canArabicView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.canArabicView];
    
    self.badLingerView = [[UIView alloc] init];
    self.badLingerView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.badLingerView.layer.cornerRadius = 20;
    self.badLingerView.layer.masksToBounds = YES;
    self.badLingerView.alpha = 0.0;
    
    self.caretGoalLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.caretGoalLabel.text = SumWorkTrad.arrayLawAllTop.insidePencilInvitedDelayedFaxPhysical;
    self.caretGoalLabel.numberOfLines = 0;
    self.caretGoalLabel.textColor = [UIColor whiteColor];
    self.caretGoalLabel.textAlignment = NSTextAlignmentCenter;
    self.caretGoalLabel.font = [UIFont systemFontOfSize:14];
    [self.badLingerView addSubview:self.caretGoalLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(preservesSurge:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(bestChromaPath)];
    [self addGestureRecognizer:tap];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(revisionDropDisabledFatRankedGallon)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setInsetVoiceJson:(NSDictionary *)insetVoiceJson {
    _insetVoiceJson = insetVoiceJson;
    if (insetVoiceJson && self.draftSolveWindow != nil) {
        NSString *action = insetVoiceJson[SumWorkTrad.fastAgeWidth.maxVeryBarDash];
        if ([action isEqualToString:SumWorkTrad.fastAgeWidth.petiteWeekly]) {
            self.orderingSixView.hidden = NO;
        }else if ([action isEqualToString:SumWorkTrad.fastAgeWidth.frenchSensor]) {
            self.orderingSixView.hidden = YES;
        }else if ([action isEqualToString:SumWorkTrad.fastAgeWidth.neverBridgePartPlusUsed]) {
            self.orderingSixView.hidden = NO;
        }
    }
}


+ (void)serifFeed {
    [self.shared helpersFocusingDarkenFunRunJobImage:[UIImage preciseProvidingLexicalAddressHandlesName:SumWorkTrad.fastAgeWidth.weightedYahooConflictOriginsAbort] warnTime:SumWorkTrad.reduceSharingWithSpaceLarger pathImage:nil];
}

+ (void)userCupMixRowImage:(UIImage *)image {
    [[self shared] helpersFocusingDarkenFunRunJobImage:image pathImage:nil];
}

+ (void)ourDriveHexImage:(UIImage *)normalImage pathImage:(nullable UIImage *)pathImage {
    FarBrownView *instance = [self shared];
    instance.lowWhoInuitImage = normalImage;
    instance.pubFilenamesCubeAdvanceAcross = nil;
    instance.deciliterImage = pathImage;
    instance.canArabicView.image = normalImage;
}

+ (void)artsPager {
    [[self shared] fixSilentTitleGopherSpan];
}

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


- (void)helpersFocusingDarkenFunRunJobImage:(UIImage *)image pathImage:(nullable UIImage *)pathImage {
    [self helpersFocusingDarkenFunRunJobImage:image warnTime:nil pathImage:pathImage];
}

- (void)helpersFocusingDarkenFunRunJobImage:(UIImage *)image warnTime:(NSString *)warnTime pathImage:(nullable UIImage *)pathImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.lowWhoInuitImage = image;
        self.pubFilenamesCubeAdvanceAcross = warnTime;
        self.deciliterImage = pathImage;
        
        if (!self.draftSolveWindow) {
            [self outputCertSmoothedPublisherUnlearnWindow];
            [self intentRemotePresentedRealmWidget];
            [self assignEscapeChestDiscoveryThemeAlternate];
            [self executionSilencedBuffersEventIdentityRadio]; 
        }
        
        [self.draftSolveWindow makeKeyAndVisible];
        [self.groupSamplesWindow makeKeyWindow];
        
        [self allergyLawModalBoyfriendMiterForAnimation:YES];
        [self smallStiffnessPreviousTryUptimeTimer];
    });
}

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


- (void)outputCertSmoothedPublisherUnlearnWindow {
    
    self.groupSamplesWindow = [self descenderHighScrolledDiscountSubWindow];
    
    
    SleetDidCupSinWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[SleetDidCupSinWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[SleetDidCupSinWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[PencilFreeFeetViewController alloc] init];
    window.hidden = NO;
    self.draftSolveWindow = window;
    
    
    [self.draftSolveWindow resignKeyWindow];
    [self.groupSamplesWindow makeKeyWindow];
    
    
    [self addSubview:self.orderingSixView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.pubFilenamesCubeAdvanceAcross) {
        [self.canArabicView sd_setImageWithURL:[NSURL URLWithString:self.pubFilenamesCubeAdvanceAcross] placeholderImage
                                              :[UIImage preciseProvidingLexicalAddressHandlesName:SumWorkTrad.fastAgeWidth.weightedYahooConflictOriginsAbort]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.canArabicView.image = self.lowWhoInuitImage;
    }
    self.canArabicView.frame = self.bounds;
    
    [self.draftSolveWindow addSubview:self];
    [self.draftSolveWindow addSubview:self.badLingerView];
}


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

          (silentMixMid.size.width - stake/2),
          silentMixMid.size.height - stake/2,
          stake,
          stake
        );
        self.badLingerView.layer.masksToBounds = YES;
        self.badLingerView.layer.cornerRadius = stake/2;
        self.caretGoalLabel.center = CGPointMake(stake/3, stake/4);
    }
}


- (void)bestChromaPath {
    if (self.insetVoiceJson) {
        !self.overrideHandler ?: self.overrideHandler(self.insetVoiceJson[SumWorkTrad.fastAgeWidth.inuitOption]);
        if ([self.insetVoiceJson[SumWorkTrad.fastAgeWidth.maxVeryBarDash] isEqualToString:SumWorkTrad.fastAgeWidth.neverBridgePartPlusUsed]) {
            self.orderingSixView.hidden = YES;
            _insetVoiceJson = nil;
        }
    }else {
        !self.overrideHandler ?: self.overrideHandler(nil);
    }
}

- (void)preservesSurge:(UIPanGestureRecognizer *)gesture {
    if (beaconWillLabeledCircleDepth) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            napScoreLifetimeContainerNordicTransient = self.center;
            _canArabicView.alpha = 1;
            [self producedDidImplicitNumeralMan];
            accessedEntriesContainerTwoRemembersExponents = NO; 
            primaryBeginOldestAscendedIrregular = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.badLingerView.layer removeAllAnimations];
            
            
            self.badLingerView.alpha = 0.0;
            self.badLingerView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self safeYoungestExportOrnamentFlagBalanceConductorCenter:
                           CGPointMake(napScoreLifetimeContainerNordicTransient.x + translation.x,
                                       napScoreLifetimeContainerNordicTransient.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL AbortFatFor = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect skipFrame = self.badLingerView.frame;
            CGRect mixUnload = CGRectInset(skipFrame, -280, AbortFatFor?-100:-280); 
            BOOL darwinPolish = CGRectContainsPoint(mixUnload, self.center);
            
            
            
            
            if (darwinPolish != primaryBeginOldestAscendedIrregular) {
                primaryBeginOldestAscendedIrregular = darwinPolish;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.badLingerView.alpha = darwinPolish ? 1.0 : 0.0;
                    self.badLingerView.transform = darwinPolish ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            darwinPolish = CGRectContainsPoint(CGRectInset(skipFrame, 0, 0), self.center);
            if (darwinPolish && !accessedEntriesContainerTwoRemembersExponents) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                accessedEntriesContainerTwoRemembersExponents = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.badLingerView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!darwinPolish) {
                if (accessedEntriesContainerTwoRemembersExponents) {
                    self.badLingerView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                accessedEntriesContainerTwoRemembersExponents = NO;
            }
            
            
            mixUnload = CGRectInset(skipFrame, 0, 0);
            _keepSuperiorsDatumChildParsing = CGRectContainsPoint(mixUnload, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.badLingerView.alpha = 0.0;
                self.badLingerView.transform = CGAffineTransformIdentity;
            }];
            
            if (_keepSuperiorsDatumChildParsing) {
                [PanAlertView mobileDiscardMouthPriceDescendDistance:nil message:SumWorkTrad.arrayLawAllTop.poloGaspConcertEggMatrixProjects motionIcyMen:@[SumWorkTrad.arrayLawAllTop.crossCancel, SumWorkTrad.arrayLawAllTop.sonHalf] completion:^(NSInteger uniqueIndex) {
                    if (uniqueIndex ==1) {
                        [self fixSilentTitleGopherSpan];
                    }else {
                        [self allergyLawModalBoyfriendMiterForAnimation:YES];
                        [self smallStiffnessPreviousTryUptimeTimer];
                    }
                }];
            } else {
                [self allergyLawModalBoyfriendMiterForAnimation:YES];
                [self smallStiffnessPreviousTryUptimeTimer];
            }
            accessedEntriesContainerTwoRemembersExponents = NO;
            primaryBeginOldestAscendedIrregular = NO;
            break;
        }

        default: break;
    }
}


- (void)allergyLawModalBoyfriendMiterForAnimation:(BOOL)animate {
    if (!_describeAudiogramTryFragmentOutAge) return;
    
    
    if (beaconWillLabeledCircleDepth && animate) return;
    
    CGRect fadeFrame = [self inviteeFathomsAuditExtractCutFrame];
    CGPoint center = self.center;
    
    CGFloat exec = fadeFrame.origin.x;
    CGFloat thin = fadeFrame.origin.x + fadeFrame.size.width;
    CGFloat golf = fadeFrame.origin.y;
    CGFloat pick = fadeFrame.origin.y + fadeFrame.size.height;
    
    
    TwoHebrewAskEdge binUseEdge = OutletTropicalAnonymousTibetanSolveConsumer;
    CGFloat whiteCarDid = CGFLOAT_MAX;
    
    
    CGFloat dryCat = center.x - exec;
    CGFloat eggBack = thin - center.x;
    CGFloat civil = center.y - golf;
    CGFloat putWaist = pick - center.y;
    
    NSArray *betterPen = @[@(dryCat), @(eggBack), @(civil), @(putWaist)];
    NSArray *edges = @[@(ShipmentUsabilityLeftSubgroupsKerningOverlay), @(UnderSunEarDepartureElderLexicon),
                       @(LiterThiaminCentralSliceMutable), @(BreakSliceChatStillVitalIncluding)];
    
    for (NSInteger i = 0; i < betterPen.count; i++) {
        CGFloat distance = [betterPen[i] floatValue];
        if (distance < whiteCarDid) {
            whiteCarDid = distance;
            binUseEdge = [edges[i] integerValue];
        }
    }
    
    
    if (binUseEdge == self.artElevationEdge) {
        CGPoint tabLeapCenter = self.center;
        CGPoint expireCenter = [self problemBusGaelicAssertionGetTiedEdge:binUseEdge];
        CGFloat distance = hypot(tabLeapCenter.x - expireCenter.x, tabLeapCenter.y - expireCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.artElevationEdge = binUseEdge;
    
    
    CGPoint expireCenter = [self problemBusGaelicAssertionGetTiedEdge:binUseEdge];
    CGPoint primeCenter = [self petiteContinuedCallbacksMultipleCupCurrentlyAspectEdge:binUseEdge];
    
    
    beaconWillLabeledCircleDepth = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->beaconWillLabeledCircleDepth = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = expireCenter;
        self.orderingSixView.center = primeCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)problemBusGaelicAssertionGetTiedEdge:(TwoHebrewAskEdge)edge {
    CGRect fadeFrame = [self inviteeFathomsAuditExtractCutFrame];
    CGPoint center = self.center;
    
    CGFloat exec = fadeFrame.origin.x;
    CGFloat thin = fadeFrame.origin.x + fadeFrame.size.width;
    CGFloat golf = fadeFrame.origin.y;
    CGFloat pick = fadeFrame.origin.y + fadeFrame.size.height;
    
    CGPoint expireCenter = center;
    
    switch (edge) {
        case ShipmentUsabilityLeftSubgroupsKerningOverlay:
            expireCenter.x = exec + self.bounds.size.width/2 + _smileMileMonth;
            break;
        case UnderSunEarDepartureElderLexicon:
            expireCenter.x = thin - self.bounds.size.width/2 - _smileMileMonth;
            break;
        case LiterThiaminCentralSliceMutable:
            expireCenter.y = golf + self.bounds.size.height/2 + _smileMileMonth;
            break;
        case BreakSliceChatStillVitalIncluding:
            expireCenter.y = pick - self.bounds.size.height/2 - _smileMileMonth;
            break;
        default:
            break;
    }
    
    
    return [self safeYoungestExportOrnamentFlagBalanceConductorCenter:expireCenter];
}


- (CGPoint)petiteContinuedCallbacksMultipleCupCurrentlyAspectEdge:(TwoHebrewAskEdge)edge {
    CGPoint primeCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case ShipmentUsabilityLeftSubgroupsKerningOverlay:
            primeCenter.x = self.bounds.size.width;
            break;
        case UnderSunEarDepartureElderLexicon:
            
            break;
        case LiterThiaminCentralSliceMutable:
            primeCenter.x = self.bounds.size.width;
            primeCenter.y = self.bounds.size.height;
            break;
        case BreakSliceChatStillVitalIncluding:
            primeCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return primeCenter;
}


- (void)smallStiffnessPreviousTryUptimeTimer {
    if (_canonicalMediumProducerSupportArts <= 0) return;
    
    [self producedDidImplicitNumeralMan];
    _cupKerningRowTimer = [NSTimer scheduledTimerWithTimeInterval:_canonicalMediumProducerSupportArts
                                                     target:self
                                                   selector:@selector(flagFingerShortcutPieceLatvian)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)producedDidImplicitNumeralMan {
    [_cupKerningRowTimer invalidate];
    _cupKerningRowTimer = nil;
}

- (void)flagFingerShortcutPieceLatvian {
    [UIView animateWithDuration:0.3 animations:^{
        self.canArabicView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.artElevationEdge) {
            case ShipmentUsabilityLeftSubgroupsKerningOverlay:
                frame.origin.x -= self.smileMileMonth;
                break;
            case UnderSunEarDepartureElderLexicon:
                frame.origin.x += self.smileMileMonth;
                break;
            case LiterThiaminCentralSliceMutable:
                frame.origin.y -= self.smileMileMonth;
                break;
            case BreakSliceChatStillVitalIncluding:
                frame.origin.y += self.smileMileMonth;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)revisionDropDisabledFatRankedGallon {
    [self intentRemotePresentedRealmWidget];
    [self executionSilencedBuffersEventIdentityRadio]; 
    [self allergyLawModalBoyfriendMiterForAnimation:YES];
}


- (void)intentRemotePresentedRealmWidget {
    UIWindow *keyWindow = WrestlingManager.shared.theDrawEventWindow; //self.groupSamplesWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice stairPub]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice expert]) {
        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.helpTightAlphabetClampedAnimated = safeArea;
    self.linerLatitudeSegueNumericScrollMonth = keyWindow.bounds;
}

- (CGRect)inviteeFathomsAuditExtractCutFrame {
    
    return CGRectMake(
        self.linerLatitudeSegueNumericScrollMonth.origin.x + self.helpTightAlphabetClampedAnimated.left,
        self.linerLatitudeSegueNumericScrollMonth.origin.y + self.helpTightAlphabetClampedAnimated.top,
        self.linerLatitudeSegueNumericScrollMonth.size.width - (self.helpTightAlphabetClampedAnimated.left + self.helpTightAlphabetClampedAnimated.right),
        self.linerLatitudeSegueNumericScrollMonth.size.height - (self.helpTightAlphabetClampedAnimated.top + self.helpTightAlphabetClampedAnimated.bottom)
    );
}


- (void)assignEscapeChestDiscoveryThemeAlternate {
    NSString *veryRawWorld = [[NSUserDefaults standardUserDefaults] valueForKey:SumWorkTrad.fastAgeWidth.shoulderFractionAffineGestureLinkFiber];
    if (veryRawWorld) {
        self.center = CGPointFromString(veryRawWorld);
    }else {
        
        CGRect fadeFrame = [self inviteeFathomsAuditExtractCutFrame];
        self.center = CGPointMake(fadeFrame.origin.x + fadeFrame.size.width - self.bounds.size.width/2 - _smileMileMonth,
                                  fadeFrame.origin.y + fadeFrame.size.height/2);
    }
}


- (UIWindow *)descenderHighScrolledDiscountSubWindow {
    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)safeYoungestExportOrnamentFlagBalanceConductorCenter:(CGPoint)proposedCenter {
    CGRect fadeFrame = [self inviteeFathomsAuditExtractCutFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat exec = fadeFrame.origin.x + buttonSize.width/2;
    CGFloat thin = fadeFrame.origin.x + fadeFrame.size.width - buttonSize.width/2;
    CGFloat golf = fadeFrame.origin.y + buttonSize.height/2;
    CGFloat pick = fadeFrame.origin.y + fadeFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(exec, MIN(proposedCenter.x, thin)),
        MAX(golf, MIN(proposedCenter.y, pick))
    );
}

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

@end
