






#import "HisGeometry.h"
#import "NSString+ReturnHow.h"
#import "UIImageView+WebCache.h"
#import "StrongInfo.h"
#import "UIColor+SawColor.h"
#import "UIImage+LogImage.h"
#import "Masonry.h"

#import "FlatDayFitConfig.h"
#import "SexItsManager.h"
#import "SilentLemmaAmbienceStaySlice.h"

static PriceRectified *_illLoudEarFlow = nil;
static ReachedEra *_sinkIcyLeaky = nil;

@implementation HisGeometry

+ (PriceRectified *)illLoudEarFlow {
    if (!_illLoudEarFlow) {
        _illLoudEarFlow = [SilentLemmaAmbienceStaySlice cameraTemporalDanishIrishLiftHue:[PriceRectified class]];
    }
    return _illLoudEarFlow;
}

+ (ReachedEra *)sinkIcyLeaky {
    if (!_sinkIcyLeaky) {
        _sinkIcyLeaky = [SilentLemmaAmbienceStaySlice linearAgreementArbiterPrintableNorwegianJoin:[ReachedEra class]];
    }
    return _sinkIcyLeaky;
}

+ (NSString *)megabytesPrinterShearPrepOuncesName {
    return [SexItsManager lengthDiscardOnlyProvideOld].bondModeName;
}

+ (NSString *)decodingDigestLawSeeSlidingToken {
    return [SexItsManager lengthDiscardOnlyProvideOld].flowBaseToken;
}

+ (CGFloat)fitBankersTryMealDerived {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.checkerExpiresDayTiedScanned.youGlobal?:self.sinkIcyLeaky.inheritedWill;
}

+ (NSString *)noteAssumeAllBlobDirection {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.pasteUpload.suchHandle;
}

+ (NSString *)tapCinematicTextScaleAllowableTwist {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.checkerExpiresDayTiedScanned.darkInventoryAngularOriginsRest;
}

+ (CGFloat)kilometerRecentlySettlingDirectRespects {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.checkerExpiresDayTiedScanned.extendsDecimalHoldMagentaIts;
}
+ (BOOL)extendsDecimalHoldMagentaIts {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.checkerExpiresDayTiedScanned.extendsDecimalHoldMagentaIts;
}

+ (NSString *)stopLinkageEntitledBufferedVignette {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.whoCatDivide.gopherFallback;
}
+ (NSString *)familyBookEnsureIntentTelephone {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.whoCatDivide.sliderEditor;
}

+ (BOOL)existingBodyCharFixSubject {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.subtitlesStackIntroBeganSecurelyTypeCoptic;
}

+ (BOOL)guideInfer {
    return FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.whoCatDivide.guideInfer;
}

+ (BOOL)hourCombineRefusedNetItsOpacity {
    return [FlatDayFitConfig shared].hourCombineRefusedNetItsOpacity;
}

+ (NSArray *)browseListOverflowBackwardFind {
    NSArray *flipContainedAudioLatencyBook = [SexItsManager impactYahooLyricistRatioWarpSupply];
    NSMutableArray *warp = [NSMutableArray arrayWithCapacity:flipContainedAudioLatencyBook.count];
    
    for (WayCatRestore *wax in flipContainedAudioLatencyBook) {
        NSString *image = self.sinkIcyLeaky.barChannelsReusableSlashDeveloperTolerance;
        switch (wax.airborneType) {
            case PopNetworkTouchesFactReplaced:
                image = self.sinkIcyLeaky.separatorBecomeCaloriesPostalAnyMen;
                break;
            case MapBurmeseLowAccount:
            case CameraSettingRegister:
                image = self.sinkIcyLeaky.barChannelsReusableSlashDeveloperTolerance;
                break;
            case AdvertiseFormatExpiresMaxClicked:
                image = self.sinkIcyLeaky.dueFourteenPickMutableSomaliCancels;
                break;
                
case IcyLemmaInvisibleDublinSpacing:
                image = self.sinkIcyLeaky.templateStringOldBadSolo;
                break;
            case MayShapeYiddishDitherCapturesQuantize:
                image = self.sinkIcyLeaky.cousinGuaraniFlattenExposeQualifiedNumber;
                break;

            default:
                image = self.sinkIcyLeaky.separatorBecomeCaloriesPostalAnyMen;
                break;
        }
        
        NSArray *dry = @[wax.bondModeName ?: @"",image,wax.sinkFixWindowMayAcrossTime];
        [warp addObject:dry];
    }
    
    
    NSArray *darkerMark = [warp sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double mid = [a[2] doubleValue];
        double bin = [b[2] doubleValue];
        if (mid > bin) {
            return NSOrderedAscending; 
        } else if (mid < bin) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return darkerMark;
}

+ (CGSize)genderAmbienceSlopeSixPhaseOrderSize {
    return CGSizeMake(self.sinkIcyLeaky.wordAmbientCopticPublicFocusingWidth, self.sinkIcyLeaky.frenchProminentTheFlashWillGateways);
}

+ (UIColor *)lawStylusColor{
    return [UIColor russianSayUseVignetteSwipeSuccess:FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.gatewaysBuddhistMildFinishCapturingEncoding.lawStylusColor?:self.sinkIcyLeaky.lawStylusColor];
}

+ (UIColor *)schedulerColor{
    return [UIColor russianSayUseVignetteSwipeSuccess:FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.gatewaysBuddhistMildFinishCapturingEncoding.schedulerColor?:self.sinkIcyLeaky.schedulerColor];
}

+ (UIColor *)paletteSurrogateNaturalGesturesDenyColor{
    return [UIColor russianSayUseVignetteSwipeSuccess:FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.gatewaysBuddhistMildFinishCapturingEncoding.paletteSurrogateNaturalGesturesDenyColor?:self.sinkIcyLeaky.paletteSurrogateNaturalGesturesDenyColor];
}

+ (void)lettersParserGivenClimbingDisableAction {
    if (FlatDayFitConfig.shared.sideViewOutStatus != LossySuccessTouchGeneralLegacyPoint) {
        FlatDayFitConfig.shared.sideViewOutStatus = BinAtomWinWhoKelvinAttempter;
    }
}

+ (UIView *)filterBagView {
    if (FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.panoramaProvidedDailyUseProposalIts.solutionsShareMasterObscuresIgnores) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.panoramaProvidedDailyUseProposalIts]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [StrongInfo tokenBusName];
        label.textColor = [self schedulerColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

+ (UILabel *)settingSlantSymbolicStakeUnlikely:(NSString *)title {
    UILabel *label = [UILabel new];
    label.text = title;
    label.textColor = [self schedulerColor];
    label.font = [UIFont systemFontOfSize:13];
    return label;
}

+ (UIButton *)objectFallbackSplatBackupSound:(NSString *)title {
    UIButton *button = [[UIButton alloc] init];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self schedulerColor] forState:UIControlStateNormal];
    [button setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:13];
    return button;
}

+ (UIButton *)momentaryQueryingTryExclusiveSamplingColor:(NSString *)title {
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage slabItsArtCostColor:[self schedulerColor]] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage slabItsArtCostColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    button.layer.cornerRadius = 2.f;
    button.layer.masksToBounds = YES;
    return button;
}

+ (NSArray *)fullProvinceRaceShotEntryRet:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (AuditedModel *wax in FlatDayFitConfig.shared.pintDescribesProcessedSheetPin.routeFlattenRowContainsPenWebpage) {
        UIView *button = [self danishEastDeviceBringKnowReset:wax.putPanCropText
                                           ourManualColor:[UIColor russianSayUseVignetteSwipeSuccess:wax.spousesBigColor]
                                                upsideAnd:[self badUrgentLacrosseInteriorOpposite:wax]
                                           restTopTapTail:wax.recognize
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)badUrgentLacrosseInteriorOpposite:(AuditedModel *)wax {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t mostToken;
    dispatch_once(&mostToken, ^{
        map = @{
            
            self.sinkIcyLeaky.nowSonLead    : self.sinkIcyLeaky.separatorBecomeCaloriesPostalAnyMen,
            self.sinkIcyLeaky.basicSonIts   : self.sinkIcyLeaky.dueFourteenPickMutableSomaliCancels,
            self.sinkIcyLeaky.liftDisparity : self.sinkIcyLeaky.barChannelsReusableSlashDeveloperTolerance,
self.sinkIcyLeaky.produce       : self.sinkIcyLeaky.templateStringOldBadSolo,
            self.sinkIcyLeaky.wetWaxHoursHas: self.sinkIcyLeaky.cousinGuaraniFlattenExposeQualifiedNumber,

        };
    });
    if (wax.suchHandle.pubFlushNear) {
        
        wax.suchHandle = map[wax.recognize];
    }
    return wax.suchHandle;
}

+ (UIView *)danishEastDeviceBringKnowReset:(NSString *)title
                      ourManualColor:(UIColor *)titleColor
                           upsideAnd:(NSString *)image
                      restTopTapTail:(NSString *)idf
                              target:(id)target
                              action:(SEL)action {
    
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = UIColor.clearColor;
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.layer.masksToBounds = YES;
    button.accessibilityIdentifier = idf;
    
    if ([self outletAssumePotassiumRemoteAirborne:image]) {
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:image] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                [button setImage:image2 forState:UIControlStateNormal];
            });
        }];

    }else {
        UIImage *sobImage = [[UIImage kannadaScheduledCatalystManHandName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self schedulerColor];
        [button setImage:sobImage forState:UIControlStateNormal];
    }
    
    button.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0);
    [[button imageView] setContentMode:UIViewContentModeScaleAspectFill];
    button.contentHorizontalAlignment= UIControlContentHorizontalAlignmentFill;
    button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;
    [button addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
    [view addSubview:button];
    
    UILabel *label = [HisGeometry settingSlantSymbolicStakeUnlikely:title];
    label.textColor = titleColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:12];
    label.numberOfLines = 0;
    [view addSubview:label];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(view);
        make.size.equalTo(view);
    }];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view.mas_bottom).offset(8);
        make.left.right.equalTo(view);
    }];
    
    return view;
}

+ (BOOL)outletAssumePotassiumRemoteAirborne:(NSString *)url
{
    NSString *alive =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",alive];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)nordicExpiresEnteredHumanStrokedDebuggingCode {
    UITextField *textField = [self headElementField:self.illLoudEarFlow.vowelFastestHairUnwindUpdatesReplacedCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)ligaturesMirroredScannerEffectiveBigBinary {
    UITextField *textField = [self headElementField:self.illLoudEarFlow.expensiveDelayedFeedTokenAge isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)subtitlesBeforeNoteSubIcyAccount {
    return [self headElementField:self.illLoudEarFlow.starNotifying isSecure:NO];
}

+ (UITextField *)centeringSpectralVeryBeenForPassword:(BOOL)isNew {
    UITextField *textField = [self headElementField:isNew?self.illLoudEarFlow.silentOrderExportingKnowExpect:self.illLoudEarFlow.wayTagTextYouKey isSecure:YES];
    [self challengeLocalityUtilityAllSinTransientNone:textField minSize:CGSizeMake(HisGeometry.sinkIcyLeaky.artsPaperFat, HisGeometry.sinkIcyLeaky.artsPaperFat)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *timeImage = [UIImage kannadaScheduledCatalystManHandName:self.sinkIcyLeaky.fairTriggerUpdatesPerformedArbiter];
    UIImage *kinEggImage = [UIImage kannadaScheduledCatalystManHandName:self.sinkIcyLeaky.ciphersServerEncodeNoticeOnce];
    rightButton.frame = CGRectMake(0, 0, HisGeometry.sinkIcyLeaky.artsPaperFat, HisGeometry.sinkIcyLeaky.artsPaperFat);
    [rightButton setImage:timeImage forState:UIControlStateNormal];
    [rightButton setImage:kinEggImage forState:UIControlStateSelected];
    CGFloat bankSawAfter = (HisGeometry.sinkIcyLeaky.artsPaperFat - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(bankSawAfter, bankSawAfter, bankSawAfter, bankSawAfter)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)headElementField:(NSString *)placeholder isSecure:(BOOL)isSecure {
    UITextField *textField = [UITextField new];
    textField.secureTextEntry = isSecure;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.autocorrectionType = UITextAutocorrectionTypeNo;
    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    textField.font = [UIFont systemFontOfSize:15];
    textField.layer.borderColor = [self schedulerColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = 2;
    textField.backgroundColor = UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self discountsIdentifyWorkflowArtCaptionClientsCustom:textField minSize:CGSizeMake(10, HisGeometry.sinkIcyLeaky.artsPaperFat)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

+ (void)discountsIdentifyWorkflowArtCaptionClientsCustom:(UITextField *)textField minSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *detailed = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = detailed;
}

+ (void)challengeLocalityUtilityAllSinTransientNone:(UITextField *)textField minSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *sideMerge = [[UIView alloc] initWithFrame:frame];
    textField.rightViewMode = UITextFieldViewModeAlways;
    textField.rightView = sideMerge;
}
@end
