






#import "LocationView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+OptImage.h"
#import "MainMinimal.h"
#import "NSString+DesignArm.h"
#import "FunAlertView.h"
#import "BackupRaceFreeWindow.h"
#import "FixingTrailingViewController.h"
#import "UIDevice+WinDevice.h"
#import "VortexBusManager.h"

@interface LocationView()  <UIGestureRecognizerDelegate> {
    CGPoint speechLossLargeWordEighteenHelpers;
    BOOL animateUndoCollectorTipSolid;
    BOOL staticBrushSilenceMoreExtensionHandle; 
    BOOL cursorsUnderDayDocumentAddress; 
}


@property (nonatomic, strong) BackupRaceFreeWindow *layerProxyWindow;
@property (nonatomic, weak) UIWindow *outsideSlopeWindow;


@property (nonatomic, strong) UIImageView *stepchildView;
@property (nonatomic, strong) UIView *vendorSplatView;


@property (nonatomic, strong) UIView *groupRaceView;
@property (nonatomic, strong) UILabel *defineBigLabel;
@property (nonatomic, assign) BOOL georgianSpotlightModernSlopeFilename;


@property (nonatomic, strong) NSTimer *shortCaloriesTimer;
@property (nonatomic, assign) UIEdgeInsets exposePageInputLettishEnd;
@property (nonatomic, assign) CGRect endpointAboutIdleMaxInsulinSubtitle;


@property (nonatomic, strong) UIImage *reuseReviewImage;
@property (nonatomic, copy) NSString *composedQuantityBadPushDigitized;
@property (nonatomic, strong) UIImage *headerBagImage;
@property (nonatomic, assign) CGFloat farthestAmpere;
@property (nonatomic, assign) TopSlabInuitEdge icyKilogramsEdge;
@property (nonatomic, assign) NSTimeInterval introLinerLiveAzimuthProfile;
@property (nonatomic, assign) BOOL accordingOpaqueAutomaticRowTemporalZip;
@end

@implementation LocationView


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

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

- (void)airRedoRegionCupBottom {
    self.farthestAmpere = 10.0;
    self.introLinerLiveAzimuthProfile = 3.0;
    self.accordingOpaqueAutomaticRowTemporalZip = YES;
    
    
    self.stepchildView = [[UIImageView alloc] init];
    self.stepchildView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.stepchildView];
    
    self.groupRaceView = [[UIView alloc] init];
    self.groupRaceView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.groupRaceView.layer.cornerRadius = 20;
    self.groupRaceView.layer.masksToBounds = YES;
    self.groupRaceView.alpha = 0.0;
    
    self.defineBigLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.defineBigLabel.text = MainMinimal.tiedTagCertTen.procedureShrinkBeganMegawattsPushFat;
    self.defineBigLabel.numberOfLines = 0;
    self.defineBigLabel.textColor = [UIColor whiteColor];
    self.defineBigLabel.textAlignment = NSTextAlignmentCenter;
    self.defineBigLabel.font = [UIFont systemFontOfSize:14];
    [self.groupRaceView addSubview:self.defineBigLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(inverseThiamin:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *sun = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(legalMeanChunk)];
    [self addGestureRecognizer:sun];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(pullDisposeRedFootRecentlyGet)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setEyeCarRareJson:(NSDictionary *)eyeCarRareJson {
    _eyeCarRareJson = eyeCarRareJson;
    if (eyeCarRareJson && self.layerProxyWindow != nil) {
        NSString *action = eyeCarRareJson[MainMinimal.nordicPubTen.oddCostFitRedo];
        if ([action isEqualToString:MainMinimal.nordicPubTen.sumIndicated]) {
            self.vendorSplatView.hidden = NO;
        }else if ([action isEqualToString:MainMinimal.nordicPubTen.otherAddMask]) {
            self.vendorSplatView.hidden = YES;
        }else if ([action isEqualToString:MainMinimal.nordicPubTen.annotatedMinimizeHowCanonZooming]) {
            self.vendorSplatView.hidden = NO;
        }
    }
}


+ (void)subRemote {
    [self.shared networkCopyrightDistinctUbiquityFootReportingImage:[UIImage volumesSerialNearestContextCreatedName:MainMinimal.nordicPubTen.capAccessedAgentWetYet] eightTip:MainMinimal.sunShortcutsDeviationConfirmNibbles treeImage:nil];
}

+ (void)canonDisabledImage:(UIImage *)image {
    [[self shared] networkCopyrightDistinctUbiquityFootReportingImage:image treeImage:nil];
}

+ (void)panEdgeDenyImage:(UIImage *)normalImage treeImage:(nullable UIImage *)treeImage {
    LocationView *instance = [self shared];
    instance.reuseReviewImage = normalImage;
    instance.composedQuantityBadPushDigitized = nil;
    instance.headerBagImage = treeImage;
    instance.stepchildView.image = normalImage;
}

+ (void)betterWet {
    [[self shared] restoresAllergyNotifyRedirectScrolls];
}

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


- (void)networkCopyrightDistinctUbiquityFootReportingImage:(UIImage *)image treeImage:(nullable UIImage *)treeImage {
    [self networkCopyrightDistinctUbiquityFootReportingImage:image eightTip:nil treeImage:treeImage];
}

- (void)networkCopyrightDistinctUbiquityFootReportingImage:(UIImage *)image eightTip:(NSString *)eightTip treeImage:(nullable UIImage *)treeImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.reuseReviewImage = image;
        self.composedQuantityBadPushDigitized = eightTip;
        self.headerBagImage = treeImage;
        
        if (!self.layerProxyWindow) {
            [self encodingPriceCreditsSemicolonShoulderWindow];
            [self balticContextArchiveVortexTen];
            [self menGlobalAnimatedBuddySubgroupSpeaker];
            [self eventMaxOneSpecifierFactConvert]; 
        }
        
        [self.layerProxyWindow makeKeyAndVisible];
        [self.outsideSlopeWindow makeKeyWindow];
        
        [self rearrangePreventDescendedPlanDigestLeapAnimation:YES];
        [self clockVendorResourcesStackDecomposeTimer];
    });
}

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


- (void)encodingPriceCreditsSemicolonShoulderWindow {
    
    self.outsideSlopeWindow = [self deviceNorthExclusiveFinalizeFalloffWindow];
    
    
    BackupRaceFreeWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[BackupRaceFreeWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[BackupRaceFreeWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[FixingTrailingViewController alloc] init];
    window.hidden = NO;
    self.layerProxyWindow = window;
    
    
    [self.layerProxyWindow resignKeyWindow];
    [self.outsideSlopeWindow makeKeyWindow];
    
    
    [self addSubview:self.vendorSplatView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.composedQuantityBadPushDigitized) {
        [self.stepchildView sd_setImageWithURL:[NSURL URLWithString:self.composedQuantityBadPushDigitized] placeholderImage
                                              :[UIImage volumesSerialNearestContextCreatedName:MainMinimal.nordicPubTen.capAccessedAgentWetYet]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.stepchildView.image = self.reuseReviewImage;
    }
    self.stepchildView.frame = self.bounds;
    
    [self.layerProxyWindow addSubview:self];
    [self.layerProxyWindow addSubview:self.groupRaceView];
}


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

          (typeFitGuide.size.width - bound/2),
          typeFitGuide.size.height - bound/2,
          bound,
          bound
        );
        self.groupRaceView.layer.masksToBounds = YES;
        self.groupRaceView.layer.cornerRadius = bound/2;
        self.defineBigLabel.center = CGPointMake(bound/3, bound/4);
    }
}


- (void)legalMeanChunk {
    if (self.eyeCarRareJson) {
        !self.funkMoleHandler ?: self.funkMoleHandler(self.eyeCarRareJson[MainMinimal.nordicPubTen.beginResult]);
        if ([self.eyeCarRareJson[MainMinimal.nordicPubTen.oddCostFitRedo] isEqualToString:MainMinimal.nordicPubTen.annotatedMinimizeHowCanonZooming]) {
            self.vendorSplatView.hidden = YES;
            _eyeCarRareJson = nil;
        }
    }else {
        !self.funkMoleHandler ?: self.funkMoleHandler(nil);
    }
}

- (void)inverseThiamin:(UIPanGestureRecognizer *)gesture {
    if (animateUndoCollectorTipSolid) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            speechLossLargeWordEighteenHelpers = self.center;
            _stepchildView.alpha = 1;
            [self littleDownUpperEnergyConflicts];
            staticBrushSilenceMoreExtensionHandle = NO; 
            cursorsUnderDayDocumentAddress = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.groupRaceView.layer removeAllAnimations];
            
            
            self.groupRaceView.alpha = 0.0;
            self.groupRaceView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self shipmentConvergedBagConsoleLawCinematicContactsCenter:
                           CGPointMake(speechLossLargeWordEighteenHelpers.x + translation.x,
                                       speechLossLargeWordEighteenHelpers.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL PingVitamin = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect typeFrame = self.groupRaceView.frame;
            CGRect plusBuild = CGRectInset(typeFrame, -280, PingVitamin?-100:-280); 
            BOOL netTrashLess = CGRectContainsPoint(plusBuild, self.center);
            
            
            
            
            if (netTrashLess != cursorsUnderDayDocumentAddress) {
                cursorsUnderDayDocumentAddress = netTrashLess;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.groupRaceView.alpha = netTrashLess ? 1.0 : 0.0;
                    self.groupRaceView.transform = netTrashLess ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            netTrashLess = CGRectContainsPoint(CGRectInset(typeFrame, 0, 0), self.center);
            if (netTrashLess && !staticBrushSilenceMoreExtensionHandle) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                staticBrushSilenceMoreExtensionHandle = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.groupRaceView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!netTrashLess) {
                if (staticBrushSilenceMoreExtensionHandle) {
                    self.groupRaceView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                staticBrushSilenceMoreExtensionHandle = NO;
            }
            
            
            plusBuild = CGRectInset(typeFrame, 0, 0);
            _georgianSpotlightModernSlopeFilename = CGRectContainsPoint(plusBuild, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.groupRaceView.alpha = 0.0;
                self.groupRaceView.transform = CGAffineTransformIdentity;
            }];
            
            if (_georgianSpotlightModernSlopeFilename) {
                [FunAlertView caretProcessedLinerPeriodicRegistrySerialize:nil message:MainMinimal.tiedTagCertTen.eggExistentSelectionConfigureHoldMethod sleepSongMay:@[MainMinimal.tiedTagCertTen.dueParseAll, MainMinimal.tiedTagCertTen.pullOwn] completion:^(NSInteger carbonIndex) {
                    if (carbonIndex ==1) {
                        [self restoresAllergyNotifyRedirectScrolls];
                    }else {
                        [self rearrangePreventDescendedPlanDigestLeapAnimation:YES];
                        [self clockVendorResourcesStackDecomposeTimer];
                    }
                }];
            } else {
                [self rearrangePreventDescendedPlanDigestLeapAnimation:YES];
                [self clockVendorResourcesStackDecomposeTimer];
            }
            staticBrushSilenceMoreExtensionHandle = NO;
            cursorsUnderDayDocumentAddress = NO;
            break;
        }

        default: break;
    }
}


- (void)rearrangePreventDescendedPlanDigestLeapAnimation:(BOOL)animate {
    if (!_accordingOpaqueAutomaticRowTemporalZip) return;
    
    
    if (animateUndoCollectorTipSolid && animate) return;
    
    CGRect flatFrame = [self shadowContactsLawFairCapturingFrame];
    CGPoint center = self.center;
    
    CGFloat plus = flatFrame.origin.x;
    CGFloat peak = flatFrame.origin.x + flatFrame.size.width;
    CGFloat gray = flatFrame.origin.y;
    CGFloat yard = flatFrame.origin.y + flatFrame.size.height;
    
    
    TopSlabInuitEdge binSubEdge = EditBinAgreementDimensionFallbackFilter;
    CGFloat taskYetSong = CGFLOAT_MAX;
    
    
    CGFloat sudden = center.x - plus;
    CGFloat sayMile = peak - center.x;
    CGFloat agent = center.y - gray;
    CGFloat bypassed = yard - center.y;
    
    NSArray *unitVoice = @[@(sudden), @(sayMile), @(agent), @(bypassed)];
    NSArray *edges = @[@(CalculateUsesLockConverterSetupPlate), @(ZoneGrowCircleReactorTelephonyEvery),
                       @(LoudLogCollapsedCombineUser), @(RedCinematicReportNodeDescentTextual)];
    
    for (NSInteger i = 0; i < unitVoice.count; i++) {
        CGFloat distance = [unitVoice[i] floatValue];
        if (distance < taskYetSong) {
            taskYetSong = distance;
            binSubEdge = [edges[i] integerValue];
        }
    }
    
    
    if (binSubEdge == self.icyKilogramsEdge) {
        CGPoint sinNineCenter = self.center;
        CGPoint shrinkCenter = [self millibarsUnderlineIdleRomanDecipherFiveEdge:binSubEdge];
        CGFloat distance = hypot(sinNineCenter.x - shrinkCenter.x, sinNineCenter.y - shrinkCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.icyKilogramsEdge = binSubEdge;
    
    
    CGPoint shrinkCenter = [self millibarsUnderlineIdleRomanDecipherFiveEdge:binSubEdge];
    CGPoint romanCenter = [self jabberHighestDoubleArmCopperGregorianSevenEdge:binSubEdge];
    
    
    animateUndoCollectorTipSolid = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->animateUndoCollectorTipSolid = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = shrinkCenter;
        self.vendorSplatView.center = romanCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)millibarsUnderlineIdleRomanDecipherFiveEdge:(TopSlabInuitEdge)edge {
    CGRect flatFrame = [self shadowContactsLawFairCapturingFrame];
    CGPoint center = self.center;
    
    CGFloat plus = flatFrame.origin.x;
    CGFloat peak = flatFrame.origin.x + flatFrame.size.width;
    CGFloat gray = flatFrame.origin.y;
    CGFloat yard = flatFrame.origin.y + flatFrame.size.height;
    
    CGPoint shrinkCenter = center;
    
    switch (edge) {
        case CalculateUsesLockConverterSetupPlate:
            shrinkCenter.x = plus + self.bounds.size.width/2 + _farthestAmpere;
            break;
        case ZoneGrowCircleReactorTelephonyEvery:
            shrinkCenter.x = peak - self.bounds.size.width/2 - _farthestAmpere;
            break;
        case LoudLogCollapsedCombineUser:
            shrinkCenter.y = gray + self.bounds.size.height/2 + _farthestAmpere;
            break;
        case RedCinematicReportNodeDescentTextual:
            shrinkCenter.y = yard - self.bounds.size.height/2 - _farthestAmpere;
            break;
        default:
            break;
    }
    
    
    return [self shipmentConvergedBagConsoleLawCinematicContactsCenter:shrinkCenter];
}


- (CGPoint)jabberHighestDoubleArmCopperGregorianSevenEdge:(TopSlabInuitEdge)edge {
    CGPoint romanCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case CalculateUsesLockConverterSetupPlate:
            romanCenter.x = self.bounds.size.width;
            break;
        case ZoneGrowCircleReactorTelephonyEvery:
            
            break;
        case LoudLogCollapsedCombineUser:
            romanCenter.x = self.bounds.size.width;
            romanCenter.y = self.bounds.size.height;
            break;
        case RedCinematicReportNodeDescentTextual:
            romanCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return romanCenter;
}


- (void)clockVendorResourcesStackDecomposeTimer {
    if (_introLinerLiveAzimuthProfile <= 0) return;
    
    [self littleDownUpperEnergyConflicts];
    _shortCaloriesTimer = [NSTimer scheduledTimerWithTimeInterval:_introLinerLiveAzimuthProfile
                                                     target:self
                                                   selector:@selector(templateBarMutableClipFilters)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)littleDownUpperEnergyConflicts {
    [_shortCaloriesTimer invalidate];
    _shortCaloriesTimer = nil;
}

- (void)templateBarMutableClipFilters {
    [UIView animateWithDuration:0.3 animations:^{
        self.stepchildView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.icyKilogramsEdge) {
            case CalculateUsesLockConverterSetupPlate:
                frame.origin.x -= self.farthestAmpere;
                break;
            case ZoneGrowCircleReactorTelephonyEvery:
                frame.origin.x += self.farthestAmpere;
                break;
            case LoudLogCollapsedCombineUser:
                frame.origin.y -= self.farthestAmpere;
                break;
            case RedCinematicReportNodeDescentTextual:
                frame.origin.y += self.farthestAmpere;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)pullDisposeRedFootRecentlyGet {
    [self balticContextArchiveVortexTen];
    [self eventMaxOneSpecifierFactConvert]; 
    [self rearrangePreventDescendedPlanDigestLeapAnimation:YES];
}


- (void)balticContextArchiveVortexTen {
    UIWindow *keyWindow = VortexBusManager.shared.broadcastOptWindow; //self.outsideSlopeWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice overhang]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice kinOdd]) {
        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.exposePageInputLettishEnd = safeArea;
    self.endpointAboutIdleMaxInsulinSubtitle = keyWindow.bounds;
}

- (CGRect)shadowContactsLawFairCapturingFrame {
    
    return CGRectMake(
        self.endpointAboutIdleMaxInsulinSubtitle.origin.x + self.exposePageInputLettishEnd.left,
        self.endpointAboutIdleMaxInsulinSubtitle.origin.y + self.exposePageInputLettishEnd.top,
        self.endpointAboutIdleMaxInsulinSubtitle.size.width - (self.exposePageInputLettishEnd.left + self.exposePageInputLettishEnd.right),
        self.endpointAboutIdleMaxInsulinSubtitle.size.height - (self.exposePageInputLettishEnd.top + self.exposePageInputLettishEnd.bottom)
    );
}


- (void)menGlobalAnimatedBuddySubgroupSpeaker {
    NSString *artworkBuild = [[NSUserDefaults standardUserDefaults] valueForKey:MainMinimal.nordicPubTen.outAwayServerPanEmptyStoryline];
    if (artworkBuild) {
        self.center = CGPointFromString(artworkBuild);
    }else {
        
        CGRect flatFrame = [self shadowContactsLawFairCapturingFrame];
        self.center = CGPointMake(flatFrame.origin.x + flatFrame.size.width - self.bounds.size.width/2 - _farthestAmpere,
                                  flatFrame.origin.y + flatFrame.size.height/2);
    }
}


- (UIWindow *)deviceNorthExclusiveFinalizeFalloffWindow {
    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)shipmentConvergedBagConsoleLawCinematicContactsCenter:(CGPoint)proposedCenter {
    CGRect flatFrame = [self shadowContactsLawFairCapturingFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat plus = flatFrame.origin.x + buttonSize.width/2;
    CGFloat peak = flatFrame.origin.x + flatFrame.size.width - buttonSize.width/2;
    CGFloat gray = flatFrame.origin.y + buttonSize.height/2;
    CGFloat yard = flatFrame.origin.y + flatFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(plus, MIN(proposedCenter.x, peak)),
        MAX(gray, MIN(proposedCenter.y, yard))
    );
}

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

@end
