rhodes 6.2.0 → 7.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1659) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.md +1 -1
  3. data/CREDITS +3 -1
  4. data/Gemfile +3 -0
  5. data/LICENSE +1 -1
  6. data/README.html +2 -2
  7. data/README.md +28 -23
  8. data/Rakefile +194 -101
  9. data/SECURITY.md +19 -0
  10. data/appveyor.yml +127 -47
  11. data/azure-pipelines.yml +67 -0
  12. data/bin/rhodes-setup +4 -4
  13. data/doc/application.txt +21 -0
  14. data/doc/oss/DeveloperNotes.md +1 -1
  15. data/doc/oss/WM_CE_Installation_And_Build_Guidelines.md +1 -1
  16. data/ext/extconf.rb +16 -3
  17. data/extensions/emdk3-manager/ext/platform/android/Rakefile +2 -0
  18. data/extensions/instrumentation/ext/platform/iphone/Instrumentation.xcodeproj/project.pbxproj +4 -4
  19. data/extensions/rhoconnect-push/ext/build.bat +1 -1
  20. data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +18 -1
  21. data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/src/com/rhomobile/rhoelements/ans/ANSManager.java +2 -2
  22. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/Rakefile +19 -1
  23. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/graphics/BatteryIndicator.java +14 -1
  24. data/lib/build/buildgem.rb +26 -0
  25. data/lib/build/jake.rb +7 -5
  26. data/lib/commonAPI/ConnectionChecking/ext/build.bat +1 -1
  27. data/lib/commonAPI/RubyServer/ext/RubyServer.xml +101 -0
  28. data/lib/commonAPI/RubyServer/ext/build +19 -0
  29. data/lib/commonAPI/RubyServer/ext/build.bat +29 -0
  30. data/lib/commonAPI/RubyServer/ext/platform/android/Rakefile +161 -0
  31. data/lib/commonAPI/RubyServer/ext/platform/android/ext_java.files +9 -0
  32. data/lib/commonAPI/RubyServer/ext/platform/android/ext_native.files +7 -0
  33. data/lib/commonAPI/RubyServer/ext/platform/iphone/Rakefile +20 -0
  34. data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer.xcodeproj/project.pbxproj +322 -0
  35. data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer_Prefix.pch +7 -0
  36. data/lib/commonAPI/RubyServer/ext/shared/RubyServerImpl.cpp +242 -0
  37. data/lib/commonAPI/RubyServer/ext.yml +21 -0
  38. data/lib/commonAPI/audiocapture/ext/build.bat +1 -1
  39. data/lib/commonAPI/audiocapture/ext/platform/android/src/com/rho/audiocapture/AudioCapture.java +4 -1
  40. data/lib/commonAPI/audiocapture/ext/platform/iphone/Audiocapture.xcodeproj/project.pbxproj +4 -4
  41. data/lib/commonAPI/audiocapture/ext/platform/iphone/Rakefile +9 -63
  42. data/lib/commonAPI/barcode/ext/barcode.xml +2 -6
  43. data/lib/commonAPI/barcode/ext/build +5 -0
  44. data/lib/commonAPI/barcode/ext/build.bat +1 -1
  45. data/lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml +16 -1
  46. data/lib/commonAPI/barcode/ext/platform/android/Rakefile +229 -0
  47. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable/barcode_arrow_back.png +0 -0
  48. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable/barcode_done.png +0 -0
  49. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable/barcode_flash_off.png +0 -0
  50. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable/barcode_flash_on.png +0 -0
  51. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable/barcode_replay.png +0 -0
  52. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/drawable-hdpi/icon.png +0 -0
  53. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/layout/barcode_capture.xml +98 -0
  54. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/values/barcode_strings.xml +12 -0
  55. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/values/barcode_styles.xml +8 -0
  56. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/values/dimens.xml +5 -0
  57. data/lib/commonAPI/barcode/ext/platform/android/additional_files/res/values-w820dp/dimens.xml +6 -0
  58. data/lib/commonAPI/barcode/ext/platform/android/ext_java.files +11 -0
  59. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/BarcodeCaptureActivity.java +667 -0
  60. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/BarcodeFormats.java +64 -0
  61. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/BarcodeGraphic.java +94 -0
  62. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/BarcodeGraphicTracker.java +165 -0
  63. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/BarcodeTrackerFactory.java +47 -0
  64. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/ui/camera/CameraSource.java +1166 -0
  65. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/ui/camera/CameraSourcePreview.java +189 -0
  66. data/lib/commonAPI/barcode/ext/platform/android/src/com/google/barcodereader/ui/camera/GraphicOverlay.java +309 -0
  67. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeCommon.java +199 -0
  68. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactory.java +89 -52
  69. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactoryRhoListener.java +9 -1
  70. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeRhoExtension.java +77 -9
  71. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeSingleton.java +75 -23
  72. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/InternalAndroidBarcodeScanner.java +184 -0
  73. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/ZXingScanner.java +48 -180
  74. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/emdk3/EMDK3Scanner.java +8 -1
  75. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/emdk3/EMDK3ScannerSettings.java +4 -3
  76. data/lib/commonAPI/barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +28 -56
  77. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.h +38 -10
  78. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +300 -22
  79. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +6 -0
  80. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/barcode.m +6 -2
  81. data/lib/commonAPI/barcode/ext/platform/iphone/Rakefile +9 -64
  82. data/lib/commonAPI/barcode/ext/platform/iphone/ZXingObjC/ZXingObjC/client/result/ZXResultParser.m +1 -1
  83. data/lib/commonAPI/barcode/ext/platform/iphone/ZXingObjC/ZXingObjC/datamatrix/decoder/ZXDataMatrixDecodedBitStreamParser.m +4 -4
  84. data/lib/commonAPI/barcode/ext/platform/iphone/ZXingObjC/ZXingObjC.xcodeproj/project.pbxproj +6 -6
  85. data/lib/commonAPI/barcode/ext/platform/iphone/impl/Barcode.m +7 -3
  86. data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +13 -0
  87. data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeSingleton.m +25 -3
  88. data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +41 -37
  89. data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogBuilder.h +2 -0
  90. data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.cpp +6 -3
  91. data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.h +1 -1
  92. data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ZXing.h +5 -5
  93. data/lib/commonAPI/barcode/ext.yml +6 -1
  94. data/lib/commonAPI/bluetooth/ext/build.bat +1 -1
  95. data/lib/commonAPI/bluetooth/ext/platform/android/Rakefile +29 -10
  96. data/lib/commonAPI/bluetooth/ext/platform/android/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerNew.java +2 -0
  97. data/lib/commonAPI/bluetooth/ext/platform/iphone/Bluetooth.xcodeproj/project.pbxproj +6 -16
  98. data/lib/commonAPI/bluetooth/ext/platform/iphone/Rakefile +9 -62
  99. data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro +8 -11
  100. data/lib/commonAPI/bluetooth/ext/platform/qt/src/bluetooth/bluetoothserver.h +1 -1
  101. data/lib/commonAPI/clipboard/ext/build.bat +1 -1
  102. data/lib/commonAPI/clipboard/ext/platform/android/Rakefile +29 -10
  103. data/lib/commonAPI/clipboard/ext/platform/iphone/Clipboard.xcodeproj/project.pbxproj +4 -4
  104. data/lib/commonAPI/clipboard/ext/platform/iphone/Rakefile +9 -62
  105. data/lib/commonAPI/coreapi/RhoNativeTabbarApi.rb +1 -1
  106. data/lib/commonAPI/coreapi/RhoNotificationApi.rb +1 -1
  107. data/lib/commonAPI/coreapi/ext/Application.xml +2 -1
  108. data/lib/commonAPI/coreapi/ext/Notification.xml +47 -0
  109. data/lib/commonAPI/coreapi/ext/Timer.xml +21 -13
  110. data/lib/commonAPI/coreapi/ext/build +5 -0
  111. data/lib/commonAPI/coreapi/ext/build.bat +1 -1
  112. data/lib/commonAPI/coreapi/ext/platform/android/Rakefile +19 -12
  113. data/lib/commonAPI/coreapi/ext/platform/android/ext_java.files +2 -0
  114. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/intent/IntentSingleton.java +21 -7
  115. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/AlarmReceiver.java +27 -0
  116. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +32 -12
  117. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java +14 -1
  118. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +260 -0
  119. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +24 -2
  120. data/lib/commonAPI/coreapi/ext/platform/iphone/Coreapi.xcodeproj/project.pbxproj +27 -23
  121. data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +4 -2
  122. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/IntentSingleton.m +2 -2
  123. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +1 -0
  124. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +236 -3
  125. data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +17 -16
  126. data/lib/commonAPI/coreapi/ext/platform/qt/src/CNativeToolbarImpl.cpp +1 -1
  127. data/lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp +7 -0
  128. data/lib/commonAPI/coreapi/ext/platform/wm/src/NetworkDetect.h +2 -2
  129. data/lib/commonAPI/coreapi/ext/platform/wm/src/NotificationImpl.cpp +7 -0
  130. data/lib/commonAPI/coreapi/ext/platform/wm/src/SystemImpl.cpp +1 -3
  131. data/lib/commonAPI/coreapi/ext/push.xml +10 -5
  132. data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +7 -2
  133. data/lib/commonAPI/coreapi/ext/shared/InitExtension.cpp +8 -8
  134. data/lib/commonAPI/coreapi/ext/shared/NetworkDetectBase.cpp +1 -1
  135. data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +2 -0
  136. data/lib/commonAPI/coreapi/ext/system.xml +3 -0
  137. data/lib/commonAPI/coreapi/public/api/rhoapi.js +18 -8
  138. data/lib/commonAPI/devicesecurity/ext/DeviceSecurity.xml +2 -2
  139. data/lib/commonAPI/devicesecurity/ext/build.bat +1 -1
  140. data/lib/commonAPI/devicesecurity/ext/platform/android/Rakefile +19 -0
  141. data/lib/commonAPI/devicesecurity/ext/platform/iphone/DeviceSecurity.xcodeproj/project.pbxproj +20 -4
  142. data/lib/commonAPI/devicesecurity/ext/platform/iphone/Rakefile +9 -62
  143. data/lib/commonAPI/eventsource/ext/platform/iphone/Eventsource.xcodeproj/project.pbxproj +4 -4
  144. data/lib/commonAPI/eventsource/ext/platform/iphone/Rakefile +9 -64
  145. data/lib/commonAPI/hardwarekeys/ext/keycapture.xml +11 -9
  146. data/lib/commonAPI/hardwarekeys/ext/platform/android/src/com/rho/keycapture/KeyCaptureRhoListener.java +11 -1
  147. data/lib/commonAPI/hardwarekeys/ext/platform/android/src/com/rho/keycapture/KeyCaptureSingleton.java +14 -1
  148. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/HardwareKeys.xcodeproj/project.pbxproj +4 -4
  149. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/Rakefile +9 -62
  150. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.h +5 -3
  151. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.m +80 -67
  152. data/lib/commonAPI/indicators/ext/platform/iphone/Indicators.xcodeproj/project.pbxproj +4 -4
  153. data/lib/commonAPI/indicators/ext/platform/iphone/Rakefile +9 -62
  154. data/lib/commonAPI/javascriptvm/ext/platform/iphone/Javascriptvm.xcodeproj/project.pbxproj +4 -4
  155. data/lib/commonAPI/javascriptvm/ext/platform/iphone/Rakefile +9 -63
  156. data/lib/commonAPI/logCapture/ext/build.bat +1 -1
  157. data/lib/commonAPI/logCapture/ext/platform/iphone/LogCapture.xcodeproj/project.pbxproj +4 -4
  158. data/lib/commonAPI/logCapture/ext/platform/iphone/Rakefile +9 -62
  159. data/lib/commonAPI/mediacapture/ext/build +5 -0
  160. data/lib/commonAPI/mediacapture/ext/build.bat +1 -1
  161. data/lib/commonAPI/mediacapture/ext/camera.xml +4 -9
  162. data/lib/commonAPI/mediacapture/ext/platform/android/AndroidManifest_rhomobile.xml +1 -0
  163. data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationFileProvider.erb +9 -0
  164. data/lib/commonAPI/mediacapture/ext/platform/android/adds/res/xml/image_fileprovider_paths.xml +4 -0
  165. data/lib/commonAPI/mediacapture/ext/platform/android/ext_java.files +1 -9
  166. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraExtension.java +0 -2
  167. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraFactory.java +19 -24
  168. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +334 -664
  169. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +273 -425
  170. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/{CameraSingletonObject.java → CameraSingleton.java} +68 -74
  171. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/videocapture/Videocapture.java +3 -1
  172. data/lib/commonAPI/mediacapture/ext/platform/iphone/Mediacapture.xcodeproj/project.pbxproj +4 -4
  173. data/lib/commonAPI/mediacapture/ext/platform/iphone/Rakefile +9 -62
  174. data/lib/commonAPI/mediacapture/ext/platform/qt/{MediaCapture.pro → Mediacapture.pro} +19 -33
  175. data/lib/commonAPI/mediacapture/ext/platform/qt/src/Camera_impl.cpp +1 -1
  176. data/lib/commonAPI/mediacapture/ext.yml +4 -1
  177. data/lib/commonAPI/mediaplayer/ext/platform/iphone/Mediaplayer.xcodeproj/project.pbxproj +4 -4
  178. data/lib/commonAPI/mediaplayer/ext/platform/iphone/Rakefile +9 -62
  179. data/lib/commonAPI/printing/ext/platform/iphone/Printing.xcodeproj/project.pbxproj +4 -4
  180. data/lib/commonAPI/printing/ext/platform/iphone/Rakefile +9 -62
  181. data/lib/commonAPI/printing_epson/ext/platform/iphone/PrintingEpson.xcodeproj/project.pbxproj +4 -4
  182. data/lib/commonAPI/printing_epson/ext/platform/iphone/Rakefile +9 -62
  183. data/lib/commonAPI/printing_zebra/ext/platform/android/Rakefile +18 -0
  184. data/lib/commonAPI/printing_zebra/ext/platform/android/src/com/rhomobile/printing/zebra/impl/ZebraPrintingProviderImpl.java +2 -1
  185. data/lib/commonAPI/printing_zebra/ext/platform/iphone/PrintingZebra.xcodeproj/project.pbxproj +4 -4
  186. data/lib/commonAPI/printing_zebra/ext/platform/iphone/Rakefile +9 -62
  187. data/lib/commonAPI/screenorientation/ext/platform/android/src/com/rho/screenorientation/ScreenOrientationRhoListener.java +2 -1
  188. data/lib/commonAPI/screenorientation/ext/platform/android/src/com/rho/screenorientation/ScreenOrientationSingleton.java +19 -6
  189. data/lib/commonAPI/screenorientation/ext/platform/iphone/Rakefile +9 -63
  190. data/lib/commonAPI/screenorientation/ext/platform/iphone/Screenorientation.xcodeproj/project.pbxproj +4 -4
  191. data/lib/commonAPI/sensor/ext/platform/android/src/com/rho/sensor/Sensor.java +4 -4
  192. data/lib/commonAPI/sensor/ext/platform/iphone/Rakefile +9 -62
  193. data/lib/commonAPI/sensor/ext/platform/iphone/Sensor.xcodeproj/project.pbxproj +4 -4
  194. data/lib/commonAPI/signature/ext/build.bat +8 -0
  195. data/lib/commonAPI/signature/ext/platform/iphone/Rakefile +9 -62
  196. data/lib/commonAPI/signature/ext/platform/iphone/signature.xcodeproj/project.pbxproj +4 -4
  197. data/lib/commonAPI/signature/ext/platform/qt/Signature.pro +26 -12
  198. data/lib/commonAPI/signature/ext.yml +0 -1
  199. data/lib/commonAPI/smartcradle/ext/build.bat +1 -1
  200. data/lib/commonAPI/websocket/ext/platform/iphone/Rakefile +9 -62
  201. data/lib/commonAPI/websocket/ext/platform/iphone/Websocket.xcodeproj/project.pbxproj +4 -4
  202. data/lib/extensions/Development/ext/build.bat +1 -1
  203. data/lib/extensions/Development/ext/platform/iphone/Development.xcodeproj/project.pbxproj +4 -4
  204. data/lib/extensions/Development/ext/platform/iphone/Rakefile +9 -62
  205. data/lib/extensions/applePush/ext/platform/iphone/ApplePush.xcodeproj/project.pbxproj +4 -4
  206. data/lib/extensions/applePush/ext/platform/iphone/Rakefile +9 -62
  207. data/lib/extensions/audiocapture/ext/audiocapture/platform/iphone/Audiocapture.xcodeproj/project.pbxproj +4 -4
  208. data/lib/extensions/audiocapture/ext/audiocapture/platform/iphone/Rakefile +9 -62
  209. data/lib/extensions/bigdecimal/ext/Rakefile +2 -2
  210. data/lib/extensions/bigdecimal/ext/bigdecimal.pro +9 -0
  211. data/lib/extensions/bigdecimal/ext/build +4 -0
  212. data/lib/extensions/bigdecimal/ext/build.bat +1 -1
  213. data/lib/extensions/bigdecimal/ext/iphone/Bigdecimal.xcodeproj/project.pbxproj +4 -4
  214. data/lib/extensions/bigdecimal/ext/iphone/Rakefile +9 -62
  215. data/lib/extensions/debugger/debugger.rb +331 -180
  216. data/lib/extensions/decrypt/ext/build.bat +1 -1
  217. data/lib/extensions/decrypt/ext/platform/android/Rakefile +19 -1
  218. data/lib/extensions/decrypt/ext/platform/iphone/Decrypt.xcodeproj/project.pbxproj +4 -4
  219. data/lib/extensions/decrypt/ext/platform/iphone/Rakefile +9 -62
  220. data/lib/extensions/decryptstub/ext/build.bat +1 -1
  221. data/lib/extensions/decryptstub/ext/platform/android/Rakefile +19 -0
  222. data/lib/extensions/decryptstub/ext/platform/iphone/Decryptstub.xcodeproj/project.pbxproj +10 -6
  223. data/lib/extensions/decryptstub/ext/platform/iphone/Rakefile +9 -62
  224. data/lib/extensions/digest/ext/Rakefile +2 -2
  225. data/lib/extensions/digest/ext/build +4 -0
  226. data/lib/extensions/digest/ext/build.bat +1 -1
  227. data/lib/extensions/digest/ext/digest.pro +9 -0
  228. data/lib/extensions/digest/ext/iphone/Digest.xcodeproj/project.pbxproj +4 -4
  229. data/lib/extensions/digest/ext/iphone/Rakefile +9 -62
  230. data/lib/extensions/digest-md5/ext/Rakefile +2 -2
  231. data/lib/extensions/digest-md5/ext/android/Rakefile +18 -0
  232. data/lib/extensions/digest-md5/ext/build +4 -0
  233. data/lib/extensions/digest-md5/ext/build.bat +1 -1
  234. data/lib/extensions/digest-md5/ext/digest-md5.pro +9 -0
  235. data/lib/extensions/digest-md5/ext/iphone/Dmd5.xcodeproj/project.pbxproj +4 -4
  236. data/lib/extensions/digest-md5/ext/iphone/Rakefile +9 -62
  237. data/lib/extensions/digest-sha1/ext/Rakefile +2 -2
  238. data/lib/extensions/digest-sha1/ext/android/Rakefile +18 -0
  239. data/lib/extensions/digest-sha1/ext/build +4 -0
  240. data/lib/extensions/digest-sha1/ext/build.bat +1 -1
  241. data/lib/extensions/digest-sha1/ext/digest-sha1.pro +9 -0
  242. data/lib/extensions/digest-sha1/ext/iphone/Dsha1.xcodeproj/project.pbxproj +4 -4
  243. data/lib/extensions/digest-sha1/ext/iphone/Rakefile +9 -62
  244. data/lib/extensions/digest-sha2/ext/Rakefile +2 -2
  245. data/lib/extensions/digest-sha2/ext/android/Rakefile +18 -0
  246. data/lib/extensions/digest-sha2/ext/build +4 -0
  247. data/lib/extensions/digest-sha2/ext/build.bat +1 -1
  248. data/lib/extensions/digest-sha2/ext/digest-sha2.pro +9 -0
  249. data/lib/extensions/digest-sha2/ext/iphone/Dsha2.xcodeproj/project.pbxproj +4 -4
  250. data/lib/extensions/digest-sha2/ext/iphone/Rakefile +9 -62
  251. data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +19 -19
  252. data/lib/extensions/esri/ext/esri/platform/iphone/ESRI.xcodeproj/project.pbxproj +4 -4
  253. data/lib/extensions/esri/ext/esri/platform/iphone/Rakefile +9 -65
  254. data/lib/extensions/fcm-push/ext/android/ApplicationManifestAdds.erb +15 -17
  255. data/lib/extensions/fcm-push/ext/android/Rakefile +77 -34
  256. data/lib/extensions/fcm-push/ext/android/ext_java.files +0 -1
  257. data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMFacade.java +13 -17
  258. data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMIntentService.java +90 -67
  259. data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMListener.java +0 -16
  260. data/lib/extensions/fcm-push/ext/iphone/Podfile +11 -0
  261. data/lib/extensions/fcm-push/ext/iphone/Rakefile +13 -66
  262. data/lib/extensions/fcm-push/ext/iphone/fcm-push.xcodeproj/project.pbxproj +99 -48
  263. data/lib/extensions/fcm-push/ext/iphone/impl/PushNotificationsReceiver.h +3 -1
  264. data/lib/extensions/fcm-push/ext/iphone/impl/PushNotificationsReceiver.mm +11 -4
  265. data/lib/extensions/fcm-push/ext/iphone/resources.txt +1 -0
  266. data/lib/extensions/fcm-push/ext.yml +6 -2
  267. data/lib/extensions/fcntl/ext/Rakefile +2 -2
  268. data/lib/extensions/fcntl/ext/build +4 -0
  269. data/lib/extensions/fcntl/ext/build.bat +1 -1
  270. data/lib/extensions/fcntl/ext/fcntl.pro +9 -0
  271. data/lib/extensions/fcntl/ext/iphone/Fcntl.xcodeproj/project.pbxproj +4 -4
  272. data/lib/extensions/fcntl/ext/iphone/Rakefile +9 -62
  273. data/lib/extensions/gcm-push/ext/android/Rakefile +19 -0
  274. data/lib/extensions/gmaps/ext/platform/android/ApplicationManifestAdds.erb +1 -0
  275. data/lib/extensions/gmaps/ext/platform/android/src/com/rhomobile/rhodes/gmaps/GMapActivity.java +12 -4
  276. data/lib/extensions/gmaps/ext.yml +3 -1
  277. data/lib/extensions/keyboard/ext/Keyboard.xml +28 -0
  278. data/lib/extensions/keyboard/ext/build +19 -0
  279. data/lib/extensions/keyboard/ext/build.bat +29 -0
  280. data/lib/extensions/keyboard/ext/platform/android/Rakefile +141 -0
  281. data/lib/extensions/keyboard/ext/platform/android/ext_java.files +9 -0
  282. data/lib/extensions/keyboard/ext/platform/android/ext_native.files +7 -0
  283. data/lib/extensions/keyboard/ext/platform/android/jni/Keyboard_impl.cpp +61 -0
  284. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/Keyboard.java +32 -0
  285. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardFactory.java +18 -0
  286. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardSingleton.java +29 -0
  287. data/lib/extensions/keyboard/ext/platform/iphone/Keyboard.xcodeproj/project.pbxproj +368 -0
  288. data/lib/extensions/keyboard/ext/platform/iphone/Keyboard_Prefix.pch +7 -0
  289. data/lib/extensions/keyboard/ext/platform/iphone/Rakefile +20 -0
  290. data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.h +14 -0
  291. data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.m +24 -0
  292. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardFactorySingleton.m +16 -0
  293. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSetup.m +9 -0
  294. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.h +17 -0
  295. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.m +23 -0
  296. data/lib/extensions/keyboard/ext/platform/iphone/impl/readme.txt +7 -0
  297. data/lib/extensions/keyboard/ext/platform/qt/Keyboard.pro +68 -0
  298. data/lib/extensions/keyboard/ext/platform/qt/Makefile +473 -0
  299. data/lib/extensions/keyboard/ext/platform/qt/Makefile.Release +408 -0
  300. data/lib/extensions/keyboard/ext/platform/qt/Rakefile +39 -0
  301. data/lib/extensions/keyboard/ext/platform/qt/src/Keyboard_impl.cpp +99 -0
  302. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.props +18 -0
  303. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj +197 -0
  304. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj.filters +50 -0
  305. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.csproj +119 -0
  306. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.props +8 -0
  307. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.targets +7 -0
  308. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.props +18 -0
  309. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj +197 -0
  310. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj.filters +58 -0
  311. data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cpp +76 -0
  312. data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cs +69 -0
  313. data/lib/extensions/keyboard/ext/platform/uwp/src/Properties/AssemblyInfo.cs +37 -0
  314. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.sln +52 -0
  315. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vcproj +714 -0
  316. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vsprops +15 -0
  317. data/lib/extensions/keyboard/ext/platform/wm/src/Keyboard_impl.cpp +77 -0
  318. data/lib/extensions/keyboard/ext.yml +15 -0
  319. data/lib/extensions/openssl/ext/Rakefile +2 -2
  320. data/lib/extensions/openssl/ext/android/Rakefile +18 -0
  321. data/lib/extensions/openssl/ext/build +4 -0
  322. data/lib/extensions/openssl/ext/build.bat +1 -1
  323. data/lib/extensions/openssl/ext/iphone/Rakefile +9 -62
  324. data/lib/extensions/openssl/ext/iphone/openssl.xcodeproj/project.pbxproj +4 -4
  325. data/lib/extensions/openssl/ext/linux/extconf.h +65 -0
  326. data/lib/extensions/openssl/ext/openssl.pro +10 -0
  327. data/lib/extensions/openssl/ext/openssl_missing.c +4 -2
  328. data/lib/extensions/openssl/ext/ossl.h +3 -0
  329. data/lib/extensions/openssl/ext/ossl_x509cert.c +1 -1
  330. data/lib/extensions/openssl.so/ext/Rakefile +1 -1
  331. data/lib/extensions/openssl.so/ext/android/aarch64/libopenssl.so.a +0 -0
  332. data/lib/extensions/openssl.so/ext/android/armeabi/libopenssl.so.a +0 -0
  333. data/lib/extensions/openssl.so/ext/android/x86/libopenssl.so.a +0 -0
  334. data/lib/extensions/openssl.so/ext/build +4 -0
  335. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/howtobuild.txt +2 -0
  336. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libcrypto.a +0 -0
  337. data/lib/extensions/{fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/FirebaseAnalytics → openssl.so/ext/iphone/OpenSSl.SDK/libcrypto_sim.a} +0 -0
  338. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl.a +0 -0
  339. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl_sim.a +0 -0
  340. data/lib/extensions/openssl.so/ext/iphone/Rakefile +30 -54
  341. data/lib/extensions/openssl.so/ext/iphone/Release-iphoneos/libopenssl.so.a +0 -0
  342. data/lib/extensions/openssl.so/ext/iphone/Release-iphonesimulator/libopenssl.so.a +0 -0
  343. data/lib/extensions/openssl.so/ext/iphone/openssl.xcodeproj/project.pbxproj +116 -10
  344. data/lib/extensions/openssl.so/ext/sources/include/openssl/__DECC_INCLUDE_EPILOGUE.H +9 -3
  345. data/lib/extensions/openssl.so/ext/sources/include/openssl/__DECC_INCLUDE_PROLOGUE.H +10 -4
  346. data/lib/extensions/openssl.so/ext/sources/include/openssl/asn1.h +13 -226
  347. data/lib/extensions/openssl.so/ext/sources/include/openssl/asn1err.h +256 -0
  348. data/lib/extensions/openssl.so/ext/sources/include/openssl/asn1t.h +24 -8
  349. data/lib/extensions/openssl.so/ext/sources/include/openssl/async.h +2 -24
  350. data/lib/extensions/openssl.so/ext/sources/include/openssl/asyncerr.h +42 -0
  351. data/lib/extensions/openssl.so/ext/sources/include/openssl/bio.h +89 -139
  352. data/lib/extensions/openssl.so/ext/sources/include/openssl/bioerr.h +124 -0
  353. data/lib/extensions/openssl.so/ext/sources/include/openssl/bn.h +75 -111
  354. data/lib/extensions/openssl.so/ext/sources/include/openssl/bnerr.h +100 -0
  355. data/lib/extensions/openssl.so/ext/sources/include/openssl/buffer.h +2 -17
  356. data/lib/extensions/openssl.so/ext/sources/include/openssl/buffererr.h +34 -0
  357. data/lib/extensions/openssl.so/ext/sources/include/openssl/cms.h +6 -179
  358. data/lib/extensions/openssl.so/ext/sources/include/openssl/cmserr.h +202 -0
  359. data/lib/extensions/openssl.so/ext/sources/include/openssl/comp.h +2 -21
  360. data/lib/extensions/openssl.so/ext/sources/include/openssl/comperr.h +44 -0
  361. data/lib/extensions/openssl.so/ext/sources/include/openssl/conf.h +2 -51
  362. data/lib/extensions/openssl.so/ext/sources/include/openssl/conferr.h +76 -0
  363. data/lib/extensions/openssl.so/ext/sources/include/openssl/crypto.h +27 -49
  364. data/lib/extensions/openssl.so/ext/sources/include/openssl/cryptoerr.h +57 -0
  365. data/lib/extensions/openssl.so/ext/sources/include/openssl/ct.h +2 -61
  366. data/lib/extensions/openssl.so/ext/sources/include/openssl/cterr.h +80 -0
  367. data/lib/extensions/openssl.so/ext/sources/include/openssl/dh.h +33 -54
  368. data/lib/extensions/openssl.so/ext/sources/include/openssl/dherr.h +88 -0
  369. data/lib/extensions/openssl.so/ext/sources/include/openssl/dsa.h +21 -60
  370. data/lib/extensions/openssl.so/ext/sources/include/openssl/dsaerr.h +72 -0
  371. data/lib/extensions/openssl.so/ext/sources/include/openssl/dtls1.h +7 -8
  372. data/lib/extensions/openssl.so/ext/sources/include/openssl/e_os2.h +21 -19
  373. data/lib/extensions/openssl.so/ext/sources/include/openssl/ec.h +187 -284
  374. data/lib/extensions/openssl.so/ext/sources/include/openssl/ecerr.h +275 -0
  375. data/lib/extensions/openssl.so/ext/sources/include/openssl/engine.h +5 -94
  376. data/lib/extensions/openssl.so/ext/sources/include/openssl/engineerr.h +111 -0
  377. data/lib/extensions/openssl.so/ext/sources/include/openssl/err.h +19 -5
  378. data/lib/extensions/openssl.so/ext/sources/include/openssl/evp.h +250 -180
  379. data/lib/extensions/openssl.so/ext/sources/include/openssl/evperr.h +205 -0
  380. data/lib/extensions/openssl.so/ext/sources/include/openssl/hmac.h +4 -2
  381. data/lib/extensions/openssl.so/ext/sources/include/openssl/kdf.h +51 -29
  382. data/lib/extensions/openssl.so/ext/sources/include/openssl/kdferr.h +55 -0
  383. data/lib/extensions/openssl.so/ext/sources/include/openssl/lhash.h +43 -19
  384. data/lib/extensions/openssl.so/ext/sources/include/openssl/modes.h +11 -6
  385. data/lib/extensions/openssl.so/ext/sources/include/openssl/obj_mac.h +632 -11
  386. data/lib/extensions/openssl.so/ext/sources/include/openssl/objects.h +3 -925
  387. data/lib/extensions/openssl.so/ext/sources/include/openssl/objectserr.h +42 -0
  388. data/lib/extensions/openssl.so/ext/sources/include/openssl/ocsp.h +21 -65
  389. data/lib/extensions/openssl.so/ext/sources/include/openssl/ocsperr.h +78 -0
  390. data/lib/extensions/openssl.so/ext/sources/include/openssl/opensslconf.h +36 -10
  391. data/lib/extensions/openssl.so/ext/sources/include/openssl/opensslv.h +3 -7
  392. data/lib/extensions/openssl.so/ext/sources/include/openssl/ossl_typ.h +8 -1
  393. data/lib/extensions/openssl.so/ext/sources/include/openssl/pem.h +13 -136
  394. data/lib/extensions/openssl.so/ext/sources/include/openssl/pem2.h +4 -11
  395. data/lib/extensions/openssl.so/ext/sources/include/openssl/pemerr.h +103 -0
  396. data/lib/extensions/openssl.so/ext/sources/include/openssl/pkcs12.h +1 -60
  397. data/lib/extensions/openssl.so/ext/sources/include/openssl/pkcs12err.h +81 -0
  398. data/lib/extensions/openssl.so/ext/sources/include/openssl/pkcs7.h +1 -86
  399. data/lib/extensions/openssl.so/ext/sources/include/openssl/pkcs7err.h +103 -0
  400. data/lib/extensions/openssl.so/ext/sources/include/openssl/rand.h +22 -34
  401. data/lib/extensions/openssl.so/ext/sources/include/openssl/rand_drbg.h +130 -0
  402. data/lib/extensions/openssl.so/ext/sources/include/openssl/randerr.h +94 -0
  403. data/lib/extensions/openssl.so/ext/sources/include/openssl/rsa.h +96 -173
  404. data/lib/extensions/openssl.so/ext/sources/include/openssl/rsaerr.h +167 -0
  405. data/lib/extensions/openssl.so/ext/sources/include/openssl/safestack.h +66 -23
  406. data/lib/extensions/openssl.so/ext/sources/include/openssl/srp.h +5 -1
  407. data/lib/extensions/openssl.so/ext/sources/include/openssl/ssl.h +706 -828
  408. data/lib/extensions/openssl.so/ext/sources/include/openssl/ssl3.h +49 -20
  409. data/lib/extensions/openssl.so/ext/sources/include/openssl/sslerr.h +773 -0
  410. data/lib/extensions/openssl.so/ext/sources/include/openssl/stack.h +8 -3
  411. data/lib/extensions/openssl.so/ext/sources/include/openssl/store.h +266 -1
  412. data/lib/extensions/openssl.so/ext/sources/include/openssl/storeerr.h +91 -0
  413. data/lib/extensions/openssl.so/ext/sources/include/openssl/symhacks.h +1 -16
  414. data/lib/extensions/openssl.so/ext/sources/include/openssl/tls1.h +350 -85
  415. data/lib/extensions/openssl.so/ext/sources/include/openssl/ts.h +25 -109
  416. data/lib/extensions/openssl.so/ext/sources/include/openssl/tserr.h +132 -0
  417. data/lib/extensions/openssl.so/ext/sources/include/openssl/txt_db.h +2 -2
  418. data/lib/extensions/openssl.so/ext/sources/include/openssl/ui.h +56 -66
  419. data/lib/extensions/openssl.so/ext/sources/include/openssl/uierr.h +65 -0
  420. data/lib/extensions/openssl.so/ext/sources/include/openssl/x509.h +36 -112
  421. data/lib/extensions/openssl.so/ext/sources/include/openssl/x509_vfy.h +85 -1
  422. data/lib/extensions/openssl.so/ext/sources/include/openssl/x509err.h +130 -0
  423. data/lib/extensions/openssl.so/ext/sources/include/openssl/x509v3.h +72 -141
  424. data/lib/extensions/openssl.so/ext/sources/include/openssl/x509v3err.h +162 -0
  425. data/lib/extensions/openssl.so.src/ext/android/Rakefile +18 -0
  426. data/lib/extensions/openssl.so.src/ext/build +4 -0
  427. data/lib/extensions/rawsensors/ext/rawsensors/platform/iphone/Rakefile +9 -62
  428. data/lib/extensions/rawsensors/ext/rawsensors/platform/iphone/Rawsensors.xcodeproj/project.pbxproj +4 -4
  429. data/lib/extensions/serialport/ext/build.bat +1 -1
  430. data/lib/extensions/serialport/ext/serialport.pro +11 -11
  431. data/lib/extensions/videocapture/ext/videocapture/platform/iphone/Rakefile +9 -62
  432. data/lib/extensions/videocapture/ext/videocapture/platform/iphone/Videocapture.xcodeproj/project.pbxproj +4 -4
  433. data/lib/extensions/zlib/ext/Rakefile +2 -2
  434. data/lib/extensions/zlib/ext/build +4 -0
  435. data/lib/extensions/zlib/ext/build.bat +1 -1
  436. data/lib/extensions/zlib/ext/gzlib.c +1 -1
  437. data/lib/extensions/zlib/ext/gzread.c +2 -2
  438. data/lib/extensions/zlib/ext/gzwrite.c +3 -3
  439. data/lib/extensions/zlib/ext/iphone/Rakefile +9 -62
  440. data/lib/extensions/zlib/ext/iphone/zlib.xcodeproj/project.pbxproj +4 -4
  441. data/lib/extensions/zlib/ext/zlib.c +5 -1
  442. data/lib/extensions/zlib/ext/zlib.pro +24 -16
  443. data/lib/framework/autocomplete/Rho.rb +6 -2
  444. data/lib/framework/autocomplete/Rhodes.rb +1 -1
  445. data/lib/framework/rho/rho.rb +9 -0
  446. data/lib/framework/rho/rhoapplication.rb +4 -0
  447. data/lib/framework/rhodes.rb +2 -2
  448. data/lib/framework/set.rb +799 -0
  449. data/lib/framework/version.rb +1 -1
  450. data/lib/rhodes.rb +2 -2
  451. data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +7 -3
  452. data/platform/android/Rhodes/jni/include/rhodes/SecurityTokenGenerator.h +30 -0
  453. data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
  454. data/platform/android/Rhodes/jni/include/rhodes/sslimpl.h +94 -6
  455. data/platform/android/Rhodes/jni/include/rhodes.h +6 -0
  456. data/platform/android/Rhodes/jni/src/JNIRhoRuby.cpp +1 -1
  457. data/platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp +510 -0
  458. data/platform/android/Rhodes/jni/src/MethodResultJni.cpp +4 -0
  459. data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +36 -1
  460. data/platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp +60 -0
  461. data/platform/android/Rhodes/jni/src/fileapi.cpp +319 -12
  462. data/platform/android/Rhodes/jni/src/mapview.cpp +4 -0
  463. data/platform/android/Rhodes/jni/src/rhodes.cpp +1 -0
  464. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +18 -0
  465. data/platform/android/Rhodes/jni/src/sslimpl.cpp +317 -3
  466. data/platform/android/Rhodes/res/drawable/ic_notification.png +0 -0
  467. data/platform/android/Rhodes/res/xml/network_security_config.xml +7 -0
  468. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +24 -1
  469. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +18 -1
  470. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMain.java +8 -0
  471. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java +33 -0
  472. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyClassObject.java +20 -0
  473. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyObject.java +115 -0
  474. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubySingleton.java +85 -0
  475. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyTypes.java +15 -0
  476. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +3 -3
  477. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +264 -176
  478. data/platform/android/Rhodes/src/com/rhomobile/rhodes/SecurityTokenGenerator.java +57 -0
  479. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/StatusNotification.java +1 -1
  480. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +1 -1
  481. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +14 -14
  482. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +25 -10
  483. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +9 -2
  484. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +10 -1
  485. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +20 -0
  486. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality11.java +22 -1
  487. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality26.java +153 -0
  488. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +4 -1
  489. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSocketImpl.java +10 -2
  490. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +292 -20
  491. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +21 -18
  492. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +20 -1
  493. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +57 -1
  494. data/platform/android/build/CMakeLists.txt.erb +3 -33
  495. data/platform/android/build/CMakeListsExts.txt.erb +26 -0
  496. data/platform/android/build/Rakefile +30 -1
  497. data/platform/android/build/RhodesSRC_build.files +8 -0
  498. data/platform/android/build/aapt2_helper.rb +291 -0
  499. data/platform/android/build/android.rake +836 -468
  500. data/platform/android/build/android_studio_project_generator.rb +82 -0
  501. data/platform/android/build/android_tools.rb +147 -29
  502. data/platform/android/build/androidcommon.rb +115 -70
  503. data/platform/android/build/apk_builder.rb +42 -0
  504. data/platform/android/build/build_tools_finder.rb +46 -0
  505. data/platform/android/build/config.yml +5 -0
  506. data/platform/android/build/dex_builder.rb +88 -0
  507. data/platform/android/build/hostplatform.rb +9 -0
  508. data/platform/android/build/libcurl_build.files +1 -1
  509. data/platform/android/build/librhocommon_build.files +11 -0
  510. data/platform/android/build/librhodes_build.files +2 -0
  511. data/platform/android/build/manifest_generator.rb +10 -2
  512. data/platform/android/build/maven_deps_extractor.rb +143 -27
  513. data/platform/android/build/ndkwrapper.rb +157 -35
  514. data/platform/android/build/pom.erb +2 -2
  515. data/platform/android/proguard/proguard-base-rules.pro +27 -4
  516. data/platform/iphone/Classes/AppManager/AppManager.m +205 -158
  517. data/platform/iphone/Classes/Camera/PickImageDelegate.h +2 -0
  518. data/platform/iphone/Classes/Camera/PickImageDelegate.m +108 -23
  519. data/platform/iphone/Classes/CocoaServer/CCocoaServer.h +27 -0
  520. data/platform/iphone/Classes/CocoaServer/CCocoaServer.m +107 -0
  521. data/platform/iphone/Classes/CocoaServer/RhoHTTPConnection.h +16 -0
  522. data/platform/iphone/Classes/CocoaServer/RhoHTTPConnection.m +226 -0
  523. data/platform/iphone/Classes/MapView/GoogleGeocoder.h +3 -3
  524. data/platform/iphone/Classes/RhoAlert.m +2 -2
  525. data/platform/iphone/Classes/RhoMainViewStubImpl.h +38 -0
  526. data/platform/iphone/Classes/RhoMainViewStubImpl.m +88 -0
  527. data/platform/iphone/Classes/RhoUIWebView.h +6 -1
  528. data/platform/iphone/Classes/RhoUIWebView.m +15 -7
  529. data/platform/iphone/Classes/RhoWKWebView.h +6 -3
  530. data/platform/iphone/Classes/RhoWKWebView.mm +406 -0
  531. data/platform/iphone/Classes/RhoWebView.h +7 -7
  532. data/platform/iphone/Classes/RhoWebViewFabrique.h +1 -1
  533. data/platform/iphone/Classes/RhoWebViewFabrique.m +33 -16
  534. data/platform/iphone/Classes/Rhodes.h +7 -2
  535. data/platform/iphone/Classes/Rhodes.m +108 -19
  536. data/platform/iphone/Classes/SimpleMainView.m +24 -15
  537. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +32 -3
  538. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +96 -64
  539. data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.h +22 -0
  540. data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.m +246 -0
  541. data/platform/iphone/Classes/WebView.m +14 -2
  542. data/platform/iphone/Classes/rho/net/IPhoneNetRequest.mm +1 -1
  543. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDData.h +14 -0
  544. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDData.m +158 -0
  545. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDNumber.h +12 -0
  546. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDNumber.m +88 -0
  547. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDRange.h +56 -0
  548. data/platform/iphone/CocoaHTTPServer/Core/Categories/DDRange.m +104 -0
  549. data/platform/iphone/CocoaHTTPServer/Core/HTTPAuthenticationRequest.h +45 -0
  550. data/platform/iphone/CocoaHTTPServer/Core/HTTPAuthenticationRequest.m +195 -0
  551. data/platform/iphone/CocoaHTTPServer/Core/HTTPConnection.h +120 -0
  552. data/platform/iphone/CocoaHTTPServer/Core/HTTPConnection.m +2708 -0
  553. data/platform/iphone/CocoaHTTPServer/Core/HTTPLogging.h +136 -0
  554. data/platform/iphone/CocoaHTTPServer/Core/HTTPMessage.h +48 -0
  555. data/platform/iphone/CocoaHTTPServer/Core/HTTPMessage.m +113 -0
  556. data/platform/iphone/CocoaHTTPServer/Core/HTTPResponse.h +149 -0
  557. data/platform/iphone/CocoaHTTPServer/Core/HTTPServer.h +205 -0
  558. data/platform/iphone/CocoaHTTPServer/Core/HTTPServer.m +772 -0
  559. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.h +65 -0
  560. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.m +529 -0
  561. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.h +33 -0
  562. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.m +86 -0
  563. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.h +23 -0
  564. data/platform/iphone/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.m +211 -0
  565. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.h +75 -0
  566. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.m +405 -0
  567. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPDataResponse.h +13 -0
  568. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPDataResponse.m +79 -0
  569. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.h +52 -0
  570. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.m +292 -0
  571. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.h +9 -0
  572. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.m +38 -0
  573. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPFileResponse.h +25 -0
  574. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPFileResponse.m +237 -0
  575. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.h +12 -0
  576. data/platform/iphone/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.m +73 -0
  577. data/platform/iphone/CocoaHTTPServer/Core/WebSocket.h +105 -0
  578. data/platform/iphone/CocoaHTTPServer/Core/WebSocket.m +791 -0
  579. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.h +7 -0
  580. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.m +160 -0
  581. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.h +11 -0
  582. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.m +372 -0
  583. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.h +7 -0
  584. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.m +49 -0
  585. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.h +8 -0
  586. data/platform/iphone/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.m +69 -0
  587. data/platform/iphone/CocoaHTTPServer/LICENSE.txt +18 -0
  588. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaAsyncSocket/About.txt +4 -0
  589. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaAsyncSocket/GCDAsyncSocket.h +1226 -0
  590. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaAsyncSocket/GCDAsyncSocket.m +8528 -0
  591. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/About.txt +33 -0
  592. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDASLLogger.h +41 -0
  593. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDASLLogger.m +99 -0
  594. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.h +102 -0
  595. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.m +727 -0
  596. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDFileLogger.h +334 -0
  597. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDFileLogger.m +1353 -0
  598. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDLog.h +601 -0
  599. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDLog.m +1083 -0
  600. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDTTYLogger.h +167 -0
  601. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/DDTTYLogger.m +1479 -0
  602. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.h +65 -0
  603. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.m +191 -0
  604. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.h +116 -0
  605. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.m +251 -0
  606. data/platform/iphone/CocoaHTTPServer/Vendor/CocoaLumberjack/Extensions/README.txt +7 -0
  607. data/platform/iphone/Default-568h@2x.png +0 -0
  608. data/platform/iphone/Default-667h@2x.png +0 -0
  609. data/platform/iphone/Default-736h@3x.png +0 -0
  610. data/platform/iphone/Default-812h@3x.png +0 -0
  611. data/platform/iphone/Default-896h@2x.png +0 -0
  612. data/platform/iphone/Default-896h@3x.png +0 -0
  613. data/platform/iphone/Default-Landscape-736h@3x.png +0 -0
  614. data/platform/iphone/Default-Landscape-812h@3x.png +0 -0
  615. data/platform/iphone/Default-Landscape-896h@2x.png +0 -0
  616. data/platform/iphone/Default-Landscape-896h@3x.png +0 -0
  617. data/platform/iphone/Default-Landscape.png +0 -0
  618. data/platform/iphone/Default-Landscape@2x.png +0 -0
  619. data/platform/iphone/Default-LandscapeLeft.png +0 -0
  620. data/platform/iphone/Default-LandscapeLeft@2x.png +0 -0
  621. data/platform/iphone/Default-LandscapeRight.png +0 -0
  622. data/platform/iphone/Default-LandscapeRight@2x.png +0 -0
  623. data/platform/iphone/Default-Portrait.png +0 -0
  624. data/platform/iphone/Default-Portrait@2x.png +0 -0
  625. data/platform/iphone/Default-PortraitUpsideDown.png +0 -0
  626. data/platform/iphone/Default-PortraitUpsideDown@2x.png +0 -0
  627. data/platform/iphone/Default.png +0 -0
  628. data/platform/iphone/Default@2x.png +0 -0
  629. data/platform/iphone/Entitlements.plist +1 -1
  630. data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +401 -0
  631. data/platform/iphone/Framework/Rhodes/Rhodes/Info.plist +24 -0
  632. data/platform/iphone/Framework/Rhodes/Rhodes/Rhodes.h +21 -0
  633. data/platform/iphone/Framework/Rhodes/Rhodes/StubCode.m +15 -0
  634. data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1216 -0
  635. data/platform/iphone/Info.plist +1 -3
  636. data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +878 -7
  637. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +470 -4
  638. data/platform/iphone/Rhodes.xcodeproj/project.pbxproj +55 -278
  639. data/platform/iphone/RhodesBaseDelegate.h +1 -1
  640. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +92 -6
  641. data/platform/iphone/rbuild/ApplicationPlist.erb +1 -1
  642. data/platform/iphone/rbuild/buildextension.rb +115 -0
  643. data/platform/iphone/rbuild/iphone.rake +883 -121
  644. data/platform/iphone/rbuild/iphonecommon.rb +15 -6
  645. data/platform/iphone/rhodes_stub.cpp +15 -0
  646. data/platform/iphone/rhodeslib/api/RhodesLib.h +28 -0
  647. data/platform/iphone/rhodeslib/impl/RhodesLib.m +52 -0
  648. data/platform/iphone/rhodesruby/api/IRefCountedObject.h +20 -0
  649. data/platform/iphone/rhodesruby/api/IRhoRuby.h +72 -0
  650. data/platform/iphone/rhodesruby/api/IRhoRubyArray.h +12 -0
  651. data/platform/iphone/rhodesruby/api/IRhoRubyBoolean.h +11 -0
  652. data/platform/iphone/rhodesruby/api/IRhoRubyFloat.h +10 -0
  653. data/platform/iphone/rhodesruby/api/IRhoRubyHash.h +15 -0
  654. data/platform/iphone/rhodesruby/api/IRhoRubyInteger.h +10 -0
  655. data/platform/iphone/rhodesruby/api/IRhoRubyMutableArray.h +9 -0
  656. data/platform/iphone/rhodesruby/api/IRhoRubyMutableBoolean.h +10 -0
  657. data/platform/iphone/rhodesruby/api/IRhoRubyMutableFloat.h +10 -0
  658. data/platform/iphone/rhodesruby/api/IRhoRubyMutableHash.h +10 -0
  659. data/platform/iphone/rhodesruby/api/IRhoRubyMutableInteger.h +10 -0
  660. data/platform/iphone/rhodesruby/api/IRhoRubyMutableString.h +10 -0
  661. data/platform/iphone/rhodesruby/api/IRhoRubyNativeCallback.h +9 -0
  662. data/platform/iphone/rhodesruby/api/IRhoRubyNil.h +10 -0
  663. data/platform/iphone/rhodesruby/api/IRhoRubyObject.h +37 -0
  664. data/platform/iphone/rhodesruby/api/IRhoRubyRunnable.h +8 -0
  665. data/platform/iphone/rhodesruby/api/IRhoRubyString.h +10 -0
  666. data/platform/iphone/rhodesruby/api/RhoRuby.h +26 -0
  667. data/platform/iphone/rhodesruby/api/RhoRubySingletone.h +14 -0
  668. data/platform/iphone/rhodesruby/impl/RhoRubyFabrique.h +10 -0
  669. data/platform/iphone/rhodesruby/impl/RhoRubyImpl.h +56 -0
  670. data/platform/iphone/rhodesruby/impl/RhoRubyImpl.mm +432 -0
  671. data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.h +24 -0
  672. data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.mm +43 -0
  673. data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.h +23 -0
  674. data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.mm +38 -0
  675. data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.h +23 -0
  676. data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.mm +35 -0
  677. data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.h +24 -0
  678. data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.mm +48 -0
  679. data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.h +23 -0
  680. data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.mm +35 -0
  681. data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.h +23 -0
  682. data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.mm +35 -0
  683. data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.h +22 -0
  684. data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.mm +11 -0
  685. data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.h +31 -0
  686. data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.mm +49 -0
  687. data/platform/iphone/rhodesruby/impl/RhoRubySingletone.m +19 -0
  688. data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.h +21 -0
  689. data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.mm +32 -0
  690. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +83 -3
  691. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +94 -3
  692. data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +3 -3
  693. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +89 -3
  694. data/platform/linux/tasks/control.erb +8 -0
  695. data/platform/linux/tasks/getting sudo instruction.txt +8 -0
  696. data/platform/linux/tasks/install_dev_depes_alt.sh +9 -0
  697. data/platform/linux/tasks/install_dev_depes_astra.sh +7 -0
  698. data/platform/linux/tasks/install_dev_depes_redos.sh +10 -0
  699. data/platform/linux/tasks/install_dev_depes_rosa_r7.sh +15 -0
  700. data/platform/linux/tasks/install_dev_depes_rosa_x4.sh +21 -0
  701. data/platform/linux/tasks/install_dev_depes_ubuntu.sh +18 -0
  702. data/platform/linux/tasks/installation.txt +2 -0
  703. data/platform/linux/tasks/linter_exceptions.erb +2 -0
  704. data/platform/linux/tasks/linux.rake +498 -61
  705. data/platform/linux/tasks/rpm_spec.erb +33 -0
  706. data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
  707. data/platform/sailfish/build/coreapi.pro.erb +11 -12
  708. data/platform/sailfish/build/curl.pro.erb +12 -14
  709. data/platform/sailfish/build/harbour-SailfishRhodes.pro.erb +2 -2
  710. data/platform/sailfish/build/rho_build.cmd.erb +1 -0
  711. data/platform/sailfish/build/rho_clean.cmd.erb +1 -0
  712. data/platform/sailfish/build/rho_deploy.cmd.erb +1 -0
  713. data/platform/sailfish/build/rho_rpm.cmd.erb +1 -0
  714. data/platform/sailfish/build/rho_rpmvalidation.cmd.erb +1 -0
  715. data/platform/sailfish/build/rhodes.pro.erb +43 -38
  716. data/platform/sailfish/build/rholib.pro.erb +21 -57
  717. data/platform/sailfish/build/rubylib.pro.erb +25 -30
  718. data/platform/sailfish/build/sailfish.rake +56 -9
  719. data/platform/sailfish/build/sqlite3.pro.erb +9 -9
  720. data/platform/sailfish/build/syncengine.pro.erb +9 -16
  721. data/platform/sailfish/build/unzip.pro.erb +66 -0
  722. data/platform/sailfish/build/zlib.pro.erb +72 -0
  723. data/platform/shared/api_generator/Api.h +5 -0
  724. data/platform/shared/common/CMakeLists.txt.erb +2 -52
  725. data/platform/shared/common/IRhoClassFactory.h +56 -2
  726. data/platform/shared/common/ISecurityTokenGenerator.h +16 -0
  727. data/platform/shared/common/RhoDefs.h +0 -1
  728. data/platform/shared/common/RhoFile.cpp +11 -0
  729. data/platform/shared/common/RhoFile.h +2 -0
  730. data/platform/shared/common/RhoMath.h +14 -0
  731. data/platform/shared/common/RhoMutexLock.h +14 -1
  732. data/platform/shared/common/RhoSystem.h +1 -1
  733. data/platform/shared/common/RhoThread.cpp +25 -0
  734. data/platform/shared/common/RhodesApp.cpp +127 -13
  735. data/platform/shared/common/RhodesApp.h +29 -1
  736. data/platform/shared/common/RhodesAppBase.cpp +4 -2
  737. data/platform/shared/common/RhodesAppBase.h +5 -0
  738. data/platform/shared/common/iphone/RhoClassfactory.h +7 -1
  739. data/platform/shared/common/iphone/RhoCryptImpl.mm +21 -2
  740. data/platform/shared/common/map/BaseMapEngine.cpp +2 -2
  741. data/platform/shared/common/map/GeocodingMapEngine.cpp +1 -1
  742. data/platform/shared/common/map/GoogleMapEngine.cpp +1 -1
  743. data/platform/shared/common/map/OSMMapEngine.cpp +1 -1
  744. data/platform/shared/curl/CMakeLists.txt.erb +1 -94
  745. data/platform/shared/curl/lib/asyn-thread.c +2 -1
  746. data/platform/shared/curl/lib/curl_addrinfo.h +39 -0
  747. data/platform/shared/curl/lib/curl_config.h +30 -3
  748. data/platform/shared/curl/lib/curl_setup.h +4 -0
  749. data/platform/shared/curl/lib/multi.c +0 -1
  750. data/platform/shared/curl/lib/transfer.c +21 -2
  751. data/platform/shared/curl/lib/vtls/vtls.h +3 -0
  752. data/platform/shared/db/CMakeLists.txt.erb +1 -6
  753. data/platform/shared/db/DBAdapter.cpp +28 -14
  754. data/platform/shared/json/RJSONTokener.c +1 -8
  755. data/platform/shared/json/json_object.c +2 -2
  756. data/platform/shared/json/json_tokener.c +1 -1
  757. data/platform/shared/json.new/CMakeLists.txt.erb +1 -15
  758. data/platform/shared/json.new/JSONIterator.cpp +2 -2
  759. data/platform/shared/json.new/RJSONTokener.c +0 -7
  760. data/platform/shared/json.new/json_object.c +5 -5
  761. data/platform/shared/json.new/json_pointer.c +2 -2
  762. data/platform/shared/json.new/json_tokener.c +1 -1
  763. data/platform/shared/logging/CMakeLists.txt.erb +1 -5
  764. data/platform/shared/logging/RhoLogConf.cpp +82 -3
  765. data/platform/shared/net/CURLNetRequest.cpp +6 -7
  766. data/platform/shared/net/HttpServer.cpp +286 -4
  767. data/platform/shared/net/HttpServer.h +35 -0
  768. data/platform/shared/net/INetRequest.cpp +54 -0
  769. data/platform/shared/net/INetRequest.h +6 -0
  770. data/platform/shared/net/linux/SSLImpl.cpp +2 -1
  771. data/platform/shared/net/ssl.h +26 -0
  772. data/platform/shared/qt/RhoRubylib.pro +10 -0
  773. data/platform/shared/qt/RhoSimulator.pro +25 -13
  774. data/platform/shared/qt/RhoSimulator_dev.pro +30 -15
  775. data/platform/shared/qt/curl/curl.pro +27 -16
  776. data/platform/shared/qt/rhodes/iexecutable.h +1 -1
  777. data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +13 -0
  778. data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +6 -0
  779. data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +4 -0
  780. data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +36 -7
  781. data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +12 -1
  782. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +21 -2
  783. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +1 -0
  784. data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +10 -0
  785. data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +55 -3
  786. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +12 -1
  787. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +72 -8
  788. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +79 -2
  789. data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +16 -6
  790. data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.cpp +37 -0
  791. data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.h +25 -0
  792. data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +2 -0
  793. data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +27 -0
  794. data/platform/shared/qt/rhodes/impl/notificationsound.cpp +16 -2
  795. data/platform/shared/qt/rhodes/impl/notificationsound.h +11 -1
  796. data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +50 -26
  797. data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +4 -1
  798. data/platform/shared/qt/rhodes/newVersion/{qtwebenginepage.cpp → QtWebEnginePage.cpp} +1 -1
  799. data/platform/shared/qt/rhodes/newVersion/{qtwebenginepage.h → QtWebEnginePage.h} +0 -0
  800. data/platform/shared/qt/rhodes/newVersion/{qtwebengineview.cpp → QtWebEngineView.cpp} +1 -1
  801. data/platform/shared/qt/rhodes/newVersion/{qtwebengineview.h → QtWebEngineView.h} +0 -0
  802. data/platform/shared/qt/rhodes/newVersion/WebUrlRequestInterceptor.cpp +17 -0
  803. data/platform/shared/qt/rhodes/newVersion/main.cpp +5 -6
  804. data/platform/shared/qt/rhodes/resources/rho.png +0 -0
  805. data/platform/shared/qt/rhodes/rhodes.pro +155 -85
  806. data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.cpp +148 -0
  807. data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.h +12 -0
  808. data/platform/shared/qt/rholib/rholib.pro +66 -30
  809. data/platform/shared/qt/rhoruby_win32_build.bat +19 -0
  810. data/platform/shared/qt/rhoruby_win32_build_debug.bat +19 -0
  811. data/platform/shared/qt/rhosimulator_win32_build.bat +1 -1
  812. data/platform/shared/qt/rhosimulator_win32_build_debug.bat +19 -0
  813. data/platform/shared/qt/rubylib/rubylib.pro +38 -34
  814. data/platform/shared/qt/sailfish/SailfishRhodes.pro +1 -1
  815. data/platform/shared/qt/sailfish/icons/172x172/harbour-sailfishrhodes.png +0 -0
  816. data/platform/shared/qt/sailfish/qml/pages/BarcodePage.qml +18 -48
  817. data/platform/shared/qt/sqlite3/sqlite3.pro +17 -10
  818. data/platform/shared/qt/syncengine/syncengine.pro +19 -15
  819. data/platform/shared/qt/unzip/unzip.pro +133 -0
  820. data/platform/shared/rhoruby/api/IArray.h +20 -0
  821. data/platform/shared/rhoruby/api/IBoolean.h +17 -0
  822. data/platform/shared/rhoruby/api/IFloat.h +17 -0
  823. data/platform/shared/rhoruby/api/IHash.h +23 -0
  824. data/platform/shared/rhoruby/api/IInteger.h +18 -0
  825. data/platform/shared/rhoruby/api/IMutableArray.h +18 -0
  826. data/platform/shared/rhoruby/api/IMutableBoolean.h +18 -0
  827. data/platform/shared/rhoruby/api/IMutableFloat.h +17 -0
  828. data/platform/shared/rhoruby/api/IMutableHash.h +18 -0
  829. data/platform/shared/rhoruby/api/IMutableInteger.h +17 -0
  830. data/platform/shared/rhoruby/api/IMutableString.h +17 -0
  831. data/platform/shared/rhoruby/api/INil.h +16 -0
  832. data/platform/shared/rhoruby/api/IObject.h +46 -0
  833. data/platform/shared/rhoruby/api/IRefCountedObject.h +20 -0
  834. data/platform/shared/rhoruby/api/IRhoRuby.h +78 -0
  835. data/platform/shared/rhoruby/api/IRunnable.h +17 -0
  836. data/platform/shared/rhoruby/api/IString.h +17 -0
  837. data/platform/shared/rhoruby/api/RhoRuby.h +29 -0
  838. data/platform/shared/rhoruby/api/RhoRubySingletone.h +19 -0
  839. data/platform/shared/rhoruby/api/SmartPointer.h +27 -0
  840. data/platform/shared/rhoruby/impl/MutableArrayImpl.cpp +54 -0
  841. data/platform/shared/rhoruby/impl/MutableArrayImpl.h +48 -0
  842. data/platform/shared/rhoruby/impl/MutableBooleanImpl.cpp +44 -0
  843. data/platform/shared/rhoruby/impl/MutableBooleanImpl.h +44 -0
  844. data/platform/shared/rhoruby/impl/MutableFloatImpl.cpp +41 -0
  845. data/platform/shared/rhoruby/impl/MutableFloatImpl.h +44 -0
  846. data/platform/shared/rhoruby/impl/MutableHashImpl.cpp +64 -0
  847. data/platform/shared/rhoruby/impl/MutableHashImpl.h +49 -0
  848. data/platform/shared/rhoruby/impl/MutableIntegerImpl.cpp +41 -0
  849. data/platform/shared/rhoruby/impl/MutableIntegerImpl.h +44 -0
  850. data/platform/shared/rhoruby/impl/MutableStringImpl.cpp +52 -0
  851. data/platform/shared/rhoruby/impl/MutableStringImpl.h +44 -0
  852. data/platform/shared/rhoruby/impl/NilImpl.cpp +23 -0
  853. data/platform/shared/rhoruby/impl/NilImpl.h +32 -0
  854. data/platform/shared/rhoruby/impl/ObjectImpl.cpp +77 -0
  855. data/platform/shared/rhoruby/impl/ObjectImpl.h +53 -0
  856. data/platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp +28 -0
  857. data/platform/shared/rhoruby/impl/RefCountedObjectImpl.h +33 -0
  858. data/platform/shared/rhoruby/impl/RhoRubyImpl.cpp +804 -0
  859. data/platform/shared/rhoruby/impl/RhoRubyImpl.h +86 -0
  860. data/platform/shared/rhoruby/impl/RhoRubySingletone.cpp +20 -0
  861. data/platform/shared/rhoruby/impl/RubyServerResponceImpl.cpp +32 -0
  862. data/platform/shared/rhoruby/impl/RubyServerResponceImpl.h +21 -0
  863. data/platform/shared/ruby/CMakeLists.txt.erb +1 -129
  864. data/platform/shared/ruby/android/ruby/config.h +55 -3
  865. data/platform/shared/ruby/dln_find.c +1 -1
  866. data/platform/shared/ruby/error.c +2 -2
  867. data/platform/shared/ruby/ext/rho/rhoruby.c +88 -14
  868. data/platform/shared/ruby/ext/rho/rhoruby.h +4 -0
  869. data/platform/shared/ruby/ext/socket/addrinfo.h +2 -1
  870. data/platform/shared/ruby/ext/socket/ipsocket.c +3 -3
  871. data/platform/shared/ruby/file.c +3 -3
  872. data/platform/shared/ruby/io.c +46 -46
  873. data/platform/shared/ruby/linux/ruby/config.h +94 -34
  874. data/platform/shared/ruby/linux/ruby/config_linux.h +403 -0
  875. data/platform/shared/ruby/missing/langinfo.c +1 -1
  876. data/platform/shared/ruby/missing/memmove.c +4 -0
  877. data/platform/shared/ruby/osx/ruby/config.h +2 -0
  878. data/platform/shared/ruby/posixnames.h +2 -8
  879. data/platform/shared/ruby/process.c +7 -7
  880. data/platform/shared/ruby/ruby.c +10 -10
  881. data/platform/shared/ruby/sailfish/ruby/config.h +1 -1
  882. data/platform/shared/ruby/thread_pthread.c +1 -1
  883. data/platform/shared/ruby/time.c +2 -2
  884. data/platform/shared/ruby/uwp/win32/win32.c +12 -12
  885. data/platform/shared/ruby/win32/ruby/config.h +1 -1
  886. data/platform/shared/ruby/win32/win32.c +10 -3
  887. data/platform/shared/rubyext/NativeToolbarExt.h +1 -0
  888. data/platform/shared/sqlite/CMakeLists.txt.erb +1 -1
  889. data/platform/shared/sqlite/sqlite3.c +23 -0
  890. data/platform/shared/sync/CMakeLists.txt.erb +1 -1
  891. data/platform/shared/unzip/gzlib.cpp +1 -1
  892. data/platform/shared/unzip/gzwrite.cpp +3 -3
  893. data/platform/shared/unzip/unzip.cpp +3 -10
  894. data/platform/shared/unzip/zip.cpp +3 -8
  895. data/platform/uwp/rhodes/App.xaml.cs +9 -9
  896. data/platform/uwp/rhodes/rhodes_TemporaryKey.pfx +0 -0
  897. data/platform/uwp/rhoruntime/common/RhoClassFactory.h +7 -1
  898. data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
  899. data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
  900. data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
  901. data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
  902. data/platform/win32/RhoSimulator/Qt5Positioning.dll +0 -0
  903. data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
  904. data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
  905. data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
  906. data/platform/win32/RhoSimulator/Qt5QuickWidgets.dll +0 -0
  907. data/platform/win32/RhoSimulator/Qt5SerialPort.dll +0 -0
  908. data/platform/win32/RhoSimulator/Qt5Svg.dll +0 -0
  909. data/platform/win32/RhoSimulator/Qt5WebChannel.dll +0 -0
  910. data/platform/win32/RhoSimulator/Qt5WebEngine.dll +0 -0
  911. data/platform/win32/RhoSimulator/Qt5WebEngineCore.dll +0 -0
  912. data/platform/win32/RhoSimulator/Qt5WebEngineWidgets.dll +0 -0
  913. data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
  914. data/platform/win32/RhoSimulator/QtWebEngineProcess.exe +0 -0
  915. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  916. data/platform/win32/RhoSimulator/audio/qtaudio_wasapi.dll +0 -0
  917. data/platform/win32/RhoSimulator/audio/qtaudio_windows.dll +0 -0
  918. data/platform/win32/RhoSimulator/bearer/qgenericbearer.dll +0 -0
  919. data/platform/win32/RhoSimulator/concrt140.dll +0 -0
  920. data/platform/win32/RhoSimulator/iconengines/qsvgicon.dll +0 -0
  921. data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
  922. data/platform/win32/RhoSimulator/imageformats/qicns.dll +0 -0
  923. data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
  924. data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
  925. data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
  926. data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
  927. data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
  928. data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
  929. data/platform/win32/RhoSimulator/imageformats/qwebp.dll +0 -0
  930. data/platform/win32/RhoSimulator/libEGL.dll +0 -0
  931. data/platform/win32/RhoSimulator/libGLESV2.dll +0 -0
  932. data/platform/win32/RhoSimulator/mediaservice/dsengine.dll +0 -0
  933. data/platform/win32/RhoSimulator/mediaservice/qtmedia_audioengine.dll +0 -0
  934. data/platform/win32/RhoSimulator/mediaservice/wmfengine.dll +0 -0
  935. data/platform/win32/RhoSimulator/mfc140.dll +0 -0
  936. data/platform/win32/RhoSimulator/mfc140chs.dll +0 -0
  937. data/platform/win32/RhoSimulator/mfc140cht.dll +0 -0
  938. data/platform/win32/RhoSimulator/mfc140deu.dll +0 -0
  939. data/platform/win32/RhoSimulator/mfc140enu.dll +0 -0
  940. data/platform/win32/RhoSimulator/mfc140esn.dll +0 -0
  941. data/platform/win32/RhoSimulator/mfc140fra.dll +0 -0
  942. data/platform/win32/RhoSimulator/mfc140ita.dll +0 -0
  943. data/platform/win32/RhoSimulator/mfc140jpn.dll +0 -0
  944. data/platform/win32/RhoSimulator/mfc140kor.dll +0 -0
  945. data/platform/win32/RhoSimulator/mfc140rus.dll +0 -0
  946. data/platform/win32/RhoSimulator/mfc140u.dll +0 -0
  947. data/platform/win32/RhoSimulator/mfcm140.dll +0 -0
  948. data/platform/win32/RhoSimulator/mfcm140u.dll +0 -0
  949. data/platform/win32/RhoSimulator/msvcp140.dll +0 -0
  950. data/platform/win32/RhoSimulator/msvcp140_1.dll +0 -0
  951. data/platform/win32/RhoSimulator/msvcp140_2.dll +0 -0
  952. data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
  953. data/platform/win32/RhoSimulator/playlistformats/qtmultimedia_m3u.dll +0 -0
  954. data/platform/win32/RhoSimulator/position/qtposition_positionpoll.dll +0 -0
  955. data/platform/win32/RhoSimulator/position/qtposition_serialnmea.dll +0 -0
  956. data/platform/win32/RhoSimulator/position/qtposition_winrt.dll +0 -0
  957. data/platform/win32/RhoSimulator/printsupport/windowsprintersupport.dll +0 -0
  958. data/platform/win32/RhoSimulator/resources/icudtl.dat +0 -0
  959. data/platform/win32/RhoSimulator/resources/qtwebengine_devtools_resources.pak +0 -0
  960. data/platform/win32/RhoSimulator/resources/qtwebengine_resources.pak +0 -0
  961. data/platform/win32/RhoSimulator/resources/qtwebengine_resources_100p.pak +0 -0
  962. data/platform/win32/RhoSimulator/resources/qtwebengine_resources_200p.pak +0 -0
  963. data/platform/win32/RhoSimulator/styles/qwindowsvistastyle.dll +0 -0
  964. data/platform/win32/RhoSimulator/translations/qt_ca.qm +0 -0
  965. data/platform/win32/RhoSimulator/translations/qt_da.qm +0 -0
  966. data/platform/win32/RhoSimulator/translations/qt_de.qm +0 -0
  967. data/platform/win32/RhoSimulator/translations/qt_fi.qm +0 -0
  968. data/platform/win32/RhoSimulator/translations/qt_ru.qm +0 -0
  969. data/platform/win32/RhoSimulator/translations/qt_zh_TW.qm +0 -0
  970. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/am.pak +0 -0
  971. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ar.pak +0 -0
  972. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/bg.pak +0 -0
  973. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/bn.pak +0 -0
  974. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ca.pak +0 -0
  975. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/cs.pak +0 -0
  976. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/da.pak +0 -0
  977. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/de.pak +0 -0
  978. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/el.pak +0 -0
  979. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/en-GB.pak +0 -0
  980. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/en-US.pak +0 -0
  981. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/es-419.pak +0 -0
  982. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/es.pak +0 -0
  983. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/et.pak +0 -0
  984. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/fa.pak +0 -0
  985. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/fi.pak +0 -0
  986. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/fil.pak +0 -0
  987. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/fr.pak +0 -0
  988. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/gu.pak +0 -0
  989. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/he.pak +0 -0
  990. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/hi.pak +0 -0
  991. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/hr.pak +0 -0
  992. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/hu.pak +0 -0
  993. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/id.pak +0 -0
  994. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/it.pak +0 -0
  995. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ja.pak +0 -0
  996. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/kn.pak +0 -0
  997. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ko.pak +0 -0
  998. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/lt.pak +0 -0
  999. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/lv.pak +0 -0
  1000. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ml.pak +0 -0
  1001. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/mr.pak +0 -0
  1002. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ms.pak +0 -0
  1003. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/nb.pak +0 -0
  1004. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/nl.pak +0 -0
  1005. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/pl.pak +0 -0
  1006. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/pt-BR.pak +0 -0
  1007. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/pt-PT.pak +0 -0
  1008. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ro.pak +0 -0
  1009. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ru.pak +0 -0
  1010. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/sk.pak +0 -0
  1011. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/sl.pak +0 -0
  1012. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/sr.pak +0 -0
  1013. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/sv.pak +0 -0
  1014. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/sw.pak +0 -0
  1015. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/ta.pak +0 -0
  1016. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/te.pak +0 -0
  1017. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/th.pak +0 -0
  1018. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/tr.pak +0 -0
  1019. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/uk.pak +0 -0
  1020. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/vi.pak +0 -0
  1021. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/zh-CN.pak +0 -0
  1022. data/platform/win32/RhoSimulator/translations/qtwebengine_locales/zh-TW.pak +0 -0
  1023. data/platform/win32/RhoSimulator/vcamp140.dll +0 -0
  1024. data/platform/win32/RhoSimulator/vccorlib140.dll +0 -0
  1025. data/platform/win32/RhoSimulator/vcomp140.dll +0 -0
  1026. data/platform/win32/RhoSimulator/vcruntime140.dll +0 -0
  1027. data/platform/win32/build/rhodes.nsi +184 -0
  1028. data/platform/win32/build/win32.rake +876 -0
  1029. data/platform/wm/build/wm.rake +17 -967
  1030. data/platform/wm/rhodes/rho/common/ExtManager.cpp +30 -0
  1031. data/platform/wm/rhodes/rho/common/RhoClassFactory.h +7 -1
  1032. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -0
  1033. data/platform/wm/rubylib/rubylib.vcxproj +6 -0
  1034. data/platform/wm/syncengine/syncengine.vcproj +24 -16
  1035. data/platform/wp8/rhoruntime/common/RhoClassFactory.h +7 -1
  1036. data/rakefile.rb +194 -101
  1037. data/res/build-tools/RhoRuby.exe +0 -0
  1038. data/res/build-tools/aapt2/linux/aapt2 +0 -0
  1039. data/res/build-tools/aapt2/osx/aapt2 +0 -0
  1040. data/res/build-tools/aapt2/windows/aapt2.exe +0 -0
  1041. data/res/build-tools/bundletool.jar +0 -0
  1042. data/res/build-tools/helpers/ext/android/build_common.rb +160 -0
  1043. data/res/build-tools/iphonesim/build/Release/iphonesim_8 +29 -19
  1044. data/res/build-tools/maven/LICENSE +18 -89
  1045. data/res/build-tools/maven/NOTICE +1 -1
  1046. data/res/build-tools/maven/README.txt +12 -12
  1047. data/res/build-tools/maven/bin/m2.conf +2 -2
  1048. data/res/build-tools/maven/bin/mvn +122 -125
  1049. data/res/build-tools/maven/bin/mvn.cmd +205 -0
  1050. data/res/build-tools/maven/bin/mvnDebug +10 -176
  1051. data/res/build-tools/maven/bin/mvnDebug.cmd +33 -0
  1052. data/res/build-tools/maven/bin/mvnyjp +9 -181
  1053. data/res/build-tools/maven/boot/plexus-classworlds-2.6.0.jar +0 -0
  1054. data/res/build-tools/maven/conf/logging/simplelogger.properties +8 -1
  1055. data/res/build-tools/maven/conf/settings.xml +1 -1
  1056. data/res/build-tools/maven/conf/toolchains.xml +103 -0
  1057. data/res/build-tools/maven/lib/animal-sniffer-annotations-1.14.jar +0 -0
  1058. data/res/build-tools/maven/lib/animal-sniffer-annotations.license +14 -0
  1059. data/res/build-tools/maven/lib/checker-compat-qual-2.0.0.jar +0 -0
  1060. data/res/build-tools/maven/lib/checker-compat-qual.license +14 -0
  1061. data/res/build-tools/maven/lib/commons-cli-1.4.jar +0 -0
  1062. data/res/build-tools/maven/lib/commons-io-2.5.jar +0 -0
  1063. data/res/build-tools/maven/lib/commons-lang3-3.8.1.jar +0 -0
  1064. data/res/build-tools/maven/lib/error_prone_annotations-2.1.3.jar +0 -0
  1065. data/res/build-tools/maven/lib/guava-25.1-android.jar +0 -0
  1066. data/res/build-tools/maven/lib/guice-4.2.1-no_aop.jar +0 -0
  1067. data/res/build-tools/maven/lib/j2objc-annotations-1.1.jar +0 -0
  1068. data/res/build-tools/maven/lib/jansi-1.17.1.jar +0 -0
  1069. data/res/build-tools/maven/lib/jansi-native/README.txt +7 -0
  1070. data/res/build-tools/maven/lib/jansi-native/freebsd32/libjansi.so +0 -0
  1071. data/res/build-tools/maven/lib/jansi-native/freebsd64/libjansi.so +0 -0
  1072. data/res/build-tools/maven/lib/jansi-native/linux32/libjansi.so +0 -0
  1073. data/res/build-tools/maven/lib/jansi-native/linux64/libjansi.so +0 -0
  1074. data/res/build-tools/maven/lib/jansi-native/osx/libjansi.jnilib +0 -0
  1075. data/res/build-tools/maven/lib/jansi-native/windows32/jansi.dll +0 -0
  1076. data/res/build-tools/maven/lib/jansi-native/windows64/jansi.dll +0 -0
  1077. data/res/build-tools/maven/lib/jcl-over-slf4j-1.7.25.jar +0 -0
  1078. data/res/build-tools/maven/lib/jcl-over-slf4j.license +14 -0
  1079. data/res/build-tools/maven/lib/jsr250-api.license +383 -405
  1080. data/res/build-tools/maven/lib/jsr305-3.0.2.jar +0 -0
  1081. data/res/build-tools/maven/lib/maven-artifact-3.6.1.jar +0 -0
  1082. data/res/build-tools/maven/lib/maven-builder-support-3.6.1.jar +0 -0
  1083. data/res/build-tools/maven/lib/maven-compat-3.6.1.jar +0 -0
  1084. data/res/build-tools/maven/lib/maven-core-3.6.1.jar +0 -0
  1085. data/res/build-tools/maven/lib/maven-embedder-3.6.1.jar +0 -0
  1086. data/res/build-tools/maven/lib/maven-model-3.6.1.jar +0 -0
  1087. data/res/build-tools/maven/lib/maven-model-builder-3.6.1.jar +0 -0
  1088. data/res/build-tools/maven/lib/maven-plugin-api-3.6.1.jar +0 -0
  1089. data/res/build-tools/maven/lib/maven-repository-metadata-3.6.1.jar +0 -0
  1090. data/res/build-tools/maven/lib/maven-resolver-api-1.3.3.jar +0 -0
  1091. data/res/build-tools/maven/lib/maven-resolver-connector-basic-1.3.3.jar +0 -0
  1092. data/res/build-tools/maven/lib/maven-resolver-impl-1.3.3.jar +0 -0
  1093. data/res/build-tools/maven/lib/maven-resolver-provider-3.6.1.jar +0 -0
  1094. data/res/build-tools/maven/lib/maven-resolver-spi-1.3.3.jar +0 -0
  1095. data/res/build-tools/maven/lib/maven-resolver-transport-wagon-1.3.3.jar +0 -0
  1096. data/res/build-tools/maven/lib/maven-resolver-util-1.3.3.jar +0 -0
  1097. data/res/build-tools/maven/lib/maven-settings-3.6.1.jar +0 -0
  1098. data/res/build-tools/maven/lib/maven-settings-builder-3.6.1.jar +0 -0
  1099. data/res/build-tools/maven/lib/maven-shared-utils-3.2.1.jar +0 -0
  1100. data/res/build-tools/maven/lib/maven-slf4j-provider-3.6.1.jar +0 -0
  1101. data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.3.jar +0 -0
  1102. data/res/build-tools/maven/lib/org.eclipse.sisu.inject.license +210 -261
  1103. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar +0 -0
  1104. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus.license +210 -261
  1105. data/res/build-tools/maven/lib/plexus-component-annotations-1.7.1.jar +0 -0
  1106. data/res/build-tools/maven/lib/plexus-interpolation-1.25.jar +0 -0
  1107. data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.4.jar +0 -0
  1108. data/res/build-tools/maven/lib/plexus-utils-3.2.0.jar +0 -0
  1109. data/res/build-tools/maven/lib/slf4j-api-1.7.25.jar +0 -0
  1110. data/res/build-tools/maven/lib/slf4j-api.license +10 -186
  1111. data/res/build-tools/maven/lib/wagon-file-3.3.2.jar +0 -0
  1112. data/res/build-tools/maven/lib/wagon-http-3.3.2-shaded.jar +0 -0
  1113. data/res/build-tools/maven/lib/wagon-provider-api-3.3.2.jar +0 -0
  1114. data/res/generators/rhogen.rb +163 -3
  1115. data/res/generators/templates/api/platform/iphone/generated/stub_impl/MontanaSetup.m +2 -2
  1116. data/res/generators/templates/application/AndroidManifest.erb +17 -6
  1117. data/res/generators/templates/application/Podfile.example +43 -0
  1118. data/res/generators/templates/application/app/Settings/index.erb +52 -55
  1119. data/res/generators/templates/application/app/Settings/javascript_index.html +51 -46
  1120. data/res/generators/templates/application/app/Settings/javascript_login.html +24 -17
  1121. data/res/generators/templates/application/app/Settings/login.erb +5 -12
  1122. data/res/generators/templates/application/app/Settings/reset.erb +10 -14
  1123. data/res/generators/templates/application/app/index.erb +26 -30
  1124. data/res/generators/templates/application/app/javascript_index.html +36 -30
  1125. data/res/generators/templates/application/app/javascript_index.js +13 -4
  1126. data/res/generators/templates/application/app/layout.erb +18 -4
  1127. data/res/generators/templates/application/app/loading.png +0 -0
  1128. data/res/generators/templates/application/build.yml +34 -2
  1129. data/res/generators/templates/application/nodejs_build.yml +1 -1
  1130. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-grid.css +3899 -0
  1131. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-grid.css.map +1 -0
  1132. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-grid.min.css +7 -0
  1133. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-grid.min.css.map +1 -0
  1134. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-reboot.css +327 -0
  1135. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-reboot.css.map +1 -0
  1136. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-reboot.min.css +8 -0
  1137. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap-reboot.min.css.map +1 -0
  1138. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap.css +10224 -0
  1139. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap.css.map +1 -0
  1140. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap.min.css +7 -0
  1141. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/css/bootstrap.min.css.map +1 -0
  1142. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.bundle.js +7134 -0
  1143. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.bundle.js.map +1 -0
  1144. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js +7 -0
  1145. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js.map +1 -0
  1146. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.js +4521 -0
  1147. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.js.map +1 -0
  1148. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.min.js +7 -0
  1149. data/res/generators/templates/application/public/libs/bootstrap-4.4.1-dist/js/bootstrap.min.js.map +1 -0
  1150. data/res/generators/templates/application/public/libs/feather/js/feather.js +2413 -0
  1151. data/res/generators/templates/application/public/libs/feather/js/feather.min.js +13 -0
  1152. data/res/generators/templates/application/public/libs/feather/svg/activity.svg +1 -0
  1153. data/res/generators/templates/application/public/libs/feather/svg/airplay.svg +1 -0
  1154. data/res/generators/templates/application/public/libs/feather/svg/alert-circle.svg +1 -0
  1155. data/res/generators/templates/application/public/libs/feather/svg/alert-octagon.svg +1 -0
  1156. data/res/generators/templates/application/public/libs/feather/svg/alert-triangle.svg +1 -0
  1157. data/res/generators/templates/application/public/libs/feather/svg/align-center.svg +1 -0
  1158. data/res/generators/templates/application/public/libs/feather/svg/align-justify.svg +1 -0
  1159. data/res/generators/templates/application/public/libs/feather/svg/align-left.svg +1 -0
  1160. data/res/generators/templates/application/public/libs/feather/svg/align-right.svg +1 -0
  1161. data/res/generators/templates/application/public/libs/feather/svg/anchor.svg +1 -0
  1162. data/res/generators/templates/application/public/libs/feather/svg/aperture.svg +1 -0
  1163. data/res/generators/templates/application/public/libs/feather/svg/archive.svg +1 -0
  1164. data/res/generators/templates/application/public/libs/feather/svg/arrow-down-circle.svg +1 -0
  1165. data/res/generators/templates/application/public/libs/feather/svg/arrow-down-left.svg +1 -0
  1166. data/res/generators/templates/application/public/libs/feather/svg/arrow-down-right.svg +1 -0
  1167. data/res/generators/templates/application/public/libs/feather/svg/arrow-down.svg +1 -0
  1168. data/res/generators/templates/application/public/libs/feather/svg/arrow-left-circle.svg +1 -0
  1169. data/res/generators/templates/application/public/libs/feather/svg/arrow-left.svg +1 -0
  1170. data/res/generators/templates/application/public/libs/feather/svg/arrow-right-circle.svg +1 -0
  1171. data/res/generators/templates/application/public/libs/feather/svg/arrow-right.svg +1 -0
  1172. data/res/generators/templates/application/public/libs/feather/svg/arrow-up-circle.svg +1 -0
  1173. data/res/generators/templates/application/public/libs/feather/svg/arrow-up-left.svg +1 -0
  1174. data/res/generators/templates/application/public/libs/feather/svg/arrow-up-right.svg +1 -0
  1175. data/res/generators/templates/application/public/libs/feather/svg/arrow-up.svg +1 -0
  1176. data/res/generators/templates/application/public/libs/feather/svg/at-sign.svg +1 -0
  1177. data/res/generators/templates/application/public/libs/feather/svg/award.svg +1 -0
  1178. data/res/generators/templates/application/public/libs/feather/svg/bar-chart-2.svg +1 -0
  1179. data/res/generators/templates/application/public/libs/feather/svg/bar-chart.svg +1 -0
  1180. data/res/generators/templates/application/public/libs/feather/svg/battery-charging.svg +1 -0
  1181. data/res/generators/templates/application/public/libs/feather/svg/battery.svg +1 -0
  1182. data/res/generators/templates/application/public/libs/feather/svg/bell-off.svg +1 -0
  1183. data/res/generators/templates/application/public/libs/feather/svg/bell.svg +1 -0
  1184. data/res/generators/templates/application/public/libs/feather/svg/bluetooth.svg +1 -0
  1185. data/res/generators/templates/application/public/libs/feather/svg/bold.svg +1 -0
  1186. data/res/generators/templates/application/public/libs/feather/svg/book-open.svg +1 -0
  1187. data/res/generators/templates/application/public/libs/feather/svg/book.svg +1 -0
  1188. data/res/generators/templates/application/public/libs/feather/svg/bookmark.svg +1 -0
  1189. data/res/generators/templates/application/public/libs/feather/svg/box.svg +1 -0
  1190. data/res/generators/templates/application/public/libs/feather/svg/briefcase.svg +1 -0
  1191. data/res/generators/templates/application/public/libs/feather/svg/calendar.svg +1 -0
  1192. data/res/generators/templates/application/public/libs/feather/svg/camera-off.svg +1 -0
  1193. data/res/generators/templates/application/public/libs/feather/svg/camera.svg +1 -0
  1194. data/res/generators/templates/application/public/libs/feather/svg/cast.svg +1 -0
  1195. data/res/generators/templates/application/public/libs/feather/svg/check-circle.svg +1 -0
  1196. data/res/generators/templates/application/public/libs/feather/svg/check-square.svg +1 -0
  1197. data/res/generators/templates/application/public/libs/feather/svg/check.svg +1 -0
  1198. data/res/generators/templates/application/public/libs/feather/svg/chevron-down.svg +1 -0
  1199. data/res/generators/templates/application/public/libs/feather/svg/chevron-left.svg +1 -0
  1200. data/res/generators/templates/application/public/libs/feather/svg/chevron-right.svg +1 -0
  1201. data/res/generators/templates/application/public/libs/feather/svg/chevron-up.svg +1 -0
  1202. data/res/generators/templates/application/public/libs/feather/svg/chevrons-down.svg +1 -0
  1203. data/res/generators/templates/application/public/libs/feather/svg/chevrons-left.svg +1 -0
  1204. data/res/generators/templates/application/public/libs/feather/svg/chevrons-right.svg +1 -0
  1205. data/res/generators/templates/application/public/libs/feather/svg/chevrons-up.svg +1 -0
  1206. data/res/generators/templates/application/public/libs/feather/svg/chrome.svg +1 -0
  1207. data/res/generators/templates/application/public/libs/feather/svg/circle.svg +1 -0
  1208. data/res/generators/templates/application/public/libs/feather/svg/clipboard.svg +1 -0
  1209. data/res/generators/templates/application/public/libs/feather/svg/clock.svg +1 -0
  1210. data/res/generators/templates/application/public/libs/feather/svg/cloud-drizzle.svg +1 -0
  1211. data/res/generators/templates/application/public/libs/feather/svg/cloud-lightning.svg +1 -0
  1212. data/res/generators/templates/application/public/libs/feather/svg/cloud-off.svg +1 -0
  1213. data/res/generators/templates/application/public/libs/feather/svg/cloud-rain.svg +1 -0
  1214. data/res/generators/templates/application/public/libs/feather/svg/cloud-snow.svg +1 -0
  1215. data/res/generators/templates/application/public/libs/feather/svg/cloud.svg +1 -0
  1216. data/res/generators/templates/application/public/libs/feather/svg/code.svg +1 -0
  1217. data/res/generators/templates/application/public/libs/feather/svg/codepen.svg +1 -0
  1218. data/res/generators/templates/application/public/libs/feather/svg/codesandbox.svg +1 -0
  1219. data/res/generators/templates/application/public/libs/feather/svg/coffee.svg +1 -0
  1220. data/res/generators/templates/application/public/libs/feather/svg/columns.svg +1 -0
  1221. data/res/generators/templates/application/public/libs/feather/svg/command.svg +1 -0
  1222. data/res/generators/templates/application/public/libs/feather/svg/compass.svg +1 -0
  1223. data/res/generators/templates/application/public/libs/feather/svg/copy.svg +1 -0
  1224. data/res/generators/templates/application/public/libs/feather/svg/corner-down-left.svg +1 -0
  1225. data/res/generators/templates/application/public/libs/feather/svg/corner-down-right.svg +1 -0
  1226. data/res/generators/templates/application/public/libs/feather/svg/corner-left-down.svg +1 -0
  1227. data/res/generators/templates/application/public/libs/feather/svg/corner-left-up.svg +1 -0
  1228. data/res/generators/templates/application/public/libs/feather/svg/corner-right-down.svg +1 -0
  1229. data/res/generators/templates/application/public/libs/feather/svg/corner-right-up.svg +1 -0
  1230. data/res/generators/templates/application/public/libs/feather/svg/corner-up-left.svg +1 -0
  1231. data/res/generators/templates/application/public/libs/feather/svg/corner-up-right.svg +1 -0
  1232. data/res/generators/templates/application/public/libs/feather/svg/cpu.svg +1 -0
  1233. data/res/generators/templates/application/public/libs/feather/svg/credit-card.svg +1 -0
  1234. data/res/generators/templates/application/public/libs/feather/svg/crop.svg +1 -0
  1235. data/res/generators/templates/application/public/libs/feather/svg/crosshair.svg +1 -0
  1236. data/res/generators/templates/application/public/libs/feather/svg/database.svg +1 -0
  1237. data/res/generators/templates/application/public/libs/feather/svg/delete.svg +1 -0
  1238. data/res/generators/templates/application/public/libs/feather/svg/disc.svg +1 -0
  1239. data/res/generators/templates/application/public/libs/feather/svg/dollar-sign.svg +1 -0
  1240. data/res/generators/templates/application/public/libs/feather/svg/download-cloud.svg +1 -0
  1241. data/res/generators/templates/application/public/libs/feather/svg/download.svg +1 -0
  1242. data/res/generators/templates/application/public/libs/feather/svg/droplet.svg +1 -0
  1243. data/res/generators/templates/application/public/libs/feather/svg/edit-2.svg +1 -0
  1244. data/res/generators/templates/application/public/libs/feather/svg/edit-3.svg +1 -0
  1245. data/res/generators/templates/application/public/libs/feather/svg/edit.svg +1 -0
  1246. data/res/generators/templates/application/public/libs/feather/svg/external-link.svg +1 -0
  1247. data/res/generators/templates/application/public/libs/feather/svg/eye-off.svg +1 -0
  1248. data/res/generators/templates/application/public/libs/feather/svg/eye.svg +1 -0
  1249. data/res/generators/templates/application/public/libs/feather/svg/facebook.svg +1 -0
  1250. data/res/generators/templates/application/public/libs/feather/svg/fast-forward.svg +1 -0
  1251. data/res/generators/templates/application/public/libs/feather/svg/feather.svg +1 -0
  1252. data/res/generators/templates/application/public/libs/feather/svg/figma.svg +1 -0
  1253. data/res/generators/templates/application/public/libs/feather/svg/file-minus.svg +1 -0
  1254. data/res/generators/templates/application/public/libs/feather/svg/file-plus.svg +1 -0
  1255. data/res/generators/templates/application/public/libs/feather/svg/file-text.svg +1 -0
  1256. data/res/generators/templates/application/public/libs/feather/svg/file.svg +1 -0
  1257. data/res/generators/templates/application/public/libs/feather/svg/film.svg +1 -0
  1258. data/res/generators/templates/application/public/libs/feather/svg/filter.svg +1 -0
  1259. data/res/generators/templates/application/public/libs/feather/svg/flag.svg +1 -0
  1260. data/res/generators/templates/application/public/libs/feather/svg/folder-minus.svg +1 -0
  1261. data/res/generators/templates/application/public/libs/feather/svg/folder-plus.svg +1 -0
  1262. data/res/generators/templates/application/public/libs/feather/svg/folder.svg +1 -0
  1263. data/res/generators/templates/application/public/libs/feather/svg/framer.svg +1 -0
  1264. data/res/generators/templates/application/public/libs/feather/svg/frown.svg +1 -0
  1265. data/res/generators/templates/application/public/libs/feather/svg/gift.svg +1 -0
  1266. data/res/generators/templates/application/public/libs/feather/svg/git-branch.svg +1 -0
  1267. data/res/generators/templates/application/public/libs/feather/svg/git-commit.svg +1 -0
  1268. data/res/generators/templates/application/public/libs/feather/svg/git-merge.svg +1 -0
  1269. data/res/generators/templates/application/public/libs/feather/svg/git-pull-request.svg +1 -0
  1270. data/res/generators/templates/application/public/libs/feather/svg/github.svg +1 -0
  1271. data/res/generators/templates/application/public/libs/feather/svg/gitlab.svg +1 -0
  1272. data/res/generators/templates/application/public/libs/feather/svg/globe.svg +1 -0
  1273. data/res/generators/templates/application/public/libs/feather/svg/grid.svg +1 -0
  1274. data/res/generators/templates/application/public/libs/feather/svg/hard-drive.svg +1 -0
  1275. data/res/generators/templates/application/public/libs/feather/svg/hash.svg +1 -0
  1276. data/res/generators/templates/application/public/libs/feather/svg/headphones.svg +1 -0
  1277. data/res/generators/templates/application/public/libs/feather/svg/heart.svg +1 -0
  1278. data/res/generators/templates/application/public/libs/feather/svg/help-circle.svg +1 -0
  1279. data/res/generators/templates/application/public/libs/feather/svg/hexagon.svg +1 -0
  1280. data/res/generators/templates/application/public/libs/feather/svg/home.svg +1 -0
  1281. data/res/generators/templates/application/public/libs/feather/svg/image.svg +1 -0
  1282. data/res/generators/templates/application/public/libs/feather/svg/inbox.svg +1 -0
  1283. data/res/generators/templates/application/public/libs/feather/svg/info.svg +1 -0
  1284. data/res/generators/templates/application/public/libs/feather/svg/instagram.svg +1 -0
  1285. data/res/generators/templates/application/public/libs/feather/svg/italic.svg +1 -0
  1286. data/res/generators/templates/application/public/libs/feather/svg/key.svg +1 -0
  1287. data/res/generators/templates/application/public/libs/feather/svg/layers.svg +1 -0
  1288. data/res/generators/templates/application/public/libs/feather/svg/layout.svg +1 -0
  1289. data/res/generators/templates/application/public/libs/feather/svg/life-buoy.svg +1 -0
  1290. data/res/generators/templates/application/public/libs/feather/svg/link-2.svg +1 -0
  1291. data/res/generators/templates/application/public/libs/feather/svg/link.svg +1 -0
  1292. data/res/generators/templates/application/public/libs/feather/svg/linkedin.svg +1 -0
  1293. data/res/generators/templates/application/public/libs/feather/svg/list.svg +1 -0
  1294. data/res/generators/templates/application/public/libs/feather/svg/loader.svg +1 -0
  1295. data/res/generators/templates/application/public/libs/feather/svg/lock.svg +1 -0
  1296. data/res/generators/templates/application/public/libs/feather/svg/log-in.svg +1 -0
  1297. data/res/generators/templates/application/public/libs/feather/svg/log-out.svg +1 -0
  1298. data/res/generators/templates/application/public/libs/feather/svg/mail.svg +1 -0
  1299. data/res/generators/templates/application/public/libs/feather/svg/map-pin.svg +1 -0
  1300. data/res/generators/templates/application/public/libs/feather/svg/map.svg +1 -0
  1301. data/res/generators/templates/application/public/libs/feather/svg/maximize-2.svg +1 -0
  1302. data/res/generators/templates/application/public/libs/feather/svg/maximize.svg +1 -0
  1303. data/res/generators/templates/application/public/libs/feather/svg/meh.svg +1 -0
  1304. data/res/generators/templates/application/public/libs/feather/svg/menu.svg +1 -0
  1305. data/res/generators/templates/application/public/libs/feather/svg/message-circle.svg +1 -0
  1306. data/res/generators/templates/application/public/libs/feather/svg/message-square.svg +1 -0
  1307. data/res/generators/templates/application/public/libs/feather/svg/mic-off.svg +1 -0
  1308. data/res/generators/templates/application/public/libs/feather/svg/mic.svg +1 -0
  1309. data/res/generators/templates/application/public/libs/feather/svg/minimize-2.svg +1 -0
  1310. data/res/generators/templates/application/public/libs/feather/svg/minimize.svg +1 -0
  1311. data/res/generators/templates/application/public/libs/feather/svg/minus-circle.svg +1 -0
  1312. data/res/generators/templates/application/public/libs/feather/svg/minus-square.svg +1 -0
  1313. data/res/generators/templates/application/public/libs/feather/svg/minus.svg +1 -0
  1314. data/res/generators/templates/application/public/libs/feather/svg/monitor.svg +1 -0
  1315. data/res/generators/templates/application/public/libs/feather/svg/moon.svg +1 -0
  1316. data/res/generators/templates/application/public/libs/feather/svg/more-horizontal.svg +1 -0
  1317. data/res/generators/templates/application/public/libs/feather/svg/more-vertical.svg +1 -0
  1318. data/res/generators/templates/application/public/libs/feather/svg/mouse-pointer.svg +1 -0
  1319. data/res/generators/templates/application/public/libs/feather/svg/move.svg +1 -0
  1320. data/res/generators/templates/application/public/libs/feather/svg/music.svg +1 -0
  1321. data/res/generators/templates/application/public/libs/feather/svg/navigation-2.svg +1 -0
  1322. data/res/generators/templates/application/public/libs/feather/svg/navigation.svg +1 -0
  1323. data/res/generators/templates/application/public/libs/feather/svg/octagon.svg +1 -0
  1324. data/res/generators/templates/application/public/libs/feather/svg/package.svg +1 -0
  1325. data/res/generators/templates/application/public/libs/feather/svg/paperclip.svg +1 -0
  1326. data/res/generators/templates/application/public/libs/feather/svg/pause-circle.svg +1 -0
  1327. data/res/generators/templates/application/public/libs/feather/svg/pause.svg +1 -0
  1328. data/res/generators/templates/application/public/libs/feather/svg/pen-tool.svg +1 -0
  1329. data/res/generators/templates/application/public/libs/feather/svg/percent.svg +1 -0
  1330. data/res/generators/templates/application/public/libs/feather/svg/phone-call.svg +1 -0
  1331. data/res/generators/templates/application/public/libs/feather/svg/phone-forwarded.svg +1 -0
  1332. data/res/generators/templates/application/public/libs/feather/svg/phone-incoming.svg +1 -0
  1333. data/res/generators/templates/application/public/libs/feather/svg/phone-missed.svg +1 -0
  1334. data/res/generators/templates/application/public/libs/feather/svg/phone-off.svg +1 -0
  1335. data/res/generators/templates/application/public/libs/feather/svg/phone-outgoing.svg +1 -0
  1336. data/res/generators/templates/application/public/libs/feather/svg/phone.svg +1 -0
  1337. data/res/generators/templates/application/public/libs/feather/svg/pie-chart.svg +1 -0
  1338. data/res/generators/templates/application/public/libs/feather/svg/play-circle.svg +1 -0
  1339. data/res/generators/templates/application/public/libs/feather/svg/play.svg +1 -0
  1340. data/res/generators/templates/application/public/libs/feather/svg/plus-circle.svg +1 -0
  1341. data/res/generators/templates/application/public/libs/feather/svg/plus-square.svg +1 -0
  1342. data/res/generators/templates/application/public/libs/feather/svg/plus.svg +1 -0
  1343. data/res/generators/templates/application/public/libs/feather/svg/pocket.svg +1 -0
  1344. data/res/generators/templates/application/public/libs/feather/svg/power.svg +1 -0
  1345. data/res/generators/templates/application/public/libs/feather/svg/printer.svg +1 -0
  1346. data/res/generators/templates/application/public/libs/feather/svg/radio.svg +1 -0
  1347. data/res/generators/templates/application/public/libs/feather/svg/refresh-ccw.svg +1 -0
  1348. data/res/generators/templates/application/public/libs/feather/svg/refresh-cw.svg +1 -0
  1349. data/res/generators/templates/application/public/libs/feather/svg/repeat.svg +1 -0
  1350. data/res/generators/templates/application/public/libs/feather/svg/rewind.svg +1 -0
  1351. data/res/generators/templates/application/public/libs/feather/svg/rotate-ccw.svg +1 -0
  1352. data/res/generators/templates/application/public/libs/feather/svg/rotate-cw.svg +1 -0
  1353. data/res/generators/templates/application/public/libs/feather/svg/rss.svg +1 -0
  1354. data/res/generators/templates/application/public/libs/feather/svg/save.svg +1 -0
  1355. data/res/generators/templates/application/public/libs/feather/svg/scissors.svg +1 -0
  1356. data/res/generators/templates/application/public/libs/feather/svg/search.svg +1 -0
  1357. data/res/generators/templates/application/public/libs/feather/svg/send.svg +1 -0
  1358. data/res/generators/templates/application/public/libs/feather/svg/server.svg +1 -0
  1359. data/res/generators/templates/application/public/libs/feather/svg/settings.svg +1 -0
  1360. data/res/generators/templates/application/public/libs/feather/svg/share-2.svg +1 -0
  1361. data/res/generators/templates/application/public/libs/feather/svg/share.svg +1 -0
  1362. data/res/generators/templates/application/public/libs/feather/svg/shield-off.svg +1 -0
  1363. data/res/generators/templates/application/public/libs/feather/svg/shield.svg +1 -0
  1364. data/res/generators/templates/application/public/libs/feather/svg/shopping-bag.svg +1 -0
  1365. data/res/generators/templates/application/public/libs/feather/svg/shopping-cart.svg +1 -0
  1366. data/res/generators/templates/application/public/libs/feather/svg/shuffle.svg +1 -0
  1367. data/res/generators/templates/application/public/libs/feather/svg/sidebar.svg +1 -0
  1368. data/res/generators/templates/application/public/libs/feather/svg/skip-back.svg +1 -0
  1369. data/res/generators/templates/application/public/libs/feather/svg/skip-forward.svg +1 -0
  1370. data/res/generators/templates/application/public/libs/feather/svg/slack.svg +1 -0
  1371. data/res/generators/templates/application/public/libs/feather/svg/slash.svg +1 -0
  1372. data/res/generators/templates/application/public/libs/feather/svg/sliders.svg +1 -0
  1373. data/res/generators/templates/application/public/libs/feather/svg/smartphone.svg +1 -0
  1374. data/res/generators/templates/application/public/libs/feather/svg/smile.svg +1 -0
  1375. data/res/generators/templates/application/public/libs/feather/svg/speaker.svg +1 -0
  1376. data/res/generators/templates/application/public/libs/feather/svg/square.svg +1 -0
  1377. data/res/generators/templates/application/public/libs/feather/svg/star.svg +1 -0
  1378. data/res/generators/templates/application/public/libs/feather/svg/stop-circle.svg +1 -0
  1379. data/res/generators/templates/application/public/libs/feather/svg/sun.svg +1 -0
  1380. data/res/generators/templates/application/public/libs/feather/svg/sunrise.svg +1 -0
  1381. data/res/generators/templates/application/public/libs/feather/svg/sunset.svg +1 -0
  1382. data/res/generators/templates/application/public/libs/feather/svg/tablet.svg +1 -0
  1383. data/res/generators/templates/application/public/libs/feather/svg/tag.svg +1 -0
  1384. data/res/generators/templates/application/public/libs/feather/svg/target.svg +1 -0
  1385. data/res/generators/templates/application/public/libs/feather/svg/terminal.svg +1 -0
  1386. data/res/generators/templates/application/public/libs/feather/svg/thermometer.svg +1 -0
  1387. data/res/generators/templates/application/public/libs/feather/svg/thumbs-down.svg +1 -0
  1388. data/res/generators/templates/application/public/libs/feather/svg/thumbs-up.svg +1 -0
  1389. data/res/generators/templates/application/public/libs/feather/svg/toggle-left.svg +1 -0
  1390. data/res/generators/templates/application/public/libs/feather/svg/toggle-right.svg +1 -0
  1391. data/res/generators/templates/application/public/libs/feather/svg/tool.svg +1 -0
  1392. data/res/generators/templates/application/public/libs/feather/svg/trash-2.svg +1 -0
  1393. data/res/generators/templates/application/public/libs/feather/svg/trash.svg +1 -0
  1394. data/res/generators/templates/application/public/libs/feather/svg/trello.svg +1 -0
  1395. data/res/generators/templates/application/public/libs/feather/svg/trending-down.svg +1 -0
  1396. data/res/generators/templates/application/public/libs/feather/svg/trending-up.svg +1 -0
  1397. data/res/generators/templates/application/public/libs/feather/svg/triangle.svg +1 -0
  1398. data/res/generators/templates/application/public/libs/feather/svg/truck.svg +1 -0
  1399. data/res/generators/templates/application/public/libs/feather/svg/tv.svg +1 -0
  1400. data/res/generators/templates/application/public/libs/feather/svg/twitch.svg +1 -0
  1401. data/res/generators/templates/application/public/libs/feather/svg/twitter.svg +1 -0
  1402. data/res/generators/templates/application/public/libs/feather/svg/type.svg +1 -0
  1403. data/res/generators/templates/application/public/libs/feather/svg/umbrella.svg +1 -0
  1404. data/res/generators/templates/application/public/libs/feather/svg/underline.svg +1 -0
  1405. data/res/generators/templates/application/public/libs/feather/svg/unlock.svg +1 -0
  1406. data/res/generators/templates/application/public/libs/feather/svg/upload-cloud.svg +1 -0
  1407. data/res/generators/templates/application/public/libs/feather/svg/upload.svg +1 -0
  1408. data/res/generators/templates/application/public/libs/feather/svg/user-check.svg +1 -0
  1409. data/res/generators/templates/application/public/libs/feather/svg/user-minus.svg +1 -0
  1410. data/res/generators/templates/application/public/libs/feather/svg/user-plus.svg +1 -0
  1411. data/res/generators/templates/application/public/libs/feather/svg/user-x.svg +1 -0
  1412. data/res/generators/templates/application/public/libs/feather/svg/user.svg +1 -0
  1413. data/res/generators/templates/application/public/libs/feather/svg/users.svg +1 -0
  1414. data/res/generators/templates/application/public/libs/feather/svg/video-off.svg +1 -0
  1415. data/res/generators/templates/application/public/libs/feather/svg/video.svg +1 -0
  1416. data/res/generators/templates/application/public/libs/feather/svg/voicemail.svg +1 -0
  1417. data/res/generators/templates/application/public/libs/feather/svg/volume-1.svg +1 -0
  1418. data/res/generators/templates/application/public/libs/feather/svg/volume-2.svg +1 -0
  1419. data/res/generators/templates/application/public/libs/feather/svg/volume-x.svg +1 -0
  1420. data/res/generators/templates/application/public/libs/feather/svg/volume.svg +1 -0
  1421. data/res/generators/templates/application/public/libs/feather/svg/watch.svg +1 -0
  1422. data/res/generators/templates/application/public/libs/feather/svg/wifi-off.svg +1 -0
  1423. data/res/generators/templates/application/public/libs/feather/svg/wifi.svg +1 -0
  1424. data/res/generators/templates/application/public/libs/feather/svg/wind.svg +1 -0
  1425. data/res/generators/templates/application/public/libs/feather/svg/x-circle.svg +1 -0
  1426. data/res/generators/templates/application/public/libs/feather/svg/x-octagon.svg +1 -0
  1427. data/res/generators/templates/application/public/libs/feather/svg/x-square.svg +1 -0
  1428. data/res/generators/templates/application/public/libs/feather/svg/x.svg +1 -0
  1429. data/res/generators/templates/application/public/libs/feather/svg/youtube.svg +1 -0
  1430. data/res/generators/templates/application/public/libs/feather/svg/zap-off.svg +1 -0
  1431. data/res/generators/templates/application/public/libs/feather/svg/zap.svg +1 -0
  1432. data/res/generators/templates/application/public/libs/feather/svg/zoom-in.svg +1 -0
  1433. data/res/generators/templates/application/public/libs/feather/svg/zoom-out.svg +1 -0
  1434. data/res/generators/templates/application/public/libs/jquery-3.5.1/jquery-3.5.1.js +10872 -0
  1435. data/res/generators/templates/application/public/libs/jquery-3.5.1/jquery-3.5.1.min.js +2 -0
  1436. data/res/generators/templates/application/public/libs/jquery-3.5.1/jquery-3.5.1.min.map +1 -0
  1437. data/res/generators/templates/application/public/libs/popper-2.4.0/popper-2.4.0.js +1802 -0
  1438. data/res/generators/templates/application/public/libs/popper-2.4.0/popper-2.4.0.min.js +6 -0
  1439. data/res/generators/templates/application/resources/android/res/drawable/loading.png +0 -0
  1440. data/res/generators/templates/application/resources/android/res/drawable-hdpi/loading.png +0 -0
  1441. data/res/generators/templates/application/resources/android/res/drawable-ldpi/loading.png +0 -0
  1442. data/res/generators/templates/application/resources/android/res/drawable-mdpi/loading.png +0 -0
  1443. data/res/generators/templates/application/resources/android/res/drawable-xhdpi/loading.png +0 -0
  1444. data/res/generators/templates/application/resources/android/res/drawable-xxhdpi/loading.png +0 -0
  1445. data/res/generators/templates/application/resources/android/res/drawable-xxxhdpi/loading.png +0 -0
  1446. data/res/generators/templates/application/resources/android/res/xml/network_security_config.xml +7 -0
  1447. data/res/generators/templates/application/resources/ios/Default-568h@2x.png +0 -0
  1448. data/res/generators/templates/application/resources/ios/Default-667h@2x.png +0 -0
  1449. data/res/generators/templates/application/resources/ios/Default-736h@3x.png +0 -0
  1450. data/res/generators/templates/application/resources/ios/Default-812h@3x.png +0 -0
  1451. data/res/generators/templates/application/resources/ios/Default-896h@2x.png +0 -0
  1452. data/res/generators/templates/application/resources/ios/Default-896h@3x.png +0 -0
  1453. data/res/generators/templates/application/resources/ios/Default-Landscape-736h@3x.png +0 -0
  1454. data/res/generators/templates/application/resources/ios/Default-Landscape-812h@3x.png +0 -0
  1455. data/res/generators/templates/application/resources/ios/Default-Landscape-896h@2x.png +0 -0
  1456. data/res/generators/templates/application/resources/ios/Default-Landscape-896h@3x.png +0 -0
  1457. data/res/generators/templates/application/resources/ios/Default-Landscape.png +0 -0
  1458. data/res/generators/templates/application/resources/ios/Default-Landscape@2x.png +0 -0
  1459. data/res/generators/templates/application/resources/ios/Default-Portrait.png +0 -0
  1460. data/res/generators/templates/application/resources/ios/Default-Portrait@2x.png +0 -0
  1461. data/res/generators/templates/application/resources/ios/Default.png +0 -0
  1462. data/res/generators/templates/application/resources/ios/Default@2x.png +0 -0
  1463. data/res/generators/templates/application/rhoconfig.txt +25 -6
  1464. data/res/generators/templates/application/rhoconfig_rubynode.txt +139 -0
  1465. data/res/generators/templates/application/rubynodejs_build.yml +95 -0
  1466. data/res/generators/templates/extension/extensions/montana/ext/build +5 -0
  1467. data/res/generators/templates/extension/extensions/montana/ext/build.bat +1 -1
  1468. data/res/generators/templates/extension/extensions/montana/ext/platform/android/Rakefile +1 -141
  1469. data/res/generators/templates/extension/extensions/montana/ext/platform/iphone/Montana.xcodeproj/project.pbxproj +4 -4
  1470. data/res/generators/templates/extension/extensions/montana/ext/platform/iphone/Podfile.example +16 -0
  1471. data/res/generators/templates/extension/extensions/montana/ext/platform/iphone/Rakefile +9 -62
  1472. data/res/generators/templates/extension/extensions/montana/ext/platform/qt/Montana.pro +26 -1
  1473. data/res/generators/templates/iphone_project/Bremen8.xcodeproj/project.pbxproj +34 -55
  1474. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-568h@2x.png +0 -0
  1475. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-667h@2x.png +0 -0
  1476. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-736h@3x.png +0 -0
  1477. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-812h@3x.png +0 -0
  1478. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-896h@2x.png +0 -0
  1479. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-896h@3x.png +0 -0
  1480. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape-736h@3x.png +0 -0
  1481. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape-812h@3x.png +0 -0
  1482. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape-896h@2x.png +0 -0
  1483. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape-896h@3x.png +0 -0
  1484. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape.png +0 -0
  1485. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png +0 -0
  1486. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Portrait.png +0 -0
  1487. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png +0 -0
  1488. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default.png +0 -0
  1489. data/res/generators/templates/iphone_project/Media.xcassets/LaunchImage.launchimage/Default@2x.png +0 -0
  1490. data/res/generators/templates/iphone_project/Rhodes/Rhodes.xcodeproj/project.pbxproj +4 -4
  1491. data/res/generators/templates/iphone_project/buildRhoBundle +2 -10
  1492. data/res/generators/templates/iphone_project/root/Entitlements.plist +1 -1
  1493. data/res/generators/templates/iphone_project/root/Info.plist +5 -3
  1494. data/res/generators/templates/iphone_project/root/rhorunner_development.entitlements +1 -1
  1495. data/res/generators/templates/iphone_project/root/rhorunner_production.entitlements +1 -1
  1496. data/res/generators/templates/model/edit.erb +10 -12
  1497. data/res/generators/templates/model/index.erb +27 -29
  1498. data/res/generators/templates/model/javascript_edit.html +18 -17
  1499. data/res/generators/templates/model/javascript_index.html +22 -21
  1500. data/res/generators/templates/model/javascript_index.js +12 -7
  1501. data/res/generators/templates/model/javascript_new.html +20 -16
  1502. data/res/generators/templates/model/javascript_show.html +30 -32
  1503. data/res/generators/templates/model/new.erb +8 -12
  1504. data/res/generators/templates/model/show.erb +22 -28
  1505. data/res/generators/templates/project/android_studio_project/app/CMakeLists.txt.erb +15 -2
  1506. data/res/generators/templates/project/android_studio_project/app/build.gradle.erb +22 -19
  1507. data/res/generators/templates/project/android_studio_project/build.gradle +3 -1
  1508. data/res/generators/templates/spec/app/SpecRunner/controller.rb +1 -1
  1509. data/res/generators/templates/spec/app/mspec.rb +1 -1
  1510. data/res/generators/templates/spec/app/spec_runner.rb +23 -4
  1511. data/res/prebuild_base_app/rhoconfig.txt +11 -8
  1512. data/rhobuild.yml.example +7 -4
  1513. data/rhodes-core.gemspec +1 -2
  1514. data/rhodes.gemspec +20 -27
  1515. data/rhomobile-debug.gemspec +0 -1
  1516. data/version +1 -1
  1517. metadata +766 -192
  1518. data/extensions/emdk3-manager/ext/platform/android/ext_native.files +0 -0
  1519. data/lib/commonAPI/mediacapture/ext/platform/android/adds/res/drawable/camera_btn.xml +0 -14
  1520. data/lib/commonAPI/mediacapture/ext/platform/android/adds/res/layout/camera_land.xml +0 -23
  1521. data/lib/commonAPI/mediacapture/ext/platform/android/adds/res/layout/camera_port.xml +0 -23
  1522. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraActivity.java +0 -156
  1523. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +0 -216
  1524. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraGingerbread.java +0 -122
  1525. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraPreview.java +0 -183
  1526. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraSingletonEclair.java +0 -14
  1527. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraSingletonGingerbread.java +0 -60
  1528. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraObject.java +0 -19
  1529. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraSingletonObject.java +0 -8
  1530. data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMTokenRefresherService.java +0 -27
  1531. data/lib/extensions/fcm-push/ext/iphone/Firebase.h +0 -68
  1532. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h +0 -62
  1533. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +0 -115
  1534. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h +0 -1
  1535. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h +0 -13
  1536. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h +0 -1
  1537. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h +0 -1
  1538. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h +0 -389
  1539. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h +0 -1
  1540. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h +0 -485
  1541. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h +0 -15
  1542. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h +0 -10
  1543. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap +0 -10
  1544. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/FirebaseCore +0 -0
  1545. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h +0 -52
  1546. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FIRApp.h +0 -130
  1547. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h +0 -78
  1548. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h +0 -35
  1549. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FIROptions.h +0 -133
  1550. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h +0 -5
  1551. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCore.framework/Modules/module.modulemap +0 -7
  1552. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics +0 -0
  1553. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +0 -6
  1554. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseInstanceID.framework/FirebaseInstanceID +0 -0
  1555. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h +0 -276
  1556. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h +0 -1
  1557. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap +0 -7
  1558. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseMessaging.framework/FirebaseMessaging +0 -0
  1559. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h +0 -508
  1560. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h +0 -1
  1561. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseMessaging.framework/Modules/module.modulemap +0 -8
  1562. data/lib/extensions/fcm-push/ext/iphone/Frameworks/FirebaseNanoPB.framework/FirebaseNanoPB +0 -0
  1563. data/lib/extensions/fcm-push/ext/iphone/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac +0 -0
  1564. data/lib/extensions/fcm-push/ext/iphone/Frameworks/GoogleToolboxForMac.framework/Modules/module.modulemap +0 -5
  1565. data/lib/extensions/fcm-push/ext/iphone/Frameworks/Protobuf.framework/Modules/module.modulemap +0 -5
  1566. data/lib/extensions/fcm-push/ext/iphone/Frameworks/Protobuf.framework/Protobuf +0 -0
  1567. data/lib/extensions/fcm-push/ext/iphone/Frameworks/nanopb.framework/Modules/module.modulemap +0 -5
  1568. data/lib/extensions/fcm-push/ext/iphone/Frameworks/nanopb.framework/nanopb +0 -0
  1569. data/platform/android/Rhodes/AndroidManifest.xml.erb +0 -79
  1570. data/platform/iphone/Classes/RhoWKWebView.m +0 -196
  1571. data/platform/win32/RhoSimulator/position/qtposition_geoclue.dll +0 -0
  1572. data/platform/win32/build/RhoRuntimeQt5-VS2008.nsi +0 -162
  1573. data/platform/win32/build/RhoRuntimeQt5.5.0.0_VS2012.nsi +0 -178
  1574. data/platform/win32/build/RhoRuntimeQt5.bat +0 -2
  1575. data/platform/win32/build/RhoRuntimeQt5.ico +0 -0
  1576. data/platform/win32/build/RhoRuntimeQt5.nsi +0 -165
  1577. data/res/build-tools/maven/bin/mvn.bat +0 -197
  1578. data/res/build-tools/maven/bin/mvnDebug.bat +0 -200
  1579. data/res/build-tools/maven/boot/plexus-classworlds-2.5.2.jar +0 -0
  1580. data/res/build-tools/maven/lib/aether-api-1.0.0.v20140518.jar +0 -0
  1581. data/res/build-tools/maven/lib/aether-api.license +0 -261
  1582. data/res/build-tools/maven/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
  1583. data/res/build-tools/maven/lib/aether-connector-basic.license +0 -261
  1584. data/res/build-tools/maven/lib/aether-impl-1.0.0.v20140518.jar +0 -0
  1585. data/res/build-tools/maven/lib/aether-impl.license +0 -261
  1586. data/res/build-tools/maven/lib/aether-spi-1.0.0.v20140518.jar +0 -0
  1587. data/res/build-tools/maven/lib/aether-spi.license +0 -261
  1588. data/res/build-tools/maven/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
  1589. data/res/build-tools/maven/lib/aether-transport-wagon.license +0 -261
  1590. data/res/build-tools/maven/lib/aether-util-1.0.0.v20140518.jar +0 -0
  1591. data/res/build-tools/maven/lib/aether-util.license +0 -261
  1592. data/res/build-tools/maven/lib/cdi-api.license +0 -445
  1593. data/res/build-tools/maven/lib/commons-cli-1.2.jar +0 -0
  1594. data/res/build-tools/maven/lib/commons-io-2.2.jar +0 -0
  1595. data/res/build-tools/maven/lib/commons-lang-2.6.jar +0 -0
  1596. data/res/build-tools/maven/lib/guava-18.0.jar +0 -0
  1597. data/res/build-tools/maven/lib/jsoup-1.7.2.jar +0 -0
  1598. data/res/build-tools/maven/lib/jsoup.license +0 -66
  1599. data/res/build-tools/maven/lib/maven-aether-provider-3.2.5.jar +0 -0
  1600. data/res/build-tools/maven/lib/maven-aether-provider.license +0 -202
  1601. data/res/build-tools/maven/lib/maven-artifact-3.2.5.jar +0 -0
  1602. data/res/build-tools/maven/lib/maven-artifact.license +0 -202
  1603. data/res/build-tools/maven/lib/maven-compat-3.2.5.jar +0 -0
  1604. data/res/build-tools/maven/lib/maven-compat.license +0 -202
  1605. data/res/build-tools/maven/lib/maven-core-3.2.5.jar +0 -0
  1606. data/res/build-tools/maven/lib/maven-core.license +0 -202
  1607. data/res/build-tools/maven/lib/maven-embedder-3.2.5.jar +0 -0
  1608. data/res/build-tools/maven/lib/maven-embedder.license +0 -202
  1609. data/res/build-tools/maven/lib/maven-model-3.2.5.jar +0 -0
  1610. data/res/build-tools/maven/lib/maven-model-builder-3.2.5.jar +0 -0
  1611. data/res/build-tools/maven/lib/maven-model-builder.license +0 -202
  1612. data/res/build-tools/maven/lib/maven-model.license +0 -202
  1613. data/res/build-tools/maven/lib/maven-plugin-api-3.2.5.jar +0 -0
  1614. data/res/build-tools/maven/lib/maven-plugin-api.license +0 -202
  1615. data/res/build-tools/maven/lib/maven-repository-metadata-3.2.5.jar +0 -0
  1616. data/res/build-tools/maven/lib/maven-repository-metadata.license +0 -202
  1617. data/res/build-tools/maven/lib/maven-settings-3.2.5.jar +0 -0
  1618. data/res/build-tools/maven/lib/maven-settings-builder-3.2.5.jar +0 -0
  1619. data/res/build-tools/maven/lib/maven-settings-builder.license +0 -202
  1620. data/res/build-tools/maven/lib/maven-settings.license +0 -202
  1621. data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
  1622. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
  1623. data/res/build-tools/maven/lib/plexus-cipher.license +0 -445
  1624. data/res/build-tools/maven/lib/plexus-component-annotations-1.5.5.jar +0 -0
  1625. data/res/build-tools/maven/lib/plexus-interpolation-1.21.jar +0 -0
  1626. data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.3.jar +0 -0
  1627. data/res/build-tools/maven/lib/plexus-sec-dispatcher.license +0 -445
  1628. data/res/build-tools/maven/lib/plexus-utils-3.0.20.jar +0 -0
  1629. data/res/build-tools/maven/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
  1630. data/res/build-tools/maven/lib/slf4j-api-1.7.5.jar +0 -0
  1631. data/res/build-tools/maven/lib/slf4j-simple-1.7.5.jar +0 -0
  1632. data/res/build-tools/maven/lib/slf4j-simple.license +0 -190
  1633. data/res/build-tools/maven/lib/wagon-file-2.8.jar +0 -0
  1634. data/res/build-tools/maven/lib/wagon-file.license +0 -202
  1635. data/res/build-tools/maven/lib/wagon-http-2.8-shaded.jar +0 -0
  1636. data/res/build-tools/maven/lib/wagon-http-shared-2.8.jar +0 -0
  1637. data/res/build-tools/maven/lib/wagon-http-shared.license +0 -202
  1638. data/res/build-tools/maven/lib/wagon-http.license +0 -202
  1639. data/res/build-tools/maven/lib/wagon-provider-api-2.8.jar +0 -0
  1640. data/res/build-tools/maven/lib/wagon-provider-api.license +0 -202
  1641. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.css +0 -587
  1642. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.css.map +0 -1
  1643. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.min.css +0 -6
  1644. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.min.css.map +0 -1
  1645. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.css +0 -6757
  1646. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.css.map +0 -1
  1647. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.min.css +0 -6
  1648. data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.min.css.map +0 -1
  1649. data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.eot +0 -0
  1650. data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.svg +0 -288
  1651. data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.ttf +0 -0
  1652. data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff +0 -0
  1653. data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff2 +0 -0
  1654. data/res/generators/templates/application/public/bootstrap-3.3.7/js/bootstrap.js +0 -2377
  1655. data/res/generators/templates/application/public/bootstrap-3.3.7/js/bootstrap.min.js +0 -7
  1656. data/res/generators/templates/application/public/bootstrap-3.3.7/js/npm.js +0 -13
  1657. data/res/generators/templates/application/public/jquery/jquery-3.1.1.min.js +0 -4
  1658. data/res/generators/templates/application/public/jquery/jquery-3.1.1.min.map +0 -1
  1659. data/res/generators/templates/application/public/jquery/jquery-3.2.1.min.js +0 -4
@@ -0,0 +1,4521 @@
1
+ /*!
2
+ * Bootstrap v4.4.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
8
+ typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
9
+ (global = global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
10
+ }(this, (function (exports, $, Popper) { 'use strict';
11
+
12
+ $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
13
+ Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
14
+
15
+ function _defineProperties(target, props) {
16
+ for (var i = 0; i < props.length; i++) {
17
+ var descriptor = props[i];
18
+ descriptor.enumerable = descriptor.enumerable || false;
19
+ descriptor.configurable = true;
20
+ if ("value" in descriptor) descriptor.writable = true;
21
+ Object.defineProperty(target, descriptor.key, descriptor);
22
+ }
23
+ }
24
+
25
+ function _createClass(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+
31
+ function _defineProperty(obj, key, value) {
32
+ if (key in obj) {
33
+ Object.defineProperty(obj, key, {
34
+ value: value,
35
+ enumerable: true,
36
+ configurable: true,
37
+ writable: true
38
+ });
39
+ } else {
40
+ obj[key] = value;
41
+ }
42
+
43
+ return obj;
44
+ }
45
+
46
+ function ownKeys(object, enumerableOnly) {
47
+ var keys = Object.keys(object);
48
+
49
+ if (Object.getOwnPropertySymbols) {
50
+ var symbols = Object.getOwnPropertySymbols(object);
51
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
52
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
+ });
54
+ keys.push.apply(keys, symbols);
55
+ }
56
+
57
+ return keys;
58
+ }
59
+
60
+ function _objectSpread2(target) {
61
+ for (var i = 1; i < arguments.length; i++) {
62
+ var source = arguments[i] != null ? arguments[i] : {};
63
+
64
+ if (i % 2) {
65
+ ownKeys(Object(source), true).forEach(function (key) {
66
+ _defineProperty(target, key, source[key]);
67
+ });
68
+ } else if (Object.getOwnPropertyDescriptors) {
69
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
+ } else {
71
+ ownKeys(Object(source)).forEach(function (key) {
72
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
+ });
74
+ }
75
+ }
76
+
77
+ return target;
78
+ }
79
+
80
+ function _inheritsLoose(subClass, superClass) {
81
+ subClass.prototype = Object.create(superClass.prototype);
82
+ subClass.prototype.constructor = subClass;
83
+ subClass.__proto__ = superClass;
84
+ }
85
+
86
+ /**
87
+ * --------------------------------------------------------------------------
88
+ * Bootstrap (v4.4.1): util.js
89
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
90
+ * --------------------------------------------------------------------------
91
+ */
92
+ /**
93
+ * ------------------------------------------------------------------------
94
+ * Private TransitionEnd Helpers
95
+ * ------------------------------------------------------------------------
96
+ */
97
+
98
+ var TRANSITION_END = 'transitionend';
99
+ var MAX_UID = 1000000;
100
+ var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
101
+
102
+ function toType(obj) {
103
+ return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
104
+ }
105
+
106
+ function getSpecialTransitionEndEvent() {
107
+ return {
108
+ bindType: TRANSITION_END,
109
+ delegateType: TRANSITION_END,
110
+ handle: function handle(event) {
111
+ if ($(event.target).is(this)) {
112
+ return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
113
+ }
114
+
115
+ return undefined; // eslint-disable-line no-undefined
116
+ }
117
+ };
118
+ }
119
+
120
+ function transitionEndEmulator(duration) {
121
+ var _this = this;
122
+
123
+ var called = false;
124
+ $(this).one(Util.TRANSITION_END, function () {
125
+ called = true;
126
+ });
127
+ setTimeout(function () {
128
+ if (!called) {
129
+ Util.triggerTransitionEnd(_this);
130
+ }
131
+ }, duration);
132
+ return this;
133
+ }
134
+
135
+ function setTransitionEndSupport() {
136
+ $.fn.emulateTransitionEnd = transitionEndEmulator;
137
+ $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
138
+ }
139
+ /**
140
+ * --------------------------------------------------------------------------
141
+ * Public Util Api
142
+ * --------------------------------------------------------------------------
143
+ */
144
+
145
+
146
+ var Util = {
147
+ TRANSITION_END: 'bsTransitionEnd',
148
+ getUID: function getUID(prefix) {
149
+ do {
150
+ // eslint-disable-next-line no-bitwise
151
+ prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
152
+ } while (document.getElementById(prefix));
153
+
154
+ return prefix;
155
+ },
156
+ getSelectorFromElement: function getSelectorFromElement(element) {
157
+ var selector = element.getAttribute('data-target');
158
+
159
+ if (!selector || selector === '#') {
160
+ var hrefAttr = element.getAttribute('href');
161
+ selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
162
+ }
163
+
164
+ try {
165
+ return document.querySelector(selector) ? selector : null;
166
+ } catch (err) {
167
+ return null;
168
+ }
169
+ },
170
+ getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
171
+ if (!element) {
172
+ return 0;
173
+ } // Get transition-duration of the element
174
+
175
+
176
+ var transitionDuration = $(element).css('transition-duration');
177
+ var transitionDelay = $(element).css('transition-delay');
178
+ var floatTransitionDuration = parseFloat(transitionDuration);
179
+ var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
180
+
181
+ if (!floatTransitionDuration && !floatTransitionDelay) {
182
+ return 0;
183
+ } // If multiple durations are defined, take the first
184
+
185
+
186
+ transitionDuration = transitionDuration.split(',')[0];
187
+ transitionDelay = transitionDelay.split(',')[0];
188
+ return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
189
+ },
190
+ reflow: function reflow(element) {
191
+ return element.offsetHeight;
192
+ },
193
+ triggerTransitionEnd: function triggerTransitionEnd(element) {
194
+ $(element).trigger(TRANSITION_END);
195
+ },
196
+ // TODO: Remove in v5
197
+ supportsTransitionEnd: function supportsTransitionEnd() {
198
+ return Boolean(TRANSITION_END);
199
+ },
200
+ isElement: function isElement(obj) {
201
+ return (obj[0] || obj).nodeType;
202
+ },
203
+ typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
204
+ for (var property in configTypes) {
205
+ if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
206
+ var expectedTypes = configTypes[property];
207
+ var value = config[property];
208
+ var valueType = value && Util.isElement(value) ? 'element' : toType(value);
209
+
210
+ if (!new RegExp(expectedTypes).test(valueType)) {
211
+ throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
212
+ }
213
+ }
214
+ }
215
+ },
216
+ findShadowRoot: function findShadowRoot(element) {
217
+ if (!document.documentElement.attachShadow) {
218
+ return null;
219
+ } // Can find the shadow root otherwise it'll return the document
220
+
221
+
222
+ if (typeof element.getRootNode === 'function') {
223
+ var root = element.getRootNode();
224
+ return root instanceof ShadowRoot ? root : null;
225
+ }
226
+
227
+ if (element instanceof ShadowRoot) {
228
+ return element;
229
+ } // when we don't find a shadow root
230
+
231
+
232
+ if (!element.parentNode) {
233
+ return null;
234
+ }
235
+
236
+ return Util.findShadowRoot(element.parentNode);
237
+ },
238
+ jQueryDetection: function jQueryDetection() {
239
+ if (typeof $ === 'undefined') {
240
+ throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
241
+ }
242
+
243
+ var version = $.fn.jquery.split(' ')[0].split('.');
244
+ var minMajor = 1;
245
+ var ltMajor = 2;
246
+ var minMinor = 9;
247
+ var minPatch = 1;
248
+ var maxMajor = 4;
249
+
250
+ if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
251
+ throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
252
+ }
253
+ }
254
+ };
255
+ Util.jQueryDetection();
256
+ setTransitionEndSupport();
257
+
258
+ /**
259
+ * ------------------------------------------------------------------------
260
+ * Constants
261
+ * ------------------------------------------------------------------------
262
+ */
263
+
264
+ var NAME = 'alert';
265
+ var VERSION = '4.4.1';
266
+ var DATA_KEY = 'bs.alert';
267
+ var EVENT_KEY = "." + DATA_KEY;
268
+ var DATA_API_KEY = '.data-api';
269
+ var JQUERY_NO_CONFLICT = $.fn[NAME];
270
+ var Selector = {
271
+ DISMISS: '[data-dismiss="alert"]'
272
+ };
273
+ var Event = {
274
+ CLOSE: "close" + EVENT_KEY,
275
+ CLOSED: "closed" + EVENT_KEY,
276
+ CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
277
+ };
278
+ var ClassName = {
279
+ ALERT: 'alert',
280
+ FADE: 'fade',
281
+ SHOW: 'show'
282
+ };
283
+ /**
284
+ * ------------------------------------------------------------------------
285
+ * Class Definition
286
+ * ------------------------------------------------------------------------
287
+ */
288
+
289
+ var Alert =
290
+ /*#__PURE__*/
291
+ function () {
292
+ function Alert(element) {
293
+ this._element = element;
294
+ } // Getters
295
+
296
+
297
+ var _proto = Alert.prototype;
298
+
299
+ // Public
300
+ _proto.close = function close(element) {
301
+ var rootElement = this._element;
302
+
303
+ if (element) {
304
+ rootElement = this._getRootElement(element);
305
+ }
306
+
307
+ var customEvent = this._triggerCloseEvent(rootElement);
308
+
309
+ if (customEvent.isDefaultPrevented()) {
310
+ return;
311
+ }
312
+
313
+ this._removeElement(rootElement);
314
+ };
315
+
316
+ _proto.dispose = function dispose() {
317
+ $.removeData(this._element, DATA_KEY);
318
+ this._element = null;
319
+ } // Private
320
+ ;
321
+
322
+ _proto._getRootElement = function _getRootElement(element) {
323
+ var selector = Util.getSelectorFromElement(element);
324
+ var parent = false;
325
+
326
+ if (selector) {
327
+ parent = document.querySelector(selector);
328
+ }
329
+
330
+ if (!parent) {
331
+ parent = $(element).closest("." + ClassName.ALERT)[0];
332
+ }
333
+
334
+ return parent;
335
+ };
336
+
337
+ _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
338
+ var closeEvent = $.Event(Event.CLOSE);
339
+ $(element).trigger(closeEvent);
340
+ return closeEvent;
341
+ };
342
+
343
+ _proto._removeElement = function _removeElement(element) {
344
+ var _this = this;
345
+
346
+ $(element).removeClass(ClassName.SHOW);
347
+
348
+ if (!$(element).hasClass(ClassName.FADE)) {
349
+ this._destroyElement(element);
350
+
351
+ return;
352
+ }
353
+
354
+ var transitionDuration = Util.getTransitionDurationFromElement(element);
355
+ $(element).one(Util.TRANSITION_END, function (event) {
356
+ return _this._destroyElement(element, event);
357
+ }).emulateTransitionEnd(transitionDuration);
358
+ };
359
+
360
+ _proto._destroyElement = function _destroyElement(element) {
361
+ $(element).detach().trigger(Event.CLOSED).remove();
362
+ } // Static
363
+ ;
364
+
365
+ Alert._jQueryInterface = function _jQueryInterface(config) {
366
+ return this.each(function () {
367
+ var $element = $(this);
368
+ var data = $element.data(DATA_KEY);
369
+
370
+ if (!data) {
371
+ data = new Alert(this);
372
+ $element.data(DATA_KEY, data);
373
+ }
374
+
375
+ if (config === 'close') {
376
+ data[config](this);
377
+ }
378
+ });
379
+ };
380
+
381
+ Alert._handleDismiss = function _handleDismiss(alertInstance) {
382
+ return function (event) {
383
+ if (event) {
384
+ event.preventDefault();
385
+ }
386
+
387
+ alertInstance.close(this);
388
+ };
389
+ };
390
+
391
+ _createClass(Alert, null, [{
392
+ key: "VERSION",
393
+ get: function get() {
394
+ return VERSION;
395
+ }
396
+ }]);
397
+
398
+ return Alert;
399
+ }();
400
+ /**
401
+ * ------------------------------------------------------------------------
402
+ * Data Api implementation
403
+ * ------------------------------------------------------------------------
404
+ */
405
+
406
+
407
+ $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
408
+ /**
409
+ * ------------------------------------------------------------------------
410
+ * jQuery
411
+ * ------------------------------------------------------------------------
412
+ */
413
+
414
+ $.fn[NAME] = Alert._jQueryInterface;
415
+ $.fn[NAME].Constructor = Alert;
416
+
417
+ $.fn[NAME].noConflict = function () {
418
+ $.fn[NAME] = JQUERY_NO_CONFLICT;
419
+ return Alert._jQueryInterface;
420
+ };
421
+
422
+ /**
423
+ * ------------------------------------------------------------------------
424
+ * Constants
425
+ * ------------------------------------------------------------------------
426
+ */
427
+
428
+ var NAME$1 = 'button';
429
+ var VERSION$1 = '4.4.1';
430
+ var DATA_KEY$1 = 'bs.button';
431
+ var EVENT_KEY$1 = "." + DATA_KEY$1;
432
+ var DATA_API_KEY$1 = '.data-api';
433
+ var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];
434
+ var ClassName$1 = {
435
+ ACTIVE: 'active',
436
+ BUTTON: 'btn',
437
+ FOCUS: 'focus'
438
+ };
439
+ var Selector$1 = {
440
+ DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
441
+ DATA_TOGGLES: '[data-toggle="buttons"]',
442
+ DATA_TOGGLE: '[data-toggle="button"]',
443
+ DATA_TOGGLES_BUTTONS: '[data-toggle="buttons"] .btn',
444
+ INPUT: 'input:not([type="hidden"])',
445
+ ACTIVE: '.active',
446
+ BUTTON: '.btn'
447
+ };
448
+ var Event$1 = {
449
+ CLICK_DATA_API: "click" + EVENT_KEY$1 + DATA_API_KEY$1,
450
+ FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1),
451
+ LOAD_DATA_API: "load" + EVENT_KEY$1 + DATA_API_KEY$1
452
+ };
453
+ /**
454
+ * ------------------------------------------------------------------------
455
+ * Class Definition
456
+ * ------------------------------------------------------------------------
457
+ */
458
+
459
+ var Button =
460
+ /*#__PURE__*/
461
+ function () {
462
+ function Button(element) {
463
+ this._element = element;
464
+ } // Getters
465
+
466
+
467
+ var _proto = Button.prototype;
468
+
469
+ // Public
470
+ _proto.toggle = function toggle() {
471
+ var triggerChangeEvent = true;
472
+ var addAriaPressed = true;
473
+ var rootElement = $(this._element).closest(Selector$1.DATA_TOGGLES)[0];
474
+
475
+ if (rootElement) {
476
+ var input = this._element.querySelector(Selector$1.INPUT);
477
+
478
+ if (input) {
479
+ if (input.type === 'radio') {
480
+ if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
481
+ triggerChangeEvent = false;
482
+ } else {
483
+ var activeElement = rootElement.querySelector(Selector$1.ACTIVE);
484
+
485
+ if (activeElement) {
486
+ $(activeElement).removeClass(ClassName$1.ACTIVE);
487
+ }
488
+ }
489
+ } else if (input.type === 'checkbox') {
490
+ if (this._element.tagName === 'LABEL' && input.checked === this._element.classList.contains(ClassName$1.ACTIVE)) {
491
+ triggerChangeEvent = false;
492
+ }
493
+ } else {
494
+ // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
495
+ triggerChangeEvent = false;
496
+ }
497
+
498
+ if (triggerChangeEvent) {
499
+ input.checked = !this._element.classList.contains(ClassName$1.ACTIVE);
500
+ $(input).trigger('change');
501
+ }
502
+
503
+ input.focus();
504
+ addAriaPressed = false;
505
+ }
506
+ }
507
+
508
+ if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
509
+ if (addAriaPressed) {
510
+ this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName$1.ACTIVE));
511
+ }
512
+
513
+ if (triggerChangeEvent) {
514
+ $(this._element).toggleClass(ClassName$1.ACTIVE);
515
+ }
516
+ }
517
+ };
518
+
519
+ _proto.dispose = function dispose() {
520
+ $.removeData(this._element, DATA_KEY$1);
521
+ this._element = null;
522
+ } // Static
523
+ ;
524
+
525
+ Button._jQueryInterface = function _jQueryInterface(config) {
526
+ return this.each(function () {
527
+ var data = $(this).data(DATA_KEY$1);
528
+
529
+ if (!data) {
530
+ data = new Button(this);
531
+ $(this).data(DATA_KEY$1, data);
532
+ }
533
+
534
+ if (config === 'toggle') {
535
+ data[config]();
536
+ }
537
+ });
538
+ };
539
+
540
+ _createClass(Button, null, [{
541
+ key: "VERSION",
542
+ get: function get() {
543
+ return VERSION$1;
544
+ }
545
+ }]);
546
+
547
+ return Button;
548
+ }();
549
+ /**
550
+ * ------------------------------------------------------------------------
551
+ * Data Api implementation
552
+ * ------------------------------------------------------------------------
553
+ */
554
+
555
+
556
+ $(document).on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function (event) {
557
+ var button = event.target;
558
+
559
+ if (!$(button).hasClass(ClassName$1.BUTTON)) {
560
+ button = $(button).closest(Selector$1.BUTTON)[0];
561
+ }
562
+
563
+ if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
564
+ event.preventDefault(); // work around Firefox bug #1540995
565
+ } else {
566
+ var inputBtn = button.querySelector(Selector$1.INPUT);
567
+
568
+ if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) {
569
+ event.preventDefault(); // work around Firefox bug #1540995
570
+
571
+ return;
572
+ }
573
+
574
+ Button._jQueryInterface.call($(button), 'toggle');
575
+ }
576
+ }).on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function (event) {
577
+ var button = $(event.target).closest(Selector$1.BUTTON)[0];
578
+ $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type));
579
+ });
580
+ $(window).on(Event$1.LOAD_DATA_API, function () {
581
+ // ensure correct active class is set to match the controls' actual values/states
582
+ // find all checkboxes/readio buttons inside data-toggle groups
583
+ var buttons = [].slice.call(document.querySelectorAll(Selector$1.DATA_TOGGLES_BUTTONS));
584
+
585
+ for (var i = 0, len = buttons.length; i < len; i++) {
586
+ var button = buttons[i];
587
+ var input = button.querySelector(Selector$1.INPUT);
588
+
589
+ if (input.checked || input.hasAttribute('checked')) {
590
+ button.classList.add(ClassName$1.ACTIVE);
591
+ } else {
592
+ button.classList.remove(ClassName$1.ACTIVE);
593
+ }
594
+ } // find all button toggles
595
+
596
+
597
+ buttons = [].slice.call(document.querySelectorAll(Selector$1.DATA_TOGGLE));
598
+
599
+ for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
600
+ var _button = buttons[_i];
601
+
602
+ if (_button.getAttribute('aria-pressed') === 'true') {
603
+ _button.classList.add(ClassName$1.ACTIVE);
604
+ } else {
605
+ _button.classList.remove(ClassName$1.ACTIVE);
606
+ }
607
+ }
608
+ });
609
+ /**
610
+ * ------------------------------------------------------------------------
611
+ * jQuery
612
+ * ------------------------------------------------------------------------
613
+ */
614
+
615
+ $.fn[NAME$1] = Button._jQueryInterface;
616
+ $.fn[NAME$1].Constructor = Button;
617
+
618
+ $.fn[NAME$1].noConflict = function () {
619
+ $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
620
+ return Button._jQueryInterface;
621
+ };
622
+
623
+ /**
624
+ * ------------------------------------------------------------------------
625
+ * Constants
626
+ * ------------------------------------------------------------------------
627
+ */
628
+
629
+ var NAME$2 = 'carousel';
630
+ var VERSION$2 = '4.4.1';
631
+ var DATA_KEY$2 = 'bs.carousel';
632
+ var EVENT_KEY$2 = "." + DATA_KEY$2;
633
+ var DATA_API_KEY$2 = '.data-api';
634
+ var JQUERY_NO_CONFLICT$2 = $.fn[NAME$2];
635
+ var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
636
+
637
+ var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
638
+
639
+ var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
640
+
641
+ var SWIPE_THRESHOLD = 40;
642
+ var Default = {
643
+ interval: 5000,
644
+ keyboard: true,
645
+ slide: false,
646
+ pause: 'hover',
647
+ wrap: true,
648
+ touch: true
649
+ };
650
+ var DefaultType = {
651
+ interval: '(number|boolean)',
652
+ keyboard: 'boolean',
653
+ slide: '(boolean|string)',
654
+ pause: '(string|boolean)',
655
+ wrap: 'boolean',
656
+ touch: 'boolean'
657
+ };
658
+ var Direction = {
659
+ NEXT: 'next',
660
+ PREV: 'prev',
661
+ LEFT: 'left',
662
+ RIGHT: 'right'
663
+ };
664
+ var Event$2 = {
665
+ SLIDE: "slide" + EVENT_KEY$2,
666
+ SLID: "slid" + EVENT_KEY$2,
667
+ KEYDOWN: "keydown" + EVENT_KEY$2,
668
+ MOUSEENTER: "mouseenter" + EVENT_KEY$2,
669
+ MOUSELEAVE: "mouseleave" + EVENT_KEY$2,
670
+ TOUCHSTART: "touchstart" + EVENT_KEY$2,
671
+ TOUCHMOVE: "touchmove" + EVENT_KEY$2,
672
+ TOUCHEND: "touchend" + EVENT_KEY$2,
673
+ POINTERDOWN: "pointerdown" + EVENT_KEY$2,
674
+ POINTERUP: "pointerup" + EVENT_KEY$2,
675
+ DRAG_START: "dragstart" + EVENT_KEY$2,
676
+ LOAD_DATA_API: "load" + EVENT_KEY$2 + DATA_API_KEY$2,
677
+ CLICK_DATA_API: "click" + EVENT_KEY$2 + DATA_API_KEY$2
678
+ };
679
+ var ClassName$2 = {
680
+ CAROUSEL: 'carousel',
681
+ ACTIVE: 'active',
682
+ SLIDE: 'slide',
683
+ RIGHT: 'carousel-item-right',
684
+ LEFT: 'carousel-item-left',
685
+ NEXT: 'carousel-item-next',
686
+ PREV: 'carousel-item-prev',
687
+ ITEM: 'carousel-item',
688
+ POINTER_EVENT: 'pointer-event'
689
+ };
690
+ var Selector$2 = {
691
+ ACTIVE: '.active',
692
+ ACTIVE_ITEM: '.active.carousel-item',
693
+ ITEM: '.carousel-item',
694
+ ITEM_IMG: '.carousel-item img',
695
+ NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
696
+ INDICATORS: '.carousel-indicators',
697
+ DATA_SLIDE: '[data-slide], [data-slide-to]',
698
+ DATA_RIDE: '[data-ride="carousel"]'
699
+ };
700
+ var PointerType = {
701
+ TOUCH: 'touch',
702
+ PEN: 'pen'
703
+ };
704
+ /**
705
+ * ------------------------------------------------------------------------
706
+ * Class Definition
707
+ * ------------------------------------------------------------------------
708
+ */
709
+
710
+ var Carousel =
711
+ /*#__PURE__*/
712
+ function () {
713
+ function Carousel(element, config) {
714
+ this._items = null;
715
+ this._interval = null;
716
+ this._activeElement = null;
717
+ this._isPaused = false;
718
+ this._isSliding = false;
719
+ this.touchTimeout = null;
720
+ this.touchStartX = 0;
721
+ this.touchDeltaX = 0;
722
+ this._config = this._getConfig(config);
723
+ this._element = element;
724
+ this._indicatorsElement = this._element.querySelector(Selector$2.INDICATORS);
725
+ this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
726
+ this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);
727
+
728
+ this._addEventListeners();
729
+ } // Getters
730
+
731
+
732
+ var _proto = Carousel.prototype;
733
+
734
+ // Public
735
+ _proto.next = function next() {
736
+ if (!this._isSliding) {
737
+ this._slide(Direction.NEXT);
738
+ }
739
+ };
740
+
741
+ _proto.nextWhenVisible = function nextWhenVisible() {
742
+ // Don't call next when the page isn't visible
743
+ // or the carousel or its parent isn't visible
744
+ if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') {
745
+ this.next();
746
+ }
747
+ };
748
+
749
+ _proto.prev = function prev() {
750
+ if (!this._isSliding) {
751
+ this._slide(Direction.PREV);
752
+ }
753
+ };
754
+
755
+ _proto.pause = function pause(event) {
756
+ if (!event) {
757
+ this._isPaused = true;
758
+ }
759
+
760
+ if (this._element.querySelector(Selector$2.NEXT_PREV)) {
761
+ Util.triggerTransitionEnd(this._element);
762
+ this.cycle(true);
763
+ }
764
+
765
+ clearInterval(this._interval);
766
+ this._interval = null;
767
+ };
768
+
769
+ _proto.cycle = function cycle(event) {
770
+ if (!event) {
771
+ this._isPaused = false;
772
+ }
773
+
774
+ if (this._interval) {
775
+ clearInterval(this._interval);
776
+ this._interval = null;
777
+ }
778
+
779
+ if (this._config.interval && !this._isPaused) {
780
+ this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
781
+ }
782
+ };
783
+
784
+ _proto.to = function to(index) {
785
+ var _this = this;
786
+
787
+ this._activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM);
788
+
789
+ var activeIndex = this._getItemIndex(this._activeElement);
790
+
791
+ if (index > this._items.length - 1 || index < 0) {
792
+ return;
793
+ }
794
+
795
+ if (this._isSliding) {
796
+ $(this._element).one(Event$2.SLID, function () {
797
+ return _this.to(index);
798
+ });
799
+ return;
800
+ }
801
+
802
+ if (activeIndex === index) {
803
+ this.pause();
804
+ this.cycle();
805
+ return;
806
+ }
807
+
808
+ var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;
809
+
810
+ this._slide(direction, this._items[index]);
811
+ };
812
+
813
+ _proto.dispose = function dispose() {
814
+ $(this._element).off(EVENT_KEY$2);
815
+ $.removeData(this._element, DATA_KEY$2);
816
+ this._items = null;
817
+ this._config = null;
818
+ this._element = null;
819
+ this._interval = null;
820
+ this._isPaused = null;
821
+ this._isSliding = null;
822
+ this._activeElement = null;
823
+ this._indicatorsElement = null;
824
+ } // Private
825
+ ;
826
+
827
+ _proto._getConfig = function _getConfig(config) {
828
+ config = _objectSpread2({}, Default, {}, config);
829
+ Util.typeCheckConfig(NAME$2, config, DefaultType);
830
+ return config;
831
+ };
832
+
833
+ _proto._handleSwipe = function _handleSwipe() {
834
+ var absDeltax = Math.abs(this.touchDeltaX);
835
+
836
+ if (absDeltax <= SWIPE_THRESHOLD) {
837
+ return;
838
+ }
839
+
840
+ var direction = absDeltax / this.touchDeltaX;
841
+ this.touchDeltaX = 0; // swipe left
842
+
843
+ if (direction > 0) {
844
+ this.prev();
845
+ } // swipe right
846
+
847
+
848
+ if (direction < 0) {
849
+ this.next();
850
+ }
851
+ };
852
+
853
+ _proto._addEventListeners = function _addEventListeners() {
854
+ var _this2 = this;
855
+
856
+ if (this._config.keyboard) {
857
+ $(this._element).on(Event$2.KEYDOWN, function (event) {
858
+ return _this2._keydown(event);
859
+ });
860
+ }
861
+
862
+ if (this._config.pause === 'hover') {
863
+ $(this._element).on(Event$2.MOUSEENTER, function (event) {
864
+ return _this2.pause(event);
865
+ }).on(Event$2.MOUSELEAVE, function (event) {
866
+ return _this2.cycle(event);
867
+ });
868
+ }
869
+
870
+ if (this._config.touch) {
871
+ this._addTouchEventListeners();
872
+ }
873
+ };
874
+
875
+ _proto._addTouchEventListeners = function _addTouchEventListeners() {
876
+ var _this3 = this;
877
+
878
+ if (!this._touchSupported) {
879
+ return;
880
+ }
881
+
882
+ var start = function start(event) {
883
+ if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
884
+ _this3.touchStartX = event.originalEvent.clientX;
885
+ } else if (!_this3._pointerEvent) {
886
+ _this3.touchStartX = event.originalEvent.touches[0].clientX;
887
+ }
888
+ };
889
+
890
+ var move = function move(event) {
891
+ // ensure swiping with one touch and not pinching
892
+ if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
893
+ _this3.touchDeltaX = 0;
894
+ } else {
895
+ _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
896
+ }
897
+ };
898
+
899
+ var end = function end(event) {
900
+ if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
901
+ _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX;
902
+ }
903
+
904
+ _this3._handleSwipe();
905
+
906
+ if (_this3._config.pause === 'hover') {
907
+ // If it's a touch-enabled device, mouseenter/leave are fired as
908
+ // part of the mouse compatibility events on first tap - the carousel
909
+ // would stop cycling until user tapped out of it;
910
+ // here, we listen for touchend, explicitly pause the carousel
911
+ // (as if it's the second time we tap on it, mouseenter compat event
912
+ // is NOT fired) and after a timeout (to allow for mouse compatibility
913
+ // events to fire) we explicitly restart cycling
914
+ _this3.pause();
915
+
916
+ if (_this3.touchTimeout) {
917
+ clearTimeout(_this3.touchTimeout);
918
+ }
919
+
920
+ _this3.touchTimeout = setTimeout(function (event) {
921
+ return _this3.cycle(event);
922
+ }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
923
+ }
924
+ };
925
+
926
+ $(this._element.querySelectorAll(Selector$2.ITEM_IMG)).on(Event$2.DRAG_START, function (e) {
927
+ return e.preventDefault();
928
+ });
929
+
930
+ if (this._pointerEvent) {
931
+ $(this._element).on(Event$2.POINTERDOWN, function (event) {
932
+ return start(event);
933
+ });
934
+ $(this._element).on(Event$2.POINTERUP, function (event) {
935
+ return end(event);
936
+ });
937
+
938
+ this._element.classList.add(ClassName$2.POINTER_EVENT);
939
+ } else {
940
+ $(this._element).on(Event$2.TOUCHSTART, function (event) {
941
+ return start(event);
942
+ });
943
+ $(this._element).on(Event$2.TOUCHMOVE, function (event) {
944
+ return move(event);
945
+ });
946
+ $(this._element).on(Event$2.TOUCHEND, function (event) {
947
+ return end(event);
948
+ });
949
+ }
950
+ };
951
+
952
+ _proto._keydown = function _keydown(event) {
953
+ if (/input|textarea/i.test(event.target.tagName)) {
954
+ return;
955
+ }
956
+
957
+ switch (event.which) {
958
+ case ARROW_LEFT_KEYCODE:
959
+ event.preventDefault();
960
+ this.prev();
961
+ break;
962
+
963
+ case ARROW_RIGHT_KEYCODE:
964
+ event.preventDefault();
965
+ this.next();
966
+ break;
967
+ }
968
+ };
969
+
970
+ _proto._getItemIndex = function _getItemIndex(element) {
971
+ this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector$2.ITEM)) : [];
972
+ return this._items.indexOf(element);
973
+ };
974
+
975
+ _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
976
+ var isNextDirection = direction === Direction.NEXT;
977
+ var isPrevDirection = direction === Direction.PREV;
978
+
979
+ var activeIndex = this._getItemIndex(activeElement);
980
+
981
+ var lastItemIndex = this._items.length - 1;
982
+ var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
983
+
984
+ if (isGoingToWrap && !this._config.wrap) {
985
+ return activeElement;
986
+ }
987
+
988
+ var delta = direction === Direction.PREV ? -1 : 1;
989
+ var itemIndex = (activeIndex + delta) % this._items.length;
990
+ return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
991
+ };
992
+
993
+ _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
994
+ var targetIndex = this._getItemIndex(relatedTarget);
995
+
996
+ var fromIndex = this._getItemIndex(this._element.querySelector(Selector$2.ACTIVE_ITEM));
997
+
998
+ var slideEvent = $.Event(Event$2.SLIDE, {
999
+ relatedTarget: relatedTarget,
1000
+ direction: eventDirectionName,
1001
+ from: fromIndex,
1002
+ to: targetIndex
1003
+ });
1004
+ $(this._element).trigger(slideEvent);
1005
+ return slideEvent;
1006
+ };
1007
+
1008
+ _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
1009
+ if (this._indicatorsElement) {
1010
+ var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE));
1011
+ $(indicators).removeClass(ClassName$2.ACTIVE);
1012
+
1013
+ var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
1014
+
1015
+ if (nextIndicator) {
1016
+ $(nextIndicator).addClass(ClassName$2.ACTIVE);
1017
+ }
1018
+ }
1019
+ };
1020
+
1021
+ _proto._slide = function _slide(direction, element) {
1022
+ var _this4 = this;
1023
+
1024
+ var activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM);
1025
+
1026
+ var activeElementIndex = this._getItemIndex(activeElement);
1027
+
1028
+ var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
1029
+
1030
+ var nextElementIndex = this._getItemIndex(nextElement);
1031
+
1032
+ var isCycling = Boolean(this._interval);
1033
+ var directionalClassName;
1034
+ var orderClassName;
1035
+ var eventDirectionName;
1036
+
1037
+ if (direction === Direction.NEXT) {
1038
+ directionalClassName = ClassName$2.LEFT;
1039
+ orderClassName = ClassName$2.NEXT;
1040
+ eventDirectionName = Direction.LEFT;
1041
+ } else {
1042
+ directionalClassName = ClassName$2.RIGHT;
1043
+ orderClassName = ClassName$2.PREV;
1044
+ eventDirectionName = Direction.RIGHT;
1045
+ }
1046
+
1047
+ if (nextElement && $(nextElement).hasClass(ClassName$2.ACTIVE)) {
1048
+ this._isSliding = false;
1049
+ return;
1050
+ }
1051
+
1052
+ var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
1053
+
1054
+ if (slideEvent.isDefaultPrevented()) {
1055
+ return;
1056
+ }
1057
+
1058
+ if (!activeElement || !nextElement) {
1059
+ // Some weirdness is happening, so we bail
1060
+ return;
1061
+ }
1062
+
1063
+ this._isSliding = true;
1064
+
1065
+ if (isCycling) {
1066
+ this.pause();
1067
+ }
1068
+
1069
+ this._setActiveIndicatorElement(nextElement);
1070
+
1071
+ var slidEvent = $.Event(Event$2.SLID, {
1072
+ relatedTarget: nextElement,
1073
+ direction: eventDirectionName,
1074
+ from: activeElementIndex,
1075
+ to: nextElementIndex
1076
+ });
1077
+
1078
+ if ($(this._element).hasClass(ClassName$2.SLIDE)) {
1079
+ $(nextElement).addClass(orderClassName);
1080
+ Util.reflow(nextElement);
1081
+ $(activeElement).addClass(directionalClassName);
1082
+ $(nextElement).addClass(directionalClassName);
1083
+ var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
1084
+
1085
+ if (nextElementInterval) {
1086
+ this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
1087
+ this._config.interval = nextElementInterval;
1088
+ } else {
1089
+ this._config.interval = this._config.defaultInterval || this._config.interval;
1090
+ }
1091
+
1092
+ var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
1093
+ $(activeElement).one(Util.TRANSITION_END, function () {
1094
+ $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName$2.ACTIVE);
1095
+ $(activeElement).removeClass(ClassName$2.ACTIVE + " " + orderClassName + " " + directionalClassName);
1096
+ _this4._isSliding = false;
1097
+ setTimeout(function () {
1098
+ return $(_this4._element).trigger(slidEvent);
1099
+ }, 0);
1100
+ }).emulateTransitionEnd(transitionDuration);
1101
+ } else {
1102
+ $(activeElement).removeClass(ClassName$2.ACTIVE);
1103
+ $(nextElement).addClass(ClassName$2.ACTIVE);
1104
+ this._isSliding = false;
1105
+ $(this._element).trigger(slidEvent);
1106
+ }
1107
+
1108
+ if (isCycling) {
1109
+ this.cycle();
1110
+ }
1111
+ } // Static
1112
+ ;
1113
+
1114
+ Carousel._jQueryInterface = function _jQueryInterface(config) {
1115
+ return this.each(function () {
1116
+ var data = $(this).data(DATA_KEY$2);
1117
+
1118
+ var _config = _objectSpread2({}, Default, {}, $(this).data());
1119
+
1120
+ if (typeof config === 'object') {
1121
+ _config = _objectSpread2({}, _config, {}, config);
1122
+ }
1123
+
1124
+ var action = typeof config === 'string' ? config : _config.slide;
1125
+
1126
+ if (!data) {
1127
+ data = new Carousel(this, _config);
1128
+ $(this).data(DATA_KEY$2, data);
1129
+ }
1130
+
1131
+ if (typeof config === 'number') {
1132
+ data.to(config);
1133
+ } else if (typeof action === 'string') {
1134
+ if (typeof data[action] === 'undefined') {
1135
+ throw new TypeError("No method named \"" + action + "\"");
1136
+ }
1137
+
1138
+ data[action]();
1139
+ } else if (_config.interval && _config.ride) {
1140
+ data.pause();
1141
+ data.cycle();
1142
+ }
1143
+ });
1144
+ };
1145
+
1146
+ Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
1147
+ var selector = Util.getSelectorFromElement(this);
1148
+
1149
+ if (!selector) {
1150
+ return;
1151
+ }
1152
+
1153
+ var target = $(selector)[0];
1154
+
1155
+ if (!target || !$(target).hasClass(ClassName$2.CAROUSEL)) {
1156
+ return;
1157
+ }
1158
+
1159
+ var config = _objectSpread2({}, $(target).data(), {}, $(this).data());
1160
+
1161
+ var slideIndex = this.getAttribute('data-slide-to');
1162
+
1163
+ if (slideIndex) {
1164
+ config.interval = false;
1165
+ }
1166
+
1167
+ Carousel._jQueryInterface.call($(target), config);
1168
+
1169
+ if (slideIndex) {
1170
+ $(target).data(DATA_KEY$2).to(slideIndex);
1171
+ }
1172
+
1173
+ event.preventDefault();
1174
+ };
1175
+
1176
+ _createClass(Carousel, null, [{
1177
+ key: "VERSION",
1178
+ get: function get() {
1179
+ return VERSION$2;
1180
+ }
1181
+ }, {
1182
+ key: "Default",
1183
+ get: function get() {
1184
+ return Default;
1185
+ }
1186
+ }]);
1187
+
1188
+ return Carousel;
1189
+ }();
1190
+ /**
1191
+ * ------------------------------------------------------------------------
1192
+ * Data Api implementation
1193
+ * ------------------------------------------------------------------------
1194
+ */
1195
+
1196
+
1197
+ $(document).on(Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);
1198
+ $(window).on(Event$2.LOAD_DATA_API, function () {
1199
+ var carousels = [].slice.call(document.querySelectorAll(Selector$2.DATA_RIDE));
1200
+
1201
+ for (var i = 0, len = carousels.length; i < len; i++) {
1202
+ var $carousel = $(carousels[i]);
1203
+
1204
+ Carousel._jQueryInterface.call($carousel, $carousel.data());
1205
+ }
1206
+ });
1207
+ /**
1208
+ * ------------------------------------------------------------------------
1209
+ * jQuery
1210
+ * ------------------------------------------------------------------------
1211
+ */
1212
+
1213
+ $.fn[NAME$2] = Carousel._jQueryInterface;
1214
+ $.fn[NAME$2].Constructor = Carousel;
1215
+
1216
+ $.fn[NAME$2].noConflict = function () {
1217
+ $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
1218
+ return Carousel._jQueryInterface;
1219
+ };
1220
+
1221
+ /**
1222
+ * ------------------------------------------------------------------------
1223
+ * Constants
1224
+ * ------------------------------------------------------------------------
1225
+ */
1226
+
1227
+ var NAME$3 = 'collapse';
1228
+ var VERSION$3 = '4.4.1';
1229
+ var DATA_KEY$3 = 'bs.collapse';
1230
+ var EVENT_KEY$3 = "." + DATA_KEY$3;
1231
+ var DATA_API_KEY$3 = '.data-api';
1232
+ var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3];
1233
+ var Default$1 = {
1234
+ toggle: true,
1235
+ parent: ''
1236
+ };
1237
+ var DefaultType$1 = {
1238
+ toggle: 'boolean',
1239
+ parent: '(string|element)'
1240
+ };
1241
+ var Event$3 = {
1242
+ SHOW: "show" + EVENT_KEY$3,
1243
+ SHOWN: "shown" + EVENT_KEY$3,
1244
+ HIDE: "hide" + EVENT_KEY$3,
1245
+ HIDDEN: "hidden" + EVENT_KEY$3,
1246
+ CLICK_DATA_API: "click" + EVENT_KEY$3 + DATA_API_KEY$3
1247
+ };
1248
+ var ClassName$3 = {
1249
+ SHOW: 'show',
1250
+ COLLAPSE: 'collapse',
1251
+ COLLAPSING: 'collapsing',
1252
+ COLLAPSED: 'collapsed'
1253
+ };
1254
+ var Dimension = {
1255
+ WIDTH: 'width',
1256
+ HEIGHT: 'height'
1257
+ };
1258
+ var Selector$3 = {
1259
+ ACTIVES: '.show, .collapsing',
1260
+ DATA_TOGGLE: '[data-toggle="collapse"]'
1261
+ };
1262
+ /**
1263
+ * ------------------------------------------------------------------------
1264
+ * Class Definition
1265
+ * ------------------------------------------------------------------------
1266
+ */
1267
+
1268
+ var Collapse =
1269
+ /*#__PURE__*/
1270
+ function () {
1271
+ function Collapse(element, config) {
1272
+ this._isTransitioning = false;
1273
+ this._element = element;
1274
+ this._config = this._getConfig(config);
1275
+ this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
1276
+ var toggleList = [].slice.call(document.querySelectorAll(Selector$3.DATA_TOGGLE));
1277
+
1278
+ for (var i = 0, len = toggleList.length; i < len; i++) {
1279
+ var elem = toggleList[i];
1280
+ var selector = Util.getSelectorFromElement(elem);
1281
+ var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
1282
+ return foundElem === element;
1283
+ });
1284
+
1285
+ if (selector !== null && filterElement.length > 0) {
1286
+ this._selector = selector;
1287
+
1288
+ this._triggerArray.push(elem);
1289
+ }
1290
+ }
1291
+
1292
+ this._parent = this._config.parent ? this._getParent() : null;
1293
+
1294
+ if (!this._config.parent) {
1295
+ this._addAriaAndCollapsedClass(this._element, this._triggerArray);
1296
+ }
1297
+
1298
+ if (this._config.toggle) {
1299
+ this.toggle();
1300
+ }
1301
+ } // Getters
1302
+
1303
+
1304
+ var _proto = Collapse.prototype;
1305
+
1306
+ // Public
1307
+ _proto.toggle = function toggle() {
1308
+ if ($(this._element).hasClass(ClassName$3.SHOW)) {
1309
+ this.hide();
1310
+ } else {
1311
+ this.show();
1312
+ }
1313
+ };
1314
+
1315
+ _proto.show = function show() {
1316
+ var _this = this;
1317
+
1318
+ if (this._isTransitioning || $(this._element).hasClass(ClassName$3.SHOW)) {
1319
+ return;
1320
+ }
1321
+
1322
+ var actives;
1323
+ var activesData;
1324
+
1325
+ if (this._parent) {
1326
+ actives = [].slice.call(this._parent.querySelectorAll(Selector$3.ACTIVES)).filter(function (elem) {
1327
+ if (typeof _this._config.parent === 'string') {
1328
+ return elem.getAttribute('data-parent') === _this._config.parent;
1329
+ }
1330
+
1331
+ return elem.classList.contains(ClassName$3.COLLAPSE);
1332
+ });
1333
+
1334
+ if (actives.length === 0) {
1335
+ actives = null;
1336
+ }
1337
+ }
1338
+
1339
+ if (actives) {
1340
+ activesData = $(actives).not(this._selector).data(DATA_KEY$3);
1341
+
1342
+ if (activesData && activesData._isTransitioning) {
1343
+ return;
1344
+ }
1345
+ }
1346
+
1347
+ var startEvent = $.Event(Event$3.SHOW);
1348
+ $(this._element).trigger(startEvent);
1349
+
1350
+ if (startEvent.isDefaultPrevented()) {
1351
+ return;
1352
+ }
1353
+
1354
+ if (actives) {
1355
+ Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');
1356
+
1357
+ if (!activesData) {
1358
+ $(actives).data(DATA_KEY$3, null);
1359
+ }
1360
+ }
1361
+
1362
+ var dimension = this._getDimension();
1363
+
1364
+ $(this._element).removeClass(ClassName$3.COLLAPSE).addClass(ClassName$3.COLLAPSING);
1365
+ this._element.style[dimension] = 0;
1366
+
1367
+ if (this._triggerArray.length) {
1368
+ $(this._triggerArray).removeClass(ClassName$3.COLLAPSED).attr('aria-expanded', true);
1369
+ }
1370
+
1371
+ this.setTransitioning(true);
1372
+
1373
+ var complete = function complete() {
1374
+ $(_this._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).addClass(ClassName$3.SHOW);
1375
+ _this._element.style[dimension] = '';
1376
+
1377
+ _this.setTransitioning(false);
1378
+
1379
+ $(_this._element).trigger(Event$3.SHOWN);
1380
+ };
1381
+
1382
+ var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
1383
+ var scrollSize = "scroll" + capitalizedDimension;
1384
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1385
+ $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1386
+ this._element.style[dimension] = this._element[scrollSize] + "px";
1387
+ };
1388
+
1389
+ _proto.hide = function hide() {
1390
+ var _this2 = this;
1391
+
1392
+ if (this._isTransitioning || !$(this._element).hasClass(ClassName$3.SHOW)) {
1393
+ return;
1394
+ }
1395
+
1396
+ var startEvent = $.Event(Event$3.HIDE);
1397
+ $(this._element).trigger(startEvent);
1398
+
1399
+ if (startEvent.isDefaultPrevented()) {
1400
+ return;
1401
+ }
1402
+
1403
+ var dimension = this._getDimension();
1404
+
1405
+ this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
1406
+ Util.reflow(this._element);
1407
+ $(this._element).addClass(ClassName$3.COLLAPSING).removeClass(ClassName$3.COLLAPSE).removeClass(ClassName$3.SHOW);
1408
+ var triggerArrayLength = this._triggerArray.length;
1409
+
1410
+ if (triggerArrayLength > 0) {
1411
+ for (var i = 0; i < triggerArrayLength; i++) {
1412
+ var trigger = this._triggerArray[i];
1413
+ var selector = Util.getSelectorFromElement(trigger);
1414
+
1415
+ if (selector !== null) {
1416
+ var $elem = $([].slice.call(document.querySelectorAll(selector)));
1417
+
1418
+ if (!$elem.hasClass(ClassName$3.SHOW)) {
1419
+ $(trigger).addClass(ClassName$3.COLLAPSED).attr('aria-expanded', false);
1420
+ }
1421
+ }
1422
+ }
1423
+ }
1424
+
1425
+ this.setTransitioning(true);
1426
+
1427
+ var complete = function complete() {
1428
+ _this2.setTransitioning(false);
1429
+
1430
+ $(_this2._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).trigger(Event$3.HIDDEN);
1431
+ };
1432
+
1433
+ this._element.style[dimension] = '';
1434
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1435
+ $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1436
+ };
1437
+
1438
+ _proto.setTransitioning = function setTransitioning(isTransitioning) {
1439
+ this._isTransitioning = isTransitioning;
1440
+ };
1441
+
1442
+ _proto.dispose = function dispose() {
1443
+ $.removeData(this._element, DATA_KEY$3);
1444
+ this._config = null;
1445
+ this._parent = null;
1446
+ this._element = null;
1447
+ this._triggerArray = null;
1448
+ this._isTransitioning = null;
1449
+ } // Private
1450
+ ;
1451
+
1452
+ _proto._getConfig = function _getConfig(config) {
1453
+ config = _objectSpread2({}, Default$1, {}, config);
1454
+ config.toggle = Boolean(config.toggle); // Coerce string values
1455
+
1456
+ Util.typeCheckConfig(NAME$3, config, DefaultType$1);
1457
+ return config;
1458
+ };
1459
+
1460
+ _proto._getDimension = function _getDimension() {
1461
+ var hasWidth = $(this._element).hasClass(Dimension.WIDTH);
1462
+ return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
1463
+ };
1464
+
1465
+ _proto._getParent = function _getParent() {
1466
+ var _this3 = this;
1467
+
1468
+ var parent;
1469
+
1470
+ if (Util.isElement(this._config.parent)) {
1471
+ parent = this._config.parent; // It's a jQuery object
1472
+
1473
+ if (typeof this._config.parent.jquery !== 'undefined') {
1474
+ parent = this._config.parent[0];
1475
+ }
1476
+ } else {
1477
+ parent = document.querySelector(this._config.parent);
1478
+ }
1479
+
1480
+ var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
1481
+ var children = [].slice.call(parent.querySelectorAll(selector));
1482
+ $(children).each(function (i, element) {
1483
+ _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
1484
+ });
1485
+ return parent;
1486
+ };
1487
+
1488
+ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
1489
+ var isOpen = $(element).hasClass(ClassName$3.SHOW);
1490
+
1491
+ if (triggerArray.length) {
1492
+ $(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
1493
+ }
1494
+ } // Static
1495
+ ;
1496
+
1497
+ Collapse._getTargetFromElement = function _getTargetFromElement(element) {
1498
+ var selector = Util.getSelectorFromElement(element);
1499
+ return selector ? document.querySelector(selector) : null;
1500
+ };
1501
+
1502
+ Collapse._jQueryInterface = function _jQueryInterface(config) {
1503
+ return this.each(function () {
1504
+ var $this = $(this);
1505
+ var data = $this.data(DATA_KEY$3);
1506
+
1507
+ var _config = _objectSpread2({}, Default$1, {}, $this.data(), {}, typeof config === 'object' && config ? config : {});
1508
+
1509
+ if (!data && _config.toggle && /show|hide/.test(config)) {
1510
+ _config.toggle = false;
1511
+ }
1512
+
1513
+ if (!data) {
1514
+ data = new Collapse(this, _config);
1515
+ $this.data(DATA_KEY$3, data);
1516
+ }
1517
+
1518
+ if (typeof config === 'string') {
1519
+ if (typeof data[config] === 'undefined') {
1520
+ throw new TypeError("No method named \"" + config + "\"");
1521
+ }
1522
+
1523
+ data[config]();
1524
+ }
1525
+ });
1526
+ };
1527
+
1528
+ _createClass(Collapse, null, [{
1529
+ key: "VERSION",
1530
+ get: function get() {
1531
+ return VERSION$3;
1532
+ }
1533
+ }, {
1534
+ key: "Default",
1535
+ get: function get() {
1536
+ return Default$1;
1537
+ }
1538
+ }]);
1539
+
1540
+ return Collapse;
1541
+ }();
1542
+ /**
1543
+ * ------------------------------------------------------------------------
1544
+ * Data Api implementation
1545
+ * ------------------------------------------------------------------------
1546
+ */
1547
+
1548
+
1549
+ $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function (event) {
1550
+ // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
1551
+ if (event.currentTarget.tagName === 'A') {
1552
+ event.preventDefault();
1553
+ }
1554
+
1555
+ var $trigger = $(this);
1556
+ var selector = Util.getSelectorFromElement(this);
1557
+ var selectors = [].slice.call(document.querySelectorAll(selector));
1558
+ $(selectors).each(function () {
1559
+ var $target = $(this);
1560
+ var data = $target.data(DATA_KEY$3);
1561
+ var config = data ? 'toggle' : $trigger.data();
1562
+
1563
+ Collapse._jQueryInterface.call($target, config);
1564
+ });
1565
+ });
1566
+ /**
1567
+ * ------------------------------------------------------------------------
1568
+ * jQuery
1569
+ * ------------------------------------------------------------------------
1570
+ */
1571
+
1572
+ $.fn[NAME$3] = Collapse._jQueryInterface;
1573
+ $.fn[NAME$3].Constructor = Collapse;
1574
+
1575
+ $.fn[NAME$3].noConflict = function () {
1576
+ $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
1577
+ return Collapse._jQueryInterface;
1578
+ };
1579
+
1580
+ /**
1581
+ * ------------------------------------------------------------------------
1582
+ * Constants
1583
+ * ------------------------------------------------------------------------
1584
+ */
1585
+
1586
+ var NAME$4 = 'dropdown';
1587
+ var VERSION$4 = '4.4.1';
1588
+ var DATA_KEY$4 = 'bs.dropdown';
1589
+ var EVENT_KEY$4 = "." + DATA_KEY$4;
1590
+ var DATA_API_KEY$4 = '.data-api';
1591
+ var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4];
1592
+ var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
1593
+
1594
+ var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
1595
+
1596
+ var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
1597
+
1598
+ var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
1599
+
1600
+ var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
1601
+
1602
+ var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
1603
+
1604
+ var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
1605
+ var Event$4 = {
1606
+ HIDE: "hide" + EVENT_KEY$4,
1607
+ HIDDEN: "hidden" + EVENT_KEY$4,
1608
+ SHOW: "show" + EVENT_KEY$4,
1609
+ SHOWN: "shown" + EVENT_KEY$4,
1610
+ CLICK: "click" + EVENT_KEY$4,
1611
+ CLICK_DATA_API: "click" + EVENT_KEY$4 + DATA_API_KEY$4,
1612
+ KEYDOWN_DATA_API: "keydown" + EVENT_KEY$4 + DATA_API_KEY$4,
1613
+ KEYUP_DATA_API: "keyup" + EVENT_KEY$4 + DATA_API_KEY$4
1614
+ };
1615
+ var ClassName$4 = {
1616
+ DISABLED: 'disabled',
1617
+ SHOW: 'show',
1618
+ DROPUP: 'dropup',
1619
+ DROPRIGHT: 'dropright',
1620
+ DROPLEFT: 'dropleft',
1621
+ MENURIGHT: 'dropdown-menu-right',
1622
+ MENULEFT: 'dropdown-menu-left',
1623
+ POSITION_STATIC: 'position-static'
1624
+ };
1625
+ var Selector$4 = {
1626
+ DATA_TOGGLE: '[data-toggle="dropdown"]',
1627
+ FORM_CHILD: '.dropdown form',
1628
+ MENU: '.dropdown-menu',
1629
+ NAVBAR_NAV: '.navbar-nav',
1630
+ VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
1631
+ };
1632
+ var AttachmentMap = {
1633
+ TOP: 'top-start',
1634
+ TOPEND: 'top-end',
1635
+ BOTTOM: 'bottom-start',
1636
+ BOTTOMEND: 'bottom-end',
1637
+ RIGHT: 'right-start',
1638
+ RIGHTEND: 'right-end',
1639
+ LEFT: 'left-start',
1640
+ LEFTEND: 'left-end'
1641
+ };
1642
+ var Default$2 = {
1643
+ offset: 0,
1644
+ flip: true,
1645
+ boundary: 'scrollParent',
1646
+ reference: 'toggle',
1647
+ display: 'dynamic',
1648
+ popperConfig: null
1649
+ };
1650
+ var DefaultType$2 = {
1651
+ offset: '(number|string|function)',
1652
+ flip: 'boolean',
1653
+ boundary: '(string|element)',
1654
+ reference: '(string|element)',
1655
+ display: 'string',
1656
+ popperConfig: '(null|object)'
1657
+ };
1658
+ /**
1659
+ * ------------------------------------------------------------------------
1660
+ * Class Definition
1661
+ * ------------------------------------------------------------------------
1662
+ */
1663
+
1664
+ var Dropdown =
1665
+ /*#__PURE__*/
1666
+ function () {
1667
+ function Dropdown(element, config) {
1668
+ this._element = element;
1669
+ this._popper = null;
1670
+ this._config = this._getConfig(config);
1671
+ this._menu = this._getMenuElement();
1672
+ this._inNavbar = this._detectNavbar();
1673
+
1674
+ this._addEventListeners();
1675
+ } // Getters
1676
+
1677
+
1678
+ var _proto = Dropdown.prototype;
1679
+
1680
+ // Public
1681
+ _proto.toggle = function toggle() {
1682
+ if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED)) {
1683
+ return;
1684
+ }
1685
+
1686
+ var isActive = $(this._menu).hasClass(ClassName$4.SHOW);
1687
+
1688
+ Dropdown._clearMenus();
1689
+
1690
+ if (isActive) {
1691
+ return;
1692
+ }
1693
+
1694
+ this.show(true);
1695
+ };
1696
+
1697
+ _proto.show = function show(usePopper) {
1698
+ if (usePopper === void 0) {
1699
+ usePopper = false;
1700
+ }
1701
+
1702
+ if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || $(this._menu).hasClass(ClassName$4.SHOW)) {
1703
+ return;
1704
+ }
1705
+
1706
+ var relatedTarget = {
1707
+ relatedTarget: this._element
1708
+ };
1709
+ var showEvent = $.Event(Event$4.SHOW, relatedTarget);
1710
+
1711
+ var parent = Dropdown._getParentFromElement(this._element);
1712
+
1713
+ $(parent).trigger(showEvent);
1714
+
1715
+ if (showEvent.isDefaultPrevented()) {
1716
+ return;
1717
+ } // Disable totally Popper.js for Dropdown in Navbar
1718
+
1719
+
1720
+ if (!this._inNavbar && usePopper) {
1721
+ /**
1722
+ * Check for Popper dependency
1723
+ * Popper - https://popper.js.org
1724
+ */
1725
+ if (typeof Popper === 'undefined') {
1726
+ throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)');
1727
+ }
1728
+
1729
+ var referenceElement = this._element;
1730
+
1731
+ if (this._config.reference === 'parent') {
1732
+ referenceElement = parent;
1733
+ } else if (Util.isElement(this._config.reference)) {
1734
+ referenceElement = this._config.reference; // Check if it's jQuery element
1735
+
1736
+ if (typeof this._config.reference.jquery !== 'undefined') {
1737
+ referenceElement = this._config.reference[0];
1738
+ }
1739
+ } // If boundary is not `scrollParent`, then set position to `static`
1740
+ // to allow the menu to "escape" the scroll parent's boundaries
1741
+ // https://github.com/twbs/bootstrap/issues/24251
1742
+
1743
+
1744
+ if (this._config.boundary !== 'scrollParent') {
1745
+ $(parent).addClass(ClassName$4.POSITION_STATIC);
1746
+ }
1747
+
1748
+ this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
1749
+ } // If this is a touch-enabled device we add extra
1750
+ // empty mouseover listeners to the body's immediate children;
1751
+ // only needed because of broken event delegation on iOS
1752
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1753
+
1754
+
1755
+ if ('ontouchstart' in document.documentElement && $(parent).closest(Selector$4.NAVBAR_NAV).length === 0) {
1756
+ $(document.body).children().on('mouseover', null, $.noop);
1757
+ }
1758
+
1759
+ this._element.focus();
1760
+
1761
+ this._element.setAttribute('aria-expanded', true);
1762
+
1763
+ $(this._menu).toggleClass(ClassName$4.SHOW);
1764
+ $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget));
1765
+ };
1766
+
1767
+ _proto.hide = function hide() {
1768
+ if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || !$(this._menu).hasClass(ClassName$4.SHOW)) {
1769
+ return;
1770
+ }
1771
+
1772
+ var relatedTarget = {
1773
+ relatedTarget: this._element
1774
+ };
1775
+ var hideEvent = $.Event(Event$4.HIDE, relatedTarget);
1776
+
1777
+ var parent = Dropdown._getParentFromElement(this._element);
1778
+
1779
+ $(parent).trigger(hideEvent);
1780
+
1781
+ if (hideEvent.isDefaultPrevented()) {
1782
+ return;
1783
+ }
1784
+
1785
+ if (this._popper) {
1786
+ this._popper.destroy();
1787
+ }
1788
+
1789
+ $(this._menu).toggleClass(ClassName$4.SHOW);
1790
+ $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget));
1791
+ };
1792
+
1793
+ _proto.dispose = function dispose() {
1794
+ $.removeData(this._element, DATA_KEY$4);
1795
+ $(this._element).off(EVENT_KEY$4);
1796
+ this._element = null;
1797
+ this._menu = null;
1798
+
1799
+ if (this._popper !== null) {
1800
+ this._popper.destroy();
1801
+
1802
+ this._popper = null;
1803
+ }
1804
+ };
1805
+
1806
+ _proto.update = function update() {
1807
+ this._inNavbar = this._detectNavbar();
1808
+
1809
+ if (this._popper !== null) {
1810
+ this._popper.scheduleUpdate();
1811
+ }
1812
+ } // Private
1813
+ ;
1814
+
1815
+ _proto._addEventListeners = function _addEventListeners() {
1816
+ var _this = this;
1817
+
1818
+ $(this._element).on(Event$4.CLICK, function (event) {
1819
+ event.preventDefault();
1820
+ event.stopPropagation();
1821
+
1822
+ _this.toggle();
1823
+ });
1824
+ };
1825
+
1826
+ _proto._getConfig = function _getConfig(config) {
1827
+ config = _objectSpread2({}, this.constructor.Default, {}, $(this._element).data(), {}, config);
1828
+ Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
1829
+ return config;
1830
+ };
1831
+
1832
+ _proto._getMenuElement = function _getMenuElement() {
1833
+ if (!this._menu) {
1834
+ var parent = Dropdown._getParentFromElement(this._element);
1835
+
1836
+ if (parent) {
1837
+ this._menu = parent.querySelector(Selector$4.MENU);
1838
+ }
1839
+ }
1840
+
1841
+ return this._menu;
1842
+ };
1843
+
1844
+ _proto._getPlacement = function _getPlacement() {
1845
+ var $parentDropdown = $(this._element.parentNode);
1846
+ var placement = AttachmentMap.BOTTOM; // Handle dropup
1847
+
1848
+ if ($parentDropdown.hasClass(ClassName$4.DROPUP)) {
1849
+ placement = AttachmentMap.TOP;
1850
+
1851
+ if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) {
1852
+ placement = AttachmentMap.TOPEND;
1853
+ }
1854
+ } else if ($parentDropdown.hasClass(ClassName$4.DROPRIGHT)) {
1855
+ placement = AttachmentMap.RIGHT;
1856
+ } else if ($parentDropdown.hasClass(ClassName$4.DROPLEFT)) {
1857
+ placement = AttachmentMap.LEFT;
1858
+ } else if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) {
1859
+ placement = AttachmentMap.BOTTOMEND;
1860
+ }
1861
+
1862
+ return placement;
1863
+ };
1864
+
1865
+ _proto._detectNavbar = function _detectNavbar() {
1866
+ return $(this._element).closest('.navbar').length > 0;
1867
+ };
1868
+
1869
+ _proto._getOffset = function _getOffset() {
1870
+ var _this2 = this;
1871
+
1872
+ var offset = {};
1873
+
1874
+ if (typeof this._config.offset === 'function') {
1875
+ offset.fn = function (data) {
1876
+ data.offsets = _objectSpread2({}, data.offsets, {}, _this2._config.offset(data.offsets, _this2._element) || {});
1877
+ return data;
1878
+ };
1879
+ } else {
1880
+ offset.offset = this._config.offset;
1881
+ }
1882
+
1883
+ return offset;
1884
+ };
1885
+
1886
+ _proto._getPopperConfig = function _getPopperConfig() {
1887
+ var popperConfig = {
1888
+ placement: this._getPlacement(),
1889
+ modifiers: {
1890
+ offset: this._getOffset(),
1891
+ flip: {
1892
+ enabled: this._config.flip
1893
+ },
1894
+ preventOverflow: {
1895
+ boundariesElement: this._config.boundary
1896
+ }
1897
+ }
1898
+ }; // Disable Popper.js if we have a static display
1899
+
1900
+ if (this._config.display === 'static') {
1901
+ popperConfig.modifiers.applyStyle = {
1902
+ enabled: false
1903
+ };
1904
+ }
1905
+
1906
+ return _objectSpread2({}, popperConfig, {}, this._config.popperConfig);
1907
+ } // Static
1908
+ ;
1909
+
1910
+ Dropdown._jQueryInterface = function _jQueryInterface(config) {
1911
+ return this.each(function () {
1912
+ var data = $(this).data(DATA_KEY$4);
1913
+
1914
+ var _config = typeof config === 'object' ? config : null;
1915
+
1916
+ if (!data) {
1917
+ data = new Dropdown(this, _config);
1918
+ $(this).data(DATA_KEY$4, data);
1919
+ }
1920
+
1921
+ if (typeof config === 'string') {
1922
+ if (typeof data[config] === 'undefined') {
1923
+ throw new TypeError("No method named \"" + config + "\"");
1924
+ }
1925
+
1926
+ data[config]();
1927
+ }
1928
+ });
1929
+ };
1930
+
1931
+ Dropdown._clearMenus = function _clearMenus(event) {
1932
+ if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
1933
+ return;
1934
+ }
1935
+
1936
+ var toggles = [].slice.call(document.querySelectorAll(Selector$4.DATA_TOGGLE));
1937
+
1938
+ for (var i = 0, len = toggles.length; i < len; i++) {
1939
+ var parent = Dropdown._getParentFromElement(toggles[i]);
1940
+
1941
+ var context = $(toggles[i]).data(DATA_KEY$4);
1942
+ var relatedTarget = {
1943
+ relatedTarget: toggles[i]
1944
+ };
1945
+
1946
+ if (event && event.type === 'click') {
1947
+ relatedTarget.clickEvent = event;
1948
+ }
1949
+
1950
+ if (!context) {
1951
+ continue;
1952
+ }
1953
+
1954
+ var dropdownMenu = context._menu;
1955
+
1956
+ if (!$(parent).hasClass(ClassName$4.SHOW)) {
1957
+ continue;
1958
+ }
1959
+
1960
+ if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {
1961
+ continue;
1962
+ }
1963
+
1964
+ var hideEvent = $.Event(Event$4.HIDE, relatedTarget);
1965
+ $(parent).trigger(hideEvent);
1966
+
1967
+ if (hideEvent.isDefaultPrevented()) {
1968
+ continue;
1969
+ } // If this is a touch-enabled device we remove the extra
1970
+ // empty mouseover listeners we added for iOS support
1971
+
1972
+
1973
+ if ('ontouchstart' in document.documentElement) {
1974
+ $(document.body).children().off('mouseover', null, $.noop);
1975
+ }
1976
+
1977
+ toggles[i].setAttribute('aria-expanded', 'false');
1978
+
1979
+ if (context._popper) {
1980
+ context._popper.destroy();
1981
+ }
1982
+
1983
+ $(dropdownMenu).removeClass(ClassName$4.SHOW);
1984
+ $(parent).removeClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget));
1985
+ }
1986
+ };
1987
+
1988
+ Dropdown._getParentFromElement = function _getParentFromElement(element) {
1989
+ var parent;
1990
+ var selector = Util.getSelectorFromElement(element);
1991
+
1992
+ if (selector) {
1993
+ parent = document.querySelector(selector);
1994
+ }
1995
+
1996
+ return parent || element.parentNode;
1997
+ } // eslint-disable-next-line complexity
1998
+ ;
1999
+
2000
+ Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
2001
+ // If not input/textarea:
2002
+ // - And not a key in REGEXP_KEYDOWN => not a dropdown command
2003
+ // If input/textarea:
2004
+ // - If space key => not a dropdown command
2005
+ // - If key is other than escape
2006
+ // - If key is not up or down => not a dropdown command
2007
+ // - If trigger inside the menu => not a dropdown command
2008
+ if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(Selector$4.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
2009
+ return;
2010
+ }
2011
+
2012
+ event.preventDefault();
2013
+ event.stopPropagation();
2014
+
2015
+ if (this.disabled || $(this).hasClass(ClassName$4.DISABLED)) {
2016
+ return;
2017
+ }
2018
+
2019
+ var parent = Dropdown._getParentFromElement(this);
2020
+
2021
+ var isActive = $(parent).hasClass(ClassName$4.SHOW);
2022
+
2023
+ if (!isActive && event.which === ESCAPE_KEYCODE) {
2024
+ return;
2025
+ }
2026
+
2027
+ if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
2028
+ if (event.which === ESCAPE_KEYCODE) {
2029
+ var toggle = parent.querySelector(Selector$4.DATA_TOGGLE);
2030
+ $(toggle).trigger('focus');
2031
+ }
2032
+
2033
+ $(this).trigger('click');
2034
+ return;
2035
+ }
2036
+
2037
+ var items = [].slice.call(parent.querySelectorAll(Selector$4.VISIBLE_ITEMS)).filter(function (item) {
2038
+ return $(item).is(':visible');
2039
+ });
2040
+
2041
+ if (items.length === 0) {
2042
+ return;
2043
+ }
2044
+
2045
+ var index = items.indexOf(event.target);
2046
+
2047
+ if (event.which === ARROW_UP_KEYCODE && index > 0) {
2048
+ // Up
2049
+ index--;
2050
+ }
2051
+
2052
+ if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
2053
+ // Down
2054
+ index++;
2055
+ }
2056
+
2057
+ if (index < 0) {
2058
+ index = 0;
2059
+ }
2060
+
2061
+ items[index].focus();
2062
+ };
2063
+
2064
+ _createClass(Dropdown, null, [{
2065
+ key: "VERSION",
2066
+ get: function get() {
2067
+ return VERSION$4;
2068
+ }
2069
+ }, {
2070
+ key: "Default",
2071
+ get: function get() {
2072
+ return Default$2;
2073
+ }
2074
+ }, {
2075
+ key: "DefaultType",
2076
+ get: function get() {
2077
+ return DefaultType$2;
2078
+ }
2079
+ }]);
2080
+
2081
+ return Dropdown;
2082
+ }();
2083
+ /**
2084
+ * ------------------------------------------------------------------------
2085
+ * Data Api implementation
2086
+ * ------------------------------------------------------------------------
2087
+ */
2088
+
2089
+
2090
+ $(document).on(Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event$4.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler).on(Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, Dropdown._clearMenus).on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {
2091
+ event.preventDefault();
2092
+ event.stopPropagation();
2093
+
2094
+ Dropdown._jQueryInterface.call($(this), 'toggle');
2095
+ }).on(Event$4.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) {
2096
+ e.stopPropagation();
2097
+ });
2098
+ /**
2099
+ * ------------------------------------------------------------------------
2100
+ * jQuery
2101
+ * ------------------------------------------------------------------------
2102
+ */
2103
+
2104
+ $.fn[NAME$4] = Dropdown._jQueryInterface;
2105
+ $.fn[NAME$4].Constructor = Dropdown;
2106
+
2107
+ $.fn[NAME$4].noConflict = function () {
2108
+ $.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
2109
+ return Dropdown._jQueryInterface;
2110
+ };
2111
+
2112
+ /**
2113
+ * ------------------------------------------------------------------------
2114
+ * Constants
2115
+ * ------------------------------------------------------------------------
2116
+ */
2117
+
2118
+ var NAME$5 = 'modal';
2119
+ var VERSION$5 = '4.4.1';
2120
+ var DATA_KEY$5 = 'bs.modal';
2121
+ var EVENT_KEY$5 = "." + DATA_KEY$5;
2122
+ var DATA_API_KEY$5 = '.data-api';
2123
+ var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5];
2124
+ var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
2125
+
2126
+ var Default$3 = {
2127
+ backdrop: true,
2128
+ keyboard: true,
2129
+ focus: true,
2130
+ show: true
2131
+ };
2132
+ var DefaultType$3 = {
2133
+ backdrop: '(boolean|string)',
2134
+ keyboard: 'boolean',
2135
+ focus: 'boolean',
2136
+ show: 'boolean'
2137
+ };
2138
+ var Event$5 = {
2139
+ HIDE: "hide" + EVENT_KEY$5,
2140
+ HIDE_PREVENTED: "hidePrevented" + EVENT_KEY$5,
2141
+ HIDDEN: "hidden" + EVENT_KEY$5,
2142
+ SHOW: "show" + EVENT_KEY$5,
2143
+ SHOWN: "shown" + EVENT_KEY$5,
2144
+ FOCUSIN: "focusin" + EVENT_KEY$5,
2145
+ RESIZE: "resize" + EVENT_KEY$5,
2146
+ CLICK_DISMISS: "click.dismiss" + EVENT_KEY$5,
2147
+ KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY$5,
2148
+ MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY$5,
2149
+ MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY$5,
2150
+ CLICK_DATA_API: "click" + EVENT_KEY$5 + DATA_API_KEY$5
2151
+ };
2152
+ var ClassName$5 = {
2153
+ SCROLLABLE: 'modal-dialog-scrollable',
2154
+ SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
2155
+ BACKDROP: 'modal-backdrop',
2156
+ OPEN: 'modal-open',
2157
+ FADE: 'fade',
2158
+ SHOW: 'show',
2159
+ STATIC: 'modal-static'
2160
+ };
2161
+ var Selector$5 = {
2162
+ DIALOG: '.modal-dialog',
2163
+ MODAL_BODY: '.modal-body',
2164
+ DATA_TOGGLE: '[data-toggle="modal"]',
2165
+ DATA_DISMISS: '[data-dismiss="modal"]',
2166
+ FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
2167
+ STICKY_CONTENT: '.sticky-top'
2168
+ };
2169
+ /**
2170
+ * ------------------------------------------------------------------------
2171
+ * Class Definition
2172
+ * ------------------------------------------------------------------------
2173
+ */
2174
+
2175
+ var Modal =
2176
+ /*#__PURE__*/
2177
+ function () {
2178
+ function Modal(element, config) {
2179
+ this._config = this._getConfig(config);
2180
+ this._element = element;
2181
+ this._dialog = element.querySelector(Selector$5.DIALOG);
2182
+ this._backdrop = null;
2183
+ this._isShown = false;
2184
+ this._isBodyOverflowing = false;
2185
+ this._ignoreBackdropClick = false;
2186
+ this._isTransitioning = false;
2187
+ this._scrollbarWidth = 0;
2188
+ } // Getters
2189
+
2190
+
2191
+ var _proto = Modal.prototype;
2192
+
2193
+ // Public
2194
+ _proto.toggle = function toggle(relatedTarget) {
2195
+ return this._isShown ? this.hide() : this.show(relatedTarget);
2196
+ };
2197
+
2198
+ _proto.show = function show(relatedTarget) {
2199
+ var _this = this;
2200
+
2201
+ if (this._isShown || this._isTransitioning) {
2202
+ return;
2203
+ }
2204
+
2205
+ if ($(this._element).hasClass(ClassName$5.FADE)) {
2206
+ this._isTransitioning = true;
2207
+ }
2208
+
2209
+ var showEvent = $.Event(Event$5.SHOW, {
2210
+ relatedTarget: relatedTarget
2211
+ });
2212
+ $(this._element).trigger(showEvent);
2213
+
2214
+ if (this._isShown || showEvent.isDefaultPrevented()) {
2215
+ return;
2216
+ }
2217
+
2218
+ this._isShown = true;
2219
+
2220
+ this._checkScrollbar();
2221
+
2222
+ this._setScrollbar();
2223
+
2224
+ this._adjustDialog();
2225
+
2226
+ this._setEscapeEvent();
2227
+
2228
+ this._setResizeEvent();
2229
+
2230
+ $(this._element).on(Event$5.CLICK_DISMISS, Selector$5.DATA_DISMISS, function (event) {
2231
+ return _this.hide(event);
2232
+ });
2233
+ $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () {
2234
+ $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) {
2235
+ if ($(event.target).is(_this._element)) {
2236
+ _this._ignoreBackdropClick = true;
2237
+ }
2238
+ });
2239
+ });
2240
+
2241
+ this._showBackdrop(function () {
2242
+ return _this._showElement(relatedTarget);
2243
+ });
2244
+ };
2245
+
2246
+ _proto.hide = function hide(event) {
2247
+ var _this2 = this;
2248
+
2249
+ if (event) {
2250
+ event.preventDefault();
2251
+ }
2252
+
2253
+ if (!this._isShown || this._isTransitioning) {
2254
+ return;
2255
+ }
2256
+
2257
+ var hideEvent = $.Event(Event$5.HIDE);
2258
+ $(this._element).trigger(hideEvent);
2259
+
2260
+ if (!this._isShown || hideEvent.isDefaultPrevented()) {
2261
+ return;
2262
+ }
2263
+
2264
+ this._isShown = false;
2265
+ var transition = $(this._element).hasClass(ClassName$5.FADE);
2266
+
2267
+ if (transition) {
2268
+ this._isTransitioning = true;
2269
+ }
2270
+
2271
+ this._setEscapeEvent();
2272
+
2273
+ this._setResizeEvent();
2274
+
2275
+ $(document).off(Event$5.FOCUSIN);
2276
+ $(this._element).removeClass(ClassName$5.SHOW);
2277
+ $(this._element).off(Event$5.CLICK_DISMISS);
2278
+ $(this._dialog).off(Event$5.MOUSEDOWN_DISMISS);
2279
+
2280
+ if (transition) {
2281
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
2282
+ $(this._element).one(Util.TRANSITION_END, function (event) {
2283
+ return _this2._hideModal(event);
2284
+ }).emulateTransitionEnd(transitionDuration);
2285
+ } else {
2286
+ this._hideModal();
2287
+ }
2288
+ };
2289
+
2290
+ _proto.dispose = function dispose() {
2291
+ [window, this._element, this._dialog].forEach(function (htmlElement) {
2292
+ return $(htmlElement).off(EVENT_KEY$5);
2293
+ });
2294
+ /**
2295
+ * `document` has 2 events `Event.FOCUSIN` and `Event.CLICK_DATA_API`
2296
+ * Do not move `document` in `htmlElements` array
2297
+ * It will remove `Event.CLICK_DATA_API` event that should remain
2298
+ */
2299
+
2300
+ $(document).off(Event$5.FOCUSIN);
2301
+ $.removeData(this._element, DATA_KEY$5);
2302
+ this._config = null;
2303
+ this._element = null;
2304
+ this._dialog = null;
2305
+ this._backdrop = null;
2306
+ this._isShown = null;
2307
+ this._isBodyOverflowing = null;
2308
+ this._ignoreBackdropClick = null;
2309
+ this._isTransitioning = null;
2310
+ this._scrollbarWidth = null;
2311
+ };
2312
+
2313
+ _proto.handleUpdate = function handleUpdate() {
2314
+ this._adjustDialog();
2315
+ } // Private
2316
+ ;
2317
+
2318
+ _proto._getConfig = function _getConfig(config) {
2319
+ config = _objectSpread2({}, Default$3, {}, config);
2320
+ Util.typeCheckConfig(NAME$5, config, DefaultType$3);
2321
+ return config;
2322
+ };
2323
+
2324
+ _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
2325
+ var _this3 = this;
2326
+
2327
+ if (this._config.backdrop === 'static') {
2328
+ var hideEventPrevented = $.Event(Event$5.HIDE_PREVENTED);
2329
+ $(this._element).trigger(hideEventPrevented);
2330
+
2331
+ if (hideEventPrevented.defaultPrevented) {
2332
+ return;
2333
+ }
2334
+
2335
+ this._element.classList.add(ClassName$5.STATIC);
2336
+
2337
+ var modalTransitionDuration = Util.getTransitionDurationFromElement(this._element);
2338
+ $(this._element).one(Util.TRANSITION_END, function () {
2339
+ _this3._element.classList.remove(ClassName$5.STATIC);
2340
+ }).emulateTransitionEnd(modalTransitionDuration);
2341
+
2342
+ this._element.focus();
2343
+ } else {
2344
+ this.hide();
2345
+ }
2346
+ };
2347
+
2348
+ _proto._showElement = function _showElement(relatedTarget) {
2349
+ var _this4 = this;
2350
+
2351
+ var transition = $(this._element).hasClass(ClassName$5.FADE);
2352
+ var modalBody = this._dialog ? this._dialog.querySelector(Selector$5.MODAL_BODY) : null;
2353
+
2354
+ if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
2355
+ // Don't move modal's DOM position
2356
+ document.body.appendChild(this._element);
2357
+ }
2358
+
2359
+ this._element.style.display = 'block';
2360
+
2361
+ this._element.removeAttribute('aria-hidden');
2362
+
2363
+ this._element.setAttribute('aria-modal', true);
2364
+
2365
+ if ($(this._dialog).hasClass(ClassName$5.SCROLLABLE) && modalBody) {
2366
+ modalBody.scrollTop = 0;
2367
+ } else {
2368
+ this._element.scrollTop = 0;
2369
+ }
2370
+
2371
+ if (transition) {
2372
+ Util.reflow(this._element);
2373
+ }
2374
+
2375
+ $(this._element).addClass(ClassName$5.SHOW);
2376
+
2377
+ if (this._config.focus) {
2378
+ this._enforceFocus();
2379
+ }
2380
+
2381
+ var shownEvent = $.Event(Event$5.SHOWN, {
2382
+ relatedTarget: relatedTarget
2383
+ });
2384
+
2385
+ var transitionComplete = function transitionComplete() {
2386
+ if (_this4._config.focus) {
2387
+ _this4._element.focus();
2388
+ }
2389
+
2390
+ _this4._isTransitioning = false;
2391
+ $(_this4._element).trigger(shownEvent);
2392
+ };
2393
+
2394
+ if (transition) {
2395
+ var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
2396
+ $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
2397
+ } else {
2398
+ transitionComplete();
2399
+ }
2400
+ };
2401
+
2402
+ _proto._enforceFocus = function _enforceFocus() {
2403
+ var _this5 = this;
2404
+
2405
+ $(document).off(Event$5.FOCUSIN) // Guard against infinite focus loop
2406
+ .on(Event$5.FOCUSIN, function (event) {
2407
+ if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
2408
+ _this5._element.focus();
2409
+ }
2410
+ });
2411
+ };
2412
+
2413
+ _proto._setEscapeEvent = function _setEscapeEvent() {
2414
+ var _this6 = this;
2415
+
2416
+ if (this._isShown && this._config.keyboard) {
2417
+ $(this._element).on(Event$5.KEYDOWN_DISMISS, function (event) {
2418
+ if (event.which === ESCAPE_KEYCODE$1) {
2419
+ _this6._triggerBackdropTransition();
2420
+ }
2421
+ });
2422
+ } else if (!this._isShown) {
2423
+ $(this._element).off(Event$5.KEYDOWN_DISMISS);
2424
+ }
2425
+ };
2426
+
2427
+ _proto._setResizeEvent = function _setResizeEvent() {
2428
+ var _this7 = this;
2429
+
2430
+ if (this._isShown) {
2431
+ $(window).on(Event$5.RESIZE, function (event) {
2432
+ return _this7.handleUpdate(event);
2433
+ });
2434
+ } else {
2435
+ $(window).off(Event$5.RESIZE);
2436
+ }
2437
+ };
2438
+
2439
+ _proto._hideModal = function _hideModal() {
2440
+ var _this8 = this;
2441
+
2442
+ this._element.style.display = 'none';
2443
+
2444
+ this._element.setAttribute('aria-hidden', true);
2445
+
2446
+ this._element.removeAttribute('aria-modal');
2447
+
2448
+ this._isTransitioning = false;
2449
+
2450
+ this._showBackdrop(function () {
2451
+ $(document.body).removeClass(ClassName$5.OPEN);
2452
+
2453
+ _this8._resetAdjustments();
2454
+
2455
+ _this8._resetScrollbar();
2456
+
2457
+ $(_this8._element).trigger(Event$5.HIDDEN);
2458
+ });
2459
+ };
2460
+
2461
+ _proto._removeBackdrop = function _removeBackdrop() {
2462
+ if (this._backdrop) {
2463
+ $(this._backdrop).remove();
2464
+ this._backdrop = null;
2465
+ }
2466
+ };
2467
+
2468
+ _proto._showBackdrop = function _showBackdrop(callback) {
2469
+ var _this9 = this;
2470
+
2471
+ var animate = $(this._element).hasClass(ClassName$5.FADE) ? ClassName$5.FADE : '';
2472
+
2473
+ if (this._isShown && this._config.backdrop) {
2474
+ this._backdrop = document.createElement('div');
2475
+ this._backdrop.className = ClassName$5.BACKDROP;
2476
+
2477
+ if (animate) {
2478
+ this._backdrop.classList.add(animate);
2479
+ }
2480
+
2481
+ $(this._backdrop).appendTo(document.body);
2482
+ $(this._element).on(Event$5.CLICK_DISMISS, function (event) {
2483
+ if (_this9._ignoreBackdropClick) {
2484
+ _this9._ignoreBackdropClick = false;
2485
+ return;
2486
+ }
2487
+
2488
+ if (event.target !== event.currentTarget) {
2489
+ return;
2490
+ }
2491
+
2492
+ _this9._triggerBackdropTransition();
2493
+ });
2494
+
2495
+ if (animate) {
2496
+ Util.reflow(this._backdrop);
2497
+ }
2498
+
2499
+ $(this._backdrop).addClass(ClassName$5.SHOW);
2500
+
2501
+ if (!callback) {
2502
+ return;
2503
+ }
2504
+
2505
+ if (!animate) {
2506
+ callback();
2507
+ return;
2508
+ }
2509
+
2510
+ var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2511
+ $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
2512
+ } else if (!this._isShown && this._backdrop) {
2513
+ $(this._backdrop).removeClass(ClassName$5.SHOW);
2514
+
2515
+ var callbackRemove = function callbackRemove() {
2516
+ _this9._removeBackdrop();
2517
+
2518
+ if (callback) {
2519
+ callback();
2520
+ }
2521
+ };
2522
+
2523
+ if ($(this._element).hasClass(ClassName$5.FADE)) {
2524
+ var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2525
+
2526
+ $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
2527
+ } else {
2528
+ callbackRemove();
2529
+ }
2530
+ } else if (callback) {
2531
+ callback();
2532
+ }
2533
+ } // ----------------------------------------------------------------------
2534
+ // the following methods are used to handle overflowing modals
2535
+ // todo (fat): these should probably be refactored out of modal.js
2536
+ // ----------------------------------------------------------------------
2537
+ ;
2538
+
2539
+ _proto._adjustDialog = function _adjustDialog() {
2540
+ var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2541
+
2542
+ if (!this._isBodyOverflowing && isModalOverflowing) {
2543
+ this._element.style.paddingLeft = this._scrollbarWidth + "px";
2544
+ }
2545
+
2546
+ if (this._isBodyOverflowing && !isModalOverflowing) {
2547
+ this._element.style.paddingRight = this._scrollbarWidth + "px";
2548
+ }
2549
+ };
2550
+
2551
+ _proto._resetAdjustments = function _resetAdjustments() {
2552
+ this._element.style.paddingLeft = '';
2553
+ this._element.style.paddingRight = '';
2554
+ };
2555
+
2556
+ _proto._checkScrollbar = function _checkScrollbar() {
2557
+ var rect = document.body.getBoundingClientRect();
2558
+ this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
2559
+ this._scrollbarWidth = this._getScrollbarWidth();
2560
+ };
2561
+
2562
+ _proto._setScrollbar = function _setScrollbar() {
2563
+ var _this10 = this;
2564
+
2565
+ if (this._isBodyOverflowing) {
2566
+ // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
2567
+ // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
2568
+ var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT));
2569
+ var stickyContent = [].slice.call(document.querySelectorAll(Selector$5.STICKY_CONTENT)); // Adjust fixed content padding
2570
+
2571
+ $(fixedContent).each(function (index, element) {
2572
+ var actualPadding = element.style.paddingRight;
2573
+ var calculatedPadding = $(element).css('padding-right');
2574
+ $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
2575
+ }); // Adjust sticky content margin
2576
+
2577
+ $(stickyContent).each(function (index, element) {
2578
+ var actualMargin = element.style.marginRight;
2579
+ var calculatedMargin = $(element).css('margin-right');
2580
+ $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
2581
+ }); // Adjust body padding
2582
+
2583
+ var actualPadding = document.body.style.paddingRight;
2584
+ var calculatedPadding = $(document.body).css('padding-right');
2585
+ $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
2586
+ }
2587
+
2588
+ $(document.body).addClass(ClassName$5.OPEN);
2589
+ };
2590
+
2591
+ _proto._resetScrollbar = function _resetScrollbar() {
2592
+ // Restore fixed content padding
2593
+ var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT));
2594
+ $(fixedContent).each(function (index, element) {
2595
+ var padding = $(element).data('padding-right');
2596
+ $(element).removeData('padding-right');
2597
+ element.style.paddingRight = padding ? padding : '';
2598
+ }); // Restore sticky content
2599
+
2600
+ var elements = [].slice.call(document.querySelectorAll("" + Selector$5.STICKY_CONTENT));
2601
+ $(elements).each(function (index, element) {
2602
+ var margin = $(element).data('margin-right');
2603
+
2604
+ if (typeof margin !== 'undefined') {
2605
+ $(element).css('margin-right', margin).removeData('margin-right');
2606
+ }
2607
+ }); // Restore body padding
2608
+
2609
+ var padding = $(document.body).data('padding-right');
2610
+ $(document.body).removeData('padding-right');
2611
+ document.body.style.paddingRight = padding ? padding : '';
2612
+ };
2613
+
2614
+ _proto._getScrollbarWidth = function _getScrollbarWidth() {
2615
+ // thx d.walsh
2616
+ var scrollDiv = document.createElement('div');
2617
+ scrollDiv.className = ClassName$5.SCROLLBAR_MEASURER;
2618
+ document.body.appendChild(scrollDiv);
2619
+ var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
2620
+ document.body.removeChild(scrollDiv);
2621
+ return scrollbarWidth;
2622
+ } // Static
2623
+ ;
2624
+
2625
+ Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
2626
+ return this.each(function () {
2627
+ var data = $(this).data(DATA_KEY$5);
2628
+
2629
+ var _config = _objectSpread2({}, Default$3, {}, $(this).data(), {}, typeof config === 'object' && config ? config : {});
2630
+
2631
+ if (!data) {
2632
+ data = new Modal(this, _config);
2633
+ $(this).data(DATA_KEY$5, data);
2634
+ }
2635
+
2636
+ if (typeof config === 'string') {
2637
+ if (typeof data[config] === 'undefined') {
2638
+ throw new TypeError("No method named \"" + config + "\"");
2639
+ }
2640
+
2641
+ data[config](relatedTarget);
2642
+ } else if (_config.show) {
2643
+ data.show(relatedTarget);
2644
+ }
2645
+ });
2646
+ };
2647
+
2648
+ _createClass(Modal, null, [{
2649
+ key: "VERSION",
2650
+ get: function get() {
2651
+ return VERSION$5;
2652
+ }
2653
+ }, {
2654
+ key: "Default",
2655
+ get: function get() {
2656
+ return Default$3;
2657
+ }
2658
+ }]);
2659
+
2660
+ return Modal;
2661
+ }();
2662
+ /**
2663
+ * ------------------------------------------------------------------------
2664
+ * Data Api implementation
2665
+ * ------------------------------------------------------------------------
2666
+ */
2667
+
2668
+
2669
+ $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
2670
+ var _this11 = this;
2671
+
2672
+ var target;
2673
+ var selector = Util.getSelectorFromElement(this);
2674
+
2675
+ if (selector) {
2676
+ target = document.querySelector(selector);
2677
+ }
2678
+
2679
+ var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread2({}, $(target).data(), {}, $(this).data());
2680
+
2681
+ if (this.tagName === 'A' || this.tagName === 'AREA') {
2682
+ event.preventDefault();
2683
+ }
2684
+
2685
+ var $target = $(target).one(Event$5.SHOW, function (showEvent) {
2686
+ if (showEvent.isDefaultPrevented()) {
2687
+ // Only register focus restorer if modal will actually get shown
2688
+ return;
2689
+ }
2690
+
2691
+ $target.one(Event$5.HIDDEN, function () {
2692
+ if ($(_this11).is(':visible')) {
2693
+ _this11.focus();
2694
+ }
2695
+ });
2696
+ });
2697
+
2698
+ Modal._jQueryInterface.call($(target), config, this);
2699
+ });
2700
+ /**
2701
+ * ------------------------------------------------------------------------
2702
+ * jQuery
2703
+ * ------------------------------------------------------------------------
2704
+ */
2705
+
2706
+ $.fn[NAME$5] = Modal._jQueryInterface;
2707
+ $.fn[NAME$5].Constructor = Modal;
2708
+
2709
+ $.fn[NAME$5].noConflict = function () {
2710
+ $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
2711
+ return Modal._jQueryInterface;
2712
+ };
2713
+
2714
+ /**
2715
+ * --------------------------------------------------------------------------
2716
+ * Bootstrap (v4.4.1): tools/sanitizer.js
2717
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2718
+ * --------------------------------------------------------------------------
2719
+ */
2720
+ var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
2721
+ var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2722
+ var DefaultWhitelist = {
2723
+ // Global attributes allowed on any supplied element below.
2724
+ '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
2725
+ a: ['target', 'href', 'title', 'rel'],
2726
+ area: [],
2727
+ b: [],
2728
+ br: [],
2729
+ col: [],
2730
+ code: [],
2731
+ div: [],
2732
+ em: [],
2733
+ hr: [],
2734
+ h1: [],
2735
+ h2: [],
2736
+ h3: [],
2737
+ h4: [],
2738
+ h5: [],
2739
+ h6: [],
2740
+ i: [],
2741
+ img: ['src', 'alt', 'title', 'width', 'height'],
2742
+ li: [],
2743
+ ol: [],
2744
+ p: [],
2745
+ pre: [],
2746
+ s: [],
2747
+ small: [],
2748
+ span: [],
2749
+ sub: [],
2750
+ sup: [],
2751
+ strong: [],
2752
+ u: [],
2753
+ ul: []
2754
+ };
2755
+ /**
2756
+ * A pattern that recognizes a commonly useful subset of URLs that are safe.
2757
+ *
2758
+ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
2759
+ */
2760
+
2761
+ var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;
2762
+ /**
2763
+ * A pattern that matches safe data URLs. Only matches image, video and audio types.
2764
+ *
2765
+ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
2766
+ */
2767
+
2768
+ var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
2769
+
2770
+ function allowedAttribute(attr, allowedAttributeList) {
2771
+ var attrName = attr.nodeName.toLowerCase();
2772
+
2773
+ if (allowedAttributeList.indexOf(attrName) !== -1) {
2774
+ if (uriAttrs.indexOf(attrName) !== -1) {
2775
+ return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
2776
+ }
2777
+
2778
+ return true;
2779
+ }
2780
+
2781
+ var regExp = allowedAttributeList.filter(function (attrRegex) {
2782
+ return attrRegex instanceof RegExp;
2783
+ }); // Check if a regular expression validates the attribute.
2784
+
2785
+ for (var i = 0, l = regExp.length; i < l; i++) {
2786
+ if (attrName.match(regExp[i])) {
2787
+ return true;
2788
+ }
2789
+ }
2790
+
2791
+ return false;
2792
+ }
2793
+
2794
+ function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
2795
+ if (unsafeHtml.length === 0) {
2796
+ return unsafeHtml;
2797
+ }
2798
+
2799
+ if (sanitizeFn && typeof sanitizeFn === 'function') {
2800
+ return sanitizeFn(unsafeHtml);
2801
+ }
2802
+
2803
+ var domParser = new window.DOMParser();
2804
+ var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
2805
+ var whitelistKeys = Object.keys(whiteList);
2806
+ var elements = [].slice.call(createdDocument.body.querySelectorAll('*'));
2807
+
2808
+ var _loop = function _loop(i, len) {
2809
+ var el = elements[i];
2810
+ var elName = el.nodeName.toLowerCase();
2811
+
2812
+ if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) {
2813
+ el.parentNode.removeChild(el);
2814
+ return "continue";
2815
+ }
2816
+
2817
+ var attributeList = [].slice.call(el.attributes);
2818
+ var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
2819
+ attributeList.forEach(function (attr) {
2820
+ if (!allowedAttribute(attr, whitelistedAttributes)) {
2821
+ el.removeAttribute(attr.nodeName);
2822
+ }
2823
+ });
2824
+ };
2825
+
2826
+ for (var i = 0, len = elements.length; i < len; i++) {
2827
+ var _ret = _loop(i);
2828
+
2829
+ if (_ret === "continue") continue;
2830
+ }
2831
+
2832
+ return createdDocument.body.innerHTML;
2833
+ }
2834
+
2835
+ /**
2836
+ * ------------------------------------------------------------------------
2837
+ * Constants
2838
+ * ------------------------------------------------------------------------
2839
+ */
2840
+
2841
+ var NAME$6 = 'tooltip';
2842
+ var VERSION$6 = '4.4.1';
2843
+ var DATA_KEY$6 = 'bs.tooltip';
2844
+ var EVENT_KEY$6 = "." + DATA_KEY$6;
2845
+ var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
2846
+ var CLASS_PREFIX = 'bs-tooltip';
2847
+ var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
2848
+ var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
2849
+ var DefaultType$4 = {
2850
+ animation: 'boolean',
2851
+ template: 'string',
2852
+ title: '(string|element|function)',
2853
+ trigger: 'string',
2854
+ delay: '(number|object)',
2855
+ html: 'boolean',
2856
+ selector: '(string|boolean)',
2857
+ placement: '(string|function)',
2858
+ offset: '(number|string|function)',
2859
+ container: '(string|element|boolean)',
2860
+ fallbackPlacement: '(string|array)',
2861
+ boundary: '(string|element)',
2862
+ sanitize: 'boolean',
2863
+ sanitizeFn: '(null|function)',
2864
+ whiteList: 'object',
2865
+ popperConfig: '(null|object)'
2866
+ };
2867
+ var AttachmentMap$1 = {
2868
+ AUTO: 'auto',
2869
+ TOP: 'top',
2870
+ RIGHT: 'right',
2871
+ BOTTOM: 'bottom',
2872
+ LEFT: 'left'
2873
+ };
2874
+ var Default$4 = {
2875
+ animation: true,
2876
+ template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
2877
+ trigger: 'hover focus',
2878
+ title: '',
2879
+ delay: 0,
2880
+ html: false,
2881
+ selector: false,
2882
+ placement: 'top',
2883
+ offset: 0,
2884
+ container: false,
2885
+ fallbackPlacement: 'flip',
2886
+ boundary: 'scrollParent',
2887
+ sanitize: true,
2888
+ sanitizeFn: null,
2889
+ whiteList: DefaultWhitelist,
2890
+ popperConfig: null
2891
+ };
2892
+ var HoverState = {
2893
+ SHOW: 'show',
2894
+ OUT: 'out'
2895
+ };
2896
+ var Event$6 = {
2897
+ HIDE: "hide" + EVENT_KEY$6,
2898
+ HIDDEN: "hidden" + EVENT_KEY$6,
2899
+ SHOW: "show" + EVENT_KEY$6,
2900
+ SHOWN: "shown" + EVENT_KEY$6,
2901
+ INSERTED: "inserted" + EVENT_KEY$6,
2902
+ CLICK: "click" + EVENT_KEY$6,
2903
+ FOCUSIN: "focusin" + EVENT_KEY$6,
2904
+ FOCUSOUT: "focusout" + EVENT_KEY$6,
2905
+ MOUSEENTER: "mouseenter" + EVENT_KEY$6,
2906
+ MOUSELEAVE: "mouseleave" + EVENT_KEY$6
2907
+ };
2908
+ var ClassName$6 = {
2909
+ FADE: 'fade',
2910
+ SHOW: 'show'
2911
+ };
2912
+ var Selector$6 = {
2913
+ TOOLTIP: '.tooltip',
2914
+ TOOLTIP_INNER: '.tooltip-inner',
2915
+ ARROW: '.arrow'
2916
+ };
2917
+ var Trigger = {
2918
+ HOVER: 'hover',
2919
+ FOCUS: 'focus',
2920
+ CLICK: 'click',
2921
+ MANUAL: 'manual'
2922
+ };
2923
+ /**
2924
+ * ------------------------------------------------------------------------
2925
+ * Class Definition
2926
+ * ------------------------------------------------------------------------
2927
+ */
2928
+
2929
+ var Tooltip =
2930
+ /*#__PURE__*/
2931
+ function () {
2932
+ function Tooltip(element, config) {
2933
+ if (typeof Popper === 'undefined') {
2934
+ throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
2935
+ } // private
2936
+
2937
+
2938
+ this._isEnabled = true;
2939
+ this._timeout = 0;
2940
+ this._hoverState = '';
2941
+ this._activeTrigger = {};
2942
+ this._popper = null; // Protected
2943
+
2944
+ this.element = element;
2945
+ this.config = this._getConfig(config);
2946
+ this.tip = null;
2947
+
2948
+ this._setListeners();
2949
+ } // Getters
2950
+
2951
+
2952
+ var _proto = Tooltip.prototype;
2953
+
2954
+ // Public
2955
+ _proto.enable = function enable() {
2956
+ this._isEnabled = true;
2957
+ };
2958
+
2959
+ _proto.disable = function disable() {
2960
+ this._isEnabled = false;
2961
+ };
2962
+
2963
+ _proto.toggleEnabled = function toggleEnabled() {
2964
+ this._isEnabled = !this._isEnabled;
2965
+ };
2966
+
2967
+ _proto.toggle = function toggle(event) {
2968
+ if (!this._isEnabled) {
2969
+ return;
2970
+ }
2971
+
2972
+ if (event) {
2973
+ var dataKey = this.constructor.DATA_KEY;
2974
+ var context = $(event.currentTarget).data(dataKey);
2975
+
2976
+ if (!context) {
2977
+ context = new this.constructor(event.currentTarget, this._getDelegateConfig());
2978
+ $(event.currentTarget).data(dataKey, context);
2979
+ }
2980
+
2981
+ context._activeTrigger.click = !context._activeTrigger.click;
2982
+
2983
+ if (context._isWithActiveTrigger()) {
2984
+ context._enter(null, context);
2985
+ } else {
2986
+ context._leave(null, context);
2987
+ }
2988
+ } else {
2989
+ if ($(this.getTipElement()).hasClass(ClassName$6.SHOW)) {
2990
+ this._leave(null, this);
2991
+
2992
+ return;
2993
+ }
2994
+
2995
+ this._enter(null, this);
2996
+ }
2997
+ };
2998
+
2999
+ _proto.dispose = function dispose() {
3000
+ clearTimeout(this._timeout);
3001
+ $.removeData(this.element, this.constructor.DATA_KEY);
3002
+ $(this.element).off(this.constructor.EVENT_KEY);
3003
+ $(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
3004
+
3005
+ if (this.tip) {
3006
+ $(this.tip).remove();
3007
+ }
3008
+
3009
+ this._isEnabled = null;
3010
+ this._timeout = null;
3011
+ this._hoverState = null;
3012
+ this._activeTrigger = null;
3013
+
3014
+ if (this._popper) {
3015
+ this._popper.destroy();
3016
+ }
3017
+
3018
+ this._popper = null;
3019
+ this.element = null;
3020
+ this.config = null;
3021
+ this.tip = null;
3022
+ };
3023
+
3024
+ _proto.show = function show() {
3025
+ var _this = this;
3026
+
3027
+ if ($(this.element).css('display') === 'none') {
3028
+ throw new Error('Please use show on visible elements');
3029
+ }
3030
+
3031
+ var showEvent = $.Event(this.constructor.Event.SHOW);
3032
+
3033
+ if (this.isWithContent() && this._isEnabled) {
3034
+ $(this.element).trigger(showEvent);
3035
+ var shadowRoot = Util.findShadowRoot(this.element);
3036
+ var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
3037
+
3038
+ if (showEvent.isDefaultPrevented() || !isInTheDom) {
3039
+ return;
3040
+ }
3041
+
3042
+ var tip = this.getTipElement();
3043
+ var tipId = Util.getUID(this.constructor.NAME);
3044
+ tip.setAttribute('id', tipId);
3045
+ this.element.setAttribute('aria-describedby', tipId);
3046
+ this.setContent();
3047
+
3048
+ if (this.config.animation) {
3049
+ $(tip).addClass(ClassName$6.FADE);
3050
+ }
3051
+
3052
+ var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
3053
+
3054
+ var attachment = this._getAttachment(placement);
3055
+
3056
+ this.addAttachmentClass(attachment);
3057
+
3058
+ var container = this._getContainer();
3059
+
3060
+ $(tip).data(this.constructor.DATA_KEY, this);
3061
+
3062
+ if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {
3063
+ $(tip).appendTo(container);
3064
+ }
3065
+
3066
+ $(this.element).trigger(this.constructor.Event.INSERTED);
3067
+ this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
3068
+ $(tip).addClass(ClassName$6.SHOW); // If this is a touch-enabled device we add extra
3069
+ // empty mouseover listeners to the body's immediate children;
3070
+ // only needed because of broken event delegation on iOS
3071
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
3072
+
3073
+ if ('ontouchstart' in document.documentElement) {
3074
+ $(document.body).children().on('mouseover', null, $.noop);
3075
+ }
3076
+
3077
+ var complete = function complete() {
3078
+ if (_this.config.animation) {
3079
+ _this._fixTransition();
3080
+ }
3081
+
3082
+ var prevHoverState = _this._hoverState;
3083
+ _this._hoverState = null;
3084
+ $(_this.element).trigger(_this.constructor.Event.SHOWN);
3085
+
3086
+ if (prevHoverState === HoverState.OUT) {
3087
+ _this._leave(null, _this);
3088
+ }
3089
+ };
3090
+
3091
+ if ($(this.tip).hasClass(ClassName$6.FADE)) {
3092
+ var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
3093
+ $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3094
+ } else {
3095
+ complete();
3096
+ }
3097
+ }
3098
+ };
3099
+
3100
+ _proto.hide = function hide(callback) {
3101
+ var _this2 = this;
3102
+
3103
+ var tip = this.getTipElement();
3104
+ var hideEvent = $.Event(this.constructor.Event.HIDE);
3105
+
3106
+ var complete = function complete() {
3107
+ if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
3108
+ tip.parentNode.removeChild(tip);
3109
+ }
3110
+
3111
+ _this2._cleanTipClass();
3112
+
3113
+ _this2.element.removeAttribute('aria-describedby');
3114
+
3115
+ $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
3116
+
3117
+ if (_this2._popper !== null) {
3118
+ _this2._popper.destroy();
3119
+ }
3120
+
3121
+ if (callback) {
3122
+ callback();
3123
+ }
3124
+ };
3125
+
3126
+ $(this.element).trigger(hideEvent);
3127
+
3128
+ if (hideEvent.isDefaultPrevented()) {
3129
+ return;
3130
+ }
3131
+
3132
+ $(tip).removeClass(ClassName$6.SHOW); // If this is a touch-enabled device we remove the extra
3133
+ // empty mouseover listeners we added for iOS support
3134
+
3135
+ if ('ontouchstart' in document.documentElement) {
3136
+ $(document.body).children().off('mouseover', null, $.noop);
3137
+ }
3138
+
3139
+ this._activeTrigger[Trigger.CLICK] = false;
3140
+ this._activeTrigger[Trigger.FOCUS] = false;
3141
+ this._activeTrigger[Trigger.HOVER] = false;
3142
+
3143
+ if ($(this.tip).hasClass(ClassName$6.FADE)) {
3144
+ var transitionDuration = Util.getTransitionDurationFromElement(tip);
3145
+ $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3146
+ } else {
3147
+ complete();
3148
+ }
3149
+
3150
+ this._hoverState = '';
3151
+ };
3152
+
3153
+ _proto.update = function update() {
3154
+ if (this._popper !== null) {
3155
+ this._popper.scheduleUpdate();
3156
+ }
3157
+ } // Protected
3158
+ ;
3159
+
3160
+ _proto.isWithContent = function isWithContent() {
3161
+ return Boolean(this.getTitle());
3162
+ };
3163
+
3164
+ _proto.addAttachmentClass = function addAttachmentClass(attachment) {
3165
+ $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
3166
+ };
3167
+
3168
+ _proto.getTipElement = function getTipElement() {
3169
+ this.tip = this.tip || $(this.config.template)[0];
3170
+ return this.tip;
3171
+ };
3172
+
3173
+ _proto.setContent = function setContent() {
3174
+ var tip = this.getTipElement();
3175
+ this.setElementContent($(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), this.getTitle());
3176
+ $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW);
3177
+ };
3178
+
3179
+ _proto.setElementContent = function setElementContent($element, content) {
3180
+ if (typeof content === 'object' && (content.nodeType || content.jquery)) {
3181
+ // Content is a DOM node or a jQuery
3182
+ if (this.config.html) {
3183
+ if (!$(content).parent().is($element)) {
3184
+ $element.empty().append(content);
3185
+ }
3186
+ } else {
3187
+ $element.text($(content).text());
3188
+ }
3189
+
3190
+ return;
3191
+ }
3192
+
3193
+ if (this.config.html) {
3194
+ if (this.config.sanitize) {
3195
+ content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn);
3196
+ }
3197
+
3198
+ $element.html(content);
3199
+ } else {
3200
+ $element.text(content);
3201
+ }
3202
+ };
3203
+
3204
+ _proto.getTitle = function getTitle() {
3205
+ var title = this.element.getAttribute('data-original-title');
3206
+
3207
+ if (!title) {
3208
+ title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
3209
+ }
3210
+
3211
+ return title;
3212
+ } // Private
3213
+ ;
3214
+
3215
+ _proto._getPopperConfig = function _getPopperConfig(attachment) {
3216
+ var _this3 = this;
3217
+
3218
+ var defaultBsConfig = {
3219
+ placement: attachment,
3220
+ modifiers: {
3221
+ offset: this._getOffset(),
3222
+ flip: {
3223
+ behavior: this.config.fallbackPlacement
3224
+ },
3225
+ arrow: {
3226
+ element: Selector$6.ARROW
3227
+ },
3228
+ preventOverflow: {
3229
+ boundariesElement: this.config.boundary
3230
+ }
3231
+ },
3232
+ onCreate: function onCreate(data) {
3233
+ if (data.originalPlacement !== data.placement) {
3234
+ _this3._handlePopperPlacementChange(data);
3235
+ }
3236
+ },
3237
+ onUpdate: function onUpdate(data) {
3238
+ return _this3._handlePopperPlacementChange(data);
3239
+ }
3240
+ };
3241
+ return _objectSpread2({}, defaultBsConfig, {}, this.config.popperConfig);
3242
+ };
3243
+
3244
+ _proto._getOffset = function _getOffset() {
3245
+ var _this4 = this;
3246
+
3247
+ var offset = {};
3248
+
3249
+ if (typeof this.config.offset === 'function') {
3250
+ offset.fn = function (data) {
3251
+ data.offsets = _objectSpread2({}, data.offsets, {}, _this4.config.offset(data.offsets, _this4.element) || {});
3252
+ return data;
3253
+ };
3254
+ } else {
3255
+ offset.offset = this.config.offset;
3256
+ }
3257
+
3258
+ return offset;
3259
+ };
3260
+
3261
+ _proto._getContainer = function _getContainer() {
3262
+ if (this.config.container === false) {
3263
+ return document.body;
3264
+ }
3265
+
3266
+ if (Util.isElement(this.config.container)) {
3267
+ return $(this.config.container);
3268
+ }
3269
+
3270
+ return $(document).find(this.config.container);
3271
+ };
3272
+
3273
+ _proto._getAttachment = function _getAttachment(placement) {
3274
+ return AttachmentMap$1[placement.toUpperCase()];
3275
+ };
3276
+
3277
+ _proto._setListeners = function _setListeners() {
3278
+ var _this5 = this;
3279
+
3280
+ var triggers = this.config.trigger.split(' ');
3281
+ triggers.forEach(function (trigger) {
3282
+ if (trigger === 'click') {
3283
+ $(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
3284
+ return _this5.toggle(event);
3285
+ });
3286
+ } else if (trigger !== Trigger.MANUAL) {
3287
+ var eventIn = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
3288
+ var eventOut = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
3289
+ $(_this5.element).on(eventIn, _this5.config.selector, function (event) {
3290
+ return _this5._enter(event);
3291
+ }).on(eventOut, _this5.config.selector, function (event) {
3292
+ return _this5._leave(event);
3293
+ });
3294
+ }
3295
+ });
3296
+
3297
+ this._hideModalHandler = function () {
3298
+ if (_this5.element) {
3299
+ _this5.hide();
3300
+ }
3301
+ };
3302
+
3303
+ $(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
3304
+
3305
+ if (this.config.selector) {
3306
+ this.config = _objectSpread2({}, this.config, {
3307
+ trigger: 'manual',
3308
+ selector: ''
3309
+ });
3310
+ } else {
3311
+ this._fixTitle();
3312
+ }
3313
+ };
3314
+
3315
+ _proto._fixTitle = function _fixTitle() {
3316
+ var titleType = typeof this.element.getAttribute('data-original-title');
3317
+
3318
+ if (this.element.getAttribute('title') || titleType !== 'string') {
3319
+ this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
3320
+ this.element.setAttribute('title', '');
3321
+ }
3322
+ };
3323
+
3324
+ _proto._enter = function _enter(event, context) {
3325
+ var dataKey = this.constructor.DATA_KEY;
3326
+ context = context || $(event.currentTarget).data(dataKey);
3327
+
3328
+ if (!context) {
3329
+ context = new this.constructor(event.currentTarget, this._getDelegateConfig());
3330
+ $(event.currentTarget).data(dataKey, context);
3331
+ }
3332
+
3333
+ if (event) {
3334
+ context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
3335
+ }
3336
+
3337
+ if ($(context.getTipElement()).hasClass(ClassName$6.SHOW) || context._hoverState === HoverState.SHOW) {
3338
+ context._hoverState = HoverState.SHOW;
3339
+ return;
3340
+ }
3341
+
3342
+ clearTimeout(context._timeout);
3343
+ context._hoverState = HoverState.SHOW;
3344
+
3345
+ if (!context.config.delay || !context.config.delay.show) {
3346
+ context.show();
3347
+ return;
3348
+ }
3349
+
3350
+ context._timeout = setTimeout(function () {
3351
+ if (context._hoverState === HoverState.SHOW) {
3352
+ context.show();
3353
+ }
3354
+ }, context.config.delay.show);
3355
+ };
3356
+
3357
+ _proto._leave = function _leave(event, context) {
3358
+ var dataKey = this.constructor.DATA_KEY;
3359
+ context = context || $(event.currentTarget).data(dataKey);
3360
+
3361
+ if (!context) {
3362
+ context = new this.constructor(event.currentTarget, this._getDelegateConfig());
3363
+ $(event.currentTarget).data(dataKey, context);
3364
+ }
3365
+
3366
+ if (event) {
3367
+ context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
3368
+ }
3369
+
3370
+ if (context._isWithActiveTrigger()) {
3371
+ return;
3372
+ }
3373
+
3374
+ clearTimeout(context._timeout);
3375
+ context._hoverState = HoverState.OUT;
3376
+
3377
+ if (!context.config.delay || !context.config.delay.hide) {
3378
+ context.hide();
3379
+ return;
3380
+ }
3381
+
3382
+ context._timeout = setTimeout(function () {
3383
+ if (context._hoverState === HoverState.OUT) {
3384
+ context.hide();
3385
+ }
3386
+ }, context.config.delay.hide);
3387
+ };
3388
+
3389
+ _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
3390
+ for (var trigger in this._activeTrigger) {
3391
+ if (this._activeTrigger[trigger]) {
3392
+ return true;
3393
+ }
3394
+ }
3395
+
3396
+ return false;
3397
+ };
3398
+
3399
+ _proto._getConfig = function _getConfig(config) {
3400
+ var dataAttributes = $(this.element).data();
3401
+ Object.keys(dataAttributes).forEach(function (dataAttr) {
3402
+ if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
3403
+ delete dataAttributes[dataAttr];
3404
+ }
3405
+ });
3406
+ config = _objectSpread2({}, this.constructor.Default, {}, dataAttributes, {}, typeof config === 'object' && config ? config : {});
3407
+
3408
+ if (typeof config.delay === 'number') {
3409
+ config.delay = {
3410
+ show: config.delay,
3411
+ hide: config.delay
3412
+ };
3413
+ }
3414
+
3415
+ if (typeof config.title === 'number') {
3416
+ config.title = config.title.toString();
3417
+ }
3418
+
3419
+ if (typeof config.content === 'number') {
3420
+ config.content = config.content.toString();
3421
+ }
3422
+
3423
+ Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
3424
+
3425
+ if (config.sanitize) {
3426
+ config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
3427
+ }
3428
+
3429
+ return config;
3430
+ };
3431
+
3432
+ _proto._getDelegateConfig = function _getDelegateConfig() {
3433
+ var config = {};
3434
+
3435
+ if (this.config) {
3436
+ for (var key in this.config) {
3437
+ if (this.constructor.Default[key] !== this.config[key]) {
3438
+ config[key] = this.config[key];
3439
+ }
3440
+ }
3441
+ }
3442
+
3443
+ return config;
3444
+ };
3445
+
3446
+ _proto._cleanTipClass = function _cleanTipClass() {
3447
+ var $tip = $(this.getTipElement());
3448
+ var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
3449
+
3450
+ if (tabClass !== null && tabClass.length) {
3451
+ $tip.removeClass(tabClass.join(''));
3452
+ }
3453
+ };
3454
+
3455
+ _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
3456
+ var popperInstance = popperData.instance;
3457
+ this.tip = popperInstance.popper;
3458
+
3459
+ this._cleanTipClass();
3460
+
3461
+ this.addAttachmentClass(this._getAttachment(popperData.placement));
3462
+ };
3463
+
3464
+ _proto._fixTransition = function _fixTransition() {
3465
+ var tip = this.getTipElement();
3466
+ var initConfigAnimation = this.config.animation;
3467
+
3468
+ if (tip.getAttribute('x-placement') !== null) {
3469
+ return;
3470
+ }
3471
+
3472
+ $(tip).removeClass(ClassName$6.FADE);
3473
+ this.config.animation = false;
3474
+ this.hide();
3475
+ this.show();
3476
+ this.config.animation = initConfigAnimation;
3477
+ } // Static
3478
+ ;
3479
+
3480
+ Tooltip._jQueryInterface = function _jQueryInterface(config) {
3481
+ return this.each(function () {
3482
+ var data = $(this).data(DATA_KEY$6);
3483
+
3484
+ var _config = typeof config === 'object' && config;
3485
+
3486
+ if (!data && /dispose|hide/.test(config)) {
3487
+ return;
3488
+ }
3489
+
3490
+ if (!data) {
3491
+ data = new Tooltip(this, _config);
3492
+ $(this).data(DATA_KEY$6, data);
3493
+ }
3494
+
3495
+ if (typeof config === 'string') {
3496
+ if (typeof data[config] === 'undefined') {
3497
+ throw new TypeError("No method named \"" + config + "\"");
3498
+ }
3499
+
3500
+ data[config]();
3501
+ }
3502
+ });
3503
+ };
3504
+
3505
+ _createClass(Tooltip, null, [{
3506
+ key: "VERSION",
3507
+ get: function get() {
3508
+ return VERSION$6;
3509
+ }
3510
+ }, {
3511
+ key: "Default",
3512
+ get: function get() {
3513
+ return Default$4;
3514
+ }
3515
+ }, {
3516
+ key: "NAME",
3517
+ get: function get() {
3518
+ return NAME$6;
3519
+ }
3520
+ }, {
3521
+ key: "DATA_KEY",
3522
+ get: function get() {
3523
+ return DATA_KEY$6;
3524
+ }
3525
+ }, {
3526
+ key: "Event",
3527
+ get: function get() {
3528
+ return Event$6;
3529
+ }
3530
+ }, {
3531
+ key: "EVENT_KEY",
3532
+ get: function get() {
3533
+ return EVENT_KEY$6;
3534
+ }
3535
+ }, {
3536
+ key: "DefaultType",
3537
+ get: function get() {
3538
+ return DefaultType$4;
3539
+ }
3540
+ }]);
3541
+
3542
+ return Tooltip;
3543
+ }();
3544
+ /**
3545
+ * ------------------------------------------------------------------------
3546
+ * jQuery
3547
+ * ------------------------------------------------------------------------
3548
+ */
3549
+
3550
+
3551
+ $.fn[NAME$6] = Tooltip._jQueryInterface;
3552
+ $.fn[NAME$6].Constructor = Tooltip;
3553
+
3554
+ $.fn[NAME$6].noConflict = function () {
3555
+ $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
3556
+ return Tooltip._jQueryInterface;
3557
+ };
3558
+
3559
+ /**
3560
+ * ------------------------------------------------------------------------
3561
+ * Constants
3562
+ * ------------------------------------------------------------------------
3563
+ */
3564
+
3565
+ var NAME$7 = 'popover';
3566
+ var VERSION$7 = '4.4.1';
3567
+ var DATA_KEY$7 = 'bs.popover';
3568
+ var EVENT_KEY$7 = "." + DATA_KEY$7;
3569
+ var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
3570
+ var CLASS_PREFIX$1 = 'bs-popover';
3571
+ var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
3572
+
3573
+ var Default$5 = _objectSpread2({}, Tooltip.Default, {
3574
+ placement: 'right',
3575
+ trigger: 'click',
3576
+ content: '',
3577
+ template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
3578
+ });
3579
+
3580
+ var DefaultType$5 = _objectSpread2({}, Tooltip.DefaultType, {
3581
+ content: '(string|element|function)'
3582
+ });
3583
+
3584
+ var ClassName$7 = {
3585
+ FADE: 'fade',
3586
+ SHOW: 'show'
3587
+ };
3588
+ var Selector$7 = {
3589
+ TITLE: '.popover-header',
3590
+ CONTENT: '.popover-body'
3591
+ };
3592
+ var Event$7 = {
3593
+ HIDE: "hide" + EVENT_KEY$7,
3594
+ HIDDEN: "hidden" + EVENT_KEY$7,
3595
+ SHOW: "show" + EVENT_KEY$7,
3596
+ SHOWN: "shown" + EVENT_KEY$7,
3597
+ INSERTED: "inserted" + EVENT_KEY$7,
3598
+ CLICK: "click" + EVENT_KEY$7,
3599
+ FOCUSIN: "focusin" + EVENT_KEY$7,
3600
+ FOCUSOUT: "focusout" + EVENT_KEY$7,
3601
+ MOUSEENTER: "mouseenter" + EVENT_KEY$7,
3602
+ MOUSELEAVE: "mouseleave" + EVENT_KEY$7
3603
+ };
3604
+ /**
3605
+ * ------------------------------------------------------------------------
3606
+ * Class Definition
3607
+ * ------------------------------------------------------------------------
3608
+ */
3609
+
3610
+ var Popover =
3611
+ /*#__PURE__*/
3612
+ function (_Tooltip) {
3613
+ _inheritsLoose(Popover, _Tooltip);
3614
+
3615
+ function Popover() {
3616
+ return _Tooltip.apply(this, arguments) || this;
3617
+ }
3618
+
3619
+ var _proto = Popover.prototype;
3620
+
3621
+ // Overrides
3622
+ _proto.isWithContent = function isWithContent() {
3623
+ return this.getTitle() || this._getContent();
3624
+ };
3625
+
3626
+ _proto.addAttachmentClass = function addAttachmentClass(attachment) {
3627
+ $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
3628
+ };
3629
+
3630
+ _proto.getTipElement = function getTipElement() {
3631
+ this.tip = this.tip || $(this.config.template)[0];
3632
+ return this.tip;
3633
+ };
3634
+
3635
+ _proto.setContent = function setContent() {
3636
+ var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
3637
+
3638
+ this.setElementContent($tip.find(Selector$7.TITLE), this.getTitle());
3639
+
3640
+ var content = this._getContent();
3641
+
3642
+ if (typeof content === 'function') {
3643
+ content = content.call(this.element);
3644
+ }
3645
+
3646
+ this.setElementContent($tip.find(Selector$7.CONTENT), content);
3647
+ $tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW);
3648
+ } // Private
3649
+ ;
3650
+
3651
+ _proto._getContent = function _getContent() {
3652
+ return this.element.getAttribute('data-content') || this.config.content;
3653
+ };
3654
+
3655
+ _proto._cleanTipClass = function _cleanTipClass() {
3656
+ var $tip = $(this.getTipElement());
3657
+ var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
3658
+
3659
+ if (tabClass !== null && tabClass.length > 0) {
3660
+ $tip.removeClass(tabClass.join(''));
3661
+ }
3662
+ } // Static
3663
+ ;
3664
+
3665
+ Popover._jQueryInterface = function _jQueryInterface(config) {
3666
+ return this.each(function () {
3667
+ var data = $(this).data(DATA_KEY$7);
3668
+
3669
+ var _config = typeof config === 'object' ? config : null;
3670
+
3671
+ if (!data && /dispose|hide/.test(config)) {
3672
+ return;
3673
+ }
3674
+
3675
+ if (!data) {
3676
+ data = new Popover(this, _config);
3677
+ $(this).data(DATA_KEY$7, data);
3678
+ }
3679
+
3680
+ if (typeof config === 'string') {
3681
+ if (typeof data[config] === 'undefined') {
3682
+ throw new TypeError("No method named \"" + config + "\"");
3683
+ }
3684
+
3685
+ data[config]();
3686
+ }
3687
+ });
3688
+ };
3689
+
3690
+ _createClass(Popover, null, [{
3691
+ key: "VERSION",
3692
+ // Getters
3693
+ get: function get() {
3694
+ return VERSION$7;
3695
+ }
3696
+ }, {
3697
+ key: "Default",
3698
+ get: function get() {
3699
+ return Default$5;
3700
+ }
3701
+ }, {
3702
+ key: "NAME",
3703
+ get: function get() {
3704
+ return NAME$7;
3705
+ }
3706
+ }, {
3707
+ key: "DATA_KEY",
3708
+ get: function get() {
3709
+ return DATA_KEY$7;
3710
+ }
3711
+ }, {
3712
+ key: "Event",
3713
+ get: function get() {
3714
+ return Event$7;
3715
+ }
3716
+ }, {
3717
+ key: "EVENT_KEY",
3718
+ get: function get() {
3719
+ return EVENT_KEY$7;
3720
+ }
3721
+ }, {
3722
+ key: "DefaultType",
3723
+ get: function get() {
3724
+ return DefaultType$5;
3725
+ }
3726
+ }]);
3727
+
3728
+ return Popover;
3729
+ }(Tooltip);
3730
+ /**
3731
+ * ------------------------------------------------------------------------
3732
+ * jQuery
3733
+ * ------------------------------------------------------------------------
3734
+ */
3735
+
3736
+
3737
+ $.fn[NAME$7] = Popover._jQueryInterface;
3738
+ $.fn[NAME$7].Constructor = Popover;
3739
+
3740
+ $.fn[NAME$7].noConflict = function () {
3741
+ $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
3742
+ return Popover._jQueryInterface;
3743
+ };
3744
+
3745
+ /**
3746
+ * ------------------------------------------------------------------------
3747
+ * Constants
3748
+ * ------------------------------------------------------------------------
3749
+ */
3750
+
3751
+ var NAME$8 = 'scrollspy';
3752
+ var VERSION$8 = '4.4.1';
3753
+ var DATA_KEY$8 = 'bs.scrollspy';
3754
+ var EVENT_KEY$8 = "." + DATA_KEY$8;
3755
+ var DATA_API_KEY$6 = '.data-api';
3756
+ var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8];
3757
+ var Default$6 = {
3758
+ offset: 10,
3759
+ method: 'auto',
3760
+ target: ''
3761
+ };
3762
+ var DefaultType$6 = {
3763
+ offset: 'number',
3764
+ method: 'string',
3765
+ target: '(string|element)'
3766
+ };
3767
+ var Event$8 = {
3768
+ ACTIVATE: "activate" + EVENT_KEY$8,
3769
+ SCROLL: "scroll" + EVENT_KEY$8,
3770
+ LOAD_DATA_API: "load" + EVENT_KEY$8 + DATA_API_KEY$6
3771
+ };
3772
+ var ClassName$8 = {
3773
+ DROPDOWN_ITEM: 'dropdown-item',
3774
+ DROPDOWN_MENU: 'dropdown-menu',
3775
+ ACTIVE: 'active'
3776
+ };
3777
+ var Selector$8 = {
3778
+ DATA_SPY: '[data-spy="scroll"]',
3779
+ ACTIVE: '.active',
3780
+ NAV_LIST_GROUP: '.nav, .list-group',
3781
+ NAV_LINKS: '.nav-link',
3782
+ NAV_ITEMS: '.nav-item',
3783
+ LIST_ITEMS: '.list-group-item',
3784
+ DROPDOWN: '.dropdown',
3785
+ DROPDOWN_ITEMS: '.dropdown-item',
3786
+ DROPDOWN_TOGGLE: '.dropdown-toggle'
3787
+ };
3788
+ var OffsetMethod = {
3789
+ OFFSET: 'offset',
3790
+ POSITION: 'position'
3791
+ };
3792
+ /**
3793
+ * ------------------------------------------------------------------------
3794
+ * Class Definition
3795
+ * ------------------------------------------------------------------------
3796
+ */
3797
+
3798
+ var ScrollSpy =
3799
+ /*#__PURE__*/
3800
+ function () {
3801
+ function ScrollSpy(element, config) {
3802
+ var _this = this;
3803
+
3804
+ this._element = element;
3805
+ this._scrollElement = element.tagName === 'BODY' ? window : element;
3806
+ this._config = this._getConfig(config);
3807
+ this._selector = this._config.target + " " + Selector$8.NAV_LINKS + "," + (this._config.target + " " + Selector$8.LIST_ITEMS + ",") + (this._config.target + " " + Selector$8.DROPDOWN_ITEMS);
3808
+ this._offsets = [];
3809
+ this._targets = [];
3810
+ this._activeTarget = null;
3811
+ this._scrollHeight = 0;
3812
+ $(this._scrollElement).on(Event$8.SCROLL, function (event) {
3813
+ return _this._process(event);
3814
+ });
3815
+ this.refresh();
3816
+
3817
+ this._process();
3818
+ } // Getters
3819
+
3820
+
3821
+ var _proto = ScrollSpy.prototype;
3822
+
3823
+ // Public
3824
+ _proto.refresh = function refresh() {
3825
+ var _this2 = this;
3826
+
3827
+ var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
3828
+ var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
3829
+ var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
3830
+ this._offsets = [];
3831
+ this._targets = [];
3832
+ this._scrollHeight = this._getScrollHeight();
3833
+ var targets = [].slice.call(document.querySelectorAll(this._selector));
3834
+ targets.map(function (element) {
3835
+ var target;
3836
+ var targetSelector = Util.getSelectorFromElement(element);
3837
+
3838
+ if (targetSelector) {
3839
+ target = document.querySelector(targetSelector);
3840
+ }
3841
+
3842
+ if (target) {
3843
+ var targetBCR = target.getBoundingClientRect();
3844
+
3845
+ if (targetBCR.width || targetBCR.height) {
3846
+ // TODO (fat): remove sketch reliance on jQuery position/offset
3847
+ return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
3848
+ }
3849
+ }
3850
+
3851
+ return null;
3852
+ }).filter(function (item) {
3853
+ return item;
3854
+ }).sort(function (a, b) {
3855
+ return a[0] - b[0];
3856
+ }).forEach(function (item) {
3857
+ _this2._offsets.push(item[0]);
3858
+
3859
+ _this2._targets.push(item[1]);
3860
+ });
3861
+ };
3862
+
3863
+ _proto.dispose = function dispose() {
3864
+ $.removeData(this._element, DATA_KEY$8);
3865
+ $(this._scrollElement).off(EVENT_KEY$8);
3866
+ this._element = null;
3867
+ this._scrollElement = null;
3868
+ this._config = null;
3869
+ this._selector = null;
3870
+ this._offsets = null;
3871
+ this._targets = null;
3872
+ this._activeTarget = null;
3873
+ this._scrollHeight = null;
3874
+ } // Private
3875
+ ;
3876
+
3877
+ _proto._getConfig = function _getConfig(config) {
3878
+ config = _objectSpread2({}, Default$6, {}, typeof config === 'object' && config ? config : {});
3879
+
3880
+ if (typeof config.target !== 'string') {
3881
+ var id = $(config.target).attr('id');
3882
+
3883
+ if (!id) {
3884
+ id = Util.getUID(NAME$8);
3885
+ $(config.target).attr('id', id);
3886
+ }
3887
+
3888
+ config.target = "#" + id;
3889
+ }
3890
+
3891
+ Util.typeCheckConfig(NAME$8, config, DefaultType$6);
3892
+ return config;
3893
+ };
3894
+
3895
+ _proto._getScrollTop = function _getScrollTop() {
3896
+ return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
3897
+ };
3898
+
3899
+ _proto._getScrollHeight = function _getScrollHeight() {
3900
+ return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
3901
+ };
3902
+
3903
+ _proto._getOffsetHeight = function _getOffsetHeight() {
3904
+ return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
3905
+ };
3906
+
3907
+ _proto._process = function _process() {
3908
+ var scrollTop = this._getScrollTop() + this._config.offset;
3909
+
3910
+ var scrollHeight = this._getScrollHeight();
3911
+
3912
+ var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
3913
+
3914
+ if (this._scrollHeight !== scrollHeight) {
3915
+ this.refresh();
3916
+ }
3917
+
3918
+ if (scrollTop >= maxScroll) {
3919
+ var target = this._targets[this._targets.length - 1];
3920
+
3921
+ if (this._activeTarget !== target) {
3922
+ this._activate(target);
3923
+ }
3924
+
3925
+ return;
3926
+ }
3927
+
3928
+ if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
3929
+ this._activeTarget = null;
3930
+
3931
+ this._clear();
3932
+
3933
+ return;
3934
+ }
3935
+
3936
+ var offsetLength = this._offsets.length;
3937
+
3938
+ for (var i = offsetLength; i--;) {
3939
+ var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
3940
+
3941
+ if (isActiveTarget) {
3942
+ this._activate(this._targets[i]);
3943
+ }
3944
+ }
3945
+ };
3946
+
3947
+ _proto._activate = function _activate(target) {
3948
+ this._activeTarget = target;
3949
+
3950
+ this._clear();
3951
+
3952
+ var queries = this._selector.split(',').map(function (selector) {
3953
+ return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
3954
+ });
3955
+
3956
+ var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
3957
+
3958
+ if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) {
3959
+ $link.closest(Selector$8.DROPDOWN).find(Selector$8.DROPDOWN_TOGGLE).addClass(ClassName$8.ACTIVE);
3960
+ $link.addClass(ClassName$8.ACTIVE);
3961
+ } else {
3962
+ // Set triggered link as active
3963
+ $link.addClass(ClassName$8.ACTIVE); // Set triggered links parents as active
3964
+ // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
3965
+
3966
+ $link.parents(Selector$8.NAV_LIST_GROUP).prev(Selector$8.NAV_LINKS + ", " + Selector$8.LIST_ITEMS).addClass(ClassName$8.ACTIVE); // Handle special case when .nav-link is inside .nav-item
3967
+
3968
+ $link.parents(Selector$8.NAV_LIST_GROUP).prev(Selector$8.NAV_ITEMS).children(Selector$8.NAV_LINKS).addClass(ClassName$8.ACTIVE);
3969
+ }
3970
+
3971
+ $(this._scrollElement).trigger(Event$8.ACTIVATE, {
3972
+ relatedTarget: target
3973
+ });
3974
+ };
3975
+
3976
+ _proto._clear = function _clear() {
3977
+ [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
3978
+ return node.classList.contains(ClassName$8.ACTIVE);
3979
+ }).forEach(function (node) {
3980
+ return node.classList.remove(ClassName$8.ACTIVE);
3981
+ });
3982
+ } // Static
3983
+ ;
3984
+
3985
+ ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
3986
+ return this.each(function () {
3987
+ var data = $(this).data(DATA_KEY$8);
3988
+
3989
+ var _config = typeof config === 'object' && config;
3990
+
3991
+ if (!data) {
3992
+ data = new ScrollSpy(this, _config);
3993
+ $(this).data(DATA_KEY$8, data);
3994
+ }
3995
+
3996
+ if (typeof config === 'string') {
3997
+ if (typeof data[config] === 'undefined') {
3998
+ throw new TypeError("No method named \"" + config + "\"");
3999
+ }
4000
+
4001
+ data[config]();
4002
+ }
4003
+ });
4004
+ };
4005
+
4006
+ _createClass(ScrollSpy, null, [{
4007
+ key: "VERSION",
4008
+ get: function get() {
4009
+ return VERSION$8;
4010
+ }
4011
+ }, {
4012
+ key: "Default",
4013
+ get: function get() {
4014
+ return Default$6;
4015
+ }
4016
+ }]);
4017
+
4018
+ return ScrollSpy;
4019
+ }();
4020
+ /**
4021
+ * ------------------------------------------------------------------------
4022
+ * Data Api implementation
4023
+ * ------------------------------------------------------------------------
4024
+ */
4025
+
4026
+
4027
+ $(window).on(Event$8.LOAD_DATA_API, function () {
4028
+ var scrollSpys = [].slice.call(document.querySelectorAll(Selector$8.DATA_SPY));
4029
+ var scrollSpysLength = scrollSpys.length;
4030
+
4031
+ for (var i = scrollSpysLength; i--;) {
4032
+ var $spy = $(scrollSpys[i]);
4033
+
4034
+ ScrollSpy._jQueryInterface.call($spy, $spy.data());
4035
+ }
4036
+ });
4037
+ /**
4038
+ * ------------------------------------------------------------------------
4039
+ * jQuery
4040
+ * ------------------------------------------------------------------------
4041
+ */
4042
+
4043
+ $.fn[NAME$8] = ScrollSpy._jQueryInterface;
4044
+ $.fn[NAME$8].Constructor = ScrollSpy;
4045
+
4046
+ $.fn[NAME$8].noConflict = function () {
4047
+ $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
4048
+ return ScrollSpy._jQueryInterface;
4049
+ };
4050
+
4051
+ /**
4052
+ * ------------------------------------------------------------------------
4053
+ * Constants
4054
+ * ------------------------------------------------------------------------
4055
+ */
4056
+
4057
+ var NAME$9 = 'tab';
4058
+ var VERSION$9 = '4.4.1';
4059
+ var DATA_KEY$9 = 'bs.tab';
4060
+ var EVENT_KEY$9 = "." + DATA_KEY$9;
4061
+ var DATA_API_KEY$7 = '.data-api';
4062
+ var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];
4063
+ var Event$9 = {
4064
+ HIDE: "hide" + EVENT_KEY$9,
4065
+ HIDDEN: "hidden" + EVENT_KEY$9,
4066
+ SHOW: "show" + EVENT_KEY$9,
4067
+ SHOWN: "shown" + EVENT_KEY$9,
4068
+ CLICK_DATA_API: "click" + EVENT_KEY$9 + DATA_API_KEY$7
4069
+ };
4070
+ var ClassName$9 = {
4071
+ DROPDOWN_MENU: 'dropdown-menu',
4072
+ ACTIVE: 'active',
4073
+ DISABLED: 'disabled',
4074
+ FADE: 'fade',
4075
+ SHOW: 'show'
4076
+ };
4077
+ var Selector$9 = {
4078
+ DROPDOWN: '.dropdown',
4079
+ NAV_LIST_GROUP: '.nav, .list-group',
4080
+ ACTIVE: '.active',
4081
+ ACTIVE_UL: '> li > .active',
4082
+ DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
4083
+ DROPDOWN_TOGGLE: '.dropdown-toggle',
4084
+ DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
4085
+ };
4086
+ /**
4087
+ * ------------------------------------------------------------------------
4088
+ * Class Definition
4089
+ * ------------------------------------------------------------------------
4090
+ */
4091
+
4092
+ var Tab =
4093
+ /*#__PURE__*/
4094
+ function () {
4095
+ function Tab(element) {
4096
+ this._element = element;
4097
+ } // Getters
4098
+
4099
+
4100
+ var _proto = Tab.prototype;
4101
+
4102
+ // Public
4103
+ _proto.show = function show() {
4104
+ var _this = this;
4105
+
4106
+ if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName$9.ACTIVE) || $(this._element).hasClass(ClassName$9.DISABLED)) {
4107
+ return;
4108
+ }
4109
+
4110
+ var target;
4111
+ var previous;
4112
+ var listElement = $(this._element).closest(Selector$9.NAV_LIST_GROUP)[0];
4113
+ var selector = Util.getSelectorFromElement(this._element);
4114
+
4115
+ if (listElement) {
4116
+ var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;
4117
+ previous = $.makeArray($(listElement).find(itemSelector));
4118
+ previous = previous[previous.length - 1];
4119
+ }
4120
+
4121
+ var hideEvent = $.Event(Event$9.HIDE, {
4122
+ relatedTarget: this._element
4123
+ });
4124
+ var showEvent = $.Event(Event$9.SHOW, {
4125
+ relatedTarget: previous
4126
+ });
4127
+
4128
+ if (previous) {
4129
+ $(previous).trigger(hideEvent);
4130
+ }
4131
+
4132
+ $(this._element).trigger(showEvent);
4133
+
4134
+ if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
4135
+ return;
4136
+ }
4137
+
4138
+ if (selector) {
4139
+ target = document.querySelector(selector);
4140
+ }
4141
+
4142
+ this._activate(this._element, listElement);
4143
+
4144
+ var complete = function complete() {
4145
+ var hiddenEvent = $.Event(Event$9.HIDDEN, {
4146
+ relatedTarget: _this._element
4147
+ });
4148
+ var shownEvent = $.Event(Event$9.SHOWN, {
4149
+ relatedTarget: previous
4150
+ });
4151
+ $(previous).trigger(hiddenEvent);
4152
+ $(_this._element).trigger(shownEvent);
4153
+ };
4154
+
4155
+ if (target) {
4156
+ this._activate(target, target.parentNode, complete);
4157
+ } else {
4158
+ complete();
4159
+ }
4160
+ };
4161
+
4162
+ _proto.dispose = function dispose() {
4163
+ $.removeData(this._element, DATA_KEY$9);
4164
+ this._element = null;
4165
+ } // Private
4166
+ ;
4167
+
4168
+ _proto._activate = function _activate(element, container, callback) {
4169
+ var _this2 = this;
4170
+
4171
+ var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(Selector$9.ACTIVE_UL) : $(container).children(Selector$9.ACTIVE);
4172
+ var active = activeElements[0];
4173
+ var isTransitioning = callback && active && $(active).hasClass(ClassName$9.FADE);
4174
+
4175
+ var complete = function complete() {
4176
+ return _this2._transitionComplete(element, active, callback);
4177
+ };
4178
+
4179
+ if (active && isTransitioning) {
4180
+ var transitionDuration = Util.getTransitionDurationFromElement(active);
4181
+ $(active).removeClass(ClassName$9.SHOW).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4182
+ } else {
4183
+ complete();
4184
+ }
4185
+ };
4186
+
4187
+ _proto._transitionComplete = function _transitionComplete(element, active, callback) {
4188
+ if (active) {
4189
+ $(active).removeClass(ClassName$9.ACTIVE);
4190
+ var dropdownChild = $(active.parentNode).find(Selector$9.DROPDOWN_ACTIVE_CHILD)[0];
4191
+
4192
+ if (dropdownChild) {
4193
+ $(dropdownChild).removeClass(ClassName$9.ACTIVE);
4194
+ }
4195
+
4196
+ if (active.getAttribute('role') === 'tab') {
4197
+ active.setAttribute('aria-selected', false);
4198
+ }
4199
+ }
4200
+
4201
+ $(element).addClass(ClassName$9.ACTIVE);
4202
+
4203
+ if (element.getAttribute('role') === 'tab') {
4204
+ element.setAttribute('aria-selected', true);
4205
+ }
4206
+
4207
+ Util.reflow(element);
4208
+
4209
+ if (element.classList.contains(ClassName$9.FADE)) {
4210
+ element.classList.add(ClassName$9.SHOW);
4211
+ }
4212
+
4213
+ if (element.parentNode && $(element.parentNode).hasClass(ClassName$9.DROPDOWN_MENU)) {
4214
+ var dropdownElement = $(element).closest(Selector$9.DROPDOWN)[0];
4215
+
4216
+ if (dropdownElement) {
4217
+ var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE));
4218
+ $(dropdownToggleList).addClass(ClassName$9.ACTIVE);
4219
+ }
4220
+
4221
+ element.setAttribute('aria-expanded', true);
4222
+ }
4223
+
4224
+ if (callback) {
4225
+ callback();
4226
+ }
4227
+ } // Static
4228
+ ;
4229
+
4230
+ Tab._jQueryInterface = function _jQueryInterface(config) {
4231
+ return this.each(function () {
4232
+ var $this = $(this);
4233
+ var data = $this.data(DATA_KEY$9);
4234
+
4235
+ if (!data) {
4236
+ data = new Tab(this);
4237
+ $this.data(DATA_KEY$9, data);
4238
+ }
4239
+
4240
+ if (typeof config === 'string') {
4241
+ if (typeof data[config] === 'undefined') {
4242
+ throw new TypeError("No method named \"" + config + "\"");
4243
+ }
4244
+
4245
+ data[config]();
4246
+ }
4247
+ });
4248
+ };
4249
+
4250
+ _createClass(Tab, null, [{
4251
+ key: "VERSION",
4252
+ get: function get() {
4253
+ return VERSION$9;
4254
+ }
4255
+ }]);
4256
+
4257
+ return Tab;
4258
+ }();
4259
+ /**
4260
+ * ------------------------------------------------------------------------
4261
+ * Data Api implementation
4262
+ * ------------------------------------------------------------------------
4263
+ */
4264
+
4265
+
4266
+ $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function (event) {
4267
+ event.preventDefault();
4268
+
4269
+ Tab._jQueryInterface.call($(this), 'show');
4270
+ });
4271
+ /**
4272
+ * ------------------------------------------------------------------------
4273
+ * jQuery
4274
+ * ------------------------------------------------------------------------
4275
+ */
4276
+
4277
+ $.fn[NAME$9] = Tab._jQueryInterface;
4278
+ $.fn[NAME$9].Constructor = Tab;
4279
+
4280
+ $.fn[NAME$9].noConflict = function () {
4281
+ $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
4282
+ return Tab._jQueryInterface;
4283
+ };
4284
+
4285
+ /**
4286
+ * ------------------------------------------------------------------------
4287
+ * Constants
4288
+ * ------------------------------------------------------------------------
4289
+ */
4290
+
4291
+ var NAME$a = 'toast';
4292
+ var VERSION$a = '4.4.1';
4293
+ var DATA_KEY$a = 'bs.toast';
4294
+ var EVENT_KEY$a = "." + DATA_KEY$a;
4295
+ var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
4296
+ var Event$a = {
4297
+ CLICK_DISMISS: "click.dismiss" + EVENT_KEY$a,
4298
+ HIDE: "hide" + EVENT_KEY$a,
4299
+ HIDDEN: "hidden" + EVENT_KEY$a,
4300
+ SHOW: "show" + EVENT_KEY$a,
4301
+ SHOWN: "shown" + EVENT_KEY$a
4302
+ };
4303
+ var ClassName$a = {
4304
+ FADE: 'fade',
4305
+ HIDE: 'hide',
4306
+ SHOW: 'show',
4307
+ SHOWING: 'showing'
4308
+ };
4309
+ var DefaultType$7 = {
4310
+ animation: 'boolean',
4311
+ autohide: 'boolean',
4312
+ delay: 'number'
4313
+ };
4314
+ var Default$7 = {
4315
+ animation: true,
4316
+ autohide: true,
4317
+ delay: 500
4318
+ };
4319
+ var Selector$a = {
4320
+ DATA_DISMISS: '[data-dismiss="toast"]'
4321
+ };
4322
+ /**
4323
+ * ------------------------------------------------------------------------
4324
+ * Class Definition
4325
+ * ------------------------------------------------------------------------
4326
+ */
4327
+
4328
+ var Toast =
4329
+ /*#__PURE__*/
4330
+ function () {
4331
+ function Toast(element, config) {
4332
+ this._element = element;
4333
+ this._config = this._getConfig(config);
4334
+ this._timeout = null;
4335
+
4336
+ this._setListeners();
4337
+ } // Getters
4338
+
4339
+
4340
+ var _proto = Toast.prototype;
4341
+
4342
+ // Public
4343
+ _proto.show = function show() {
4344
+ var _this = this;
4345
+
4346
+ var showEvent = $.Event(Event$a.SHOW);
4347
+ $(this._element).trigger(showEvent);
4348
+
4349
+ if (showEvent.isDefaultPrevented()) {
4350
+ return;
4351
+ }
4352
+
4353
+ if (this._config.animation) {
4354
+ this._element.classList.add(ClassName$a.FADE);
4355
+ }
4356
+
4357
+ var complete = function complete() {
4358
+ _this._element.classList.remove(ClassName$a.SHOWING);
4359
+
4360
+ _this._element.classList.add(ClassName$a.SHOW);
4361
+
4362
+ $(_this._element).trigger(Event$a.SHOWN);
4363
+
4364
+ if (_this._config.autohide) {
4365
+ _this._timeout = setTimeout(function () {
4366
+ _this.hide();
4367
+ }, _this._config.delay);
4368
+ }
4369
+ };
4370
+
4371
+ this._element.classList.remove(ClassName$a.HIDE);
4372
+
4373
+ Util.reflow(this._element);
4374
+
4375
+ this._element.classList.add(ClassName$a.SHOWING);
4376
+
4377
+ if (this._config.animation) {
4378
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
4379
+ $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4380
+ } else {
4381
+ complete();
4382
+ }
4383
+ };
4384
+
4385
+ _proto.hide = function hide() {
4386
+ if (!this._element.classList.contains(ClassName$a.SHOW)) {
4387
+ return;
4388
+ }
4389
+
4390
+ var hideEvent = $.Event(Event$a.HIDE);
4391
+ $(this._element).trigger(hideEvent);
4392
+
4393
+ if (hideEvent.isDefaultPrevented()) {
4394
+ return;
4395
+ }
4396
+
4397
+ this._close();
4398
+ };
4399
+
4400
+ _proto.dispose = function dispose() {
4401
+ clearTimeout(this._timeout);
4402
+ this._timeout = null;
4403
+
4404
+ if (this._element.classList.contains(ClassName$a.SHOW)) {
4405
+ this._element.classList.remove(ClassName$a.SHOW);
4406
+ }
4407
+
4408
+ $(this._element).off(Event$a.CLICK_DISMISS);
4409
+ $.removeData(this._element, DATA_KEY$a);
4410
+ this._element = null;
4411
+ this._config = null;
4412
+ } // Private
4413
+ ;
4414
+
4415
+ _proto._getConfig = function _getConfig(config) {
4416
+ config = _objectSpread2({}, Default$7, {}, $(this._element).data(), {}, typeof config === 'object' && config ? config : {});
4417
+ Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
4418
+ return config;
4419
+ };
4420
+
4421
+ _proto._setListeners = function _setListeners() {
4422
+ var _this2 = this;
4423
+
4424
+ $(this._element).on(Event$a.CLICK_DISMISS, Selector$a.DATA_DISMISS, function () {
4425
+ return _this2.hide();
4426
+ });
4427
+ };
4428
+
4429
+ _proto._close = function _close() {
4430
+ var _this3 = this;
4431
+
4432
+ var complete = function complete() {
4433
+ _this3._element.classList.add(ClassName$a.HIDE);
4434
+
4435
+ $(_this3._element).trigger(Event$a.HIDDEN);
4436
+ };
4437
+
4438
+ this._element.classList.remove(ClassName$a.SHOW);
4439
+
4440
+ if (this._config.animation) {
4441
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
4442
+ $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4443
+ } else {
4444
+ complete();
4445
+ }
4446
+ } // Static
4447
+ ;
4448
+
4449
+ Toast._jQueryInterface = function _jQueryInterface(config) {
4450
+ return this.each(function () {
4451
+ var $element = $(this);
4452
+ var data = $element.data(DATA_KEY$a);
4453
+
4454
+ var _config = typeof config === 'object' && config;
4455
+
4456
+ if (!data) {
4457
+ data = new Toast(this, _config);
4458
+ $element.data(DATA_KEY$a, data);
4459
+ }
4460
+
4461
+ if (typeof config === 'string') {
4462
+ if (typeof data[config] === 'undefined') {
4463
+ throw new TypeError("No method named \"" + config + "\"");
4464
+ }
4465
+
4466
+ data[config](this);
4467
+ }
4468
+ });
4469
+ };
4470
+
4471
+ _createClass(Toast, null, [{
4472
+ key: "VERSION",
4473
+ get: function get() {
4474
+ return VERSION$a;
4475
+ }
4476
+ }, {
4477
+ key: "DefaultType",
4478
+ get: function get() {
4479
+ return DefaultType$7;
4480
+ }
4481
+ }, {
4482
+ key: "Default",
4483
+ get: function get() {
4484
+ return Default$7;
4485
+ }
4486
+ }]);
4487
+
4488
+ return Toast;
4489
+ }();
4490
+ /**
4491
+ * ------------------------------------------------------------------------
4492
+ * jQuery
4493
+ * ------------------------------------------------------------------------
4494
+ */
4495
+
4496
+
4497
+ $.fn[NAME$a] = Toast._jQueryInterface;
4498
+ $.fn[NAME$a].Constructor = Toast;
4499
+
4500
+ $.fn[NAME$a].noConflict = function () {
4501
+ $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
4502
+ return Toast._jQueryInterface;
4503
+ };
4504
+
4505
+ exports.Alert = Alert;
4506
+ exports.Button = Button;
4507
+ exports.Carousel = Carousel;
4508
+ exports.Collapse = Collapse;
4509
+ exports.Dropdown = Dropdown;
4510
+ exports.Modal = Modal;
4511
+ exports.Popover = Popover;
4512
+ exports.Scrollspy = ScrollSpy;
4513
+ exports.Tab = Tab;
4514
+ exports.Toast = Toast;
4515
+ exports.Tooltip = Tooltip;
4516
+ exports.Util = Util;
4517
+
4518
+ Object.defineProperty(exports, '__esModule', { value: true });
4519
+
4520
+ })));
4521
+ //# sourceMappingURL=bootstrap.js.map