






#import "DiscreteView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MidImage.h"
#import "BadgeSunIcy.h"
#import "NSString+ArtBeacon.h"
#import "TagAlertView.h"
#import "OffWhoThirdWasWindow.h"
#import "LookupToneHashViewController.h"
#import "UIDevice+MidDevice.h"
#import "FixObjectManager.h"

@interface DiscreteView()  <UIGestureRecognizerDelegate> {
    CGPoint rankedCarRematchPowerTeamQuotation;
    BOOL assertAssameseLeftoverWrappedProgress;
    BOOL bringBasalSunDistantSignCanceling; 
    BOOL strictlyWhoUniformBelowBridge; 
}


@property (nonatomic, strong) OffWhoThirdWasWindow *replyStartWindow;
@property (nonatomic, weak) UIWindow *sawColorIdleWindow;


@property (nonatomic, strong) UIImageView *stripSoloView;
@property (nonatomic, strong) UIView *tokenTapWetView;


@property (nonatomic, strong) UIView *smoothTipView;
@property (nonatomic, strong) UILabel *powerHostLabel;
@property (nonatomic, assign) BOOL intersectStoreTakePeerHis;


@property (nonatomic, strong) NSTimer *dryHexTradTwoTimer;
@property (nonatomic, assign) UIEdgeInsets chapterPastPersonKinAdd;
@property (nonatomic, assign) CGRect inheritedFlatnessCenteringUnknownSignalExtend;


@property (nonatomic, strong) UIImage *pullBarRingImage;
@property (nonatomic, copy) NSString *ageEggDatumInsertOdd;
@property (nonatomic, strong) UIImage *verifyHasImage;
@property (nonatomic, assign) CGFloat rareHueMileCap;
@property (nonatomic, assign) BitsInvertedEdge basalArtZoneEdge;
@property (nonatomic, assign) NSTimeInterval buttonFarsiOptionNotationDigital;
@property (nonatomic, assign) BOOL rainHandlerTerminateSensitiveCookieWire;
@end

@implementation DiscreteView


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

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

- (void)observingDogTallRelationsSetting {
    self.rareHueMileCap = 10.0;
    self.buttonFarsiOptionNotationDigital = 3.0;
    self.rainHandlerTerminateSensitiveCookieWire = YES;
    
    
    self.stripSoloView = [[UIImageView alloc] init];
    self.stripSoloView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.stripSoloView];
    
    self.smoothTipView = [[UIView alloc] init];
    self.smoothTipView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.smoothTipView.layer.cornerRadius = 20;
    self.smoothTipView.layer.masksToBounds = YES;
    self.smoothTipView.alpha = 0.0;
    
    self.powerHostLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.powerHostLabel.text = BadgeSunIcy.lastCaretReply.repairSizeFlemishIndicatedFarEnumerate;
    self.powerHostLabel.numberOfLines = 0;
    self.powerHostLabel.textColor = [UIColor whiteColor];
    self.powerHostLabel.textAlignment = NSTextAlignmentCenter;
    self.powerHostLabel.font = [UIFont systemFontOfSize:14];
    [self.smoothTipView addSubview:self.powerHostLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(clientsAddress:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(presenterMajor)];
    [self addGestureRecognizer:tap];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(separatedLinearlyAnimatorProductsReversedIdle)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setWayModeDogJson:(NSDictionary *)wayModeDogJson {
    _wayModeDogJson = wayModeDogJson;
    if (wayModeDogJson && self.replyStartWindow != nil) {
        NSString *action = wayModeDogJson[BadgeSunIcy.greekBlueArt.pinLogFitParse];
        if ([action isEqualToString:BadgeSunIcy.greekBlueArt.spellStretch]) {
            self.tokenTapWetView.hidden = NO;
        }else if ([action isEqualToString:BadgeSunIcy.greekBlueArt.dogAppleWait]) {
            self.tokenTapWetView.hidden = YES;
        }else if ([action isEqualToString:BadgeSunIcy.greekBlueArt.guestPetiteOnceMindPersian]) {
            self.tokenTapWetView.hidden = NO;
        }
    }
}


+ (void)arcadeNet {
    [self.shared postalCreateSharingManagersSettingsBoldImage:[UIImage indicatedClampingFoggyPrincipalBeginningName:BadgeSunIcy.greekBlueArt.stampConvertPluralSplitTemporary] lawTheme:BadgeSunIcy.scalarHomeSocialAppearingDevices saltImage:nil];
}

+ (void)panAddDietaryImage:(UIImage *)image {
    [[self shared] postalCreateSharingManagersSettingsBoldImage:image saltImage:nil];
}

+ (void)tabDescribeImage:(UIImage *)normalImage saltImage:(nullable UIImage *)saltImage {
    DiscreteView *instance = [self shared];
    instance.pullBarRingImage = normalImage;
    instance.ageEggDatumInsertOdd = nil;
    instance.verifyHasImage = saltImage;
    instance.stripSoloView.image = normalImage;
}

+ (void)hitSecret {
    [[self shared] cinematicFileSmoothDiacriticDeleting];
}

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


- (void)postalCreateSharingManagersSettingsBoldImage:(UIImage *)image saltImage:(nullable UIImage *)saltImage {
    [self postalCreateSharingManagersSettingsBoldImage:image lawTheme:nil saltImage:saltImage];
}

- (void)postalCreateSharingManagersSettingsBoldImage:(UIImage *)image lawTheme:(NSString *)lawTheme saltImage:(nullable UIImage *)saltImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.pullBarRingImage = image;
        self.ageEggDatumInsertOdd = lawTheme;
        self.verifyHasImage = saltImage;
        
        if (!self.replyStartWindow) {
            [self dividingListenerBinInvisibleExpensiveWindow];
            [self issueConcludeProtocolLaterWatched];
            [self resonantLengthsSerialCookiesLinearSob];
            [self dueFailureWarpPicturesNotifyingPan]; 
        }
        
        [self.replyStartWindow makeKeyAndVisible];
        [self.sawColorIdleWindow makeKeyWindow];
        
        [self pitchKeyBadBoxHyphenReaderAnimation:YES];
        [self elapsedLaterTooDistortedWorkoutsTimer];
    });
}

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


- (void)dividingListenerBinInvisibleExpensiveWindow {
    
    self.sawColorIdleWindow = [self swashesBecomeSpeechPulsePossibleWindow];
    
    
    OffWhoThirdWasWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[OffWhoThirdWasWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[OffWhoThirdWasWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[LookupToneHashViewController alloc] init];
    window.hidden = NO;
    self.replyStartWindow = window;
    
    
    [self.replyStartWindow resignKeyWindow];
    [self.sawColorIdleWindow makeKeyWindow];
    
    
    [self addSubview:self.tokenTapWetView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.ageEggDatumInsertOdd) {
        [self.stripSoloView sd_setImageWithURL:[NSURL URLWithString:self.ageEggDatumInsertOdd] placeholderImage
                                              :[UIImage indicatedClampingFoggyPrincipalBeginningName:BadgeSunIcy.greekBlueArt.stampConvertPluralSplitTemporary]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.stripSoloView.image = self.pullBarRingImage;
    }
    self.stripSoloView.frame = self.bounds;
    
    [self.replyStartWindow addSubview:self];
    [self.replyStartWindow addSubview:self.smoothTipView];
}


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

          (execTrailing.size.width - began/2),
          execTrailing.size.height - began/2,
          began,
          began
        );
        self.smoothTipView.layer.masksToBounds = YES;
        self.smoothTipView.layer.cornerRadius = began/2;
        self.powerHostLabel.center = CGPointMake(began/3, began/4);
    }
}


- (void)presenterMajor {
    if (self.wayModeDogJson) {
        !self.scoreAllHandler ?: self.scoreAllHandler(self.wayModeDogJson[BadgeSunIcy.greekBlueArt.illCritical]);
        if ([self.wayModeDogJson[BadgeSunIcy.greekBlueArt.pinLogFitParse] isEqualToString:BadgeSunIcy.greekBlueArt.guestPetiteOnceMindPersian]) {
            self.tokenTapWetView.hidden = YES;
            _wayModeDogJson = nil;
        }
    }else {
        !self.scoreAllHandler ?: self.scoreAllHandler(nil);
    }
}

- (void)clientsAddress:(UIPanGestureRecognizer *)gesture {
    if (assertAssameseLeftoverWrappedProgress) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            rankedCarRematchPowerTeamQuotation = self.center;
            _stripSoloView.alpha = 1;
            [self denyUnitCapTenPurchased];
            bringBasalSunDistantSignCanceling = NO; 
            strictlyWhoUniformBelowBridge = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.smoothTipView.layer removeAllAnimations];
            
            
            self.smoothTipView.alpha = 0.0;
            self.smoothTipView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self boxClampedSimpleManHasTodayKeysCenter:
                           CGPointMake(rankedCarRematchPowerTeamQuotation.x + translation.x,
                                       rankedCarRematchPowerTeamQuotation.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL CapSubgroup = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect pipeFrame = self.smoothTipView.frame;
            CGRect narrative = CGRectInset(pipeFrame, -280, CapSubgroup?-100:-280); 
            BOOL tryTriggered = CGRectContainsPoint(narrative, self.center);
            
            
            
            
            if (tryTriggered != strictlyWhoUniformBelowBridge) {
                strictlyWhoUniformBelowBridge = tryTriggered;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.smoothTipView.alpha = tryTriggered ? 1.0 : 0.0;
                    self.smoothTipView.transform = tryTriggered ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            tryTriggered = CGRectContainsPoint(CGRectInset(pipeFrame, 0, 0), self.center);
            if (tryTriggered && !bringBasalSunDistantSignCanceling) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                bringBasalSunDistantSignCanceling = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.smoothTipView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!tryTriggered) {
                if (bringBasalSunDistantSignCanceling) {
                    self.smoothTipView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                bringBasalSunDistantSignCanceling = NO;
            }
            
            
            narrative = CGRectInset(pipeFrame, 0, 0);
            _intersectStoreTakePeerHis = CGRectContainsPoint(narrative, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.smoothTipView.alpha = 0.0;
                self.smoothTipView.transform = CGAffineTransformIdentity;
            }];
            
            if (_intersectStoreTakePeerHis) {
                [TagAlertView schoolSerbianIllInstallsMagentaToo:nil message:BadgeSunIcy.lastCaretReply.brownSurfacePartUppercaseLiveFragment tryNapMember:@[BadgeSunIcy.lastCaretReply.draftFitFax, BadgeSunIcy.lastCaretReply.panLoud] completion:^(NSInteger reloadIndex) {
                    if (reloadIndex ==1) {
                        [self cinematicFileSmoothDiacriticDeleting];
                    }else {
                        [self pitchKeyBadBoxHyphenReaderAnimation:YES];
                        [self elapsedLaterTooDistortedWorkoutsTimer];
                    }
                }];
            } else {
                [self pitchKeyBadBoxHyphenReaderAnimation:YES];
                [self elapsedLaterTooDistortedWorkoutsTimer];
            }
            bringBasalSunDistantSignCanceling = NO;
            strictlyWhoUniformBelowBridge = NO;
            break;
        }

        default: break;
    }
}


- (void)pitchKeyBadBoxHyphenReaderAnimation:(BOOL)animate {
    if (!_rainHandlerTerminateSensitiveCookieWire) return;
    
    
    if (assertAssameseLeftoverWrappedProgress && animate) return;
    
    CGRect meanFrame = [self enablingNotifyingButtonAskPauseFrame];
    CGPoint center = self.center;
    
    CGFloat chat = meanFrame.origin.x;
    CGFloat clip = meanFrame.origin.x + meanFrame.size.width;
    CGFloat feed = meanFrame.origin.y;
    CGFloat call = meanFrame.origin.y + meanFrame.size.height;
    
    
    BitsInvertedEdge mapMixEdge = ChunkSymbolShotSyntaxLiveJob;
    CGFloat builtOutlet = CGFLOAT_MAX;
    
    
    CGFloat expert = center.x - chat;
    CGFloat fixPack = clip - center.x;
    CGFloat bleed = center.y - feed;
    CGFloat dustLoss = call - center.y;
    
    NSArray *howPartly = @[@(expert), @(fixPack), @(bleed), @(dustLoss)];
    NSArray *edges = @[@(TrySiblingsUpdateDeveloperCoercionBrush), @(FourthPostalInfiniteDeviationThousandsSerif),
                       @(AreSplitCreditEndSubject), @(PlugSecondaryBeganRawStampPriority)];
    
    for (NSInteger i = 0; i < howPartly.count; i++) {
        CGFloat distance = [howPartly[i] floatValue];
        if (distance < builtOutlet) {
            builtOutlet = distance;
            mapMixEdge = [edges[i] integerValue];
        }
    }
    
    
    if (mapMixEdge == self.basalArtZoneEdge) {
        CGPoint halfBoxCenter = self.center;
        CGPoint artistCenter = [self subscribeNeedCountExtendMegawattsGroupingEdge:mapMixEdge];
        CGFloat distance = hypot(halfBoxCenter.x - artistCenter.x, halfBoxCenter.y - artistCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.basalArtZoneEdge = mapMixEdge;
    
    
    CGPoint artistCenter = [self subscribeNeedCountExtendMegawattsGroupingEdge:mapMixEdge];
    CGPoint groupCenter = [self existentPredicateIllMillionSoloistInventoryCanEdge:mapMixEdge];
    
    
    assertAssameseLeftoverWrappedProgress = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->assertAssameseLeftoverWrappedProgress = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = artistCenter;
        self.tokenTapWetView.center = groupCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)subscribeNeedCountExtendMegawattsGroupingEdge:(BitsInvertedEdge)edge {
    CGRect meanFrame = [self enablingNotifyingButtonAskPauseFrame];
    CGPoint center = self.center;
    
    CGFloat chat = meanFrame.origin.x;
    CGFloat clip = meanFrame.origin.x + meanFrame.size.width;
    CGFloat feed = meanFrame.origin.y;
    CGFloat call = meanFrame.origin.y + meanFrame.size.height;
    
    CGPoint artistCenter = center;
    
    switch (edge) {
        case TrySiblingsUpdateDeveloperCoercionBrush:
            artistCenter.x = chat + self.bounds.size.width/2 + _rareHueMileCap;
            break;
        case FourthPostalInfiniteDeviationThousandsSerif:
            artistCenter.x = clip - self.bounds.size.width/2 - _rareHueMileCap;
            break;
        case AreSplitCreditEndSubject:
            artistCenter.y = feed + self.bounds.size.height/2 + _rareHueMileCap;
            break;
        case PlugSecondaryBeganRawStampPriority:
            artistCenter.y = call - self.bounds.size.height/2 - _rareHueMileCap;
            break;
        default:
            break;
    }
    
    
    return [self boxClampedSimpleManHasTodayKeysCenter:artistCenter];
}


- (CGPoint)existentPredicateIllMillionSoloistInventoryCanEdge:(BitsInvertedEdge)edge {
    CGPoint groupCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case TrySiblingsUpdateDeveloperCoercionBrush:
            groupCenter.x = self.bounds.size.width;
            break;
        case FourthPostalInfiniteDeviationThousandsSerif:
            
            break;
        case AreSplitCreditEndSubject:
            groupCenter.x = self.bounds.size.width;
            groupCenter.y = self.bounds.size.height;
            break;
        case PlugSecondaryBeganRawStampPriority:
            groupCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return groupCenter;
}


- (void)elapsedLaterTooDistortedWorkoutsTimer {
    if (_buttonFarsiOptionNotationDigital <= 0) return;
    
    [self denyUnitCapTenPurchased];
    _dryHexTradTwoTimer = [NSTimer scheduledTimerWithTimeInterval:_buttonFarsiOptionNotationDigital
                                                     target:self
                                                   selector:@selector(exitsCommandsSpecificTrademarkHit)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)denyUnitCapTenPurchased {
    [_dryHexTradTwoTimer invalidate];
    _dryHexTradTwoTimer = nil;
}

- (void)exitsCommandsSpecificTrademarkHit {
    [UIView animateWithDuration:0.3 animations:^{
        self.stripSoloView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.basalArtZoneEdge) {
            case TrySiblingsUpdateDeveloperCoercionBrush:
                frame.origin.x -= self.rareHueMileCap;
                break;
            case FourthPostalInfiniteDeviationThousandsSerif:
                frame.origin.x += self.rareHueMileCap;
                break;
            case AreSplitCreditEndSubject:
                frame.origin.y -= self.rareHueMileCap;
                break;
            case PlugSecondaryBeganRawStampPriority:
                frame.origin.y += self.rareHueMileCap;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)separatedLinearlyAnimatorProductsReversedIdle {
    [self issueConcludeProtocolLaterWatched];
    [self dueFailureWarpPicturesNotifyingPan]; 
    [self pitchKeyBadBoxHyphenReaderAnimation:YES];
}


- (void)issueConcludeProtocolLaterWatched {
    UIWindow *keyWindow = FixObjectManager.shared.linearTagLogWindow; //self.sawColorIdleWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice digitBag]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice earFar]) {
        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.chapterPastPersonKinAdd = safeArea;
    self.inheritedFlatnessCenteringUnknownSignalExtend = keyWindow.bounds;
}

- (CGRect)enablingNotifyingButtonAskPauseFrame {
    
    return CGRectMake(
        self.inheritedFlatnessCenteringUnknownSignalExtend.origin.x + self.chapterPastPersonKinAdd.left,
        self.inheritedFlatnessCenteringUnknownSignalExtend.origin.y + self.chapterPastPersonKinAdd.top,
        self.inheritedFlatnessCenteringUnknownSignalExtend.size.width - (self.chapterPastPersonKinAdd.left + self.chapterPastPersonKinAdd.right),
        self.inheritedFlatnessCenteringUnknownSignalExtend.size.height - (self.chapterPastPersonKinAdd.top + self.chapterPastPersonKinAdd.bottom)
    );
}


- (void)resonantLengthsSerialCookiesLinearSob {
    NSString *windowSymbol = [[NSUserDefaults standardUserDefaults] valueForKey:BadgeSunIcy.greekBlueArt.externalEveryTicketsFoundRebuildDelay];
    if (windowSymbol) {
        self.center = CGPointFromString(windowSymbol);
    }else {
        
        CGRect meanFrame = [self enablingNotifyingButtonAskPauseFrame];
        self.center = CGPointMake(meanFrame.origin.x + meanFrame.size.width - self.bounds.size.width/2 - _rareHueMileCap,
                                  meanFrame.origin.y + meanFrame.size.height/2);
    }
}


- (UIWindow *)swashesBecomeSpeechPulsePossibleWindow {
    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)boxClampedSimpleManHasTodayKeysCenter:(CGPoint)proposedCenter {
    CGRect meanFrame = [self enablingNotifyingButtonAskPauseFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat chat = meanFrame.origin.x + buttonSize.width/2;
    CGFloat clip = meanFrame.origin.x + meanFrame.size.width - buttonSize.width/2;
    CGFloat feed = meanFrame.origin.y + buttonSize.height/2;
    CGFloat call = meanFrame.origin.y + meanFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(chat, MIN(proposedCenter.x, clip)),
        MAX(feed, MIN(proposedCenter.y, call))
    );
}

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

@end
