package com.discord.utilities.analytics; import android.util.Base64; import com.google.gson.Gson; import d0.b0.c; import d0.z.d.m; import java.nio.charset.Charset; import java.util.Map; import java.util.Objects; import kotlin.reflect.KProperty; /* compiled from: Delegates.kt */ public final class AnalyticSuperProperties$$special$$inlined$observable$1 extends c> { public final /* synthetic */ Object $initialValue; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnalyticSuperProperties$$special$$inlined$observable$1(Object obj, Object obj2) { super(obj2); this.$initialValue = obj; } @Override // d0.b0.c public void afterChange(KProperty kProperty, Map map, Map map2) { m.checkNotNullParameter(kProperty, "property"); AnalyticSuperProperties analyticSuperProperties = AnalyticSuperProperties.INSTANCE; String m = new Gson().m(map2); if (m == null) { m = "{}"; } AnalyticSuperProperties.access$setSuperPropertiesString$p(analyticSuperProperties, m); String superPropertiesString = analyticSuperProperties.getSuperPropertiesString(); Charset charset = d0.g0.c.a; Objects.requireNonNull(superPropertiesString, "null cannot be cast to non-null type java.lang.String"); byte[] bytes = superPropertiesString.getBytes(charset); m.checkNotNullExpressionValue(bytes, "(this as java.lang.String).getBytes(charset)"); String encodeToString = Base64.encodeToString(bytes, 2); m.checkNotNullExpressionValue(encodeToString, "Base64.encodeToString(su…eArray(), Base64.NO_WRAP)"); AnalyticSuperProperties.access$setSuperPropertiesStringBase64$p(analyticSuperProperties, encodeToString); } }