






#import "MouthOunces.h"
#import "NSString+TenIndoor.h"
#import "UIImageView+WebCache.h"
#import "YouTopInfo.h"
#import "UIColor+YouColor.h"
#import "UIImage+OutImage.h"
#import "Masonry.h"

#import "BagSpecifyConfig.h"
#import "OffHueManager.h"
#import "ResultsInfinityFutureFiveZoom.h"


@interface XXGCapsuleButton : UIButton
@end

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

static FilmRingTarget *_chatRingCharge = nil;
static EdgaPolicy *_logTwelveEnd = nil;

@implementation MouthOunces

+ (FilmRingTarget *)chatRingCharge {
    if (!_chatRingCharge) {
        _chatRingCharge = [ResultsInfinityFutureFiveZoom smallHyphensGigahertzGroupedKashmiriItalic:[FilmRingTarget class]];
    }
    return _chatRingCharge;
}

+ (EdgaPolicy *)logTwelveEnd {
    if (!_logTwelveEnd) {
        _logTwelveEnd = [ResultsInfinityFutureFiveZoom repairUndefinedDenseHundredAirNordic:[EdgaPolicy class]];
    }
    return _logTwelveEnd;
}

+ (NSString *)beaconRedShowersShePrecisionName {
    return [OffHueManager gesturesRaiseCharPacketAttached].bluePartName;
}

+ (NSString *)causeForbiddenPredictedFamilyErrorToken {
    return [OffHueManager gesturesRaiseCharPacketAttached].yahooEarToken;
}

+ (CGFloat)decomposeDetectionEstablishMaySlider {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.kerningImpactReportingLibrarySilenced.sugarLine?:self.logTwelveEnd.midScannedArt;
}

+ (NSString *)policyCutReferenceTakeReadout {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.burnMaleKey.netClosest;
}

+ (NSString *)malayalamRelativeUnwindForceObtainLigature {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.kerningImpactReportingLibrarySilenced.blobAnchorsSodiumAdjustingAssembly;
}

+ (CGFloat)accessedRankedLockingAllocateListener {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.kerningImpactReportingLibrarySilenced.starDominantLegalDigitHungarian;
}
+ (BOOL)starDominantLegalDigitHungarian {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.kerningImpactReportingLibrarySilenced.starDominantLegalDigitHungarian;
}

+ (NSString *)entitiesTryForMandatorySaw {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.oxygenSeeAnd.bookFunManBend;
}
+ (NSString *)relayYellowDayManagedPhoto {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.oxygenSeeAnd.retryZeroIts;
}

+ (BOOL)velocityPlanarUsedLoadLambda {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.semaphoreThumbMirroredPopShePrimaryExpansion;
}

+ (BOOL)jobLibrary {
    return BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.oxygenSeeAnd.jobLibrary;
}

+ (BOOL)prominentNumeratorProposedKelvinEmailSaw {
    return [BagSpecifyConfig shared].prominentNumeratorProposedKelvinEmailSaw;
}

+ (NSArray *)smilePinSnowDescentCharacter {
    NSArray *ratingsRetDiscardsSilentDutch = [OffHueManager whileCacheRaceSexWhoHierarchy];
    NSMutableArray *most = [NSMutableArray arrayWithCapacity:ratingsRetDiscardsSilentDutch.count];
    
    for (IndexesDetail *fit in ratingsRetDiscardsSilentDutch) {
        NSString *image = self.logTwelveEnd.enclosingOutProtocolsOlympusRemainderNonce;
        switch (fit.crossSeeType) {
            case ProximityEnterDuplexDaughterUnwind:
                image = self.logTwelveEnd.partialFindExportingParsingCatRedefined;
                break;
            case UnchangedWalkAccount:
            case CurlInputLeadRegister:
                image = self.logTwelveEnd.enclosingOutProtocolsOlympusRemainderNonce;
                break;
            case RedPrivilegeAnyAudioPortal:
                image = self.logTwelveEnd.ownershipSegmentedSpanishHisDaughterObscures;
                break;

case FunBusyWithStackedWeightEnergy:
                image = self.logTwelveEnd.somaliGolfPerformedAdaptiveIgnoreGray;
                break;
            case WetSymbolKernelsReductionSmile:
                image = self.logTwelveEnd.primariesMolarPipeAchievedHas;
                break;
            default:
                image = self.logTwelveEnd.partialFindExportingParsingCatRedefined;
                break;
        }
        
        NSArray *fix = @[fit.bluePartName ?: @"",image,fit.markupLiterOnlineRankBridgingTime];
        [most addObject:fix];
    }
    
    
    NSArray *slabArabic = [most sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double bed = [a[2] doubleValue];
        double sun = [b[2] doubleValue];
        if (bed > sun) {
            return NSOrderedAscending; 
        } else if (bed < sun) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return slabArabic;
}

+ (CGSize)farsiSinCoulombsFoldRelayEulerSize {
    return CGSizeMake(self.logTwelveEnd.buttonDetectedPencilInternalIdleWidth, self.logTwelveEnd.needExactnessPresentedListenerAwayTemp);
}

+ (UIColor *)windowSunColor{
    return [UIColor reclaimReplacedNeverFarExpectedEnds:BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.windowSunColor?:self.logTwelveEnd.windowSunColor];
}

+ (UIColor *)syntheticColor{
    return [UIColor reclaimReplacedNeverFarExpectedEnds:BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.syntheticColor?:self.logTwelveEnd.syntheticColor];
}

+ (UIColor *)numericLiftColor {
    NSString *hex = BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.numericLiftColor;
    return hex.toggleNowDrizzleSettlingHeadphone ? [UIColor reclaimReplacedNeverFarExpectedEnds:hex] : UIColor.whiteColor;
}

+ (UIColor *)accountWhileLikeReadyStrictlyColor{
    return [UIColor reclaimReplacedNeverFarExpectedEnds:BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.accountWhileLikeReadyStrictlyColor?:self.logTwelveEnd.accountWhileLikeReadyStrictlyColor];
}

+ (NSString *)anyMenGoalKerningHandoverImage{
    NSString *image = BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.anyMenGoalKerningHandoverImage;
    return image.toggleNowDrizzleSettlingHeadphone ? image : nil;
}

+ (NSString *)joinFriendsJobLookSecurityImage{
    NSString *image = BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.linearlyBlindingEldestVisibleStructureLook.joinFriendsJobLookSecurityImage;
    return image.toggleNowDrizzleSettlingHeadphone ? image : nil;
}

+ (void)factoryConflictsMouthUsesSerbianAction {
    if (BagSpecifyConfig.shared.overrideMayStatus != ExitsLimitExerciseMirroredAngleRender) {
        BagSpecifyConfig.shared.overrideMayStatus = BlinkFarEstablishRevisionWinBit;
    }
}

+ (UIView *)factorHowView {
    if (BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.stickyBagProtocolsPeriodFaceContinued.toggleNowDrizzleSettlingHeadphone) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.stickyBagProtocolsPeriodFaceContinued]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [YouTopInfo strategyName];
        label.textColor = [self syntheticColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

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

    return button;
}

+ (NSArray *)negativeUppercaseDevicePetiteUnwindKin:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (CorruptModel *fit in BagSpecifyConfig.shared.estimatedStartupCitySubfamilyCenters.bundlesImmediateCollapseWasLoudRaw) {
        UIView *button = [self stickyNetscapeEraDarkerReportingArabic:fit.footerFlatText
                                           goldenEggColor:[UIColor reclaimReplacedNeverFarExpectedEnds:fit.bedBagLoopColor]
                                                collector:[self driveLoopsShuffleVeryAlongside:fit]
                                           quoteEnumerate:fit.walkQuery
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)driveLoopsShuffleVeryAlongside:(CorruptModel *)fit {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t homeToken;
    dispatch_once(&homeToken, ^{
        map = @{
            
            self.logTwelveEnd.soloistSub    : self.logTwelveEnd.partialFindExportingParsingCatRedefined,
            self.logTwelveEnd.pongScripts   : self.logTwelveEnd.ownershipSegmentedSpanishHisDaughterObscures,
            self.logTwelveEnd.armTopSendGet : self.logTwelveEnd.enclosingOutProtocolsOlympusRemainderNonce,

self.logTwelveEnd.idleCut       : self.logTwelveEnd.primariesMolarPipeAchievedHas,
            self.logTwelveEnd.menIrishLater : self.logTwelveEnd.somaliGolfPerformedAdaptiveIgnoreGray,
            self.logTwelveEnd.oneFreeWas : self.logTwelveEnd.partialFindExportingParsingCatRedefined
        };
    });
    if (fit.netClosest.prologNapPen) {
        
        fit.netClosest = map[fit.walkQuery];
    }
    return fit.netClosest;
}

+ (UIView *)stickyNetscapeEraDarkerReportingArabic:(NSString *)title
                      goldenEggColor:(UIColor *)titleColor
                           collector:(NSString *)image
                      quoteEnumerate:(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 momentarySortExclusionStoodParallel: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 *wasImage = [[UIImage exclusionButOnlineTailProposalName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self syntheticColor];
        [button setImage:wasImage 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 = [MouthOunces chestAudiencesBlendIncrementReply: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)momentarySortExclusionStoodParallel:(NSString *)url
{
    NSString *trust =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",trust];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)diagnoseHisChatLooperFourthSmileCode {
    UITextField *textField = [self badgeSingleField:self.chatRingCharge.mantissaStickyCanonPlanePutHeavyCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)anyDynamicClaimUploadTreeMap {
    UITextField *textField = [self badgeSingleField:self.chatRingCharge.aliveHandlingClosestStrideWet isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)bigEmergencyFoldWaitingPersonalAccount {
    return [self badgeSingleField:self.chatRingCharge.swappedChrome isSecure:NO];
}

+ (UITextField *)hurricaneRelationPostalPreventsBreakPassword:(BOOL)isNew {
    UITextField *textField = [self badgeSingleField:isNew?self.chatRingCharge.slovenianGatheringEighteenGeneratesShear:self.chatRingCharge.capPathMaySobKey isSecure:YES];
    [self hostPictureAmountDigestIllRawGoogle:textField addSize:CGSizeMake(MouthOunces.logTwelveEnd.leftSmallTop, MouthOunces.logTwelveEnd.leftSmallTop)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *pongImage = [UIImage exclusionButOnlineTailProposalName:self.logTwelveEnd.priceSleetRunIgnoresSupport];
    UIImage *offsetImage = [UIImage exclusionButOnlineTailProposalName:self.logTwelveEnd.snapSharpnessThousandPanSearching];
    rightButton.frame = CGRectMake(0, 0, MouthOunces.logTwelveEnd.leftSmallTop, MouthOunces.logTwelveEnd.leftSmallTop);
    [rightButton setImage:pongImage forState:UIControlStateNormal];
    [rightButton setImage:offsetImage forState:UIControlStateSelected];
    CGFloat standWaxTurn = (MouthOunces.logTwelveEnd.leftSmallTop - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(standWaxTurn, standWaxTurn, standWaxTurn, standWaxTurn)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)badgeSingleField:(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 syntheticColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.logTwelveEnd.zipVerifySay;
    
    textField.backgroundColor = [self anyMenGoalKerningHandoverImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self parameterIcyCapacityAccordingBoxSpecifiedRet:textField addSize:CGSizeMake(10, MouthOunces.logTwelveEnd.leftSmallTop)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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