






#import "SkinMeanYet.h"
#import "NSString+ExitsText.h"
#import "UIImageView+WebCache.h"
#import "YouAddInfo.h"
#import "UIColor+CanColor.h"
#import "UIImage+WonImage.h"
#import "Masonry.h"

#import "BringEvictConfig.h"
#import "MetricManager.h"
#import "PasswordsAnswerGroupRepublicEllipsis.h"

static DecayAutoSeven *_faxHoldTakePin = nil;
static LeaseHours *_reloadRawDay = nil;

@implementation SkinMeanYet

+ (DecayAutoSeven *)faxHoldTakePin {
    if (!_faxHoldTakePin) {
        _faxHoldTakePin = [PasswordsAnswerGroupRepublicEllipsis ageEpsilonPastOffsetsDeveloperHard:[DecayAutoSeven class]];
    }
    return _faxHoldTakePin;
}

+ (LeaseHours *)reloadRawDay {
    if (!_reloadRawDay) {
        _reloadRawDay = [PasswordsAnswerGroupRepublicEllipsis exitsDeferredSleepDrumPreservedCyrillic:[LeaseHours class]];
    }
    return _reloadRawDay;
}

+ (NSString *)curvePlugHistoryUnorderedTelephonyName {
    return [MetricManager distortedHindiGuaraniAskUndone].sheetPenName;
}

+ (NSString *)ropeCentralsSeasonTextualIgnoringToken {
    return [MetricManager distortedHindiGuaraniAskUndone].wordHashToken;
}

+ (CGFloat)unsafeDailyDateCapturedAbove {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.stillRequiringStrongBirthYear.modernOff?:self.reloadRawDay.hisTrackEarly;
}

+ (NSString *)snowAreaDuplexTwitterCascade {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.maySaltCard.strictGolf;
}

+ (NSString *)startupSumSucceedAmbiguousProminentBulgarian {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.stillRequiringStrongBirthYear.bufferingAlongEnterPinAsk;
}

+ (CGFloat)readOurShortcutsDeltaMacintosh {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.stillRequiringStrongBirthYear.backCloudyFlashFadeFourth;
}
+ (BOOL)backCloudyFlashFadeFourth {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.stillRequiringStrongBirthYear.backCloudyFlashFadeFourth;
}

+ (NSString *)chatFailingOverflowHeadsetAre {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.daysAskOther.optThatDateCap;
}
+ (NSString *)eraBankOddHigherAvailable {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.daysAskOther.wrappersHand;
}

+ (BOOL)clinicalNegotiateVisitAmbiguousHand {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.fragmentsRateBestRangeHandlerDirectoryFixing;
}

+ (BOOL)dryMayLess {
    return BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.daysAskOther.dryMayLess;
}

+ (BOOL)gramEncipherKitSunHexTriple {
    return [BringEvictConfig shared].gramEncipherKitSunHexTriple;
}

+ (NSArray *)positionPutTabularFarsiStale {
    NSArray *shareIncomingScrollsTeamOne = [MetricManager quitQuantizeVitalBordersWillConnected];
    NSMutableArray *fair = [NSMutableArray arrayWithCapacity:shareIncomingScrollsTeamOne.count];
    
    for (PanTrapWasFax *out in shareIncomingScrollsTeamOne) {
        NSString *image = self.reloadRawDay.renameAuthorityUnorderedPrimaryOutDistance;
        switch (out.recoveryType) {
            case FathomsIntensityOutlineInstancesRestoring:
                image = self.reloadRawDay.roundRatingsSeekNineInvitePath;
                break;
            case ReceiveBackupAccount:
            case RoutePushOverRegister:
                image = self.reloadRawDay.renameAuthorityUnorderedPrimaryOutDistance;
                break;
            case PassiveGenreSeekingPermanentAny:
                image = self.reloadRawDay.challengeConvertReachedPostNanogramsReady;
                break;
                
case UserRelevanceStakeSchemePasswords:
                image = self.reloadRawDay.certPagerSeeTraverseMany;
                break;
            case PastRenewingFillValueCoastTen:
                image = self.reloadRawDay.preserveMindfulBuilderResizingPetiteOutdoor;
                break;

            default:
                image = self.reloadRawDay.roundRatingsSeekNineInvitePath;
                break;
        }
        
        NSArray *ten = @[out.sheetPenName ?: @"",image,out.achievedFactorProfilesWasPrintedTime];
        [fair addObject:ten];
    }
    
    
    NSArray *quoteThree = [fair sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double car = [a[2] doubleValue];
        double job = [b[2] doubleValue];
        if (car > job) {
            return NSOrderedAscending; 
        } else if (car < job) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return quoteThree;
}

+ (CGSize)yiddishLandscapeNegotiateBadRestoredOptSize {
    return CGSizeMake(self.reloadRawDay.gestureCropBoundAlarmMethodWidth, self.reloadRawDay.echoGopherWinDebuggerReferentProvides);
}

+ (UIColor *)rotateWonColor{
    return [UIColor petiteWalkingApplierDeltaAvailBin:BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.openFiveReadoutContrastHashPositions.rotateWonColor?:self.reloadRawDay.rotateWonColor];
}

+ (UIColor *)configureColor{
    return [UIColor petiteWalkingApplierDeltaAvailBin:BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.openFiveReadoutContrastHashPositions.configureColor?:self.reloadRawDay.configureColor];
}

+ (UIColor *)busSliceRecentlyCalciumFitColor{
    return [UIColor petiteWalkingApplierDeltaAvailBin:BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.openFiveReadoutContrastHashPositions.busSliceRecentlyCalciumFitColor?:self.reloadRawDay.busSliceRecentlyCalciumFitColor];
}

+ (void)parserBikeAdditionsExpandHeightAction {
    if (BringEvictConfig.shared.cupAgeBloodStatus != RedoKurdishCharacterClangUnderSeeking) {
        BringEvictConfig.shared.cupAgeBloodStatus = PrematureClockFlightsFrequencyNominallySun;
    }
}

+ (UIView *)uptimeHitView {
    if (BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.zoneBroadcastShearLazyWelshIteration.cursorWetButtonLanguageInterlace) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.zoneBroadcastShearLazyWelshIteration]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [YouAddInfo leaseSexName];
        label.textColor = [self configureColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

+ (UIButton *)floaterJobAggregateImpactMattingColor:(NSString *)title {
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage quickOldOurAgeColor:[self configureColor]] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage quickOldOurAgeColor:[[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 *)redirectsProducingEndLargestBoxShe:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (TapsRowModel *out in BringEvictConfig.shared.loadingBlinkExchangeSleepEncrypted.tryDecimalAppendingAggregateHandlingDaughter) {
        UIView *button = [self ruleSignalingBlurWeightsLimitedRunning:out.recentTextText
                                           sideOtherColor:[UIColor petiteWalkingApplierDeltaAvailBin:out.lawCelsiusColor]
                                                rawCustom:[self originsSawCautionStreamedVitality:out]
                                           reportsMeasure:out.busFourth
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)originsSawCautionStreamedVitality:(TapsRowModel *)out {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t sortToken;
    dispatch_once(&sortToken, ^{
        map = @{
            
            self.reloadRawDay.panBoxMode    : self.reloadRawDay.roundRatingsSeekNineInvitePath,
            self.reloadRawDay.mileCleared   : self.reloadRawDay.challengeConvertReachedPostNanogramsReady,
            self.reloadRawDay.rotorRestMood : self.reloadRawDay.renameAuthorityUnorderedPrimaryOutDistance,
self.reloadRawDay.weekYou       : self.reloadRawDay.certPagerSeeTraverseMany,
            self.reloadRawDay.makeSeasonCell: self.reloadRawDay.preserveMindfulBuilderResizingPetiteOutdoor,

        };
    });
    if (out.strictGolf.fourApplyMax) {
        
        out.strictGolf = map[out.busFourth];
    }
    return out.strictGolf;
}

+ (UIView *)ruleSignalingBlurWeightsLimitedRunning:(NSString *)title
                      sideOtherColor:(UIColor *)titleColor
                           rawCustom:(NSString *)image
                      reportsMeasure:(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 forMaxBracketedSplitArray: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 *wayImage = [[UIImage planeBarLawChangingPerformsName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self configureColor];
        [button setImage:wayImage 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 = [SkinMeanYet orderingReliableOddKindGeometry: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)forMaxBracketedSplitArray:(NSString *)url
{
    NSString *solid =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",solid];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)oddMaterialReviewExtensionExtrasTrademarkCode {
    UITextField *textField = [self growHowFadeField:self.faxHoldTakePin.stringCervicalLoadUseWirelessCutCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)mixerNeutralRelayDirtyRingWho {
    UITextField *textField = [self growHowFadeField:self.faxHoldTakePin.refreshedWeekdayAdobeMandarinChunky isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)partiallyOvulationEstimatedUnloadMediumAccount {
    return [self growHowFadeField:self.faxHoldTakePin.clockwiseStar isSecure:NO];
}

+ (UITextField *)trackTapChunkyOriginAudioPassword:(BOOL)isNew {
    UITextField *textField = [self growHowFadeField:isNew?self.faxHoldTakePin.thiaminUserWetRadixEye:self.faxHoldTakePin.minorMayStakeKey isSecure:YES];
    [self virtualTiedMaxSubtitlesCellphoneTelephotoPrepare:textField tabSize:CGSizeMake(SkinMeanYet.reloadRawDay.alphabetCert, SkinMeanYet.reloadRawDay.alphabetCert)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *footImage = [UIImage planeBarLawChangingPerformsName:self.reloadRawDay.rollbackPeakRealIcyDistant];
    UIImage *motionImage = [UIImage planeBarLawChangingPerformsName:self.reloadRawDay.burnRevokedRevealNodeAdd];
    rightButton.frame = CGRectMake(0, 0, SkinMeanYet.reloadRawDay.alphabetCert, SkinMeanYet.reloadRawDay.alphabetCert);
    [rightButton setImage:footImage forState:UIControlStateNormal];
    [rightButton setImage:motionImage forState:UIControlStateSelected];
    CGFloat beaconArabic = (SkinMeanYet.reloadRawDay.alphabetCert - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(beaconArabic, beaconArabic, beaconArabic, beaconArabic)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)growHowFadeField:(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 configureColor].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 glucoseShapeAskItsCheckoutBoldfaceHelp:textField tabSize:CGSizeMake(10, SkinMeanYet.reloadRawDay.alphabetCert)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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