






#import "BlackWasView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+IllImage.h"
#import "DueIcyFetch.h"
#import "NSString+OrderReal.h"
#import "SinAlertView.h"
#import "AnchorEndsTreeWindow.h"
#import "SobMinEachRopeViewController.h"
#import "UIDevice+CanDevice.h"
#import "TalkArrayManager.h"

@interface BlackWasView()  <UIGestureRecognizerDelegate> {
    CGPoint committedClientPreviewsBuddyZeroArrival;
    BOOL nameTelephotoSpeakersInsertedAppearing;
    BOOL repliesSlideBusyInferiorsOddPint; 
    BOOL elevenRematchRetrieveKilobytesFeatured; 
}


@property (nonatomic, strong) AnchorEndsTreeWindow *foldOurOffWindow;
@property (nonatomic, weak) UIWindow *symbolicRaceWindow;


@property (nonatomic, strong) UIImageView *mainLightView;
@property (nonatomic, strong) UIView *foldIconAddView;


@property (nonatomic, strong) UIView *blobMovieView;
@property (nonatomic, strong) UILabel *developerLabel;
@property (nonatomic, assign) BOOL advancedDecreaseBestGigabitsLike;


@property (nonatomic, strong) NSTimer *pipeTagOnePopTimer;
@property (nonatomic, assign) UIEdgeInsets numbersTranslateCreatePinIts;
@property (nonatomic, assign) CGRect utteranceCiphersTraverseSignMantissaPrimaries;


@property (nonatomic, strong) UIImage *dueBaselineImage;
@property (nonatomic, copy) NSString *selectorsWidthMouseTiedExchanges;
@property (nonatomic, strong) UIImage *arrowRateImage;
@property (nonatomic, assign) CGFloat lazyFontBarRet;
@property (nonatomic, assign) ChannelPlainEdge balanceBloodEdge;
@property (nonatomic, assign) NSTimeInterval condensedSurrogateHeavyDictationEngineer;
@property (nonatomic, assign) BOOL overwriteUtilityAuthorDolbyAllUndefined;
@end

@implementation BlackWasView


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

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

- (void)prettyArrangedBackwardMacintoshFour {
    self.lazyFontBarRet = 10.0;
    self.condensedSurrogateHeavyDictationEngineer = 3.0;
    self.overwriteUtilityAuthorDolbyAllUndefined = YES;
    
    
    self.mainLightView = [[UIImageView alloc] init];
    self.mainLightView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.mainLightView];
    
    self.blobMovieView = [[UIView alloc] init];
    self.blobMovieView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.blobMovieView.layer.cornerRadius = 20;
    self.blobMovieView.layer.masksToBounds = YES;
    self.blobMovieView.alpha = 0.0;
    
    self.developerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.developerLabel.text = DueIcyFetch.catBaseSinFill.reversesOurDimensionTrustedCoastTilde;
    self.developerLabel.numberOfLines = 0;
    self.developerLabel.textColor = [UIColor whiteColor];
    self.developerLabel.textAlignment = NSTextAlignmentCenter;
    self.developerLabel.font = [UIFont systemFontOfSize:14];
    [self.blobMovieView addSubview:self.developerLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(textSobRedHail:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *how = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(rowLiftKitLeft)];
    [self addGestureRecognizer:how];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(burnSentencesAbovePolicyHyphenHockey)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setCursorHighJson:(NSDictionary *)cursorHighJson {
    _cursorHighJson = cursorHighJson;
    if (cursorHighJson && self.foldOurOffWindow != nil) {
        NSString *action = cursorHighJson[DueIcyFetch.itsPosterIcy.volumeFailUnit];
        if ([action isEqualToString:DueIcyFetch.itsPosterIcy.rejectHerWas]) {
            self.foldIconAddView.hidden = NO;
        }else if ([action isEqualToString:DueIcyFetch.itsPosterIcy.equalSpaHail]) {
            self.foldIconAddView.hidden = YES;
        }else if ([action isEqualToString:DueIcyFetch.itsPosterIcy.chinaBirthUnifiedCommitMap]) {
            self.foldIconAddView.hidden = NO;
        }
    }
}


+ (void)builtType {
    [self.shared recipientClearWhoAtomResultTheImage:[UIImage consoleMinKilowattsBaselinesEnablingName:DueIcyFetch.itsPosterIcy.outputsAccordingUrgentHyphensForce] dashLogo:DueIcyFetch.connectPairOpenLookMouse tailImage:nil];
}

+ (void)sideDarkLeaseImage:(UIImage *)image {
    [[self shared] recipientClearWhoAtomResultTheImage:image tailImage:nil];
}

+ (void)ellipsisZipImage:(UIImage *)normalImage tailImage:(nullable UIImage *)tailImage {
    BlackWasView *instance = [self shared];
    instance.dueBaselineImage = normalImage;
    instance.selectorsWidthMouseTiedExchanges = nil;
    instance.arrowRateImage = tailImage;
    instance.mainLightView.image = normalImage;
}

+ (void)ringClick {
    [[self shared] registerPreventPopoverMagentaGain];
}

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


- (void)recipientClearWhoAtomResultTheImage:(UIImage *)image tailImage:(nullable UIImage *)tailImage {
    [self recipientClearWhoAtomResultTheImage:image dashLogo:nil tailImage:tailImage];
}

- (void)recipientClearWhoAtomResultTheImage:(UIImage *)image dashLogo:(NSString *)dashLogo tailImage:(nullable UIImage *)tailImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.dueBaselineImage = image;
        self.selectorsWidthMouseTiedExchanges = dashLogo;
        self.arrowRateImage = tailImage;
        
        if (!self.foldOurOffWindow) {
            [self extraLeakyAddressMillSurgeWindow];
            [self arrayTemporarySpeakerReactorLanguages];
            [self invisibleIndexVolatileSelectorsMessageNeutral];
            [self gaspCallbacksAssetPickExceptionWin]; 
        }
        
        [self.foldOurOffWindow makeKeyAndVisible];
        [self.symbolicRaceWindow makeKeyWindow];
        
        [self wakeIncomingNiacinDetailTransitPingAnimation:YES];
        [self causeLargeTopOutlineEventualTimer];
    });
}

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


- (void)extraLeakyAddressMillSurgeWindow {
    
    self.symbolicRaceWindow = [self presenterBrowsingBitWhiteButWindow];
    
    
    AnchorEndsTreeWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[AnchorEndsTreeWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[AnchorEndsTreeWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[SobMinEachRopeViewController alloc] init];
    window.hidden = NO;
    self.foldOurOffWindow = window;
    
    
    [self.foldOurOffWindow resignKeyWindow];
    [self.symbolicRaceWindow makeKeyWindow];
    
    
    [self addSubview:self.foldIconAddView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.selectorsWidthMouseTiedExchanges) {
        [self.mainLightView sd_setImageWithURL:[NSURL URLWithString:self.selectorsWidthMouseTiedExchanges] placeholderImage
                                              :[UIImage consoleMinKilowattsBaselinesEnablingName:DueIcyFetch.itsPosterIcy.outputsAccordingUrgentHyphensForce]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.mainLightView.image = self.dueBaselineImage;
    }
    self.mainLightView.frame = self.bounds;
    
    [self.foldOurOffWindow addSubview:self];
    [self.foldOurOffWindow addSubview:self.blobMovieView];
}


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

          (binSegueMore.size.width - allow/2),
          binSegueMore.size.height - allow/2,
          allow,
          allow
        );
        self.blobMovieView.layer.masksToBounds = YES;
        self.blobMovieView.layer.cornerRadius = allow/2;
        self.developerLabel.center = CGPointMake(allow/3, allow/4);
    }
}


- (void)rowLiftKitLeft {
    if (self.cursorHighJson) {
        !self.cutBlinkHandler ?: self.cutBlinkHandler(self.cursorHighJson[DueIcyFetch.itsPosterIcy.sumSheetSon]);
        if ([self.cursorHighJson[DueIcyFetch.itsPosterIcy.volumeFailUnit] isEqualToString:DueIcyFetch.itsPosterIcy.chinaBirthUnifiedCommitMap]) {
            self.foldIconAddView.hidden = YES;
            _cursorHighJson = nil;
        }
    }else {
        !self.cutBlinkHandler ?: self.cutBlinkHandler(nil);
    }
}

- (void)textSobRedHail:(UIPanGestureRecognizer *)gesture {
    if (nameTelephotoSpeakersInsertedAppearing) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            committedClientPreviewsBuddyZeroArrival = self.center;
            _mainLightView.alpha = 1;
            [self farSignalAverageUnlikelyGujarati];
            repliesSlideBusyInferiorsOddPint = NO; 
            elevenRematchRetrieveKilobytesFeatured = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.blobMovieView.layer removeAllAnimations];
            
            
            self.blobMovieView.alpha = 0.0;
            self.blobMovieView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self restTrainerPeakMiterWateryMenSonCenter:
                           CGPointMake(committedClientPreviewsBuddyZeroArrival.x + translation.x,
                                       committedClientPreviewsBuddyZeroArrival.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL EditorsHint = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect forkFrame = self.blobMovieView.frame;
            CGRect tipAsleep = CGRectInset(forkFrame, -280, EditorsHint?-100:-280); 
            BOOL disparityIts = CGRectContainsPoint(tipAsleep, self.center);
            
            
            
            
            if (disparityIts != elevenRematchRetrieveKilobytesFeatured) {
                elevenRematchRetrieveKilobytesFeatured = disparityIts;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.blobMovieView.alpha = disparityIts ? 1.0 : 0.0;
                    self.blobMovieView.transform = disparityIts ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            disparityIts = CGRectContainsPoint(CGRectInset(forkFrame, 0, 0), self.center);
            if (disparityIts && !repliesSlideBusyInferiorsOddPint) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                repliesSlideBusyInferiorsOddPint = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.blobMovieView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!disparityIts) {
                if (repliesSlideBusyInferiorsOddPint) {
                    self.blobMovieView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                repliesSlideBusyInferiorsOddPint = NO;
            }
            
            
            tipAsleep = CGRectInset(forkFrame, 0, 0);
            _advancedDecreaseBestGigabitsLike = CGRectContainsPoint(tipAsleep, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.blobMovieView.alpha = 0.0;
                self.blobMovieView.transform = CGAffineTransformIdentity;
            }];
            
            if (_advancedDecreaseBestGigabitsLike) {
                [SinAlertView pubPromisedSmartWaySettlingDecrypted:nil message:DueIcyFetch.catBaseSinFill.requestedBoundStartStereoUtilityBut nordicSumNot:@[DueIcyFetch.catBaseSinFill.glucoseSlow, DueIcyFetch.catBaseSinFill.fixSong] completion:^(NSInteger nowKinIndex) {
                    if (nowKinIndex ==1) {
                        [self registerPreventPopoverMagentaGain];
                    }else {
                        [self wakeIncomingNiacinDetailTransitPingAnimation:YES];
                        [self causeLargeTopOutlineEventualTimer];
                    }
                }];
            } else {
                [self wakeIncomingNiacinDetailTransitPingAnimation:YES];
                [self causeLargeTopOutlineEventualTimer];
            }
            repliesSlideBusyInferiorsOddPint = NO;
            elevenRematchRetrieveKilobytesFeatured = NO;
            break;
        }

        default: break;
    }
}


- (void)wakeIncomingNiacinDetailTransitPingAnimation:(BOOL)animate {
    if (!_overwriteUtilityAuthorDolbyAllUndefined) return;
    
    
    if (nameTelephotoSpeakersInsertedAppearing && animate) return;
    
    CGRect siteFrame = [self overwriteTolerancePreventsSuggestedNothingFrame];
    CGPoint center = self.center;
    
    CGFloat most = siteFrame.origin.x;
    CGFloat keep = siteFrame.origin.x + siteFrame.size.width;
    CGFloat dash = siteFrame.origin.y;
    CGFloat rare = siteFrame.origin.y + siteFrame.size.height;
    
    
    ChannelPlainEdge carNetEdge = DeltaDistortedElevationUnitOrdinalsTerahertz;
    CGFloat ownNetModel = CGFLOAT_MAX;
    
    
    CGFloat sobSix = center.x - most;
    CGFloat sawWalk = keep - center.x;
    CGFloat ratio = center.y - dash;
    CGFloat sobSpine = rare - center.y;
    
    NSArray *alignPipe = @[@(sobSix), @(sawWalk), @(ratio), @(sobSpine)];
    NSArray *edges = @[@(FriendsOrnamentsNanogramsDecipherFailureInside), @(ErrorPermittedItsArmpitFarCarbon),
                       @(BreakCommitAwakeLinkSymbols), @(EnergyCubeFatGuidePrecisionCandidate)];
    
    for (NSInteger i = 0; i < alignPipe.count; i++) {
        CGFloat distance = [alignPipe[i] floatValue];
        if (distance < ownNetModel) {
            ownNetModel = distance;
            carNetEdge = [edges[i] integerValue];
        }
    }
    
    
    if (carNetEdge == self.balanceBloodEdge) {
        CGPoint hairOddCenter = self.center;
        CGPoint artWayCenter = [self binSafetyHierarchyInternalGreekContainedEdge:carNetEdge];
        CGFloat distance = hypot(hairOddCenter.x - artWayCenter.x, hairOddCenter.y - artWayCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.balanceBloodEdge = carNetEdge;
    
    
    CGPoint artWayCenter = [self binSafetyHierarchyInternalGreekContainedEdge:carNetEdge];
    CGPoint radioCenter = [self eraVisitFaxSurrogateOrderAddressExternalEdge:carNetEdge];
    
    
    nameTelephotoSpeakersInsertedAppearing = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->nameTelephotoSpeakersInsertedAppearing = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = artWayCenter;
        self.foldIconAddView.center = radioCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)binSafetyHierarchyInternalGreekContainedEdge:(ChannelPlainEdge)edge {
    CGRect siteFrame = [self overwriteTolerancePreventsSuggestedNothingFrame];
    CGPoint center = self.center;
    
    CGFloat most = siteFrame.origin.x;
    CGFloat keep = siteFrame.origin.x + siteFrame.size.width;
    CGFloat dash = siteFrame.origin.y;
    CGFloat rare = siteFrame.origin.y + siteFrame.size.height;
    
    CGPoint artWayCenter = center;
    
    switch (edge) {
        case FriendsOrnamentsNanogramsDecipherFailureInside:
            artWayCenter.x = most + self.bounds.size.width/2 + _lazyFontBarRet;
            break;
        case ErrorPermittedItsArmpitFarCarbon:
            artWayCenter.x = keep - self.bounds.size.width/2 - _lazyFontBarRet;
            break;
        case BreakCommitAwakeLinkSymbols:
            artWayCenter.y = dash + self.bounds.size.height/2 + _lazyFontBarRet;
            break;
        case EnergyCubeFatGuidePrecisionCandidate:
            artWayCenter.y = rare - self.bounds.size.height/2 - _lazyFontBarRet;
            break;
        default:
            break;
    }
    
    
    return [self restTrainerPeakMiterWateryMenSonCenter:artWayCenter];
}


- (CGPoint)eraVisitFaxSurrogateOrderAddressExternalEdge:(ChannelPlainEdge)edge {
    CGPoint radioCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case FriendsOrnamentsNanogramsDecipherFailureInside:
            radioCenter.x = self.bounds.size.width;
            break;
        case ErrorPermittedItsArmpitFarCarbon:
            
            break;
        case BreakCommitAwakeLinkSymbols:
            radioCenter.x = self.bounds.size.width;
            radioCenter.y = self.bounds.size.height;
            break;
        case EnergyCubeFatGuidePrecisionCandidate:
            radioCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return radioCenter;
}


- (void)causeLargeTopOutlineEventualTimer {
    if (_condensedSurrogateHeavyDictationEngineer <= 0) return;
    
    [self farSignalAverageUnlikelyGujarati];
    _pipeTagOnePopTimer = [NSTimer scheduledTimerWithTimeInterval:_condensedSurrogateHeavyDictationEngineer
                                                     target:self
                                                   selector:@selector(chargeReceiverSplatActualOpt)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)farSignalAverageUnlikelyGujarati {
    [_pipeTagOnePopTimer invalidate];
    _pipeTagOnePopTimer = nil;
}

- (void)chargeReceiverSplatActualOpt {
    [UIView animateWithDuration:0.3 animations:^{
        self.mainLightView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.balanceBloodEdge) {
            case FriendsOrnamentsNanogramsDecipherFailureInside:
                frame.origin.x -= self.lazyFontBarRet;
                break;
            case ErrorPermittedItsArmpitFarCarbon:
                frame.origin.x += self.lazyFontBarRet;
                break;
            case BreakCommitAwakeLinkSymbols:
                frame.origin.y -= self.lazyFontBarRet;
                break;
            case EnergyCubeFatGuidePrecisionCandidate:
                frame.origin.y += self.lazyFontBarRet;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)burnSentencesAbovePolicyHyphenHockey {
    [self arrayTemporarySpeakerReactorLanguages];
    [self gaspCallbacksAssetPickExceptionWin]; 
    [self wakeIncomingNiacinDetailTransitPingAnimation:YES];
}


- (void)arrayTemporarySpeakerReactorLanguages {
    UIWindow *keyWindow = TalkArrayManager.shared.oceanIntegerWindow; //self.symbolicRaceWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice trashSpa]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice negate]) {
        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.numbersTranslateCreatePinIts = safeArea;
    self.utteranceCiphersTraverseSignMantissaPrimaries = keyWindow.bounds;
}

- (CGRect)overwriteTolerancePreventsSuggestedNothingFrame {
    
    return CGRectMake(
        self.utteranceCiphersTraverseSignMantissaPrimaries.origin.x + self.numbersTranslateCreatePinIts.left,
        self.utteranceCiphersTraverseSignMantissaPrimaries.origin.y + self.numbersTranslateCreatePinIts.top,
        self.utteranceCiphersTraverseSignMantissaPrimaries.size.width - (self.numbersTranslateCreatePinIts.left + self.numbersTranslateCreatePinIts.right),
        self.utteranceCiphersTraverseSignMantissaPrimaries.size.height - (self.numbersTranslateCreatePinIts.top + self.numbersTranslateCreatePinIts.bottom)
    );
}


- (void)invisibleIndexVolatileSelectorsMessageNeutral {
    NSString *distanceLoad = [[NSUserDefaults standardUserDefaults] valueForKey:DueIcyFetch.itsPosterIcy.collapsesAlwaysLicenseTeamExponentsHello];
    if (distanceLoad) {
        self.center = CGPointFromString(distanceLoad);
    }else {
        
        CGRect siteFrame = [self overwriteTolerancePreventsSuggestedNothingFrame];
        self.center = CGPointMake(siteFrame.origin.x + siteFrame.size.width - self.bounds.size.width/2 - _lazyFontBarRet,
                                  siteFrame.origin.y + siteFrame.size.height/2);
    }
}


- (UIWindow *)presenterBrowsingBitWhiteButWindow {
    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)restTrainerPeakMiterWateryMenSonCenter:(CGPoint)proposedCenter {
    CGRect siteFrame = [self overwriteTolerancePreventsSuggestedNothingFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat most = siteFrame.origin.x + buttonSize.width/2;
    CGFloat keep = siteFrame.origin.x + siteFrame.size.width - buttonSize.width/2;
    CGFloat dash = siteFrame.origin.y + buttonSize.height/2;
    CGFloat rare = siteFrame.origin.y + siteFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(most, MIN(proposedCenter.x, keep)),
        MAX(dash, MIN(proposedCenter.y, rare))
    );
}

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

@end
