package com.ifpdos.udi.sdk.service.doc.mkdocs;

import com.ifpdos.udi.sdk.service.doc.base.Permission;
import com.seewo.sdk.internal.utils.Constants;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;

/* JADX INFO: compiled from: DocRenderer.kt */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b$\n\u0002\u0018\u0002\n\u0002\b\u001c\b\u0086\b\u0018\u00002\u00020\u0001B!\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0007J\t\u0010a\u001a\u00020\u0003HÆ\u0003J\u000b\u0010b\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010c\u001a\u0004\u0018\u00010\u0005HÆ\u0003J+\u0010d\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\u0013\u0010e\u001a\u00020-2\b\u0010f\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\u0010\u0010\u0010\u001a\u00020\u00052\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\t\u0010g\u001a\u00020\u001eHÖ\u0001J\u0016\u0010h\u001a\b\u0012\u0004\u0012\u00020\u00130\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0010\u0010i\u001a\u00020\u00052\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0016\u0010j\u001a\b\u0012\u0004\u0012\u00020\u00050\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0016\u0010k\u001a\b\u0012\u0004\u0012\u00020R0\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0016\u0010l\u001a\u00020\u00052\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00130\tH\u0002J\t\u0010m\u001a\u00020\u0005HÖ\u0001R\u0019\u0010\b\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0011\u0010\u000f\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0017\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00130\t¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\fR\u0011\u0010\u0015\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0011R\u0011\u0010\u0017\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0011R\u0011\u0010\u0019\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u0011R\u0017\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00050\t¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\fR\u0015\u0010\u001d\u001a\u0004\u0018\u00010\u001e¢\u0006\n\n\u0002\u0010!\u001a\u0004\b\u001f\u0010 R\u0013\u0010\"\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b#\u0010\u0011R\u0019\u0010$\u001a\n\u0012\u0004\u0012\u00020%\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b&\u0010\fR\u0013\u0010'\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b(\u0010\u0011R\u0019\u0010)\u001a\n\u0012\u0004\u0012\u00020%\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b*\u0010\fR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b+\u0010\u0011R\u0011\u0010,\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\b.\u0010/R\u0011\u00100\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\b1\u0010/R\u0011\u00102\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\b3\u0010/R\u0011\u00104\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\b5\u0010/R\u0015\u00106\u001a\u0004\u0018\u00010-¢\u0006\n\n\u0002\u00109\u001a\u0004\b7\u00108R\u0015\u0010:\u001a\u0004\u0018\u00010-¢\u0006\n\n\u0002\u00109\u001a\u0004\b;\u00108R\u0015\u0010<\u001a\u0004\u0018\u00010-¢\u0006\n\n\u0002\u00109\u001a\u0004\b=\u00108R\u0011\u0010>\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\b?\u0010/R\u0011\u0010@\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\bA\u0010/R\u0015\u0010B\u001a\u0004\u0018\u00010-¢\u0006\n\n\u0002\u00109\u001a\u0004\bC\u00108R\u0015\u0010D\u001a\u0004\u0018\u00010-¢\u0006\n\n\u0002\u00109\u001a\u0004\bE\u00108R\u0011\u0010F\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\bF\u0010/R\u0011\u0010G\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\bG\u0010/R\u0011\u0010H\u001a\u00020-¢\u0006\b\n\u0000\u001a\u0004\bH\u0010/R\u0013\u0010I\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\bJ\u0010\u0011R\u0013\u0010K\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\bL\u0010\u0011R\u0015\u0010M\u001a\u0004\u0018\u00010\u001e¢\u0006\n\n\u0002\u0010!\u001a\u0004\bN\u0010 R\u0019\u0010O\u001a\n\u0012\u0004\u0012\u00020%\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\bP\u0010\fR\u0017\u0010Q\u001a\b\u0012\u0004\u0012\u00020R0\t¢\u0006\b\n\u0000\u001a\u0004\bS\u0010\fR\u0015\u0010T\u001a\u0004\u0018\u00010\u001e¢\u0006\n\n\u0002\u0010!\u001a\u0004\bU\u0010 R\u0013\u0010V\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\bW\u0010\u0011R\u0019\u0010X\u001a\n\u0012\u0004\u0012\u00020%\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\bY\u0010\fR\u0013\u0010Z\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b[\u0010\u0011R\u0019\u0010\\\u001a\n\u0012\u0004\u0012\u00020%\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b]\u0010\fR\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b^\u0010\u0011R\u0011\u0010_\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b`\u0010\u0011¨\u0006n"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/mkdocs/ApiDefineWrapper;", "", "api", "Lcom/ifpdos/udi/sdk/service/doc/mkdocs/ApiDefine;", "getUrl", "", "postUrl", "(Lcom/ifpdos/udi/sdk/service/doc/mkdocs/ApiDefine;Ljava/lang/String;Ljava/lang/String;)V", "also", "", "Lcom/ifpdos/udi/sdk/service/doc/mkdocs/AlsoWrapper;", "getAlso", "()Ljava/util/List;", "getApi", "()Lcom/ifpdos/udi/sdk/service/doc/mkdocs/ApiDefine;", "classification", "getClassification", "()Ljava/lang/String;", "depends", "Lcom/ifpdos/udi/sdk/service/doc/mkdocs/DependInfo;", "getDepends", "dependsString", "getDependsString", "deprecated", "getDeprecated", "description", "getDescription", "functionBlocks", "getFunctionBlocks", "getPermission", "", "getGetPermission", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getRequestClassName", "getGetRequestClassName", "getRequestWrapper", "Lcom/ifpdos/udi/sdk/service/doc/mkdocs/FieldWrapper;", "getGetRequestWrapper", "getResponseClassName", "getGetResponseClassName", "getResponseWrapper", "getGetResponseWrapper", "getGetUrl", "hasAlso", "", "getHasAlso", "()Z", "hasDepends", "getHasDepends", "hasDeprecated", "getHasDeprecated", "hasFunctionBlocks", "getHasFunctionBlocks", "hasGetRequest", "getHasGetRequest", "()Ljava/lang/Boolean;", "Ljava/lang/Boolean;", "hasGetResponse", "getHasGetResponse", "hasNotify", "getHasNotify", "hasOpensdks", "getHasOpensdks", "hasPermission", "getHasPermission", "hasPostRequest", "getHasPostRequest", "hasPostResponse", "getHasPostResponse", "isGetSupport", "isNotifySupport", "isPostSupport", "noticeTarget", "getNoticeTarget", "notifyDataClass", "getNotifyDataClass", "notifyPermission", "getNotifyPermission", "notifyRequestWrapper", "getNotifyRequestWrapper", "opensdks", "Lcom/ifpdos/udi/sdk/service/doc/mkdocs/OpenSdkInfo;", "getOpensdks", "postPermission", "getPostPermission", "postRequestDataClass", "getPostRequestDataClass", "postRequestWrapper", "getPostRequestWrapper", "postResponseDataClass", "getPostResponseDataClass", "postResponseWrapper", "getPostResponseWrapper", "getPostUrl", "summary", "getSummary", "component1", "component2", "component3", "copy", "equals", "other", "hashCode", "parserDepends", "parserDeprecated", "parserFunctionBlocks", "parserOpenSdk", "toJson", "toString", "doc-mkdocs"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final /* data */ class ApiDefineWrapper {
    private final List<AlsoWrapper> also;
    private final ApiDefine api;
    private final String classification;
    private final List<DependInfo> depends;
    private final String dependsString;
    private final String deprecated;
    private final String description;
    private final List<String> functionBlocks;
    private final Integer getPermission;
    private final String getRequestClassName;
    private final List<FieldWrapper> getRequestWrapper;
    private final String getResponseClassName;
    private final List<FieldWrapper> getResponseWrapper;
    private final String getUrl;
    private final boolean hasAlso;
    private final boolean hasDepends;
    private final boolean hasDeprecated;
    private final boolean hasFunctionBlocks;
    private final Boolean hasGetRequest;
    private final Boolean hasGetResponse;
    private final Boolean hasNotify;
    private final boolean hasOpensdks;
    private final boolean hasPermission;
    private final Boolean hasPostRequest;
    private final Boolean hasPostResponse;
    private final boolean isGetSupport;
    private final boolean isNotifySupport;
    private final boolean isPostSupport;
    private final String noticeTarget;
    private final String notifyDataClass;
    private final Integer notifyPermission;
    private final List<FieldWrapper> notifyRequestWrapper;
    private final List<OpenSdkInfo> opensdks;
    private final Integer postPermission;
    private final String postRequestDataClass;
    private final List<FieldWrapper> postRequestWrapper;
    private final String postResponseDataClass;
    private final List<FieldWrapper> postResponseWrapper;
    private final String postUrl;
    private final String summary;

    public static /* synthetic */ ApiDefineWrapper copy$default(ApiDefineWrapper apiDefineWrapper, ApiDefine apiDefine, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            apiDefine = apiDefineWrapper.api;
        }
        if ((i & 2) != 0) {
            str = apiDefineWrapper.getUrl;
        }
        if ((i & 4) != 0) {
            str2 = apiDefineWrapper.postUrl;
        }
        return apiDefineWrapper.copy(apiDefine, str, str2);
    }

    /* JADX INFO: renamed from: component1, reason: from getter */
    public final ApiDefine getApi() {
        return this.api;
    }

    /* JADX INFO: renamed from: component2, reason: from getter */
    public final String getGetUrl() {
        return this.getUrl;
    }

    /* JADX INFO: renamed from: component3, reason: from getter */
    public final String getPostUrl() {
        return this.postUrl;
    }

    public final ApiDefineWrapper copy(ApiDefine api, String getUrl, String postUrl) {
        Intrinsics.checkNotNullParameter(api, "api");
        return new ApiDefineWrapper(api, getUrl, postUrl);
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof ApiDefineWrapper)) {
            return false;
        }
        ApiDefineWrapper apiDefineWrapper = (ApiDefineWrapper) other;
        return Intrinsics.areEqual(this.api, apiDefineWrapper.api) && Intrinsics.areEqual(this.getUrl, apiDefineWrapper.getUrl) && Intrinsics.areEqual(this.postUrl, apiDefineWrapper.postUrl);
    }

    public int hashCode() {
        int iHashCode = this.api.hashCode() * 31;
        String str = this.getUrl;
        int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.postUrl;
        return iHashCode2 + (str2 != null ? str2.hashCode() : 0);
    }

    public String toString() {
        return "ApiDefineWrapper(api=" + this.api + ", getUrl=" + this.getUrl + ", postUrl=" + this.postUrl + ')';
    }

    public ApiDefineWrapper(ApiDefine api, String str, String str2) {
        ArrayList arrayList;
        ArrayList arrayList2;
        ArrayList arrayList3;
        ArrayList arrayList4;
        ArrayList arrayList5;
        ArrayList arrayList6;
        List<FieldInfo> notify;
        List<FieldInfo> notify2;
        String notifyClassName;
        List listSplit$default;
        List<FieldInfo> response;
        List<FieldInfo> request;
        List<FieldInfo> response2;
        String responseClassName;
        List listSplit$default2;
        List<FieldInfo> request2;
        String requestClassName;
        List listSplit$default3;
        List<FieldInfo> response3;
        List<FieldInfo> request3;
        List<FieldInfo> response4;
        List<FieldInfo> request4;
        String responseClassName2;
        List listSplit$default4;
        String requestClassName2;
        List listSplit$default5;
        Permission permission;
        Permission permission2;
        Permission permission3;
        Intrinsics.checkNotNullParameter(api, "api");
        this.api = api;
        this.getUrl = str;
        this.postUrl = str2;
        this.summary = api.getSummary();
        this.description = api.getComment().getDescription();
        NotifyDefine notify3 = api.getNotify();
        Boolean boolValueOf = null;
        this.noticeTarget = notify3 != null ? notify3.getNotifyClassName() : null;
        this.opensdks = parserOpenSdk(api);
        this.hasOpensdks = !r12.isEmpty();
        this.functionBlocks = parserFunctionBlocks(api);
        this.hasFunctionBlocks = !r12.isEmpty();
        this.classification = getClassification(api);
        List<String> list = api.getComment().getAnnotations().get("see");
        if (list != null) {
            List<String> list2 = list;
            ArrayList arrayList7 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list2, 10));
            Iterator<T> it = list2.iterator();
            while (it.hasNext()) {
                arrayList7.add(new AlsoWrapper((String) it.next()));
            }
            arrayList = arrayList7;
        } else {
            arrayList = null;
        }
        this.also = arrayList;
        this.hasAlso = (arrayList == null || arrayList.isEmpty()) ? false : true;
        String str3 = parserDeprecated(this.api);
        this.deprecated = str3;
        this.hasDeprecated = str3.length() > 0;
        boolean z = this.api.getGet() != null;
        this.isGetSupport = z;
        RequestDefine get = this.api.getGet();
        this.getPermission = (get == null || (permission3 = get.getPermission()) == null) ? null : Integer.valueOf(permission3.getPermission());
        boolean z2 = this.api.getPost() != null;
        this.isPostSupport = z2;
        RequestDefine post = this.api.getPost();
        this.postPermission = (post == null || (permission2 = post.getPermission()) == null) ? null : Integer.valueOf(permission2.getPermission());
        boolean z3 = this.api.getNotify() != null;
        this.isNotifySupport = z3;
        NotifyDefine notify4 = this.api.getNotify();
        this.notifyPermission = (notify4 == null || (permission = notify4.getPermission()) == null) ? null : Integer.valueOf(permission.getPermission());
        this.hasPermission = z || z2 || z3;
        List<DependInfo> list3 = parserDepends(this.api);
        this.depends = list3;
        this.dependsString = toJson(list3);
        this.hasDepends = !list3.isEmpty();
        RequestDefine get2 = this.api.getGet();
        String str4 = (get2 == null || (requestClassName2 = get2.getRequestClassName()) == null || (listSplit$default5 = StringsKt.split$default((CharSequence) requestClassName2, new String[]{"."}, false, 0, 6, (Object) null)) == null) ? null : (String) CollectionsKt.last(listSplit$default5);
        this.getRequestClassName = (str4 == null || Intrinsics.areEqual(str4, "EmptyBody")) ? null : DocRendererKt.getGenericSimpleNameWithoutPackage(this.api.getGet().getRequestClassName());
        RequestDefine get3 = this.api.getGet();
        String str5 = (get3 == null || (responseClassName2 = get3.getResponseClassName()) == null || (listSplit$default4 = StringsKt.split$default((CharSequence) responseClassName2, new String[]{"."}, false, 0, 6, (Object) null)) == null) ? null : (String) CollectionsKt.last(listSplit$default4);
        this.getResponseClassName = (str5 == null || Intrinsics.areEqual(str5, "EmptyBody")) ? null : DocRendererKt.getLink(DocRendererKt.getGenericSimpleNameWithoutPackage(this.api.getGet().getResponseClassName()));
        RequestDefine get4 = this.api.getGet();
        if (get4 == null || (request4 = get4.getRequest()) == null) {
            arrayList2 = null;
        } else {
            List<FieldInfo> list4 = request4;
            ArrayList arrayList8 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list4, 10));
            Iterator<T> it2 = list4.iterator();
            while (it2.hasNext()) {
                arrayList8.add(new FieldWrapper(this.api.getUri(), (FieldInfo) it2.next()));
            }
            arrayList2 = arrayList8;
        }
        this.getRequestWrapper = arrayList2;
        RequestDefine get5 = this.api.getGet();
        if (get5 == null || (response4 = get5.getResponse()) == null) {
            arrayList3 = null;
        } else {
            List<FieldInfo> list5 = response4;
            ArrayList arrayList9 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list5, 10));
            Iterator<T> it3 = list5.iterator();
            while (it3.hasNext()) {
                arrayList9.add(new FieldWrapper(this.api.getUri(), (FieldInfo) it3.next()));
            }
            arrayList3 = arrayList9;
        }
        this.getResponseWrapper = arrayList3;
        RequestDefine get6 = this.api.getGet();
        this.hasGetRequest = (get6 == null || (request3 = get6.getRequest()) == null) ? null : Boolean.valueOf(!request3.isEmpty());
        RequestDefine get7 = this.api.getGet();
        this.hasGetResponse = (get7 == null || (response3 = get7.getResponse()) == null) ? null : Boolean.valueOf(!response3.isEmpty());
        RequestDefine post2 = this.api.getPost();
        String str6 = (post2 == null || (requestClassName = post2.getRequestClassName()) == null || (listSplit$default3 = StringsKt.split$default((CharSequence) requestClassName, new String[]{"."}, false, 0, 6, (Object) null)) == null) ? null : (String) CollectionsKt.last(listSplit$default3);
        this.postRequestDataClass = (str6 == null || Intrinsics.areEqual(str6, "EmptyBody")) ? null : DocRendererKt.getGenericSimpleNameWithoutPackage(this.api.getPost().getRequestClassName());
        RequestDefine post3 = this.api.getPost();
        if (post3 == null || (request2 = post3.getRequest()) == null) {
            arrayList4 = null;
        } else {
            List<FieldInfo> list6 = request2;
            ArrayList arrayList10 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list6, 10));
            Iterator<T> it4 = list6.iterator();
            while (it4.hasNext()) {
                arrayList10.add(new FieldWrapper(this.api.getUri(), (FieldInfo) it4.next()));
            }
            arrayList4 = arrayList10;
        }
        this.postRequestWrapper = arrayList4;
        RequestDefine post4 = this.api.getPost();
        String str7 = (post4 == null || (responseClassName = post4.getResponseClassName()) == null || (listSplit$default2 = StringsKt.split$default((CharSequence) responseClassName, new String[]{"."}, false, 0, 6, (Object) null)) == null) ? null : (String) CollectionsKt.last(listSplit$default2);
        this.postResponseDataClass = (str7 == null || Intrinsics.areEqual(str7, "EmptyBody")) ? null : DocRendererKt.getGenericSimpleNameWithoutPackage(this.api.getPost().getResponseClassName());
        RequestDefine post5 = this.api.getPost();
        if (post5 == null || (response2 = post5.getResponse()) == null) {
            arrayList5 = null;
        } else {
            List<FieldInfo> list7 = response2;
            ArrayList arrayList11 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list7, 10));
            Iterator<T> it5 = list7.iterator();
            while (it5.hasNext()) {
                arrayList11.add(new FieldWrapper(this.api.getUri(), (FieldInfo) it5.next()));
            }
            arrayList5 = arrayList11;
        }
        this.postResponseWrapper = arrayList5;
        RequestDefine post6 = this.api.getPost();
        this.hasPostRequest = (post6 == null || (request = post6.getRequest()) == null) ? null : Boolean.valueOf(!request.isEmpty());
        RequestDefine post7 = this.api.getPost();
        this.hasPostResponse = (post7 == null || (response = post7.getResponse()) == null) ? null : Boolean.valueOf(!response.isEmpty());
        NotifyDefine notify5 = this.api.getNotify();
        String str8 = (notify5 == null || (notifyClassName = notify5.getNotifyClassName()) == null || (listSplit$default = StringsKt.split$default((CharSequence) notifyClassName, new String[]{"."}, false, 0, 6, (Object) null)) == null) ? null : (String) CollectionsKt.last(listSplit$default);
        this.notifyDataClass = (str8 == null || Intrinsics.areEqual(str8, "EmptyBody")) ? null : DocRendererKt.getLink(DocRendererKt.getGenericSimpleNameWithoutPackage(this.api.getNotify().getNotifyClassName()));
        NotifyDefine notify6 = this.api.getNotify();
        if (notify6 == null || (notify2 = notify6.getNotify()) == null) {
            arrayList6 = null;
        } else {
            List<FieldInfo> list8 = notify2;
            ArrayList arrayList12 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list8, 10));
            Iterator<T> it6 = list8.iterator();
            while (it6.hasNext()) {
                arrayList12.add(new FieldWrapper(this.api.getUri(), (FieldInfo) it6.next()));
            }
            arrayList6 = arrayList12;
        }
        this.notifyRequestWrapper = arrayList6;
        NotifyDefine notify7 = this.api.getNotify();
        if (notify7 != null && (notify = notify7.getNotify()) != null) {
            boolValueOf = Boolean.valueOf(!notify.isEmpty());
        }
        this.hasNotify = boolValueOf;
    }

    public final ApiDefine getApi() {
        return this.api;
    }

    public final String getGetUrl() {
        return this.getUrl;
    }

    public final String getPostUrl() {
        return this.postUrl;
    }

    public final String getSummary() {
        return this.summary;
    }

    public final String getDescription() {
        return this.description;
    }

    public final String getNoticeTarget() {
        return this.noticeTarget;
    }

    public final List<DependInfo> getDepends() {
        return this.depends;
    }

    public final String getDependsString() {
        return this.dependsString;
    }

    public final boolean getHasDepends() {
        return this.hasDepends;
    }

    public final List<OpenSdkInfo> getOpensdks() {
        return this.opensdks;
    }

    public final boolean getHasOpensdks() {
        return this.hasOpensdks;
    }

    public final List<String> getFunctionBlocks() {
        return this.functionBlocks;
    }

    public final boolean getHasFunctionBlocks() {
        return this.hasFunctionBlocks;
    }

    public final String getClassification() {
        return this.classification;
    }

    public final List<AlsoWrapper> getAlso() {
        return this.also;
    }

    public final boolean getHasAlso() {
        return this.hasAlso;
    }

    public final String getDeprecated() {
        return this.deprecated;
    }

    public final boolean getHasDeprecated() {
        return this.hasDeprecated;
    }

    /* JADX INFO: renamed from: isGetSupport, reason: from getter */
    public final boolean getIsGetSupport() {
        return this.isGetSupport;
    }

    public final Integer getGetPermission() {
        return this.getPermission;
    }

    /* JADX INFO: renamed from: isPostSupport, reason: from getter */
    public final boolean getIsPostSupport() {
        return this.isPostSupport;
    }

    public final Integer getPostPermission() {
        return this.postPermission;
    }

    /* JADX INFO: renamed from: isNotifySupport, reason: from getter */
    public final boolean getIsNotifySupport() {
        return this.isNotifySupport;
    }

    public final Integer getNotifyPermission() {
        return this.notifyPermission;
    }

    public final boolean getHasPermission() {
        return this.hasPermission;
    }

    private final String toJson(List<DependInfo> depends) {
        return "[" + CollectionsKt.joinToString$default(depends, ",", null, null, 0, null, new Function1<DependInfo, CharSequence>() { // from class: com.ifpdos.udi.sdk.service.doc.mkdocs.ApiDefineWrapper$toJson$list$1
            @Override // kotlin.jvm.functions.Function1
            public final CharSequence invoke(DependInfo it) {
                Intrinsics.checkNotNullParameter(it, "it");
                return "{\"platform\":\"" + it.getPlatform() + "\",\"method\":\"" + it.getMethod() + "\",\"lib\":\"" + it.getLib() + "\",\"api\":\"" + it.getApi() + "\",\"description\":\"" + it.getDescription() + "\"}";
            }
        }, 30, null) + AbstractJsonLexerKt.END_LIST;
    }

    public final String getGetRequestClassName() {
        return this.getRequestClassName;
    }

    public final String getGetResponseClassName() {
        return this.getResponseClassName;
    }

    public final List<FieldWrapper> getGetRequestWrapper() {
        return this.getRequestWrapper;
    }

    public final List<FieldWrapper> getGetResponseWrapper() {
        return this.getResponseWrapper;
    }

    public final Boolean getHasGetRequest() {
        return this.hasGetRequest;
    }

    public final Boolean getHasGetResponse() {
        return this.hasGetResponse;
    }

    public final String getPostRequestDataClass() {
        return this.postRequestDataClass;
    }

    public final List<FieldWrapper> getPostRequestWrapper() {
        return this.postRequestWrapper;
    }

    public final String getPostResponseDataClass() {
        return this.postResponseDataClass;
    }

    public final List<FieldWrapper> getPostResponseWrapper() {
        return this.postResponseWrapper;
    }

    public final Boolean getHasPostRequest() {
        return this.hasPostRequest;
    }

    public final Boolean getHasPostResponse() {
        return this.hasPostResponse;
    }

    public final String getNotifyDataClass() {
        return this.notifyDataClass;
    }

    public final List<FieldWrapper> getNotifyRequestWrapper() {
        return this.notifyRequestWrapper;
    }

    public final Boolean getHasNotify() {
        return this.hasNotify;
    }

    private final String getClassification(ApiDefine api) {
        List<String> list = api.getComment().getAnnotations().get("classification");
        return list == null ? "" : list.get(0);
    }

    private final List<OpenSdkInfo> parserOpenSdk(ApiDefine api) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        List<String> list = api.getComment().getAnnotations().get(Constants.SDK_SERVICE);
        if (list == null) {
            return CollectionsKt.emptyList();
        }
        Iterator<T> it = list.iterator();
        while (it.hasNext()) {
            List listSplit$default = StringsKt.split$default((CharSequence) it.next(), new String[]{"]"}, false, 2, 2, (Object) null);
            String strSubstring = StringsKt.trim((CharSequence) listSplit$default.get(0)).toString().substring(1);
            Intrinsics.checkNotNullExpressionValue(strSubstring, "this as java.lang.String).substring(startIndex)");
            String string = StringsKt.trim((CharSequence) StringsKt.split$default((CharSequence) listSplit$default.get(1), new String[]{":"}, false, 2, 2, (Object) null).get(0)).toString();
            if (linkedHashMap.containsKey(strSubstring)) {
                List list2 = (List) linkedHashMap.get(strSubstring);
                if (list2 != null) {
                    list2.add(string);
                }
            } else {
                linkedHashMap.put(strSubstring, CollectionsKt.mutableListOf(string));
            }
        }
        ArrayList arrayList = new ArrayList(linkedHashMap.size());
        for (Map.Entry entry : linkedHashMap.entrySet()) {
            arrayList.add(new OpenSdkInfo((String) entry.getKey(), CollectionsKt.joinToString$default((Iterable) entry.getValue(), ",", null, null, 0, null, null, 62, null)));
        }
        return arrayList;
    }

    private final List<String> parserFunctionBlocks(ApiDefine api) {
        List<String> listEmptyList = api.getComment().getAnnotations().get("funblk");
        if (listEmptyList == null) {
            listEmptyList = CollectionsKt.emptyList();
        }
        if (listEmptyList.isEmpty() && Intrinsics.areEqual(getClassification(api), "工具接口")) {
            return CollectionsKt.listOf("IFP_FUNBLK-1380");
        }
        ArrayList arrayList = new ArrayList();
        Iterator<T> it = listEmptyList.iterator();
        while (it.hasNext()) {
            arrayList.add(StringsKt.trim((CharSequence) it.next()).toString());
        }
        return arrayList;
    }

    private final String parserDeprecated(ApiDefine api) {
        List<String> list = api.getComment().getAnnotations().get("deprecated");
        return (list == null || list.isEmpty()) ? "" : list.get(0);
    }

    private final List<DependInfo> parserDepends(ApiDefine api) {
        List<String> list = api.getComment().getAnnotations().get("depend");
        if (list == null) {
            return CollectionsKt.emptyList();
        }
        ArrayList arrayList = new ArrayList();
        Iterator<T> it = list.iterator();
        while (it.hasNext()) {
            List listSplit$default = StringsKt.split$default((CharSequence) it.next(), new String[]{" "}, false, 2, 2, (Object) null);
            String str = (String) listSplit$default.get(0);
            String str2 = (String) listSplit$default.get(1);
            List listSplit$default2 = StringsKt.split$default((CharSequence) StringsKt.replace$default(str, "[", "", false, 4, (Object) null), new String[]{"]"}, false, 0, 6, (Object) null);
            List listSplit$default3 = StringsKt.split$default((CharSequence) str2, new String[]{":"}, false, 2, 2, (Object) null);
            Iterator it2 = StringsKt.split$default((CharSequence) listSplit$default2.get(0), new String[]{","}, false, 0, 6, (Object) null).iterator();
            while (it2.hasNext()) {
                arrayList.add(new DependInfo(listSplit$default2.size() > 2 ? (String) listSplit$default2.get(2) : "", (String) it2.next(), (String) listSplit$default2.get(1), (String) listSplit$default3.get(0), listSplit$default3.size() > 1 ? (String) listSplit$default3.get(1) : ""));
            }
        }
        return arrayList;
    }
}
