






#import "BurstPetite.h"
#import "NSString+ReloadPan.h"
#import "UIImageView+WebCache.h"
#import "DrivenInfo.h"
#import "UIColor+MenColor.h"
#import "UIImage+EggImage.h"
#import "Masonry.h"

#import "WorkAreWasConfig.h"
#import "SubSayManager.h"
#import "ArabicAwayChainNowOffsets.h"


@interface XXGCapsuleButton : UIButton
@end

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

static OutWetCacheToo *_setupScheduled = nil;
static HisTakeIts *_virtualSheet = nil;

@implementation BurstPetite

+ (OutWetCacheToo *)setupScheduled {
    if (!_setupScheduled) {
        _setupScheduled = [ArabicAwayChainNowOffsets headlineSearchThreadNibblesEncryptedSubtract:[OutWetCacheToo class]];
    }
    return _setupScheduled;
}

+ (HisTakeIts *)virtualSheet {
    if (!_virtualSheet) {
        _virtualSheet = [ArabicAwayChainNowOffsets syntheticDecryptIntensityAgeBikeExpect:[HisTakeIts class]];
    }
    return _virtualSheet;
}

+ (NSString *)reservedChargeOperateBlackLexicalName {
    return [SubSayManager ubiquityComputerClustersResponderAdvances].birthSexName;
}

+ (NSString *)readerEventualCyclingBondGuaraniToken {
    return [SubSayManager ubiquityComputerClustersResponderAdvances].pingRopeToken;
}

+ (CGFloat)streamedDeepMagicTableOpacity {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.determineNeverWalkKinIncluding.discarded?:self.virtualSheet.treeItsDueTwo;
}

+ (NSString *)validityFatStartingPromiseHeader {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.assetHyphen.wrapArmBag;
}

+ (NSString *)ductilityThousandMaleAboveAnchorIndent {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.determineNeverWalkKinIncluding.warpRingInsertionExpandSimple;
}

+ (CGFloat)sendAppleRunScannedCharacter {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.determineNeverWalkKinIncluding.includesFloaterMilesSobFound;
}
+ (BOOL)includesFloaterMilesSobFound {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.determineNeverWalkKinIncluding.includesFloaterMilesSobFound;
}

+ (NSString *)masterSplatUbiquityEjectRange {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.indexingSeek.busMinGramPull;
}
+ (NSString *)russianLoseAverageBagInsertion {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.indexingSeek.hitMoireRank;
}

+ (BOOL)ownSentVisibleEscapeCentral {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.burstCostRefinedKitArchivedSuperiorsBand;
}

+ (BOOL)thiaminDay {
    return WorkAreWasConfig.shared.subOutputPivotTempDetected.indexingSeek.thiaminDay;
}

+ (BOOL)queueReorderKilometerChallengeObservedRetry {
    return [WorkAreWasConfig shared].queueReorderKilometerChallengeObservedRetry;
}

+ (NSArray *)playbackDependentLowerElapsedAssamese {
    NSArray *linkBoundaryEarlyAdapterExpansion = [SubSayManager farAlarmDependentInsertionDefinePrepare];
    NSMutableArray *jump = [NSMutableArray arrayWithCapacity:linkBoundaryEarlyAdapterExpansion.count];
    
    for (BigWinKnowMax *obj in linkBoundaryEarlyAdapterExpansion) {
        NSString *image = self.virtualSheet.blobIcyOtherSelectorFourthChina;
        switch (obj.stepSelfType) {
            case DisplaysResultUnknownBordersMetric:
                image = self.virtualSheet.arrivalFocalHitDeliveryBusyYahoo;
                break;
            case FallbackFiberAccount:
            case StyleInteriorRegister:
                image = self.virtualSheet.blobIcyOtherSelectorFourthChina;
                break;
            case CancelsMapSignatureDecryptAlways:
                image = self.virtualSheet.rowWaitingRevealFatConstructMiddle;
                break;
                
case SawRelatedWeekQuoteParagraph:
                image = self.virtualSheet.clustersWhoUighurGeorgianOwn;
                break;
            case StringReleasedMusicianNetChildBar:
                image = self.virtualSheet.rollPreviewsSonStonePutCycling;
                break;

            default:
                image = self.virtualSheet.arrivalFocalHitDeliveryBusyYahoo;
                break;
        }
        
        NSArray *pub = @[obj.birthSexName ?: @"",image,obj.shakeBlobInterruptMeteringPasswordTime];
        [jump addObject:pub];
    }
    
    
    NSArray *funMasters = [jump sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double see = [a[2] doubleValue];
        double won = [b[2] doubleValue];
        if (see > won) {
            return NSOrderedAscending; 
        } else if (see < won) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return funMasters;
}

+ (CGSize)taggingScrolledQueryIndicatedLaterSoftSize {
    return CGSizeMake(self.virtualSheet.areEraScriptsRoomParserWidth, self.virtualSheet.coalesceCutLacrosseLacrosseParagraphPortrait);
}

+ (UIColor *)senseCaseColor{
    return [UIColor panOverlayCarRatingsCarriageDetail:WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.senseCaseColor?:self.virtualSheet.senseCaseColor];
}

+ (UIColor *)finalTurnColor{
    return [UIColor panOverlayCarRatingsCarriageDetail:WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.finalTurnColor?:self.virtualSheet.finalTurnColor];
}

+ (UIColor *)popBlendEraColor {
    NSString *hex = WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.popBlendEraColor;
    return hex.patternGraphicsRelativeAllocateMalay ? [UIColor panOverlayCarRatingsCarriageDetail:hex] : UIColor.whiteColor;
}

+ (UIColor *)catReplyCookieRearReceivesColor{
    return [UIColor panOverlayCarRatingsCarriageDetail:WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.catReplyCookieRearReceivesColor?:self.virtualSheet.catReplyCookieRearReceivesColor];
}

+ (NSString *)scaleBeganHelloStandardRegionImage{
    NSString *image = WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.scaleBeganHelloStandardRegionImage;
    return image.patternGraphicsRelativeAllocateMalay ? image : nil;
}

+ (NSString *)producesWhiteBoyfriendCarrierGlyphImage{
    NSString *image = WorkAreWasConfig.shared.subOutputPivotTempDetected.basicHealthClipBeenTeaspoonsSocial.producesWhiteBoyfriendCarrierGlyphImage;
    return image.patternGraphicsRelativeAllocateMalay ? image : nil;
}

+ (void)caffeineAlongMustMouseRetAction {
    if (WorkAreWasConfig.shared.minRecoveryStatus != CelticLocalityBleedTranslateSwahiliRhythm) {
        WorkAreWasConfig.shared.minRecoveryStatus = LawPersonalChatterUnifyVisitorWrestling;
    }
}

+ (UIView *)errorLockView {
    if (WorkAreWasConfig.shared.subOutputPivotTempDetected.constructListPrettyEarBrownFail.patternGraphicsRelativeAllocateMalay) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:WorkAreWasConfig.shared.subOutputPivotTempDetected.constructListPrettyEarBrownFail]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [DrivenInfo hexBlinkName];
        label.textColor = [self finalTurnColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

    NSString *changedCommit = [self producesWhiteBoyfriendCarrierGlyphImage];
    if (changedCommit) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:changedCommit]
                                                    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 reverseReturnsColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage reverseReturnsColor:[self finalTurnColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage reverseReturnsColor:[self finalTurnColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage reverseReturnsColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)combinedSlovenianCatUtilitySliceDetects:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (EggCharModel *obj in WorkAreWasConfig.shared.subOutputPivotTempDetected.trainingAirborneTooPrepScrollInterlace) {
        UIView *button = [self socketTapMapCursiveBagRule:obj.skinAddYouText
                                           redirectsColor:[UIColor panOverlayCarRatingsCarriageDetail:obj.herSpaSendColor]
                                                capKazakh:[self artTripleTheFlexibleEither:obj]
                                           forWinMusicYet:obj.heartbeat
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)artTripleTheFlexibleEither:(EggCharModel *)obj {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t pinkToken;
    dispatch_once(&pinkToken, ^{
        map = @{
            
            self.virtualSheet.locallyTap    : self.virtualSheet.arrivalFocalHitDeliveryBusyYahoo,
            self.virtualSheet.tailMapWeek   : self.virtualSheet.rowWaitingRevealFatConstructMiddle,
            self.virtualSheet.leakyHerGenre : self.virtualSheet.blobIcyOtherSelectorFourthChina,
self.virtualSheet.prefers       : self.virtualSheet.clustersWhoUighurGeorgianOwn,
            self.virtualSheet.foodHybridBlob: self.virtualSheet.rollPreviewsSonStonePutCycling,

        };
    });
    if (obj.wrapArmBag.napTapExpect) {
        
        obj.wrapArmBag = map[obj.heartbeat];
    }
    return obj.wrapArmBag;
}

+ (UIView *)socketTapMapCursiveBagRule:(NSString *)title
                      redirectsColor:(UIColor *)titleColor
                           capKazakh:(NSString *)image
                      forWinMusicYet:(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 blurHintDemandBuffersMin: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 *cutImage = [[UIImage lawMoodPointArteryQueryingName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self finalTurnColor];
        [button setImage:cutImage 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 = [BurstPetite computerMetricStepsonHumidityBoldface: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)blurHintDemandBuffersMin:(NSString *)url
{
    NSString *retry =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",retry];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)manganeseRectifiedMenuMildChangingIndicesCode {
    UITextField *textField = [self putSequenceField:self.setupScheduled.rematchLeaveSpecialDegreeTightSayCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)busyTemporalTheBurnPreventsRed {
    UITextField *textField = [self putSequenceField:self.setupScheduled.mostBinBigUnwindDefined isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)legibleHardClippingIncrementHeartbeatAccount {
    return [self putSequenceField:self.setupScheduled.bedKnowEarCap isSecure:NO];
}

+ (UITextField *)weekdayPaymentsReleaseSortThirteenPassword:(BOOL)isNew {
    UITextField *textField = [self putSequenceField:isNew?self.setupScheduled.herMarginsSpaMonthExtra:self.setupScheduled.reviewIgnoredKey isSecure:YES];
    [self behaviorBinSindhiReasonUnloadPriceStopped:textField eggSize:CGSizeMake(BurstPetite.virtualSheet.nineCreation, BurstPetite.virtualSheet.nineCreation)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *hallImage = [UIImage lawMoodPointArteryQueryingName:self.virtualSheet.weightedEdgaHintCreatedVirtual];
    UIImage *wasMayImage = [UIImage lawMoodPointArteryQueryingName:self.virtualSheet.quotesKeepScreenDanceCalendar];
    rightButton.frame = CGRectMake(0, 0, BurstPetite.virtualSheet.nineCreation, BurstPetite.virtualSheet.nineCreation);
    [rightButton setImage:hallImage forState:UIControlStateNormal];
    [rightButton setImage:wasMayImage forState:UIControlStateSelected];
    CGFloat saveMenPanel = (BurstPetite.virtualSheet.nineCreation - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(saveMenPanel, saveMenPanel, saveMenPanel, saveMenPanel)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)putSequenceField:(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 finalTurnColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.virtualSheet.fourteenMeal;
    
    textField.backgroundColor = [self scaleBeganHelloStandardRegionImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self vitalCathedralDenseChamberSubsetMenDirectory:textField eggSize:CGSizeMake(10, BurstPetite.virtualSheet.nineCreation)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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