authing_ruby 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (505) hide show
  1. checksums.yaml +7 -0
  2. data/authing_ruby.gemspec +30 -0
  3. data/lib/authing_ruby/GraphQLAPI.rb +151 -0
  4. data/lib/authing_ruby/authentication/AuthenticationClient.rb +801 -0
  5. data/lib/authing_ruby/authentication/AuthenticationTokenProvider.rb +42 -0
  6. data/lib/authing_ruby/authentication/BaseAuthenticationClient.rb +28 -0
  7. data/lib/authing_ruby/common/GraphqlClient.rb +39 -0
  8. data/lib/authing_ruby/common/HttpClient.rb +247 -0
  9. data/lib/authing_ruby/common/PublicKeyManager.rb +42 -0
  10. data/lib/authing_ruby/graphql/mutations/bindPhone.gql +53 -0
  11. data/lib/authing_ruby/graphql/mutations/createUser.gql +54 -0
  12. data/lib/authing_ruby/graphql/mutations/deleteUser.gql +6 -0
  13. data/lib/authing_ruby/graphql/mutations/deleteUsers.gql +6 -0
  14. data/lib/authing_ruby/graphql/mutations/loginByEmail.gql +54 -0
  15. data/lib/authing_ruby/graphql/mutations/loginByPhoneCode.gql +54 -0
  16. data/lib/authing_ruby/graphql/mutations/loginByPhonePassword.gql +54 -0
  17. data/lib/authing_ruby/graphql/mutations/loginByUsername.gql +54 -0
  18. data/lib/authing_ruby/graphql/mutations/refreshAccessToken.gql +7 -0
  19. data/lib/authing_ruby/graphql/mutations/registerByEmail.gql +54 -0
  20. data/lib/authing_ruby/graphql/mutations/registerByPhoneCode.gql +54 -0
  21. data/lib/authing_ruby/graphql/mutations/registerByUsername.gql +54 -0
  22. data/lib/authing_ruby/graphql/mutations/resetPassword.gql +6 -0
  23. data/lib/authing_ruby/graphql/mutations/sendEmail.gql +6 -0
  24. data/lib/authing_ruby/graphql/mutations/updatePassword.gql +53 -0
  25. data/lib/authing_ruby/graphql/mutations/updateUser.gql +54 -0
  26. data/lib/authing_ruby/graphql/queries/accessToken.gql +7 -0
  27. data/lib/authing_ruby/graphql/queries/checkLoginStatus.gql +14 -0
  28. data/lib/authing_ruby/graphql/queries/checkPasswordStrength.gql +6 -0
  29. data/lib/authing_ruby/graphql/queries/findUser.gql +64 -0
  30. data/lib/authing_ruby/graphql/queries/isUserExists.gql +13 -0
  31. data/lib/authing_ruby/graphql/queries/user.gql +63 -0
  32. data/lib/authing_ruby/graphql/queries/users.gql +57 -0
  33. data/lib/authing_ruby/management/AclManagementClient.rb +47 -0
  34. data/lib/authing_ruby/management/ApplicationsManagementClient.rb +79 -0
  35. data/lib/authing_ruby/management/ManagementClient.rb +66 -0
  36. data/lib/authing_ruby/management/ManagementTokenProvider.rb +92 -0
  37. data/lib/authing_ruby/management/RolesManagementClient.rb +38 -0
  38. data/lib/authing_ruby/management/UserpoolManagementClient.rb +15 -0
  39. data/lib/authing_ruby/management/UsersManagementClient.rb +161 -0
  40. data/lib/authing_ruby/management/WhitelistManagementClient.rb +1 -0
  41. data/lib/authing_ruby/test/RSA.rb +18 -0
  42. data/lib/authing_ruby/test/helper.rb +15 -0
  43. data/lib/authing_ruby/test/js_sdk_test/1.buildAuthorizeUrl.js +43 -0
  44. data/lib/authing_ruby/test/js_sdk_test/2.buildAuthorizeUrl_PKCE.js +47 -0
  45. data/lib/authing_ruby/test/js_sdk_test/README.md +5 -0
  46. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/CONTRIBUTION.md +23 -0
  47. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/LICENSE +21 -0
  48. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/README.md +303 -0
  49. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js +2 -0
  50. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js.LICENSE.txt +91 -0
  51. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.d.ts +7 -0
  52. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.js +20 -0
  53. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.d.ts +1078 -0
  54. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.js +2801 -0
  55. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
  56. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.js +56 -0
  57. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
  58. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.js +31 -0
  59. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
  60. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.js +250 -0
  61. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
  62. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.js +665 -0
  63. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
  64. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.js +619 -0
  65. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
  66. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.js +179 -0
  67. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.d.ts +331 -0
  68. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.js +69 -0
  69. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.d.ts +14 -0
  70. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.js +125 -0
  71. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.d.ts +19 -0
  72. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.js +149 -0
  73. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.d.ts +18 -0
  74. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.js +81 -0
  75. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.d.ts +110 -0
  76. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.js +1812 -0
  77. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.d.ts +236 -0
  78. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.js +863 -0
  79. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.d.ts +65 -0
  80. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.js +195 -0
  81. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.d.ts +216 -0
  82. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.js +531 -0
  83. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.d.ts +184 -0
  84. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.js +386 -0
  85. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.d.ts +58 -0
  86. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.js +126 -0
  87. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.d.ts +74 -0
  88. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.js +190 -0
  89. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.d.ts +39 -0
  90. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.js +159 -0
  91. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.d.ts +488 -0
  92. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.js +772 -0
  93. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.d.ts +304 -0
  94. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.js +512 -0
  95. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.d.ts +291 -0
  96. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.js +676 -0
  97. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.d.ts +56 -0
  98. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.js +198 -0
  99. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.d.ts +146 -0
  100. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.js +264 -0
  101. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.d.ts +44 -0
  102. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.js +106 -0
  103. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.d.ts +142 -0
  104. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.js +241 -0
  105. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.d.ts +753 -0
  106. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.js +1114 -0
  107. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.d.ts +114 -0
  108. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.js +259 -0
  109. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.d.ts +982 -0
  110. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.js +96 -0
  111. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.d.ts +30 -0
  112. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.js +126 -0
  113. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.d.ts +31 -0
  114. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.js +67 -0
  115. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts +53 -0
  116. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.js +343 -0
  117. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.d.ts +1 -0
  118. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.js +5 -0
  119. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.d.ts +5612 -0
  120. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.js +240 -0
  121. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.d.ts +7 -0
  122. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.js +3 -0
  123. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.d.ts +7 -0
  124. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.js +8 -0
  125. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.d.ts +1078 -0
  126. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.js +2795 -0
  127. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
  128. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.js +53 -0
  129. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
  130. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.js +28 -0
  131. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
  132. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.js +247 -0
  133. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
  134. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.js +662 -0
  135. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
  136. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.js +616 -0
  137. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
  138. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.js +176 -0
  139. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.d.ts +331 -0
  140. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.js +66 -0
  141. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.d.ts +14 -0
  142. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.js +119 -0
  143. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.d.ts +19 -0
  144. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.js +143 -0
  145. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.d.ts +18 -0
  146. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.js +78 -0
  147. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.d.ts +110 -0
  148. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.js +1809 -0
  149. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.d.ts +236 -0
  150. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.js +860 -0
  151. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.d.ts +65 -0
  152. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.js +192 -0
  153. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.d.ts +216 -0
  154. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.js +528 -0
  155. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.d.ts +184 -0
  156. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.js +383 -0
  157. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.d.ts +58 -0
  158. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.js +123 -0
  159. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.d.ts +74 -0
  160. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.js +184 -0
  161. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.d.ts +39 -0
  162. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.js +153 -0
  163. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.d.ts +488 -0
  164. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.js +750 -0
  165. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.d.ts +304 -0
  166. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.js +509 -0
  167. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.d.ts +291 -0
  168. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.js +673 -0
  169. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.d.ts +56 -0
  170. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.js +195 -0
  171. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.d.ts +146 -0
  172. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.js +261 -0
  173. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.d.ts +44 -0
  174. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.js +103 -0
  175. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.d.ts +142 -0
  176. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.js +238 -0
  177. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.d.ts +753 -0
  178. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.js +1111 -0
  179. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.d.ts +114 -0
  180. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.js +256 -0
  181. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.d.ts +982 -0
  182. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.js +93 -0
  183. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.d.ts +30 -0
  184. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.js +123 -0
  185. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.d.ts +31 -0
  186. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.js +62 -0
  187. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts +53 -0
  188. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.js +336 -0
  189. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.d.ts +1 -0
  190. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.js +2 -0
  191. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.d.ts +5612 -0
  192. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.js +237 -0
  193. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.d.ts +7 -0
  194. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.js +1 -0
  195. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.d.ts +7 -0
  196. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.js +30 -0
  197. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.d.ts +1078 -0
  198. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.js +2811 -0
  199. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
  200. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.js +66 -0
  201. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
  202. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.js +41 -0
  203. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
  204. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.js +260 -0
  205. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
  206. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.js +675 -0
  207. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
  208. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.js +629 -0
  209. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
  210. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.js +189 -0
  211. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.d.ts +331 -0
  212. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.js +79 -0
  213. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.d.ts +14 -0
  214. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.js +135 -0
  215. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.d.ts +19 -0
  216. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.js +159 -0
  217. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.d.ts +18 -0
  218. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.js +91 -0
  219. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.d.ts +110 -0
  220. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.js +1822 -0
  221. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.d.ts +236 -0
  222. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.js +873 -0
  223. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.d.ts +65 -0
  224. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.js +205 -0
  225. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.d.ts +216 -0
  226. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.js +541 -0
  227. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.d.ts +184 -0
  228. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.js +396 -0
  229. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.d.ts +58 -0
  230. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.js +136 -0
  231. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.d.ts +74 -0
  232. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.js +200 -0
  233. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.d.ts +39 -0
  234. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.js +169 -0
  235. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.d.ts +488 -0
  236. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.js +782 -0
  237. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.d.ts +304 -0
  238. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.js +522 -0
  239. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.d.ts +291 -0
  240. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.js +686 -0
  241. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.d.ts +56 -0
  242. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.js +208 -0
  243. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.d.ts +146 -0
  244. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.js +274 -0
  245. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.d.ts +44 -0
  246. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.js +116 -0
  247. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.d.ts +142 -0
  248. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.js +251 -0
  249. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.d.ts +753 -0
  250. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.js +1124 -0
  251. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.d.ts +114 -0
  252. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.js +269 -0
  253. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.d.ts +982 -0
  254. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.js +106 -0
  255. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.d.ts +30 -0
  256. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.js +136 -0
  257. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.d.ts +31 -0
  258. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.js +77 -0
  259. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts +53 -0
  260. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.js +353 -0
  261. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.d.ts +1 -0
  262. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.js +15 -0
  263. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.d.ts +5612 -0
  264. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.js +250 -0
  265. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.d.ts +7 -0
  266. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.js +13 -0
  267. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build-doc.js +520 -0
  268. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/CHANGELOG.md +413 -0
  269. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/LICENSE +19 -0
  270. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/README.md +709 -0
  271. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  272. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.js +1715 -0
  273. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.map +1 -0
  274. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.js +3 -0
  275. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.map +1 -0
  276. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.d.ts +157 -0
  277. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.js +1 -0
  278. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/README.md +37 -0
  279. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/http.js +279 -0
  280. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/xhr.js +180 -0
  281. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/axios.js +53 -0
  282. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/Cancel.js +19 -0
  283. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  284. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/isCancel.js +5 -0
  285. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/Axios.js +94 -0
  286. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  287. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/README.md +7 -0
  288. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/buildFullPath.js +20 -0
  289. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/createError.js +18 -0
  290. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  291. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/enhanceError.js +42 -0
  292. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/mergeConfig.js +73 -0
  293. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/settle.js +25 -0
  294. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/transformData.js +20 -0
  295. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/defaults.js +97 -0
  296. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/README.md +7 -0
  297. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/bind.js +11 -0
  298. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/buildURL.js +71 -0
  299. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  300. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/cookies.js +53 -0
  301. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  302. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  303. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  304. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  305. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  306. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/spread.js +27 -0
  307. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/utils.js +344 -0
  308. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/package.json +84 -0
  309. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/LICENSE +18 -0
  310. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/README.md +155 -0
  311. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/http.js +1 -0
  312. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/https.js +1 -0
  313. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/index.js +322 -0
  314. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/package.json +60 -0
  315. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/package.json +129 -0
  316. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tests/index.html +21 -0
  317. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tsconfig.brower.json +45 -0
  318. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tsconfig.node.json +0 -0
  319. data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/webpack.config.js +41 -0
  320. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/CHANGELOG.md +685 -0
  321. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/LICENSE +19 -0
  322. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/README.md +800 -0
  323. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  324. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.js +1756 -0
  325. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.map +1 -0
  326. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.js +3 -0
  327. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.map +1 -0
  328. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.d.ts +161 -0
  329. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.js +1 -0
  330. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/README.md +37 -0
  331. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/http.js +303 -0
  332. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/xhr.js +179 -0
  333. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/axios.js +56 -0
  334. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/Cancel.js +19 -0
  335. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  336. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/isCancel.js +5 -0
  337. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/Axios.js +95 -0
  338. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  339. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/README.md +7 -0
  340. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/buildFullPath.js +20 -0
  341. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/createError.js +18 -0
  342. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  343. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/enhanceError.js +42 -0
  344. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/mergeConfig.js +87 -0
  345. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/settle.js +25 -0
  346. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/transformData.js +20 -0
  347. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/defaults.js +98 -0
  348. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/README.md +7 -0
  349. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/bind.js +11 -0
  350. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/buildURL.js +70 -0
  351. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  352. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/cookies.js +53 -0
  353. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  354. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  355. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAxiosError.js +11 -0
  356. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  357. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  358. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  359. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/spread.js +27 -0
  360. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/utils.js +351 -0
  361. data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/package.json +86 -0
  362. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/CONTRIBUTING.md +28 -0
  363. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/LICENSE +24 -0
  364. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/README.md +249 -0
  365. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/aes.js +234 -0
  366. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/bower.json +35 -0
  367. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/cipher-core.js +890 -0
  368. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/core.js +797 -0
  369. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/crypto-js.js +6059 -0
  370. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
  371. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-base64.js +136 -0
  372. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-hex.js +18 -0
  373. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-latin1.js +18 -0
  374. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf16.js +149 -0
  375. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf8.js +18 -0
  376. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/evpkdf.js +134 -0
  377. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-hex.js +66 -0
  378. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-openssl.js +18 -0
  379. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-md5.js +18 -0
  380. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-ripemd160.js +18 -0
  381. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha1.js +18 -0
  382. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha224.js +18 -0
  383. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha256.js +18 -0
  384. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha3.js +18 -0
  385. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha384.js +18 -0
  386. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha512.js +18 -0
  387. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac.js +143 -0
  388. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/index.js +18 -0
  389. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/lib-typedarrays.js +76 -0
  390. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/md5.js +268 -0
  391. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-cfb.js +80 -0
  392. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
  393. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr.js +58 -0
  394. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ecb.js +40 -0
  395. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ofb.js +54 -0
  396. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/package.json +38 -0
  397. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-ansix923.js +49 -0
  398. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso10126.js +44 -0
  399. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso97971.js +40 -0
  400. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-nopadding.js +30 -0
  401. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-pkcs7.js +18 -0
  402. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-zeropadding.js +47 -0
  403. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pbkdf2.js +145 -0
  404. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit-legacy.js +190 -0
  405. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit.js +192 -0
  406. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rc4.js +139 -0
  407. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/ripemd160.js +267 -0
  408. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha1.js +150 -0
  409. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha224.js +80 -0
  410. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha256.js +199 -0
  411. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha3.js +326 -0
  412. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha384.js +83 -0
  413. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha512.js +326 -0
  414. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/tripledes.js +779 -0
  415. data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/x64-core.js +304 -0
  416. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/CHANGELOG.md +395 -0
  417. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/LICENSE +19 -0
  418. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/Makefile +58 -0
  419. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/README.md +368 -0
  420. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/karma.conf.js +70 -0
  421. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/node.js +1 -0
  422. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/package.json +43 -0
  423. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/browser.js +195 -0
  424. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/debug.js +225 -0
  425. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/index.js +10 -0
  426. data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/node.js +186 -0
  427. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/LICENSE +18 -0
  428. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/README.md +148 -0
  429. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/debug.js +14 -0
  430. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/http.js +1 -0
  431. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/https.js +1 -0
  432. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/index.js +535 -0
  433. data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/package.json +59 -0
  434. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/LICENSE.txt +107 -0
  435. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/README.md +192 -0
  436. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.js +249 -0
  437. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js +2 -0
  438. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js.LICENSE.txt +8 -0
  439. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.d.ts +116 -0
  440. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.js +186 -0
  441. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.d.ts +142 -0
  442. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +315 -0
  443. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.d.ts +3 -0
  444. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.js +3 -0
  445. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.d.ts +51 -0
  446. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +565 -0
  447. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.d.ts +5 -0
  448. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
  449. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.d.ts +3 -0
  450. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.js +64 -0
  451. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.d.ts +9 -0
  452. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
  453. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.d.ts +9778 -0
  454. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.js +1962 -0
  455. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.d.ts +3 -0
  456. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.js +76 -0
  457. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.d.ts +98 -0
  458. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1754 -0
  459. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.d.ts +10 -0
  460. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +46 -0
  461. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.d.ts +3 -0
  462. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.js +76 -0
  463. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.d.ts +23 -0
  464. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +373 -0
  465. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.d.ts +7 -0
  466. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.js +58 -0
  467. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1593 -0
  468. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js +69 -0
  469. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/version.json +1 -0
  470. data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/package.json +49 -0
  471. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/Gruntfile.js +78 -0
  472. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/LICENSE +21 -0
  473. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/README.md +55 -0
  474. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/bower.json +20 -0
  475. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.js +125 -0
  476. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.min.js +1 -0
  477. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/jwt-decode.html +2 -0
  478. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/atob.js +38 -0
  479. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/base64_url_decode.js +33 -0
  480. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/index.js +26 -0
  481. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/package.json +37 -0
  482. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/standalone.js +16 -0
  483. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test/tests.js +53 -0
  484. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test_harness.html +29 -0
  485. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem.yml +46 -0
  486. data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem_dev.yml +1 -0
  487. data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/index.js +152 -0
  488. data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/license.md +21 -0
  489. data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/package.json +37 -0
  490. data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/readme.md +51 -0
  491. data/lib/authing_ruby/test/js_sdk_test/package-lock.json +177 -0
  492. data/lib/authing_ruby/test/js_sdk_test/package.json +15 -0
  493. data/lib/authing_ruby/test/mini_test/TestApplicationsManagementClient.rb +85 -0
  494. data/lib/authing_ruby/test/mini_test/TestAuthenticationClient.rb +232 -0
  495. data/lib/authing_ruby/test/mini_test/TestAuthenticationClientProtocal.rb +238 -0
  496. data/lib/authing_ruby/test/mini_test/TestHttpClient.rb +53 -0
  497. data/lib/authing_ruby/test/mini_test/TestManagementClient.rb +193 -0
  498. data/lib/authing_ruby/test/mini_test/TestManagementTokenProvider.rb +49 -0
  499. data/lib/authing_ruby/test/mini_test/TestNaiveHttpClient.rb +33 -0
  500. data/lib/authing_ruby/test/mini_test/TestSMSandEmail.rb +101 -0
  501. data/lib/authing_ruby/test/mini_test/TestUtils.rb +35 -0
  502. data/lib/authing_ruby/utils/utils.rb +40 -0
  503. data/lib/authing_ruby/version.rb +6 -0
  504. data/lib/authing_ruby.rb +14 -0
  505. metadata +694 -0
@@ -0,0 +1,1715 @@
1
+ /* axios v0.19.2 | (c) 2020 by Matt Zabriskie */
2
+ (function webpackUniversalModuleDefinition(root, factory) {
3
+ if(typeof exports === 'object' && typeof module === 'object')
4
+ module.exports = factory();
5
+ else if(typeof define === 'function' && define.amd)
6
+ define([], factory);
7
+ else if(typeof exports === 'object')
8
+ exports["axios"] = factory();
9
+ else
10
+ root["axios"] = factory();
11
+ })(this, function() {
12
+ return /******/ (function(modules) { // webpackBootstrap
13
+ /******/ // The module cache
14
+ /******/ var installedModules = {};
15
+ /******/
16
+ /******/ // The require function
17
+ /******/ function __webpack_require__(moduleId) {
18
+ /******/
19
+ /******/ // Check if module is in cache
20
+ /******/ if(installedModules[moduleId])
21
+ /******/ return installedModules[moduleId].exports;
22
+ /******/
23
+ /******/ // Create a new module (and put it into the cache)
24
+ /******/ var module = installedModules[moduleId] = {
25
+ /******/ exports: {},
26
+ /******/ id: moduleId,
27
+ /******/ loaded: false
28
+ /******/ };
29
+ /******/
30
+ /******/ // Execute the module function
31
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
32
+ /******/
33
+ /******/ // Flag the module as loaded
34
+ /******/ module.loaded = true;
35
+ /******/
36
+ /******/ // Return the exports of the module
37
+ /******/ return module.exports;
38
+ /******/ }
39
+ /******/
40
+ /******/
41
+ /******/ // expose the modules object (__webpack_modules__)
42
+ /******/ __webpack_require__.m = modules;
43
+ /******/
44
+ /******/ // expose the module cache
45
+ /******/ __webpack_require__.c = installedModules;
46
+ /******/
47
+ /******/ // __webpack_public_path__
48
+ /******/ __webpack_require__.p = "";
49
+ /******/
50
+ /******/ // Load entry module and return exports
51
+ /******/ return __webpack_require__(0);
52
+ /******/ })
53
+ /************************************************************************/
54
+ /******/ ([
55
+ /* 0 */
56
+ /***/ (function(module, exports, __webpack_require__) {
57
+
58
+ module.exports = __webpack_require__(1);
59
+
60
+ /***/ }),
61
+ /* 1 */
62
+ /***/ (function(module, exports, __webpack_require__) {
63
+
64
+ 'use strict';
65
+
66
+ var utils = __webpack_require__(2);
67
+ var bind = __webpack_require__(3);
68
+ var Axios = __webpack_require__(4);
69
+ var mergeConfig = __webpack_require__(22);
70
+ var defaults = __webpack_require__(10);
71
+
72
+ /**
73
+ * Create an instance of Axios
74
+ *
75
+ * @param {Object} defaultConfig The default config for the instance
76
+ * @return {Axios} A new instance of Axios
77
+ */
78
+ function createInstance(defaultConfig) {
79
+ var context = new Axios(defaultConfig);
80
+ var instance = bind(Axios.prototype.request, context);
81
+
82
+ // Copy axios.prototype to instance
83
+ utils.extend(instance, Axios.prototype, context);
84
+
85
+ // Copy context to instance
86
+ utils.extend(instance, context);
87
+
88
+ return instance;
89
+ }
90
+
91
+ // Create the default instance to be exported
92
+ var axios = createInstance(defaults);
93
+
94
+ // Expose Axios class to allow class inheritance
95
+ axios.Axios = Axios;
96
+
97
+ // Factory for creating new instances
98
+ axios.create = function create(instanceConfig) {
99
+ return createInstance(mergeConfig(axios.defaults, instanceConfig));
100
+ };
101
+
102
+ // Expose Cancel & CancelToken
103
+ axios.Cancel = __webpack_require__(23);
104
+ axios.CancelToken = __webpack_require__(24);
105
+ axios.isCancel = __webpack_require__(9);
106
+
107
+ // Expose all/spread
108
+ axios.all = function all(promises) {
109
+ return Promise.all(promises);
110
+ };
111
+ axios.spread = __webpack_require__(25);
112
+
113
+ module.exports = axios;
114
+
115
+ // Allow use of default import syntax in TypeScript
116
+ module.exports.default = axios;
117
+
118
+
119
+ /***/ }),
120
+ /* 2 */
121
+ /***/ (function(module, exports, __webpack_require__) {
122
+
123
+ 'use strict';
124
+
125
+ var bind = __webpack_require__(3);
126
+
127
+ /*global toString:true*/
128
+
129
+ // utils is a library of generic helper functions non-specific to axios
130
+
131
+ var toString = Object.prototype.toString;
132
+
133
+ /**
134
+ * Determine if a value is an Array
135
+ *
136
+ * @param {Object} val The value to test
137
+ * @returns {boolean} True if value is an Array, otherwise false
138
+ */
139
+ function isArray(val) {
140
+ return toString.call(val) === '[object Array]';
141
+ }
142
+
143
+ /**
144
+ * Determine if a value is undefined
145
+ *
146
+ * @param {Object} val The value to test
147
+ * @returns {boolean} True if the value is undefined, otherwise false
148
+ */
149
+ function isUndefined(val) {
150
+ return typeof val === 'undefined';
151
+ }
152
+
153
+ /**
154
+ * Determine if a value is a Buffer
155
+ *
156
+ * @param {Object} val The value to test
157
+ * @returns {boolean} True if value is a Buffer, otherwise false
158
+ */
159
+ function isBuffer(val) {
160
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
161
+ && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
162
+ }
163
+
164
+ /**
165
+ * Determine if a value is an ArrayBuffer
166
+ *
167
+ * @param {Object} val The value to test
168
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
169
+ */
170
+ function isArrayBuffer(val) {
171
+ return toString.call(val) === '[object ArrayBuffer]';
172
+ }
173
+
174
+ /**
175
+ * Determine if a value is a FormData
176
+ *
177
+ * @param {Object} val The value to test
178
+ * @returns {boolean} True if value is an FormData, otherwise false
179
+ */
180
+ function isFormData(val) {
181
+ return (typeof FormData !== 'undefined') && (val instanceof FormData);
182
+ }
183
+
184
+ /**
185
+ * Determine if a value is a view on an ArrayBuffer
186
+ *
187
+ * @param {Object} val The value to test
188
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
189
+ */
190
+ function isArrayBufferView(val) {
191
+ var result;
192
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
193
+ result = ArrayBuffer.isView(val);
194
+ } else {
195
+ result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
196
+ }
197
+ return result;
198
+ }
199
+
200
+ /**
201
+ * Determine if a value is a String
202
+ *
203
+ * @param {Object} val The value to test
204
+ * @returns {boolean} True if value is a String, otherwise false
205
+ */
206
+ function isString(val) {
207
+ return typeof val === 'string';
208
+ }
209
+
210
+ /**
211
+ * Determine if a value is a Number
212
+ *
213
+ * @param {Object} val The value to test
214
+ * @returns {boolean} True if value is a Number, otherwise false
215
+ */
216
+ function isNumber(val) {
217
+ return typeof val === 'number';
218
+ }
219
+
220
+ /**
221
+ * Determine if a value is an Object
222
+ *
223
+ * @param {Object} val The value to test
224
+ * @returns {boolean} True if value is an Object, otherwise false
225
+ */
226
+ function isObject(val) {
227
+ return val !== null && typeof val === 'object';
228
+ }
229
+
230
+ /**
231
+ * Determine if a value is a Date
232
+ *
233
+ * @param {Object} val The value to test
234
+ * @returns {boolean} True if value is a Date, otherwise false
235
+ */
236
+ function isDate(val) {
237
+ return toString.call(val) === '[object Date]';
238
+ }
239
+
240
+ /**
241
+ * Determine if a value is a File
242
+ *
243
+ * @param {Object} val The value to test
244
+ * @returns {boolean} True if value is a File, otherwise false
245
+ */
246
+ function isFile(val) {
247
+ return toString.call(val) === '[object File]';
248
+ }
249
+
250
+ /**
251
+ * Determine if a value is a Blob
252
+ *
253
+ * @param {Object} val The value to test
254
+ * @returns {boolean} True if value is a Blob, otherwise false
255
+ */
256
+ function isBlob(val) {
257
+ return toString.call(val) === '[object Blob]';
258
+ }
259
+
260
+ /**
261
+ * Determine if a value is a Function
262
+ *
263
+ * @param {Object} val The value to test
264
+ * @returns {boolean} True if value is a Function, otherwise false
265
+ */
266
+ function isFunction(val) {
267
+ return toString.call(val) === '[object Function]';
268
+ }
269
+
270
+ /**
271
+ * Determine if a value is a Stream
272
+ *
273
+ * @param {Object} val The value to test
274
+ * @returns {boolean} True if value is a Stream, otherwise false
275
+ */
276
+ function isStream(val) {
277
+ return isObject(val) && isFunction(val.pipe);
278
+ }
279
+
280
+ /**
281
+ * Determine if a value is a URLSearchParams object
282
+ *
283
+ * @param {Object} val The value to test
284
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
285
+ */
286
+ function isURLSearchParams(val) {
287
+ return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
288
+ }
289
+
290
+ /**
291
+ * Trim excess whitespace off the beginning and end of a string
292
+ *
293
+ * @param {String} str The String to trim
294
+ * @returns {String} The String freed of excess whitespace
295
+ */
296
+ function trim(str) {
297
+ return str.replace(/^\s*/, '').replace(/\s*$/, '');
298
+ }
299
+
300
+ /**
301
+ * Determine if we're running in a standard browser environment
302
+ *
303
+ * This allows axios to run in a web worker, and react-native.
304
+ * Both environments support XMLHttpRequest, but not fully standard globals.
305
+ *
306
+ * web workers:
307
+ * typeof window -> undefined
308
+ * typeof document -> undefined
309
+ *
310
+ * react-native:
311
+ * navigator.product -> 'ReactNative'
312
+ * nativescript
313
+ * navigator.product -> 'NativeScript' or 'NS'
314
+ */
315
+ function isStandardBrowserEnv() {
316
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
317
+ navigator.product === 'NativeScript' ||
318
+ navigator.product === 'NS')) {
319
+ return false;
320
+ }
321
+ return (
322
+ typeof window !== 'undefined' &&
323
+ typeof document !== 'undefined'
324
+ );
325
+ }
326
+
327
+ /**
328
+ * Iterate over an Array or an Object invoking a function for each item.
329
+ *
330
+ * If `obj` is an Array callback will be called passing
331
+ * the value, index, and complete array for each item.
332
+ *
333
+ * If 'obj' is an Object callback will be called passing
334
+ * the value, key, and complete object for each property.
335
+ *
336
+ * @param {Object|Array} obj The object to iterate
337
+ * @param {Function} fn The callback to invoke for each item
338
+ */
339
+ function forEach(obj, fn) {
340
+ // Don't bother if no value provided
341
+ if (obj === null || typeof obj === 'undefined') {
342
+ return;
343
+ }
344
+
345
+ // Force an array if not already something iterable
346
+ if (typeof obj !== 'object') {
347
+ /*eslint no-param-reassign:0*/
348
+ obj = [obj];
349
+ }
350
+
351
+ if (isArray(obj)) {
352
+ // Iterate over array values
353
+ for (var i = 0, l = obj.length; i < l; i++) {
354
+ fn.call(null, obj[i], i, obj);
355
+ }
356
+ } else {
357
+ // Iterate over object keys
358
+ for (var key in obj) {
359
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
360
+ fn.call(null, obj[key], key, obj);
361
+ }
362
+ }
363
+ }
364
+ }
365
+
366
+ /**
367
+ * Accepts varargs expecting each argument to be an object, then
368
+ * immutably merges the properties of each object and returns result.
369
+ *
370
+ * When multiple objects contain the same key the later object in
371
+ * the arguments list will take precedence.
372
+ *
373
+ * Example:
374
+ *
375
+ * ```js
376
+ * var result = merge({foo: 123}, {foo: 456});
377
+ * console.log(result.foo); // outputs 456
378
+ * ```
379
+ *
380
+ * @param {Object} obj1 Object to merge
381
+ * @returns {Object} Result of all merge properties
382
+ */
383
+ function merge(/* obj1, obj2, obj3, ... */) {
384
+ var result = {};
385
+ function assignValue(val, key) {
386
+ if (typeof result[key] === 'object' && typeof val === 'object') {
387
+ result[key] = merge(result[key], val);
388
+ } else {
389
+ result[key] = val;
390
+ }
391
+ }
392
+
393
+ for (var i = 0, l = arguments.length; i < l; i++) {
394
+ forEach(arguments[i], assignValue);
395
+ }
396
+ return result;
397
+ }
398
+
399
+ /**
400
+ * Function equal to merge with the difference being that no reference
401
+ * to original objects is kept.
402
+ *
403
+ * @see merge
404
+ * @param {Object} obj1 Object to merge
405
+ * @returns {Object} Result of all merge properties
406
+ */
407
+ function deepMerge(/* obj1, obj2, obj3, ... */) {
408
+ var result = {};
409
+ function assignValue(val, key) {
410
+ if (typeof result[key] === 'object' && typeof val === 'object') {
411
+ result[key] = deepMerge(result[key], val);
412
+ } else if (typeof val === 'object') {
413
+ result[key] = deepMerge({}, val);
414
+ } else {
415
+ result[key] = val;
416
+ }
417
+ }
418
+
419
+ for (var i = 0, l = arguments.length; i < l; i++) {
420
+ forEach(arguments[i], assignValue);
421
+ }
422
+ return result;
423
+ }
424
+
425
+ /**
426
+ * Extends object a by mutably adding to it the properties of object b.
427
+ *
428
+ * @param {Object} a The object to be extended
429
+ * @param {Object} b The object to copy properties from
430
+ * @param {Object} thisArg The object to bind function to
431
+ * @return {Object} The resulting value of object a
432
+ */
433
+ function extend(a, b, thisArg) {
434
+ forEach(b, function assignValue(val, key) {
435
+ if (thisArg && typeof val === 'function') {
436
+ a[key] = bind(val, thisArg);
437
+ } else {
438
+ a[key] = val;
439
+ }
440
+ });
441
+ return a;
442
+ }
443
+
444
+ module.exports = {
445
+ isArray: isArray,
446
+ isArrayBuffer: isArrayBuffer,
447
+ isBuffer: isBuffer,
448
+ isFormData: isFormData,
449
+ isArrayBufferView: isArrayBufferView,
450
+ isString: isString,
451
+ isNumber: isNumber,
452
+ isObject: isObject,
453
+ isUndefined: isUndefined,
454
+ isDate: isDate,
455
+ isFile: isFile,
456
+ isBlob: isBlob,
457
+ isFunction: isFunction,
458
+ isStream: isStream,
459
+ isURLSearchParams: isURLSearchParams,
460
+ isStandardBrowserEnv: isStandardBrowserEnv,
461
+ forEach: forEach,
462
+ merge: merge,
463
+ deepMerge: deepMerge,
464
+ extend: extend,
465
+ trim: trim
466
+ };
467
+
468
+
469
+ /***/ }),
470
+ /* 3 */
471
+ /***/ (function(module, exports) {
472
+
473
+ 'use strict';
474
+
475
+ module.exports = function bind(fn, thisArg) {
476
+ return function wrap() {
477
+ var args = new Array(arguments.length);
478
+ for (var i = 0; i < args.length; i++) {
479
+ args[i] = arguments[i];
480
+ }
481
+ return fn.apply(thisArg, args);
482
+ };
483
+ };
484
+
485
+
486
+ /***/ }),
487
+ /* 4 */
488
+ /***/ (function(module, exports, __webpack_require__) {
489
+
490
+ 'use strict';
491
+
492
+ var utils = __webpack_require__(2);
493
+ var buildURL = __webpack_require__(5);
494
+ var InterceptorManager = __webpack_require__(6);
495
+ var dispatchRequest = __webpack_require__(7);
496
+ var mergeConfig = __webpack_require__(22);
497
+
498
+ /**
499
+ * Create a new instance of Axios
500
+ *
501
+ * @param {Object} instanceConfig The default config for the instance
502
+ */
503
+ function Axios(instanceConfig) {
504
+ this.defaults = instanceConfig;
505
+ this.interceptors = {
506
+ request: new InterceptorManager(),
507
+ response: new InterceptorManager()
508
+ };
509
+ }
510
+
511
+ /**
512
+ * Dispatch a request
513
+ *
514
+ * @param {Object} config The config specific for this request (merged with this.defaults)
515
+ */
516
+ Axios.prototype.request = function request(config) {
517
+ /*eslint no-param-reassign:0*/
518
+ // Allow for axios('example/url'[, config]) a la fetch API
519
+ if (typeof config === 'string') {
520
+ config = arguments[1] || {};
521
+ config.url = arguments[0];
522
+ } else {
523
+ config = config || {};
524
+ }
525
+
526
+ config = mergeConfig(this.defaults, config);
527
+
528
+ // Set config.method
529
+ if (config.method) {
530
+ config.method = config.method.toLowerCase();
531
+ } else if (this.defaults.method) {
532
+ config.method = this.defaults.method.toLowerCase();
533
+ } else {
534
+ config.method = 'get';
535
+ }
536
+
537
+ // Hook up interceptors middleware
538
+ var chain = [dispatchRequest, undefined];
539
+ var promise = Promise.resolve(config);
540
+
541
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
542
+ chain.unshift(interceptor.fulfilled, interceptor.rejected);
543
+ });
544
+
545
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
546
+ chain.push(interceptor.fulfilled, interceptor.rejected);
547
+ });
548
+
549
+ while (chain.length) {
550
+ promise = promise.then(chain.shift(), chain.shift());
551
+ }
552
+
553
+ return promise;
554
+ };
555
+
556
+ Axios.prototype.getUri = function getUri(config) {
557
+ config = mergeConfig(this.defaults, config);
558
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
559
+ };
560
+
561
+ // Provide aliases for supported request methods
562
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
563
+ /*eslint func-names:0*/
564
+ Axios.prototype[method] = function(url, config) {
565
+ return this.request(utils.merge(config || {}, {
566
+ method: method,
567
+ url: url
568
+ }));
569
+ };
570
+ });
571
+
572
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
573
+ /*eslint func-names:0*/
574
+ Axios.prototype[method] = function(url, data, config) {
575
+ return this.request(utils.merge(config || {}, {
576
+ method: method,
577
+ url: url,
578
+ data: data
579
+ }));
580
+ };
581
+ });
582
+
583
+ module.exports = Axios;
584
+
585
+
586
+ /***/ }),
587
+ /* 5 */
588
+ /***/ (function(module, exports, __webpack_require__) {
589
+
590
+ 'use strict';
591
+
592
+ var utils = __webpack_require__(2);
593
+
594
+ function encode(val) {
595
+ return encodeURIComponent(val).
596
+ replace(/%40/gi, '@').
597
+ replace(/%3A/gi, ':').
598
+ replace(/%24/g, '$').
599
+ replace(/%2C/gi, ',').
600
+ replace(/%20/g, '+').
601
+ replace(/%5B/gi, '[').
602
+ replace(/%5D/gi, ']');
603
+ }
604
+
605
+ /**
606
+ * Build a URL by appending params to the end
607
+ *
608
+ * @param {string} url The base of the url (e.g., http://www.google.com)
609
+ * @param {object} [params] The params to be appended
610
+ * @returns {string} The formatted url
611
+ */
612
+ module.exports = function buildURL(url, params, paramsSerializer) {
613
+ /*eslint no-param-reassign:0*/
614
+ if (!params) {
615
+ return url;
616
+ }
617
+
618
+ var serializedParams;
619
+ if (paramsSerializer) {
620
+ serializedParams = paramsSerializer(params);
621
+ } else if (utils.isURLSearchParams(params)) {
622
+ serializedParams = params.toString();
623
+ } else {
624
+ var parts = [];
625
+
626
+ utils.forEach(params, function serialize(val, key) {
627
+ if (val === null || typeof val === 'undefined') {
628
+ return;
629
+ }
630
+
631
+ if (utils.isArray(val)) {
632
+ key = key + '[]';
633
+ } else {
634
+ val = [val];
635
+ }
636
+
637
+ utils.forEach(val, function parseValue(v) {
638
+ if (utils.isDate(v)) {
639
+ v = v.toISOString();
640
+ } else if (utils.isObject(v)) {
641
+ v = JSON.stringify(v);
642
+ }
643
+ parts.push(encode(key) + '=' + encode(v));
644
+ });
645
+ });
646
+
647
+ serializedParams = parts.join('&');
648
+ }
649
+
650
+ if (serializedParams) {
651
+ var hashmarkIndex = url.indexOf('#');
652
+ if (hashmarkIndex !== -1) {
653
+ url = url.slice(0, hashmarkIndex);
654
+ }
655
+
656
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
657
+ }
658
+
659
+ return url;
660
+ };
661
+
662
+
663
+ /***/ }),
664
+ /* 6 */
665
+ /***/ (function(module, exports, __webpack_require__) {
666
+
667
+ 'use strict';
668
+
669
+ var utils = __webpack_require__(2);
670
+
671
+ function InterceptorManager() {
672
+ this.handlers = [];
673
+ }
674
+
675
+ /**
676
+ * Add a new interceptor to the stack
677
+ *
678
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
679
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
680
+ *
681
+ * @return {Number} An ID used to remove interceptor later
682
+ */
683
+ InterceptorManager.prototype.use = function use(fulfilled, rejected) {
684
+ this.handlers.push({
685
+ fulfilled: fulfilled,
686
+ rejected: rejected
687
+ });
688
+ return this.handlers.length - 1;
689
+ };
690
+
691
+ /**
692
+ * Remove an interceptor from the stack
693
+ *
694
+ * @param {Number} id The ID that was returned by `use`
695
+ */
696
+ InterceptorManager.prototype.eject = function eject(id) {
697
+ if (this.handlers[id]) {
698
+ this.handlers[id] = null;
699
+ }
700
+ };
701
+
702
+ /**
703
+ * Iterate over all the registered interceptors
704
+ *
705
+ * This method is particularly useful for skipping over any
706
+ * interceptors that may have become `null` calling `eject`.
707
+ *
708
+ * @param {Function} fn The function to call for each interceptor
709
+ */
710
+ InterceptorManager.prototype.forEach = function forEach(fn) {
711
+ utils.forEach(this.handlers, function forEachHandler(h) {
712
+ if (h !== null) {
713
+ fn(h);
714
+ }
715
+ });
716
+ };
717
+
718
+ module.exports = InterceptorManager;
719
+
720
+
721
+ /***/ }),
722
+ /* 7 */
723
+ /***/ (function(module, exports, __webpack_require__) {
724
+
725
+ 'use strict';
726
+
727
+ var utils = __webpack_require__(2);
728
+ var transformData = __webpack_require__(8);
729
+ var isCancel = __webpack_require__(9);
730
+ var defaults = __webpack_require__(10);
731
+
732
+ /**
733
+ * Throws a `Cancel` if cancellation has been requested.
734
+ */
735
+ function throwIfCancellationRequested(config) {
736
+ if (config.cancelToken) {
737
+ config.cancelToken.throwIfRequested();
738
+ }
739
+ }
740
+
741
+ /**
742
+ * Dispatch a request to the server using the configured adapter.
743
+ *
744
+ * @param {object} config The config that is to be used for the request
745
+ * @returns {Promise} The Promise to be fulfilled
746
+ */
747
+ module.exports = function dispatchRequest(config) {
748
+ throwIfCancellationRequested(config);
749
+
750
+ // Ensure headers exist
751
+ config.headers = config.headers || {};
752
+
753
+ // Transform request data
754
+ config.data = transformData(
755
+ config.data,
756
+ config.headers,
757
+ config.transformRequest
758
+ );
759
+
760
+ // Flatten headers
761
+ config.headers = utils.merge(
762
+ config.headers.common || {},
763
+ config.headers[config.method] || {},
764
+ config.headers
765
+ );
766
+
767
+ utils.forEach(
768
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
769
+ function cleanHeaderConfig(method) {
770
+ delete config.headers[method];
771
+ }
772
+ );
773
+
774
+ var adapter = config.adapter || defaults.adapter;
775
+
776
+ return adapter(config).then(function onAdapterResolution(response) {
777
+ throwIfCancellationRequested(config);
778
+
779
+ // Transform response data
780
+ response.data = transformData(
781
+ response.data,
782
+ response.headers,
783
+ config.transformResponse
784
+ );
785
+
786
+ return response;
787
+ }, function onAdapterRejection(reason) {
788
+ if (!isCancel(reason)) {
789
+ throwIfCancellationRequested(config);
790
+
791
+ // Transform response data
792
+ if (reason && reason.response) {
793
+ reason.response.data = transformData(
794
+ reason.response.data,
795
+ reason.response.headers,
796
+ config.transformResponse
797
+ );
798
+ }
799
+ }
800
+
801
+ return Promise.reject(reason);
802
+ });
803
+ };
804
+
805
+
806
+ /***/ }),
807
+ /* 8 */
808
+ /***/ (function(module, exports, __webpack_require__) {
809
+
810
+ 'use strict';
811
+
812
+ var utils = __webpack_require__(2);
813
+
814
+ /**
815
+ * Transform the data for a request or a response
816
+ *
817
+ * @param {Object|String} data The data to be transformed
818
+ * @param {Array} headers The headers for the request or response
819
+ * @param {Array|Function} fns A single function or Array of functions
820
+ * @returns {*} The resulting transformed data
821
+ */
822
+ module.exports = function transformData(data, headers, fns) {
823
+ /*eslint no-param-reassign:0*/
824
+ utils.forEach(fns, function transform(fn) {
825
+ data = fn(data, headers);
826
+ });
827
+
828
+ return data;
829
+ };
830
+
831
+
832
+ /***/ }),
833
+ /* 9 */
834
+ /***/ (function(module, exports) {
835
+
836
+ 'use strict';
837
+
838
+ module.exports = function isCancel(value) {
839
+ return !!(value && value.__CANCEL__);
840
+ };
841
+
842
+
843
+ /***/ }),
844
+ /* 10 */
845
+ /***/ (function(module, exports, __webpack_require__) {
846
+
847
+ 'use strict';
848
+
849
+ var utils = __webpack_require__(2);
850
+ var normalizeHeaderName = __webpack_require__(11);
851
+
852
+ var DEFAULT_CONTENT_TYPE = {
853
+ 'Content-Type': 'application/x-www-form-urlencoded'
854
+ };
855
+
856
+ function setContentTypeIfUnset(headers, value) {
857
+ if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
858
+ headers['Content-Type'] = value;
859
+ }
860
+ }
861
+
862
+ function getDefaultAdapter() {
863
+ var adapter;
864
+ if (typeof XMLHttpRequest !== 'undefined') {
865
+ // For browsers use XHR adapter
866
+ adapter = __webpack_require__(12);
867
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
868
+ // For node use HTTP adapter
869
+ adapter = __webpack_require__(12);
870
+ }
871
+ return adapter;
872
+ }
873
+
874
+ var defaults = {
875
+ adapter: getDefaultAdapter(),
876
+
877
+ transformRequest: [function transformRequest(data, headers) {
878
+ normalizeHeaderName(headers, 'Accept');
879
+ normalizeHeaderName(headers, 'Content-Type');
880
+ if (utils.isFormData(data) ||
881
+ utils.isArrayBuffer(data) ||
882
+ utils.isBuffer(data) ||
883
+ utils.isStream(data) ||
884
+ utils.isFile(data) ||
885
+ utils.isBlob(data)
886
+ ) {
887
+ return data;
888
+ }
889
+ if (utils.isArrayBufferView(data)) {
890
+ return data.buffer;
891
+ }
892
+ if (utils.isURLSearchParams(data)) {
893
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
894
+ return data.toString();
895
+ }
896
+ if (utils.isObject(data)) {
897
+ setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
898
+ return JSON.stringify(data);
899
+ }
900
+ return data;
901
+ }],
902
+
903
+ transformResponse: [function transformResponse(data) {
904
+ /*eslint no-param-reassign:0*/
905
+ if (typeof data === 'string') {
906
+ try {
907
+ data = JSON.parse(data);
908
+ } catch (e) { /* Ignore */ }
909
+ }
910
+ return data;
911
+ }],
912
+
913
+ /**
914
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
915
+ * timeout is not created.
916
+ */
917
+ timeout: 0,
918
+
919
+ xsrfCookieName: 'XSRF-TOKEN',
920
+ xsrfHeaderName: 'X-XSRF-TOKEN',
921
+
922
+ maxContentLength: -1,
923
+
924
+ validateStatus: function validateStatus(status) {
925
+ return status >= 200 && status < 300;
926
+ }
927
+ };
928
+
929
+ defaults.headers = {
930
+ common: {
931
+ 'Accept': 'application/json, text/plain, */*'
932
+ }
933
+ };
934
+
935
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
936
+ defaults.headers[method] = {};
937
+ });
938
+
939
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
940
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
941
+ });
942
+
943
+ module.exports = defaults;
944
+
945
+
946
+ /***/ }),
947
+ /* 11 */
948
+ /***/ (function(module, exports, __webpack_require__) {
949
+
950
+ 'use strict';
951
+
952
+ var utils = __webpack_require__(2);
953
+
954
+ module.exports = function normalizeHeaderName(headers, normalizedName) {
955
+ utils.forEach(headers, function processHeader(value, name) {
956
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
957
+ headers[normalizedName] = value;
958
+ delete headers[name];
959
+ }
960
+ });
961
+ };
962
+
963
+
964
+ /***/ }),
965
+ /* 12 */
966
+ /***/ (function(module, exports, __webpack_require__) {
967
+
968
+ 'use strict';
969
+
970
+ var utils = __webpack_require__(2);
971
+ var settle = __webpack_require__(13);
972
+ var buildURL = __webpack_require__(5);
973
+ var buildFullPath = __webpack_require__(16);
974
+ var parseHeaders = __webpack_require__(19);
975
+ var isURLSameOrigin = __webpack_require__(20);
976
+ var createError = __webpack_require__(14);
977
+
978
+ module.exports = function xhrAdapter(config) {
979
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
980
+ var requestData = config.data;
981
+ var requestHeaders = config.headers;
982
+
983
+ if (utils.isFormData(requestData)) {
984
+ delete requestHeaders['Content-Type']; // Let the browser set it
985
+ }
986
+
987
+ var request = new XMLHttpRequest();
988
+
989
+ // HTTP basic authentication
990
+ if (config.auth) {
991
+ var username = config.auth.username || '';
992
+ var password = config.auth.password || '';
993
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
994
+ }
995
+
996
+ var fullPath = buildFullPath(config.baseURL, config.url);
997
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
998
+
999
+ // Set the request timeout in MS
1000
+ request.timeout = config.timeout;
1001
+
1002
+ // Listen for ready state
1003
+ request.onreadystatechange = function handleLoad() {
1004
+ if (!request || request.readyState !== 4) {
1005
+ return;
1006
+ }
1007
+
1008
+ // The request errored out and we didn't get a response, this will be
1009
+ // handled by onerror instead
1010
+ // With one exception: request that using file: protocol, most browsers
1011
+ // will return status as 0 even though it's a successful request
1012
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
1013
+ return;
1014
+ }
1015
+
1016
+ // Prepare the response
1017
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
1018
+ var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
1019
+ var response = {
1020
+ data: responseData,
1021
+ status: request.status,
1022
+ statusText: request.statusText,
1023
+ headers: responseHeaders,
1024
+ config: config,
1025
+ request: request
1026
+ };
1027
+
1028
+ settle(resolve, reject, response);
1029
+
1030
+ // Clean up request
1031
+ request = null;
1032
+ };
1033
+
1034
+ // Handle browser request cancellation (as opposed to a manual cancellation)
1035
+ request.onabort = function handleAbort() {
1036
+ if (!request) {
1037
+ return;
1038
+ }
1039
+
1040
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
1041
+
1042
+ // Clean up request
1043
+ request = null;
1044
+ };
1045
+
1046
+ // Handle low level network errors
1047
+ request.onerror = function handleError() {
1048
+ // Real errors are hidden from us by the browser
1049
+ // onerror should only fire if it's a network error
1050
+ reject(createError('Network Error', config, null, request));
1051
+
1052
+ // Clean up request
1053
+ request = null;
1054
+ };
1055
+
1056
+ // Handle timeout
1057
+ request.ontimeout = function handleTimeout() {
1058
+ var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
1059
+ if (config.timeoutErrorMessage) {
1060
+ timeoutErrorMessage = config.timeoutErrorMessage;
1061
+ }
1062
+ reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
1063
+ request));
1064
+
1065
+ // Clean up request
1066
+ request = null;
1067
+ };
1068
+
1069
+ // Add xsrf header
1070
+ // This is only done if running in a standard browser environment.
1071
+ // Specifically not if we're in a web worker, or react-native.
1072
+ if (utils.isStandardBrowserEnv()) {
1073
+ var cookies = __webpack_require__(21);
1074
+
1075
+ // Add xsrf header
1076
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
1077
+ cookies.read(config.xsrfCookieName) :
1078
+ undefined;
1079
+
1080
+ if (xsrfValue) {
1081
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
1082
+ }
1083
+ }
1084
+
1085
+ // Add headers to the request
1086
+ if ('setRequestHeader' in request) {
1087
+ utils.forEach(requestHeaders, function setRequestHeader(val, key) {
1088
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
1089
+ // Remove Content-Type if data is undefined
1090
+ delete requestHeaders[key];
1091
+ } else {
1092
+ // Otherwise add header to the request
1093
+ request.setRequestHeader(key, val);
1094
+ }
1095
+ });
1096
+ }
1097
+
1098
+ // Add withCredentials to request if needed
1099
+ if (!utils.isUndefined(config.withCredentials)) {
1100
+ request.withCredentials = !!config.withCredentials;
1101
+ }
1102
+
1103
+ // Add responseType to request if needed
1104
+ if (config.responseType) {
1105
+ try {
1106
+ request.responseType = config.responseType;
1107
+ } catch (e) {
1108
+ // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
1109
+ // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
1110
+ if (config.responseType !== 'json') {
1111
+ throw e;
1112
+ }
1113
+ }
1114
+ }
1115
+
1116
+ // Handle progress if needed
1117
+ if (typeof config.onDownloadProgress === 'function') {
1118
+ request.addEventListener('progress', config.onDownloadProgress);
1119
+ }
1120
+
1121
+ // Not all browsers support upload events
1122
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
1123
+ request.upload.addEventListener('progress', config.onUploadProgress);
1124
+ }
1125
+
1126
+ if (config.cancelToken) {
1127
+ // Handle cancellation
1128
+ config.cancelToken.promise.then(function onCanceled(cancel) {
1129
+ if (!request) {
1130
+ return;
1131
+ }
1132
+
1133
+ request.abort();
1134
+ reject(cancel);
1135
+ // Clean up request
1136
+ request = null;
1137
+ });
1138
+ }
1139
+
1140
+ if (requestData === undefined) {
1141
+ requestData = null;
1142
+ }
1143
+
1144
+ // Send the request
1145
+ request.send(requestData);
1146
+ });
1147
+ };
1148
+
1149
+
1150
+ /***/ }),
1151
+ /* 13 */
1152
+ /***/ (function(module, exports, __webpack_require__) {
1153
+
1154
+ 'use strict';
1155
+
1156
+ var createError = __webpack_require__(14);
1157
+
1158
+ /**
1159
+ * Resolve or reject a Promise based on response status.
1160
+ *
1161
+ * @param {Function} resolve A function that resolves the promise.
1162
+ * @param {Function} reject A function that rejects the promise.
1163
+ * @param {object} response The response.
1164
+ */
1165
+ module.exports = function settle(resolve, reject, response) {
1166
+ var validateStatus = response.config.validateStatus;
1167
+ if (!validateStatus || validateStatus(response.status)) {
1168
+ resolve(response);
1169
+ } else {
1170
+ reject(createError(
1171
+ 'Request failed with status code ' + response.status,
1172
+ response.config,
1173
+ null,
1174
+ response.request,
1175
+ response
1176
+ ));
1177
+ }
1178
+ };
1179
+
1180
+
1181
+ /***/ }),
1182
+ /* 14 */
1183
+ /***/ (function(module, exports, __webpack_require__) {
1184
+
1185
+ 'use strict';
1186
+
1187
+ var enhanceError = __webpack_require__(15);
1188
+
1189
+ /**
1190
+ * Create an Error with the specified message, config, error code, request and response.
1191
+ *
1192
+ * @param {string} message The error message.
1193
+ * @param {Object} config The config.
1194
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
1195
+ * @param {Object} [request] The request.
1196
+ * @param {Object} [response] The response.
1197
+ * @returns {Error} The created error.
1198
+ */
1199
+ module.exports = function createError(message, config, code, request, response) {
1200
+ var error = new Error(message);
1201
+ return enhanceError(error, config, code, request, response);
1202
+ };
1203
+
1204
+
1205
+ /***/ }),
1206
+ /* 15 */
1207
+ /***/ (function(module, exports) {
1208
+
1209
+ 'use strict';
1210
+
1211
+ /**
1212
+ * Update an Error with the specified config, error code, and response.
1213
+ *
1214
+ * @param {Error} error The error to update.
1215
+ * @param {Object} config The config.
1216
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
1217
+ * @param {Object} [request] The request.
1218
+ * @param {Object} [response] The response.
1219
+ * @returns {Error} The error.
1220
+ */
1221
+ module.exports = function enhanceError(error, config, code, request, response) {
1222
+ error.config = config;
1223
+ if (code) {
1224
+ error.code = code;
1225
+ }
1226
+
1227
+ error.request = request;
1228
+ error.response = response;
1229
+ error.isAxiosError = true;
1230
+
1231
+ error.toJSON = function() {
1232
+ return {
1233
+ // Standard
1234
+ message: this.message,
1235
+ name: this.name,
1236
+ // Microsoft
1237
+ description: this.description,
1238
+ number: this.number,
1239
+ // Mozilla
1240
+ fileName: this.fileName,
1241
+ lineNumber: this.lineNumber,
1242
+ columnNumber: this.columnNumber,
1243
+ stack: this.stack,
1244
+ // Axios
1245
+ config: this.config,
1246
+ code: this.code
1247
+ };
1248
+ };
1249
+ return error;
1250
+ };
1251
+
1252
+
1253
+ /***/ }),
1254
+ /* 16 */
1255
+ /***/ (function(module, exports, __webpack_require__) {
1256
+
1257
+ 'use strict';
1258
+
1259
+ var isAbsoluteURL = __webpack_require__(17);
1260
+ var combineURLs = __webpack_require__(18);
1261
+
1262
+ /**
1263
+ * Creates a new URL by combining the baseURL with the requestedURL,
1264
+ * only when the requestedURL is not already an absolute URL.
1265
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
1266
+ *
1267
+ * @param {string} baseURL The base URL
1268
+ * @param {string} requestedURL Absolute or relative URL to combine
1269
+ * @returns {string} The combined full path
1270
+ */
1271
+ module.exports = function buildFullPath(baseURL, requestedURL) {
1272
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
1273
+ return combineURLs(baseURL, requestedURL);
1274
+ }
1275
+ return requestedURL;
1276
+ };
1277
+
1278
+
1279
+ /***/ }),
1280
+ /* 17 */
1281
+ /***/ (function(module, exports) {
1282
+
1283
+ 'use strict';
1284
+
1285
+ /**
1286
+ * Determines whether the specified URL is absolute
1287
+ *
1288
+ * @param {string} url The URL to test
1289
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
1290
+ */
1291
+ module.exports = function isAbsoluteURL(url) {
1292
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
1293
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
1294
+ // by any combination of letters, digits, plus, period, or hyphen.
1295
+ return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
1296
+ };
1297
+
1298
+
1299
+ /***/ }),
1300
+ /* 18 */
1301
+ /***/ (function(module, exports) {
1302
+
1303
+ 'use strict';
1304
+
1305
+ /**
1306
+ * Creates a new URL by combining the specified URLs
1307
+ *
1308
+ * @param {string} baseURL The base URL
1309
+ * @param {string} relativeURL The relative URL
1310
+ * @returns {string} The combined URL
1311
+ */
1312
+ module.exports = function combineURLs(baseURL, relativeURL) {
1313
+ return relativeURL
1314
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
1315
+ : baseURL;
1316
+ };
1317
+
1318
+
1319
+ /***/ }),
1320
+ /* 19 */
1321
+ /***/ (function(module, exports, __webpack_require__) {
1322
+
1323
+ 'use strict';
1324
+
1325
+ var utils = __webpack_require__(2);
1326
+
1327
+ // Headers whose duplicates are ignored by node
1328
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1329
+ var ignoreDuplicateOf = [
1330
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1331
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1332
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1333
+ 'referer', 'retry-after', 'user-agent'
1334
+ ];
1335
+
1336
+ /**
1337
+ * Parse headers into an object
1338
+ *
1339
+ * ```
1340
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1341
+ * Content-Type: application/json
1342
+ * Connection: keep-alive
1343
+ * Transfer-Encoding: chunked
1344
+ * ```
1345
+ *
1346
+ * @param {String} headers Headers needing to be parsed
1347
+ * @returns {Object} Headers parsed into an object
1348
+ */
1349
+ module.exports = function parseHeaders(headers) {
1350
+ var parsed = {};
1351
+ var key;
1352
+ var val;
1353
+ var i;
1354
+
1355
+ if (!headers) { return parsed; }
1356
+
1357
+ utils.forEach(headers.split('\n'), function parser(line) {
1358
+ i = line.indexOf(':');
1359
+ key = utils.trim(line.substr(0, i)).toLowerCase();
1360
+ val = utils.trim(line.substr(i + 1));
1361
+
1362
+ if (key) {
1363
+ if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
1364
+ return;
1365
+ }
1366
+ if (key === 'set-cookie') {
1367
+ parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
1368
+ } else {
1369
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1370
+ }
1371
+ }
1372
+ });
1373
+
1374
+ return parsed;
1375
+ };
1376
+
1377
+
1378
+ /***/ }),
1379
+ /* 20 */
1380
+ /***/ (function(module, exports, __webpack_require__) {
1381
+
1382
+ 'use strict';
1383
+
1384
+ var utils = __webpack_require__(2);
1385
+
1386
+ module.exports = (
1387
+ utils.isStandardBrowserEnv() ?
1388
+
1389
+ // Standard browser envs have full support of the APIs needed to test
1390
+ // whether the request URL is of the same origin as current location.
1391
+ (function standardBrowserEnv() {
1392
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
1393
+ var urlParsingNode = document.createElement('a');
1394
+ var originURL;
1395
+
1396
+ /**
1397
+ * Parse a URL to discover it's components
1398
+ *
1399
+ * @param {String} url The URL to be parsed
1400
+ * @returns {Object}
1401
+ */
1402
+ function resolveURL(url) {
1403
+ var href = url;
1404
+
1405
+ if (msie) {
1406
+ // IE needs attribute set twice to normalize properties
1407
+ urlParsingNode.setAttribute('href', href);
1408
+ href = urlParsingNode.href;
1409
+ }
1410
+
1411
+ urlParsingNode.setAttribute('href', href);
1412
+
1413
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
1414
+ return {
1415
+ href: urlParsingNode.href,
1416
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
1417
+ host: urlParsingNode.host,
1418
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
1419
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
1420
+ hostname: urlParsingNode.hostname,
1421
+ port: urlParsingNode.port,
1422
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
1423
+ urlParsingNode.pathname :
1424
+ '/' + urlParsingNode.pathname
1425
+ };
1426
+ }
1427
+
1428
+ originURL = resolveURL(window.location.href);
1429
+
1430
+ /**
1431
+ * Determine if a URL shares the same origin as the current location
1432
+ *
1433
+ * @param {String} requestURL The URL to test
1434
+ * @returns {boolean} True if URL shares the same origin, otherwise false
1435
+ */
1436
+ return function isURLSameOrigin(requestURL) {
1437
+ var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
1438
+ return (parsed.protocol === originURL.protocol &&
1439
+ parsed.host === originURL.host);
1440
+ };
1441
+ })() :
1442
+
1443
+ // Non standard browser envs (web workers, react-native) lack needed support.
1444
+ (function nonStandardBrowserEnv() {
1445
+ return function isURLSameOrigin() {
1446
+ return true;
1447
+ };
1448
+ })()
1449
+ );
1450
+
1451
+
1452
+ /***/ }),
1453
+ /* 21 */
1454
+ /***/ (function(module, exports, __webpack_require__) {
1455
+
1456
+ 'use strict';
1457
+
1458
+ var utils = __webpack_require__(2);
1459
+
1460
+ module.exports = (
1461
+ utils.isStandardBrowserEnv() ?
1462
+
1463
+ // Standard browser envs support document.cookie
1464
+ (function standardBrowserEnv() {
1465
+ return {
1466
+ write: function write(name, value, expires, path, domain, secure) {
1467
+ var cookie = [];
1468
+ cookie.push(name + '=' + encodeURIComponent(value));
1469
+
1470
+ if (utils.isNumber(expires)) {
1471
+ cookie.push('expires=' + new Date(expires).toGMTString());
1472
+ }
1473
+
1474
+ if (utils.isString(path)) {
1475
+ cookie.push('path=' + path);
1476
+ }
1477
+
1478
+ if (utils.isString(domain)) {
1479
+ cookie.push('domain=' + domain);
1480
+ }
1481
+
1482
+ if (secure === true) {
1483
+ cookie.push('secure');
1484
+ }
1485
+
1486
+ document.cookie = cookie.join('; ');
1487
+ },
1488
+
1489
+ read: function read(name) {
1490
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
1491
+ return (match ? decodeURIComponent(match[3]) : null);
1492
+ },
1493
+
1494
+ remove: function remove(name) {
1495
+ this.write(name, '', Date.now() - 86400000);
1496
+ }
1497
+ };
1498
+ })() :
1499
+
1500
+ // Non standard browser env (web workers, react-native) lack needed support.
1501
+ (function nonStandardBrowserEnv() {
1502
+ return {
1503
+ write: function write() {},
1504
+ read: function read() { return null; },
1505
+ remove: function remove() {}
1506
+ };
1507
+ })()
1508
+ );
1509
+
1510
+
1511
+ /***/ }),
1512
+ /* 22 */
1513
+ /***/ (function(module, exports, __webpack_require__) {
1514
+
1515
+ 'use strict';
1516
+
1517
+ var utils = __webpack_require__(2);
1518
+
1519
+ /**
1520
+ * Config-specific merge-function which creates a new config-object
1521
+ * by merging two configuration objects together.
1522
+ *
1523
+ * @param {Object} config1
1524
+ * @param {Object} config2
1525
+ * @returns {Object} New object resulting from merging config2 to config1
1526
+ */
1527
+ module.exports = function mergeConfig(config1, config2) {
1528
+ // eslint-disable-next-line no-param-reassign
1529
+ config2 = config2 || {};
1530
+ var config = {};
1531
+
1532
+ var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];
1533
+ var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];
1534
+ var defaultToConfig2Keys = [
1535
+ 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
1536
+ 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
1537
+ 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
1538
+ 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',
1539
+ 'httpsAgent', 'cancelToken', 'socketPath'
1540
+ ];
1541
+
1542
+ utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
1543
+ if (typeof config2[prop] !== 'undefined') {
1544
+ config[prop] = config2[prop];
1545
+ }
1546
+ });
1547
+
1548
+ utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {
1549
+ if (utils.isObject(config2[prop])) {
1550
+ config[prop] = utils.deepMerge(config1[prop], config2[prop]);
1551
+ } else if (typeof config2[prop] !== 'undefined') {
1552
+ config[prop] = config2[prop];
1553
+ } else if (utils.isObject(config1[prop])) {
1554
+ config[prop] = utils.deepMerge(config1[prop]);
1555
+ } else if (typeof config1[prop] !== 'undefined') {
1556
+ config[prop] = config1[prop];
1557
+ }
1558
+ });
1559
+
1560
+ utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
1561
+ if (typeof config2[prop] !== 'undefined') {
1562
+ config[prop] = config2[prop];
1563
+ } else if (typeof config1[prop] !== 'undefined') {
1564
+ config[prop] = config1[prop];
1565
+ }
1566
+ });
1567
+
1568
+ var axiosKeys = valueFromConfig2Keys
1569
+ .concat(mergeDeepPropertiesKeys)
1570
+ .concat(defaultToConfig2Keys);
1571
+
1572
+ var otherKeys = Object
1573
+ .keys(config2)
1574
+ .filter(function filterAxiosKeys(key) {
1575
+ return axiosKeys.indexOf(key) === -1;
1576
+ });
1577
+
1578
+ utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {
1579
+ if (typeof config2[prop] !== 'undefined') {
1580
+ config[prop] = config2[prop];
1581
+ } else if (typeof config1[prop] !== 'undefined') {
1582
+ config[prop] = config1[prop];
1583
+ }
1584
+ });
1585
+
1586
+ return config;
1587
+ };
1588
+
1589
+
1590
+ /***/ }),
1591
+ /* 23 */
1592
+ /***/ (function(module, exports) {
1593
+
1594
+ 'use strict';
1595
+
1596
+ /**
1597
+ * A `Cancel` is an object that is thrown when an operation is canceled.
1598
+ *
1599
+ * @class
1600
+ * @param {string=} message The message.
1601
+ */
1602
+ function Cancel(message) {
1603
+ this.message = message;
1604
+ }
1605
+
1606
+ Cancel.prototype.toString = function toString() {
1607
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
1608
+ };
1609
+
1610
+ Cancel.prototype.__CANCEL__ = true;
1611
+
1612
+ module.exports = Cancel;
1613
+
1614
+
1615
+ /***/ }),
1616
+ /* 24 */
1617
+ /***/ (function(module, exports, __webpack_require__) {
1618
+
1619
+ 'use strict';
1620
+
1621
+ var Cancel = __webpack_require__(23);
1622
+
1623
+ /**
1624
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
1625
+ *
1626
+ * @class
1627
+ * @param {Function} executor The executor function.
1628
+ */
1629
+ function CancelToken(executor) {
1630
+ if (typeof executor !== 'function') {
1631
+ throw new TypeError('executor must be a function.');
1632
+ }
1633
+
1634
+ var resolvePromise;
1635
+ this.promise = new Promise(function promiseExecutor(resolve) {
1636
+ resolvePromise = resolve;
1637
+ });
1638
+
1639
+ var token = this;
1640
+ executor(function cancel(message) {
1641
+ if (token.reason) {
1642
+ // Cancellation has already been requested
1643
+ return;
1644
+ }
1645
+
1646
+ token.reason = new Cancel(message);
1647
+ resolvePromise(token.reason);
1648
+ });
1649
+ }
1650
+
1651
+ /**
1652
+ * Throws a `Cancel` if cancellation has been requested.
1653
+ */
1654
+ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1655
+ if (this.reason) {
1656
+ throw this.reason;
1657
+ }
1658
+ };
1659
+
1660
+ /**
1661
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1662
+ * cancels the `CancelToken`.
1663
+ */
1664
+ CancelToken.source = function source() {
1665
+ var cancel;
1666
+ var token = new CancelToken(function executor(c) {
1667
+ cancel = c;
1668
+ });
1669
+ return {
1670
+ token: token,
1671
+ cancel: cancel
1672
+ };
1673
+ };
1674
+
1675
+ module.exports = CancelToken;
1676
+
1677
+
1678
+ /***/ }),
1679
+ /* 25 */
1680
+ /***/ (function(module, exports) {
1681
+
1682
+ 'use strict';
1683
+
1684
+ /**
1685
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
1686
+ *
1687
+ * Common use case would be to use `Function.prototype.apply`.
1688
+ *
1689
+ * ```js
1690
+ * function f(x, y, z) {}
1691
+ * var args = [1, 2, 3];
1692
+ * f.apply(null, args);
1693
+ * ```
1694
+ *
1695
+ * With `spread` this example can be re-written.
1696
+ *
1697
+ * ```js
1698
+ * spread(function(x, y, z) {})([1, 2, 3]);
1699
+ * ```
1700
+ *
1701
+ * @param {Function} callback
1702
+ * @returns {Function}
1703
+ */
1704
+ module.exports = function spread(callback) {
1705
+ return function wrap(arr) {
1706
+ return callback.apply(null, arr);
1707
+ };
1708
+ };
1709
+
1710
+
1711
+ /***/ })
1712
+ /******/ ])
1713
+ });
1714
+ ;
1715
+ //# sourceMappingURL=axios.map