






#import "TextDoneView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+WonImage.h"
#import "SkinMeanYet.h"
#import "NSString+ExitsText.h"
#import "CapAlertView.h"
#import "OurPlayWetBendWindow.h"
#import "MakerOverTokenViewController.h"
#import "UIDevice+PenDevice.h"
#import "TeaspoonsManager.h"

@interface TextDoneView()  <UIGestureRecognizerDelegate> {
    CGPoint sentencesKilowattsConvertedPrematureEnterOccur;
    BOOL depthDirtyBackwardsConsumedLiter;
    BOOL activateWetAmbiguousAdapterEntityArt; 
    BOOL activateFooterNotationFlagEnglish; 
}


@property (nonatomic, strong) OurPlayWetBendWindow *chainCleanWindow;
@property (nonatomic, weak) UIWindow *reportAlpineWindow;


@property (nonatomic, strong) UIImageView *clearFeetView;
@property (nonatomic, strong) UIView *clusterFileView;


@property (nonatomic, strong) UIView *midPeriodView;
@property (nonatomic, strong) UILabel *inferBondLabel;
@property (nonatomic, assign) BOOL firstStylusSugarBigReverting;


@property (nonatomic, strong) NSTimer *hexGoalJobBusTimer;
@property (nonatomic, assign) UIEdgeInsets linerSubObsoleteMouseSub;
@property (nonatomic, assign) CGRect seePreviewNoiseOceanSensorThousands;


@property (nonatomic, strong) UIImage *speakFaxHisImage;
@property (nonatomic, copy) NSString *edgaEvaluatedDriveAcceptHis;
@property (nonatomic, strong) UIImage *saturatedImage;
@property (nonatomic, assign) CGFloat bikeAppearBurn;
@property (nonatomic, assign) PopStopExitsEdge escapeJobEggEdge;
@property (nonatomic, assign) NSTimeInterval varianceCompressActiveDoneRecently;
@property (nonatomic, assign) BOOL primariesCreationRoundProtectedShelfArranger;
@end

@implementation TextDoneView


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

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

- (void)redoSelectorObservedPrepSpell {
    self.bikeAppearBurn = 10.0;
    self.varianceCompressActiveDoneRecently = 3.0;
    self.primariesCreationRoundProtectedShelfArranger = YES;
    
    
    self.clearFeetView = [[UIImageView alloc] init];
    self.clearFeetView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.clearFeetView];
    
    self.midPeriodView = [[UIView alloc] init];
    self.midPeriodView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.midPeriodView.layer.cornerRadius = 20;
    self.midPeriodView.layer.masksToBounds = YES;
    self.midPeriodView.alpha = 0.0;
    
    self.inferBondLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.inferBondLabel.text = SkinMeanYet.faxHoldTakePin.anonymousTwelveColumnSinSubmittedMix;
    self.inferBondLabel.numberOfLines = 0;
    self.inferBondLabel.textColor = [UIColor whiteColor];
    self.inferBondLabel.textAlignment = NSTextAlignmentCenter;
    self.inferBondLabel.font = [UIFont systemFontOfSize:14];
    [self.midPeriodView addSubview:self.inferBondLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(realScriptUnit:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *opt = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(denyScanAndBag)];
    [self addGestureRecognizer:opt];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(olympusRainTrialAllowDeferringBezel)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setFinalBuildJson:(NSDictionary *)finalBuildJson {
    _finalBuildJson = finalBuildJson;
    if (finalBuildJson && self.chainCleanWindow != nil) {
        NSString *action = finalBuildJson[SkinMeanYet.reloadRawDay.boundFilmFlush];
        if ([action isEqualToString:SkinMeanYet.reloadRawDay.tooBehaveBad]) {
            self.clusterFileView.hidden = NO;
        }else if ([action isEqualToString:SkinMeanYet.reloadRawDay.curveAreaWay]) {
            self.clusterFileView.hidden = YES;
        }else if ([action isEqualToString:SkinMeanYet.reloadRawDay.fatBuiltReliableExportingMove]) {
            self.clusterFileView.hidden = NO;
        }
    }
}


+ (void)sideSmall {
    [self.shared hoverProcessesBackwardBitCertContrastImage:[UIImage planeBarLawChangingPerformsName:SkinMeanYet.reloadRawDay.expiresPlatformStickyPresetResult] didCivil:SkinMeanYet.snowAreaDuplexTwitterCascade capsImage:nil];
}

+ (void)quechuaUnwindImage:(UIImage *)image {
    [[self shared] hoverProcessesBackwardBitCertContrastImage:image capsImage:nil];
}

+ (void)firstReloadImage:(UIImage *)normalImage capsImage:(nullable UIImage *)capsImage {
    TextDoneView *instance = [self shared];
    instance.speakFaxHisImage = normalImage;
    instance.edgaEvaluatedDriveAcceptHis = nil;
    instance.saturatedImage = capsImage;
    instance.clearFeetView.image = normalImage;
}

+ (void)cupCorner {
    [[self shared] queryAirlineAssemblySunCloud];
}

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


- (void)hoverProcessesBackwardBitCertContrastImage:(UIImage *)image capsImage:(nullable UIImage *)capsImage {
    [self hoverProcessesBackwardBitCertContrastImage:image didCivil:nil capsImage:capsImage];
}

- (void)hoverProcessesBackwardBitCertContrastImage:(UIImage *)image didCivil:(NSString *)didCivil capsImage:(nullable UIImage *)capsImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.speakFaxHisImage = image;
        self.edgaEvaluatedDriveAcceptHis = didCivil;
        self.saturatedImage = capsImage;
        
        if (!self.chainCleanWindow) {
            [self outNoiseWaxCanPashtoWindow];
            [self legacyCursorInsertionSinkMind];
            [self fairTenHowVariablesPasswordsAcquire];
            [self implicitDirtySizeLeftReuseSkin]; 
        }
        
        [self.chainCleanWindow makeKeyAndVisible];
        [self.reportAlpineWindow makeKeyWindow];
        
        [self jouleSelectingEncodingGreekRemembersTaggerAnimation:YES];
        [self advisedTwistCurrentlySyntaxYetTimer];
    });
}

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


- (void)outNoiseWaxCanPashtoWindow {
    
    self.reportAlpineWindow = [self caffeineLowerReachedSymmetricFatWindow];
    
    
    OurPlayWetBendWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[OurPlayWetBendWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[OurPlayWetBendWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[MakerOverTokenViewController alloc] init];
    window.hidden = NO;
    self.chainCleanWindow = window;
    
    
    [self.chainCleanWindow resignKeyWindow];
    [self.reportAlpineWindow makeKeyWindow];
    
    
    [self addSubview:self.clusterFileView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.edgaEvaluatedDriveAcceptHis) {
        [self.clearFeetView sd_setImageWithURL:[NSURL URLWithString:self.edgaEvaluatedDriveAcceptHis] placeholderImage
                                              :[UIImage planeBarLawChangingPerformsName:SkinMeanYet.reloadRawDay.expiresPlatformStickyPresetResult]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.clearFeetView.image = self.speakFaxHisImage;
    }
    self.clearFeetView.frame = self.bounds;
    
    [self.chainCleanWindow addSubview:self];
    [self.chainCleanWindow addSubview:self.midPeriodView];
}


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

          (generatorTip.size.width - hindi/2),
          generatorTip.size.height - hindi/2,
          hindi,
          hindi
        );
        self.midPeriodView.layer.masksToBounds = YES;
        self.midPeriodView.layer.cornerRadius = hindi/2;
        self.inferBondLabel.center = CGPointMake(hindi/3, hindi/4);
    }
}


- (void)denyScanAndBag {
    if (self.finalBuildJson) {
        !self.pipeGolfHandler ?: self.pipeGolfHandler(self.finalBuildJson[SkinMeanYet.reloadRawDay.parsePolish]);
        if ([self.finalBuildJson[SkinMeanYet.reloadRawDay.boundFilmFlush] isEqualToString:SkinMeanYet.reloadRawDay.fatBuiltReliableExportingMove]) {
            self.clusterFileView.hidden = YES;
            _finalBuildJson = nil;
        }
    }else {
        !self.pipeGolfHandler ?: self.pipeGolfHandler(nil);
    }
}

- (void)realScriptUnit:(UIPanGestureRecognizer *)gesture {
    if (depthDirtyBackwardsConsumedLiter) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            sentencesKilowattsConvertedPrematureEnterOccur = self.center;
            _clearFeetView.alpha = 1;
            [self invertReadKoreanGaelicInfinite];
            activateWetAmbiguousAdapterEntityArt = NO; 
            activateFooterNotationFlagEnglish = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.midPeriodView.layer removeAllAnimations];
            
            
            self.midPeriodView.alpha = 0.0;
            self.midPeriodView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self changingEyeDomainsSpringSobVisitorArtistCenter:
                           CGPointMake(sentencesKilowattsConvertedPrematureEnterOccur.x + translation.x,
                                       sentencesKilowattsConvertedPrematureEnterOccur.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL KitValidity = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect dashFrame = self.midPeriodView.frame;
            CGRect forGender = CGRectInset(dashFrame, -280, KitValidity?-100:-280); 
            BOOL hisGroupJoin = CGRectContainsPoint(forGender, self.center);
            
            
            
            
            if (hisGroupJoin != activateFooterNotationFlagEnglish) {
                activateFooterNotationFlagEnglish = hisGroupJoin;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.midPeriodView.alpha = hisGroupJoin ? 1.0 : 0.0;
                    self.midPeriodView.transform = hisGroupJoin ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            hisGroupJoin = CGRectContainsPoint(CGRectInset(dashFrame, 0, 0), self.center);
            if (hisGroupJoin && !activateWetAmbiguousAdapterEntityArt) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                activateWetAmbiguousAdapterEntityArt = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.midPeriodView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!hisGroupJoin) {
                if (activateWetAmbiguousAdapterEntityArt) {
                    self.midPeriodView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                activateWetAmbiguousAdapterEntityArt = NO;
            }
            
            
            forGender = CGRectInset(dashFrame, 0, 0);
            _firstStylusSugarBigReverting = CGRectContainsPoint(forGender, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.midPeriodView.alpha = 0.0;
                self.midPeriodView.transform = CGAffineTransformIdentity;
            }];
            
            if (_firstStylusSugarBigReverting) {
                [CapAlertView farMetabolicStrictlyThresholdEraEither:nil message:SkinMeanYet.faxHoldTakePin.workoutLeaseConsoleWaxSawRebus allowableWax:@[SkinMeanYet.faxHoldTakePin.everyStroke, SkinMeanYet.faxHoldTakePin.seeFact] completion:^(NSInteger menLowIndex) {
                    if (menLowIndex ==1) {
                        [self queryAirlineAssemblySunCloud];
                    }else {
                        [self jouleSelectingEncodingGreekRemembersTaggerAnimation:YES];
                        [self advisedTwistCurrentlySyntaxYetTimer];
                    }
                }];
            } else {
                [self jouleSelectingEncodingGreekRemembersTaggerAnimation:YES];
                [self advisedTwistCurrentlySyntaxYetTimer];
            }
            activateWetAmbiguousAdapterEntityArt = NO;
            activateFooterNotationFlagEnglish = NO;
            break;
        }

        default: break;
    }
}


- (void)jouleSelectingEncodingGreekRemembersTaggerAnimation:(BOOL)animate {
    if (!_primariesCreationRoundProtectedShelfArranger) return;
    
    
    if (depthDirtyBackwardsConsumedLiter && animate) return;
    
    CGRect meanFrame = [self prototypeNordicSayEncryptChainFrame];
    CGPoint center = self.center;
    
    CGFloat hand = meanFrame.origin.x;
    CGFloat temp = meanFrame.origin.x + meanFrame.size.width;
    CGFloat fact = meanFrame.origin.y;
    CGFloat gasp = meanFrame.origin.y + meanFrame.size.height;
    
    
    PopStopExitsEdge addWinEdge = ItsIconShortReceiverMegahertzOwnership;
    CGFloat usesProceed = CGFLOAT_MAX;
    
    
    CGFloat rawYet = center.x - hand;
    CGFloat foldFat = temp - center.x;
    CGFloat watch = center.y - fact;
    CGFloat rotating = gasp - center.y;
    
    NSArray *favorites = @[@(rawYet), @(foldFat), @(watch), @(rotating)];
    NSArray *edges = @[@(StaticRevisionBundleStreamedLogPrevious), @(TelephoneReaderAlienAccessingAreAir),
                       @(QuarterBinAdjustBuildLow), @(PenTrainerWhoGlobalForImplied)];
    
    for (NSInteger i = 0; i < favorites.count; i++) {
        CGFloat distance = [favorites[i] floatValue];
        if (distance < usesProceed) {
            usesProceed = distance;
            addWinEdge = [edges[i] integerValue];
        }
    }
    
    
    if (addWinEdge == self.escapeJobEggEdge) {
        CGPoint fastHisCenter = self.center;
        CGPoint mediumCenter = [self likeSummaryAttachedSexAlienDayEdge:addWinEdge];
        CGFloat distance = hypot(fastHisCenter.x - mediumCenter.x, fastHisCenter.y - mediumCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.escapeJobEggEdge = addWinEdge;
    
    
    CGPoint mediumCenter = [self likeSummaryAttachedSexAlienDayEdge:addWinEdge];
    CGPoint boostCenter = [self cloudPinkIndentSupportStrokeSpaExclusiveEdge:addWinEdge];
    
    
    depthDirtyBackwardsConsumedLiter = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->depthDirtyBackwardsConsumedLiter = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = mediumCenter;
        self.clusterFileView.center = boostCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)likeSummaryAttachedSexAlienDayEdge:(PopStopExitsEdge)edge {
    CGRect meanFrame = [self prototypeNordicSayEncryptChainFrame];
    CGPoint center = self.center;
    
    CGFloat hand = meanFrame.origin.x;
    CGFloat temp = meanFrame.origin.x + meanFrame.size.width;
    CGFloat fact = meanFrame.origin.y;
    CGFloat gasp = meanFrame.origin.y + meanFrame.size.height;
    
    CGPoint mediumCenter = center;
    
    switch (edge) {
        case StaticRevisionBundleStreamedLogPrevious:
            mediumCenter.x = hand + self.bounds.size.width/2 + _bikeAppearBurn;
            break;
        case TelephoneReaderAlienAccessingAreAir:
            mediumCenter.x = temp - self.bounds.size.width/2 - _bikeAppearBurn;
            break;
        case QuarterBinAdjustBuildLow:
            mediumCenter.y = fact + self.bounds.size.height/2 + _bikeAppearBurn;
            break;
        case PenTrainerWhoGlobalForImplied:
            mediumCenter.y = gasp - self.bounds.size.height/2 - _bikeAppearBurn;
            break;
        default:
            break;
    }
    
    
    return [self changingEyeDomainsSpringSobVisitorArtistCenter:mediumCenter];
}


- (CGPoint)cloudPinkIndentSupportStrokeSpaExclusiveEdge:(PopStopExitsEdge)edge {
    CGPoint boostCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case StaticRevisionBundleStreamedLogPrevious:
            boostCenter.x = self.bounds.size.width;
            break;
        case TelephoneReaderAlienAccessingAreAir:
            
            break;
        case QuarterBinAdjustBuildLow:
            boostCenter.x = self.bounds.size.width;
            boostCenter.y = self.bounds.size.height;
            break;
        case PenTrainerWhoGlobalForImplied:
            boostCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return boostCenter;
}


- (void)advisedTwistCurrentlySyntaxYetTimer {
    if (_varianceCompressActiveDoneRecently <= 0) return;
    
    [self invertReadKoreanGaelicInfinite];
    _hexGoalJobBusTimer = [NSTimer scheduledTimerWithTimeInterval:_varianceCompressActiveDoneRecently
                                                     target:self
                                                   selector:@selector(ownBlockHitControlsPiece)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)invertReadKoreanGaelicInfinite {
    [_hexGoalJobBusTimer invalidate];
    _hexGoalJobBusTimer = nil;
}

- (void)ownBlockHitControlsPiece {
    [UIView animateWithDuration:0.3 animations:^{
        self.clearFeetView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.escapeJobEggEdge) {
            case StaticRevisionBundleStreamedLogPrevious:
                frame.origin.x -= self.bikeAppearBurn;
                break;
            case TelephoneReaderAlienAccessingAreAir:
                frame.origin.x += self.bikeAppearBurn;
                break;
            case QuarterBinAdjustBuildLow:
                frame.origin.y -= self.bikeAppearBurn;
                break;
            case PenTrainerWhoGlobalForImplied:
                frame.origin.y += self.bikeAppearBurn;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)olympusRainTrialAllowDeferringBezel {
    [self legacyCursorInsertionSinkMind];
    [self implicitDirtySizeLeftReuseSkin]; 
    [self jouleSelectingEncodingGreekRemembersTaggerAnimation:YES];
}


- (void)legacyCursorInsertionSinkMind {
    UIWindow *keyWindow = TeaspoonsManager.shared.ourHostPhaseWindow; //self.reportAlpineWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice panorama]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice darker]) {
        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.linerSubObsoleteMouseSub = safeArea;
    self.seePreviewNoiseOceanSensorThousands = keyWindow.bounds;
}

- (CGRect)prototypeNordicSayEncryptChainFrame {
    
    return CGRectMake(
        self.seePreviewNoiseOceanSensorThousands.origin.x + self.linerSubObsoleteMouseSub.left,
        self.seePreviewNoiseOceanSensorThousands.origin.y + self.linerSubObsoleteMouseSub.top,
        self.seePreviewNoiseOceanSensorThousands.size.width - (self.linerSubObsoleteMouseSub.left + self.linerSubObsoleteMouseSub.right),
        self.seePreviewNoiseOceanSensorThousands.size.height - (self.linerSubObsoleteMouseSub.top + self.linerSubObsoleteMouseSub.bottom)
    );
}


- (void)fairTenHowVariablesPasswordsAcquire {
    NSString *launchingTip = [[NSUserDefaults standardUserDefaults] valueForKey:SkinMeanYet.reloadRawDay.rearHeartBundlesEnclosingCommitRow];
    if (launchingTip) {
        self.center = CGPointFromString(launchingTip);
    }else {
        
        CGRect meanFrame = [self prototypeNordicSayEncryptChainFrame];
        self.center = CGPointMake(meanFrame.origin.x + meanFrame.size.width - self.bounds.size.width/2 - _bikeAppearBurn,
                                  meanFrame.origin.y + meanFrame.size.height/2);
    }
}


- (UIWindow *)caffeineLowerReachedSymmetricFatWindow {
    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)changingEyeDomainsSpringSobVisitorArtistCenter:(CGPoint)proposedCenter {
    CGRect meanFrame = [self prototypeNordicSayEncryptChainFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat hand = meanFrame.origin.x + buttonSize.width/2;
    CGFloat temp = meanFrame.origin.x + meanFrame.size.width - buttonSize.width/2;
    CGFloat fact = meanFrame.origin.y + buttonSize.height/2;
    CGFloat gasp = meanFrame.origin.y + meanFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(hand, MIN(proposedCenter.x, temp)),
        MAX(fact, MIN(proposedCenter.y, gasp))
    );
}

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

@end
