






#import "SkinEchoMen.h"
#import "NSString+PintDatum.h"
#import "UIImageView+WebCache.h"
#import "ManWonInfo.h"
#import "UIColor+BusColor.h"
#import "UIImage+FixImage.h"
#import "Masonry.h"

#import "PersonFillConfig.h"
#import "HebrewManager.h"
#import "ExtendingBriefFocalBoundaryMiles.h"


@interface XXGCapsuleButton : UIButton
@end

@implementation XXGCapsuleButton
- (void)layoutSubviews {
    [super layoutSubviews];
    self.layer.cornerRadius = CGRectGetHeight(self.bounds) / 2.0;
}
@end

static DateDeepPeople *_cubePrimeToken = nil;
static AgeMidUses *_pauseKirghiz = nil;

@implementation SkinEchoMen

+ (DateDeepPeople *)cubePrimeToken {
    if (!_cubePrimeToken) {
        _cubePrimeToken = [ExtendingBriefFocalBoundaryMiles senseRainFourExecRedirectUpdating:[DateDeepPeople class]];
    }
    return _cubePrimeToken;
}

+ (AgeMidUses *)pauseKirghiz {
    if (!_pauseKirghiz) {
        _pauseKirghiz = [ExtendingBriefFocalBoundaryMiles learnLoseMembersCathedralWaistNative:[AgeMidUses class]];
    }
    return _pauseKirghiz;
}

+ (NSString *)bothAllergyMatchPreserveRetName {
    return [HebrewManager stopCostDismissedYetJump].wordTurnName;
}

+ (NSString *)farWaxSurfaceSheDragToken {
    return [HebrewManager stopCostDismissedYetJump].widthZipToken;
}

+ (CGFloat)collectUnlearnButBankGrandaunt {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.pinVerifyMapExactnessIncludes.visitShot?:self.pauseKirghiz.badClimbedSex;
}

+ (NSString *)determineUnderlineEmbeddedTeacherEnd {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.cutEverySee.rateSeePop;
}

+ (NSString *)longerCondensedWhoDerivedFinishReported {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.pinVerifyMapExactnessIncludes.midAffineFrameBigSee;
}

+ (CGFloat)askFireTapVitalityDelay {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.pinVerifyMapExactnessIncludes.disorderInfiniteJobCutterDistance;
}
+ (BOOL)disorderInfiniteJobCutterDistance {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.pinVerifyMapExactnessIncludes.disorderInfiniteJobCutterDistance;
}

+ (NSString *)frenchFlemishHumanFatBand {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.workMapQuote.cubicPipeReady;
}
+ (NSString *)eightTrackUniformGenderSubgroup {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.workMapQuote.buttonsSlope;
}

+ (BOOL)muteNowPreviousLargerSeed {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.allBrowseDescenderWristTreeCreamyCurrently;
}

+ (BOOL)weekOffKey {
    return PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.workMapQuote.weekOffKey;
}

+ (BOOL)constantsHairWhileFinishKitContainer {
    return [PersonFillConfig shared].constantsHairWhileFinishKitContainer;
}

+ (NSArray *)hockeyAxialComparedInspiredPrevented {
    NSArray *trimmingTriggeredCleanMeteringSplat = [HebrewManager wasUnsavedRightContainsSemanticsProduced];
    NSMutableArray *dark = [NSMutableArray arrayWithCapacity:trimmingTriggeredCleanMeteringSplat.count];
    
    for (WideWordSheet *who in trimmingTriggeredCleanMeteringSplat) {
        NSString *image = self.pauseKirghiz.cupParticlePlateTwoEngravedPub;
        switch (who.beenJustType) {
            case CalculateSeparatedLeftoverPlanView:
                image = self.pauseKirghiz.twentyMixSaveTrashRopeLayout;
                break;
            case NearSlashFeetAccount:
            case RealLikePlateRegister:
                image = self.pauseKirghiz.cupParticlePlateTwoEngravedPub;
                break;
            case CapAllocatorMapFinishUnwrap:
                image = self.pauseKirghiz.argumentsAdoptUpdatePersianRareHundred;
                break;

case AboutAirVersionSendDensityQueue:
                image = self.pauseKirghiz.concludeTeacherOpenEstimateNorthModifier;
                break;
            case SumSoftnessStayBeganKilobytes:
                image = self.pauseKirghiz.talkMismatchFatOrnamentThe;
                break;
            default:
                image = self.pauseKirghiz.twentyMixSaveTrashRopeLayout;
                break;
        }
        
        NSArray *egg = @[who.wordTurnName ?: @"",image,who.fontSuchSignalingForSumTime];
        [dark addObject:egg];
    }
    
    
    NSArray *tensionEra = [dark sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double cat = [a[2] doubleValue];
        double six = [b[2] doubleValue];
        if (cat > six) {
            return NSOrderedAscending; 
        } else if (cat < six) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return tensionEra;
}

+ (CGSize)impactAllSpousesRestingVisitedDetectedSize {
    return CGSizeMake(self.pauseKirghiz.layoutCheckoutYouFilterAngleWidth, self.pauseKirghiz.friendNowLayoutFunnelDividerFax);
}

+ (UIColor *)domainNotColor{
    return [UIColor cellMildStopControlsDegradedPan:PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.domainNotColor?:self.pauseKirghiz.domainNotColor];
}

+ (UIColor *)panoramasColor{
    return [UIColor cellMildStopControlsDegradedPan:PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.panoramasColor?:self.pauseKirghiz.panoramasColor];
}

+ (UIColor *)ourTextMealColor {
    NSString *hex = PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.ourTextMealColor;
    return hex.desktopMiterRetProblemThumb ? [UIColor cellMildStopControlsDegradedPan:hex] : UIColor.whiteColor;
}

+ (UIColor *)ordinaryUplinkScanningClinicalIntegersColor{
    return [UIColor cellMildStopControlsDegradedPan:PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.ordinaryUplinkScanningClinicalIntegersColor?:self.pauseKirghiz.ordinaryUplinkScanningClinicalIntegersColor];
}

+ (NSString *)beganIndexingYouAirMetadataImage{
    NSString *image = PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.beganIndexingYouAirMetadataImage;
    return image.desktopMiterRetProblemThumb ? image : nil;
}

+ (NSString *)hourlyDescentKannadaIronMalayImage{
    NSString *image = PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.personalHerHelpersEscapesAdditiveFunction.hourlyDescentKannadaIronMalayImage;
    return image.desktopMiterRetProblemThumb ? image : nil;
}

+ (void)degreeDigitizedFrameRedoActualAction {
    if (PersonFillConfig.shared.onlyMoodHueStatus != FarBlindingSceneReceiverConverterGuide) {
        PersonFillConfig.shared.onlyMoodHueStatus = HellmanCalendarIncrementBusVortexLimit;
    }
}

+ (UIView *)directionView {
    if (PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.ignoresProductsFlipSlideBothEntry.desktopMiterRetProblemThumb) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.ignoresProductsFlipSlideBothEntry]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [ManWonInfo skinWireName];
        label.textColor = [self panoramasColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

+ (UIButton *)anchorsBaselineManNextMediumColor:(NSString *)title {

    XXGCapsuleButton *button = [XXGCapsuleButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self ourTextMealColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    
    button.layer.masksToBounds = YES;

    NSString *flattenDialog = [self hourlyDescentKannadaIronMalayImage];
    if (flattenDialog) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:flattenDialog]
                                                    options:0
                                                   progress:nil
                                                  completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
            if (image) {
                dispatch_async(dispatch_get_main_queue(), ^{
                    [button setBackgroundImage:image forState:UIControlStateNormal];
                    [button setBackgroundImage:[UIImage winNotLawStackColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage winNotLawStackColor:[self panoramasColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage winNotLawStackColor:[self panoramasColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage winNotLawStackColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)fileSmoothingTopRunPageYahoo:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (MidSpanModel *who in PersonFillConfig.shared.sceneFurlongsProtectedTopMeal.notMakeInsertionLanguageRemoveScripts) {
        UIView *button = [self editorsJobAdditionsChatSmoothSubgroups:who.shareBasicText
                                           menuBuiltColor:[UIColor cellMildStopControlsDegradedPan:who.joinIssuerColor]
                                                capSilent:[self dogRunExtrasSlideBadge:who]
                                           thumbnailRight:who.bedSuffix
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)dogRunExtrasSlideBadge:(MidSpanModel *)who {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t bodyToken;
    dispatch_once(&bodyToken, ^{
        map = @{
            
            self.pauseKirghiz.elderPanel    : self.pauseKirghiz.twentyMixSaveTrashRopeLayout,
            self.pauseKirghiz.fullSignBed   : self.pauseKirghiz.argumentsAdoptUpdatePersianRareHundred,
            self.pauseKirghiz.eggSawSexSnow : self.pauseKirghiz.cupParticlePlateTwoEngravedPub,

self.pauseKirghiz.defines       : self.pauseKirghiz.talkMismatchFatOrnamentThe,
            self.pauseKirghiz.depthFunStair : self.pauseKirghiz.concludeTeacherOpenEstimateNorthModifier,
            self.pauseKirghiz.curveAudit : self.pauseKirghiz.twentyMixSaveTrashRopeLayout
        };
    });
    if (who.rateSeePop.decibelPitch) {
        
        who.rateSeePop = map[who.bedSuffix];
    }
    return who.rateSeePop;
}

+ (UIView *)editorsJobAdditionsChatSmoothSubgroups:(NSString *)title
                      menuBuiltColor:(UIColor *)titleColor
                           capSilent:(NSString *)image
                      thumbnailRight:(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 mixSlidePanelHeightAsleep: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 intentIcelandicGaspSwipeBarName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self panoramasColor];
        [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 = [SkinEchoMen farsiSeeAssignQuechuaLengths: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)mixSlidePanelHeightAsleep:(NSString *)url
{
    NSString *seven =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",seven];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)nameSiteAngleDiscountsHelpAttachedCode {
    UITextField *textField = [self hourPopoverField:self.cubePrimeToken.signPolishEstimateRingBufferingOverrideCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)funPulseTiedConnectDimensionSub {
    UITextField *textField = [self hourPopoverField:self.cubePrimeToken.mobileRelayAttachLawWaiting isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)auditedReleaseDetectsUnwrapCardioidAccount {
    return [self hourPopoverField:self.cubePrimeToken.bitTagMidBand isSecure:NO];
}

+ (UITextField *)overwriteGenreExporterDeprecatePoliciesPassword:(BOOL)isNew {
    UITextField *textField = [self hourPopoverField:isNew?self.cubePrimeToken.removesTailSheetRecorderBus:self.cubePrimeToken.howCarExecOneKey isSecure:YES];
    [self goalTotalSubtitlesFunTreeMeanAnonymous:textField sheSize:CGSizeMake(SkinEchoMen.pauseKirghiz.zipPageQuiet, SkinEchoMen.pauseKirghiz.zipPageQuiet)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *saltImage = [UIImage intentIcelandicGaspSwipeBarName:self.pauseKirghiz.mixerLooseExtrasButtonDetector];
    UIImage *nordicImage = [UIImage intentIcelandicGaspSwipeBarName:self.pauseKirghiz.tooRaiseKoreanDetachingYard];
    rightButton.frame = CGRectMake(0, 0, SkinEchoMen.pauseKirghiz.zipPageQuiet, SkinEchoMen.pauseKirghiz.zipPageQuiet);
    [rightButton setImage:saltImage forState:UIControlStateNormal];
    [rightButton setImage:nordicImage forState:UIControlStateSelected];
    CGFloat malayalamOpt = (SkinEchoMen.pauseKirghiz.zipPageQuiet - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(malayalamOpt, malayalamOpt, malayalamOpt, malayalamOpt)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)hourPopoverField:(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 panoramasColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.pauseKirghiz.boundaryTool;
    
    textField.backgroundColor = [self beganIndexingYouAirMetadataImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self occlusionDigestStaticHallSameShearMark:textField sheSize:CGSizeMake(10, SkinEchoMen.pauseKirghiz.zipPageQuiet)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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