/* Metro module 7298; source: actions/native/GPlayActionCreators.tsx; dependencies: [5, 27, 7255, 1226, 5140, 661, 5141, 1880, 482, 3, 5143, 6847, 3839, 694, 3815, 3817, 4647, 1244, 683, 507, 2] */ import Logger from '../../modules/debug/Logger.tsx'; /* Metro dependency 3 */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */ import IAPStoreAndroid from '../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */ import * as ConstantsModule2 from '../../Constants.tsx'; /* Metro dependency 661 */ import * as PremiumConstantsModule from '../../modules/premium/PremiumConstants.tsx'; /* Metro dependency 1880 */ import * as ConstantsModule3 from '../../modules/gplay/native/Constants.tsx'; /* Metro dependency 5141 */ import * as GPlayAnalyticsStoreModule from '../../modules/gplay/native/GPlayAnalyticsStore.tsx'; /* Metro dependency 7255 */ function _fun58891(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:6, offset: 0x016d9a2b, size: 626 bytes, params: 8, frame: 23 const env0_0 = require; const _arrayLikeToArray_58894 = function(a0, a1) { var r0; var r1; var r2; var value3; var length; var value5; var value = undefined; var value2 = value == null; reducibleJoin2: while (true) { if (value2) { r0 = value2; break reducibleJoin2; } value3 = value > a0.length; r0 = value3; break reducibleJoin2; } reducibleJoin4: while (true) { if (r0) { length = a0.length; r1 = length; break reducibleJoin4; } r1 = value; break reducibleJoin4; } value = (0, global.Array)(r1); var value4 = 0; if (value4 < r1) { r2 = value4; reducibleLoop5: while (true) { value[r2] = a0[r2]; value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value5 < r1) { r2 = value5; continue reducibleLoop5; } break reducibleLoop5; } } return value; }; const fetchDesktopSubscriptionSkus = function() { return _fetchDesktopSubscriptionSkus.apply(this, arguments); }; const withGPlayBillingErrorHandling2 = withGPlayBillingErrorHandling; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = Module00005; const NativeModules = (ReactNativeModule).NativeModules; const constantsModule = ConstantsModule2; const env0_8 = constantsModule.AnalyticEvents; const env0_9 = constantsModule.Endpoints; const env0_10 = constantsModule.PriceSetAssignmentPurchaseTypes; const constantsModule2 = ConstantsModule3; const env0_11 = constantsModule2.GPlayBillingResult; const env0_12 = constantsModule2.GPlaySkusType; const env0_16 = NativeModules.BillingManager; const value8 = new (Logger)('GPlayActionCreators'); const value10 = withGPlayBillingErrorHandling2(value(_fun58913), true); const value11 = withGPlayBillingErrorHandling2(value(_fun58915), true); const value12 = withGPlayBillingErrorHandling2(value(_fun58917)); const value13 = _fun58918(); value = withGPlayBillingErrorHandling2(value(_fun58923), true); (FileImportTrackerModule).fileFinishedImporting('actions/native/GPlayActionCreators.tsx'); exports.loadSubscriptionSkus = value10; exports.loadInAppSkus = value11; exports.loadSkus = value12; exports.loadUserCountry = function() { return _loadUserCountry.apply(this, arguments); }; exports.purchase = value13; exports.subscribe = function() { return _subscribe.apply(this, arguments); }; exports.verifyPurchase = function() { return _verifyPurchase.apply(this, arguments); }; exports.sendPaymentCompleteAnalytics = function(a0) { var property = useGPlayAnalyticsStore.getState().analyticsByProductId; property = property[a0.productId]; if (property != null) { importDefault(dependencyMap[18]).track(AnalyticEvents.PAYMENT_FLOW_COMPLETED, property); deleteGPlayAnalytics(a0.productId); } }; exports.updatePendingDowngrade = updatePendingDowngrade; exports.downgradeSubscription = function({purchaseToken, subscriptionId, newSubscriptionSkuId}) { var HTTP = require(dependencyMap[19]).HTTP; return HTTP.post({url: Endpoints.DOWNGRADE_SUBSCRIPTION, body: {purchase_token: purchaseToken, subscription_id: subscriptionId, subscription_sku_id: newSubscriptionSkuId}, rejectWithError: false}); }; exports.getUserCountry = value; function _createForOfIteratorHelperLoose_58892(a0, a1) { // fn#58892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:441, offset: 0x016d9c9d, size: 370 bytes, params: 3, frame: 20 var r6; var r9; var r5; var value3; var regexp; const env0_0 = a0; const Symbol = global.Symbol; let value = typeof Symbol !== 'undefined'; let r1 = value && a0[global.Symbol.iterator]; r1 = !r1 ? a0['@@iterator'] : r1; if (r1) { value = r1.call(a0); return value.next.bind(value); } const Array = global.Array; if (Array.isArray(a0)) { if (r1) { } return _fun58893; } value = undefined; if (a0) { if (typeof a0 === 'string') { value = _arrayLikeToArray_58894(a0, value); r5 = value; } else { value3 = ({}).toString.call(a0).slice(8, -1); r6 = value3 === 'Object' && a0.constructor; r9 = r6 ? a0.constructor.name : value3; if (r9 === 'Map') { r6 = global.Array.from(a0); } else if (r9 === 'Set') { r6 = global.Array.from(a0); } else if (r9 === 'Arguments') { value = _arrayLikeToArray_58894(a0, value); r6 = value; } else { regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); if (regexp.test(r9)) { value = _arrayLikeToArray_58894(a0, value); r6 = value; } else { r6 = value; } } r5 = r6; } } else { r5 = value; } if (r5) { if (r5) { } return _fun58893; } const TypeError = global.TypeError; throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); function _fun58893() { // fn#58893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:1012, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5 return env0_1 >= env0_0.length ? {done: true} : {done: false, value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]}; } } function getPlanIdForProduct(a0, a1) { // fn#58895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:1412, offset: 0x016d9e0f, size: 120 bytes, params: 3, frame: 13 var value; var property; var error; if (a1) { try { value = environment; property = dependencyMap[10]; value = require(property); value = value.getPlanIdForGift(a0); } catch (error) { return null; } return value; } value = undefined; const AppStorePremiumProductIdsToPremiumBundledItems = require(dependencyMap[10]).AppStorePremiumProductIdsToPremiumBundledItems; property = AppStorePremiumProductIdsToPremiumBundledItems[a0]; const value2 = null; const basePlanId = value2 == property ? value : property.basePlanId; return value2 != basePlanId ? basePlanId : value2; } function _fetchDesktopSubscriptionSkus() { // fn#58897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:1736, offset: 0x016d9e87, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun58899).apply(this, arguments); async function _fun58899(a0) { // fn#58899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:1817, offset: 0x016d9ec9, size: 1248 bytes, params: 2, frame: 81 var r41; var r40; var r6; var skuId; var r11; var r8; var r19; var country_prices; var r56; var r65; var r59; var country_code; var name; var r62; var r60; var r69; var DEFAULT; var value10; var value11; var property; var value12; var NONE; var value13; var add; var value14; var value18; var value19; var value20; var value21; var id; var value22; var value23; var value29; var warn; var property2; var prices; var property3; var property4; var currency; var toLowerCase; var value30; var amount; var push; var object; var value31; var toFixed; var value32; var HermesInternal; var concat; var value33; var CountryCodes; var US; var value34; let value = a1; const value2 = a2; if (false) { return undefined; } const value5 = undefined; reducibleJoin3: while (true) { if (value !== value5) { r41 = value; break reducibleJoin3; } value = environment.__proto__.__proto__; DEFAULT = env2_10.DEFAULT; r41 = DEFAULT; break reducibleJoin3; } reducibleJoin5: while (true) { if (value2 !== value5) { r40 = value2; break reducibleJoin5; } value = false; r40 = value; break reducibleJoin5; } await value5; if (false) { return undefined; } const items3 = []; const Set = global.Set; let set = new Set(); const object2 = {}; const value8 = env2_21(a0); const value9 = value8(); let done = value9.done; if (!done) { r6 = value9; reducibleLoop8: while (true) { value10 = r6.value; value11 = env2_23(value10, r40); reducibleJoin15: while (true) { if (value11 == null) { break reducibleJoin15; } property = env2_14[value11]; reducibleJoin11: while (true) { if (property == null) { skuId = value5; break reducibleJoin11; } skuId = property.skuId; break reducibleJoin11; } value12 = skuId != null; reducibleJoin13: while (true) { if (value12) { skuId = property.skuId; NONE = env2_13.NONE; value13 = skuId !== NONE; r11 = value13; break reducibleJoin13; } r11 = value12; break reducibleJoin13; } if (r11) { add = set.add; skuId = property.skuId; Reflect.apply(add, set, [skuId]); object2[value10] = value11; break reducibleJoin15; } break reducibleJoin15; } value14 = value8(); done = value14.done; if (done) { break reducibleLoop8; } r6 = value14; continue reducibleLoop8; } } const object6 = {}; let binding = env2_21; const value15 = env2_0(env2_2[11]); const fetchSubscriptionPlansBySKUs = value15.fetchSubscriptionPlansBySKUs; const items2 = []; arraySpread(items2, set, 0, undefined); await Reflect.apply(fetchSubscriptionPlansBySKUs, value15, [items2]); if (false) { return undefined; } set = binding(set); const value17 = set(); done = value17.done; if (!done) { r6 = value17; reducibleLoop19: while (true) { binding = env2_21; value18 = r6.value; value19 = binding(value18); value20 = value19(); done = value20.done; if (!done) { r8 = value20; reducibleLoop20: while (true) { value21 = r8.value; id = value21.id; object6[id] = value21; value22 = value19(); done = value22.done; if (done) { break reducibleLoop20; } r8 = value22; continue reducibleLoop20; } } value23 = set(); done = value23.done; if (done) { break reducibleLoop19; } r6 = value23; continue reducibleLoop19; } } set = env2_21(a0); const value24 = set(); done = value24.done; const value25 = 'inapp'; const value26 = 'subs'; const value27 = ''; if (!done) { r19 = value24; reducibleLoop23: while (true) { value29 = r19.value; property = object2[value29]; if (property != null) { property2 = object6[property]; if (property2 != null) { prices = property2.prices; reducibleJoin30: while (true) { if (prices == null) { country_prices = value5; break reducibleJoin30; } property3 = prices[r41]; if (property3 == null) { country_prices = value5; break reducibleJoin30; } country_prices = property3.country_prices; break reducibleJoin30; } reducibleJoin33: while (true) { if (country_prices == null) { r56 = value5; break reducibleJoin33; } prices = country_prices.prices; if (prices == null) { r56 = value5; break reducibleJoin33; } property4 = prices[0]; r56 = property4; break reducibleJoin33; } if (r56 != null) { currency = r56.currency; reducibleJoin37: while (true) { if (currency == null) { r65 = value5; break reducibleJoin37; } toLowerCase = currency.toLowerCase; value30 = Reflect.apply(toLowerCase, currency, []); r65 = value30; break reducibleJoin37; } r59 = r65 ?? 'usd'; amount = r56.amount; property = env2_14[property]; push = items3.push; object = {identifier: value29, price: amount}; currency = r56.currency; object.currencySymbol = currency; object.currencyCode = r59; currency = r56.currency; reducibleJoin40: while (true) { if (currency != null) { currency = r56.currency; value31 = amount / 100; toFixed = value31.toFixed; value32 = Reflect.apply(toFixed, value31, [2]); HermesInternal = global.HermesInternal; concat = HermesInternal.concat; value33 = value27 + currency + ' ' + value32; r59 = value33; break reducibleJoin40; } r59 = value27; break reducibleJoin40; } object.priceString = r59; reducibleJoin42: while (true) { if (country_prices == null) { country_code = value5; break reducibleJoin42; } country_code = country_prices.country_code; break reducibleJoin42; } reducibleJoin44: while (true) { if (country_code != null) { r59 = country_code; break reducibleJoin44; } binding = env2_0; CountryCodes = binding(env2_2[12]).CountryCodes; US = CountryCodes.US; r59 = US; break reducibleJoin44; } object.countryCode = r59; object.downloadable = false; reducibleJoin46: while (true) { if (property == null) { name = value5; break reducibleJoin46; } name = property.name; break reducibleJoin46; } reducibleJoin48: while (true) { if (name != null) { r62 = name; break reducibleJoin48; } name = property2.name; r62 = name; break reducibleJoin48; } r59 = r62 ?? value27; object.description = r59; reducibleJoin51: while (true) { if (property == null) { name = value5; break reducibleJoin51; } name = property.name; break reducibleJoin51; } reducibleJoin53: while (true) { if (name != null) { r60 = name; break reducibleJoin53; } name = property2.name; r60 = name; break reducibleJoin53; } r69 = r60 ?? value27; object.title = r69; r69 = r40 ? value25 : value26; object.type = r69; object.subscriptionOffers = []; Reflect.apply(push, items3, [object]); } else { binding = env2_17; warn = binding.warn; Reflect.apply(warn, binding, ['[fetchDesktopSubscriptionSkus] No price info found', {productId: value29, planId: property, priceSetAssignmentType: r41}]); } } else { binding = env2_17; warn = binding.warn; Reflect.apply(warn, binding, ['[fetchDesktopSubscriptionSkus] Plan not found', {productId: value29, planId: property}]); } } else { binding = env2_17; warn = binding.warn; Reflect.apply(warn, binding, ['[fetchDesktopSubscriptionSkus] No plan ID found', {productId: value29}]); } value34 = set(); done = value34.done; if (done) { break reducibleLoop23; } r19 = value34; continue reducibleLoop23; } } return items3; } } function _loadUserCountry() { // fn#58900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:4601, offset: 0x016da3a9, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun58902).apply(this, arguments); function* _fun58902() { // fn#58902, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:4656, offset: 0x016da3e2, size: 86 bytes, params: 1, frame: 15 if (true) { value = environment.__proto__.__proto__; yield env2_20(); var value3 = undefined; if (false) { return value3; } value = env2_1(env2_2[13]); value.dispatch({type: 'GPLAY_SET_USER_COUNTRY', countryCode: value3}); } } } function _subscribe() { // fn#58903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:5220, offset: 0x016da438, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun58905).apply(this, arguments); function* _fun58905(a0, a1, a2, a3, a4) { // fn#58905, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:5263, offset: 0x016da471, size: 369 bytes, params: 6, frame: 28 var r11; var binding; var subscribe; var value4; var value5; var value6; var error; var value7; var captureBillingException; var object; var value8; var binding2; var show; var binding3; var intl; var string; var t; var LFFx5G; var track; var GPLAY_PURCHASE_FAILED; var message; if (true) { value = a2; try { binding = env2_16; } catch (error) { binding = env2_0; value7 = binding(env2_2[15]); captureBillingException = value7.captureBillingException; value8 = ''; r11 = value ?? value8; Reflect.apply(captureBillingException, value7, [error, {tags: {productId: a0, oldProductId: r11}}]); binding = env2_1; binding2 = env2_2; value = binding(binding2[16]); show = value.show; object = {}; binding3 = env2_0; intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; LFFx5G = t.LFFx5G; object.body = Reflect.apply(string, intl, [LFFx5G]); Reflect.apply(show, value, [object]); value = binding(binding2[18]); track = value.track; GPLAY_PURCHASE_FAILED = env2_8.GPLAY_PURCHASE_FAILED; message = error.message; Reflect.apply(track, value, [GPLAY_PURCHASE_FAILED, {location: 'subscribe', product_id: a0, offer_id: a4, error: message}]); return undefined; } try { subscribe = binding.subscribe; } catch (error) { binding = env2_0; value7 = binding(env2_2[15]); captureBillingException = value7.captureBillingException; value8 = ''; r11 = value ?? value8; Reflect.apply(captureBillingException, value7, [error, {tags: {productId: a0, oldProductId: r11}}]); binding = env2_1; binding2 = env2_2; value = binding(binding2[16]); show = value.show; object = {}; binding3 = env2_0; intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; LFFx5G = t.LFFx5G; object.body = Reflect.apply(string, intl, [LFFx5G]); Reflect.apply(show, value, [object]); value = binding(binding2[18]); track = value.track; GPLAY_PURCHASE_FAILED = env2_8.GPLAY_PURCHASE_FAILED; message = error.message; Reflect.apply(track, value, [GPLAY_PURCHASE_FAILED, {location: 'subscribe', product_id: a0, offer_id: a4, error: message}]); return undefined; } try { value4 = Reflect.apply(subscribe, binding, [a0, a1, value, a3, a4]); } catch (error) { binding = env2_0; value7 = binding(env2_2[15]); captureBillingException = value7.captureBillingException; value8 = ''; r11 = value ?? value8; Reflect.apply(captureBillingException, value7, [error, {tags: {productId: a0, oldProductId: r11}}]); binding = env2_1; binding2 = env2_2; value = binding(binding2[16]); show = value.show; object = {}; binding3 = env2_0; intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; LFFx5G = t.LFFx5G; object.body = Reflect.apply(string, intl, [LFFx5G]); Reflect.apply(show, value, [object]); value = binding(binding2[18]); track = value.track; GPLAY_PURCHASE_FAILED = env2_8.GPLAY_PURCHASE_FAILED; message = error.message; Reflect.apply(track, value, [GPLAY_PURCHASE_FAILED, {location: 'subscribe', product_id: a0, offer_id: a4, error: message}]); return undefined; } yield value4; try { value5 = undefined; value6 = false; } catch (error) { binding = env2_0; value7 = binding(env2_2[15]); captureBillingException = value7.captureBillingException; value8 = ''; r11 = value ?? value8; Reflect.apply(captureBillingException, value7, [error, {tags: {productId: a0, oldProductId: r11}}]); binding = env2_1; binding2 = env2_2; value = binding(binding2[16]); show = value.show; object = {}; binding3 = env2_0; intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding3(binding2[17]).intl; string = intl.string; t = binding3(binding2[17]).t; LFFx5G = t.LFFx5G; object.body = Reflect.apply(string, intl, [LFFx5G]); Reflect.apply(show, value, [object]); value = binding(binding2[18]); track = value.track; GPLAY_PURCHASE_FAILED = env2_8.GPLAY_PURCHASE_FAILED; message = error.message; Reflect.apply(track, value, [GPLAY_PURCHASE_FAILED, {location: 'subscribe', product_id: a0, offer_id: a4, error: message}]); return undefined; } if (value6) { return value5; } } } } function _verifyPurchase() { // fn#58906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:5655, offset: 0x016da5e2, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun58908).apply(this, arguments); function* _fun58908(a0, a1) { // fn#58908, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:5708, offset: 0x016da61b, size: 626 bytes, params: 3, frame: 28 var r18; var r14; var r15; var value9; var track; var GIFT_INFO_OPTIONS_MISSING; var object; var binding2; var property2; var value10; var HTTP; var post; var VERIFY_PURCHASE; var object2; var purchaseToken; var packageName; var object3; var value11; var value12; var value13; var value14; var binding3; var property3; var value15; var PAYMENT_FLOW_COMPLETED; var body; var error; var value16; var captureBillingException; var value17; var PAYMENT_FLOW_FAILED; var GOOGLE; if (false) { return undefined; } value = environment.__proto__.__proto__; let binding = env2_5; const getState = binding.getState; const analyticsByProductId = Reflect.apply(getState, binding, []).analyticsByProductId; let productId = a0.productId; const property = analyticsByProductId[productId]; const id = env2_6.getId(); const SubscriptionProductIds = env2_0(env2_2[10]).SubscriptionProductIds; const value4 = SubscriptionProductIds.includes(a0.productId); const value5 = !value4; const value6 = null; productId = a0.productId; if (value4) { r14 = value6; r15 = productId; } else { r14 = productId; r15 = value6; } if ((value4 ? value5 : value6 != a1) && value6 == a1.gift_style) { binding = env2_1; value9 = binding(env2_2[18]); track = value9.track; GIFT_INFO_OPTIONS_MISSING = env2_8.GIFT_INFO_OPTIONS_MISSING; productId = a0.productId; Reflect.apply(track, value9, [GIFT_INFO_OPTIONS_MISSING, {source: 'verifyPurchase', sku_id: productId}]); } try { binding = env2_0; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding2 = env2_2; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { property2 = binding2[19]; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { value10 = binding(property2); } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { HTTP = value10.HTTP; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { post = HTTP.post; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object = {}; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding = env2_9; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { VERIFY_PURCHASE = binding.VERIFY_PURCHASE; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object.url = VERIFY_PURCHASE; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2 = {}; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { purchaseToken = a0.purchaseToken; } catch (error) { binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.purchase_token = purchaseToken; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.user_id = id; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { packageName = a0.packageName; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.package_name = packageName; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.subscription_sku_id = r15; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.one_time_purchase_sku_id = r14; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.gift_info_options = a1; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object3 = {}; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object3.consume_on_validate = true; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object2.one_time_purchase_options = object3; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object.body = object2; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { object.rejectWithError = false; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { value11 = Reflect.apply(post, HTTP, [object]); } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } yield value11; try { value12 = undefined; value13 = false; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } if (value13) { return value12; } try { value14 = value6 == property; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } if (!(value14 || value5)) { try { binding = env2_1; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding3 = env2_2; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { property3 = binding3[18]; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { value15 = binding(property3); } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { track = value15.track; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding = env2_8; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { PAYMENT_FLOW_COMPLETED = binding.PAYMENT_FLOW_COMPLETED; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { Reflect.apply(track, value15, [PAYMENT_FLOW_COMPLETED, property]); } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding = env2_4; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { productId = a0.productId; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } try { binding(productId); } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } } try { body = value12.body; } catch (error) { r18 = purchaseToken; binding = env2_0; value16 = binding(env2_2[15]); captureBillingException = value16.captureBillingException; productId = a0.productId; Reflect.apply(captureBillingException, value16, [error, {tags: {productId: productId}}]); if (value6 == property) { throw error; } binding = env2_1; value17 = binding(env2_2[18]); track = value17.track; PAYMENT_FLOW_FAILED = env2_8.PAYMENT_FLOW_FAILED; object = {}; copyDataProperties(object, property, r18); GOOGLE = env2_15.GOOGLE; object['payment_gateway'] = GOOGLE; Reflect.apply(track, value17, [PAYMENT_FLOW_FAILED, object]); throw error; } return body; } } function withGPlayBillingErrorHandling(a0) { // fn#58909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:7223, offset: 0x016da88d, size: 43 bytes, params: 2, frame: 12 const value = a1; const env0_0 = a0; const env0_1 = value !== undefined ? value : false; return env0_3(_fun58911); async function _fun58911(a0) { // fn#58911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:7280, offset: 0x016da8ca, size: 477 bytes, params: 2, frame: 26 var code; var r9; var items2; var value7; var error; var SERVICE_DISCONNECTED; var SERVICE_TIMEOUT; var SERVICE_UNAVAILABLE; var BILLING_UNAVAILABLE; var FEATURE_NOT_SUPPORTED; var BILLING_CLIENT_NOT_READY; var map; var String; var value8; var includes; var value9; var message; var value10; var value11; var binding; var Math; var value12; if (false) { return undefined; } value = copyRestArgs(0, undefined); const value3 = undefined; await value3; if (false) { return undefined; } try { } catch (error) { value = environment.__proto__.__proto__; SERVICE_DISCONNECTED = env2_11.SERVICE_DISCONNECTED; items2 = [SERVICE_DISCONNECTED]; SERVICE_TIMEOUT = env2_11.SERVICE_TIMEOUT; items2[1] = SERVICE_TIMEOUT; SERVICE_UNAVAILABLE = env2_11.SERVICE_UNAVAILABLE; items2[2] = SERVICE_UNAVAILABLE; BILLING_UNAVAILABLE = env2_11.BILLING_UNAVAILABLE; items2[3] = BILLING_UNAVAILABLE; FEATURE_NOT_SUPPORTED = env2_11.FEATURE_NOT_SUPPORTED; items2[4] = FEATURE_NOT_SUPPORTED; BILLING_CLIENT_NOT_READY = env2_11.BILLING_CLIENT_NOT_READY; items2[5] = BILLING_CLIENT_NOT_READY; map = items2.map; String = global.String; value8 = Reflect.apply(map, items2, [String]); includes = value8.includes; code = error == null ? value3 : error.code; value9 = Reflect.apply(includes, value8, [code]); if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value10 = message.includes('max attempts exceeded'); r9 = value10; } } if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value11 = message.includes('returned null'); r9 = value11; } } if (value9) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } if (importDefault) { throw error; } return value3; } try { items2 = []; } catch (error) { value = environment.__proto__.__proto__; SERVICE_DISCONNECTED = env2_11.SERVICE_DISCONNECTED; items2 = [SERVICE_DISCONNECTED]; SERVICE_TIMEOUT = env2_11.SERVICE_TIMEOUT; items2[1] = SERVICE_TIMEOUT; SERVICE_UNAVAILABLE = env2_11.SERVICE_UNAVAILABLE; items2[2] = SERVICE_UNAVAILABLE; BILLING_UNAVAILABLE = env2_11.BILLING_UNAVAILABLE; items2[3] = BILLING_UNAVAILABLE; FEATURE_NOT_SUPPORTED = env2_11.FEATURE_NOT_SUPPORTED; items2[4] = FEATURE_NOT_SUPPORTED; BILLING_CLIENT_NOT_READY = env2_11.BILLING_CLIENT_NOT_READY; items2[5] = BILLING_CLIENT_NOT_READY; map = items2.map; String = global.String; value8 = Reflect.apply(map, items2, [String]); includes = value8.includes; code = error == null ? value3 : error.code; value9 = Reflect.apply(includes, value8, [code]); if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value10 = message.includes('max attempts exceeded'); r9 = value10; } } if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value11 = message.includes('returned null'); r9 = value11; } } if (value9) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } if (importDefault) { throw error; } return value3; } try { arraySpread(items2, value, 0, undefined); } catch (error) { value = environment.__proto__.__proto__; SERVICE_DISCONNECTED = env2_11.SERVICE_DISCONNECTED; items2 = [SERVICE_DISCONNECTED]; SERVICE_TIMEOUT = env2_11.SERVICE_TIMEOUT; items2[1] = SERVICE_TIMEOUT; SERVICE_UNAVAILABLE = env2_11.SERVICE_UNAVAILABLE; items2[2] = SERVICE_UNAVAILABLE; BILLING_UNAVAILABLE = env2_11.BILLING_UNAVAILABLE; items2[3] = BILLING_UNAVAILABLE; FEATURE_NOT_SUPPORTED = env2_11.FEATURE_NOT_SUPPORTED; items2[4] = FEATURE_NOT_SUPPORTED; BILLING_CLIENT_NOT_READY = env2_11.BILLING_CLIENT_NOT_READY; items2[5] = BILLING_CLIENT_NOT_READY; map = items2.map; String = global.String; value8 = Reflect.apply(map, items2, [String]); includes = value8.includes; code = error == null ? value3 : error.code; value9 = Reflect.apply(includes, value8, [code]); if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value10 = message.includes('max attempts exceeded'); r9 = value10; } } if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value11 = message.includes('returned null'); r9 = value11; } } if (value9) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } if (importDefault) { throw error; } return value3; } try { value = apply(require, items2, value3, undefined); } catch (error) { value = environment.__proto__.__proto__; SERVICE_DISCONNECTED = env2_11.SERVICE_DISCONNECTED; items2 = [SERVICE_DISCONNECTED]; SERVICE_TIMEOUT = env2_11.SERVICE_TIMEOUT; items2[1] = SERVICE_TIMEOUT; SERVICE_UNAVAILABLE = env2_11.SERVICE_UNAVAILABLE; items2[2] = SERVICE_UNAVAILABLE; BILLING_UNAVAILABLE = env2_11.BILLING_UNAVAILABLE; items2[3] = BILLING_UNAVAILABLE; FEATURE_NOT_SUPPORTED = env2_11.FEATURE_NOT_SUPPORTED; items2[4] = FEATURE_NOT_SUPPORTED; BILLING_CLIENT_NOT_READY = env2_11.BILLING_CLIENT_NOT_READY; items2[5] = BILLING_CLIENT_NOT_READY; map = items2.map; String = global.String; value8 = Reflect.apply(map, items2, [String]); includes = value8.includes; code = error == null ? value3 : error.code; value9 = Reflect.apply(includes, value8, [code]); if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value10 = message.includes('max attempts exceeded'); r9 = value10; } } if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value11 = message.includes('returned null'); r9 = value11; } } if (value9) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } if (importDefault) { throw error; } return value3; } await value; try { value = undefined; value7 = false; } catch (error) { value = environment.__proto__.__proto__; SERVICE_DISCONNECTED = env2_11.SERVICE_DISCONNECTED; items2 = [SERVICE_DISCONNECTED]; SERVICE_TIMEOUT = env2_11.SERVICE_TIMEOUT; items2[1] = SERVICE_TIMEOUT; SERVICE_UNAVAILABLE = env2_11.SERVICE_UNAVAILABLE; items2[2] = SERVICE_UNAVAILABLE; BILLING_UNAVAILABLE = env2_11.BILLING_UNAVAILABLE; items2[3] = BILLING_UNAVAILABLE; FEATURE_NOT_SUPPORTED = env2_11.FEATURE_NOT_SUPPORTED; items2[4] = FEATURE_NOT_SUPPORTED; BILLING_CLIENT_NOT_READY = env2_11.BILLING_CLIENT_NOT_READY; items2[5] = BILLING_CLIENT_NOT_READY; map = items2.map; String = global.String; value8 = Reflect.apply(map, items2, [String]); includes = value8.includes; code = error == null ? value3 : error.code; value9 = Reflect.apply(includes, value8, [code]); if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value10 = message.includes('max attempts exceeded'); r9 = value10; } } if (error == null) { r9 = value3; } else { message = error.message; if (message == null) { r9 = value3; } else { value11 = message.includes('returned null'); r9 = value11; } } if (value9) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else if (r9 === true) { Math = global.Math; value12 = Math.random(); if (value12 < 0.01) { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } } else { binding = env2_0; value = binding(env2_2[15]); value.captureBillingException(error); } if (importDefault) { throw error; } return value3; } return value7 ? value : value; } } async function _fun58913() { // fn#58913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:3383, offset: 0x016daab9, size: 369 bytes, params: 1, frame: 22 var r4; var binding; var binding2; var property; var value6; var isGooglePlayBillingSupported; var isGooglePlayBillingSupported2; var value7; var value8; var value9; var getSubscriptionSkus; var value10; var value11; var value12; var binding3; var value13; var items2; var SUBSCRIPTION; var error; let value = a0; if (false) { return undefined; } const r1 = value !== undefined ? value : env1_0(env1_2[10]).SubscriptionProductIds; await undefined; if (false) { return undefined; } if (r1 == null) { return []; } if (r1.length === 0) { return []; } value = environment.__proto__; const value5 = env1_1(env1_2[13]); let object = {type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_START'}; value5.dispatch(object); try { binding = env1_0; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { binding2 = env1_2; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { property = binding2[14]; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { value6 = binding(property); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { isGooglePlayBillingSupported = value6.isGooglePlayBillingSupported; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { isGooglePlayBillingSupported2 = Reflect.apply(isGooglePlayBillingSupported, value6, []); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } if (isGooglePlayBillingSupported2) { try { binding = env1_16; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { getSubscriptionSkus = binding.getSubscriptionSkus; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { value10 = Reflect.apply(getSubscriptionSkus, binding, [r1]); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } await value10; try { value11 = undefined; value12 = false; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } if (value12) { return value11; } r4 = value11; try { binding = env1_1; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { binding3 = env1_2; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { property = binding3[13]; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { value13 = binding(property); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { dispatch = value13.dispatch; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object = {}; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.type = 'GPLAY_SUBSCRIPTION_SKUS_LOADED'; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { items2 = []; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { arraySpread(items2, r4, 0, 0); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.skus = items2; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { binding = env1_12; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { SUBSCRIPTION = binding.SUBSCRIPTION; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.skusType = SUBSCRIPTION; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { Reflect.apply(dispatch, value13, [object]); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } } else { try { binding = env1_24; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { value7 = binding(r1); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } await value7; try { value8 = undefined; value9 = false; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } if (value9) { return value8; } r4 = value8; try { binding = env1_1; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { binding3 = env1_2; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { property = binding3[13]; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { value13 = binding(property); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { dispatch = value13.dispatch; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object = {}; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.type = 'GPLAY_SUBSCRIPTION_SKUS_LOADED'; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { items2 = []; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { arraySpread(items2, r4, 0, 0); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.skus = items2; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { binding = env1_12; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { SUBSCRIPTION = binding.SUBSCRIPTION; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { object.skusType = SUBSCRIPTION; } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } try { Reflect.apply(dispatch, value13, [object]); } catch (error) { binding = env1_1; value = binding(env1_2[13]); value.dispatch({type: 'GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED'}); throw error; } } return r4; } async function _fun58915() { // fn#58915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:3878, offset: 0x016dac3c, size: 539 bytes, params: 1, frame: 25 var r14; var r1; var r9; var r7; var r4; var value; var value2; var value3; var binding; var IAPProductIds; var value4; var length; var value5; var dispatch; var object; var binding2; var property; var value6; var isGooglePlayBillingSupported; var isGooglePlayBillingSupported2; var value7; var value8; var done; var value9; var binding3; var value10; var getPlanIdForGift; var push; var error; var value11; var value12; var binding4; var GIFT; var value13; var Promise; var resolve; var value14; var value15; var value16; var getIAPSkus; var value17; var value18; var value19; var binding5; var value20; var items2; var IN_APP; exceptionLanding87: while (true) { value = a0; value2 = undefined; value3 = false; if (value3) { return value2; } reducibleJoin3: while (true) { if (value !== undefined) { r1 = value; break reducibleJoin3; } value = environment.__proto__; binding = env1_0; IAPProductIds = binding(env1_2[10]).IAPProductIds; r1 = IAPProductIds; break reducibleJoin3; } await undefined; value = undefined; value4 = false; if (value4) { return value; } if (r1 != null) { length = r1.length; reducibleJoin88: while (true) { if (length !== 0) { value = environment.__proto__; binding = env1_1; value5 = binding(env1_2[13]); dispatch = value5.dispatch; object = {type: 'GPLAY_FETCH_IN_APP_SKUS_START'}; Reflect.apply(dispatch, value5, [object]); try { binding = env1_0; } catch (error) { break exceptionLanding87; } try { binding2 = env1_2; } catch (error) { break exceptionLanding87; } try { property = binding2[14]; } catch (error) { break exceptionLanding87; } try { value6 = binding(property); } catch (error) { break exceptionLanding87; } try { isGooglePlayBillingSupported = value6.isGooglePlayBillingSupported; } catch (error) { break exceptionLanding87; } try { isGooglePlayBillingSupported2 = Reflect.apply(isGooglePlayBillingSupported, value6, []); } catch (error) { break exceptionLanding87; } if (isGooglePlayBillingSupported2) { try { binding = env1_16; } catch (error) { break exceptionLanding87; } try { getIAPSkus = binding.getIAPSkus; } catch (error) { break exceptionLanding87; } try { value17 = Reflect.apply(getIAPSkus, binding, [r1]); } catch (error) { break exceptionLanding87; } await value17; try { value18 = undefined; value19 = false; } catch (error) { break exceptionLanding87; } reducibleJoin69: while (true) { if (value19) { return value18; } r4 = value18; break reducibleJoin69; } } else { try { object = []; } catch (error) { break exceptionLanding87; } try { binding = env1_21; } catch (error) { break exceptionLanding87; } try { value7 = binding(r1); } catch (error) { break exceptionLanding87; } try { value8 = value7(); } catch (error) { break exceptionLanding87; } try { done = value8.done; } catch (error) { break exceptionLanding87; } if (!done) { r9 = value8; reducibleLoop25: while (true) { try { value9 = r9.value; } catch (error) { break exceptionLanding87; } reducibleJoin28: while (true) { reduciblePort39: while (true) { exceptionLanding38: while (true) { try { try { binding = env1_0; } catch (error) { break exceptionLanding38; } } catch (error) { break exceptionLanding87; } break reducibleJoin28; } break reduciblePort39; } try { value11 = value7(); } catch (error) { break exceptionLanding87; } try { done = value11.done; } catch (error) { break exceptionLanding87; } if (done) { break reducibleLoop25; } r9 = value11; continue reducibleLoop25; } try { try { binding3 = env1_2; } catch (error) { break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { property = binding3[10]; } catch (error) { break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { value10 = binding(property); } catch (error) { break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { getPlanIdForGift = value10.getPlanIdForGift; } catch (error) { break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { Reflect.apply(getPlanIdForGift, value10, [value9]); } catch (error) { r14 = value9; break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { push = object.push; } catch (error) { r14 = value9; break exceptionLanding38; } } catch (error) { break exceptionLanding87; } try { try { Reflect.apply(push, object, [value9]); } catch (error) { r14 = value9; break exceptionLanding38; } } catch (error) { break exceptionLanding87; } r14 = value9; try { value11 = value7(); } catch (error) { break exceptionLanding87; } try { done = value11.done; } catch (error) { break exceptionLanding87; } if (done) { break reducibleLoop25; } r9 = value11; continue reducibleLoop25; } } try { length = object.length; } catch (error) { break exceptionLanding87; } try { value12 = length === 0; } catch (error) { break exceptionLanding87; } if (value12) { try { Promise = global.Promise; } catch (error) { break exceptionLanding87; } try { resolve = Promise.resolve; } catch (error) { break exceptionLanding87; } try { object = []; } catch (error) { break exceptionLanding87; } try { value14 = Reflect.apply(resolve, Promise, [object]); } catch (error) { break exceptionLanding87; } r7 = value14; } else { try { binding = env1_24; } catch (error) { break exceptionLanding87; } try { binding4 = env1_10; } catch (error) { break exceptionLanding87; } try { GIFT = binding4.GIFT; } catch (error) { break exceptionLanding87; } try { value13 = binding(object, GIFT, true); } catch (error) { break exceptionLanding87; } r7 = value13; } await r7; try { value15 = undefined; value16 = false; } catch (error) { break exceptionLanding87; } reducibleJoin69: while (true) { if (value16) { return value15; } r4 = value15; break reducibleJoin69; } } try { binding = env1_1; } catch (error) { break exceptionLanding87; } try { binding5 = env1_2; } catch (error) { break exceptionLanding87; } try { property = binding5[13]; } catch (error) { break exceptionLanding87; } try { value20 = binding(property); } catch (error) { break exceptionLanding87; } try { dispatch = value20.dispatch; } catch (error) { break exceptionLanding87; } try { object = {}; } catch (error) { break exceptionLanding87; } try { object.type = 'GPLAY_IN_APP_SKUS_LOADED'; } catch (error) { break exceptionLanding87; } try { items2 = []; } catch (error) { break exceptionLanding87; } try { arraySpread(items2, r4, 0, r14); } catch (error) { break exceptionLanding87; } try { object.skus = items2; } catch (error) { break exceptionLanding87; } try { binding = env1_12; } catch (error) { break exceptionLanding87; } try { IN_APP = binding.IN_APP; } catch (error) { break exceptionLanding87; } try { object.skusType = IN_APP; } catch (error) { break exceptionLanding87; } try { Reflect.apply(dispatch, value20, [object]); } catch (error) { break exceptionLanding87; } return r4; } break reducibleJoin88; } } return []; } env1_1(env1_2[13]).dispatch({type: 'GPLAY_FETCH_IN_APP_SKUS_FAILED'}); throw error; } function* _fun58917() { // fn#58917, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:4556, offset: 0x016dae60, size: 78 bytes, params: 1, frame: 15 if (true) { var Promise = global.Promise; var all = Promise.all; value = environment.__proto__; yield Reflect.apply(all, Promise, [[env1_18(), env1_19()]]); } } function _fun58918() { // fn#58918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:4781, offset: 0x016daeae, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun58920); return _fun58921; function* _fun58920(a0, a1) { // fn#58920, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:4801, offset: 0x016daed7, size: 350 bytes, params: 3, frame: 25 var purchase; var value3; var value4; var value5; var error; var binding2; var value6; var captureBillingException; var object; var binding3; var value7; var show; var intl; var string; var t; var intl2; var LFFx5G; var value8; var track; var GPLAY_PURCHASE_FAILED; var message; if (false) { return undefined; } value = environment.__proto__.__proto__; let binding = env2_5; const getState = binding.getState; reducibleJoin3: while (true) { reduciblePort11: while (true) { exceptionLanding10: while (true) { try { binding = env2_16; } catch (error) { break exceptionLanding10; } break reducibleJoin3; } binding = env2_0; binding2 = env2_2; value6 = binding(binding2[15]); captureBillingException = value6.captureBillingException; Reflect.apply(captureBillingException, value6, [error, {tags: {productId: a0}}]); binding3 = env2_1; value7 = binding3(binding2[16]); show = value7.show; object = {}; intl = binding(binding2[17]).intl; string = intl.string; t = binding(binding2[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl2 = binding(binding2[17]).intl; string = intl2.string; t = binding(binding2[17]).t; LFFx5G = t.LFFx5G; object.body = Reflect.apply(string, intl2, [LFFx5G]); Reflect.apply(show, value7, [object]); value8 = binding3(binding2[18]); track = value8.track; GPLAY_PURCHASE_FAILED = env2_8.GPLAY_PURCHASE_FAILED; object = {}; copyDataProperties(object, Reflect.apply(getState, binding, []).analyticsByProductId[a0], intl); object['location'] = 'purchase'; object['product_id'] = a0; message = error.message; object['error'] = message; Reflect.apply(track, value8, [GPLAY_PURCHASE_FAILED, object]); break reduciblePort11; } return undefined; } try { purchase = binding.purchase; } catch (error) { break exceptionLanding10; } try { value3 = Reflect.apply(purchase, binding, [a0, a1]); } catch (error) { break exceptionLanding10; } yield value3; try { value4 = undefined; value5 = false; } catch (error) { break exceptionLanding10; } return value5 ? value4 : undefined; } function _fun58921() { // fn#58921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:5174, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } function* _fun58923() { // fn#58923, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:6617, offset: 0x016db03e, size: 378 bytes, params: 1, frame: 20 var code; var r4; var message; var getUserCountry; var value5; var value6; var value7; var error; var String; var BILLING_CLIENT_NOT_READY; var includes; var value8; var value9; var captureBillingException; var object; var warn; if (false) { return undefined; } value = undefined; let binding = env1_0; const value4 = binding(env1_2[14]); if (!value4.isGooglePlayBillingSupported()) { env1_17.info('[getUserCountry] Quest: Skipping Google Play country lookup'); return null; } try { binding = env1_16; } catch (error) { reducibleJoin13: while (true) { if (error == null) { code = value; break reducibleJoin13; } code = error.code; break reducibleJoin13; } String = global.String; BILLING_CLIENT_NOT_READY = env1_11.BILLING_CLIENT_NOT_READY; reducibleJoin26: while (true) { reducibleJoin25: while (true) { if (code === String(BILLING_CLIENT_NOT_READY)) { warn = env1_17.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } reducibleJoin17: while (true) { if (error == null) { r4 = value; break reducibleJoin17; } message = error.message; if (message == null) { r4 = value; break reducibleJoin17; } includes = message.includes; value8 = Reflect.apply(includes, message, ['max attempts exceeded']); r4 = value8; break reducibleJoin17; } if (r4 !== true) { reducibleJoin21: while (true) { if (error == null) { r4 = value; break reducibleJoin21; } message = error.message; if (message == null) { r4 = value; break reducibleJoin21; } includes = message.includes; value9 = Reflect.apply(includes, message, ['returned null']); r4 = value9; break reducibleJoin21; } if (r4 !== true) { value = env1_0(env1_2[15]); captureBillingException = value.captureBillingException; Reflect.apply(captureBillingException, value, [error, {tags: {source: 'getUserCountry'}}]); break reducibleJoin26; } } binding = env1_17; warn = binding.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } object.error = message; Reflect.apply(warn, binding, ['[getUserCountry] Failed to get user country from Google Play Billing', object]); break reducibleJoin26; } return null; } try { getUserCountry = binding.getUserCountry; } catch (error) { reducibleJoin13: while (true) { if (error == null) { code = value; break reducibleJoin13; } code = error.code; break reducibleJoin13; } String = global.String; BILLING_CLIENT_NOT_READY = env1_11.BILLING_CLIENT_NOT_READY; reducibleJoin26: while (true) { reducibleJoin25: while (true) { if (code === String(BILLING_CLIENT_NOT_READY)) { warn = env1_17.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } reducibleJoin17: while (true) { if (error == null) { r4 = value; break reducibleJoin17; } message = error.message; if (message == null) { r4 = value; break reducibleJoin17; } includes = message.includes; value8 = Reflect.apply(includes, message, ['max attempts exceeded']); r4 = value8; break reducibleJoin17; } if (r4 !== true) { reducibleJoin21: while (true) { if (error == null) { r4 = value; break reducibleJoin21; } message = error.message; if (message == null) { r4 = value; break reducibleJoin21; } includes = message.includes; value9 = Reflect.apply(includes, message, ['returned null']); r4 = value9; break reducibleJoin21; } if (r4 !== true) { value = env1_0(env1_2[15]); captureBillingException = value.captureBillingException; Reflect.apply(captureBillingException, value, [error, {tags: {source: 'getUserCountry'}}]); break reducibleJoin26; } } binding = env1_17; warn = binding.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } object.error = message; Reflect.apply(warn, binding, ['[getUserCountry] Failed to get user country from Google Play Billing', object]); break reducibleJoin26; } return null; } try { value5 = Reflect.apply(getUserCountry, binding, []); } catch (error) { reducibleJoin13: while (true) { if (error == null) { code = value; break reducibleJoin13; } code = error.code; break reducibleJoin13; } String = global.String; BILLING_CLIENT_NOT_READY = env1_11.BILLING_CLIENT_NOT_READY; reducibleJoin26: while (true) { reducibleJoin25: while (true) { if (code === String(BILLING_CLIENT_NOT_READY)) { warn = env1_17.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } reducibleJoin17: while (true) { if (error == null) { r4 = value; break reducibleJoin17; } message = error.message; if (message == null) { r4 = value; break reducibleJoin17; } includes = message.includes; value8 = Reflect.apply(includes, message, ['max attempts exceeded']); r4 = value8; break reducibleJoin17; } if (r4 !== true) { reducibleJoin21: while (true) { if (error == null) { r4 = value; break reducibleJoin21; } message = error.message; if (message == null) { r4 = value; break reducibleJoin21; } includes = message.includes; value9 = Reflect.apply(includes, message, ['returned null']); r4 = value9; break reducibleJoin21; } if (r4 !== true) { value = env1_0(env1_2[15]); captureBillingException = value.captureBillingException; Reflect.apply(captureBillingException, value, [error, {tags: {source: 'getUserCountry'}}]); break reducibleJoin26; } } binding = env1_17; warn = binding.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } object.error = message; Reflect.apply(warn, binding, ['[getUserCountry] Failed to get user country from Google Play Billing', object]); break reducibleJoin26; } return null; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { reducibleJoin13: while (true) { if (error == null) { code = value; break reducibleJoin13; } code = error.code; break reducibleJoin13; } String = global.String; BILLING_CLIENT_NOT_READY = env1_11.BILLING_CLIENT_NOT_READY; reducibleJoin26: while (true) { reducibleJoin25: while (true) { if (code === String(BILLING_CLIENT_NOT_READY)) { warn = env1_17.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } reducibleJoin17: while (true) { if (error == null) { r4 = value; break reducibleJoin17; } message = error.message; if (message == null) { r4 = value; break reducibleJoin17; } includes = message.includes; value8 = Reflect.apply(includes, message, ['max attempts exceeded']); r4 = value8; break reducibleJoin17; } if (r4 !== true) { reducibleJoin21: while (true) { if (error == null) { r4 = value; break reducibleJoin21; } message = error.message; if (message == null) { r4 = value; break reducibleJoin21; } includes = message.includes; value9 = Reflect.apply(includes, message, ['returned null']); r4 = value9; break reducibleJoin21; } if (r4 !== true) { value = env1_0(env1_2[15]); captureBillingException = value.captureBillingException; Reflect.apply(captureBillingException, value, [error, {tags: {source: 'getUserCountry'}}]); break reducibleJoin26; } } binding = env1_17; warn = binding.warn; object = {}; if (error == null) { message = value; break reducibleJoin25; } message = error.message; break reducibleJoin25; } object.error = message; Reflect.apply(warn, binding, ['[getUserCountry] Failed to get user country from Google Play Billing', object]); break reducibleJoin26; } return null; } return value7 ? value6 : value6; } function updatePendingDowngrade(a0, a1, a2, a3) { // fn#58928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7476:8421, offset: 0x016db220, size: 254 bytes, params: 5, frame: 18 const iapStoreAndroidBinding = IAPStoreAndroid; let getProduct = iapStoreAndroidBinding.getProduct; const items2 = [Reflect.apply(getProduct, iapStoreAndroidBinding, [a0])]; getProduct = iapStoreAndroidBinding.getProduct; items2[1] = Reflect.apply(getProduct, iapStoreAndroidBinding, [a1]); const property = items2[0]; const property2 = items2[1]; if (property2 != null) { if (property == null) { return undefined; } if (property2 == null) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GPLAY_UPDATE_PENDING_DOWNGRADE', pendingDowngrade: {purchaseToken: a2, subscriptionId: a3, newSubscriptionSkuId: property.identifier}}); return undefined; } if (property == null) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GPLAY_UPDATE_PENDING_DOWNGRADE', pendingDowngrade: {purchaseToken: a2, subscriptionId: a3, newSubscriptionSkuId: property.identifier}}); return undefined; } var billingPeriod = property2.billingPeriod; if (billingPeriod == null) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GPLAY_UPDATE_PENDING_DOWNGRADE', pendingDowngrade: {purchaseToken: a2, subscriptionId: a3, newSubscriptionSkuId: property.identifier}}); return undefined; } billingPeriod = property.billingPeriod; if (billingPeriod == null) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GPLAY_UPDATE_PENDING_DOWNGRADE', pendingDowngrade: {purchaseToken: a2, subscriptionId: a3, newSubscriptionSkuId: property.identifier}}); return undefined; } var price = property.price; var moduleValue = require(3817) /* metro dependency 3817: BillingUtils */; var calculateStandardizedUnits = moduleValue.calculateStandardizedUnits; billingPeriod = property2.billingPeriod; var value3 = price / Reflect.apply(calculateStandardizedUnits, moduleValue, [billingPeriod, property.billingPeriod]); price = property2.price; if (price < value3) { return undefined; } (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GPLAY_UPDATE_PENDING_DOWNGRADE', pendingDowngrade: {purchaseToken: a2, subscriptionId: a3, newSubscriptionSkuId: property.identifier}}); } } } global.__d(_fun58891, 7298, [5, 27, 7255, 1226, 5140, 661, 5141, 1880, 482, 3, 5143, 6847, 3839, 694, 3815, 3817, 4647, 1244, 683, 507, 2]) /* metro module 7298, dependencies: [5, 27, 7255, 1226, 5140, 661, 5141, 1880, 482, 3, 5143, 6847, 3839, 694, 3815, 3817, 4647, 1244, 683, 507, 2] */;