package com.l7tech.common.http.prov.apache.components;

import com.l7tech.common.http.GenericHttpException;
import com.l7tech.common.http.GenericHttpRequestParams;
import com.l7tech.common.http.GenericHttpResponse;
import com.l7tech.common.http.RerunnableHttpRequest;
import com.l7tech.common.mime.ContentTypeHeader;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import org.apache.hc.client5.http.classic.HttpClient;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
import org.apache.hc.client5.http.entity.UrlEncodedFormEntity;
import org.apache.hc.client5.http.protocol.HttpClientContext;
import org.apache.hc.core5.http.message.BasicNameValuePair;

class e implements RerunnableHttpRequest {
   private HttpUriRequestBase a;
   private boolean b;
   final HttpUriRequestBase val$httpMethod;
   final ContentTypeHeader val$rct;
   final Long val$contentLen;
   final GenericHttpRequestParams val$params;
   final URL val$targetUrl;
   final HttpClient val$client;
   final HttpClientContext val$state;
   final HttpComponentsClient this$0;
   private static final String[] c;

   e(
      HttpComponentsClient var1,
      HttpUriRequestBase var2,
      ContentTypeHeader var3,
      Long var4,
      GenericHttpRequestParams var5,
      URL var6,
      HttpClient var7,
      HttpClientContext var8
   ) {
      this.this$0 = var1;
      this.val$httpMethod = var2;
      this.val$rct = var3;
      this.val$contentLen = var4;
      this.val$params = var5;
      this.val$targetUrl = var6;
      this.val$client = var7;
      this.val$state = var8;
      this.a = this.val$httpMethod;
      this.b = false;
   }

   @Override
   public void setInputStream(InputStream var1) {
      try {
         if (this.a == null) {
            throw new IllegalStateException(c[1]);
         }
      } catch (IllegalStateException var4) {
         throw a(var4);
      }

      try {
         if (!(this.a instanceof HttpUriRequestBase)) {
            throw new UnsupportedOperationException(c[15]);
         }
      } catch (IllegalStateException var2) {
         throw a(var2);
      }

      try {
         if (this.b) {
            throw new IllegalStateException(c[22]);
         }
      } catch (IllegalStateException var3) {
         throw a(var3);
      }

      this.b = true;
      this.a.setEntity(new g(this.val$rct, this.val$contentLen, this.val$params.isGzipEncode(), var1));
   }

   @Override
   public void addParameters(List<String[]> var1) throws IllegalArgumentException, IllegalStateException {
      try {
         if (this.a == null) {
            HttpComponentsClient.b.warning(c[0]);
            throw new IllegalStateException(c[13]);
         }
      } catch (IllegalArgumentException var6) {
         throw a(var6);
      }

      if (!(this.a instanceof HttpUriRequestBase)) {
         Logger var10000 = HttpComponentsClient.b;
         String var10001 = this.a.getClass().getName();
         String[] var5 = c;
         var10000.warning(var5[8] + var10001);
         throw new IllegalStateException(var5[7]);
      }

      ArrayList var2 = new ArrayList();

      for (String[] var4 : var1) {
         var2.add(new BasicNameValuePair(var4[0], var4[1]));
      }

      UrlEncodedFormEntity var7 = new UrlEncodedFormEntity(var2);
      this.a.setEntity(var7);
   }

   @Override
   public void setInputStreamFactory(RerunnableHttpRequest.InputStreamFactory var1) {
      try {
         if (var1 == null) {
            throw new IllegalArgumentException(c[4]);
         }
      } catch (IllegalStateException var3) {
         throw a(var3);
      }

      try {
         if (this.a == null) {
            throw new IllegalStateException(c[14]);
         }
      } catch (IllegalStateException var5) {
         throw a(var5);
      }

      try {
         if (!(this.a instanceof HttpUriRequestBase)) {
            throw new UnsupportedOperationException(c[10]);
         }
      } catch (IllegalStateException var2) {
         throw a(var2);
      }

      try {
         if (this.b) {
            throw new IllegalStateException(c[17]);
         }
      } catch (IllegalStateException var4) {
         throw a(var4);
      }

      this.b = true;
      this.a.setEntity(new g(this.val$rct, this.val$contentLen, this.val$params.isGzipEncode(), var1));
   }

   @Override
   public GenericHttpResponse getResponse() throws GenericHttpException {
      // $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:
      // 000: aload 0
      // 001: getfield com/l7tech/common/http/prov/apache/components/e.a Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 004: ifnonnull 018
      // 007: new java/lang/IllegalStateException
      // 00a: dup
      // 00b: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 00e: bipush 1
      // 00f: aaload
      // 010: invokespecial java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
      // 013: athrow
      // 014: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 017: athrow
      // 018: aload 0
      // 019: getfield com/l7tech/common/http/prov/apache/components/e.val$targetUrl Ljava/net/URL;
      // 01c: invokestatic com/l7tech/common/http/prov/apache/components/HttpComponentsUtils.checkUrl (Ljava/net/URL;)V
      // 01f: aload 0
      // 020: getfield com/l7tech/common/http/prov/apache/components/e.this$0 Lcom/l7tech/common/http/prov/apache/components/HttpComponentsClient;
      // 023: invokevirtual com/l7tech/common/http/prov/apache/components/HttpComponentsClient.a ()V
      // 026: aload 0
      // 027: getfield com/l7tech/common/http/prov/apache/components/e.a Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 02a: aload 0
      // 02b: getfield com/l7tech/common/http/prov/apache/components/e.this$0 Lcom/l7tech/common/http/prov/apache/components/HttpComponentsClient;
      // 02e: aload 0
      // 02f: getfield com/l7tech/common/http/prov/apache/components/e.val$params Lcom/l7tech/common/http/GenericHttpRequestParams;
      // 032: invokevirtual com/l7tech/common/http/prov/apache/components/HttpComponentsClient.c (Lcom/l7tech/common/http/GenericHttpRequestParams;)Lorg/apache/hc/client5/http/config/RequestConfig;
      // 035: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.setConfig (Lorg/apache/hc/client5/http/config/RequestConfig;)V
      // 038: aload 0
      // 039: getfield com/l7tech/common/http/prov/apache/components/e.val$client Lorg/apache/hc/client5/http/classic/HttpClient;
      // 03c: aload 0
      // 03d: getfield com/l7tech/common/http/prov/apache/components/e.a Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 040: aload 0
      // 041: getfield com/l7tech/common/http/prov/apache/components/e.val$state Lorg/apache/hc/client5/http/protocol/HttpClientContext;
      // 044: invokeinterface org/apache/hc/client5/http/classic/HttpClient.execute (Lorg/apache/hc/core5/http/ClassicHttpRequest;Lorg/apache/hc/core5/http/protocol/HttpContext;)Lorg/apache/hc/core5/http/HttpResponse; 3
      // 049: checkcast org/apache/hc/core5/http/ClassicHttpResponse
      // 04c: astore 3
      // 04d: aload 3
      // 04e: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 051: astore 16
      // 053: aload 16
      // 055: bipush 5
      // 056: aaload
      // 057: invokeinterface org/apache/hc/core5/http/ClassicHttpResponse.getFirstHeader (Ljava/lang/String;)Lorg/apache/hc/core5/http/Header; 2
      // 05c: astore 4
      // 05e: aload 4
      // 060: ifnull 074
      // 063: aload 4
      // 065: invokeinterface org/apache/hc/core5/http/Header.getValue ()Ljava/lang/String; 1
      // 06a: ifnonnull 07c
      // 06d: goto 074
      // 070: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 073: athrow
      // 074: aconst_null
      // 075: goto 086
      // 078: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 07b: athrow
      // 07c: aload 4
      // 07e: invokeinterface org/apache/hc/core5/http/Header.getValue ()Ljava/lang/String; 1
      // 083: invokestatic com/l7tech/common/mime/ContentTypeHeader.create (Ljava/lang/String;)Lcom/l7tech/common/mime/ContentTypeHeader;
      // 086: astore 1
      // 087: aload 3
      // 088: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 08b: astore 16
      // 08d: aload 16
      // 08f: bipush 2
      // 090: aaload
      // 091: invokeinterface org/apache/hc/core5/http/ClassicHttpResponse.getFirstHeader (Ljava/lang/String;)Lorg/apache/hc/core5/http/Header; 2
      // 096: astore 5
      // 098: aload 5
      // 09a: ifnull 0ae
      // 09d: aload 5
      // 09f: invokeinterface org/apache/hc/core5/http/Header.getValue ()Ljava/lang/String; 1
      // 0a4: ifnonnull 0b6
      // 0a7: goto 0ae
      // 0aa: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 0ad: athrow
      // 0ae: aconst_null
      // 0af: goto 0c3
      // 0b2: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 0b5: athrow
      // 0b6: aload 5
      // 0b8: invokeinterface org/apache/hc/core5/http/Header.getValue ()Ljava/lang/String; 1
      // 0bd: invokestatic com/l7tech/common/mime/MimeHeader.parseNumericValue (Ljava/lang/String;)J
      // 0c0: invokestatic java/lang/Long.valueOf (J)Ljava/lang/Long;
      // 0c3: astore 2
      // 0c4: new com/l7tech/common/http/prov/apache/components/c
      // 0c7: dup
      // 0c8: aload 0
      // 0c9: aload 3
      // 0ca: aload 1
      // 0cb: aload 2
      // 0cc: invokespecial com/l7tech/common/http/prov/apache/components/c.<init> (Lcom/l7tech/common/http/prov/apache/components/e;Lorg/apache/hc/core5/http/ClassicHttpResponse;Lcom/l7tech/common/mime/ContentTypeHeader;Ljava/lang/Long;)V
      // 0cf: astore 6
      // 0d1: aload 0
      // 0d2: aconst_null
      // 0d3: putfield com/l7tech/common/http/prov/apache/components/e.a Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 0d6: aload 6
      // 0d8: areturn
      // 0d9: astore 3
      // 0da: new com/l7tech/common/http/GenericHttpException
      // 0dd: dup
      // 0de: aload 0
      // 0df: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 0e2: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 0e5: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 0e8: aload 3
      // 0e9: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 0ec: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 0ef: astore 16
      // 0f1: aload 16
      // 0f3: bipush 19
      // 0f5: aaload
      // 0f6: dup_x2
      // 0f7: pop
      // 0f8: aload 16
      // 0fa: bipush 21
      // 0fc: aaload
      // 0fd: swap
      // 0fe: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001" ]
      // 103: aload 3
      // 104: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 107: athrow
      // 108: astore 4
      // 10a: new java/lang/RuntimeException
      // 10d: dup
      // 10e: aload 4
      // 110: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 113: athrow
      // 114: astore 3
      // 115: aload 0
      // 116: getfield com/l7tech/common/http/prov/apache/components/e.val$state Lorg/apache/hc/client5/http/protocol/HttpClientContext;
      // 119: invokevirtual org/apache/hc/client5/http/protocol/HttpClientContext.getRequestConfig ()Lorg/apache/hc/client5/http/config/RequestConfig;
      // 11c: astore 4
      // 11e: new com/l7tech/common/http/GenericHttpException
      // 121: dup
      // 122: aload 0
      // 123: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 126: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 129: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 12c: aload 3
      // 12d: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 130: aload 4
      // 132: ifnull 147
      // 135: aload 4
      // 137: invokevirtual org/apache/hc/client5/http/config/RequestConfig.getConnectionRequestTimeout ()Lorg/apache/hc/core5/util/Timeout;
      // 13a: invokevirtual org/apache/hc/core5/util/Timeout.getDuration ()J
      // 13d: invokestatic java/lang/String.valueOf (J)Ljava/lang/String;
      // 140: goto 14b
      // 143: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 146: athrow
      // 147: bipush 0
      // 148: invokestatic java/lang/Integer.valueOf (I)Ljava/lang/Integer;
      // 14b: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 14e: astore 7
      // 150: astore 8
      // 152: astore 9
      // 154: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 157: astore 16
      // 159: aload 16
      // 15b: bipush 20
      // 15d: aaload
      // 15e: aload 9
      // 160: aload 16
      // 162: bipush 11
      // 164: aaload
      // 165: aload 8
      // 167: aload 16
      // 169: bipush 9
      // 16b: aaload
      // 16c: aload 7
      // 16e: aload 16
      // 170: bipush 6
      // 172: aaload
      // 173: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001\u0001\u0001\u0001" ]
      // 178: aload 3
      // 179: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 17c: athrow
      // 17d: astore 5
      // 17f: new java/lang/RuntimeException
      // 182: dup
      // 183: aload 5
      // 185: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 188: athrow
      // 189: astore 3
      // 18a: aload 0
      // 18b: getfield com/l7tech/common/http/prov/apache/components/e.val$state Lorg/apache/hc/client5/http/protocol/HttpClientContext;
      // 18e: invokevirtual org/apache/hc/client5/http/protocol/HttpClientContext.getRequestConfig ()Lorg/apache/hc/client5/http/config/RequestConfig;
      // 191: astore 4
      // 193: new com/l7tech/common/http/GenericHttpException
      // 196: dup
      // 197: aload 0
      // 198: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 19b: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 19e: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 1a1: aload 3
      // 1a2: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 1a5: aload 4
      // 1a7: ifnull 1bc
      // 1aa: aload 4
      // 1ac: invokevirtual org/apache/hc/client5/http/config/RequestConfig.getResponseTimeout ()Lorg/apache/hc/core5/util/Timeout;
      // 1af: invokevirtual org/apache/hc/core5/util/Timeout.getDuration ()J
      // 1b2: invokestatic java/lang/String.valueOf (J)Ljava/lang/String;
      // 1b5: goto 1c0
      // 1b8: invokestatic com/l7tech/common/http/prov/apache/components/e.a (Ljava/lang/RuntimeException;)Ljava/lang/RuntimeException;
      // 1bb: athrow
      // 1bc: bipush 0
      // 1bd: invokestatic java/lang/Integer.valueOf (I)Ljava/lang/Integer;
      // 1c0: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 1c3: astore 10
      // 1c5: astore 11
      // 1c7: astore 12
      // 1c9: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 1cc: astore 16
      // 1ce: aload 16
      // 1d0: bipush 20
      // 1d2: aaload
      // 1d3: aload 12
      // 1d5: aload 16
      // 1d7: bipush 11
      // 1d9: aaload
      // 1da: aload 11
      // 1dc: aload 16
      // 1de: bipush 12
      // 1e0: aaload
      // 1e1: aload 10
      // 1e3: aload 16
      // 1e5: bipush 16
      // 1e7: aaload
      // 1e8: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001\u0001\u0001\u0001" ]
      // 1ed: aload 3
      // 1ee: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 1f1: athrow
      // 1f2: astore 5
      // 1f4: new java/lang/RuntimeException
      // 1f7: dup
      // 1f8: aload 5
      // 1fa: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 1fd: athrow
      // 1fe: astore 3
      // 1ff: aload 0
      // 200: getfield com/l7tech/common/http/prov/apache/components/e.val$targetUrl Ljava/net/URL;
      // 203: invokevirtual java/net/URL.getFile ()Ljava/lang/String;
      // 206: invokestatic com/l7tech/util/ValidationUtils.isValidUriString (Ljava/lang/String;)Ljava/lang/String;
      // 209: astore 4
      // 20b: aload 4
      // 20d: ifnonnull 214
      // 210: ldc ""
      // 212: astore 4
      // 214: new com/l7tech/common/http/GenericHttpException
      // 217: dup
      // 218: aload 0
      // 219: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 21c: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 21f: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 222: aload 3
      // 223: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 226: aload 4
      // 228: astore 13
      // 22a: astore 14
      // 22c: astore 15
      // 22e: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 231: astore 16
      // 233: aload 16
      // 235: bipush 20
      // 237: aaload
      // 238: aload 15
      // 23a: aload 16
      // 23c: bipush 11
      // 23e: aaload
      // 23f: aload 14
      // 241: aload 16
      // 243: bipush 18
      // 245: aaload
      // 246: aload 13
      // 248: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001\u0001\u0001" ]
      // 24d: aload 3
      // 24e: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 251: athrow
      // 252: astore 5
      // 254: new java/lang/RuntimeException
      // 257: dup
      // 258: aload 5
      // 25a: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 25d: athrow
      // 25e: astore 3
      // 25f: new com/l7tech/common/http/GenericHttpException
      // 262: dup
      // 263: aload 0
      // 264: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 267: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 26a: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 26d: aload 3
      // 26e: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 271: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 274: astore 16
      // 276: aload 16
      // 278: bipush 20
      // 27a: aaload
      // 27b: dup_x2
      // 27c: pop
      // 27d: aload 16
      // 27f: bipush 11
      // 281: aaload
      // 282: swap
      // 283: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001" ]
      // 288: aload 3
      // 289: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 28c: athrow
      // 28d: astore 4
      // 28f: new java/lang/RuntimeException
      // 292: dup
      // 293: aload 4
      // 295: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 298: athrow
      // 299: astore 3
      // 29a: new com/l7tech/common/http/GenericHttpException
      // 29d: dup
      // 29e: aload 0
      // 29f: getfield com/l7tech/common/http/prov/apache/components/e.val$httpMethod Lorg/apache/hc/client5/http/classic/methods/HttpUriRequestBase;
      // 2a2: invokevirtual org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.getUri ()Ljava/net/URI;
      // 2a5: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 2a8: aload 3
      // 2a9: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 2ac: getstatic com/l7tech/common/http/prov/apache/components/e.c [Ljava/lang/String;
      // 2af: astore 16
      // 2b1: aload 16
      // 2b3: bipush 20
      // 2b5: aaload
      // 2b6: dup_x2
      // 2b7: pop
      // 2b8: aload 16
      // 2ba: bipush 3
      // 2bb: aaload
      // 2bc: swap
      // 2bd: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001\u0001\u0001" ]
      // 2c2: aload 3
      // 2c3: invokespecial com/l7tech/common/http/GenericHttpException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 2c6: athrow
      // 2c7: astore 4
      // 2c9: new java/lang/RuntimeException
      // 2cc: dup
      // 2cd: aload 4
      // 2cf: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 2d2: athrow
      // try (69 -> 77): 77 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (67 -> 72): 73 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (45 -> 53): 53 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (43 -> 48): 49 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (0 -> 10): 10 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (18 -> 96): 97 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (18 -> 96): 97 com/l7tech/common/io/UnsupportedTlsCiphersException
      // try (98 -> 121): 121 java/net/URISyntaxException
      // try (18 -> 96): 127 org/apache/hc/client5/http/ConnectTimeoutException
      // try (132 -> 147): 147 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (132 -> 176): 176 java/net/URISyntaxException
      // try (18 -> 96): 182 java/net/SocketTimeoutException
      // try (187 -> 202): 202 com/l7tech/common/io/UnsupportedTlsVersionsException
      // try (187 -> 231): 231 java/net/URISyntaxException
      // try (18 -> 96): 237 org/apache/hc/client5/http/ClientProtocolException
      // try (247 -> 277): 277 java/net/URISyntaxException
      // try (18 -> 96): 283 java/io/IOException
      // try (284 -> 307): 307 java/net/URISyntaxException
      // try (18 -> 96): 313 java/lang/NumberFormatException
      // try (314 -> 337): 337 java/net/URISyntaxException
   }

   @Override
   public void close() {
      try {
         if (this.a != null) {
            this.a.reset();
            this.a = null;
         }
      } catch (IllegalStateException var2) {
         throw a(var2);
      }

      try {
         if (this.this$0.t != null) {
            this.this$0.t.cancel();
            this.this$0.t = null;
         }
      } catch (IllegalStateException var1) {
         throw a(var1);
      }
   }

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

   static {
      String[] var5 = new String[23];
      int var3 = 0;
      String var2 = "\b \u0004&\u0012^\u0000\u0004d\t\u0005SO\u0000\u0005(\u0005\u0012SN\u0004\u000f+\u0012\u0013SA\u0004\u001d,\u000f\u0012SE\u0012I%\u0013\u0005\u001aK\u000f\f $=,\t\u0005S^\u0004\u00181\u0005\u0005\u0007\f\t\b7@\u0017\u001f^\u0004\b \u0019V\u0011I\u0004\u0007d\u0003\u001a\u001c_\u0004\r\u000e*+\u000e\u0002\u0016B\u0015D\b\u0005\u0018\u0014X\t\u001aEd\t\u0018\u0005M\r\u0000 @\u0015\u001cB\u0015\f*\u0014V\u001fI\u000f\u000e0\bLS#\u0000*\u0010\u0003\u0007\u007f\u0015\u001b!\u0001\u001b5M\u0002\u001d+\u0012\u000fSA\u0014\u001a0@\u0018\u001cXA\u000b!@\u0018\u0006@\r\f*+\u000e\u0002\u0016B\u0015D\u0010\u0019\u0006\u0016\u0002\u00047\u001e\u0007+\u0014V\u0012BA\f*\u0014\u001f\u0007UA\f*\u0003\u001a\u001c_\b\u0007#@\u001b\u0016X\t\u0006 E\b \u0004&\u0012^\u0000\u0004d\t\u0005SO\u0000\u0005(\u0005\u0012SN\u0014\u001dd\u0014\u001e\u0016\f\b\u00070\u0005\u0004\u001dM\rI)\u0005\u0002\u001bC\u0005I-\u0013V\u001dC\u0015I!\u000e\u0002\u001aX\u0018D!\u000e\u0015\u001fC\u0012\u0000*\u0007VI\f\u000fGd4\u001f\u001eI\u0005I+\u0015\u0002SM\u0015IV&*\f\u000fSI\u000f\u001d-\u0014\u000f^I\u000f\n(\u000f\u0005\u001aB\u0006I6\u0005\u0007\u0006I\u0012\u001dd\r\u0013\u0007D\u000e\r7@^\u0000Y\u0002\u0001d\u0001\u0005S|.:\u0010@\u0019\u0001\f1<\u0010IV\u0001I\u0010\u001c-\u0012\u0013SMA\u000b+\u0004\u000fSe\u000f\u00191\u0014%\u0007^\u0004\b)\u0002Sd\u000fGd4\u001f\u001eI\u0005I+\u0015\u0002SM\u0015I*\u001d,\u0005V\u001bX\u0015\u0019d\r\u0013\u0007D\u000e\rd\u000f\u0014\u0019I\u0002\u001dd\t\u0005SB\u000e\u001dd\u0019\u0013\u0007\f\u0000\u001a7\t\u0011\u001dI\u0005$=,\t\u0005S^\u0004\u00181\u0005\u0005\u0007\f\t\b7@\u0017\u001f^\u0004\b \u0019V\u0011I\u0004\u0007d\u0003\u001a\u001c_\u0004\rV&*\f\u000fSI\u000f\u001d-\u0014\u000f^I\u000f\n(\u000f\u0005\u001aB\u0006I6\u0005\u0007\u0006I\u0012\u001dd\r\u0013\u0007D\u000e\r7@^\u0000Y\u0002\u0001d\u0001\u0005S|.:\u0010@\u0019\u0001\f1<\u0010IV\u0001I\u0010\u001c-\u0012\u0013SMA\u000b+\u0004\u000fSe\u000f\u00191\u0014%\u0007^\u0004\b)\u0002\u00047\u001b;!\u0011\u0003\u0016_\u0015I!\u000e\u0002\u001aX\u0018I%\f\u0004\u0016M\u0005\u0010d\u0013\u0013\u0007\r\u0002Gd$<*\u0001\u0014\u001fIA\u001d+@\u0019\u0011X\u0000\u0000*@>'x1I6\u0005\u0005\u0003C\u000f\u001a!@\u0010\u0001C\fI$<*\u0001\u0014\u001fIA\u001d+@\u0019\u0011X\u0000\u0000*@>'x1I6\u0005\u0005\u0003C\u000f\u001a!@\u0010\u0001C\fI";
      int var4 = "\b \u0004&\u0012^\u0000\u0004d\t\u0005SO\u0000\u0005(\u0005\u0012SN\u0004\u000f+\u0012\u0013SA\u0004\u001d,\u000f\u0012SE\u0012I%\u0013\u0005\u001aK\u000f\f $=,\t\u0005S^\u0004\u00181\u0005\u0005\u0007\f\t\b7@\u0017\u001f^\u0004\b \u0019V\u0011I\u0004\u0007d\u0003\u001a\u001c_\u0004\r\u000e*+\u000e\u0002\u0016B\u0015D\b\u0005\u0018\u0014X\t\u001aEd\t\u0018\u0005M\r\u0000 @\u0015\u001cB\u0015\f*\u0014V\u001fI\u000f\u000e0\bLS#\u0000*\u0010\u0003\u0007\u007f\u0015\u001b!\u0001\u001b5M\u0002\u001d+\u0012\u000fSA\u0014\u001a0@\u0018\u001cXA\u000b!@\u0018\u0006@\r\f*+\u000e\u0002\u0016B\u0015D\u0010\u0019\u0006\u0016\u0002\u00047\u001e\u0007+\u0014V\u0012BA\f*\u0014\u001f\u0007UA\f*\u0003\u001a\u001c_\b\u0007#@\u001b\u0016X\t\u0006 E\b \u0004&\u0012^\u0000\u0004d\t\u0005SO\u0000\u0005(\u0005\u0012SN\u0014\u001dd\u0014\u001e\u0016\f\b\u00070\u0005\u0004\u001dM\rI)\u0005\u0002\u001bC\u0005I-\u0013V\u001dC\u0015I!\u000e\u0002\u001aX\u0018D!\u000e\u0015\u001fC\u0012\u0000*\u0007VI\f\u000fGd4\u001f\u001eI\u0005I+\u0015\u0002SM\u0015IV&*\f\u000fSI\u000f\u001d-\u0014\u000f^I\u000f\n(\u000f\u0005\u001aB\u0006I6\u0005\u0007\u0006I\u0012\u001dd\r\u0013\u0007D\u000e\r7@^\u0000Y\u0002\u0001d\u0001\u0005S|.:\u0010@\u0019\u0001\f1<\u0010IV\u0001I\u0010\u001c-\u0012\u0013SMA\u000b+\u0004\u000fSe\u000f\u00191\u0014%\u0007^\u0004\b)\u0002Sd\u000fGd4\u001f\u001eI\u0005I+\u0015\u0002SM\u0015I*\u001d,\u0005V\u001bX\u0015\u0019d\r\u0013\u0007D\u000e\rd\u000f\u0014\u0019I\u0002\u001dd\t\u0005SB\u000e\u001dd\u0019\u0013\u0007\f\u0000\u001a7\t\u0011\u001dI\u0005$=,\t\u0005S^\u0004\u00181\u0005\u0005\u0007\f\t\b7@\u0017\u001f^\u0004\b \u0019V\u0011I\u0004\u0007d\u0003\u001a\u001c_\u0004\rV&*\f\u000fSI\u000f\u001d-\u0014\u000f^I\u000f\n(\u000f\u0005\u001aB\u0006I6\u0005\u0007\u0006I\u0012\u001dd\r\u0013\u0007D\u000e\r7@^\u0000Y\u0002\u0001d\u0001\u0005S|.:\u0010@\u0019\u0001\f1<\u0010IV\u0001I\u0010\u001c-\u0012\u0013SMA\u000b+\u0004\u000fSe\u000f\u00191\u0014%\u0007^\u0004\b)\u0002\u00047\u001b;!\u0011\u0003\u0016_\u0015I!\u000e\u0002\u001aX\u0018I%\f\u0004\u0016M\u0005\u0010d\u0013\u0013\u0007\r\u0002Gd$<*\u0001\u0014\u001fIA\u001d+@\u0019\u0011X\u0000\u0000*@>'x1I6\u0005\u0005\u0003C\u000f\u001a!@\u0010\u0001C\fI$<*\u0001\u0014\u001fIA\u001d+@\u0019\u0011X\u0000\u0000*@>'x1I6\u0005\u0005\u0003C\u000f\u001a!@\u0010\u0001C\fI"
         .length();
      char var1 = ',';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 37;
         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) {
                     c = var5;
                     return;
                  }

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

                  var2 = "%\u0012\u001bMWgu`)c?Wxtl.n?Szr`;sf\u0012eeq{";
                  var4 = "%\u0012\u001bMWgu`)c?Wxtl.n?Szr`;sf\u0012eeq{".length();
                  var1 = 2;
                  var7 = -1;
            }

            var10000 = 83;
            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] ^ 68);
      }

      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 -> 76;
            case 1 -> 97;
            case 2 -> 69;
            case 3 -> 83;
            case 4 -> 86;
            case 5 -> 9;
            default -> 68;
         });
      }

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