react-native-kookit 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1194) hide show
  1. package/ANDROID_SETUP.md +188 -0
  2. package/EXPO_PLUGIN_README.md +136 -0
  3. package/README.md +219 -3
  4. package/README_NEW.md +133 -0
  5. package/android/src/main/java/expo/modules/kookit/ReactNativeKookitModule.kt +12 -1
  6. package/android/src/main/java/expo/modules/kookit/VolumeKeyReflectionHandler.kt +54 -0
  7. package/app.plugin.js +1 -0
  8. package/build/ReactNativeKookitModule.d.ts +16 -0
  9. package/build/ReactNativeKookitModule.d.ts.map +1 -1
  10. package/build/ReactNativeKookitModule.js.map +1 -1
  11. package/package-with-plugin.json +51 -0
  12. package/package.json +14 -3
  13. package/plugin/build/withVolumeKeyIntercept.d.ts +7 -0
  14. package/plugin/build/withVolumeKeyIntercept.d.ts.map +1 -0
  15. package/plugin/build/withVolumeKeyIntercept.js +143 -0
  16. package/plugin/build/withVolumeKeyIntercept.js.map +1 -0
  17. package/plugin/node_modules/.package-lock.json +752 -0
  18. package/plugin/node_modules/@babel/code-frame/LICENSE +22 -0
  19. package/plugin/node_modules/@babel/code-frame/README.md +19 -0
  20. package/plugin/node_modules/@babel/code-frame/lib/index.js +167 -0
  21. package/plugin/node_modules/@babel/code-frame/package.json +25 -0
  22. package/plugin/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
  23. package/plugin/node_modules/@babel/helper-validator-identifier/README.md +19 -0
  24. package/plugin/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  25. package/plugin/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
  26. package/plugin/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  27. package/plugin/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
  28. package/plugin/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  29. package/plugin/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
  30. package/plugin/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  31. package/plugin/node_modules/@babel/highlight/LICENSE +22 -0
  32. package/plugin/node_modules/@babel/highlight/README.md +19 -0
  33. package/plugin/node_modules/@babel/highlight/lib/index.js +119 -0
  34. package/plugin/node_modules/@babel/highlight/lib/index.js.map +1 -0
  35. package/plugin/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +165 -0
  36. package/plugin/node_modules/@babel/highlight/node_modules/ansi-styles/license +9 -0
  37. package/plugin/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +56 -0
  38. package/plugin/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +147 -0
  39. package/plugin/node_modules/@babel/highlight/node_modules/chalk/index.js +228 -0
  40. package/plugin/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +93 -0
  41. package/plugin/node_modules/@babel/highlight/node_modules/chalk/license +9 -0
  42. package/plugin/node_modules/@babel/highlight/node_modules/chalk/package.json +71 -0
  43. package/plugin/node_modules/@babel/highlight/node_modules/chalk/readme.md +314 -0
  44. package/plugin/node_modules/@babel/highlight/node_modules/chalk/templates.js +128 -0
  45. package/plugin/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +97 -0
  46. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +54 -0
  47. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +21 -0
  48. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/README.md +68 -0
  49. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +868 -0
  50. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/index.js +78 -0
  51. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/package.json +46 -0
  52. package/plugin/node_modules/@babel/highlight/node_modules/color-convert/route.js +97 -0
  53. package/plugin/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +43 -0
  54. package/plugin/node_modules/@babel/highlight/node_modules/color-name/LICENSE +8 -0
  55. package/plugin/node_modules/@babel/highlight/node_modules/color-name/README.md +11 -0
  56. package/plugin/node_modules/@babel/highlight/node_modules/color-name/index.js +152 -0
  57. package/plugin/node_modules/@babel/highlight/node_modules/color-name/package.json +25 -0
  58. package/plugin/node_modules/@babel/highlight/node_modules/color-name/test.js +7 -0
  59. package/plugin/node_modules/@babel/highlight/node_modules/has-flag/index.js +8 -0
  60. package/plugin/node_modules/@babel/highlight/node_modules/has-flag/license +9 -0
  61. package/plugin/node_modules/@babel/highlight/node_modules/has-flag/package.json +44 -0
  62. package/plugin/node_modules/@babel/highlight/node_modules/has-flag/readme.md +70 -0
  63. package/plugin/node_modules/@babel/highlight/node_modules/supports-color/browser.js +5 -0
  64. package/plugin/node_modules/@babel/highlight/node_modules/supports-color/index.js +131 -0
  65. package/plugin/node_modules/@babel/highlight/node_modules/supports-color/license +9 -0
  66. package/plugin/node_modules/@babel/highlight/node_modules/supports-color/package.json +53 -0
  67. package/plugin/node_modules/@babel/highlight/node_modules/supports-color/readme.md +66 -0
  68. package/plugin/node_modules/@babel/highlight/package.json +30 -0
  69. package/plugin/node_modules/@expo/config-plugins/LICENSE +22 -0
  70. package/plugin/node_modules/@expo/config-plugins/README.md +34 -0
  71. package/plugin/node_modules/@expo/config-plugins/build/Plugin.types.d.ts +177 -0
  72. package/plugin/node_modules/@expo/config-plugins/build/Plugin.types.js +51 -0
  73. package/plugin/node_modules/@expo/config-plugins/build/Plugin.types.js.map +1 -0
  74. package/plugin/node_modules/@expo/config-plugins/build/android/AllowBackup.d.ts +6 -0
  75. package/plugin/node_modules/@expo/config-plugins/build/android/AllowBackup.js +45 -0
  76. package/plugin/node_modules/@expo/config-plugins/build/android/AllowBackup.js.map +1 -0
  77. package/plugin/node_modules/@expo/config-plugins/build/android/BuildProperties.d.ts +28 -0
  78. package/plugin/node_modules/@expo/config-plugins/build/android/BuildProperties.js +93 -0
  79. package/plugin/node_modules/@expo/config-plugins/build/android/BuildProperties.js.map +1 -0
  80. package/plugin/node_modules/@expo/config-plugins/build/android/Colors.d.ts +29 -0
  81. package/plugin/node_modules/@expo/config-plugins/build/android/Colors.js +106 -0
  82. package/plugin/node_modules/@expo/config-plugins/build/android/Colors.js.map +1 -0
  83. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuild.d.ts +3 -0
  84. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuild.js +67 -0
  85. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuild.js.map +1 -0
  86. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuildGradleScript.d.ts +2 -0
  87. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuildGradleScript.js +82 -0
  88. package/plugin/node_modules/@expo/config-plugins/build/android/EasBuildGradleScript.js.map +1 -0
  89. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleMapsApiKey.d.ts +5 -0
  90. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleMapsApiKey.js +46 -0
  91. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleMapsApiKey.js.map +1 -0
  92. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleServices.d.ts +17 -0
  93. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleServices.js +138 -0
  94. package/plugin/node_modules/@expo/config-plugins/build/android/GoogleServices.js.map +1 -0
  95. package/plugin/node_modules/@expo/config-plugins/build/android/IntentFilters.d.ts +8 -0
  96. package/plugin/node_modules/@expo/config-plugins/build/android/IntentFilters.js +83 -0
  97. package/plugin/node_modules/@expo/config-plugins/build/android/IntentFilters.js.map +1 -0
  98. package/plugin/node_modules/@expo/config-plugins/build/android/Manifest.d.ts +157 -0
  99. package/plugin/node_modules/@expo/config-plugins/build/android/Manifest.js +221 -0
  100. package/plugin/node_modules/@expo/config-plugins/build/android/Manifest.js.map +1 -0
  101. package/plugin/node_modules/@expo/config-plugins/build/android/Name.d.ts +20 -0
  102. package/plugin/node_modules/@expo/config-plugins/build/android/Name.js +91 -0
  103. package/plugin/node_modules/@expo/config-plugins/build/android/Name.js.map +1 -0
  104. package/plugin/node_modules/@expo/config-plugins/build/android/Orientation.d.ts +6 -0
  105. package/plugin/node_modules/@expo/config-plugins/build/android/Orientation.js +39 -0
  106. package/plugin/node_modules/@expo/config-plugins/build/android/Orientation.js.map +1 -0
  107. package/plugin/node_modules/@expo/config-plugins/build/android/Package.d.ts +23 -0
  108. package/plugin/node_modules/@expo/config-plugins/build/android/Package.js +323 -0
  109. package/plugin/node_modules/@expo/config-plugins/build/android/Package.js.map +1 -0
  110. package/plugin/node_modules/@expo/config-plugins/build/android/Paths.d.ts +30 -0
  111. package/plugin/node_modules/@expo/config-plugins/build/android/Paths.js +154 -0
  112. package/plugin/node_modules/@expo/config-plugins/build/android/Paths.js.map +1 -0
  113. package/plugin/node_modules/@expo/config-plugins/build/android/Permissions.d.ts +20 -0
  114. package/plugin/node_modules/@expo/config-plugins/build/android/Permissions.js +207 -0
  115. package/plugin/node_modules/@expo/config-plugins/build/android/Permissions.js.map +1 -0
  116. package/plugin/node_modules/@expo/config-plugins/build/android/PrimaryColor.d.ts +6 -0
  117. package/plugin/node_modules/@expo/config-plugins/build/android/PrimaryColor.js +62 -0
  118. package/plugin/node_modules/@expo/config-plugins/build/android/PrimaryColor.js.map +1 -0
  119. package/plugin/node_modules/@expo/config-plugins/build/android/Properties.d.ts +12 -0
  120. package/plugin/node_modules/@expo/config-plugins/build/android/Properties.js +55 -0
  121. package/plugin/node_modules/@expo/config-plugins/build/android/Properties.js.map +1 -0
  122. package/plugin/node_modules/@expo/config-plugins/build/android/Resources.d.ts +87 -0
  123. package/plugin/node_modules/@expo/config-plugins/build/android/Resources.js +150 -0
  124. package/plugin/node_modules/@expo/config-plugins/build/android/Resources.js.map +1 -0
  125. package/plugin/node_modules/@expo/config-plugins/build/android/Scheme.d.ts +20 -0
  126. package/plugin/node_modules/@expo/config-plugins/build/android/Scheme.js +217 -0
  127. package/plugin/node_modules/@expo/config-plugins/build/android/Scheme.js.map +1 -0
  128. package/plugin/node_modules/@expo/config-plugins/build/android/StatusBar.d.ts +16 -0
  129. package/plugin/node_modules/@expo/config-plugins/build/android/StatusBar.js +112 -0
  130. package/plugin/node_modules/@expo/config-plugins/build/android/StatusBar.js.map +1 -0
  131. package/plugin/node_modules/@expo/config-plugins/build/android/Strings.d.ts +6 -0
  132. package/plugin/node_modules/@expo/config-plugins/build/android/Strings.js +54 -0
  133. package/plugin/node_modules/@expo/config-plugins/build/android/Strings.js.map +1 -0
  134. package/plugin/node_modules/@expo/config-plugins/build/android/Styles.d.ts +61 -0
  135. package/plugin/node_modules/@expo/config-plugins/build/android/Styles.js +169 -0
  136. package/plugin/node_modules/@expo/config-plugins/build/android/Styles.js.map +1 -0
  137. package/plugin/node_modules/@expo/config-plugins/build/android/Updates.d.ts +21 -0
  138. package/plugin/node_modules/@expo/config-plugins/build/android/Updates.js +159 -0
  139. package/plugin/node_modules/@expo/config-plugins/build/android/Updates.js.map +1 -0
  140. package/plugin/node_modules/@expo/config-plugins/build/android/Version.d.ts +16 -0
  141. package/plugin/node_modules/@expo/config-plugins/build/android/Version.js +87 -0
  142. package/plugin/node_modules/@expo/config-plugins/build/android/Version.js.map +1 -0
  143. package/plugin/node_modules/@expo/config-plugins/build/android/WindowSoftInputMode.d.ts +6 -0
  144. package/plugin/node_modules/@expo/config-plugins/build/android/WindowSoftInputMode.js +48 -0
  145. package/plugin/node_modules/@expo/config-plugins/build/android/WindowSoftInputMode.js.map +1 -0
  146. package/plugin/node_modules/@expo/config-plugins/build/android/codeMod.d.ts +20 -0
  147. package/plugin/node_modules/@expo/config-plugins/build/android/codeMod.js +93 -0
  148. package/plugin/node_modules/@expo/config-plugins/build/android/codeMod.js.map +1 -0
  149. package/plugin/node_modules/@expo/config-plugins/build/android/index.d.ts +25 -0
  150. package/plugin/node_modules/@expo/config-plugins/build/android/index.js +308 -0
  151. package/plugin/node_modules/@expo/config-plugins/build/android/index.js.map +1 -0
  152. package/plugin/node_modules/@expo/config-plugins/build/index.d.ts +36 -0
  153. package/plugin/node_modules/@expo/config-plugins/build/index.js +428 -0
  154. package/plugin/node_modules/@expo/config-plugins/build/index.js.map +1 -0
  155. package/plugin/node_modules/@expo/config-plugins/build/ios/Bitcode.d.ts +33 -0
  156. package/plugin/node_modules/@expo/config-plugins/build/ios/Bitcode.js +110 -0
  157. package/plugin/node_modules/@expo/config-plugins/build/ios/Bitcode.js.map +1 -0
  158. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildProperties.d.ts +27 -0
  159. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildProperties.js +67 -0
  160. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildProperties.js.map +1 -0
  161. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildScheme.d.ts +10 -0
  162. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildScheme.js +112 -0
  163. package/plugin/node_modules/@expo/config-plugins/build/ios/BuildScheme.js.map +1 -0
  164. package/plugin/node_modules/@expo/config-plugins/build/ios/BundleIdentifier.d.ts +50 -0
  165. package/plugin/node_modules/@expo/config-plugins/build/ios/BundleIdentifier.js +241 -0
  166. package/plugin/node_modules/@expo/config-plugins/build/ios/BundleIdentifier.js.map +1 -0
  167. package/plugin/node_modules/@expo/config-plugins/build/ios/DeviceFamily.d.ts +19 -0
  168. package/plugin/node_modules/@expo/config-plugins/build/ios/DeviceFamily.js +92 -0
  169. package/plugin/node_modules/@expo/config-plugins/build/ios/DeviceFamily.js.map +1 -0
  170. package/plugin/node_modules/@expo/config-plugins/build/ios/Entitlements.d.ts +9 -0
  171. package/plugin/node_modules/@expo/config-plugins/build/ios/Entitlements.js +132 -0
  172. package/plugin/node_modules/@expo/config-plugins/build/ios/Entitlements.js.map +1 -0
  173. package/plugin/node_modules/@expo/config-plugins/build/ios/Google.d.ts +14 -0
  174. package/plugin/node_modules/@expo/config-plugins/build/ios/Google.js +139 -0
  175. package/plugin/node_modules/@expo/config-plugins/build/ios/Google.js.map +1 -0
  176. package/plugin/node_modules/@expo/config-plugins/build/ios/IosConfig.types.d.ts +48 -0
  177. package/plugin/node_modules/@expo/config-plugins/build/ios/IosConfig.types.js +2 -0
  178. package/plugin/node_modules/@expo/config-plugins/build/ios/IosConfig.types.js.map +1 -0
  179. package/plugin/node_modules/@expo/config-plugins/build/ios/Locales.d.ts +14 -0
  180. package/plugin/node_modules/@expo/config-plugins/build/ios/Locales.js +132 -0
  181. package/plugin/node_modules/@expo/config-plugins/build/ios/Locales.js.map +1 -0
  182. package/plugin/node_modules/@expo/config-plugins/build/ios/Maps.d.ts +17 -0
  183. package/plugin/node_modules/@expo/config-plugins/build/ios/Maps.js +211 -0
  184. package/plugin/node_modules/@expo/config-plugins/build/ios/Maps.js.map +1 -0
  185. package/plugin/node_modules/@expo/config-plugins/build/ios/Name.d.ts +20 -0
  186. package/plugin/node_modules/@expo/config-plugins/build/ios/Name.js +111 -0
  187. package/plugin/node_modules/@expo/config-plugins/build/ios/Name.js.map +1 -0
  188. package/plugin/node_modules/@expo/config-plugins/build/ios/Orientation.d.ts +7 -0
  189. package/plugin/node_modules/@expo/config-plugins/build/ios/Orientation.js +42 -0
  190. package/plugin/node_modules/@expo/config-plugins/build/ios/Orientation.js.map +1 -0
  191. package/plugin/node_modules/@expo/config-plugins/build/ios/Paths.d.ts +38 -0
  192. package/plugin/node_modules/@expo/config-plugins/build/ios/Paths.js +311 -0
  193. package/plugin/node_modules/@expo/config-plugins/build/ios/Paths.js.map +1 -0
  194. package/plugin/node_modules/@expo/config-plugins/build/ios/Permissions.d.ts +9 -0
  195. package/plugin/node_modules/@expo/config-plugins/build/ios/Permissions.js +58 -0
  196. package/plugin/node_modules/@expo/config-plugins/build/ios/Permissions.js.map +1 -0
  197. package/plugin/node_modules/@expo/config-plugins/build/ios/PrivacyInfo.d.ts +20 -0
  198. package/plugin/node_modules/@expo/config-plugins/build/ios/PrivacyInfo.js +129 -0
  199. package/plugin/node_modules/@expo/config-plugins/build/ios/PrivacyInfo.js.map +1 -0
  200. package/plugin/node_modules/@expo/config-plugins/build/ios/ProvisioningProfile.d.ts +8 -0
  201. package/plugin/node_modules/@expo/config-plugins/build/ios/ProvisioningProfile.js +67 -0
  202. package/plugin/node_modules/@expo/config-plugins/build/ios/ProvisioningProfile.js.map +1 -0
  203. package/plugin/node_modules/@expo/config-plugins/build/ios/RequiresFullScreen.d.ts +5 -0
  204. package/plugin/node_modules/@expo/config-plugins/build/ios/RequiresFullScreen.js +101 -0
  205. package/plugin/node_modules/@expo/config-plugins/build/ios/RequiresFullScreen.js.map +1 -0
  206. package/plugin/node_modules/@expo/config-plugins/build/ios/Scheme.d.ts +11 -0
  207. package/plugin/node_modules/@expo/config-plugins/build/ios/Scheme.js +111 -0
  208. package/plugin/node_modules/@expo/config-plugins/build/ios/Scheme.js.map +1 -0
  209. package/plugin/node_modules/@expo/config-plugins/build/ios/Swift.d.ts +34 -0
  210. package/plugin/node_modules/@expo/config-plugins/build/ios/Swift.js +196 -0
  211. package/plugin/node_modules/@expo/config-plugins/build/ios/Swift.js.map +1 -0
  212. package/plugin/node_modules/@expo/config-plugins/build/ios/Target.d.ts +27 -0
  213. package/plugin/node_modules/@expo/config-plugins/build/ios/Target.js +136 -0
  214. package/plugin/node_modules/@expo/config-plugins/build/ios/Target.js.map +1 -0
  215. package/plugin/node_modules/@expo/config-plugins/build/ios/Updates.d.ts +17 -0
  216. package/plugin/node_modules/@expo/config-plugins/build/ios/Updates.js +121 -0
  217. package/plugin/node_modules/@expo/config-plugins/build/ios/Updates.js.map +1 -0
  218. package/plugin/node_modules/@expo/config-plugins/build/ios/UsesNonExemptEncryption.d.ts +5 -0
  219. package/plugin/node_modules/@expo/config-plugins/build/ios/UsesNonExemptEncryption.js +38 -0
  220. package/plugin/node_modules/@expo/config-plugins/build/ios/UsesNonExemptEncryption.js.map +1 -0
  221. package/plugin/node_modules/@expo/config-plugins/build/ios/Version.d.ts +8 -0
  222. package/plugin/node_modules/@expo/config-plugins/build/ios/Version.js +44 -0
  223. package/plugin/node_modules/@expo/config-plugins/build/ios/Version.js.map +1 -0
  224. package/plugin/node_modules/@expo/config-plugins/build/ios/XcodeProjectFile.d.ts +31 -0
  225. package/plugin/node_modules/@expo/config-plugins/build/ios/XcodeProjectFile.js +99 -0
  226. package/plugin/node_modules/@expo/config-plugins/build/ios/XcodeProjectFile.js.map +1 -0
  227. package/plugin/node_modules/@expo/config-plugins/build/ios/codeMod.d.ts +81 -0
  228. package/plugin/node_modules/@expo/config-plugins/build/ios/codeMod.js +264 -0
  229. package/plugin/node_modules/@expo/config-plugins/build/ios/codeMod.js.map +1 -0
  230. package/plugin/node_modules/@expo/config-plugins/build/ios/index.d.ts +27 -0
  231. package/plugin/node_modules/@expo/config-plugins/build/ios/index.js +342 -0
  232. package/plugin/node_modules/@expo/config-plugins/build/ios/index.js.map +1 -0
  233. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/Xcodeproj.d.ts +93 -0
  234. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/Xcodeproj.js +484 -0
  235. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/Xcodeproj.js.map +1 -0
  236. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/getInfoPlistPath.d.ts +12 -0
  237. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/getInfoPlistPath.js +49 -0
  238. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/getInfoPlistPath.js.map +1 -0
  239. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/string.d.ts +1 -0
  240. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/string.js +10 -0
  241. package/plugin/node_modules/@expo/config-plugins/build/ios/utils/string.js.map +1 -0
  242. package/plugin/node_modules/@expo/config-plugins/build/plugins/android-plugins.d.ts +89 -0
  243. package/plugin/node_modules/@expo/config-plugins/build/plugins/android-plugins.js +210 -0
  244. package/plugin/node_modules/@expo/config-plugins/build/plugins/android-plugins.js.map +1 -0
  245. package/plugin/node_modules/@expo/config-plugins/build/plugins/createBaseMod.d.ts +31 -0
  246. package/plugin/node_modules/@expo/config-plugins/build/plugins/createBaseMod.js +129 -0
  247. package/plugin/node_modules/@expo/config-plugins/build/plugins/createBaseMod.js.map +1 -0
  248. package/plugin/node_modules/@expo/config-plugins/build/plugins/ios-plugins.d.ts +77 -0
  249. package/plugin/node_modules/@expo/config-plugins/build/plugins/ios-plugins.js +205 -0
  250. package/plugin/node_modules/@expo/config-plugins/build/plugins/ios-plugins.js.map +1 -0
  251. package/plugin/node_modules/@expo/config-plugins/build/plugins/mod-compiler.d.ts +39 -0
  252. package/plugin/node_modules/@expo/config-plugins/build/plugins/mod-compiler.js +226 -0
  253. package/plugin/node_modules/@expo/config-plugins/build/plugins/mod-compiler.js.map +1 -0
  254. package/plugin/node_modules/@expo/config-plugins/build/plugins/withAndroidBaseMods.d.ts +40 -0
  255. package/plugin/node_modules/@expo/config-plugins/build/plugins/withAndroidBaseMods.js +510 -0
  256. package/plugin/node_modules/@expo/config-plugins/build/plugins/withAndroidBaseMods.js.map +1 -0
  257. package/plugin/node_modules/@expo/config-plugins/build/plugins/withDangerousMod.d.ts +10 -0
  258. package/plugin/node_modules/@expo/config-plugins/build/plugins/withDangerousMod.js +30 -0
  259. package/plugin/node_modules/@expo/config-plugins/build/plugins/withDangerousMod.js.map +1 -0
  260. package/plugin/node_modules/@expo/config-plugins/build/plugins/withFinalizedMod.d.ts +10 -0
  261. package/plugin/node_modules/@expo/config-plugins/build/plugins/withFinalizedMod.js +30 -0
  262. package/plugin/node_modules/@expo/config-plugins/build/plugins/withFinalizedMod.js.map +1 -0
  263. package/plugin/node_modules/@expo/config-plugins/build/plugins/withIosBaseMods.d.ts +33 -0
  264. package/plugin/node_modules/@expo/config-plugins/build/plugins/withIosBaseMods.js +442 -0
  265. package/plugin/node_modules/@expo/config-plugins/build/plugins/withIosBaseMods.js.map +1 -0
  266. package/plugin/node_modules/@expo/config-plugins/build/plugins/withMod.d.ts +46 -0
  267. package/plugin/node_modules/@expo/config-plugins/build/plugins/withMod.js +208 -0
  268. package/plugin/node_modules/@expo/config-plugins/build/plugins/withMod.js.map +1 -0
  269. package/plugin/node_modules/@expo/config-plugins/build/plugins/withPlugins.d.ts +8 -0
  270. package/plugin/node_modules/@expo/config-plugins/build/plugins/withPlugins.js +35 -0
  271. package/plugin/node_modules/@expo/config-plugins/build/plugins/withPlugins.js.map +1 -0
  272. package/plugin/node_modules/@expo/config-plugins/build/plugins/withRunOnce.d.ts +20 -0
  273. package/plugin/node_modules/@expo/config-plugins/build/plugins/withRunOnce.js +55 -0
  274. package/plugin/node_modules/@expo/config-plugins/build/plugins/withRunOnce.js.map +1 -0
  275. package/plugin/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.d.ts +17 -0
  276. package/plugin/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js +138 -0
  277. package/plugin/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js.map +1 -0
  278. package/plugin/node_modules/@expo/config-plugins/build/utils/BuildProperties.types.d.ts +25 -0
  279. package/plugin/node_modules/@expo/config-plugins/build/utils/BuildProperties.types.js +2 -0
  280. package/plugin/node_modules/@expo/config-plugins/build/utils/BuildProperties.types.js.map +1 -0
  281. package/plugin/node_modules/@expo/config-plugins/build/utils/Updates.d.ts +29 -0
  282. package/plugin/node_modules/@expo/config-plugins/build/utils/Updates.js +217 -0
  283. package/plugin/node_modules/@expo/config-plugins/build/utils/Updates.js.map +1 -0
  284. package/plugin/node_modules/@expo/config-plugins/build/utils/XML.d.ts +27 -0
  285. package/plugin/node_modules/@expo/config-plugins/build/utils/XML.js +161 -0
  286. package/plugin/node_modules/@expo/config-plugins/build/utils/XML.js.map +1 -0
  287. package/plugin/node_modules/@expo/config-plugins/build/utils/commonCodeMod.d.ts +32 -0
  288. package/plugin/node_modules/@expo/config-plugins/build/utils/commonCodeMod.js +63 -0
  289. package/plugin/node_modules/@expo/config-plugins/build/utils/commonCodeMod.js.map +1 -0
  290. package/plugin/node_modules/@expo/config-plugins/build/utils/errors.d.ts +15 -0
  291. package/plugin/node_modules/@expo/config-plugins/build/utils/errors.js +27 -0
  292. package/plugin/node_modules/@expo/config-plugins/build/utils/errors.js.map +1 -0
  293. package/plugin/node_modules/@expo/config-plugins/build/utils/fs.d.ts +4 -0
  294. package/plugin/node_modules/@expo/config-plugins/build/utils/fs.js +45 -0
  295. package/plugin/node_modules/@expo/config-plugins/build/utils/fs.js.map +1 -0
  296. package/plugin/node_modules/@expo/config-plugins/build/utils/generateCode.d.ts +36 -0
  297. package/plugin/node_modules/@expo/config-plugins/build/utils/generateCode.js +128 -0
  298. package/plugin/node_modules/@expo/config-plugins/build/utils/generateCode.js.map +1 -0
  299. package/plugin/node_modules/@expo/config-plugins/build/utils/history.d.ts +11 -0
  300. package/plugin/node_modules/@expo/config-plugins/build/utils/history.js +24 -0
  301. package/plugin/node_modules/@expo/config-plugins/build/utils/history.js.map +1 -0
  302. package/plugin/node_modules/@expo/config-plugins/build/utils/matchBrackets.d.ts +7 -0
  303. package/plugin/node_modules/@expo/config-plugins/build/utils/matchBrackets.js +65 -0
  304. package/plugin/node_modules/@expo/config-plugins/build/utils/matchBrackets.js.map +1 -0
  305. package/plugin/node_modules/@expo/config-plugins/build/utils/modules.d.ts +3 -0
  306. package/plugin/node_modules/@expo/config-plugins/build/utils/modules.js +42 -0
  307. package/plugin/node_modules/@expo/config-plugins/build/utils/modules.js.map +1 -0
  308. package/plugin/node_modules/@expo/config-plugins/build/utils/obj.d.ts +2 -0
  309. package/plugin/node_modules/@expo/config-plugins/build/utils/obj.js +20 -0
  310. package/plugin/node_modules/@expo/config-plugins/build/utils/obj.js.map +1 -0
  311. package/plugin/node_modules/@expo/config-plugins/build/utils/plugin-resolver.d.ts +33 -0
  312. package/plugin/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js +218 -0
  313. package/plugin/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js.map +1 -0
  314. package/plugin/node_modules/@expo/config-plugins/build/utils/sortObject.d.ts +4 -0
  315. package/plugin/node_modules/@expo/config-plugins/build/utils/sortObject.js +42 -0
  316. package/plugin/node_modules/@expo/config-plugins/build/utils/sortObject.js.map +1 -0
  317. package/plugin/node_modules/@expo/config-plugins/build/utils/versions.d.ts +3 -0
  318. package/plugin/node_modules/@expo/config-plugins/build/utils/versions.js +42 -0
  319. package/plugin/node_modules/@expo/config-plugins/build/utils/versions.js.map +1 -0
  320. package/plugin/node_modules/@expo/config-plugins/build/utils/warnings.d.ts +26 -0
  321. package/plugin/node_modules/@expo/config-plugins/build/utils/warnings.js +52 -0
  322. package/plugin/node_modules/@expo/config-plugins/build/utils/warnings.js.map +1 -0
  323. package/plugin/node_modules/@expo/config-plugins/package.json +62 -0
  324. package/plugin/node_modules/@expo/config-types/LICENSE +22 -0
  325. package/plugin/node_modules/@expo/config-types/README.md +38 -0
  326. package/plugin/node_modules/@expo/config-types/build/ExpoConfig.d.ts +878 -0
  327. package/plugin/node_modules/@expo/config-types/build/ExpoConfig.js +6 -0
  328. package/plugin/node_modules/@expo/config-types/package.json +48 -0
  329. package/plugin/node_modules/@expo/json-file/LICENSE +22 -0
  330. package/plugin/node_modules/@expo/json-file/README.md +29 -0
  331. package/plugin/node_modules/@expo/json-file/build/JsonFile.d.ts +61 -0
  332. package/plugin/node_modules/@expo/json-file/build/JsonFile.js +283 -0
  333. package/plugin/node_modules/@expo/json-file/build/JsonFile.js.map +1 -0
  334. package/plugin/node_modules/@expo/json-file/build/JsonFileError.d.ts +13 -0
  335. package/plugin/node_modules/@expo/json-file/build/JsonFileError.js +35 -0
  336. package/plugin/node_modules/@expo/json-file/build/JsonFileError.js.map +1 -0
  337. package/plugin/node_modules/@expo/json-file/package.json +47 -0
  338. package/plugin/node_modules/@expo/plist/README.md +8 -0
  339. package/plugin/node_modules/@expo/plist/build/build.d.ts +11 -0
  340. package/plugin/node_modules/@expo/plist/build/build.js +152 -0
  341. package/plugin/node_modules/@expo/plist/build/build.js.map +1 -0
  342. package/plugin/node_modules/@expo/plist/build/index.d.ts +16 -0
  343. package/plugin/node_modules/@expo/plist/build/index.js +6 -0
  344. package/plugin/node_modules/@expo/plist/build/index.js.map +1 -0
  345. package/plugin/node_modules/@expo/plist/build/parse.d.ts +8 -0
  346. package/plugin/node_modules/@expo/plist/build/parse.js +201 -0
  347. package/plugin/node_modules/@expo/plist/build/parse.js.map +1 -0
  348. package/plugin/node_modules/@expo/plist/package.json +45 -0
  349. package/plugin/node_modules/@expo/sdk-runtime-versions/README.md +5 -0
  350. package/plugin/node_modules/@expo/sdk-runtime-versions/build/index.d.ts +4 -0
  351. package/plugin/node_modules/@expo/sdk-runtime-versions/build/index.js +21 -0
  352. package/plugin/node_modules/@expo/sdk-runtime-versions/build/index.js.map +1 -0
  353. package/plugin/node_modules/@expo/sdk-runtime-versions/package.json +29 -0
  354. package/plugin/node_modules/@types/node/LICENSE +21 -0
  355. package/plugin/node_modules/@types/node/README.md +15 -0
  356. package/plugin/node_modules/@types/node/assert/strict.d.ts +8 -0
  357. package/plugin/node_modules/@types/node/assert.d.ts +1044 -0
  358. package/plugin/node_modules/@types/node/async_hooks.d.ts +605 -0
  359. package/plugin/node_modules/@types/node/buffer.buffer.d.ts +462 -0
  360. package/plugin/node_modules/@types/node/buffer.d.ts +1932 -0
  361. package/plugin/node_modules/@types/node/child_process.d.ts +1548 -0
  362. package/plugin/node_modules/@types/node/cluster.d.ts +578 -0
  363. package/plugin/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  364. package/plugin/node_modules/@types/node/compatibility/index.d.ts +9 -0
  365. package/plugin/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  366. package/plugin/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  367. package/plugin/node_modules/@types/node/console.d.ts +452 -0
  368. package/plugin/node_modules/@types/node/constants.d.ts +21 -0
  369. package/plugin/node_modules/@types/node/crypto.d.ts +4570 -0
  370. package/plugin/node_modules/@types/node/dgram.d.ts +596 -0
  371. package/plugin/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  372. package/plugin/node_modules/@types/node/dns/promises.d.ts +479 -0
  373. package/plugin/node_modules/@types/node/dns.d.ts +871 -0
  374. package/plugin/node_modules/@types/node/dom-events.d.ts +99 -0
  375. package/plugin/node_modules/@types/node/domain.d.ts +170 -0
  376. package/plugin/node_modules/@types/node/events.d.ts +931 -0
  377. package/plugin/node_modules/@types/node/fs/promises.d.ts +1248 -0
  378. package/plugin/node_modules/@types/node/fs.d.ts +4362 -0
  379. package/plugin/node_modules/@types/node/globals.d.ts +335 -0
  380. package/plugin/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  381. package/plugin/node_modules/@types/node/http.d.ts +2031 -0
  382. package/plugin/node_modules/@types/node/http2.d.ts +2623 -0
  383. package/plugin/node_modules/@types/node/https.d.ts +544 -0
  384. package/plugin/node_modules/@types/node/index.d.ts +91 -0
  385. package/plugin/node_modules/@types/node/inspector.d.ts +3966 -0
  386. package/plugin/node_modules/@types/node/module.d.ts +539 -0
  387. package/plugin/node_modules/@types/node/net.d.ts +1011 -0
  388. package/plugin/node_modules/@types/node/os.d.ts +495 -0
  389. package/plugin/node_modules/@types/node/package.json +140 -0
  390. package/plugin/node_modules/@types/node/path.d.ts +200 -0
  391. package/plugin/node_modules/@types/node/perf_hooks.d.ts +963 -0
  392. package/plugin/node_modules/@types/node/process.d.ts +1956 -0
  393. package/plugin/node_modules/@types/node/punycode.d.ts +117 -0
  394. package/plugin/node_modules/@types/node/querystring.d.ts +152 -0
  395. package/plugin/node_modules/@types/node/readline/promises.d.ts +162 -0
  396. package/plugin/node_modules/@types/node/readline.d.ts +589 -0
  397. package/plugin/node_modules/@types/node/repl.d.ts +430 -0
  398. package/plugin/node_modules/@types/node/sea.d.ts +153 -0
  399. package/plugin/node_modules/@types/node/stream/consumers.d.ts +38 -0
  400. package/plugin/node_modules/@types/node/stream/promises.d.ts +90 -0
  401. package/plugin/node_modules/@types/node/stream/web.d.ts +533 -0
  402. package/plugin/node_modules/@types/node/stream.d.ts +1668 -0
  403. package/plugin/node_modules/@types/node/string_decoder.d.ts +67 -0
  404. package/plugin/node_modules/@types/node/test.d.ts +1807 -0
  405. package/plugin/node_modules/@types/node/timers/promises.d.ts +108 -0
  406. package/plugin/node_modules/@types/node/timers.d.ts +286 -0
  407. package/plugin/node_modules/@types/node/tls.d.ts +1231 -0
  408. package/plugin/node_modules/@types/node/trace_events.d.ts +197 -0
  409. package/plugin/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
  410. package/plugin/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  411. package/plugin/node_modules/@types/node/ts5.6/index.d.ts +91 -0
  412. package/plugin/node_modules/@types/node/tty.d.ts +208 -0
  413. package/plugin/node_modules/@types/node/url.d.ts +964 -0
  414. package/plugin/node_modules/@types/node/util.d.ts +2331 -0
  415. package/plugin/node_modules/@types/node/v8.d.ts +808 -0
  416. package/plugin/node_modules/@types/node/vm.d.ts +1030 -0
  417. package/plugin/node_modules/@types/node/wasi.d.ts +181 -0
  418. package/plugin/node_modules/@types/node/worker_threads.d.ts +724 -0
  419. package/plugin/node_modules/@types/node/zlib.d.ts +539 -0
  420. package/plugin/node_modules/@xmldom/xmldom/CHANGELOG.md +401 -0
  421. package/plugin/node_modules/@xmldom/xmldom/LICENSE +8 -0
  422. package/plugin/node_modules/@xmldom/xmldom/index.d.ts +43 -0
  423. package/plugin/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  424. package/plugin/node_modules/@xmldom/xmldom/lib/conventions.js +177 -0
  425. package/plugin/node_modules/@xmldom/xmldom/lib/dom-parser.js +268 -0
  426. package/plugin/node_modules/@xmldom/xmldom/lib/dom.js +1808 -0
  427. package/plugin/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  428. package/plugin/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  429. package/plugin/node_modules/@xmldom/xmldom/lib/sax.js +656 -0
  430. package/plugin/node_modules/@xmldom/xmldom/package.json +60 -0
  431. package/plugin/node_modules/@xmldom/xmldom/readme.md +338 -0
  432. package/plugin/node_modules/ansi-styles/index.d.ts +345 -0
  433. package/plugin/node_modules/ansi-styles/index.js +163 -0
  434. package/plugin/node_modules/ansi-styles/license +9 -0
  435. package/plugin/node_modules/ansi-styles/package.json +56 -0
  436. package/plugin/node_modules/ansi-styles/readme.md +152 -0
  437. package/plugin/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  438. package/plugin/node_modules/balanced-match/LICENSE.md +21 -0
  439. package/plugin/node_modules/balanced-match/README.md +97 -0
  440. package/plugin/node_modules/balanced-match/index.js +62 -0
  441. package/plugin/node_modules/balanced-match/package.json +48 -0
  442. package/plugin/node_modules/base64-js/LICENSE +21 -0
  443. package/plugin/node_modules/base64-js/README.md +34 -0
  444. package/plugin/node_modules/base64-js/base64js.min.js +1 -0
  445. package/plugin/node_modules/base64-js/index.d.ts +3 -0
  446. package/plugin/node_modules/base64-js/index.js +150 -0
  447. package/plugin/node_modules/base64-js/package.json +47 -0
  448. package/plugin/node_modules/big-integer/BigInteger.d.ts +2393 -0
  449. package/plugin/node_modules/big-integer/BigInteger.js +1453 -0
  450. package/plugin/node_modules/big-integer/BigInteger.min.js +1 -0
  451. package/plugin/node_modules/big-integer/LICENSE +24 -0
  452. package/plugin/node_modules/big-integer/README.md +589 -0
  453. package/plugin/node_modules/big-integer/bower.json +29 -0
  454. package/plugin/node_modules/big-integer/package.json +48 -0
  455. package/plugin/node_modules/big-integer/tsconfig.json +24 -0
  456. package/plugin/node_modules/bplist-creator/LICENSE +18 -0
  457. package/plugin/node_modules/bplist-creator/README.md +64 -0
  458. package/plugin/node_modules/bplist-creator/bplistCreator.js +460 -0
  459. package/plugin/node_modules/bplist-creator/package.json +28 -0
  460. package/plugin/node_modules/bplist-creator/test/airplay.bplist +0 -0
  461. package/plugin/node_modules/bplist-creator/test/binaryData.bplist +0 -0
  462. package/plugin/node_modules/bplist-creator/test/creatorTest.js +211 -0
  463. package/plugin/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
  464. package/plugin/node_modules/bplist-creator/test/integers.bplist +0 -0
  465. package/plugin/node_modules/bplist-creator/test/sample1.bplist +0 -0
  466. package/plugin/node_modules/bplist-creator/test/sample2.bplist +0 -0
  467. package/plugin/node_modules/bplist-creator/test/uid.bplist +0 -0
  468. package/plugin/node_modules/bplist-creator/test/utf16.bplist +0 -0
  469. package/plugin/node_modules/bplist-parser/.editorconfig +12 -0
  470. package/plugin/node_modules/bplist-parser/.eslintignore +1 -0
  471. package/plugin/node_modules/bplist-parser/.eslintrc.js +295 -0
  472. package/plugin/node_modules/bplist-parser/README.md +48 -0
  473. package/plugin/node_modules/bplist-parser/bplistParser.d.ts +6 -0
  474. package/plugin/node_modules/bplist-parser/bplistParser.js +366 -0
  475. package/plugin/node_modules/bplist-parser/package.json +35 -0
  476. package/plugin/node_modules/brace-expansion/LICENSE +21 -0
  477. package/plugin/node_modules/brace-expansion/README.md +129 -0
  478. package/plugin/node_modules/brace-expansion/index.js +201 -0
  479. package/plugin/node_modules/brace-expansion/package.json +50 -0
  480. package/plugin/node_modules/chalk/index.d.ts +415 -0
  481. package/plugin/node_modules/chalk/license +9 -0
  482. package/plugin/node_modules/chalk/package.json +68 -0
  483. package/plugin/node_modules/chalk/readme.md +341 -0
  484. package/plugin/node_modules/chalk/source/index.js +229 -0
  485. package/plugin/node_modules/chalk/source/templates.js +134 -0
  486. package/plugin/node_modules/chalk/source/util.js +39 -0
  487. package/plugin/node_modules/color-convert/CHANGELOG.md +54 -0
  488. package/plugin/node_modules/color-convert/LICENSE +21 -0
  489. package/plugin/node_modules/color-convert/README.md +68 -0
  490. package/plugin/node_modules/color-convert/conversions.js +839 -0
  491. package/plugin/node_modules/color-convert/index.js +81 -0
  492. package/plugin/node_modules/color-convert/package.json +48 -0
  493. package/plugin/node_modules/color-convert/route.js +97 -0
  494. package/plugin/node_modules/color-name/LICENSE +8 -0
  495. package/plugin/node_modules/color-name/README.md +11 -0
  496. package/plugin/node_modules/color-name/index.js +152 -0
  497. package/plugin/node_modules/color-name/package.json +28 -0
  498. package/plugin/node_modules/concat-map/.travis.yml +4 -0
  499. package/plugin/node_modules/concat-map/LICENSE +18 -0
  500. package/plugin/node_modules/concat-map/README.markdown +62 -0
  501. package/plugin/node_modules/concat-map/example/map.js +6 -0
  502. package/plugin/node_modules/concat-map/index.js +13 -0
  503. package/plugin/node_modules/concat-map/package.json +43 -0
  504. package/plugin/node_modules/concat-map/test/map.js +39 -0
  505. package/plugin/node_modules/debug/LICENSE +20 -0
  506. package/plugin/node_modules/debug/README.md +481 -0
  507. package/plugin/node_modules/debug/package.json +64 -0
  508. package/plugin/node_modules/debug/src/browser.js +272 -0
  509. package/plugin/node_modules/debug/src/common.js +292 -0
  510. package/plugin/node_modules/debug/src/index.js +10 -0
  511. package/plugin/node_modules/debug/src/node.js +263 -0
  512. package/plugin/node_modules/escape-string-regexp/index.js +11 -0
  513. package/plugin/node_modules/escape-string-regexp/license +21 -0
  514. package/plugin/node_modules/escape-string-regexp/package.json +41 -0
  515. package/plugin/node_modules/escape-string-regexp/readme.md +27 -0
  516. package/plugin/node_modules/find-up/index.d.ts +138 -0
  517. package/plugin/node_modules/find-up/index.js +89 -0
  518. package/plugin/node_modules/find-up/license +9 -0
  519. package/plugin/node_modules/find-up/package.json +54 -0
  520. package/plugin/node_modules/find-up/readme.md +151 -0
  521. package/plugin/node_modules/fs.realpath/LICENSE +43 -0
  522. package/plugin/node_modules/fs.realpath/README.md +33 -0
  523. package/plugin/node_modules/fs.realpath/index.js +66 -0
  524. package/plugin/node_modules/fs.realpath/old.js +303 -0
  525. package/plugin/node_modules/fs.realpath/package.json +26 -0
  526. package/plugin/node_modules/getenv/LICENSE.md +20 -0
  527. package/plugin/node_modules/getenv/README.md +197 -0
  528. package/plugin/node_modules/getenv/index.js +150 -0
  529. package/plugin/node_modules/getenv/package.json +38 -0
  530. package/plugin/node_modules/glob/LICENSE +21 -0
  531. package/plugin/node_modules/glob/README.md +375 -0
  532. package/plugin/node_modules/glob/changelog.md +67 -0
  533. package/plugin/node_modules/glob/common.js +240 -0
  534. package/plugin/node_modules/glob/glob.js +790 -0
  535. package/plugin/node_modules/glob/package.json +46 -0
  536. package/plugin/node_modules/glob/sync.js +486 -0
  537. package/plugin/node_modules/graceful-fs/LICENSE +15 -0
  538. package/plugin/node_modules/graceful-fs/README.md +143 -0
  539. package/plugin/node_modules/graceful-fs/clone.js +23 -0
  540. package/plugin/node_modules/graceful-fs/graceful-fs.js +448 -0
  541. package/plugin/node_modules/graceful-fs/legacy-streams.js +118 -0
  542. package/plugin/node_modules/graceful-fs/package.json +53 -0
  543. package/plugin/node_modules/graceful-fs/polyfills.js +355 -0
  544. package/plugin/node_modules/has-flag/index.d.ts +39 -0
  545. package/plugin/node_modules/has-flag/index.js +8 -0
  546. package/plugin/node_modules/has-flag/license +9 -0
  547. package/plugin/node_modules/has-flag/package.json +46 -0
  548. package/plugin/node_modules/has-flag/readme.md +89 -0
  549. package/plugin/node_modules/imurmurhash/README.md +122 -0
  550. package/plugin/node_modules/imurmurhash/imurmurhash.js +138 -0
  551. package/plugin/node_modules/imurmurhash/imurmurhash.min.js +12 -0
  552. package/plugin/node_modules/imurmurhash/package.json +40 -0
  553. package/plugin/node_modules/inflight/LICENSE +15 -0
  554. package/plugin/node_modules/inflight/README.md +37 -0
  555. package/plugin/node_modules/inflight/inflight.js +54 -0
  556. package/plugin/node_modules/inflight/package.json +29 -0
  557. package/plugin/node_modules/inherits/LICENSE +16 -0
  558. package/plugin/node_modules/inherits/README.md +42 -0
  559. package/plugin/node_modules/inherits/inherits.js +9 -0
  560. package/plugin/node_modules/inherits/inherits_browser.js +27 -0
  561. package/plugin/node_modules/inherits/package.json +29 -0
  562. package/plugin/node_modules/js-tokens/CHANGELOG.md +151 -0
  563. package/plugin/node_modules/js-tokens/LICENSE +21 -0
  564. package/plugin/node_modules/js-tokens/README.md +240 -0
  565. package/plugin/node_modules/js-tokens/index.js +23 -0
  566. package/plugin/node_modules/js-tokens/package.json +30 -0
  567. package/plugin/node_modules/json5/LICENSE.md +23 -0
  568. package/plugin/node_modules/json5/README.md +282 -0
  569. package/plugin/node_modules/json5/dist/index.js +1737 -0
  570. package/plugin/node_modules/json5/dist/index.min.js +1 -0
  571. package/plugin/node_modules/json5/dist/index.min.mjs +1 -0
  572. package/plugin/node_modules/json5/dist/index.mjs +1426 -0
  573. package/plugin/node_modules/json5/lib/cli.js +152 -0
  574. package/plugin/node_modules/json5/lib/index.d.ts +4 -0
  575. package/plugin/node_modules/json5/lib/index.js +9 -0
  576. package/plugin/node_modules/json5/lib/parse.d.ts +15 -0
  577. package/plugin/node_modules/json5/lib/parse.js +1114 -0
  578. package/plugin/node_modules/json5/lib/register.js +13 -0
  579. package/plugin/node_modules/json5/lib/require.js +4 -0
  580. package/plugin/node_modules/json5/lib/stringify.d.ts +89 -0
  581. package/plugin/node_modules/json5/lib/stringify.js +261 -0
  582. package/plugin/node_modules/json5/lib/unicode.d.ts +3 -0
  583. package/plugin/node_modules/json5/lib/unicode.js +4 -0
  584. package/plugin/node_modules/json5/lib/util.d.ts +5 -0
  585. package/plugin/node_modules/json5/lib/util.js +35 -0
  586. package/plugin/node_modules/json5/package.json +72 -0
  587. package/plugin/node_modules/locate-path/index.d.ts +83 -0
  588. package/plugin/node_modules/locate-path/index.js +68 -0
  589. package/plugin/node_modules/locate-path/license +9 -0
  590. package/plugin/node_modules/locate-path/package.json +46 -0
  591. package/plugin/node_modules/locate-path/readme.md +125 -0
  592. package/plugin/node_modules/minimatch/LICENSE +15 -0
  593. package/plugin/node_modules/minimatch/README.md +230 -0
  594. package/plugin/node_modules/minimatch/minimatch.js +947 -0
  595. package/plugin/node_modules/minimatch/package.json +33 -0
  596. package/plugin/node_modules/ms/index.js +162 -0
  597. package/plugin/node_modules/ms/license.md +21 -0
  598. package/plugin/node_modules/ms/package.json +38 -0
  599. package/plugin/node_modules/ms/readme.md +59 -0
  600. package/plugin/node_modules/once/LICENSE +15 -0
  601. package/plugin/node_modules/once/README.md +79 -0
  602. package/plugin/node_modules/once/once.js +42 -0
  603. package/plugin/node_modules/once/package.json +33 -0
  604. package/plugin/node_modules/p-limit/index.d.ts +42 -0
  605. package/plugin/node_modules/p-limit/index.js +71 -0
  606. package/plugin/node_modules/p-limit/license +9 -0
  607. package/plugin/node_modules/p-limit/package.json +52 -0
  608. package/plugin/node_modules/p-limit/readme.md +101 -0
  609. package/plugin/node_modules/p-locate/index.d.ts +53 -0
  610. package/plugin/node_modules/p-locate/index.js +50 -0
  611. package/plugin/node_modules/p-locate/license +9 -0
  612. package/plugin/node_modules/p-locate/package.json +54 -0
  613. package/plugin/node_modules/p-locate/readme.md +93 -0
  614. package/plugin/node_modules/path-exists/index.d.ts +28 -0
  615. package/plugin/node_modules/path-exists/index.js +23 -0
  616. package/plugin/node_modules/path-exists/license +9 -0
  617. package/plugin/node_modules/path-exists/package.json +39 -0
  618. package/plugin/node_modules/path-exists/readme.md +52 -0
  619. package/plugin/node_modules/path-is-absolute/index.js +20 -0
  620. package/plugin/node_modules/path-is-absolute/license +21 -0
  621. package/plugin/node_modules/path-is-absolute/package.json +43 -0
  622. package/plugin/node_modules/path-is-absolute/readme.md +59 -0
  623. package/plugin/node_modules/picocolors/LICENSE +15 -0
  624. package/plugin/node_modules/picocolors/README.md +21 -0
  625. package/plugin/node_modules/picocolors/package.json +25 -0
  626. package/plugin/node_modules/picocolors/picocolors.browser.js +4 -0
  627. package/plugin/node_modules/picocolors/picocolors.d.ts +5 -0
  628. package/plugin/node_modules/picocolors/picocolors.js +75 -0
  629. package/plugin/node_modules/picocolors/types.d.ts +51 -0
  630. package/plugin/node_modules/plist/.github/workflows/ci.yml +24 -0
  631. package/plugin/node_modules/plist/.jshintrc +4 -0
  632. package/plugin/node_modules/plist/History.md +196 -0
  633. package/plugin/node_modules/plist/LICENSE +24 -0
  634. package/plugin/node_modules/plist/Makefile +75 -0
  635. package/plugin/node_modules/plist/README.md +146 -0
  636. package/plugin/node_modules/plist/dist/plist-build.js +5348 -0
  637. package/plugin/node_modules/plist/dist/plist-parse.js +7456 -0
  638. package/plugin/node_modules/plist/dist/plist.js +9888 -0
  639. package/plugin/node_modules/plist/examples/browser/index.html +14 -0
  640. package/plugin/node_modules/plist/index.js +13 -0
  641. package/plugin/node_modules/plist/lib/build.js +143 -0
  642. package/plugin/node_modules/plist/lib/parse.js +227 -0
  643. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/CHANGELOG.md +459 -0
  644. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/LICENSE +8 -0
  645. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  646. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/index.d.ts +43 -0
  647. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  648. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/conventions.js +203 -0
  649. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
  650. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/dom.js +1840 -0
  651. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  652. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  653. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/lib/sax.js +662 -0
  654. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/package.json +71 -0
  655. package/plugin/node_modules/plist/node_modules/@xmldom/xmldom/readme.md +356 -0
  656. package/plugin/node_modules/plist/node_modules/xmlbuilder/.nycrc +6 -0
  657. package/plugin/node_modules/plist/node_modules/xmlbuilder/.vscode/launch.json +23 -0
  658. package/plugin/node_modules/plist/node_modules/xmlbuilder/CHANGELOG.md +593 -0
  659. package/plugin/node_modules/plist/node_modules/xmlbuilder/LICENSE +21 -0
  660. package/plugin/node_modules/plist/node_modules/xmlbuilder/README.md +103 -0
  661. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  662. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  663. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/NodeType.js +25 -0
  664. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  665. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/Utility.js +88 -0
  666. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  667. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLAttribute.js +130 -0
  668. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLCData.js +41 -0
  669. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLCharacterData.js +86 -0
  670. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLComment.js +41 -0
  671. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +80 -0
  672. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +20 -0
  673. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +55 -0
  674. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDOMStringList.js +44 -0
  675. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDTDAttList.js +66 -0
  676. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDTDElement.js +44 -0
  677. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDTDEntity.js +115 -0
  678. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDTDNotation.js +66 -0
  679. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDeclaration.js +51 -0
  680. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDocType.js +235 -0
  681. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDocument.js +282 -0
  682. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDocumentCB.js +650 -0
  683. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +21 -0
  684. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLDummy.js +39 -0
  685. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLElement.js +334 -0
  686. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +77 -0
  687. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLNode.js +999 -0
  688. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLNodeFilter.js +51 -0
  689. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLNodeList.js +45 -0
  690. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +56 -0
  691. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLRaw.js +40 -0
  692. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLStreamWriter.js +209 -0
  693. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringWriter.js +40 -0
  694. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringifier.js +291 -0
  695. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLText.js +82 -0
  696. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLTypeInfo.js +23 -0
  697. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +27 -0
  698. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/XMLWriterBase.js +485 -0
  699. package/plugin/node_modules/plist/node_modules/xmlbuilder/lib/index.js +120 -0
  700. package/plugin/node_modules/plist/node_modules/xmlbuilder/package.json +51 -0
  701. package/plugin/node_modules/plist/node_modules/xmlbuilder/perf/basic/escaping.coffee +244 -0
  702. package/plugin/node_modules/plist/node_modules/xmlbuilder/perf/basic/object.coffee +21 -0
  703. package/plugin/node_modules/plist/node_modules/xmlbuilder/perf/index.coffee +161 -0
  704. package/plugin/node_modules/plist/node_modules/xmlbuilder/perf/perf.list +11 -0
  705. package/plugin/node_modules/plist/node_modules/xmlbuilder/typings/index.d.ts +1771 -0
  706. package/plugin/node_modules/plist/package.json +44 -0
  707. package/plugin/node_modules/resolve-from/index.d.ts +31 -0
  708. package/plugin/node_modules/resolve-from/index.js +47 -0
  709. package/plugin/node_modules/resolve-from/license +9 -0
  710. package/plugin/node_modules/resolve-from/package.json +36 -0
  711. package/plugin/node_modules/resolve-from/readme.md +72 -0
  712. package/plugin/node_modules/sax/LICENSE +41 -0
  713. package/plugin/node_modules/sax/README.md +228 -0
  714. package/plugin/node_modules/sax/lib/sax.js +1597 -0
  715. package/plugin/node_modules/sax/package.json +29 -0
  716. package/plugin/node_modules/semver/LICENSE +15 -0
  717. package/plugin/node_modules/semver/README.md +664 -0
  718. package/plugin/node_modules/semver/bin/semver.js +191 -0
  719. package/plugin/node_modules/semver/classes/comparator.js +143 -0
  720. package/plugin/node_modules/semver/classes/index.js +7 -0
  721. package/plugin/node_modules/semver/classes/range.js +556 -0
  722. package/plugin/node_modules/semver/classes/semver.js +319 -0
  723. package/plugin/node_modules/semver/functions/clean.js +8 -0
  724. package/plugin/node_modules/semver/functions/cmp.js +54 -0
  725. package/plugin/node_modules/semver/functions/coerce.js +62 -0
  726. package/plugin/node_modules/semver/functions/compare-build.js +9 -0
  727. package/plugin/node_modules/semver/functions/compare-loose.js +5 -0
  728. package/plugin/node_modules/semver/functions/compare.js +7 -0
  729. package/plugin/node_modules/semver/functions/diff.js +60 -0
  730. package/plugin/node_modules/semver/functions/eq.js +5 -0
  731. package/plugin/node_modules/semver/functions/gt.js +5 -0
  732. package/plugin/node_modules/semver/functions/gte.js +5 -0
  733. package/plugin/node_modules/semver/functions/inc.js +21 -0
  734. package/plugin/node_modules/semver/functions/lt.js +5 -0
  735. package/plugin/node_modules/semver/functions/lte.js +5 -0
  736. package/plugin/node_modules/semver/functions/major.js +5 -0
  737. package/plugin/node_modules/semver/functions/minor.js +5 -0
  738. package/plugin/node_modules/semver/functions/neq.js +5 -0
  739. package/plugin/node_modules/semver/functions/parse.js +18 -0
  740. package/plugin/node_modules/semver/functions/patch.js +5 -0
  741. package/plugin/node_modules/semver/functions/prerelease.js +8 -0
  742. package/plugin/node_modules/semver/functions/rcompare.js +5 -0
  743. package/plugin/node_modules/semver/functions/rsort.js +5 -0
  744. package/plugin/node_modules/semver/functions/satisfies.js +12 -0
  745. package/plugin/node_modules/semver/functions/sort.js +5 -0
  746. package/plugin/node_modules/semver/functions/valid.js +8 -0
  747. package/plugin/node_modules/semver/index.js +91 -0
  748. package/plugin/node_modules/semver/internal/constants.js +37 -0
  749. package/plugin/node_modules/semver/internal/debug.js +11 -0
  750. package/plugin/node_modules/semver/internal/identifiers.js +25 -0
  751. package/plugin/node_modules/semver/internal/lrucache.js +42 -0
  752. package/plugin/node_modules/semver/internal/parse-options.js +17 -0
  753. package/plugin/node_modules/semver/internal/re.js +223 -0
  754. package/plugin/node_modules/semver/package.json +78 -0
  755. package/plugin/node_modules/semver/preload.js +4 -0
  756. package/plugin/node_modules/semver/range.bnf +16 -0
  757. package/plugin/node_modules/semver/ranges/gtr.js +6 -0
  758. package/plugin/node_modules/semver/ranges/intersects.js +9 -0
  759. package/plugin/node_modules/semver/ranges/ltr.js +6 -0
  760. package/plugin/node_modules/semver/ranges/max-satisfying.js +27 -0
  761. package/plugin/node_modules/semver/ranges/min-satisfying.js +26 -0
  762. package/plugin/node_modules/semver/ranges/min-version.js +63 -0
  763. package/plugin/node_modules/semver/ranges/outside.js +82 -0
  764. package/plugin/node_modules/semver/ranges/simplify.js +49 -0
  765. package/plugin/node_modules/semver/ranges/subset.js +249 -0
  766. package/plugin/node_modules/semver/ranges/to-comparators.js +10 -0
  767. package/plugin/node_modules/semver/ranges/valid.js +13 -0
  768. package/plugin/node_modules/signal-exit/LICENSE.txt +16 -0
  769. package/plugin/node_modules/signal-exit/README.md +39 -0
  770. package/plugin/node_modules/signal-exit/index.js +202 -0
  771. package/plugin/node_modules/signal-exit/package.json +38 -0
  772. package/plugin/node_modules/signal-exit/signals.js +53 -0
  773. package/plugin/node_modules/simple-plist/LICENSE +20 -0
  774. package/plugin/node_modules/simple-plist/README.md +130 -0
  775. package/plugin/node_modules/simple-plist/dist/index.d.ts +24 -0
  776. package/plugin/node_modules/simple-plist/dist/index.js +41 -0
  777. package/plugin/node_modules/simple-plist/dist/parse.d.ts +8 -0
  778. package/plugin/node_modules/simple-plist/dist/parse.js +45 -0
  779. package/plugin/node_modules/simple-plist/dist/readFile.d.ts +4 -0
  780. package/plugin/node_modules/simple-plist/dist/readFile.js +36 -0
  781. package/plugin/node_modules/simple-plist/dist/readFileSync.d.ts +3 -0
  782. package/plugin/node_modules/simple-plist/dist/readFileSync.js +26 -0
  783. package/plugin/node_modules/simple-plist/dist/stringify.d.ts +2 -0
  784. package/plugin/node_modules/simple-plist/dist/stringify.js +21 -0
  785. package/plugin/node_modules/simple-plist/dist/types.d.ts +4 -0
  786. package/plugin/node_modules/simple-plist/dist/types.js +12 -0
  787. package/plugin/node_modules/simple-plist/dist/writeBinaryFile.d.ts +5 -0
  788. package/plugin/node_modules/simple-plist/dist/writeBinaryFile.js +30 -0
  789. package/plugin/node_modules/simple-plist/dist/writeBinaryFileSync.d.ts +4 -0
  790. package/plugin/node_modules/simple-plist/dist/writeBinaryFileSync.js +22 -0
  791. package/plugin/node_modules/simple-plist/dist/writeFile.d.ts +5 -0
  792. package/plugin/node_modules/simple-plist/dist/writeFile.js +30 -0
  793. package/plugin/node_modules/simple-plist/dist/writeFileSync.d.ts +4 -0
  794. package/plugin/node_modules/simple-plist/dist/writeFileSync.js +23 -0
  795. package/plugin/node_modules/simple-plist/package.json +53 -0
  796. package/plugin/node_modules/slash/index.d.ts +25 -0
  797. package/plugin/node_modules/slash/index.js +11 -0
  798. package/plugin/node_modules/slash/license +9 -0
  799. package/plugin/node_modules/slash/package.json +35 -0
  800. package/plugin/node_modules/slash/readme.md +44 -0
  801. package/plugin/node_modules/slugify/CHANGELOG.md +94 -0
  802. package/plugin/node_modules/slugify/LICENSE +21 -0
  803. package/plugin/node_modules/slugify/README.md +98 -0
  804. package/plugin/node_modules/slugify/package.json +42 -0
  805. package/plugin/node_modules/slugify/slugify.d.ts +24 -0
  806. package/plugin/node_modules/slugify/slugify.js +69 -0
  807. package/plugin/node_modules/stream-buffers/.mailmap +2 -0
  808. package/plugin/node_modules/stream-buffers/.travis.yml +28 -0
  809. package/plugin/node_modules/stream-buffers/README.md +157 -0
  810. package/plugin/node_modules/stream-buffers/UNLICENSE +24 -0
  811. package/plugin/node_modules/stream-buffers/coverage/coverage.json +1 -0
  812. package/plugin/node_modules/stream-buffers/coverage/lcov-report/base.css +182 -0
  813. package/plugin/node_modules/stream-buffers/coverage/lcov-report/index.html +73 -0
  814. package/plugin/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +63 -0
  815. package/plugin/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +112 -0
  816. package/plugin/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +453 -0
  817. package/plugin/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +54 -0
  818. package/plugin/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +336 -0
  819. package/plugin/node_modules/stream-buffers/coverage/lcov-report/prettify.css +1 -0
  820. package/plugin/node_modules/stream-buffers/coverage/lcov-report/prettify.js +1 -0
  821. package/plugin/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  822. package/plugin/node_modules/stream-buffers/coverage/lcov-report/sorter.js +156 -0
  823. package/plugin/node_modules/stream-buffers/coverage/lcov.info +305 -0
  824. package/plugin/node_modules/stream-buffers/lib/constants.js +6 -0
  825. package/plugin/node_modules/stream-buffers/lib/readable_streambuffer.js +136 -0
  826. package/plugin/node_modules/stream-buffers/lib/streambuffer.js +3 -0
  827. package/plugin/node_modules/stream-buffers/lib/writable_streambuffer.js +97 -0
  828. package/plugin/node_modules/stream-buffers/package.json +28 -0
  829. package/plugin/node_modules/supports-color/browser.js +5 -0
  830. package/plugin/node_modules/supports-color/index.js +135 -0
  831. package/plugin/node_modules/supports-color/license +9 -0
  832. package/plugin/node_modules/supports-color/package.json +53 -0
  833. package/plugin/node_modules/supports-color/readme.md +76 -0
  834. package/plugin/node_modules/typescript/LICENSE.txt +55 -0
  835. package/plugin/node_modules/typescript/README.md +50 -0
  836. package/plugin/node_modules/typescript/SECURITY.md +41 -0
  837. package/plugin/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  838. package/plugin/node_modules/typescript/bin/tsc +2 -0
  839. package/plugin/node_modules/typescript/bin/tsserver +2 -0
  840. package/plugin/node_modules/typescript/lib/_tsc.js +133792 -0
  841. package/plugin/node_modules/typescript/lib/_tsserver.js +659 -0
  842. package/plugin/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  843. package/plugin/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  844. package/plugin/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  845. package/plugin/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  846. package/plugin/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  847. package/plugin/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  848. package/plugin/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  849. package/plugin/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  850. package/plugin/node_modules/typescript/lib/lib.d.ts +22 -0
  851. package/plugin/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  852. package/plugin/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  853. package/plugin/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  854. package/plugin/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  855. package/plugin/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  856. package/plugin/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  857. package/plugin/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  858. package/plugin/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  859. package/plugin/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  860. package/plugin/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  861. package/plugin/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  862. package/plugin/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  863. package/plugin/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  864. package/plugin/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  865. package/plugin/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  866. package/plugin/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  867. package/plugin/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  868. package/plugin/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  869. package/plugin/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  870. package/plugin/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  871. package/plugin/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  872. package/plugin/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  873. package/plugin/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  874. package/plugin/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  875. package/plugin/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  876. package/plugin/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  877. package/plugin/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  878. package/plugin/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  879. package/plugin/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  880. package/plugin/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  881. package/plugin/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  882. package/plugin/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  883. package/plugin/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  884. package/plugin/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  885. package/plugin/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  886. package/plugin/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  887. package/plugin/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  888. package/plugin/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  889. package/plugin/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  890. package/plugin/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  891. package/plugin/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  892. package/plugin/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  893. package/plugin/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  894. package/plugin/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  895. package/plugin/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  896. package/plugin/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  897. package/plugin/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  898. package/plugin/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  899. package/plugin/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  900. package/plugin/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  901. package/plugin/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  902. package/plugin/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  903. package/plugin/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  904. package/plugin/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  905. package/plugin/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  906. package/plugin/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  907. package/plugin/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  908. package/plugin/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  909. package/plugin/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  910. package/plugin/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  911. package/plugin/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  912. package/plugin/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  913. package/plugin/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  914. package/plugin/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  915. package/plugin/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  916. package/plugin/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  917. package/plugin/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  918. package/plugin/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  919. package/plugin/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  920. package/plugin/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  921. package/plugin/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  922. package/plugin/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  923. package/plugin/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  924. package/plugin/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  925. package/plugin/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  926. package/plugin/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  927. package/plugin/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  928. package/plugin/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  929. package/plugin/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  930. package/plugin/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  931. package/plugin/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  932. package/plugin/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  933. package/plugin/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  934. package/plugin/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  935. package/plugin/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  936. package/plugin/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  937. package/plugin/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  938. package/plugin/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  939. package/plugin/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
  940. package/plugin/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  941. package/plugin/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  942. package/plugin/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  943. package/plugin/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  944. package/plugin/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  945. package/plugin/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  946. package/plugin/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  947. package/plugin/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  948. package/plugin/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  949. package/plugin/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  950. package/plugin/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  951. package/plugin/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  952. package/plugin/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  953. package/plugin/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  954. package/plugin/node_modules/typescript/lib/tsc.js +8 -0
  955. package/plugin/node_modules/typescript/lib/tsserver.js +8 -0
  956. package/plugin/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  957. package/plugin/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  958. package/plugin/node_modules/typescript/lib/typesMap.json +497 -0
  959. package/plugin/node_modules/typescript/lib/typescript.d.ts +11438 -0
  960. package/plugin/node_modules/typescript/lib/typescript.js +200253 -0
  961. package/plugin/node_modules/typescript/lib/typingsInstaller.js +8 -0
  962. package/plugin/node_modules/typescript/lib/watchGuard.js +53 -0
  963. package/plugin/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  964. package/plugin/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  965. package/plugin/node_modules/typescript/package.json +120 -0
  966. package/plugin/node_modules/undici-types/LICENSE +21 -0
  967. package/plugin/node_modules/undici-types/README.md +6 -0
  968. package/plugin/node_modules/undici-types/agent.d.ts +31 -0
  969. package/plugin/node_modules/undici-types/api.d.ts +43 -0
  970. package/plugin/node_modules/undici-types/balanced-pool.d.ts +29 -0
  971. package/plugin/node_modules/undici-types/cache.d.ts +36 -0
  972. package/plugin/node_modules/undici-types/client.d.ts +108 -0
  973. package/plugin/node_modules/undici-types/connector.d.ts +34 -0
  974. package/plugin/node_modules/undici-types/content-type.d.ts +21 -0
  975. package/plugin/node_modules/undici-types/cookies.d.ts +28 -0
  976. package/plugin/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  977. package/plugin/node_modules/undici-types/dispatcher.d.ts +256 -0
  978. package/plugin/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  979. package/plugin/node_modules/undici-types/errors.d.ts +149 -0
  980. package/plugin/node_modules/undici-types/eventsource.d.ts +61 -0
  981. package/plugin/node_modules/undici-types/fetch.d.ts +209 -0
  982. package/plugin/node_modules/undici-types/file.d.ts +39 -0
  983. package/plugin/node_modules/undici-types/filereader.d.ts +54 -0
  984. package/plugin/node_modules/undici-types/formdata.d.ts +108 -0
  985. package/plugin/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  986. package/plugin/node_modules/undici-types/global-origin.d.ts +7 -0
  987. package/plugin/node_modules/undici-types/handlers.d.ts +15 -0
  988. package/plugin/node_modules/undici-types/header.d.ts +4 -0
  989. package/plugin/node_modules/undici-types/index.d.ts +71 -0
  990. package/plugin/node_modules/undici-types/interceptors.d.ts +17 -0
  991. package/plugin/node_modules/undici-types/mock-agent.d.ts +50 -0
  992. package/plugin/node_modules/undici-types/mock-client.d.ts +25 -0
  993. package/plugin/node_modules/undici-types/mock-errors.d.ts +12 -0
  994. package/plugin/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  995. package/plugin/node_modules/undici-types/mock-pool.d.ts +25 -0
  996. package/plugin/node_modules/undici-types/package.json +55 -0
  997. package/plugin/node_modules/undici-types/patch.d.ts +33 -0
  998. package/plugin/node_modules/undici-types/pool-stats.d.ts +19 -0
  999. package/plugin/node_modules/undici-types/pool.d.ts +39 -0
  1000. package/plugin/node_modules/undici-types/proxy-agent.d.ts +28 -0
  1001. package/plugin/node_modules/undici-types/readable.d.ts +65 -0
  1002. package/plugin/node_modules/undici-types/retry-agent.d.ts +8 -0
  1003. package/plugin/node_modules/undici-types/retry-handler.d.ts +116 -0
  1004. package/plugin/node_modules/undici-types/util.d.ts +18 -0
  1005. package/plugin/node_modules/undici-types/webidl.d.ts +228 -0
  1006. package/plugin/node_modules/undici-types/websocket.d.ts +150 -0
  1007. package/plugin/node_modules/uuid/CHANGELOG.md +156 -0
  1008. package/plugin/node_modules/uuid/CONTRIBUTING.md +20 -0
  1009. package/plugin/node_modules/uuid/LICENSE.md +21 -0
  1010. package/plugin/node_modules/uuid/README.md +406 -0
  1011. package/plugin/node_modules/uuid/deprecate.js +20 -0
  1012. package/plugin/node_modules/uuid/dist/bin/uuid +2 -0
  1013. package/plugin/node_modules/uuid/dist/bytesToUuid.js +27 -0
  1014. package/plugin/node_modules/uuid/dist/esm-browser/bytesToUuid.js +18 -0
  1015. package/plugin/node_modules/uuid/dist/esm-browser/index.js +4 -0
  1016. package/plugin/node_modules/uuid/dist/esm-browser/md5.js +218 -0
  1017. package/plugin/node_modules/uuid/dist/esm-browser/rng.js +15 -0
  1018. package/plugin/node_modules/uuid/dist/esm-browser/sha1.js +91 -0
  1019. package/plugin/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  1020. package/plugin/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  1021. package/plugin/node_modules/uuid/dist/esm-browser/v35.js +56 -0
  1022. package/plugin/node_modules/uuid/dist/esm-browser/v4.js +27 -0
  1023. package/plugin/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  1024. package/plugin/node_modules/uuid/dist/esm-node/bytesToUuid.js +18 -0
  1025. package/plugin/node_modules/uuid/dist/esm-node/index.js +4 -0
  1026. package/plugin/node_modules/uuid/dist/esm-node/md5.js +13 -0
  1027. package/plugin/node_modules/uuid/dist/esm-node/rng.js +4 -0
  1028. package/plugin/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  1029. package/plugin/node_modules/uuid/dist/esm-node/v1.js +95 -0
  1030. package/plugin/node_modules/uuid/dist/esm-node/v3.js +4 -0
  1031. package/plugin/node_modules/uuid/dist/esm-node/v35.js +56 -0
  1032. package/plugin/node_modules/uuid/dist/esm-node/v4.js +27 -0
  1033. package/plugin/node_modules/uuid/dist/esm-node/v5.js +4 -0
  1034. package/plugin/node_modules/uuid/dist/index.js +39 -0
  1035. package/plugin/node_modules/uuid/dist/md5-browser.js +225 -0
  1036. package/plugin/node_modules/uuid/dist/md5.js +24 -0
  1037. package/plugin/node_modules/uuid/dist/rng-browser.js +23 -0
  1038. package/plugin/node_modules/uuid/dist/rng.js +16 -0
  1039. package/plugin/node_modules/uuid/dist/sha1-browser.js +96 -0
  1040. package/plugin/node_modules/uuid/dist/sha1.js +24 -0
  1041. package/plugin/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  1042. package/plugin/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  1043. package/plugin/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  1044. package/plugin/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  1045. package/plugin/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  1046. package/plugin/node_modules/uuid/dist/uuid-bin.js +67 -0
  1047. package/plugin/node_modules/uuid/dist/v1.js +108 -0
  1048. package/plugin/node_modules/uuid/dist/v3.js +17 -0
  1049. package/plugin/node_modules/uuid/dist/v35.js +69 -0
  1050. package/plugin/node_modules/uuid/dist/v4.js +41 -0
  1051. package/plugin/node_modules/uuid/dist/v5.js +17 -0
  1052. package/plugin/node_modules/uuid/package.json +115 -0
  1053. package/plugin/node_modules/uuid/v1.js +8 -0
  1054. package/plugin/node_modules/uuid/v3.js +8 -0
  1055. package/plugin/node_modules/uuid/v4.js +8 -0
  1056. package/plugin/node_modules/uuid/v5.js +8 -0
  1057. package/plugin/node_modules/wrappy/LICENSE +15 -0
  1058. package/plugin/node_modules/wrappy/README.md +36 -0
  1059. package/plugin/node_modules/wrappy/package.json +29 -0
  1060. package/plugin/node_modules/wrappy/wrappy.js +33 -0
  1061. package/plugin/node_modules/write-file-atomic/CHANGELOG.md +25 -0
  1062. package/plugin/node_modules/write-file-atomic/LICENSE +6 -0
  1063. package/plugin/node_modules/write-file-atomic/README.md +56 -0
  1064. package/plugin/node_modules/write-file-atomic/index.js +238 -0
  1065. package/plugin/node_modules/write-file-atomic/package.json +41 -0
  1066. package/plugin/node_modules/xcode/AUTHORS +6 -0
  1067. package/plugin/node_modules/xcode/CONTRIBUTING.md +37 -0
  1068. package/plugin/node_modules/xcode/LICENSE +202 -0
  1069. package/plugin/node_modules/xcode/Makefile +24 -0
  1070. package/plugin/node_modules/xcode/NOTICE +5 -0
  1071. package/plugin/node_modules/xcode/README.md +72 -0
  1072. package/plugin/node_modules/xcode/RELEASENOTES.md +77 -0
  1073. package/plugin/node_modules/xcode/index.js +18 -0
  1074. package/plugin/node_modules/xcode/lib/parseJob.js +32 -0
  1075. package/plugin/node_modules/xcode/lib/parser/pbxproj.js +1904 -0
  1076. package/plugin/node_modules/xcode/lib/parser/pbxproj.pegjs +280 -0
  1077. package/plugin/node_modules/xcode/lib/pbxFile.js +233 -0
  1078. package/plugin/node_modules/xcode/lib/pbxProject.js +2201 -0
  1079. package/plugin/node_modules/xcode/lib/pbxWriter.js +309 -0
  1080. package/plugin/node_modules/xcode/package.json +61 -0
  1081. package/plugin/node_modules/xml2js/LICENSE +19 -0
  1082. package/plugin/node_modules/xml2js/README.md +507 -0
  1083. package/plugin/node_modules/xml2js/lib/bom.js +12 -0
  1084. package/plugin/node_modules/xml2js/lib/builder.js +127 -0
  1085. package/plugin/node_modules/xml2js/lib/defaults.js +72 -0
  1086. package/plugin/node_modules/xml2js/lib/parser.js +396 -0
  1087. package/plugin/node_modules/xml2js/lib/processors.js +34 -0
  1088. package/plugin/node_modules/xml2js/lib/xml2js.js +39 -0
  1089. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +470 -0
  1090. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +21 -0
  1091. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/README.md +86 -0
  1092. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +20 -0
  1093. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  1094. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  1095. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +23 -0
  1096. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  1097. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +83 -0
  1098. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  1099. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +108 -0
  1100. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +36 -0
  1101. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +79 -0
  1102. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +36 -0
  1103. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +64 -0
  1104. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +16 -0
  1105. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +32 -0
  1106. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +28 -0
  1107. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +55 -0
  1108. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +38 -0
  1109. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +97 -0
  1110. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +52 -0
  1111. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +43 -0
  1112. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +186 -0
  1113. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +242 -0
  1114. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +528 -0
  1115. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +24 -0
  1116. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +31 -0
  1117. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +298 -0
  1118. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +58 -0
  1119. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +785 -0
  1120. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +48 -0
  1121. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +28 -0
  1122. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +49 -0
  1123. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +35 -0
  1124. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +176 -0
  1125. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +35 -0
  1126. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +240 -0
  1127. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +69 -0
  1128. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +21 -0
  1129. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +16 -0
  1130. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +428 -0
  1131. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +65 -0
  1132. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/package.json +39 -0
  1133. package/plugin/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +153 -0
  1134. package/plugin/node_modules/xml2js/package.json +93 -0
  1135. package/plugin/node_modules/xmlbuilder/.nycrc +6 -0
  1136. package/plugin/node_modules/xmlbuilder/CHANGELOG.md +568 -0
  1137. package/plugin/node_modules/xmlbuilder/LICENSE +21 -0
  1138. package/plugin/node_modules/xmlbuilder/README.md +103 -0
  1139. package/plugin/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  1140. package/plugin/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  1141. package/plugin/node_modules/xmlbuilder/lib/NodeType.js +25 -0
  1142. package/plugin/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  1143. package/plugin/node_modules/xmlbuilder/lib/Utility.js +88 -0
  1144. package/plugin/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  1145. package/plugin/node_modules/xmlbuilder/lib/XMLAttribute.js +130 -0
  1146. package/plugin/node_modules/xmlbuilder/lib/XMLCData.js +41 -0
  1147. package/plugin/node_modules/xmlbuilder/lib/XMLCharacterData.js +86 -0
  1148. package/plugin/node_modules/xmlbuilder/lib/XMLComment.js +41 -0
  1149. package/plugin/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +80 -0
  1150. package/plugin/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +20 -0
  1151. package/plugin/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +55 -0
  1152. package/plugin/node_modules/xmlbuilder/lib/XMLDOMStringList.js +44 -0
  1153. package/plugin/node_modules/xmlbuilder/lib/XMLDTDAttList.js +66 -0
  1154. package/plugin/node_modules/xmlbuilder/lib/XMLDTDElement.js +44 -0
  1155. package/plugin/node_modules/xmlbuilder/lib/XMLDTDEntity.js +115 -0
  1156. package/plugin/node_modules/xmlbuilder/lib/XMLDTDNotation.js +66 -0
  1157. package/plugin/node_modules/xmlbuilder/lib/XMLDeclaration.js +51 -0
  1158. package/plugin/node_modules/xmlbuilder/lib/XMLDocType.js +235 -0
  1159. package/plugin/node_modules/xmlbuilder/lib/XMLDocument.js +282 -0
  1160. package/plugin/node_modules/xmlbuilder/lib/XMLDocumentCB.js +650 -0
  1161. package/plugin/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +21 -0
  1162. package/plugin/node_modules/xmlbuilder/lib/XMLDummy.js +39 -0
  1163. package/plugin/node_modules/xmlbuilder/lib/XMLElement.js +334 -0
  1164. package/plugin/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +77 -0
  1165. package/plugin/node_modules/xmlbuilder/lib/XMLNode.js +999 -0
  1166. package/plugin/node_modules/xmlbuilder/lib/XMLNodeFilter.js +51 -0
  1167. package/plugin/node_modules/xmlbuilder/lib/XMLNodeList.js +45 -0
  1168. package/plugin/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +56 -0
  1169. package/plugin/node_modules/xmlbuilder/lib/XMLRaw.js +40 -0
  1170. package/plugin/node_modules/xmlbuilder/lib/XMLStreamWriter.js +209 -0
  1171. package/plugin/node_modules/xmlbuilder/lib/XMLStringWriter.js +40 -0
  1172. package/plugin/node_modules/xmlbuilder/lib/XMLStringifier.js +287 -0
  1173. package/plugin/node_modules/xmlbuilder/lib/XMLText.js +82 -0
  1174. package/plugin/node_modules/xmlbuilder/lib/XMLTypeInfo.js +23 -0
  1175. package/plugin/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +27 -0
  1176. package/plugin/node_modules/xmlbuilder/lib/XMLWriterBase.js +485 -0
  1177. package/plugin/node_modules/xmlbuilder/lib/index.js +120 -0
  1178. package/plugin/node_modules/xmlbuilder/package.json +51 -0
  1179. package/plugin/node_modules/xmlbuilder/perf/basic/escaping.coffee +244 -0
  1180. package/plugin/node_modules/xmlbuilder/perf/basic/object.coffee +21 -0
  1181. package/plugin/node_modules/xmlbuilder/perf/index.coffee +161 -0
  1182. package/plugin/node_modules/xmlbuilder/perf/perf.list +11 -0
  1183. package/plugin/node_modules/xmlbuilder/typings/index.d.ts +1761 -0
  1184. package/plugin/node_modules/yocto-queue/index.d.ts +56 -0
  1185. package/plugin/node_modules/yocto-queue/index.js +68 -0
  1186. package/plugin/node_modules/yocto-queue/license +9 -0
  1187. package/plugin/node_modules/yocto-queue/package.json +43 -0
  1188. package/plugin/node_modules/yocto-queue/readme.md +64 -0
  1189. package/plugin/package-lock.json +763 -0
  1190. package/plugin/package.json +16 -0
  1191. package/plugin/src/withVolumeKeyIntercept.ts +184 -0
  1192. package/plugin/tsconfig.json +18 -0
  1193. package/plugin/tsconfig.tsbuildinfo +1 -0
  1194. package/src/ReactNativeKookitModule.ts +20 -0
@@ -0,0 +1,1453 @@
1
+ var bigInt = (function (undefined) {
2
+ "use strict";
3
+
4
+ var BASE = 1e7,
5
+ LOG_BASE = 7,
6
+ MAX_INT = 9007199254740992,
7
+ MAX_INT_ARR = smallToArray(MAX_INT),
8
+ DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
9
+
10
+ var supportsNativeBigInt = typeof BigInt === "function";
11
+
12
+ function Integer(v, radix, alphabet, caseSensitive) {
13
+ if (typeof v === "undefined") return Integer[0];
14
+ if (typeof radix !== "undefined") return +radix === 10 && !alphabet ? parseValue(v) : parseBase(v, radix, alphabet, caseSensitive);
15
+ return parseValue(v);
16
+ }
17
+
18
+ function BigInteger(value, sign) {
19
+ this.value = value;
20
+ this.sign = sign;
21
+ this.isSmall = false;
22
+ }
23
+ BigInteger.prototype = Object.create(Integer.prototype);
24
+
25
+ function SmallInteger(value) {
26
+ this.value = value;
27
+ this.sign = value < 0;
28
+ this.isSmall = true;
29
+ }
30
+ SmallInteger.prototype = Object.create(Integer.prototype);
31
+
32
+ function NativeBigInt(value) {
33
+ this.value = value;
34
+ }
35
+ NativeBigInt.prototype = Object.create(Integer.prototype);
36
+
37
+ function isPrecise(n) {
38
+ return -MAX_INT < n && n < MAX_INT;
39
+ }
40
+
41
+ function smallToArray(n) { // For performance reasons doesn't reference BASE, need to change this function if BASE changes
42
+ if (n < 1e7)
43
+ return [n];
44
+ if (n < 1e14)
45
+ return [n % 1e7, Math.floor(n / 1e7)];
46
+ return [n % 1e7, Math.floor(n / 1e7) % 1e7, Math.floor(n / 1e14)];
47
+ }
48
+
49
+ function arrayToSmall(arr) { // If BASE changes this function may need to change
50
+ trim(arr);
51
+ var length = arr.length;
52
+ if (length < 4 && compareAbs(arr, MAX_INT_ARR) < 0) {
53
+ switch (length) {
54
+ case 0: return 0;
55
+ case 1: return arr[0];
56
+ case 2: return arr[0] + arr[1] * BASE;
57
+ default: return arr[0] + (arr[1] + arr[2] * BASE) * BASE;
58
+ }
59
+ }
60
+ return arr;
61
+ }
62
+
63
+ function trim(v) {
64
+ var i = v.length;
65
+ while (v[--i] === 0);
66
+ v.length = i + 1;
67
+ }
68
+
69
+ function createArray(length) { // function shamelessly stolen from Yaffle's library https://github.com/Yaffle/BigInteger
70
+ var x = new Array(length);
71
+ var i = -1;
72
+ while (++i < length) {
73
+ x[i] = 0;
74
+ }
75
+ return x;
76
+ }
77
+
78
+ function truncate(n) {
79
+ if (n > 0) return Math.floor(n);
80
+ return Math.ceil(n);
81
+ }
82
+
83
+ function add(a, b) { // assumes a and b are arrays with a.length >= b.length
84
+ var l_a = a.length,
85
+ l_b = b.length,
86
+ r = new Array(l_a),
87
+ carry = 0,
88
+ base = BASE,
89
+ sum, i;
90
+ for (i = 0; i < l_b; i++) {
91
+ sum = a[i] + b[i] + carry;
92
+ carry = sum >= base ? 1 : 0;
93
+ r[i] = sum - carry * base;
94
+ }
95
+ while (i < l_a) {
96
+ sum = a[i] + carry;
97
+ carry = sum === base ? 1 : 0;
98
+ r[i++] = sum - carry * base;
99
+ }
100
+ if (carry > 0) r.push(carry);
101
+ return r;
102
+ }
103
+
104
+ function addAny(a, b) {
105
+ if (a.length >= b.length) return add(a, b);
106
+ return add(b, a);
107
+ }
108
+
109
+ function addSmall(a, carry) { // assumes a is array, carry is number with 0 <= carry < MAX_INT
110
+ var l = a.length,
111
+ r = new Array(l),
112
+ base = BASE,
113
+ sum, i;
114
+ for (i = 0; i < l; i++) {
115
+ sum = a[i] - base + carry;
116
+ carry = Math.floor(sum / base);
117
+ r[i] = sum - carry * base;
118
+ carry += 1;
119
+ }
120
+ while (carry > 0) {
121
+ r[i++] = carry % base;
122
+ carry = Math.floor(carry / base);
123
+ }
124
+ return r;
125
+ }
126
+
127
+ BigInteger.prototype.add = function (v) {
128
+ var n = parseValue(v);
129
+ if (this.sign !== n.sign) {
130
+ return this.subtract(n.negate());
131
+ }
132
+ var a = this.value, b = n.value;
133
+ if (n.isSmall) {
134
+ return new BigInteger(addSmall(a, Math.abs(b)), this.sign);
135
+ }
136
+ return new BigInteger(addAny(a, b), this.sign);
137
+ };
138
+ BigInteger.prototype.plus = BigInteger.prototype.add;
139
+
140
+ SmallInteger.prototype.add = function (v) {
141
+ var n = parseValue(v);
142
+ var a = this.value;
143
+ if (a < 0 !== n.sign) {
144
+ return this.subtract(n.negate());
145
+ }
146
+ var b = n.value;
147
+ if (n.isSmall) {
148
+ if (isPrecise(a + b)) return new SmallInteger(a + b);
149
+ b = smallToArray(Math.abs(b));
150
+ }
151
+ return new BigInteger(addSmall(b, Math.abs(a)), a < 0);
152
+ };
153
+ SmallInteger.prototype.plus = SmallInteger.prototype.add;
154
+
155
+ NativeBigInt.prototype.add = function (v) {
156
+ return new NativeBigInt(this.value + parseValue(v).value);
157
+ }
158
+ NativeBigInt.prototype.plus = NativeBigInt.prototype.add;
159
+
160
+ function subtract(a, b) { // assumes a and b are arrays with a >= b
161
+ var a_l = a.length,
162
+ b_l = b.length,
163
+ r = new Array(a_l),
164
+ borrow = 0,
165
+ base = BASE,
166
+ i, difference;
167
+ for (i = 0; i < b_l; i++) {
168
+ difference = a[i] - borrow - b[i];
169
+ if (difference < 0) {
170
+ difference += base;
171
+ borrow = 1;
172
+ } else borrow = 0;
173
+ r[i] = difference;
174
+ }
175
+ for (i = b_l; i < a_l; i++) {
176
+ difference = a[i] - borrow;
177
+ if (difference < 0) difference += base;
178
+ else {
179
+ r[i++] = difference;
180
+ break;
181
+ }
182
+ r[i] = difference;
183
+ }
184
+ for (; i < a_l; i++) {
185
+ r[i] = a[i];
186
+ }
187
+ trim(r);
188
+ return r;
189
+ }
190
+
191
+ function subtractAny(a, b, sign) {
192
+ var value;
193
+ if (compareAbs(a, b) >= 0) {
194
+ value = subtract(a, b);
195
+ } else {
196
+ value = subtract(b, a);
197
+ sign = !sign;
198
+ }
199
+ value = arrayToSmall(value);
200
+ if (typeof value === "number") {
201
+ if (sign) value = -value;
202
+ return new SmallInteger(value);
203
+ }
204
+ return new BigInteger(value, sign);
205
+ }
206
+
207
+ function subtractSmall(a, b, sign) { // assumes a is array, b is number with 0 <= b < MAX_INT
208
+ var l = a.length,
209
+ r = new Array(l),
210
+ carry = -b,
211
+ base = BASE,
212
+ i, difference;
213
+ for (i = 0; i < l; i++) {
214
+ difference = a[i] + carry;
215
+ carry = Math.floor(difference / base);
216
+ difference %= base;
217
+ r[i] = difference < 0 ? difference + base : difference;
218
+ }
219
+ r = arrayToSmall(r);
220
+ if (typeof r === "number") {
221
+ if (sign) r = -r;
222
+ return new SmallInteger(r);
223
+ } return new BigInteger(r, sign);
224
+ }
225
+
226
+ BigInteger.prototype.subtract = function (v) {
227
+ var n = parseValue(v);
228
+ if (this.sign !== n.sign) {
229
+ return this.add(n.negate());
230
+ }
231
+ var a = this.value, b = n.value;
232
+ if (n.isSmall)
233
+ return subtractSmall(a, Math.abs(b), this.sign);
234
+ return subtractAny(a, b, this.sign);
235
+ };
236
+ BigInteger.prototype.minus = BigInteger.prototype.subtract;
237
+
238
+ SmallInteger.prototype.subtract = function (v) {
239
+ var n = parseValue(v);
240
+ var a = this.value;
241
+ if (a < 0 !== n.sign) {
242
+ return this.add(n.negate());
243
+ }
244
+ var b = n.value;
245
+ if (n.isSmall) {
246
+ return new SmallInteger(a - b);
247
+ }
248
+ return subtractSmall(b, Math.abs(a), a >= 0);
249
+ };
250
+ SmallInteger.prototype.minus = SmallInteger.prototype.subtract;
251
+
252
+ NativeBigInt.prototype.subtract = function (v) {
253
+ return new NativeBigInt(this.value - parseValue(v).value);
254
+ }
255
+ NativeBigInt.prototype.minus = NativeBigInt.prototype.subtract;
256
+
257
+ BigInteger.prototype.negate = function () {
258
+ return new BigInteger(this.value, !this.sign);
259
+ };
260
+ SmallInteger.prototype.negate = function () {
261
+ var sign = this.sign;
262
+ var small = new SmallInteger(-this.value);
263
+ small.sign = !sign;
264
+ return small;
265
+ };
266
+ NativeBigInt.prototype.negate = function () {
267
+ return new NativeBigInt(-this.value);
268
+ }
269
+
270
+ BigInteger.prototype.abs = function () {
271
+ return new BigInteger(this.value, false);
272
+ };
273
+ SmallInteger.prototype.abs = function () {
274
+ return new SmallInteger(Math.abs(this.value));
275
+ };
276
+ NativeBigInt.prototype.abs = function () {
277
+ return new NativeBigInt(this.value >= 0 ? this.value : -this.value);
278
+ }
279
+
280
+
281
+ function multiplyLong(a, b) {
282
+ var a_l = a.length,
283
+ b_l = b.length,
284
+ l = a_l + b_l,
285
+ r = createArray(l),
286
+ base = BASE,
287
+ product, carry, i, a_i, b_j;
288
+ for (i = 0; i < a_l; ++i) {
289
+ a_i = a[i];
290
+ for (var j = 0; j < b_l; ++j) {
291
+ b_j = b[j];
292
+ product = a_i * b_j + r[i + j];
293
+ carry = Math.floor(product / base);
294
+ r[i + j] = product - carry * base;
295
+ r[i + j + 1] += carry;
296
+ }
297
+ }
298
+ trim(r);
299
+ return r;
300
+ }
301
+
302
+ function multiplySmall(a, b) { // assumes a is array, b is number with |b| < BASE
303
+ var l = a.length,
304
+ r = new Array(l),
305
+ base = BASE,
306
+ carry = 0,
307
+ product, i;
308
+ for (i = 0; i < l; i++) {
309
+ product = a[i] * b + carry;
310
+ carry = Math.floor(product / base);
311
+ r[i] = product - carry * base;
312
+ }
313
+ while (carry > 0) {
314
+ r[i++] = carry % base;
315
+ carry = Math.floor(carry / base);
316
+ }
317
+ return r;
318
+ }
319
+
320
+ function shiftLeft(x, n) {
321
+ var r = [];
322
+ while (n-- > 0) r.push(0);
323
+ return r.concat(x);
324
+ }
325
+
326
+ function multiplyKaratsuba(x, y) {
327
+ var n = Math.max(x.length, y.length);
328
+
329
+ if (n <= 30) return multiplyLong(x, y);
330
+ n = Math.ceil(n / 2);
331
+
332
+ var b = x.slice(n),
333
+ a = x.slice(0, n),
334
+ d = y.slice(n),
335
+ c = y.slice(0, n);
336
+
337
+ var ac = multiplyKaratsuba(a, c),
338
+ bd = multiplyKaratsuba(b, d),
339
+ abcd = multiplyKaratsuba(addAny(a, b), addAny(c, d));
340
+
341
+ var product = addAny(addAny(ac, shiftLeft(subtract(subtract(abcd, ac), bd), n)), shiftLeft(bd, 2 * n));
342
+ trim(product);
343
+ return product;
344
+ }
345
+
346
+ // The following function is derived from a surface fit of a graph plotting the performance difference
347
+ // between long multiplication and karatsuba multiplication versus the lengths of the two arrays.
348
+ function useKaratsuba(l1, l2) {
349
+ return -0.012 * l1 - 0.012 * l2 + 0.000015 * l1 * l2 > 0;
350
+ }
351
+
352
+ BigInteger.prototype.multiply = function (v) {
353
+ var n = parseValue(v),
354
+ a = this.value, b = n.value,
355
+ sign = this.sign !== n.sign,
356
+ abs;
357
+ if (n.isSmall) {
358
+ if (b === 0) return Integer[0];
359
+ if (b === 1) return this;
360
+ if (b === -1) return this.negate();
361
+ abs = Math.abs(b);
362
+ if (abs < BASE) {
363
+ return new BigInteger(multiplySmall(a, abs), sign);
364
+ }
365
+ b = smallToArray(abs);
366
+ }
367
+ if (useKaratsuba(a.length, b.length)) // Karatsuba is only faster for certain array sizes
368
+ return new BigInteger(multiplyKaratsuba(a, b), sign);
369
+ return new BigInteger(multiplyLong(a, b), sign);
370
+ };
371
+
372
+ BigInteger.prototype.times = BigInteger.prototype.multiply;
373
+
374
+ function multiplySmallAndArray(a, b, sign) { // a >= 0
375
+ if (a < BASE) {
376
+ return new BigInteger(multiplySmall(b, a), sign);
377
+ }
378
+ return new BigInteger(multiplyLong(b, smallToArray(a)), sign);
379
+ }
380
+ SmallInteger.prototype._multiplyBySmall = function (a) {
381
+ if (isPrecise(a.value * this.value)) {
382
+ return new SmallInteger(a.value * this.value);
383
+ }
384
+ return multiplySmallAndArray(Math.abs(a.value), smallToArray(Math.abs(this.value)), this.sign !== a.sign);
385
+ };
386
+ BigInteger.prototype._multiplyBySmall = function (a) {
387
+ if (a.value === 0) return Integer[0];
388
+ if (a.value === 1) return this;
389
+ if (a.value === -1) return this.negate();
390
+ return multiplySmallAndArray(Math.abs(a.value), this.value, this.sign !== a.sign);
391
+ };
392
+ SmallInteger.prototype.multiply = function (v) {
393
+ return parseValue(v)._multiplyBySmall(this);
394
+ };
395
+ SmallInteger.prototype.times = SmallInteger.prototype.multiply;
396
+
397
+ NativeBigInt.prototype.multiply = function (v) {
398
+ return new NativeBigInt(this.value * parseValue(v).value);
399
+ }
400
+ NativeBigInt.prototype.times = NativeBigInt.prototype.multiply;
401
+
402
+ function square(a) {
403
+ //console.assert(2 * BASE * BASE < MAX_INT);
404
+ var l = a.length,
405
+ r = createArray(l + l),
406
+ base = BASE,
407
+ product, carry, i, a_i, a_j;
408
+ for (i = 0; i < l; i++) {
409
+ a_i = a[i];
410
+ carry = 0 - a_i * a_i;
411
+ for (var j = i; j < l; j++) {
412
+ a_j = a[j];
413
+ product = 2 * (a_i * a_j) + r[i + j] + carry;
414
+ carry = Math.floor(product / base);
415
+ r[i + j] = product - carry * base;
416
+ }
417
+ r[i + l] = carry;
418
+ }
419
+ trim(r);
420
+ return r;
421
+ }
422
+
423
+ BigInteger.prototype.square = function () {
424
+ return new BigInteger(square(this.value), false);
425
+ };
426
+
427
+ SmallInteger.prototype.square = function () {
428
+ var value = this.value * this.value;
429
+ if (isPrecise(value)) return new SmallInteger(value);
430
+ return new BigInteger(square(smallToArray(Math.abs(this.value))), false);
431
+ };
432
+
433
+ NativeBigInt.prototype.square = function (v) {
434
+ return new NativeBigInt(this.value * this.value);
435
+ }
436
+
437
+ function divMod1(a, b) { // Left over from previous version. Performs faster than divMod2 on smaller input sizes.
438
+ var a_l = a.length,
439
+ b_l = b.length,
440
+ base = BASE,
441
+ result = createArray(b.length),
442
+ divisorMostSignificantDigit = b[b_l - 1],
443
+ // normalization
444
+ lambda = Math.ceil(base / (2 * divisorMostSignificantDigit)),
445
+ remainder = multiplySmall(a, lambda),
446
+ divisor = multiplySmall(b, lambda),
447
+ quotientDigit, shift, carry, borrow, i, l, q;
448
+ if (remainder.length <= a_l) remainder.push(0);
449
+ divisor.push(0);
450
+ divisorMostSignificantDigit = divisor[b_l - 1];
451
+ for (shift = a_l - b_l; shift >= 0; shift--) {
452
+ quotientDigit = base - 1;
453
+ if (remainder[shift + b_l] !== divisorMostSignificantDigit) {
454
+ quotientDigit = Math.floor((remainder[shift + b_l] * base + remainder[shift + b_l - 1]) / divisorMostSignificantDigit);
455
+ }
456
+ // quotientDigit <= base - 1
457
+ carry = 0;
458
+ borrow = 0;
459
+ l = divisor.length;
460
+ for (i = 0; i < l; i++) {
461
+ carry += quotientDigit * divisor[i];
462
+ q = Math.floor(carry / base);
463
+ borrow += remainder[shift + i] - (carry - q * base);
464
+ carry = q;
465
+ if (borrow < 0) {
466
+ remainder[shift + i] = borrow + base;
467
+ borrow = -1;
468
+ } else {
469
+ remainder[shift + i] = borrow;
470
+ borrow = 0;
471
+ }
472
+ }
473
+ while (borrow !== 0) {
474
+ quotientDigit -= 1;
475
+ carry = 0;
476
+ for (i = 0; i < l; i++) {
477
+ carry += remainder[shift + i] - base + divisor[i];
478
+ if (carry < 0) {
479
+ remainder[shift + i] = carry + base;
480
+ carry = 0;
481
+ } else {
482
+ remainder[shift + i] = carry;
483
+ carry = 1;
484
+ }
485
+ }
486
+ borrow += carry;
487
+ }
488
+ result[shift] = quotientDigit;
489
+ }
490
+ // denormalization
491
+ remainder = divModSmall(remainder, lambda)[0];
492
+ return [arrayToSmall(result), arrayToSmall(remainder)];
493
+ }
494
+
495
+ function divMod2(a, b) { // Implementation idea shamelessly stolen from Silent Matt's library http://silentmatt.com/biginteger/
496
+ // Performs faster than divMod1 on larger input sizes.
497
+ var a_l = a.length,
498
+ b_l = b.length,
499
+ result = [],
500
+ part = [],
501
+ base = BASE,
502
+ guess, xlen, highx, highy, check;
503
+ while (a_l) {
504
+ part.unshift(a[--a_l]);
505
+ trim(part);
506
+ if (compareAbs(part, b) < 0) {
507
+ result.push(0);
508
+ continue;
509
+ }
510
+ xlen = part.length;
511
+ highx = part[xlen - 1] * base + part[xlen - 2];
512
+ highy = b[b_l - 1] * base + b[b_l - 2];
513
+ if (xlen > b_l) {
514
+ highx = (highx + 1) * base;
515
+ }
516
+ guess = Math.ceil(highx / highy);
517
+ do {
518
+ check = multiplySmall(b, guess);
519
+ if (compareAbs(check, part) <= 0) break;
520
+ guess--;
521
+ } while (guess);
522
+ result.push(guess);
523
+ part = subtract(part, check);
524
+ }
525
+ result.reverse();
526
+ return [arrayToSmall(result), arrayToSmall(part)];
527
+ }
528
+
529
+ function divModSmall(value, lambda) {
530
+ var length = value.length,
531
+ quotient = createArray(length),
532
+ base = BASE,
533
+ i, q, remainder, divisor;
534
+ remainder = 0;
535
+ for (i = length - 1; i >= 0; --i) {
536
+ divisor = remainder * base + value[i];
537
+ q = truncate(divisor / lambda);
538
+ remainder = divisor - q * lambda;
539
+ quotient[i] = q | 0;
540
+ }
541
+ return [quotient, remainder | 0];
542
+ }
543
+
544
+ function divModAny(self, v) {
545
+ var value, n = parseValue(v);
546
+ if (supportsNativeBigInt) {
547
+ return [new NativeBigInt(self.value / n.value), new NativeBigInt(self.value % n.value)];
548
+ }
549
+ var a = self.value, b = n.value;
550
+ var quotient;
551
+ if (b === 0) throw new Error("Cannot divide by zero");
552
+ if (self.isSmall) {
553
+ if (n.isSmall) {
554
+ return [new SmallInteger(truncate(a / b)), new SmallInteger(a % b)];
555
+ }
556
+ return [Integer[0], self];
557
+ }
558
+ if (n.isSmall) {
559
+ if (b === 1) return [self, Integer[0]];
560
+ if (b == -1) return [self.negate(), Integer[0]];
561
+ var abs = Math.abs(b);
562
+ if (abs < BASE) {
563
+ value = divModSmall(a, abs);
564
+ quotient = arrayToSmall(value[0]);
565
+ var remainder = value[1];
566
+ if (self.sign) remainder = -remainder;
567
+ if (typeof quotient === "number") {
568
+ if (self.sign !== n.sign) quotient = -quotient;
569
+ return [new SmallInteger(quotient), new SmallInteger(remainder)];
570
+ }
571
+ return [new BigInteger(quotient, self.sign !== n.sign), new SmallInteger(remainder)];
572
+ }
573
+ b = smallToArray(abs);
574
+ }
575
+ var comparison = compareAbs(a, b);
576
+ if (comparison === -1) return [Integer[0], self];
577
+ if (comparison === 0) return [Integer[self.sign === n.sign ? 1 : -1], Integer[0]];
578
+
579
+ // divMod1 is faster on smaller input sizes
580
+ if (a.length + b.length <= 200)
581
+ value = divMod1(a, b);
582
+ else value = divMod2(a, b);
583
+
584
+ quotient = value[0];
585
+ var qSign = self.sign !== n.sign,
586
+ mod = value[1],
587
+ mSign = self.sign;
588
+ if (typeof quotient === "number") {
589
+ if (qSign) quotient = -quotient;
590
+ quotient = new SmallInteger(quotient);
591
+ } else quotient = new BigInteger(quotient, qSign);
592
+ if (typeof mod === "number") {
593
+ if (mSign) mod = -mod;
594
+ mod = new SmallInteger(mod);
595
+ } else mod = new BigInteger(mod, mSign);
596
+ return [quotient, mod];
597
+ }
598
+
599
+ BigInteger.prototype.divmod = function (v) {
600
+ var result = divModAny(this, v);
601
+ return {
602
+ quotient: result[0],
603
+ remainder: result[1]
604
+ };
605
+ };
606
+ NativeBigInt.prototype.divmod = SmallInteger.prototype.divmod = BigInteger.prototype.divmod;
607
+
608
+
609
+ BigInteger.prototype.divide = function (v) {
610
+ return divModAny(this, v)[0];
611
+ };
612
+ NativeBigInt.prototype.over = NativeBigInt.prototype.divide = function (v) {
613
+ return new NativeBigInt(this.value / parseValue(v).value);
614
+ };
615
+ SmallInteger.prototype.over = SmallInteger.prototype.divide = BigInteger.prototype.over = BigInteger.prototype.divide;
616
+
617
+ BigInteger.prototype.mod = function (v) {
618
+ return divModAny(this, v)[1];
619
+ };
620
+ NativeBigInt.prototype.mod = NativeBigInt.prototype.remainder = function (v) {
621
+ return new NativeBigInt(this.value % parseValue(v).value);
622
+ };
623
+ SmallInteger.prototype.remainder = SmallInteger.prototype.mod = BigInteger.prototype.remainder = BigInteger.prototype.mod;
624
+
625
+ BigInteger.prototype.pow = function (v) {
626
+ var n = parseValue(v),
627
+ a = this.value,
628
+ b = n.value,
629
+ value, x, y;
630
+ if (b === 0) return Integer[1];
631
+ if (a === 0) return Integer[0];
632
+ if (a === 1) return Integer[1];
633
+ if (a === -1) return n.isEven() ? Integer[1] : Integer[-1];
634
+ if (n.sign) {
635
+ return Integer[0];
636
+ }
637
+ if (!n.isSmall) throw new Error("The exponent " + n.toString() + " is too large.");
638
+ if (this.isSmall) {
639
+ if (isPrecise(value = Math.pow(a, b)))
640
+ return new SmallInteger(truncate(value));
641
+ }
642
+ x = this;
643
+ y = Integer[1];
644
+ while (true) {
645
+ if (b & 1 === 1) {
646
+ y = y.times(x);
647
+ --b;
648
+ }
649
+ if (b === 0) break;
650
+ b /= 2;
651
+ x = x.square();
652
+ }
653
+ return y;
654
+ };
655
+ SmallInteger.prototype.pow = BigInteger.prototype.pow;
656
+
657
+ NativeBigInt.prototype.pow = function (v) {
658
+ var n = parseValue(v);
659
+ var a = this.value, b = n.value;
660
+ var _0 = BigInt(0), _1 = BigInt(1), _2 = BigInt(2);
661
+ if (b === _0) return Integer[1];
662
+ if (a === _0) return Integer[0];
663
+ if (a === _1) return Integer[1];
664
+ if (a === BigInt(-1)) return n.isEven() ? Integer[1] : Integer[-1];
665
+ if (n.isNegative()) return new NativeBigInt(_0);
666
+ var x = this;
667
+ var y = Integer[1];
668
+ while (true) {
669
+ if ((b & _1) === _1) {
670
+ y = y.times(x);
671
+ --b;
672
+ }
673
+ if (b === _0) break;
674
+ b /= _2;
675
+ x = x.square();
676
+ }
677
+ return y;
678
+ }
679
+
680
+ BigInteger.prototype.modPow = function (exp, mod) {
681
+ exp = parseValue(exp);
682
+ mod = parseValue(mod);
683
+ if (mod.isZero()) throw new Error("Cannot take modPow with modulus 0");
684
+ var r = Integer[1],
685
+ base = this.mod(mod);
686
+ if (exp.isNegative()) {
687
+ exp = exp.multiply(Integer[-1]);
688
+ base = base.modInv(mod);
689
+ }
690
+ while (exp.isPositive()) {
691
+ if (base.isZero()) return Integer[0];
692
+ if (exp.isOdd()) r = r.multiply(base).mod(mod);
693
+ exp = exp.divide(2);
694
+ base = base.square().mod(mod);
695
+ }
696
+ return r;
697
+ };
698
+ NativeBigInt.prototype.modPow = SmallInteger.prototype.modPow = BigInteger.prototype.modPow;
699
+
700
+ function compareAbs(a, b) {
701
+ if (a.length !== b.length) {
702
+ return a.length > b.length ? 1 : -1;
703
+ }
704
+ for (var i = a.length - 1; i >= 0; i--) {
705
+ if (a[i] !== b[i]) return a[i] > b[i] ? 1 : -1;
706
+ }
707
+ return 0;
708
+ }
709
+
710
+ BigInteger.prototype.compareAbs = function (v) {
711
+ var n = parseValue(v),
712
+ a = this.value,
713
+ b = n.value;
714
+ if (n.isSmall) return 1;
715
+ return compareAbs(a, b);
716
+ };
717
+ SmallInteger.prototype.compareAbs = function (v) {
718
+ var n = parseValue(v),
719
+ a = Math.abs(this.value),
720
+ b = n.value;
721
+ if (n.isSmall) {
722
+ b = Math.abs(b);
723
+ return a === b ? 0 : a > b ? 1 : -1;
724
+ }
725
+ return -1;
726
+ };
727
+ NativeBigInt.prototype.compareAbs = function (v) {
728
+ var a = this.value;
729
+ var b = parseValue(v).value;
730
+ a = a >= 0 ? a : -a;
731
+ b = b >= 0 ? b : -b;
732
+ return a === b ? 0 : a > b ? 1 : -1;
733
+ }
734
+
735
+ BigInteger.prototype.compare = function (v) {
736
+ // See discussion about comparison with Infinity:
737
+ // https://github.com/peterolson/BigInteger.js/issues/61
738
+ if (v === Infinity) {
739
+ return -1;
740
+ }
741
+ if (v === -Infinity) {
742
+ return 1;
743
+ }
744
+
745
+ var n = parseValue(v),
746
+ a = this.value,
747
+ b = n.value;
748
+ if (this.sign !== n.sign) {
749
+ return n.sign ? 1 : -1;
750
+ }
751
+ if (n.isSmall) {
752
+ return this.sign ? -1 : 1;
753
+ }
754
+ return compareAbs(a, b) * (this.sign ? -1 : 1);
755
+ };
756
+ BigInteger.prototype.compareTo = BigInteger.prototype.compare;
757
+
758
+ SmallInteger.prototype.compare = function (v) {
759
+ if (v === Infinity) {
760
+ return -1;
761
+ }
762
+ if (v === -Infinity) {
763
+ return 1;
764
+ }
765
+
766
+ var n = parseValue(v),
767
+ a = this.value,
768
+ b = n.value;
769
+ if (n.isSmall) {
770
+ return a == b ? 0 : a > b ? 1 : -1;
771
+ }
772
+ if (a < 0 !== n.sign) {
773
+ return a < 0 ? -1 : 1;
774
+ }
775
+ return a < 0 ? 1 : -1;
776
+ };
777
+ SmallInteger.prototype.compareTo = SmallInteger.prototype.compare;
778
+
779
+ NativeBigInt.prototype.compare = function (v) {
780
+ if (v === Infinity) {
781
+ return -1;
782
+ }
783
+ if (v === -Infinity) {
784
+ return 1;
785
+ }
786
+ var a = this.value;
787
+ var b = parseValue(v).value;
788
+ return a === b ? 0 : a > b ? 1 : -1;
789
+ }
790
+ NativeBigInt.prototype.compareTo = NativeBigInt.prototype.compare;
791
+
792
+ BigInteger.prototype.equals = function (v) {
793
+ return this.compare(v) === 0;
794
+ };
795
+ NativeBigInt.prototype.eq = NativeBigInt.prototype.equals = SmallInteger.prototype.eq = SmallInteger.prototype.equals = BigInteger.prototype.eq = BigInteger.prototype.equals;
796
+
797
+ BigInteger.prototype.notEquals = function (v) {
798
+ return this.compare(v) !== 0;
799
+ };
800
+ NativeBigInt.prototype.neq = NativeBigInt.prototype.notEquals = SmallInteger.prototype.neq = SmallInteger.prototype.notEquals = BigInteger.prototype.neq = BigInteger.prototype.notEquals;
801
+
802
+ BigInteger.prototype.greater = function (v) {
803
+ return this.compare(v) > 0;
804
+ };
805
+ NativeBigInt.prototype.gt = NativeBigInt.prototype.greater = SmallInteger.prototype.gt = SmallInteger.prototype.greater = BigInteger.prototype.gt = BigInteger.prototype.greater;
806
+
807
+ BigInteger.prototype.lesser = function (v) {
808
+ return this.compare(v) < 0;
809
+ };
810
+ NativeBigInt.prototype.lt = NativeBigInt.prototype.lesser = SmallInteger.prototype.lt = SmallInteger.prototype.lesser = BigInteger.prototype.lt = BigInteger.prototype.lesser;
811
+
812
+ BigInteger.prototype.greaterOrEquals = function (v) {
813
+ return this.compare(v) >= 0;
814
+ };
815
+ NativeBigInt.prototype.geq = NativeBigInt.prototype.greaterOrEquals = SmallInteger.prototype.geq = SmallInteger.prototype.greaterOrEquals = BigInteger.prototype.geq = BigInteger.prototype.greaterOrEquals;
816
+
817
+ BigInteger.prototype.lesserOrEquals = function (v) {
818
+ return this.compare(v) <= 0;
819
+ };
820
+ NativeBigInt.prototype.leq = NativeBigInt.prototype.lesserOrEquals = SmallInteger.prototype.leq = SmallInteger.prototype.lesserOrEquals = BigInteger.prototype.leq = BigInteger.prototype.lesserOrEquals;
821
+
822
+ BigInteger.prototype.isEven = function () {
823
+ return (this.value[0] & 1) === 0;
824
+ };
825
+ SmallInteger.prototype.isEven = function () {
826
+ return (this.value & 1) === 0;
827
+ };
828
+ NativeBigInt.prototype.isEven = function () {
829
+ return (this.value & BigInt(1)) === BigInt(0);
830
+ }
831
+
832
+ BigInteger.prototype.isOdd = function () {
833
+ return (this.value[0] & 1) === 1;
834
+ };
835
+ SmallInteger.prototype.isOdd = function () {
836
+ return (this.value & 1) === 1;
837
+ };
838
+ NativeBigInt.prototype.isOdd = function () {
839
+ return (this.value & BigInt(1)) === BigInt(1);
840
+ }
841
+
842
+ BigInteger.prototype.isPositive = function () {
843
+ return !this.sign;
844
+ };
845
+ SmallInteger.prototype.isPositive = function () {
846
+ return this.value > 0;
847
+ };
848
+ NativeBigInt.prototype.isPositive = SmallInteger.prototype.isPositive;
849
+
850
+ BigInteger.prototype.isNegative = function () {
851
+ return this.sign;
852
+ };
853
+ SmallInteger.prototype.isNegative = function () {
854
+ return this.value < 0;
855
+ };
856
+ NativeBigInt.prototype.isNegative = SmallInteger.prototype.isNegative;
857
+
858
+ BigInteger.prototype.isUnit = function () {
859
+ return false;
860
+ };
861
+ SmallInteger.prototype.isUnit = function () {
862
+ return Math.abs(this.value) === 1;
863
+ };
864
+ NativeBigInt.prototype.isUnit = function () {
865
+ return this.abs().value === BigInt(1);
866
+ }
867
+
868
+ BigInteger.prototype.isZero = function () {
869
+ return false;
870
+ };
871
+ SmallInteger.prototype.isZero = function () {
872
+ return this.value === 0;
873
+ };
874
+ NativeBigInt.prototype.isZero = function () {
875
+ return this.value === BigInt(0);
876
+ }
877
+
878
+ BigInteger.prototype.isDivisibleBy = function (v) {
879
+ var n = parseValue(v);
880
+ if (n.isZero()) return false;
881
+ if (n.isUnit()) return true;
882
+ if (n.compareAbs(2) === 0) return this.isEven();
883
+ return this.mod(n).isZero();
884
+ };
885
+ NativeBigInt.prototype.isDivisibleBy = SmallInteger.prototype.isDivisibleBy = BigInteger.prototype.isDivisibleBy;
886
+
887
+ function isBasicPrime(v) {
888
+ var n = v.abs();
889
+ if (n.isUnit()) return false;
890
+ if (n.equals(2) || n.equals(3) || n.equals(5)) return true;
891
+ if (n.isEven() || n.isDivisibleBy(3) || n.isDivisibleBy(5)) return false;
892
+ if (n.lesser(49)) return true;
893
+ // we don't know if it's prime: let the other functions figure it out
894
+ }
895
+
896
+ function millerRabinTest(n, a) {
897
+ var nPrev = n.prev(),
898
+ b = nPrev,
899
+ r = 0,
900
+ d, t, i, x;
901
+ while (b.isEven()) b = b.divide(2), r++;
902
+ next: for (i = 0; i < a.length; i++) {
903
+ if (n.lesser(a[i])) continue;
904
+ x = bigInt(a[i]).modPow(b, n);
905
+ if (x.isUnit() || x.equals(nPrev)) continue;
906
+ for (d = r - 1; d != 0; d--) {
907
+ x = x.square().mod(n);
908
+ if (x.isUnit()) return false;
909
+ if (x.equals(nPrev)) continue next;
910
+ }
911
+ return false;
912
+ }
913
+ return true;
914
+ }
915
+
916
+ // Set "strict" to true to force GRH-supported lower bound of 2*log(N)^2
917
+ BigInteger.prototype.isPrime = function (strict) {
918
+ var isPrime = isBasicPrime(this);
919
+ if (isPrime !== undefined) return isPrime;
920
+ var n = this.abs();
921
+ var bits = n.bitLength();
922
+ if (bits <= 64)
923
+ return millerRabinTest(n, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]);
924
+ var logN = Math.log(2) * bits.toJSNumber();
925
+ var t = Math.ceil((strict === true) ? (2 * Math.pow(logN, 2)) : logN);
926
+ for (var a = [], i = 0; i < t; i++) {
927
+ a.push(bigInt(i + 2));
928
+ }
929
+ return millerRabinTest(n, a);
930
+ };
931
+ NativeBigInt.prototype.isPrime = SmallInteger.prototype.isPrime = BigInteger.prototype.isPrime;
932
+
933
+ BigInteger.prototype.isProbablePrime = function (iterations, rng) {
934
+ var isPrime = isBasicPrime(this);
935
+ if (isPrime !== undefined) return isPrime;
936
+ var n = this.abs();
937
+ var t = iterations === undefined ? 5 : iterations;
938
+ for (var a = [], i = 0; i < t; i++) {
939
+ a.push(bigInt.randBetween(2, n.minus(2), rng));
940
+ }
941
+ return millerRabinTest(n, a);
942
+ };
943
+ NativeBigInt.prototype.isProbablePrime = SmallInteger.prototype.isProbablePrime = BigInteger.prototype.isProbablePrime;
944
+
945
+ BigInteger.prototype.modInv = function (n) {
946
+ var t = bigInt.zero, newT = bigInt.one, r = parseValue(n), newR = this.abs(), q, lastT, lastR;
947
+ while (!newR.isZero()) {
948
+ q = r.divide(newR);
949
+ lastT = t;
950
+ lastR = r;
951
+ t = newT;
952
+ r = newR;
953
+ newT = lastT.subtract(q.multiply(newT));
954
+ newR = lastR.subtract(q.multiply(newR));
955
+ }
956
+ if (!r.isUnit()) throw new Error(this.toString() + " and " + n.toString() + " are not co-prime");
957
+ if (t.compare(0) === -1) {
958
+ t = t.add(n);
959
+ }
960
+ if (this.isNegative()) {
961
+ return t.negate();
962
+ }
963
+ return t;
964
+ };
965
+
966
+ NativeBigInt.prototype.modInv = SmallInteger.prototype.modInv = BigInteger.prototype.modInv;
967
+
968
+ BigInteger.prototype.next = function () {
969
+ var value = this.value;
970
+ if (this.sign) {
971
+ return subtractSmall(value, 1, this.sign);
972
+ }
973
+ return new BigInteger(addSmall(value, 1), this.sign);
974
+ };
975
+ SmallInteger.prototype.next = function () {
976
+ var value = this.value;
977
+ if (value + 1 < MAX_INT) return new SmallInteger(value + 1);
978
+ return new BigInteger(MAX_INT_ARR, false);
979
+ };
980
+ NativeBigInt.prototype.next = function () {
981
+ return new NativeBigInt(this.value + BigInt(1));
982
+ }
983
+
984
+ BigInteger.prototype.prev = function () {
985
+ var value = this.value;
986
+ if (this.sign) {
987
+ return new BigInteger(addSmall(value, 1), true);
988
+ }
989
+ return subtractSmall(value, 1, this.sign);
990
+ };
991
+ SmallInteger.prototype.prev = function () {
992
+ var value = this.value;
993
+ if (value - 1 > -MAX_INT) return new SmallInteger(value - 1);
994
+ return new BigInteger(MAX_INT_ARR, true);
995
+ };
996
+ NativeBigInt.prototype.prev = function () {
997
+ return new NativeBigInt(this.value - BigInt(1));
998
+ }
999
+
1000
+ var powersOfTwo = [1];
1001
+ while (2 * powersOfTwo[powersOfTwo.length - 1] <= BASE) powersOfTwo.push(2 * powersOfTwo[powersOfTwo.length - 1]);
1002
+ var powers2Length = powersOfTwo.length, highestPower2 = powersOfTwo[powers2Length - 1];
1003
+
1004
+ function shift_isSmall(n) {
1005
+ return Math.abs(n) <= BASE;
1006
+ }
1007
+
1008
+ BigInteger.prototype.shiftLeft = function (v) {
1009
+ var n = parseValue(v).toJSNumber();
1010
+ if (!shift_isSmall(n)) {
1011
+ throw new Error(String(n) + " is too large for shifting.");
1012
+ }
1013
+ if (n < 0) return this.shiftRight(-n);
1014
+ var result = this;
1015
+ if (result.isZero()) return result;
1016
+ while (n >= powers2Length) {
1017
+ result = result.multiply(highestPower2);
1018
+ n -= powers2Length - 1;
1019
+ }
1020
+ return result.multiply(powersOfTwo[n]);
1021
+ };
1022
+ NativeBigInt.prototype.shiftLeft = SmallInteger.prototype.shiftLeft = BigInteger.prototype.shiftLeft;
1023
+
1024
+ BigInteger.prototype.shiftRight = function (v) {
1025
+ var remQuo;
1026
+ var n = parseValue(v).toJSNumber();
1027
+ if (!shift_isSmall(n)) {
1028
+ throw new Error(String(n) + " is too large for shifting.");
1029
+ }
1030
+ if (n < 0) return this.shiftLeft(-n);
1031
+ var result = this;
1032
+ while (n >= powers2Length) {
1033
+ if (result.isZero() || (result.isNegative() && result.isUnit())) return result;
1034
+ remQuo = divModAny(result, highestPower2);
1035
+ result = remQuo[1].isNegative() ? remQuo[0].prev() : remQuo[0];
1036
+ n -= powers2Length - 1;
1037
+ }
1038
+ remQuo = divModAny(result, powersOfTwo[n]);
1039
+ return remQuo[1].isNegative() ? remQuo[0].prev() : remQuo[0];
1040
+ };
1041
+ NativeBigInt.prototype.shiftRight = SmallInteger.prototype.shiftRight = BigInteger.prototype.shiftRight;
1042
+
1043
+ function bitwise(x, y, fn) {
1044
+ y = parseValue(y);
1045
+ var xSign = x.isNegative(), ySign = y.isNegative();
1046
+ var xRem = xSign ? x.not() : x,
1047
+ yRem = ySign ? y.not() : y;
1048
+ var xDigit = 0, yDigit = 0;
1049
+ var xDivMod = null, yDivMod = null;
1050
+ var result = [];
1051
+ while (!xRem.isZero() || !yRem.isZero()) {
1052
+ xDivMod = divModAny(xRem, highestPower2);
1053
+ xDigit = xDivMod[1].toJSNumber();
1054
+ if (xSign) {
1055
+ xDigit = highestPower2 - 1 - xDigit; // two's complement for negative numbers
1056
+ }
1057
+
1058
+ yDivMod = divModAny(yRem, highestPower2);
1059
+ yDigit = yDivMod[1].toJSNumber();
1060
+ if (ySign) {
1061
+ yDigit = highestPower2 - 1 - yDigit; // two's complement for negative numbers
1062
+ }
1063
+
1064
+ xRem = xDivMod[0];
1065
+ yRem = yDivMod[0];
1066
+ result.push(fn(xDigit, yDigit));
1067
+ }
1068
+ var sum = fn(xSign ? 1 : 0, ySign ? 1 : 0) !== 0 ? bigInt(-1) : bigInt(0);
1069
+ for (var i = result.length - 1; i >= 0; i -= 1) {
1070
+ sum = sum.multiply(highestPower2).add(bigInt(result[i]));
1071
+ }
1072
+ return sum;
1073
+ }
1074
+
1075
+ BigInteger.prototype.not = function () {
1076
+ return this.negate().prev();
1077
+ };
1078
+ NativeBigInt.prototype.not = SmallInteger.prototype.not = BigInteger.prototype.not;
1079
+
1080
+ BigInteger.prototype.and = function (n) {
1081
+ return bitwise(this, n, function (a, b) { return a & b; });
1082
+ };
1083
+ NativeBigInt.prototype.and = SmallInteger.prototype.and = BigInteger.prototype.and;
1084
+
1085
+ BigInteger.prototype.or = function (n) {
1086
+ return bitwise(this, n, function (a, b) { return a | b; });
1087
+ };
1088
+ NativeBigInt.prototype.or = SmallInteger.prototype.or = BigInteger.prototype.or;
1089
+
1090
+ BigInteger.prototype.xor = function (n) {
1091
+ return bitwise(this, n, function (a, b) { return a ^ b; });
1092
+ };
1093
+ NativeBigInt.prototype.xor = SmallInteger.prototype.xor = BigInteger.prototype.xor;
1094
+
1095
+ var LOBMASK_I = 1 << 30, LOBMASK_BI = (BASE & -BASE) * (BASE & -BASE) | LOBMASK_I;
1096
+ function roughLOB(n) { // get lowestOneBit (rough)
1097
+ // SmallInteger: return Min(lowestOneBit(n), 1 << 30)
1098
+ // BigInteger: return Min(lowestOneBit(n), 1 << 14) [BASE=1e7]
1099
+ var v = n.value,
1100
+ x = typeof v === "number" ? v | LOBMASK_I :
1101
+ typeof v === "bigint" ? v | BigInt(LOBMASK_I) :
1102
+ v[0] + v[1] * BASE | LOBMASK_BI;
1103
+ return x & -x;
1104
+ }
1105
+
1106
+ function integerLogarithm(value, base) {
1107
+ if (base.compareTo(value) <= 0) {
1108
+ var tmp = integerLogarithm(value, base.square(base));
1109
+ var p = tmp.p;
1110
+ var e = tmp.e;
1111
+ var t = p.multiply(base);
1112
+ return t.compareTo(value) <= 0 ? { p: t, e: e * 2 + 1 } : { p: p, e: e * 2 };
1113
+ }
1114
+ return { p: bigInt(1), e: 0 };
1115
+ }
1116
+
1117
+ BigInteger.prototype.bitLength = function () {
1118
+ var n = this;
1119
+ if (n.compareTo(bigInt(0)) < 0) {
1120
+ n = n.negate().subtract(bigInt(1));
1121
+ }
1122
+ if (n.compareTo(bigInt(0)) === 0) {
1123
+ return bigInt(0);
1124
+ }
1125
+ return bigInt(integerLogarithm(n, bigInt(2)).e).add(bigInt(1));
1126
+ }
1127
+ NativeBigInt.prototype.bitLength = SmallInteger.prototype.bitLength = BigInteger.prototype.bitLength;
1128
+
1129
+ function max(a, b) {
1130
+ a = parseValue(a);
1131
+ b = parseValue(b);
1132
+ return a.greater(b) ? a : b;
1133
+ }
1134
+ function min(a, b) {
1135
+ a = parseValue(a);
1136
+ b = parseValue(b);
1137
+ return a.lesser(b) ? a : b;
1138
+ }
1139
+ function gcd(a, b) {
1140
+ a = parseValue(a).abs();
1141
+ b = parseValue(b).abs();
1142
+ if (a.equals(b)) return a;
1143
+ if (a.isZero()) return b;
1144
+ if (b.isZero()) return a;
1145
+ var c = Integer[1], d, t;
1146
+ while (a.isEven() && b.isEven()) {
1147
+ d = min(roughLOB(a), roughLOB(b));
1148
+ a = a.divide(d);
1149
+ b = b.divide(d);
1150
+ c = c.multiply(d);
1151
+ }
1152
+ while (a.isEven()) {
1153
+ a = a.divide(roughLOB(a));
1154
+ }
1155
+ do {
1156
+ while (b.isEven()) {
1157
+ b = b.divide(roughLOB(b));
1158
+ }
1159
+ if (a.greater(b)) {
1160
+ t = b; b = a; a = t;
1161
+ }
1162
+ b = b.subtract(a);
1163
+ } while (!b.isZero());
1164
+ return c.isUnit() ? a : a.multiply(c);
1165
+ }
1166
+ function lcm(a, b) {
1167
+ a = parseValue(a).abs();
1168
+ b = parseValue(b).abs();
1169
+ return a.divide(gcd(a, b)).multiply(b);
1170
+ }
1171
+ function randBetween(a, b, rng) {
1172
+ a = parseValue(a);
1173
+ b = parseValue(b);
1174
+ var usedRNG = rng || Math.random;
1175
+ var low = min(a, b), high = max(a, b);
1176
+ var range = high.subtract(low).add(1);
1177
+ if (range.isSmall) return low.add(Math.floor(usedRNG() * range));
1178
+ var digits = toBase(range, BASE).value;
1179
+ var result = [], restricted = true;
1180
+ for (var i = 0; i < digits.length; i++) {
1181
+ var top = restricted ? digits[i] + (i + 1 < digits.length ? digits[i + 1] / BASE : 0) : BASE;
1182
+ var digit = truncate(usedRNG() * top);
1183
+ result.push(digit);
1184
+ if (digit < digits[i]) restricted = false;
1185
+ }
1186
+ return low.add(Integer.fromArray(result, BASE, false));
1187
+ }
1188
+
1189
+ var parseBase = function (text, base, alphabet, caseSensitive) {
1190
+ alphabet = alphabet || DEFAULT_ALPHABET;
1191
+ text = String(text);
1192
+ if (!caseSensitive) {
1193
+ text = text.toLowerCase();
1194
+ alphabet = alphabet.toLowerCase();
1195
+ }
1196
+ var length = text.length;
1197
+ var i;
1198
+ var absBase = Math.abs(base);
1199
+ var alphabetValues = {};
1200
+ for (i = 0; i < alphabet.length; i++) {
1201
+ alphabetValues[alphabet[i]] = i;
1202
+ }
1203
+ for (i = 0; i < length; i++) {
1204
+ var c = text[i];
1205
+ if (c === "-") continue;
1206
+ if (c in alphabetValues) {
1207
+ if (alphabetValues[c] >= absBase) {
1208
+ if (c === "1" && absBase === 1) continue;
1209
+ throw new Error(c + " is not a valid digit in base " + base + ".");
1210
+ }
1211
+ }
1212
+ }
1213
+ base = parseValue(base);
1214
+ var digits = [];
1215
+ var isNegative = text[0] === "-";
1216
+ for (i = isNegative ? 1 : 0; i < text.length; i++) {
1217
+ var c = text[i];
1218
+ if (c in alphabetValues) digits.push(parseValue(alphabetValues[c]));
1219
+ else if (c === "<") {
1220
+ var start = i;
1221
+ do { i++; } while (text[i] !== ">" && i < text.length);
1222
+ digits.push(parseValue(text.slice(start + 1, i)));
1223
+ }
1224
+ else throw new Error(c + " is not a valid character");
1225
+ }
1226
+ return parseBaseFromArray(digits, base, isNegative);
1227
+ };
1228
+
1229
+ function parseBaseFromArray(digits, base, isNegative) {
1230
+ var val = Integer[0], pow = Integer[1], i;
1231
+ for (i = digits.length - 1; i >= 0; i--) {
1232
+ val = val.add(digits[i].times(pow));
1233
+ pow = pow.times(base);
1234
+ }
1235
+ return isNegative ? val.negate() : val;
1236
+ }
1237
+
1238
+ function stringify(digit, alphabet) {
1239
+ alphabet = alphabet || DEFAULT_ALPHABET;
1240
+ if (digit < alphabet.length) {
1241
+ return alphabet[digit];
1242
+ }
1243
+ return "<" + digit + ">";
1244
+ }
1245
+
1246
+ function toBase(n, base) {
1247
+ base = bigInt(base);
1248
+ if (base.isZero()) {
1249
+ if (n.isZero()) return { value: [0], isNegative: false };
1250
+ throw new Error("Cannot convert nonzero numbers to base 0.");
1251
+ }
1252
+ if (base.equals(-1)) {
1253
+ if (n.isZero()) return { value: [0], isNegative: false };
1254
+ if (n.isNegative())
1255
+ return {
1256
+ value: [].concat.apply([], Array.apply(null, Array(-n.toJSNumber()))
1257
+ .map(Array.prototype.valueOf, [1, 0])
1258
+ ),
1259
+ isNegative: false
1260
+ };
1261
+
1262
+ var arr = Array.apply(null, Array(n.toJSNumber() - 1))
1263
+ .map(Array.prototype.valueOf, [0, 1]);
1264
+ arr.unshift([1]);
1265
+ return {
1266
+ value: [].concat.apply([], arr),
1267
+ isNegative: false
1268
+ };
1269
+ }
1270
+
1271
+ var neg = false;
1272
+ if (n.isNegative() && base.isPositive()) {
1273
+ neg = true;
1274
+ n = n.abs();
1275
+ }
1276
+ if (base.isUnit()) {
1277
+ if (n.isZero()) return { value: [0], isNegative: false };
1278
+
1279
+ return {
1280
+ value: Array.apply(null, Array(n.toJSNumber()))
1281
+ .map(Number.prototype.valueOf, 1),
1282
+ isNegative: neg
1283
+ };
1284
+ }
1285
+ var out = [];
1286
+ var left = n, divmod;
1287
+ while (left.isNegative() || left.compareAbs(base) >= 0) {
1288
+ divmod = left.divmod(base);
1289
+ left = divmod.quotient;
1290
+ var digit = divmod.remainder;
1291
+ if (digit.isNegative()) {
1292
+ digit = base.minus(digit).abs();
1293
+ left = left.next();
1294
+ }
1295
+ out.push(digit.toJSNumber());
1296
+ }
1297
+ out.push(left.toJSNumber());
1298
+ return { value: out.reverse(), isNegative: neg };
1299
+ }
1300
+
1301
+ function toBaseString(n, base, alphabet) {
1302
+ var arr = toBase(n, base);
1303
+ return (arr.isNegative ? "-" : "") + arr.value.map(function (x) {
1304
+ return stringify(x, alphabet);
1305
+ }).join('');
1306
+ }
1307
+
1308
+ BigInteger.prototype.toArray = function (radix) {
1309
+ return toBase(this, radix);
1310
+ };
1311
+
1312
+ SmallInteger.prototype.toArray = function (radix) {
1313
+ return toBase(this, radix);
1314
+ };
1315
+
1316
+ NativeBigInt.prototype.toArray = function (radix) {
1317
+ return toBase(this, radix);
1318
+ };
1319
+
1320
+ BigInteger.prototype.toString = function (radix, alphabet) {
1321
+ if (radix === undefined) radix = 10;
1322
+ if (radix !== 10 || alphabet) return toBaseString(this, radix, alphabet);
1323
+ var v = this.value, l = v.length, str = String(v[--l]), zeros = "0000000", digit;
1324
+ while (--l >= 0) {
1325
+ digit = String(v[l]);
1326
+ str += zeros.slice(digit.length) + digit;
1327
+ }
1328
+ var sign = this.sign ? "-" : "";
1329
+ return sign + str;
1330
+ };
1331
+
1332
+ SmallInteger.prototype.toString = function (radix, alphabet) {
1333
+ if (radix === undefined) radix = 10;
1334
+ if (radix != 10 || alphabet) return toBaseString(this, radix, alphabet);
1335
+ return String(this.value);
1336
+ };
1337
+
1338
+ NativeBigInt.prototype.toString = SmallInteger.prototype.toString;
1339
+
1340
+ NativeBigInt.prototype.toJSON = BigInteger.prototype.toJSON = SmallInteger.prototype.toJSON = function () { return this.toString(); }
1341
+
1342
+ BigInteger.prototype.valueOf = function () {
1343
+ return parseInt(this.toString(), 10);
1344
+ };
1345
+ BigInteger.prototype.toJSNumber = BigInteger.prototype.valueOf;
1346
+
1347
+ SmallInteger.prototype.valueOf = function () {
1348
+ return this.value;
1349
+ };
1350
+ SmallInteger.prototype.toJSNumber = SmallInteger.prototype.valueOf;
1351
+ NativeBigInt.prototype.valueOf = NativeBigInt.prototype.toJSNumber = function () {
1352
+ return parseInt(this.toString(), 10);
1353
+ }
1354
+
1355
+ function parseStringValue(v) {
1356
+ if (isPrecise(+v)) {
1357
+ var x = +v;
1358
+ if (x === truncate(x))
1359
+ return supportsNativeBigInt ? new NativeBigInt(BigInt(x)) : new SmallInteger(x);
1360
+ throw new Error("Invalid integer: " + v);
1361
+ }
1362
+ var sign = v[0] === "-";
1363
+ if (sign) v = v.slice(1);
1364
+ var split = v.split(/e/i);
1365
+ if (split.length > 2) throw new Error("Invalid integer: " + split.join("e"));
1366
+ if (split.length === 2) {
1367
+ var exp = split[1];
1368
+ if (exp[0] === "+") exp = exp.slice(1);
1369
+ exp = +exp;
1370
+ if (exp !== truncate(exp) || !isPrecise(exp)) throw new Error("Invalid integer: " + exp + " is not a valid exponent.");
1371
+ var text = split[0];
1372
+ var decimalPlace = text.indexOf(".");
1373
+ if (decimalPlace >= 0) {
1374
+ exp -= text.length - decimalPlace - 1;
1375
+ text = text.slice(0, decimalPlace) + text.slice(decimalPlace + 1);
1376
+ }
1377
+ if (exp < 0) throw new Error("Cannot include negative exponent part for integers");
1378
+ text += (new Array(exp + 1)).join("0");
1379
+ v = text;
1380
+ }
1381
+ var isValid = /^([0-9][0-9]*)$/.test(v);
1382
+ if (!isValid) throw new Error("Invalid integer: " + v);
1383
+ if (supportsNativeBigInt) {
1384
+ return new NativeBigInt(BigInt(sign ? "-" + v : v));
1385
+ }
1386
+ var r = [], max = v.length, l = LOG_BASE, min = max - l;
1387
+ while (max > 0) {
1388
+ r.push(+v.slice(min, max));
1389
+ min -= l;
1390
+ if (min < 0) min = 0;
1391
+ max -= l;
1392
+ }
1393
+ trim(r);
1394
+ return new BigInteger(r, sign);
1395
+ }
1396
+
1397
+ function parseNumberValue(v) {
1398
+ if (supportsNativeBigInt) {
1399
+ return new NativeBigInt(BigInt(v));
1400
+ }
1401
+ if (isPrecise(v)) {
1402
+ if (v !== truncate(v)) throw new Error(v + " is not an integer.");
1403
+ return new SmallInteger(v);
1404
+ }
1405
+ return parseStringValue(v.toString());
1406
+ }
1407
+
1408
+ function parseValue(v) {
1409
+ if (typeof v === "number") {
1410
+ return parseNumberValue(v);
1411
+ }
1412
+ if (typeof v === "string") {
1413
+ return parseStringValue(v);
1414
+ }
1415
+ if (typeof v === "bigint") {
1416
+ return new NativeBigInt(v);
1417
+ }
1418
+ return v;
1419
+ }
1420
+ // Pre-define numbers in range [-999,999]
1421
+ for (var i = 0; i < 1000; i++) {
1422
+ Integer[i] = parseValue(i);
1423
+ if (i > 0) Integer[-i] = parseValue(-i);
1424
+ }
1425
+ // Backwards compatibility
1426
+ Integer.one = Integer[1];
1427
+ Integer.zero = Integer[0];
1428
+ Integer.minusOne = Integer[-1];
1429
+ Integer.max = max;
1430
+ Integer.min = min;
1431
+ Integer.gcd = gcd;
1432
+ Integer.lcm = lcm;
1433
+ Integer.isInstance = function (x) { return x instanceof BigInteger || x instanceof SmallInteger || x instanceof NativeBigInt; };
1434
+ Integer.randBetween = randBetween;
1435
+
1436
+ Integer.fromArray = function (digits, base, isNegative) {
1437
+ return parseBaseFromArray(digits.map(parseValue), parseValue(base || 10), isNegative);
1438
+ };
1439
+
1440
+ return Integer;
1441
+ })();
1442
+
1443
+ // Node.js check
1444
+ if (typeof module !== "undefined" && module.hasOwnProperty("exports")) {
1445
+ module.exports = bigInt;
1446
+ }
1447
+
1448
+ //amd check
1449
+ if (typeof define === "function" && define.amd) {
1450
+ define( function () {
1451
+ return bigInt;
1452
+ });
1453
+ }