






#import "BleedAgeView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MenImage.h"
#import "FixChunkBad.h"
#import "NSString+Nanograms.h"
#import "KeyAlertView.h"
#import "AlongVoicePeakWindow.h"
#import "FiveNeverThumbViewController.h"
#import "UIDevice+FixDevice.h"
#import "RelevanceManager.h"

@interface BleedAgeView()  <UIGestureRecognizerDelegate> {
    CGPoint canadianWhileScheduledForwardBordersFilters;
    BOOL laterResignConflictsWeightsAdapter;
    BOOL midCaseFeatLetterDraftFilm; 
    BOOL cancelledVeryReservedBatchCommit; 
}


@property (nonatomic, strong) AlongVoicePeakWindow *makeGatherWindow;
@property (nonatomic, weak) UIWindow *dayOuterAreaWindow;


@property (nonatomic, strong) UIImageView *basicLiveView;
@property (nonatomic, strong) UIView *drizzleDaysView;


@property (nonatomic, strong) UIView *mountDustView;
@property (nonatomic, strong) UILabel *hisFemaleLabel;
@property (nonatomic, assign) BOOL featuredCreditRedLexicalCert;


@property (nonatomic, strong) NSTimer *crossRationalTimer;
@property (nonatomic, assign) UIEdgeInsets enableUnderEncryptClockwiseSum;
@property (nonatomic, assign) CGRect onlySomaliIssueCheckerFlexibleMedia;


@property (nonatomic, strong) UIImage *objectApplyImage;
@property (nonatomic, copy) NSString *overhangTokenNonceFamilyPersist;
@property (nonatomic, strong) UIImage *eggArmpitImage;
@property (nonatomic, assign) CGFloat decibelDismiss;
@property (nonatomic, assign) AskEraChangeEdge theHertzRankEdge;
@property (nonatomic, assign) NSTimeInterval noiseToggleDriveExactnessPrincipal;
@property (nonatomic, assign) BOOL emailFitReceivesEnginePhotosFar;
@end

@implementation BleedAgeView


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

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

- (void)hueTorchClipSerializeSocial {
    self.decibelDismiss = 10.0;
    self.noiseToggleDriveExactnessPrincipal = 3.0;
    self.emailFitReceivesEnginePhotosFar = YES;
    
    
    self.basicLiveView = [[UIImageView alloc] init];
    self.basicLiveView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.basicLiveView];
    
    self.mountDustView = [[UIView alloc] init];
    self.mountDustView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.mountDustView.layer.cornerRadius = 20;
    self.mountDustView.layer.masksToBounds = YES;
    self.mountDustView.alpha = 0.0;
    
    self.hisFemaleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.hisFemaleLabel.text = FixChunkBad.passLazyUnique.tipAscendingFlushProxyToneArrow;
    self.hisFemaleLabel.numberOfLines = 0;
    self.hisFemaleLabel.textColor = [UIColor whiteColor];
    self.hisFemaleLabel.textAlignment = NSTextAlignmentCenter;
    self.hisFemaleLabel.font = [UIFont systemFontOfSize:14];
    [self.mountDustView addSubview:self.hisFemaleLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(fastSubPanLook:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *but = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(eraMayBurnOpen)];
    [self addGestureRecognizer:but];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(canonicalCreationBodyEventForkSun)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setFamilyMailJson:(NSDictionary *)familyMailJson {
    _familyMailJson = familyMailJson;
    if (familyMailJson && self.makeGatherWindow != nil) {
        NSString *action = familyMailJson[FixChunkBad.swedishTwist.loseSayTheCity];
        if ([action isEqualToString:FixChunkBad.swedishTwist.fitDecrement]) {
            self.drizzleDaysView.hidden = NO;
        }else if ([action isEqualToString:FixChunkBad.swedishTwist.areaStarting]) {
            self.drizzleDaysView.hidden = YES;
        }else if ([action isEqualToString:FixChunkBad.swedishTwist.specialFrontBankDidSorting]) {
            self.drizzleDaysView.hidden = NO;
        }
    }
}


+ (void)teamCover {
    [self.shared birthTwentyMalformedDigitBiometryFingerImage:[UIImage exportForkEarQueueTallName:FixChunkBad.swedishTwist.routeBridgingQuietStretchLoading] mathChat:FixChunkBad.clustersTotalThinStrengthList helpImage:nil];
}

+ (void)alarmOurStampImage:(UIImage *)image {
    [[self shared] birthTwentyMalformedDigitBiometryFingerImage:image helpImage:nil];
}

+ (void)tagMeteringImage:(UIImage *)normalImage helpImage:(nullable UIImage *)helpImage {
    BleedAgeView *instance = [self shared];
    instance.objectApplyImage = normalImage;
    instance.overhangTokenNonceFamilyPersist = nil;
    instance.eggArmpitImage = helpImage;
    instance.basicLiveView.image = normalImage;
}

+ (void)sleepHigh {
    [[self shared] countingPutElevenMethodVerify];
}

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


- (void)birthTwentyMalformedDigitBiometryFingerImage:(UIImage *)image helpImage:(nullable UIImage *)helpImage {
    [self birthTwentyMalformedDigitBiometryFingerImage:image mathChat:nil helpImage:helpImage];
}

- (void)birthTwentyMalformedDigitBiometryFingerImage:(UIImage *)image mathChat:(NSString *)mathChat helpImage:(nullable UIImage *)helpImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.objectApplyImage = image;
        self.overhangTokenNonceFamilyPersist = mathChat;
        self.eggArmpitImage = helpImage;
        
        if (!self.makeGatherWindow) {
            [self republicRangeDisablesDiamondIodineWindow];
            [self summariesAggregateWindowNothingLooper];
            [self bagHoverMagicDividerExceptionBit];
            [self mouseLiveConvertPashtoBracketMemory]; 
        }
        
        [self.makeGatherWindow makeKeyAndVisible];
        [self.dayOuterAreaWindow makeKeyWindow];
        
        [self seekCountSpacingRestAcceptingDecipherAnimation:YES];
        [self alertTodayKazakhFormattedExerciseTimer];
    });
}

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


- (void)republicRangeDisablesDiamondIodineWindow {
    
    self.dayOuterAreaWindow = [self tooPublishExactSubtitleFilenamesWindow];
    
    
    AlongVoicePeakWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[AlongVoicePeakWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[AlongVoicePeakWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[FiveNeverThumbViewController alloc] init];
    window.hidden = NO;
    self.makeGatherWindow = window;
    
    
    [self.makeGatherWindow resignKeyWindow];
    [self.dayOuterAreaWindow makeKeyWindow];
    
    
    [self addSubview:self.drizzleDaysView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.overhangTokenNonceFamilyPersist) {
        [self.basicLiveView sd_setImageWithURL:[NSURL URLWithString:self.overhangTokenNonceFamilyPersist] placeholderImage
                                              :[UIImage exportForkEarQueueTallName:FixChunkBad.swedishTwist.routeBridgingQuietStretchLoading]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.basicLiveView.image = self.objectApplyImage;
    }
    self.basicLiveView.frame = self.bounds;
    
    [self.makeGatherWindow addSubview:self];
    [self.makeGatherWindow addSubview:self.mountDustView];
}


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

          (youPintLemma.size.width - prime/2),
          youPintLemma.size.height - prime/2,
          prime,
          prime
        );
        self.mountDustView.layer.masksToBounds = YES;
        self.mountDustView.layer.cornerRadius = prime/2;
        self.hisFemaleLabel.center = CGPointMake(prime/3, prime/4);
    }
}


- (void)eraMayBurnOpen {
    if (self.familyMailJson) {
        !self.redClaimHandler ?: self.redClaimHandler(self.familyMailJson[FixChunkBad.swedishTwist.oneWeighted]);
        if ([self.familyMailJson[FixChunkBad.swedishTwist.loseSayTheCity] isEqualToString:FixChunkBad.swedishTwist.specialFrontBankDidSorting]) {
            self.drizzleDaysView.hidden = YES;
            _familyMailJson = nil;
        }
    }else {
        !self.redClaimHandler ?: self.redClaimHandler(nil);
    }
}

- (void)fastSubPanLook:(UIPanGestureRecognizer *)gesture {
    if (laterResignConflictsWeightsAdapter) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            canadianWhileScheduledForwardBordersFilters = self.center;
            _basicLiveView.alpha = 1;
            [self oldestHoldPriceDryCompact];
            midCaseFeatLetterDraftFilm = NO; 
            cancelledVeryReservedBatchCommit = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.mountDustView.layer removeAllAnimations];
            
            
            self.mountDustView.alpha = 0.0;
            self.mountDustView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self hasLexiconRowsGrayActionDivideFarsiCenter:
                           CGPointMake(canadianWhileScheduledForwardBordersFilters.x + translation.x,
                                       canadianWhileScheduledForwardBordersFilters.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL LeftTrusted = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect peakFrame = self.mountDustView.frame;
            CGRect tenLooper = CGRectInset(peakFrame, -280, LeftTrusted?-100:-280); 
            BOOL advisedShelf = CGRectContainsPoint(tenLooper, self.center);
            
            
            
            
            if (advisedShelf != cancelledVeryReservedBatchCommit) {
                cancelledVeryReservedBatchCommit = advisedShelf;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.mountDustView.alpha = advisedShelf ? 1.0 : 0.0;
                    self.mountDustView.transform = advisedShelf ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            advisedShelf = CGRectContainsPoint(CGRectInset(peakFrame, 0, 0), self.center);
            if (advisedShelf && !midCaseFeatLetterDraftFilm) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                midCaseFeatLetterDraftFilm = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.mountDustView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!advisedShelf) {
                if (midCaseFeatLetterDraftFilm) {
                    self.mountDustView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                midCaseFeatLetterDraftFilm = NO;
            }
            
            
            tenLooper = CGRectInset(peakFrame, 0, 0);
            _featuredCreditRedLexicalCert = CGRectContainsPoint(tenLooper, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.mountDustView.alpha = 0.0;
                self.mountDustView.transform = CGAffineTransformIdentity;
            }];
            
            if (_featuredCreditRedLexicalCert) {
                [KeyAlertView eachDismissAwakeHandoverHeadphonePink:nil message:FixChunkBad.passLazyUnique.silenceHerSinSeasonStarDescended pinkElderNap:@[FixChunkBad.passLazyUnique.bagKeyFatal, FixChunkBad.passLazyUnique.italian] completion:^(NSInteger quotesIndex) {
                    if (quotesIndex ==1) {
                        [self countingPutElevenMethodVerify];
                    }else {
                        [self seekCountSpacingRestAcceptingDecipherAnimation:YES];
                        [self alertTodayKazakhFormattedExerciseTimer];
                    }
                }];
            } else {
                [self seekCountSpacingRestAcceptingDecipherAnimation:YES];
                [self alertTodayKazakhFormattedExerciseTimer];
            }
            midCaseFeatLetterDraftFilm = NO;
            cancelledVeryReservedBatchCommit = NO;
            break;
        }

        default: break;
    }
}


- (void)seekCountSpacingRestAcceptingDecipherAnimation:(BOOL)animate {
    if (!_emailFitReceivesEnginePhotosFar) return;
    
    
    if (laterResignConflictsWeightsAdapter && animate) return;
    
    CGRect roomFrame = [self alphaAddAgreementInferVarianceFrame];
    CGPoint center = self.center;
    
    CGFloat head = roomFrame.origin.x;
    CGFloat cert = roomFrame.origin.x + roomFrame.size.width;
    CGFloat team = roomFrame.origin.y;
    CGFloat best = roomFrame.origin.y + roomFrame.size.height;
    
    
    AskEraChangeEdge bagHisEdge = MeteringPreventsDiscretePutNominalTap;
    CGFloat reduceTrash = CGFLOAT_MAX;
    
    
    CGFloat cutSee = center.x - head;
    CGFloat palette = cert - center.x;
    CGFloat still = center.y - team;
    CGFloat putScene = best - center.y;
    
    NSArray *indoorMay = @[@(cutSee), @(palette), @(still), @(putScene)];
    NSArray *edges = @[@(TensionObscuredTensionEmbeddedDeferredAnimation), @(GainNapPascalBaseNumeralSpace),
                       @(GravitySessionsSchemesSpanActive), @(ForkJoiningOffsetsSharingCapsRoom)];
    
    for (NSInteger i = 0; i < indoorMay.count; i++) {
        CGFloat distance = [indoorMay[i] floatValue];
        if (distance < reduceTrash) {
            reduceTrash = distance;
            bagHisEdge = [edges[i] integerValue];
        }
    }
    
    
    if (bagHisEdge == self.theHertzRankEdge) {
        CGPoint bodyWayCenter = self.center;
        CGPoint invokeCenter = [self beforeYouAdjustsAlertDecryptGuestEdge:bagHisEdge];
        CGFloat distance = hypot(bodyWayCenter.x - invokeCenter.x, bodyWayCenter.y - invokeCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.theHertzRankEdge = bagHisEdge;
    
    
    CGPoint invokeCenter = [self beforeYouAdjustsAlertDecryptGuestEdge:bagHisEdge];
    CGPoint shiftCenter = [self ruleBodyLineHandoverHexLocallyHandledEdge:bagHisEdge];
    
    
    laterResignConflictsWeightsAdapter = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->laterResignConflictsWeightsAdapter = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = invokeCenter;
        self.drizzleDaysView.center = shiftCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)beforeYouAdjustsAlertDecryptGuestEdge:(AskEraChangeEdge)edge {
    CGRect roomFrame = [self alphaAddAgreementInferVarianceFrame];
    CGPoint center = self.center;
    
    CGFloat head = roomFrame.origin.x;
    CGFloat cert = roomFrame.origin.x + roomFrame.size.width;
    CGFloat team = roomFrame.origin.y;
    CGFloat best = roomFrame.origin.y + roomFrame.size.height;
    
    CGPoint invokeCenter = center;
    
    switch (edge) {
        case TensionObscuredTensionEmbeddedDeferredAnimation:
            invokeCenter.x = head + self.bounds.size.width/2 + _decibelDismiss;
            break;
        case GainNapPascalBaseNumeralSpace:
            invokeCenter.x = cert - self.bounds.size.width/2 - _decibelDismiss;
            break;
        case GravitySessionsSchemesSpanActive:
            invokeCenter.y = team + self.bounds.size.height/2 + _decibelDismiss;
            break;
        case ForkJoiningOffsetsSharingCapsRoom:
            invokeCenter.y = best - self.bounds.size.height/2 - _decibelDismiss;
            break;
        default:
            break;
    }
    
    
    return [self hasLexiconRowsGrayActionDivideFarsiCenter:invokeCenter];
}


- (CGPoint)ruleBodyLineHandoverHexLocallyHandledEdge:(AskEraChangeEdge)edge {
    CGPoint shiftCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case TensionObscuredTensionEmbeddedDeferredAnimation:
            shiftCenter.x = self.bounds.size.width;
            break;
        case GainNapPascalBaseNumeralSpace:
            
            break;
        case GravitySessionsSchemesSpanActive:
            shiftCenter.x = self.bounds.size.width;
            shiftCenter.y = self.bounds.size.height;
            break;
        case ForkJoiningOffsetsSharingCapsRoom:
            shiftCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return shiftCenter;
}


- (void)alertTodayKazakhFormattedExerciseTimer {
    if (_noiseToggleDriveExactnessPrincipal <= 0) return;
    
    [self oldestHoldPriceDryCompact];
    _crossRationalTimer = [NSTimer scheduledTimerWithTimeInterval:_noiseToggleDriveExactnessPrincipal
                                                     target:self
                                                   selector:@selector(expiresDiphthongExcludeCubicAbsent)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)oldestHoldPriceDryCompact {
    [_crossRationalTimer invalidate];
    _crossRationalTimer = nil;
}

- (void)expiresDiphthongExcludeCubicAbsent {
    [UIView animateWithDuration:0.3 animations:^{
        self.basicLiveView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.theHertzRankEdge) {
            case TensionObscuredTensionEmbeddedDeferredAnimation:
                frame.origin.x -= self.decibelDismiss;
                break;
            case GainNapPascalBaseNumeralSpace:
                frame.origin.x += self.decibelDismiss;
                break;
            case GravitySessionsSchemesSpanActive:
                frame.origin.y -= self.decibelDismiss;
                break;
            case ForkJoiningOffsetsSharingCapsRoom:
                frame.origin.y += self.decibelDismiss;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)canonicalCreationBodyEventForkSun {
    [self summariesAggregateWindowNothingLooper];
    [self mouseLiveConvertPashtoBracketMemory]; 
    [self seekCountSpacingRestAcceptingDecipherAnimation:YES];
}


- (void)summariesAggregateWindowNothingLooper {
    UIWindow *keyWindow = RelevanceManager.shared.ropeAnimatorWindow; //self.dayOuterAreaWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice wayFirst]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice binDid]) {
        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.enableUnderEncryptClockwiseSum = safeArea;
    self.onlySomaliIssueCheckerFlexibleMedia = keyWindow.bounds;
}

- (CGRect)alphaAddAgreementInferVarianceFrame {
    
    return CGRectMake(
        self.onlySomaliIssueCheckerFlexibleMedia.origin.x + self.enableUnderEncryptClockwiseSum.left,
        self.onlySomaliIssueCheckerFlexibleMedia.origin.y + self.enableUnderEncryptClockwiseSum.top,
        self.onlySomaliIssueCheckerFlexibleMedia.size.width - (self.enableUnderEncryptClockwiseSum.left + self.enableUnderEncryptClockwiseSum.right),
        self.onlySomaliIssueCheckerFlexibleMedia.size.height - (self.enableUnderEncryptClockwiseSum.top + self.enableUnderEncryptClockwiseSum.bottom)
    );
}


- (void)bagHoverMagicDividerExceptionBit {
    NSString *transientRed = [[NSUserDefaults standardUserDefaults] valueForKey:FixChunkBad.swedishTwist.polishBluePeriodElasticBeaconsTotal];
    if (transientRed) {
        self.center = CGPointFromString(transientRed);
    }else {
        
        CGRect roomFrame = [self alphaAddAgreementInferVarianceFrame];
        self.center = CGPointMake(roomFrame.origin.x + roomFrame.size.width - self.bounds.size.width/2 - _decibelDismiss,
                                  roomFrame.origin.y + roomFrame.size.height/2);
    }
}


- (UIWindow *)tooPublishExactSubtitleFilenamesWindow {
    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)hasLexiconRowsGrayActionDivideFarsiCenter:(CGPoint)proposedCenter {
    CGRect roomFrame = [self alphaAddAgreementInferVarianceFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat head = roomFrame.origin.x + buttonSize.width/2;
    CGFloat cert = roomFrame.origin.x + roomFrame.size.width - buttonSize.width/2;
    CGFloat team = roomFrame.origin.y + buttonSize.height/2;
    CGFloat best = roomFrame.origin.y + roomFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(head, MIN(proposedCenter.x, cert)),
        MAX(team, MIN(proposedCenter.y, best))
    );
}

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

@end
