






#import "BusNorthView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+BedImage.h"
#import "MaskTheGray.h"
#import "NSString+BeaconWax.h"
#import "OldAlertView.h"
#import "WaistCertImageWindow.h"
#import "FeatWidgetPathViewController.h"
#import "UIDevice+AddDevice.h"
#import "TorchVeryManager.h"

@interface BusNorthView()  <UIGestureRecognizerDelegate> {
    CGPoint sumIntervalsProfilesHandoverPrettySegments;
    BOOL renewalSpouseInsteadPutExposures;
    BOOL provinceTornadoIllConverterAffiliateCup; 
    BOOL magicPeerKnowBreakingGuest; 
}


@property (nonatomic, strong) WaistCertImageWindow *formCreateWindow;
@property (nonatomic, weak) UIWindow *clearKinWarpWindow;


@property (nonatomic, strong) UIImageView *artDegreeView;
@property (nonatomic, strong) UIView *farMagneticView;


@property (nonatomic, strong) UIView *logDialogView;
@property (nonatomic, strong) UILabel *unlockBitLabel;
@property (nonatomic, assign) BOOL chamberElementRouteSoftballDeny;


@property (nonatomic, strong) NSTimer *rearScrollingTimer;
@property (nonatomic, assign) UIEdgeInsets delayMightGeometricBaseCompany;
@property (nonatomic, assign) CGRect fullRecognizeStampConcludePencilPlayback;


@property (nonatomic, strong) UIImage *rainLearnedImage;
@property (nonatomic, copy) NSString *haveLanguageDispatchStreamRotor;
@property (nonatomic, strong) UIImage *wristFeedImage;
@property (nonatomic, assign) CGFloat menThatSinYear;
@property (nonatomic, assign) SpouseAbsentEdge freezingFireEdge;
@property (nonatomic, assign) NSTimeInterval yetBackSmoothThirdGenerate;
@property (nonatomic, assign) BOOL installCoalesceInitiatedHoldCousinMath;
@end

@implementation BusNorthView


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

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

- (void)entryGuideHitGeorgianBrowsing {
    self.menThatSinYear = 10.0;
    self.yetBackSmoothThirdGenerate = 3.0;
    self.installCoalesceInitiatedHoldCousinMath = YES;
    
    
    self.artDegreeView = [[UIImageView alloc] init];
    self.artDegreeView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.artDegreeView];
    
    self.logDialogView = [[UIView alloc] init];
    self.logDialogView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.logDialogView.layer.cornerRadius = 20;
    self.logDialogView.layer.masksToBounds = YES;
    self.logDialogView.alpha = 0.0;
    
    self.unlockBitLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.unlockBitLabel.text = MaskTheGray.starHealthHome.decisionOppositeBurnSwitchConstantReady;
    self.unlockBitLabel.numberOfLines = 0;
    self.unlockBitLabel.textColor = [UIColor whiteColor];
    self.unlockBitLabel.textAlignment = NSTextAlignmentCenter;
    self.unlockBitLabel.font = [UIFont systemFontOfSize:14];
    [self.logDialogView addSubview:self.unlockBitLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(moleRemoteCell:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *car = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(musicStylistic)];
    [self addGestureRecognizer:car];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(didFavoriteChatterPairForwardsPasswords)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setEditHisIllJson:(NSDictionary *)editHisIllJson {
    _editHisIllJson = editHisIllJson;
    if (editHisIllJson && self.formCreateWindow != nil) {
        NSString *action = editHisIllJson[MaskTheGray.andRomanPath.successFastest];
        if ([action isEqualToString:MaskTheGray.andRomanPath.moleSenseLog]) {
            self.farMagneticView.hidden = NO;
        }else if ([action isEqualToString:MaskTheGray.andRomanPath.versionLegal]) {
            self.farMagneticView.hidden = YES;
        }else if ([action isEqualToString:MaskTheGray.andRomanPath.quoteSayTeluguMostSiblings]) {
            self.farMagneticView.hidden = NO;
        }
    }
}


+ (void)millInfer {
    [self.shared frameCharMemoryLayoutPinchLayerImage:[UIImage momentGetMolarPerformerFaceName:MaskTheGray.andRomanPath.dropNarrativeAreGopherSnap] brandEgg:MaskTheGray.ornamentProposalAlphaUnitAmbiguity tiedImage:nil];
}

+ (void)bookmarkMightImage:(UIImage *)image {
    [[self shared] frameCharMemoryLayoutPinchLayerImage:image tiedImage:nil];
}

+ (void)dueAxesUsedImage:(UIImage *)normalImage tiedImage:(nullable UIImage *)tiedImage {
    BusNorthView *instance = [self shared];
    instance.rainLearnedImage = normalImage;
    instance.haveLanguageDispatchStreamRotor = nil;
    instance.wristFeedImage = tiedImage;
    instance.artDegreeView.image = normalImage;
}

+ (void)maySquash {
    [[self shared] busyLambdaLoadReaderLine];
}

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


- (void)frameCharMemoryLayoutPinchLayerImage:(UIImage *)image tiedImage:(nullable UIImage *)tiedImage {
    [self frameCharMemoryLayoutPinchLayerImage:image brandEgg:nil tiedImage:tiedImage];
}

- (void)frameCharMemoryLayoutPinchLayerImage:(UIImage *)image brandEgg:(NSString *)brandEgg tiedImage:(nullable UIImage *)tiedImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.rainLearnedImage = image;
        self.haveLanguageDispatchStreamRotor = brandEgg;
        self.wristFeedImage = tiedImage;
        
        if (!self.formCreateWindow) {
            [self sonStreetMailCelticEachWindow];
            [self recordingCelticOperandStoppedPartial];
            [self slightOrnamentsPaceMarkEnteredMetrics];
            [self flatnessScannedDisablesInvisibleUrgentLighter]; 
        }
        
        [self.formCreateWindow makeKeyAndVisible];
        [self.clearKinWarpWindow makeKeyWindow];
        
        [self longitudeCopperFoundDirectoryMinuteStateAnimation:YES];
        [self perfusionProgressPrepPartlyParseTimer];
    });
}

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


- (void)sonStreetMailCelticEachWindow {
    
    self.clearKinWarpWindow = [self activeFullyLuminanceSessionsClampWindow];
    
    
    WaistCertImageWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[WaistCertImageWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[WaistCertImageWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[FeatWidgetPathViewController alloc] init];
    window.hidden = NO;
    self.formCreateWindow = window;
    
    
    [self.formCreateWindow resignKeyWindow];
    [self.clearKinWarpWindow makeKeyWindow];
    
    
    [self addSubview:self.farMagneticView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.haveLanguageDispatchStreamRotor) {
        [self.artDegreeView sd_setImageWithURL:[NSURL URLWithString:self.haveLanguageDispatchStreamRotor] placeholderImage
                                              :[UIImage momentGetMolarPerformerFaceName:MaskTheGray.andRomanPath.dropNarrativeAreGopherSnap]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.artDegreeView.image = self.rainLearnedImage;
    }
    self.artDegreeView.frame = self.bounds;
    
    [self.formCreateWindow addSubview:self];
    [self.formCreateWindow addSubview:self.logDialogView];
}


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

          (allSensorSee.size.width - hover/2),
          allSensorSee.size.height - hover/2,
          hover,
          hover
        );
        self.logDialogView.layer.masksToBounds = YES;
        self.logDialogView.layer.cornerRadius = hover/2;
        self.unlockBitLabel.center = CGPointMake(hover/3, hover/4);
    }
}


- (void)musicStylistic {
    if (self.editHisIllJson) {
        !self.causeKinHandler ?: self.causeKinHandler(self.editHisIllJson[MaskTheGray.andRomanPath.headRowDisk]);
        if ([self.editHisIllJson[MaskTheGray.andRomanPath.successFastest] isEqualToString:MaskTheGray.andRomanPath.quoteSayTeluguMostSiblings]) {
            self.farMagneticView.hidden = YES;
            _editHisIllJson = nil;
        }
    }else {
        !self.causeKinHandler ?: self.causeKinHandler(nil);
    }
}

- (void)moleRemoteCell:(UIPanGestureRecognizer *)gesture {
    if (renewalSpouseInsteadPutExposures) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            sumIntervalsProfilesHandoverPrettySegments = self.center;
            _artDegreeView.alpha = 1;
            [self leakyDisallowDeliverArgumentEncoding];
            provinceTornadoIllConverterAffiliateCup = NO; 
            magicPeerKnowBreakingGuest = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.logDialogView.layer removeAllAnimations];
            
            
            self.logDialogView.alpha = 0.0;
            self.logDialogView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self earAmbiguityAnchoringSoftballClientAmbientShowersCenter:
                           CGPointMake(sumIntervalsProfilesHandoverPrettySegments.x + translation.x,
                                       sumIntervalsProfilesHandoverPrettySegments.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL TooCountHow = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect maleFrame = self.logDialogView.frame;
            CGRect lambdaBig = CGRectInset(maleFrame, -280, TooCountHow?-100:-280); 
            BOOL offMaySerial = CGRectContainsPoint(lambdaBig, self.center);
            
            
            
            
            if (offMaySerial != magicPeerKnowBreakingGuest) {
                magicPeerKnowBreakingGuest = offMaySerial;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.logDialogView.alpha = offMaySerial ? 1.0 : 0.0;
                    self.logDialogView.transform = offMaySerial ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            offMaySerial = CGRectContainsPoint(CGRectInset(maleFrame, 0, 0), self.center);
            if (offMaySerial && !provinceTornadoIllConverterAffiliateCup) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                provinceTornadoIllConverterAffiliateCup = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.logDialogView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!offMaySerial) {
                if (provinceTornadoIllConverterAffiliateCup) {
                    self.logDialogView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                provinceTornadoIllConverterAffiliateCup = NO;
            }
            
            
            lambdaBig = CGRectInset(maleFrame, 0, 0);
            _chamberElementRouteSoftballDeny = CGRectContainsPoint(lambdaBig, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.logDialogView.alpha = 0.0;
                self.logDialogView.transform = CGAffineTransformIdentity;
            }];
            
            if (_chamberElementRouteSoftballDeny) {
                [OldAlertView quitProceedEldestElderSubtractPong:nil message:MaskTheGray.starHealthHome.launchingDeclineStripCarbonFrequencyStay poolTracking:@[MaskTheGray.starHealthHome.showCutMail, MaskTheGray.starHealthHome.skipWho] completion:^(NSInteger farArtIndex) {
                    if (farArtIndex ==1) {
                        [self busyLambdaLoadReaderLine];
                    }else {
                        [self longitudeCopperFoundDirectoryMinuteStateAnimation:YES];
                        [self perfusionProgressPrepPartlyParseTimer];
                    }
                }];
            } else {
                [self longitudeCopperFoundDirectoryMinuteStateAnimation:YES];
                [self perfusionProgressPrepPartlyParseTimer];
            }
            provinceTornadoIllConverterAffiliateCup = NO;
            magicPeerKnowBreakingGuest = NO;
            break;
        }

        default: break;
    }
}


- (void)longitudeCopperFoundDirectoryMinuteStateAnimation:(BOOL)animate {
    if (!_installCoalesceInitiatedHoldCousinMath) return;
    
    
    if (renewalSpouseInsteadPutExposures && animate) return;
    
    CGRect rateFrame = [self sinVisitorShutdownLinkPolicyFrame];
    CGPoint center = self.center;
    
    CGFloat east = rateFrame.origin.x;
    CGFloat turn = rateFrame.origin.x + rateFrame.size.width;
    CGFloat pick = rateFrame.origin.y;
    CGFloat near = rateFrame.origin.y + rateFrame.size.height;
    
    
    SpouseAbsentEdge sumTapEdge = MovieIcyBrowseDecrementBuiltSupports;
    CGFloat senseFixPan = CGFLOAT_MAX;
    
    
    CGFloat lowWho = center.x - east;
    CGFloat elastic = turn - center.x;
    CGFloat radio = center.y - pick;
    CGFloat sevenBut = near - center.y;
    
    NSArray *spaDemand = @[@(lowWho), @(elastic), @(radio), @(sevenBut)];
    NSArray *edges = @[@(UplinkPencilManOddWorkPrep), @(FlagPrefixMildFaeroeseSuggestCaptures),
                       @(ButSameIllGurationPitch), @(NextOrdinalsJoinPresetBecomeYou)];
    
    for (NSInteger i = 0; i < spaDemand.count; i++) {
        CGFloat distance = [spaDemand[i] floatValue];
        if (distance < senseFixPan) {
            senseFixPan = distance;
            sumTapEdge = [edges[i] integerValue];
        }
    }
    
    
    if (sumTapEdge == self.freezingFireEdge) {
        CGPoint shuffleCenter = self.center;
        CGPoint sinFixCenter = [self usePoolDueTempOperandPluralEdge:sumTapEdge];
        CGFloat distance = hypot(shuffleCenter.x - sinFixCenter.x, shuffleCenter.y - sinFixCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.freezingFireEdge = sumTapEdge;
    
    
    CGPoint sinFixCenter = [self usePoolDueTempOperandPluralEdge:sumTapEdge];
    CGPoint startCenter = [self getServerRunUtilitiesMonotonicExternRevertingEdge:sumTapEdge];
    
    
    renewalSpouseInsteadPutExposures = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->renewalSpouseInsteadPutExposures = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = sinFixCenter;
        self.farMagneticView.center = startCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)usePoolDueTempOperandPluralEdge:(SpouseAbsentEdge)edge {
    CGRect rateFrame = [self sinVisitorShutdownLinkPolicyFrame];
    CGPoint center = self.center;
    
    CGFloat east = rateFrame.origin.x;
    CGFloat turn = rateFrame.origin.x + rateFrame.size.width;
    CGFloat pick = rateFrame.origin.y;
    CGFloat near = rateFrame.origin.y + rateFrame.size.height;
    
    CGPoint sinFixCenter = center;
    
    switch (edge) {
        case UplinkPencilManOddWorkPrep:
            sinFixCenter.x = east + self.bounds.size.width/2 + _menThatSinYear;
            break;
        case FlagPrefixMildFaeroeseSuggestCaptures:
            sinFixCenter.x = turn - self.bounds.size.width/2 - _menThatSinYear;
            break;
        case ButSameIllGurationPitch:
            sinFixCenter.y = pick + self.bounds.size.height/2 + _menThatSinYear;
            break;
        case NextOrdinalsJoinPresetBecomeYou:
            sinFixCenter.y = near - self.bounds.size.height/2 - _menThatSinYear;
            break;
        default:
            break;
    }
    
    
    return [self earAmbiguityAnchoringSoftballClientAmbientShowersCenter:sinFixCenter];
}


- (CGPoint)getServerRunUtilitiesMonotonicExternRevertingEdge:(SpouseAbsentEdge)edge {
    CGPoint startCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case UplinkPencilManOddWorkPrep:
            startCenter.x = self.bounds.size.width;
            break;
        case FlagPrefixMildFaeroeseSuggestCaptures:
            
            break;
        case ButSameIllGurationPitch:
            startCenter.x = self.bounds.size.width;
            startCenter.y = self.bounds.size.height;
            break;
        case NextOrdinalsJoinPresetBecomeYou:
            startCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return startCenter;
}


- (void)perfusionProgressPrepPartlyParseTimer {
    if (_yetBackSmoothThirdGenerate <= 0) return;
    
    [self leakyDisallowDeliverArgumentEncoding];
    _rearScrollingTimer = [NSTimer scheduledTimerWithTimeInterval:_yetBackSmoothThirdGenerate
                                                     target:self
                                                   selector:@selector(zoomRuleBlindingLevelChecker)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)leakyDisallowDeliverArgumentEncoding {
    [_rearScrollingTimer invalidate];
    _rearScrollingTimer = nil;
}

- (void)zoomRuleBlindingLevelChecker {
    [UIView animateWithDuration:0.3 animations:^{
        self.artDegreeView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.freezingFireEdge) {
            case UplinkPencilManOddWorkPrep:
                frame.origin.x -= self.menThatSinYear;
                break;
            case FlagPrefixMildFaeroeseSuggestCaptures:
                frame.origin.x += self.menThatSinYear;
                break;
            case ButSameIllGurationPitch:
                frame.origin.y -= self.menThatSinYear;
                break;
            case NextOrdinalsJoinPresetBecomeYou:
                frame.origin.y += self.menThatSinYear;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)didFavoriteChatterPairForwardsPasswords {
    [self recordingCelticOperandStoppedPartial];
    [self flatnessScannedDisablesInvisibleUrgentLighter]; 
    [self longitudeCopperFoundDirectoryMinuteStateAnimation:YES];
}


- (void)recordingCelticOperandStoppedPartial {
    UIWindow *keyWindow = TorchVeryManager.shared.boostPutPoloWindow; //self.clearKinWarpWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice lookLoop]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice armHer]) {
        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.delayMightGeometricBaseCompany = safeArea;
    self.fullRecognizeStampConcludePencilPlayback = keyWindow.bounds;
}

- (CGRect)sinVisitorShutdownLinkPolicyFrame {
    
    return CGRectMake(
        self.fullRecognizeStampConcludePencilPlayback.origin.x + self.delayMightGeometricBaseCompany.left,
        self.fullRecognizeStampConcludePencilPlayback.origin.y + self.delayMightGeometricBaseCompany.top,
        self.fullRecognizeStampConcludePencilPlayback.size.width - (self.delayMightGeometricBaseCompany.left + self.delayMightGeometricBaseCompany.right),
        self.fullRecognizeStampConcludePencilPlayback.size.height - (self.delayMightGeometricBaseCompany.top + self.delayMightGeometricBaseCompany.bottom)
    );
}


- (void)slightOrnamentsPaceMarkEnteredMetrics {
    NSString *usePrintPick = [[NSUserDefaults standardUserDefaults] valueForKey:MaskTheGray.andRomanPath.jobFeatureUploadAdditiveArgumentsShe];
    if (usePrintPick) {
        self.center = CGPointFromString(usePrintPick);
    }else {
        
        CGRect rateFrame = [self sinVisitorShutdownLinkPolicyFrame];
        self.center = CGPointMake(rateFrame.origin.x + rateFrame.size.width - self.bounds.size.width/2 - _menThatSinYear,
                                  rateFrame.origin.y + rateFrame.size.height/2);
    }
}


- (UIWindow *)activeFullyLuminanceSessionsClampWindow {
    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)earAmbiguityAnchoringSoftballClientAmbientShowersCenter:(CGPoint)proposedCenter {
    CGRect rateFrame = [self sinVisitorShutdownLinkPolicyFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat east = rateFrame.origin.x + buttonSize.width/2;
    CGFloat turn = rateFrame.origin.x + rateFrame.size.width - buttonSize.width/2;
    CGFloat pick = rateFrame.origin.y + buttonSize.height/2;
    CGFloat near = rateFrame.origin.y + rateFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(east, MIN(proposedCenter.x, turn)),
        MAX(pick, MIN(proposedCenter.y, near))
    );
}

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

@end
