








#import <AppLovinSDK/AppLovinSDK.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>

@interface LogicalFiberButtonNetCancelledTickets : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate,MAAdDelegate,MAAdRevenueDelegate>

@property (nonatomic, strong) MARewardedAd *meanPublishConstantsSwedishBlob;
@property (nonatomic, strong) MAInterstitialAd *leapNumeratorMapWrappersDiscounts;
@property (nonatomic, assign) NSInteger delayEntitledDetectsDarkerMounted;

@property (nonatomic, copy) NSString *mixTraveledData;

@property (nonatomic, copy) void (^topTooRelated)(BOOL result);

@property (nonatomic, copy) void (^bringPluralLogYoungerModuleJson)(BOOL result, NSDictionary *canJson);

@property (nonatomic, copy) void (^filtersTallPluralVariablesSpokenDocument)(BOOL result);

@property (nonatomic, copy) void (^adjustClimbedHangButForceCharacterJson)(BOOL result, NSDictionary *canJson);

@property (nonatomic, copy) void (^strokedPendingGatherWithChromaBank)(NSDictionary *sonInfo);

@end

@implementation LogicalFiberButtonNetCancelledTickets

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t selfToken;
    dispatch_once(&selfToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

+ (NSString *)mayInvisible {
    return ALSdk.version;
}

- (void)showMediationDebugger {
    [[ALSdk shared] showMediationDebugger];
}

- (void)consumesHandDisorderObjectOptionalSame:(void(^)(NSDictionary *sonInfo))callback {
    self.strokedPendingGatherWithChromaBank = callback;
}


- (void)sunInsertedLeaseDiastolicMileCheckedKey:(NSString *)xxpk_maxkey revisionsLinearlySlovenianCallIll:(NSString *)revisionsLinearlySlovenianCallIll everyPingGesturesOptimizeQuoteUser:(NSString *)everyPingGesturesOptimizeQuoteUser fusionSobDesignCalculateMin:(NSArray *)fusionSobDesignCalculateMin {
    
    
    
    Class son = NSClassFromString(@"FBAdSettings");
    if (son) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [son performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [son performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *pongFrenchNepaliWhoZooming = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (fusionSobDesignCalculateMin) {
            builder.testDeviceAdvertisingIdentifiers = fusionSobDesignCalculateMin;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:pongFrenchNepaliWhoZooming completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self interiorMultiplyVitalityYetCanadianClangCreated:revisionsLinearlySlovenianCallIll];
        if (everyPingGesturesOptimizeQuoteUser.length > 0) {
            [self pubHyphensAlpineDiscountAgentSixteenQuitCap:everyPingGesturesOptimizeQuoteUser];
        }
    }];
}

- (void)interiorMultiplyVitalityYetCanadianClangCreated:(NSString *)revisionsLinearlySlovenianCallIll
{
    self.meanPublishConstantsSwedishBlob = [MARewardedAd sharedWithAdUnitIdentifier:revisionsLinearlySlovenianCallIll];
    self.meanPublishConstantsSwedishBlob.delegate = self;
    self.meanPublishConstantsSwedishBlob.revenueDelegate = self;

    
    [self.meanPublishConstantsSwedishBlob loadAd];
}

- (void)pubHyphensAlpineDiscountAgentSixteenQuitCap:(NSString *)everyPingGesturesOptimizeQuoteUser
{
    self.leapNumeratorMapWrappersDiscounts = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:everyPingGesturesOptimizeQuoteUser];
    self.leapNumeratorMapWrappersDiscounts.delegate = self;
    self.leapNumeratorMapWrappersDiscounts.revenueDelegate = self;

    
    [self.leapNumeratorMapWrappersDiscounts loadAd];
}


- (void)oldForbiddenFaeroeseSpellAscentClippingData:(nullable NSString *)mixTraveledData brandFinalJson:(void(^)(BOOL result, NSDictionary *canJson))brandFinalJson {
    self.bringPluralLogYoungerModuleJson = brandFinalJson;
    self.mixTraveledData = mixTraveledData;
    if ( [self.meanPublishConstantsSwedishBlob isReady]) {
        [self.meanPublishConstantsSwedishBlob showAdForPlacement:nil customData:mixTraveledData];
    }else {
        brandFinalJson(NO,nil);
    }
}

- (void)oldForbiddenFaeroeseSpellAscentClippingData:(nullable NSString *)mixTraveledData sentinel:(void(^)(BOOL result))sentinel {
    self.topTooRelated = sentinel;
    self.mixTraveledData = mixTraveledData;
    if ( [self.meanPublishConstantsSwedishBlob isReady]) {
        [self.meanPublishConstantsSwedishBlob showAdForPlacement:nil customData:mixTraveledData];
    }else {
        sentinel(NO);
    }
}

- (void)cyclingPromisedFlatStopHoursImpactMenuData:(nullable NSString *)mixTraveledData sentinel:(void(^)(BOOL result))sentinel {
    self.filtersTallPluralVariablesSpokenDocument = sentinel;
    self.mixTraveledData = mixTraveledData;
    if ([self.leapNumeratorMapWrappersDiscounts isReady]) {
        [self.leapNumeratorMapWrappersDiscounts showAd];
    } else {
        [self.leapNumeratorMapWrappersDiscounts loadAd];
        if (sentinel) {
            sentinel(NO);
        }
    }
}

- (void)cyclingPromisedFlatStopHoursImpactMenuData:(nullable NSString *)mixTraveledData brandFinalJson:(void(^)(BOOL result, NSDictionary *canJson))brandFinalJson {
    self.adjustClimbedHangButForceCharacterJson = brandFinalJson;
    self.mixTraveledData = mixTraveledData;
    if ([self.leapNumeratorMapWrappersDiscounts isReady]) {
        [self.leapNumeratorMapWrappersDiscounts showAd];
    } else {
        [self.leapNumeratorMapWrappersDiscounts loadAd];
        if (brandFinalJson) {
            brandFinalJson(NO, nil);
        }
    }
}

- (void)dogYellowDailyTagPanoramas:(const char *)name error:(NSString *)error {
    
}

- (NSDictionary *)syntheticHandlerExpansionDirectFeed:(MAAd *)ad {
    NSMutableDictionary *canJson = [NSMutableDictionary dictionary];
    
    canJson[@"currency"] = @"USD";
    canJson[@"revenue"] = @(ad.revenue);
    
    if (ad.format.label.length > 0) {
        canJson[@"format"] = ad.format.label;
    }
    
    return [canJson copy];
}

- (void)mixerDemandArtistInteriorTemporalEarly:(MAAd *)ad eventType:(NSString *)eventType {
    if (!self.strokedPendingGatherWithChromaBank) {
        return;
    }

    NSString *adType = @"UNKNOWN";
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        adType = @"REWARD";
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        adType = @"INTERSTITIAL";
    }

    NSDictionary *sonInfo = @{
        @"ads_platform": @"APPLOVIN",
        @"ad_unit_id": ad.adUnitIdentifier ?: @"",
        @"event_type": eventType,  
        @"ad_type": adType,
        @"revenue": @(ad.revenue).stringValue ?: @"0"
    };

    self.strokedPendingGatherWithChromaBank(sonInfo);
}


- (void)didLoadAd:(nonnull MAAd *)ad {
    
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
    
    
    self.delayEntitledDetectsDarkerMounted = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {

    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:error.message];

    

    self.delayEntitledDetectsDarkerMounted++;
    NSInteger countNap = pow(2, MIN(6, self.delayEntitledDetectsDarkerMounted));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, countNap * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.meanPublishConstantsSwedishBlob.adUnitIdentifier]) {
            [self.meanPublishConstantsSwedishBlob loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.leapNumeratorMapWrappersDiscounts.adUnitIdentifier]) {
            [self.leapNumeratorMapWrappersDiscounts loadAd];
        }
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.meanPublishConstantsSwedishBlob loadAd];
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.leapNumeratorMapWrappersDiscounts loadAd];

        
        if (self.filtersTallPluralVariablesSpokenDocument) {
            self.filtersTallPluralVariablesSpokenDocument(YES);
        }

        if (self.adjustClimbedHangButForceCharacterJson) {
            NSDictionary *canJson = [self syntheticHandlerExpansionDirectFeed:ad];
            self.adjustClimbedHangButForceCharacterJson(YES, canJson);
        }
    }
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:error.message];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.meanPublishConstantsSwedishBlob loadAd];

        if (self.topTooRelated) {
            self.topTooRelated(NO);
        }

        if (self.bringPluralLogYoungerModuleJson) {
            self.bringPluralLogYoungerModuleJson(NO, nil);
        }
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.leapNumeratorMapWrappersDiscounts loadAd];

        if (self.filtersTallPluralVariablesSpokenDocument) {
            self.filtersTallPluralVariablesSpokenDocument(NO);
        }

        if (self.adjustClimbedHangButForceCharacterJson) {
            self.adjustClimbedHangButForceCharacterJson(NO, nil);
        }
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
    [self mixerDemandArtistInteriorTemporalEarly:ad eventType:@"1"];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
    [self mixerDemandArtistInteriorTemporalEarly:ad eventType:@"2"];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];

    if (self.topTooRelated) {
        self.topTooRelated(YES);
    }

    if (self.bringPluralLogYoungerModuleJson) {
        NSDictionary *canJson = [self syntheticHandlerExpansionDirectFeed:ad];
        self.bringPluralLogYoungerModuleJson(YES, canJson);
    }
}


- (void)didCollapseAd:(nonnull MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
}

- (void)didExpandAd:(nonnull MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
}


- (void)didPayRevenueForAd:(MAAd *)ad {
    [self dogYellowDailyTagPanoramas: __PRETTY_FUNCTION__ error:nil];
    [self mixerDemandArtistInteriorTemporalEarly:ad eventType:@"3"];
}

@end
