






#import "PlatformView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+DidImage.h"
#import "YahooKeyTip.h"
#import "NSString+Incorrect.h"
#import "HasAlertView.h"
#import "HitMidMiterHexWindow.h"
#import "CaseUserIndianViewController.h"
#import "UIDevice+OptDevice.h"
#import "AggregateManager.h"

@interface PlatformView()  <UIGestureRecognizerDelegate> {
    CGPoint arteryAuthorsRejectSecondaryContentFunction;
    BOOL notifyingTabRecycleWeekDither;
    BOOL trimmingPronounTapSpaYesterdayVibrancy; 
    BOOL originsNetscapeCreatingRecipientPing; 
}


@property (nonatomic, strong) HitMidMiterHexWindow *midTagsEyeWindow;
@property (nonatomic, weak) UIWindow *netBoxExtrasWindow;


@property (nonatomic, strong) UIImageView *expandPenView;
@property (nonatomic, strong) UIView *mixLayeringView;


@property (nonatomic, strong) UIView *dryPencilView;
@property (nonatomic, strong) UILabel *slabHoverLabel;
@property (nonatomic, assign) BOOL sayColumnPeerRenewOur;


@property (nonatomic, strong) NSTimer *fontAppleGoalTimer;
@property (nonatomic, assign) UIEdgeInsets outSenderAfterChunkBig;
@property (nonatomic, assign) CGRect binFavoritesSearchingTonePurposeOpt;


@property (nonatomic, strong) UIImage *sheLyricistImage;
@property (nonatomic, copy) NSString *smallSubgroupsSameArchiveStamp;
@property (nonatomic, strong) UIImage *moleDriveImage;
@property (nonatomic, assign) CGFloat fitOfferTapJob;
@property (nonatomic, assign) MilesRedIdleEdge majorServiceEdge;
@property (nonatomic, assign) NSTimeInterval abortedReturnsHexRestoringSliding;
@property (nonatomic, assign) BOOL exponentsDirtyIconShearPoloBack;
@end

@implementation PlatformView


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

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

- (void)orderIntervalPenDictationBoost {
    self.fitOfferTapJob = 10.0;
    self.abortedReturnsHexRestoringSliding = 3.0;
    self.exponentsDirtyIconShearPoloBack = YES;
    
    
    self.expandPenView = [[UIImageView alloc] init];
    self.expandPenView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.expandPenView];
    
    self.dryPencilView = [[UIView alloc] init];
    self.dryPencilView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.dryPencilView.layer.cornerRadius = 20;
    self.dryPencilView.layer.masksToBounds = YES;
    self.dryPencilView.alpha = 0.0;
    
    self.slabHoverLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.slabHoverLabel.text = YahooKeyTip.somaliLoopMove.fullyWorkflowPrimeSlowLastFemale;
    self.slabHoverLabel.numberOfLines = 0;
    self.slabHoverLabel.textColor = [UIColor whiteColor];
    self.slabHoverLabel.textAlignment = NSTextAlignmentCenter;
    self.slabHoverLabel.font = [UIFont systemFontOfSize:14];
    [self.dryPencilView addSubview:self.slabHoverLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(maskShakeInuit:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(hasTryBrandAdd)];
    [self addGestureRecognizer:tap];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(eachMeasurePrivacyToleranceToneView)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setSonDrawMapJson:(NSDictionary *)sonDrawMapJson {
    _sonDrawMapJson = sonDrawMapJson;
    if (sonDrawMapJson && self.midTagsEyeWindow != nil) {
        NSString *action = sonDrawMapJson[YahooKeyTip.tatarMaximum.netTallRingSix];
        if ([action isEqualToString:YahooKeyTip.tatarMaximum.nowTraitTree]) {
            self.mixLayeringView.hidden = NO;
        }else if ([action isEqualToString:YahooKeyTip.tatarMaximum.loudFatSpine]) {
            self.mixLayeringView.hidden = YES;
        }else if ([action isEqualToString:YahooKeyTip.tatarMaximum.appearingObjectRaiseExistManager]) {
            self.mixLayeringView.hidden = NO;
        }
    }
}


+ (void)farsiUses {
    [self.shared rotationCalculateBitMomentMongolianMetricsImage:[UIImage badmintonScanLogWorkflowShadowName:YahooKeyTip.tatarMaximum.undefinedLowBuddyCarrierWeekly] foldCity:YahooKeyTip.croppingCursorLevelStandardDetected mealImage:nil];
}

+ (void)halftoneLiterImage:(UIImage *)image {
    [[self shared] rotationCalculateBitMomentMongolianMetricsImage:image mealImage:nil];
}

+ (void)axialBitNotImage:(UIImage *)normalImage mealImage:(nullable UIImage *)mealImage {
    PlatformView *instance = [self shared];
    instance.sheLyricistImage = normalImage;
    instance.smallSubgroupsSameArchiveStamp = nil;
    instance.moleDriveImage = mealImage;
    instance.expandPenView.image = normalImage;
}

+ (void)themeSwap {
    [[self shared] buildFixRhythmSpanishResign];
}

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


- (void)rotationCalculateBitMomentMongolianMetricsImage:(UIImage *)image mealImage:(nullable UIImage *)mealImage {
    [self rotationCalculateBitMomentMongolianMetricsImage:image foldCity:nil mealImage:mealImage];
}

- (void)rotationCalculateBitMomentMongolianMetricsImage:(UIImage *)image foldCity:(NSString *)foldCity mealImage:(nullable UIImage *)mealImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.sheLyricistImage = image;
        self.smallSubgroupsSameArchiveStamp = foldCity;
        self.moleDriveImage = mealImage;
        
        if (!self.midTagsEyeWindow) {
            [self meanRemainingAnyDatumRenamingWindow];
            [self radialSensitiveCrossStateWrappers];
            [self fiberPrimariesCatSpaHelpersOpt];
            [self keepFocalMaxConnectedOurGreek]; 
        }
        
        [self.midTagsEyeWindow makeKeyAndVisible];
        [self.netBoxExtrasWindow makeKeyWindow];
        
        [self variancePanelNotifyingLabelPoloChildAnimation:YES];
        [self useFactorRepeatsWeightDueTimer];
    });
}

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


- (void)meanRemainingAnyDatumRenamingWindow {
    
    self.netBoxExtrasWindow = [self policySumCursorDeepUndefinedWindow];
    
    
    HitMidMiterHexWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[HitMidMiterHexWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[HitMidMiterHexWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[CaseUserIndianViewController alloc] init];
    window.hidden = NO;
    self.midTagsEyeWindow = window;
    
    
    [self.midTagsEyeWindow resignKeyWindow];
    [self.netBoxExtrasWindow makeKeyWindow];
    
    
    [self addSubview:self.mixLayeringView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.smallSubgroupsSameArchiveStamp) {
        [self.expandPenView sd_setImageWithURL:[NSURL URLWithString:self.smallSubgroupsSameArchiveStamp] placeholderImage
                                              :[UIImage badmintonScanLogWorkflowShadowName:YahooKeyTip.tatarMaximum.undefinedLowBuddyCarrierWeekly]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.expandPenView.image = self.sheLyricistImage;
    }
    self.expandPenView.frame = self.bounds;
    
    [self.midTagsEyeWindow addSubview:self];
    [self.midTagsEyeWindow addSubview:self.dryPencilView];
}


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

          (wakeThemeRow.size.width - radio/2),
          wakeThemeRow.size.height - radio/2,
          radio,
          radio
        );
        self.dryPencilView.layer.masksToBounds = YES;
        self.dryPencilView.layer.cornerRadius = radio/2;
        self.slabHoverLabel.center = CGPointMake(radio/3, radio/4);
    }
}


- (void)hasTryBrandAdd {
    if (self.sonDrawMapJson) {
        !self.kinFrontHandler ?: self.kinFrontHandler(self.sonDrawMapJson[YahooKeyTip.tatarMaximum.temporalTip]);
        if ([self.sonDrawMapJson[YahooKeyTip.tatarMaximum.netTallRingSix] isEqualToString:YahooKeyTip.tatarMaximum.appearingObjectRaiseExistManager]) {
            self.mixLayeringView.hidden = YES;
            _sonDrawMapJson = nil;
        }
    }else {
        !self.kinFrontHandler ?: self.kinFrontHandler(nil);
    }
}

- (void)maskShakeInuit:(UIPanGestureRecognizer *)gesture {
    if (notifyingTabRecycleWeekDither) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            arteryAuthorsRejectSecondaryContentFunction = self.center;
            _expandPenView.alpha = 1;
            [self segmentsAnchorsReturnedEntityAnimate];
            trimmingPronounTapSpaYesterdayVibrancy = NO; 
            originsNetscapeCreatingRecipientPing = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.dryPencilView.layer removeAllAnimations];
            
            
            self.dryPencilView.alpha = 0.0;
            self.dryPencilView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self tenUnchangedExpansionAllMetricInteriorAskCenter:
                           CGPointMake(arteryAuthorsRejectSecondaryContentFunction.x + translation.x,
                                       arteryAuthorsRejectSecondaryContentFunction.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL CapPrefixed = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect walkFrame = self.dryPencilView.frame;
            CGRect breakWide = CGRectInset(walkFrame, -280, CapPrefixed?-100:-280); 
            BOOL receivedTeam = CGRectContainsPoint(breakWide, self.center);
            
            
            
            
            if (receivedTeam != originsNetscapeCreatingRecipientPing) {
                originsNetscapeCreatingRecipientPing = receivedTeam;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.dryPencilView.alpha = receivedTeam ? 1.0 : 0.0;
                    self.dryPencilView.transform = receivedTeam ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            receivedTeam = CGRectContainsPoint(CGRectInset(walkFrame, 0, 0), self.center);
            if (receivedTeam && !trimmingPronounTapSpaYesterdayVibrancy) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                trimmingPronounTapSpaYesterdayVibrancy = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.dryPencilView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!receivedTeam) {
                if (trimmingPronounTapSpaYesterdayVibrancy) {
                    self.dryPencilView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                trimmingPronounTapSpaYesterdayVibrancy = NO;
            }
            
            
            breakWide = CGRectInset(walkFrame, 0, 0);
            _sayColumnPeerRenewOur = CGRectContainsPoint(breakWide, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.dryPencilView.alpha = 0.0;
                self.dryPencilView.transform = CGAffineTransformIdentity;
            }];
            
            if (_sayColumnPeerRenewOur) {
                [HasAlertView ringMountRemainingMattingGopherPin:nil message:YahooKeyTip.somaliLoopMove.pongKurdishParsecsSyntheticCoachedMobile hairButPause:@[YahooKeyTip.somaliLoopMove.deltaExpand, YahooKeyTip.somaliLoopMove.threads] completion:^(NSInteger funMapIndex) {
                    if (funMapIndex ==1) {
                        [self buildFixRhythmSpanishResign];
                    }else {
                        [self variancePanelNotifyingLabelPoloChildAnimation:YES];
                        [self useFactorRepeatsWeightDueTimer];
                    }
                }];
            } else {
                [self variancePanelNotifyingLabelPoloChildAnimation:YES];
                [self useFactorRepeatsWeightDueTimer];
            }
            trimmingPronounTapSpaYesterdayVibrancy = NO;
            originsNetscapeCreatingRecipientPing = NO;
            break;
        }

        default: break;
    }
}


- (void)variancePanelNotifyingLabelPoloChildAnimation:(BOOL)animate {
    if (!_exponentsDirtyIconShearPoloBack) return;
    
    
    if (notifyingTabRecycleWeekDither && animate) return;
    
    CGRect tradFrame = [self assignDragDivideIcyCarFrame];
    CGPoint center = self.center;
    
    CGFloat prep = tradFrame.origin.x;
    CGFloat feat = tradFrame.origin.x + tradFrame.size.width;
    CGFloat walk = tradFrame.origin.y;
    CGFloat song = tradFrame.origin.y + tradFrame.size.height;
    
    
    MilesRedIdleEdge subSinEdge = InferAppearingCocoaYardJouleRelation;
    CGFloat blobUserDid = CGFLOAT_MAX;
    
    
    CGFloat triple = center.x - prep;
    CGFloat itsBand = feat - center.x;
    CGFloat exist = center.y - walk;
    CGFloat ownHours = song - center.y;
    
    NSArray *restPager = @[@(triple), @(itsBand), @(exist), @(ownHours)];
    NSArray *edges = @[@(GujaratiCircularDecryptCallingBloodMix), @(FaxHueFinalReleasedMetabolicWorld),
                       @(HeaderSubOrderingDayOne), @(SupportedInuitRedAffinityWrestlingQualifier)];
    
    for (NSInteger i = 0; i < restPager.count; i++) {
        CGFloat distance = [restPager[i] floatValue];
        if (distance < blobUserDid) {
            blobUserDid = distance;
            subSinEdge = [edges[i] integerValue];
        }
    }
    
    
    if (subSinEdge == self.majorServiceEdge) {
        CGPoint allergyCenter = self.center;
        CGPoint bounceCenter = [self distantDecryptReuseTouchInsetCentralsEdge:subSinEdge];
        CGFloat distance = hypot(allergyCenter.x - bounceCenter.x, allergyCenter.y - bounceCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.majorServiceEdge = subSinEdge;
    
    
    CGPoint bounceCenter = [self distantDecryptReuseTouchInsetCentralsEdge:subSinEdge];
    CGPoint segueCenter = [self bracketedShelfModalIntegrityYellowBalticJabberEdge:subSinEdge];
    
    
    notifyingTabRecycleWeekDither = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->notifyingTabRecycleWeekDither = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = bounceCenter;
        self.mixLayeringView.center = segueCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)distantDecryptReuseTouchInsetCentralsEdge:(MilesRedIdleEdge)edge {
    CGRect tradFrame = [self assignDragDivideIcyCarFrame];
    CGPoint center = self.center;
    
    CGFloat prep = tradFrame.origin.x;
    CGFloat feat = tradFrame.origin.x + tradFrame.size.width;
    CGFloat walk = tradFrame.origin.y;
    CGFloat song = tradFrame.origin.y + tradFrame.size.height;
    
    CGPoint bounceCenter = center;
    
    switch (edge) {
        case GujaratiCircularDecryptCallingBloodMix:
            bounceCenter.x = prep + self.bounds.size.width/2 + _fitOfferTapJob;
            break;
        case FaxHueFinalReleasedMetabolicWorld:
            bounceCenter.x = feat - self.bounds.size.width/2 - _fitOfferTapJob;
            break;
        case HeaderSubOrderingDayOne:
            bounceCenter.y = walk + self.bounds.size.height/2 + _fitOfferTapJob;
            break;
        case SupportedInuitRedAffinityWrestlingQualifier:
            bounceCenter.y = song - self.bounds.size.height/2 - _fitOfferTapJob;
            break;
        default:
            break;
    }
    
    
    return [self tenUnchangedExpansionAllMetricInteriorAskCenter:bounceCenter];
}


- (CGPoint)bracketedShelfModalIntegrityYellowBalticJabberEdge:(MilesRedIdleEdge)edge {
    CGPoint segueCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case GujaratiCircularDecryptCallingBloodMix:
            segueCenter.x = self.bounds.size.width;
            break;
        case FaxHueFinalReleasedMetabolicWorld:
            
            break;
        case HeaderSubOrderingDayOne:
            segueCenter.x = self.bounds.size.width;
            segueCenter.y = self.bounds.size.height;
            break;
        case SupportedInuitRedAffinityWrestlingQualifier:
            segueCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return segueCenter;
}


- (void)useFactorRepeatsWeightDueTimer {
    if (_abortedReturnsHexRestoringSliding <= 0) return;
    
    [self segmentsAnchorsReturnedEntityAnimate];
    _fontAppleGoalTimer = [NSTimer scheduledTimerWithTimeInterval:_abortedReturnsHexRestoringSliding
                                                     target:self
                                                   selector:@selector(acquireHandleWeekendLocalePretty)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)segmentsAnchorsReturnedEntityAnimate {
    [_fontAppleGoalTimer invalidate];
    _fontAppleGoalTimer = nil;
}

- (void)acquireHandleWeekendLocalePretty {
    [UIView animateWithDuration:0.3 animations:^{
        self.expandPenView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.majorServiceEdge) {
            case GujaratiCircularDecryptCallingBloodMix:
                frame.origin.x -= self.fitOfferTapJob;
                break;
            case FaxHueFinalReleasedMetabolicWorld:
                frame.origin.x += self.fitOfferTapJob;
                break;
            case HeaderSubOrderingDayOne:
                frame.origin.y -= self.fitOfferTapJob;
                break;
            case SupportedInuitRedAffinityWrestlingQualifier:
                frame.origin.y += self.fitOfferTapJob;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)eachMeasurePrivacyToleranceToneView {
    [self radialSensitiveCrossStateWrappers];
    [self keepFocalMaxConnectedOurGreek]; 
    [self variancePanelNotifyingLabelPoloChildAnimation:YES];
}


- (void)radialSensitiveCrossStateWrappers {
    UIWindow *keyWindow = AggregateManager.shared.mediaToneButWindow; //self.netBoxExtrasWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice collapse]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice linger]) {
        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.outSenderAfterChunkBig = safeArea;
    self.binFavoritesSearchingTonePurposeOpt = keyWindow.bounds;
}

- (CGRect)assignDragDivideIcyCarFrame {
    
    return CGRectMake(
        self.binFavoritesSearchingTonePurposeOpt.origin.x + self.outSenderAfterChunkBig.left,
        self.binFavoritesSearchingTonePurposeOpt.origin.y + self.outSenderAfterChunkBig.top,
        self.binFavoritesSearchingTonePurposeOpt.size.width - (self.outSenderAfterChunkBig.left + self.outSenderAfterChunkBig.right),
        self.binFavoritesSearchingTonePurposeOpt.size.height - (self.outSenderAfterChunkBig.top + self.outSenderAfterChunkBig.bottom)
    );
}


- (void)fiberPrimariesCatSpaHelpersOpt {
    NSString *keyboardSafe = [[NSUserDefaults standardUserDefaults] valueForKey:YahooKeyTip.tatarMaximum.primeFallbackTransferDirectUploadAcross];
    if (keyboardSafe) {
        self.center = CGPointFromString(keyboardSafe);
    }else {
        
        CGRect tradFrame = [self assignDragDivideIcyCarFrame];
        self.center = CGPointMake(tradFrame.origin.x + tradFrame.size.width - self.bounds.size.width/2 - _fitOfferTapJob,
                                  tradFrame.origin.y + tradFrame.size.height/2);
    }
}


- (UIWindow *)policySumCursorDeepUndefinedWindow {
    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)tenUnchangedExpansionAllMetricInteriorAskCenter:(CGPoint)proposedCenter {
    CGRect tradFrame = [self assignDragDivideIcyCarFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat prep = tradFrame.origin.x + buttonSize.width/2;
    CGFloat feat = tradFrame.origin.x + tradFrame.size.width - buttonSize.width/2;
    CGFloat walk = tradFrame.origin.y + buttonSize.height/2;
    CGFloat song = tradFrame.origin.y + tradFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(prep, MIN(proposedCenter.x, feat)),
        MAX(walk, MIN(proposedCenter.y, song))
    );
}

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

@end
