package com.l7tech.gateway.common.module;

import com.l7tech.util.DeserializeSafe;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@DeserializeSafe
public class ServerModuleConfig implements Serializable {
   private static final long serialVersionUID = 4776013718981694948L;
   @NotNull
   private String customAssertionPropertyFileName;
   @NotNull
   private String modularAssertionManifestAssertionListKey;
   @NotNull
   private List<String> customAssertionModulesExt;
   @NotNull
   private List<String> modularAssertionModulesExt;
   private static final String[] a;

   public void setCustomAssertionPropertyFileName(@Nullable String var1) {
      ServerModuleConfig var10000;
      String var10001;
      label16: {
         try {
            var10000 = this;
            if (var1 != null) {
               var10001 = var1;
               break label16;
            }
         } catch (IllegalStateException var2) {
            throw a(var2);
         }

         var10001 = a[0];
      }

      var10000.customAssertionPropertyFileName = var10001;
   }

   public void setModularAssertionManifestAssertionListKey(@Nullable String var1) {
      ServerModuleConfig var10000;
      String var10001;
      label16: {
         try {
            var10000 = this;
            if (var1 != null) {
               var10001 = var1;
               break label16;
            }
         } catch (IllegalStateException var2) {
            throw a(var2);
         }

         var10001 = a[9];
      }

      var10000.modularAssertionManifestAssertionListKey = var10001;
   }

   public void setCustomAssertionModulesExt(@Nullable List<String> param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 0
      // 01: aload 1
      // 02: ifnull 24
      // 05: aload 1
      // 06: invokeinterface java/util/List.isEmpty ()Z 1
      // 0b: ifne 24
      // 0e: goto 15
      // 11: invokestatic com/l7tech/gateway/common/module/ServerModuleConfig.a (Ljava/lang/IllegalStateException;)Ljava/lang/IllegalStateException;
      // 14: athrow
      // 15: new java/util/ArrayList
      // 18: dup
      // 19: aload 1
      // 1a: invokespecial java/util/ArrayList.<init> (Ljava/util/Collection;)V
      // 1d: goto 34
      // 20: invokestatic com/l7tech/gateway/common/module/ServerModuleConfig.a (Ljava/lang/IllegalStateException;)Ljava/lang/IllegalStateException;
      // 23: athrow
      // 24: bipush 1
      // 25: anewarray 124
      // 28: dup
      // 29: bipush 0
      // 2a: getstatic com/l7tech/gateway/common/module/ServerModuleConfig.a [Ljava/lang/String;
      // 2d: bipush 6
      // 2f: aaload
      // 30: aastore
      // 31: invokestatic java/util/Arrays.asList ([Ljava/lang/Object;)Ljava/util/List;
      // 34: putfield com/l7tech/gateway/common/module/ServerModuleConfig.customAssertionModulesExt Ljava/util/List;
      // 37: return
      // try (0 -> 6): 7 java/lang/IllegalStateException
      // try (3 -> 14): 14 java/lang/IllegalStateException
   }

   public void setModularAssertionModulesExt(@Nullable List<String> param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 0
      // 01: aload 1
      // 02: ifnull 24
      // 05: aload 1
      // 06: invokeinterface java/util/List.isEmpty ()Z 1
      // 0b: ifne 24
      // 0e: goto 15
      // 11: invokestatic com/l7tech/gateway/common/module/ServerModuleConfig.a (Ljava/lang/IllegalStateException;)Ljava/lang/IllegalStateException;
      // 14: athrow
      // 15: new java/util/ArrayList
      // 18: dup
      // 19: aload 1
      // 1a: invokespecial java/util/ArrayList.<init> (Ljava/util/Collection;)V
      // 1d: goto 50
      // 20: invokestatic com/l7tech/gateway/common/module/ServerModuleConfig.a (Ljava/lang/IllegalStateException;)Ljava/lang/IllegalStateException;
      // 23: athrow
      // 24: bipush 5
      // 25: anewarray 124
      // 28: dup
      // 29: bipush 0
      // 2a: getstatic com/l7tech/gateway/common/module/ServerModuleConfig.a [Ljava/lang/String;
      // 2d: astore 2
      // 2e: aload 2
      // 2f: bipush 8
      // 31: aaload
      // 32: aastore
      // 33: dup
      // 34: bipush 1
      // 35: aload 2
      // 36: bipush 12
      // 38: aaload
      // 39: aastore
      // 3a: dup
      // 3b: bipush 2
      // 3c: aload 2
      // 3d: bipush 11
      // 3f: aaload
      // 40: aastore
      // 41: dup
      // 42: bipush 3
      // 43: aload 2
      // 44: bipush 2
      // 45: aaload
      // 46: aastore
      // 47: dup
      // 48: bipush 4
      // 49: aload 2
      // 4a: bipush 5
      // 4b: aaload
      // 4c: aastore
      // 4d: invokestatic java/util/Arrays.asList ([Ljava/lang/Object;)Ljava/util/List;
      // 50: putfield com/l7tech/gateway/common/module/ServerModuleConfig.modularAssertionModulesExt Ljava/util/List;
      // 53: return
      // try (0 -> 6): 7 java/lang/IllegalStateException
      // try (3 -> 14): 14 java/lang/IllegalStateException
   }

   @NotNull
   public String getCustomAssertionPropertyFileName() {
      try {
         return this.customAssertionPropertyFileName;
      } catch (IllegalStateException var1) {
         throw a(var1);
      }
   }

   @NotNull
   public String getModularAssertionManifestAssertionListKey() {
      try {
         return this.modularAssertionManifestAssertionListKey;
      } catch (IllegalStateException var1) {
         throw a(var1);
      }
   }

   @NotNull
   public List<String> getCustomAssertionModulesExt() {
      try {
         return Collections.unmodifiableList(this.customAssertionModulesExt);
      } catch (IllegalStateException var1) {
         throw a(var1);
      }
   }

   @NotNull
   public List<String> getModularAssertionModulesExt() {
      try {
         return Collections.unmodifiableList(this.modularAssertionModulesExt);
      } catch (IllegalStateException var1) {
         throw a(var1);
      }
   }

   private static IllegalStateException a(IllegalStateException var0) {
      return var0;
   }

   static {
      String[] var5 = new String[14];
      int var3 = 0;
      String var2 = "/3U\b\u0016,y-5U\u0019\u000b5O#(UR\t3I<#T\b\u0010$U\"+#R?\f2R#+g\u000f\n$T8/I\u0012)3I<#T\b\u0000\u0007O #h\u001d\u0014$\u0005b'U\u000f\u0017++#R1\u0016%S 'T=\n2C>2O\u0013\u0017\fG\"/@\u0019\n5g?5C\u000e\r(I\"\nO\u000f\r\nC5\u001d+#R1\u0016%S 'T=\n2C>2O\u0013\u0017\fI(3J\u0019\n\u0004^8\u0004b'G\u000e\u0004b,G\u000e\u001c+#R?\f2R#+g\u000f\n$T8/I\u00124.B9*C\u000f<9R\u0004b,G\u000e\u0015\u0001)B\t\u0015 T\r5U\u0019\u000b5O#(\u000b0\u00102R*\f\bI\b74J fK\u0019\r)I(f\u0003\u000fWdUl+S\u000f\raH#2\u0006\u000e\u001c5S>(\u0006\u0012\f-J\u0004b'U\u000f";
      int var4 = "/3U\b\u0016,y-5U\u0019\u000b5O#(UR\t3I<#T\b\u0010$U\"+#R?\f2R#+g\u000f\n$T8/I\u0012)3I<#T\b\u0000\u0007O #h\u001d\u0014$\u0005b'U\u000f\u0017++#R1\u0016%S 'T=\n2C>2O\u0013\u0017\fG\"/@\u0019\n5g?5C\u000e\r(I\"\nO\u000f\r\nC5\u001d+#R1\u0016%S 'T=\n2C>2O\u0013\u0017\fI(3J\u0019\n\u0004^8\u0004b'G\u000e\u0004b,G\u000e\u001c+#R?\f2R#+g\u000f\n$T8/I\u00124.B9*C\u000f<9R\u0004b,G\u000e\u0015\u0001)B\t\u0015 T\r5U\u0019\u000b5O#(\u000b0\u00102R*\f\bI\b74J fK\u0019\r)I(f\u0003\u000fWdUl+S\u000f\raH#2\u0006\u000e\u001c5S>(\u0006\u0012\f-J\u0004b'U\u000f"
         .length();
      char var1 = 28;
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 103;
         String var10001 = var2.substring(++var7, var7 + var1);
         byte var10002 = -1;

         while (true) {
            String var8 = a(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     a = var5;
                     return;
                  }

                  var1 = var2.charAt(var7);
                  break;
               default:
                  var5[var3++] = var8;
                  if ((var7 += var1) < var4) {
                     var1 = var2.charAt(var7);
                     continue label24;
                  }

                  var2 = "a$V\f\u001f0Q&*K3,*HP\u0016uQ*&MP\u001d#Q*2D\u0006U!J\"(J\u0011U/J+0I\u001aU\u0011@=3@\r7-A:)@<\u0015,C&\"";
                  var4 = "a$V\f\u001f0Q&*K3,*HP\u0016uQ*&MP\u001d#Q*2D\u0006U!J\"(J\u0011U/J+0I\u001aU\u0011@=3@\r7-A:)@<\u0015,C&\"".length();
                  var1 = '\n';
                  var7 = -1;
            }

            var10000 = 100;
            var10001 = var2.substring(++var7, var7 + var1);
            var10002 = 0;
         }
      }
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 65);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 43;
            case 1 -> 33;
            case 2 -> 65;
            case 3 -> 27;
            case 4 -> 30;
            case 5 -> 38;
            default -> 65;
         });
      }

      return new String(var10001).intern();
   }
}
