@qooxdoo/framework 7.0.0-beta.6 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1555) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/Manifest.json +2 -2
  3. package/README.md +3 -1
  4. package/lib/compiler/compile-info.json +57 -55
  5. package/lib/compiler/index.js +6272 -4273
  6. package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
  7. package/lib/resource/qx/tool/loadsass.js +16 -15
  8. package/lib/resource/qx/tool/schema/compile-1-0-0.json +13 -13
  9. package/lib/resource/qx/tool/website/build/assets/bluebird.min.js +4593 -9
  10. package/lib/resource/qx/tool/website/build/assets/buttons.js +391 -1
  11. package/lib/resource/qx/tool/website/build/assets/fontawesome-all.js +8963 -1
  12. package/lib/resource/qx/tool/website/build/assets/jquery.js +5452 -3
  13. package/lib/resource/qx/tool/website/build/diagnostics/dependson.js +31 -31
  14. package/lib/resource/qx/tool/website/build/diagnostics/requiredby.js +32 -36
  15. package/lib/resource/qx/tool/website/build/scripts/serve.js +87 -66
  16. package/lib/resource/qx/tool/website/src/assets/bluebird.min.js +4593 -9
  17. package/lib/resource/qx/tool/website/src/assets/buttons.js +391 -1
  18. package/lib/resource/qx/tool/website/src/assets/fontawesome-all.js +8963 -1
  19. package/lib/resource/qx/tool/website/src/assets/jquery.js +5452 -3
  20. package/lib/resource/qx/tool/website/src/diagnostics/dependson.js +31 -31
  21. package/lib/resource/qx/tool/website/src/diagnostics/requiredby.js +32 -36
  22. package/lib/resource/qx/tool/website/src/scripts/serve.js +87 -66
  23. package/npm-shrinkwrap.json +7293 -0
  24. package/package.json +6 -4
  25. package/source/class/q.js +4 -2
  26. package/source/class/qx/Annotation.js +48 -57
  27. package/source/class/qx/Bootstrap.js +206 -207
  28. package/source/class/qx/Class.js +602 -504
  29. package/source/class/qx/Interface.js +169 -137
  30. package/source/class/qx/Mixin.js +162 -120
  31. package/source/class/qx/Part.js +48 -77
  32. package/source/class/qx/Promise.js +5891 -4655
  33. package/source/class/qx/Theme.js +200 -134
  34. package/source/class/qx/__init__.js +8 -8
  35. package/source/class/qx/application/AbstractGui.js +20 -32
  36. package/source/class/qx/application/Basic.js +9 -18
  37. package/source/class/qx/application/IApplication.js +6 -10
  38. package/source/class/qx/application/Inline.js +4 -7
  39. package/source/class/qx/application/Mobile.js +22 -45
  40. package/source/class/qx/application/Native.js +8 -19
  41. package/source/class/qx/application/Routing.js +88 -114
  42. package/source/class/qx/application/Standalone.js +4 -9
  43. package/source/class/qx/application/__init__.js +1 -1
  44. package/source/class/qx/bom/AnimationFrame.js +26 -25
  45. package/source/class/qx/bom/Blocker.js +92 -100
  46. package/source/class/qx/bom/Cookie.js +18 -22
  47. package/source/class/qx/bom/Document.js +24 -31
  48. package/source/class/qx/bom/Element.js +65 -51
  49. package/source/class/qx/bom/Event.js +68 -78
  50. package/source/class/qx/bom/FileReader.js +110 -115
  51. package/source/class/qx/bom/Font.js +82 -122
  52. package/source/class/qx/bom/FullScreen.js +32 -41
  53. package/source/class/qx/bom/GeoLocation.js +39 -44
  54. package/source/class/qx/bom/HashHistory.js +58 -64
  55. package/source/class/qx/bom/History.js +61 -89
  56. package/source/class/qx/bom/Html.js +75 -71
  57. package/source/class/qx/bom/IdleCallback.js +20 -23
  58. package/source/class/qx/bom/Iframe.js +37 -69
  59. package/source/class/qx/bom/IframeHistory.js +83 -88
  60. package/source/class/qx/bom/Input.js +50 -66
  61. package/source/class/qx/bom/Label.js +65 -86
  62. package/source/class/qx/bom/Lifecycle.js +7 -9
  63. package/source/class/qx/bom/MediaQuery.js +324 -307
  64. package/source/class/qx/bom/NativeHistory.js +51 -46
  65. package/source/class/qx/bom/Notification.js +41 -47
  66. package/source/class/qx/bom/PageVisibility.js +19 -25
  67. package/source/class/qx/bom/Range.js +20 -30
  68. package/source/class/qx/bom/Selection.js +163 -172
  69. package/source/class/qx/bom/Selector.js +2401 -2181
  70. package/source/class/qx/bom/Shortcut.js +103 -129
  71. package/source/class/qx/bom/Storage.js +9 -8
  72. package/source/class/qx/bom/String.js +285 -290
  73. package/source/class/qx/bom/Style.js +30 -31
  74. package/source/class/qx/bom/Stylesheet.js +36 -60
  75. package/source/class/qx/bom/Template.js +730 -657
  76. package/source/class/qx/bom/Viewport.js +40 -46
  77. package/source/class/qx/bom/Vml.js +43 -28
  78. package/source/class/qx/bom/WebWorker.js +61 -50
  79. package/source/class/qx/bom/Window.js +88 -105
  80. package/source/class/qx/bom/__init__.js +11 -11
  81. package/source/class/qx/bom/client/Browser.js +45 -47
  82. package/source/class/qx/bom/client/Css.js +85 -85
  83. package/source/class/qx/bom/client/CssAnimation.js +41 -49
  84. package/source/class/qx/bom/client/CssTransform.js +21 -29
  85. package/source/class/qx/bom/client/CssTransition.js +9 -12
  86. package/source/class/qx/bom/client/Device.js +45 -45
  87. package/source/class/qx/bom/client/EcmaScript.js +153 -96
  88. package/source/class/qx/bom/client/Engine.js +38 -35
  89. package/source/class/qx/bom/client/Event.js +75 -63
  90. package/source/class/qx/bom/client/Html.js +97 -97
  91. package/source/class/qx/bom/client/Idle.js +4 -6
  92. package/source/class/qx/bom/client/Locale.js +15 -15
  93. package/source/class/qx/bom/client/OperatingSystem.js +89 -106
  94. package/source/class/qx/bom/client/Pdfjs.js +1364 -1067
  95. package/source/class/qx/bom/client/PhoneGap.js +6 -9
  96. package/source/class/qx/bom/client/Plugin.js +93 -97
  97. package/source/class/qx/bom/client/Runtime.js +14 -12
  98. package/source/class/qx/bom/client/Scroll.js +20 -16
  99. package/source/class/qx/bom/client/Stylesheet.js +44 -32
  100. package/source/class/qx/bom/client/Transport.js +38 -41
  101. package/source/class/qx/bom/client/Xml.js +39 -41
  102. package/source/class/qx/bom/client/__init__.js +4 -4
  103. package/source/class/qx/bom/element/Animation.js +15 -12
  104. package/source/class/qx/bom/element/AnimationCss.js +95 -64
  105. package/source/class/qx/bom/element/AnimationHandle.js +22 -29
  106. package/source/class/qx/bom/element/AnimationJs.js +94 -71
  107. package/source/class/qx/bom/element/Attribute.js +119 -134
  108. package/source/class/qx/bom/element/Background.js +35 -35
  109. package/source/class/qx/bom/element/BoxSizing.js +43 -44
  110. package/source/class/qx/bom/element/Class.js +50 -72
  111. package/source/class/qx/bom/element/Clip.js +36 -60
  112. package/source/class/qx/bom/element/Cursor.js +13 -20
  113. package/source/class/qx/bom/element/Dataset.js +33 -31
  114. package/source/class/qx/bom/element/Decoration.js +178 -168
  115. package/source/class/qx/bom/element/Dimension.js +78 -60
  116. package/source/class/qx/bom/element/Location.js +87 -94
  117. package/source/class/qx/bom/element/Opacity.js +42 -44
  118. package/source/class/qx/bom/element/Scroll.js +78 -88
  119. package/source/class/qx/bom/element/Style.js +61 -101
  120. package/source/class/qx/bom/element/Transform.js +38 -56
  121. package/source/class/qx/bom/element/__init__.js +4 -4
  122. package/source/class/qx/bom/media/Abstract.js +136 -143
  123. package/source/class/qx/bom/media/Audio.js +7 -12
  124. package/source/class/qx/bom/media/Video.js +15 -27
  125. package/source/class/qx/bom/request/IRequest.js +18 -21
  126. package/source/class/qx/bom/request/Jsonp.js +34 -39
  127. package/source/class/qx/bom/request/Script.js +94 -90
  128. package/source/class/qx/bom/request/SimpleXhr.js +111 -79
  129. package/source/class/qx/bom/request/Xhr.js +196 -143
  130. package/source/class/qx/bom/request/__init__.js +1 -1
  131. package/source/class/qx/bom/rest/Resource.js +269 -203
  132. package/source/class/qx/bom/storage/Memory.js +18 -29
  133. package/source/class/qx/bom/storage/UserData.js +28 -35
  134. package/source/class/qx/bom/storage/Web.js +19 -30
  135. package/source/class/qx/bom/webfonts/Manager.js +199 -130
  136. package/source/class/qx/bom/webfonts/Validator.js +84 -118
  137. package/source/class/qx/bom/webfonts/WebFont.js +24 -28
  138. package/source/class/qx/bom/webfonts/__init__.js +1 -1
  139. package/source/class/qx/core/Aspect.js +15 -22
  140. package/source/class/qx/core/Assert.js +391 -333
  141. package/source/class/qx/core/AssertionError.js +6 -15
  142. package/source/class/qx/core/BaseInit.js +25 -28
  143. package/source/class/qx/core/Environment.js +72 -86
  144. package/source/class/qx/core/GlobalError.js +12 -20
  145. package/source/class/qx/core/IDisposable.js +6 -9
  146. package/source/class/qx/core/Id.js +25 -15
  147. package/source/class/qx/core/Init.js +20 -20
  148. package/source/class/qx/core/MAssert.js +54 -97
  149. package/source/class/qx/core/MBindTo.js +10 -14
  150. package/source/class/qx/core/MEvent.js +76 -65
  151. package/source/class/qx/core/MLogging.js +9 -18
  152. package/source/class/qx/core/MObjectId.js +104 -65
  153. package/source/class/qx/core/MProperty.js +18 -34
  154. package/source/class/qx/core/Object.js +93 -122
  155. package/source/class/qx/core/ObjectRegistry.js +58 -81
  156. package/source/class/qx/core/Property.js +974 -780
  157. package/source/class/qx/core/ValidationError.js +3 -4
  158. package/source/class/qx/core/WindowError.js +13 -24
  159. package/source/class/qx/core/Wrapper.js +8 -9
  160. package/source/class/qx/data/Array.js +178 -191
  161. package/source/class/qx/data/Conversion.js +11 -18
  162. package/source/class/qx/data/IListData.js +11 -20
  163. package/source/class/qx/data/MBinding.js +31 -26
  164. package/source/class/qx/data/SingleValueBinding.js +491 -225
  165. package/source/class/qx/data/__init__.js +1 -1
  166. package/source/class/qx/data/controller/CheckedList.js +82 -54
  167. package/source/class/qx/data/controller/Form.js +81 -69
  168. package/source/class/qx/data/controller/IControllerDelegate.js +7 -12
  169. package/source/class/qx/data/controller/ISelection.js +6 -10
  170. package/source/class/qx/data/controller/List.js +151 -167
  171. package/source/class/qx/data/controller/MSelection.js +53 -72
  172. package/source/class/qx/data/controller/Object.js +106 -77
  173. package/source/class/qx/data/controller/Tree.js +164 -142
  174. package/source/class/qx/data/controller/__init__.js +1 -1
  175. package/source/class/qx/data/controller/website/List.js +34 -43
  176. package/source/class/qx/data/controller/website/__init__.js +2 -2
  177. package/source/class/qx/data/marshal/IMarshaler.js +4 -7
  178. package/source/class/qx/data/marshal/IMarshalerDelegate.js +10 -18
  179. package/source/class/qx/data/marshal/Json.js +112 -85
  180. package/source/class/qx/data/marshal/MEventBubbling.js +44 -42
  181. package/source/class/qx/data/marshal/__init__.js +1 -1
  182. package/source/class/qx/data/store/IStoreDelegate.js +6 -9
  183. package/source/class/qx/data/store/Json.js +71 -85
  184. package/source/class/qx/data/store/Jsonp.js +19 -25
  185. package/source/class/qx/data/store/Offline.js +21 -29
  186. package/source/class/qx/data/store/Rest.js +25 -23
  187. package/source/class/qx/data/store/__init__.js +1 -1
  188. package/source/class/qx/dev/Debug.js +105 -124
  189. package/source/class/qx/dev/FakeServer.js +68 -65
  190. package/source/class/qx/dev/ObjectSummary.js +33 -39
  191. package/source/class/qx/dev/Profile.js +62 -63
  192. package/source/class/qx/dev/StackTrace.js +64 -70
  193. package/source/class/qx/dev/Tokenizer.js +114 -126
  194. package/source/class/qx/dev/unit/AbstractTestSuite.js +17 -31
  195. package/source/class/qx/dev/unit/AsyncWrapper.js +22 -26
  196. package/source/class/qx/dev/unit/JsUnitTestResult.js +9 -21
  197. package/source/class/qx/dev/unit/MMeasure.js +46 -37
  198. package/source/class/qx/dev/unit/MMock.js +236 -240
  199. package/source/class/qx/dev/unit/MRequirements.js +53 -79
  200. package/source/class/qx/dev/unit/MRequirementsBasic.js +24 -19
  201. package/source/class/qx/dev/unit/MTestLoader.js +52 -57
  202. package/source/class/qx/dev/unit/MeasurementResult.js +18 -22
  203. package/source/class/qx/dev/unit/RequirementError.js +8 -17
  204. package/source/class/qx/dev/unit/Sinon.js +18826 -4613
  205. package/source/class/qx/dev/unit/TestCase.js +40 -51
  206. package/source/class/qx/dev/unit/TestClass.js +22 -23
  207. package/source/class/qx/dev/unit/TestFunction.js +28 -48
  208. package/source/class/qx/dev/unit/TestLoader.js +11 -14
  209. package/source/class/qx/dev/unit/TestLoaderBasic.js +3 -6
  210. package/source/class/qx/dev/unit/TestLoaderInline.js +8 -14
  211. package/source/class/qx/dev/unit/TestLoaderMobile.js +8 -14
  212. package/source/class/qx/dev/unit/TestLoaderNative.js +7 -13
  213. package/source/class/qx/dev/unit/TestResult.js +140 -118
  214. package/source/class/qx/dev/unit/TestSuite.js +46 -55
  215. package/source/class/qx/dom/Element.js +29 -74
  216. package/source/class/qx/dom/Hierarchy.js +60 -95
  217. package/source/class/qx/dom/Node.js +54 -81
  218. package/source/class/qx/dom/__init__.js +9 -9
  219. package/source/class/qx/event/AcceleratingTimer.js +28 -46
  220. package/source/class/qx/event/Emitter.js +54 -49
  221. package/source/class/qx/event/GlobalError.js +22 -38
  222. package/source/class/qx/event/IEventDispatcher.js +4 -9
  223. package/source/class/qx/event/IEventHandler.js +7 -13
  224. package/source/class/qx/event/Idle.js +32 -47
  225. package/source/class/qx/event/Manager.js +222 -237
  226. package/source/class/qx/event/Messaging.js +55 -48
  227. package/source/class/qx/event/Pool.js +5 -8
  228. package/source/class/qx/event/Registration.js +128 -118
  229. package/source/class/qx/event/Timer.js +50 -96
  230. package/source/class/qx/event/Utils.js +41 -28
  231. package/source/class/qx/event/dispatch/AbstractBubbling.js +133 -93
  232. package/source/class/qx/event/dispatch/Direct.js +46 -51
  233. package/source/class/qx/event/dispatch/DomBubbling.js +8 -15
  234. package/source/class/qx/event/dispatch/MouseCapture.js +74 -91
  235. package/source/class/qx/event/handler/Appear.js +40 -77
  236. package/source/class/qx/event/handler/Application.js +100 -126
  237. package/source/class/qx/event/handler/Capture.js +15 -37
  238. package/source/class/qx/event/handler/DragDrop.js +342 -228
  239. package/source/class/qx/event/handler/Element.js +45 -72
  240. package/source/class/qx/event/handler/ElementResize.js +35 -70
  241. package/source/class/qx/event/handler/Focus.js +908 -637
  242. package/source/class/qx/event/handler/Gesture.js +144 -93
  243. package/source/class/qx/event/handler/GestureCore.js +214 -163
  244. package/source/class/qx/event/handler/Iframe.js +21 -35
  245. package/source/class/qx/event/handler/Input.js +332 -209
  246. package/source/class/qx/event/handler/Keyboard.js +325 -270
  247. package/source/class/qx/event/handler/Mouse.js +212 -173
  248. package/source/class/qx/event/handler/Object.js +13 -31
  249. package/source/class/qx/event/handler/Offline.js +52 -67
  250. package/source/class/qx/event/handler/Orientation.js +56 -62
  251. package/source/class/qx/event/handler/OrientationCore.js +33 -43
  252. package/source/class/qx/event/handler/Pointer.js +84 -72
  253. package/source/class/qx/event/handler/PointerCore.js +183 -105
  254. package/source/class/qx/event/handler/Touch.js +43 -59
  255. package/source/class/qx/event/handler/TouchCore.js +159 -120
  256. package/source/class/qx/event/handler/Transition.js +91 -100
  257. package/source/class/qx/event/handler/UserAction.js +18 -42
  258. package/source/class/qx/event/handler/Video.js +12 -12
  259. package/source/class/qx/event/handler/Window.js +53 -69
  260. package/source/class/qx/event/message/Bus.js +109 -128
  261. package/source/class/qx/event/message/Message.js +14 -29
  262. package/source/class/qx/event/type/Data.js +11 -22
  263. package/source/class/qx/event/type/Dom.js +37 -52
  264. package/source/class/qx/event/type/Drag.js +37 -56
  265. package/source/class/qx/event/type/Event.js +80 -104
  266. package/source/class/qx/event/type/Focus.js +5 -8
  267. package/source/class/qx/event/type/GeoPosition.js +32 -41
  268. package/source/class/qx/event/type/KeyInput.js +9 -19
  269. package/source/class/qx/event/type/KeySequence.js +10 -21
  270. package/source/class/qx/event/type/Mouse.js +69 -72
  271. package/source/class/qx/event/type/MouseWheel.js +5 -9
  272. package/source/class/qx/event/type/Native.js +16 -27
  273. package/source/class/qx/event/type/Orientation.js +18 -30
  274. package/source/class/qx/event/type/Pinch.js +21 -27
  275. package/source/class/qx/event/type/Pointer.js +38 -41
  276. package/source/class/qx/event/type/Rest.js +7 -10
  277. package/source/class/qx/event/type/Roll.js +49 -58
  278. package/source/class/qx/event/type/Rotate.js +21 -27
  279. package/source/class/qx/event/type/Swipe.js +75 -86
  280. package/source/class/qx/event/type/Tap.js +2 -4
  281. package/source/class/qx/event/type/Touch.js +262 -286
  282. package/source/class/qx/event/type/Track.js +23 -28
  283. package/source/class/qx/event/type/dom/Custom.js +24 -20
  284. package/source/class/qx/event/type/dom/Pointer.js +86 -60
  285. package/source/class/qx/event/util/Keyboard.js +94 -106
  286. package/source/class/qx/html/Blocker.js +17 -18
  287. package/source/class/qx/html/Canvas.js +13 -29
  288. package/source/class/qx/html/Element.js +372 -497
  289. package/source/class/qx/html/Factory.js +31 -26
  290. package/source/class/qx/html/Iframe.js +35 -69
  291. package/source/class/qx/html/Image.js +43 -55
  292. package/source/class/qx/html/Input.js +44 -57
  293. package/source/class/qx/html/Jsx.js +49 -41
  294. package/source/class/qx/html/JsxRef.js +3 -5
  295. package/source/class/qx/html/Label.js +20 -32
  296. package/source/class/qx/html/Node.js +362 -422
  297. package/source/class/qx/html/Root.js +7 -16
  298. package/source/class/qx/html/Text.js +34 -27
  299. package/source/class/qx/io/ImageLoader.js +66 -90
  300. package/source/class/qx/io/PartLoader.js +17 -30
  301. package/source/class/qx/io/exception/Cancel.js +4 -5
  302. package/source/class/qx/io/exception/Exception.js +4 -5
  303. package/source/class/qx/io/exception/Protocol.js +2 -3
  304. package/source/class/qx/io/exception/Transport.js +13 -14
  305. package/source/class/qx/io/graphql/Client.js +22 -12
  306. package/source/class/qx/io/graphql/protocol/Message.js +3 -3
  307. package/source/class/qx/io/graphql/protocol/Request.js +8 -10
  308. package/source/class/qx/io/graphql/protocol/Response.js +7 -5
  309. package/source/class/qx/io/jsonrpc/Client.js +70 -38
  310. package/source/class/qx/io/jsonrpc/__init__.js +1 -1
  311. package/source/class/qx/io/jsonrpc/protocol/Batch.js +14 -8
  312. package/source/class/qx/io/jsonrpc/protocol/Error.js +11 -9
  313. package/source/class/qx/io/jsonrpc/protocol/Message.js +3 -3
  314. package/source/class/qx/io/jsonrpc/protocol/Notification.js +8 -6
  315. package/source/class/qx/io/jsonrpc/protocol/Parser.js +33 -9
  316. package/source/class/qx/io/jsonrpc/protocol/Request.js +8 -7
  317. package/source/class/qx/io/jsonrpc/protocol/Result.js +7 -6
  318. package/source/class/qx/io/part/ClosurePart.js +16 -35
  319. package/source/class/qx/io/part/Package.js +35 -63
  320. package/source/class/qx/io/part/Part.js +29 -53
  321. package/source/class/qx/io/part/__init__.js +4 -4
  322. package/source/class/qx/io/request/AbstractRequest.js +268 -201
  323. package/source/class/qx/io/request/Jsonp.js +16 -19
  324. package/source/class/qx/io/request/Xhr.js +38 -37
  325. package/source/class/qx/io/request/__init__.js +1 -1
  326. package/source/class/qx/io/request/authentication/Basic.js +7 -13
  327. package/source/class/qx/io/request/authentication/Bearer.js +7 -13
  328. package/source/class/qx/io/request/authentication/IAuthentication.js +3 -6
  329. package/source/class/qx/io/request/authentication/__init__.js +1 -1
  330. package/source/class/qx/io/rest/Resource.js +122 -90
  331. package/source/class/qx/io/transport/AbstractClient.js +31 -10
  332. package/source/class/qx/io/transport/AbstractTransport.js +7 -8
  333. package/source/class/qx/io/transport/Fetch.js +8 -5
  334. package/source/class/qx/io/transport/ITransport.js +4 -2
  335. package/source/class/qx/io/transport/PostMessage.js +1 -2
  336. package/source/class/qx/io/transport/Websocket.js +5 -5
  337. package/source/class/qx/io/transport/Xhr.js +17 -18
  338. package/source/class/qx/lang/Array.js +133 -170
  339. package/source/class/qx/lang/Function.js +101 -104
  340. package/source/class/qx/lang/Json.js +1041 -774
  341. package/source/class/qx/lang/Number.js +11 -16
  342. package/source/class/qx/lang/Object.js +129 -100
  343. package/source/class/qx/lang/String.js +86 -94
  344. package/source/class/qx/lang/Type.js +44 -65
  345. package/source/class/qx/lang/normalize/Array.js +39 -49
  346. package/source/class/qx/lang/normalize/Date.js +50 -32
  347. package/source/class/qx/lang/normalize/Error.js +4 -7
  348. package/source/class/qx/lang/normalize/Function.js +11 -19
  349. package/source/class/qx/lang/normalize/Number.js +3 -5
  350. package/source/class/qx/lang/normalize/Object.js +17 -18
  351. package/source/class/qx/lang/normalize/String.js +39 -40
  352. package/source/class/qx/locale/Date.js +175 -178
  353. package/source/class/qx/locale/Key.js +13 -11
  354. package/source/class/qx/locale/LocalizedString.js +18 -15
  355. package/source/class/qx/locale/MTranslation.js +22 -23
  356. package/source/class/qx/locale/Manager.js +62 -100
  357. package/source/class/qx/locale/Number.js +20 -12
  358. package/source/class/qx/locale/String.js +26 -15
  359. package/source/class/qx/log/Logger.js +128 -180
  360. package/source/class/qx/log/__init__.js +3 -3
  361. package/source/class/qx/log/appender/Console.js +100 -111
  362. package/source/class/qx/log/appender/Element.js +25 -39
  363. package/source/class/qx/log/appender/Formatter.js +117 -66
  364. package/source/class/qx/log/appender/Native.js +4 -10
  365. package/source/class/qx/log/appender/NodeConsole.js +20 -28
  366. package/source/class/qx/log/appender/PhoneGap.js +5 -13
  367. package/source/class/qx/log/appender/RhinoConsole.js +12 -23
  368. package/source/class/qx/log/appender/RhinoFile.js +19 -26
  369. package/source/class/qx/log/appender/RingBuffer.js +10 -19
  370. package/source/class/qx/log/appender/Util.js +11 -9
  371. package/source/class/qx/module/Animation.js +73 -63
  372. package/source/class/qx/module/Attribute.js +27 -46
  373. package/source/class/qx/module/Blocker.js +33 -41
  374. package/source/class/qx/module/Cookie.js +6 -10
  375. package/source/class/qx/module/Css.js +82 -97
  376. package/source/class/qx/module/Dataset.js +12 -24
  377. package/source/class/qx/module/Environment.js +4 -6
  378. package/source/class/qx/module/Event.js +124 -127
  379. package/source/class/qx/module/Io.js +5 -9
  380. package/source/class/qx/module/Manipulating.js +98 -117
  381. package/source/class/qx/module/MatchMedia.js +50 -24
  382. package/source/class/qx/module/Messaging.js +6 -10
  383. package/source/class/qx/module/Placeholder.js +54 -44
  384. package/source/class/qx/module/Placement.js +33 -33
  385. package/source/class/qx/module/Rest.js +3 -4
  386. package/source/class/qx/module/Storage.js +34 -48
  387. package/source/class/qx/module/Template.js +6 -9
  388. package/source/class/qx/module/TextSelection.js +13 -21
  389. package/source/class/qx/module/Transform.js +28 -45
  390. package/source/class/qx/module/Traversing.js +160 -154
  391. package/source/class/qx/module/__init__.js +1 -1
  392. package/source/class/qx/module/dev/FakeServer.js +19 -25
  393. package/source/class/qx/module/event/GestureHandler.js +25 -13
  394. package/source/class/qx/module/event/Keyboard.js +42 -31
  395. package/source/class/qx/module/event/Mouse.js +48 -46
  396. package/source/class/qx/module/event/Native.js +18 -30
  397. package/source/class/qx/module/event/Orientation.js +11 -18
  398. package/source/class/qx/module/event/OrientationHandler.js +19 -17
  399. package/source/class/qx/module/event/Pinch.js +13 -14
  400. package/source/class/qx/module/event/Pointer.js +22 -22
  401. package/source/class/qx/module/event/PointerHandler.js +14 -11
  402. package/source/class/qx/module/event/Rotate.js +13 -14
  403. package/source/class/qx/module/event/Swipe.js +18 -24
  404. package/source/class/qx/module/event/Tap.js +25 -25
  405. package/source/class/qx/module/event/Touch.js +4 -7
  406. package/source/class/qx/module/event/TouchHandler.js +16 -16
  407. package/source/class/qx/module/event/Track.js +13 -14
  408. package/source/class/qx/module/util/Array.js +30 -41
  409. package/source/class/qx/module/util/Function.js +1 -2
  410. package/source/class/qx/module/util/Object.js +8 -11
  411. package/source/class/qx/module/util/String.js +10 -18
  412. package/source/class/qx/module/util/Type.js +3 -4
  413. package/source/class/qx/test/Annotation.js +195 -89
  414. package/source/class/qx/test/Bootstrap.js +98 -124
  415. package/source/class/qx/test/Browser.js +8 -11
  416. package/source/class/qx/test/Class.js +164 -198
  417. package/source/class/qx/test/Dom.js +10 -28
  418. package/source/class/qx/test/EditDistance.js +16 -16
  419. package/source/class/qx/test/Interface.js +380 -383
  420. package/source/class/qx/test/MAppearance.js +10 -14
  421. package/source/class/qx/test/MDecoration.js +1 -3
  422. package/source/class/qx/test/Mixin.js +449 -173
  423. package/source/class/qx/test/Promise.js +422 -333
  424. package/source/class/qx/test/Theme.js +204 -179
  425. package/source/class/qx/test/Xml.js +155 -84
  426. package/source/class/qx/test/application/Routing.js +45 -44
  427. package/source/class/qx/test/bom/AnimationFrame.js +23 -21
  428. package/source/class/qx/test/bom/Attribute.js +66 -47
  429. package/source/class/qx/test/bom/Basic.js +52 -27
  430. package/source/class/qx/test/bom/Blocker.js +100 -70
  431. package/source/class/qx/test/bom/Class.js +19 -34
  432. package/source/class/qx/test/bom/Cookie.js +49 -28
  433. package/source/class/qx/test/bom/Dataset.js +12 -24
  434. package/source/class/qx/test/bom/Element.js +55 -47
  435. package/source/class/qx/test/bom/Event.js +68 -45
  436. package/source/class/qx/test/bom/FileReader.js +6 -12
  437. package/source/class/qx/test/bom/Font.js +256 -118
  438. package/source/class/qx/test/bom/GeoLocation.js +82 -64
  439. package/source/class/qx/test/bom/History.js +63 -84
  440. package/source/class/qx/test/bom/IdleCallback.js +51 -38
  441. package/source/class/qx/test/bom/Iframe.js +14 -18
  442. package/source/class/qx/test/bom/Label.js +74 -105
  443. package/source/class/qx/test/bom/Location.js +70 -99
  444. package/source/class/qx/test/bom/PageVisibility.js +13 -16
  445. package/source/class/qx/test/bom/Selector.js +16 -16
  446. package/source/class/qx/test/bom/String.js +19 -15
  447. package/source/class/qx/test/bom/Stylesheet.js +39 -48
  448. package/source/class/qx/test/bom/Template.js +49 -57
  449. package/source/class/qx/test/bom/Viewport.js +7 -11
  450. package/source/class/qx/test/bom/WebWorker.js +49 -37
  451. package/source/class/qx/test/bom/Window.js +6 -12
  452. package/source/class/qx/test/bom/client/Css.js +26 -19
  453. package/source/class/qx/test/bom/client/Device.js +29 -18
  454. package/source/class/qx/test/bom/client/OperatingSystem.js +17 -20
  455. package/source/class/qx/test/bom/client/Pdfjs.js +15 -13
  456. package/source/class/qx/test/bom/element/AnimationHandle.js +20 -17
  457. package/source/class/qx/test/bom/element/AnimationJs.js +48 -31
  458. package/source/class/qx/test/bom/element/Background.js +93 -46
  459. package/source/class/qx/test/bom/element/BoxSizing.js +66 -61
  460. package/source/class/qx/test/bom/element/Class.js +33 -58
  461. package/source/class/qx/test/bom/element/Dimension.js +58 -37
  462. package/source/class/qx/test/bom/element/Style.js +87 -83
  463. package/source/class/qx/test/bom/element/Transform.js +209 -86
  464. package/source/class/qx/test/bom/media/Audio.js +18 -14
  465. package/source/class/qx/test/bom/media/MediaTestCase.js +61 -66
  466. package/source/class/qx/test/bom/media/Video.js +39 -28
  467. package/source/class/qx/test/bom/request/Jsonp.js +60 -57
  468. package/source/class/qx/test/bom/request/Script.js +150 -138
  469. package/source/class/qx/test/bom/request/SimpleXhr.js +206 -134
  470. package/source/class/qx/test/bom/request/Xhr.js +179 -132
  471. package/source/class/qx/test/bom/request/XhrWithRemote.js +206 -160
  472. package/source/class/qx/test/bom/rest/Resource.js +345 -281
  473. package/source/class/qx/test/bom/rest/ResourceWithRemote.js +74 -57
  474. package/source/class/qx/test/bom/storage/Local.js +3 -4
  475. package/source/class/qx/test/bom/storage/Session.js +3 -4
  476. package/source/class/qx/test/bom/storage/WebStorageTestCase.js +28 -27
  477. package/source/class/qx/test/bom/webfonts/Abstract.js +8 -10
  478. package/source/class/qx/test/bom/webfonts/Manager.js +127 -80
  479. package/source/class/qx/test/bom/webfonts/Validator.js +36 -30
  480. package/source/class/qx/test/compiler/ClassFile.js +29 -11
  481. package/source/class/qx/test/compiler/jsdoc/Parser.js +122 -96
  482. package/source/class/qx/test/core/Assert.js +151 -86
  483. package/source/class/qx/test/core/Environment.js +162 -123
  484. package/source/class/qx/test/core/EventEmitterDummy.js +7 -8
  485. package/source/class/qx/test/core/InheritanceDummy.js +23 -33
  486. package/source/class/qx/test/core/MemoryManagement.js +13 -5
  487. package/source/class/qx/test/core/Object.js +106 -112
  488. package/source/class/qx/test/core/ObjectId.js +7 -6
  489. package/source/class/qx/test/core/Property.js +483 -387
  490. package/source/class/qx/test/core/PropertyHelper.js +49 -64
  491. package/source/class/qx/test/core/Target.js +9 -13
  492. package/source/class/qx/test/core/Validation.js +409 -136
  493. package/source/class/qx/test/data/DataArray.js +1059 -394
  494. package/source/class/qx/test/data/DataArrayWithChangeBubble.js +315 -172
  495. package/source/class/qx/test/data/__init__.js +4 -4
  496. package/source/class/qx/test/data/controller/Form.js +141 -99
  497. package/source/class/qx/test/data/controller/FormWithArrayAndModel.js +66 -51
  498. package/source/class/qx/test/data/controller/List.js +644 -336
  499. package/source/class/qx/test/data/controller/ListReverse.js +64 -63
  500. package/source/class/qx/test/data/controller/ListWithObjects.js +305 -149
  501. package/source/class/qx/test/data/controller/Object.js +252 -94
  502. package/source/class/qx/test/data/controller/Tree.js +1219 -383
  503. package/source/class/qx/test/data/controller/__init__.js +4 -4
  504. package/source/class/qx/test/data/marshal/Json.js +832 -447
  505. package/source/class/qx/test/data/marshal/__init__.js +4 -4
  506. package/source/class/qx/test/data/singlevalue/Array.js +383 -144
  507. package/source/class/qx/test/data/singlevalue/Deep.js +361 -175
  508. package/source/class/qx/test/data/singlevalue/Resolve.js +51 -29
  509. package/source/class/qx/test/data/singlevalue/Simple.js +530 -208
  510. package/source/class/qx/test/data/singlevalue/TextFieldDummy.js +32 -28
  511. package/source/class/qx/test/data/singlevalue/__init__.js +4 -4
  512. package/source/class/qx/test/data/store/Json.js +574 -313
  513. package/source/class/qx/test/data/store/Jsonp.js +103 -77
  514. package/source/class/qx/test/data/store/Offline.js +127 -110
  515. package/source/class/qx/test/data/store/Rest.js +58 -52
  516. package/source/class/qx/test/data/store/RestWithRemote.js +36 -30
  517. package/source/class/qx/test/data/store/__init__.js +4 -4
  518. package/source/class/qx/test/dev/Debug.js +9 -13
  519. package/source/class/qx/test/dev/StackTrace.js +51 -42
  520. package/source/class/qx/test/dev/unit/Requirements.js +36 -49
  521. package/source/class/qx/test/dev/unit/Sinon.js +85 -73
  522. package/source/class/qx/test/dev/unit/TestCase.js +12 -17
  523. package/source/class/qx/test/dom/Element.js +17 -12
  524. package/source/class/qx/test/dom/Hierarchy.js +53 -38
  525. package/source/class/qx/test/dom/Node.js +97 -43
  526. package/source/class/qx/test/event/Bubbling.js +258 -88
  527. package/source/class/qx/test/event/Emitter.js +38 -39
  528. package/source/class/qx/test/event/GlobalError.js +59 -87
  529. package/source/class/qx/test/event/GlobalEventMonitors.js +22 -25
  530. package/source/class/qx/test/event/Messaging.js +66 -49
  531. package/source/class/qx/test/event/MockBubblingHandler.js +10 -15
  532. package/source/class/qx/test/event/MockHandler.js +14 -33
  533. package/source/class/qx/test/event/Registration.js +38 -32
  534. package/source/class/qx/test/event/Timer.js +61 -39
  535. package/source/class/qx/test/event/Utils.js +164 -123
  536. package/source/class/qx/test/event/dispatch/MouseCapture.js +61 -51
  537. package/source/class/qx/test/event/dispatch/MouseEventOnDocument.js +22 -23
  538. package/source/class/qx/test/event/dispatch/TestingHandler.js +8 -10
  539. package/source/class/qx/test/event/dispatch/TestingWindow.js +9 -13
  540. package/source/class/qx/test/event/dispatch/__init__.js +4 -4
  541. package/source/class/qx/test/event/handler/Offline.js +7 -8
  542. package/source/class/qx/test/event/message/Bus.js +112 -72
  543. package/source/class/qx/test/event/message/__init__.js +4 -4
  544. package/source/class/qx/test/event/type/Dom.js +12 -11
  545. package/source/class/qx/test/event/type/Event.js +7 -16
  546. package/source/class/qx/test/event/type/Mouse.js +12 -11
  547. package/source/class/qx/test/event/type/Native.js +12 -11
  548. package/source/class/qx/test/event/type/__init__.js +4 -4
  549. package/source/class/qx/test/event/util/Keyboard.js +4 -3
  550. package/source/class/qx/test/html/Element.js +538 -239
  551. package/source/class/qx/test/html/Iframe.js +85 -73
  552. package/source/class/qx/test/html/jsx/TestJsx.js +15 -4
  553. package/source/class/qx/test/html/jsx/TestJsxBrowser.js +37 -19
  554. package/source/class/qx/test/html/jsx/TestWidget.js +26 -26
  555. package/source/class/qx/test/io/ImageLoader.js +256 -160
  556. package/source/class/qx/test/io/MAssert.js +7 -7
  557. package/source/class/qx/test/io/MRemoteTest.js +9 -11
  558. package/source/class/qx/test/io/__init__.js +4 -4
  559. package/source/class/qx/test/io/graphql/Client.js +135 -114
  560. package/source/class/qx/test/io/graphql/ClientFetch.js +4 -4
  561. package/source/class/qx/test/io/graphql/Request.js +12 -13
  562. package/source/class/qx/test/io/jsonrpc/Client.js +135 -69
  563. package/source/class/qx/test/io/jsonrpc/Protocol.js +42 -14
  564. package/source/class/qx/test/io/request/Jsonp.js +23 -20
  565. package/source/class/qx/test/io/request/JsonpWithRemote.js +25 -22
  566. package/source/class/qx/test/io/request/MRequest.js +137 -114
  567. package/source/class/qx/test/io/request/Xhr.js +367 -209
  568. package/source/class/qx/test/io/request/XhrWithRemote.js +133 -100
  569. package/source/class/qx/test/io/rest/Resource.js +325 -270
  570. package/source/class/qx/test/io/rest/ResourceWithRemote.js +75 -58
  571. package/source/class/qx/test/io/transport/PostMessage.js +5 -5
  572. package/source/class/qx/test/io/transport/Websocket.js +9 -8
  573. package/source/class/qx/test/lang/Array.js +79 -105
  574. package/source/class/qx/test/lang/Function.js +64 -53
  575. package/source/class/qx/test/lang/Json.js +51 -79
  576. package/source/class/qx/test/lang/Number.js +4 -6
  577. package/source/class/qx/test/lang/Object.js +143 -133
  578. package/source/class/qx/test/lang/String.js +151 -95
  579. package/source/class/qx/test/lang/Type.js +34 -44
  580. package/source/class/qx/test/lang/Webkit.js +8 -13
  581. package/source/class/qx/test/lang/normalize/Array.js +121 -68
  582. package/source/class/qx/test/lang/normalize/Date.js +232 -49
  583. package/source/class/qx/test/lang/normalize/Error.js +5 -8
  584. package/source/class/qx/test/lang/normalize/Function.js +7 -13
  585. package/source/class/qx/test/lang/normalize/Object.js +22 -29
  586. package/source/class/qx/test/lang/normalize/String.js +19 -28
  587. package/source/class/qx/test/locale/Date.js +91 -43
  588. package/source/class/qx/test/locale/Locale.js +52 -32
  589. package/source/class/qx/test/locale/LocalizedString.js +12 -12
  590. package/source/class/qx/test/log/DeprecationMethodOverriding.js +52 -31
  591. package/source/class/qx/test/log/Filters.js +6 -3
  592. package/source/class/qx/test/log/Formatter.js +13 -7
  593. package/source/class/qx/test/log/Logger.js +19 -29
  594. package/source/class/qx/test/log/RingBuffer.js +14 -25
  595. package/source/class/qx/test/log/__init__.js +4 -4
  596. package/source/class/qx/test/log/fixture/ClassA.js +22 -22
  597. package/source/class/qx/test/log/fixture/ClassB1.js +7 -9
  598. package/source/class/qx/test/log/fixture/ClassB2.js +5 -7
  599. package/source/class/qx/test/log/fixture/ClassC1.js +5 -7
  600. package/source/class/qx/test/log/fixture/ClassC2.js +7 -9
  601. package/source/class/qx/test/mobile/LocaleSwitch.js +29 -36
  602. package/source/class/qx/test/mobile/MobileTestCase.js +39 -49
  603. package/source/class/qx/test/mobile/basic/Atom.js +129 -53
  604. package/source/class/qx/test/mobile/basic/Image.js +41 -31
  605. package/source/class/qx/test/mobile/basic/Label.js +6 -10
  606. package/source/class/qx/test/mobile/container/Carousel.js +41 -45
  607. package/source/class/qx/test/mobile/container/Composite.js +48 -65
  608. package/source/class/qx/test/mobile/container/Drawer.js +42 -29
  609. package/source/class/qx/test/mobile/container/Navigation.js +14 -20
  610. package/source/class/qx/test/mobile/container/Scroll.js +23 -19
  611. package/source/class/qx/test/mobile/core/Widget.js +150 -86
  612. package/source/class/qx/test/mobile/dialog/Menu.js +47 -26
  613. package/source/class/qx/test/mobile/dialog/Popup.js +30 -19
  614. package/source/class/qx/test/mobile/embed/Html.js +5 -8
  615. package/source/class/qx/test/mobile/form/Button.js +15 -13
  616. package/source/class/qx/test/mobile/form/CheckBox.js +21 -17
  617. package/source/class/qx/test/mobile/form/Form.js +37 -24
  618. package/source/class/qx/test/mobile/form/Group.js +5 -9
  619. package/source/class/qx/test/mobile/form/Label.js +11 -13
  620. package/source/class/qx/test/mobile/form/NumberField.js +49 -45
  621. package/source/class/qx/test/mobile/form/RadioButton.js +30 -19
  622. package/source/class/qx/test/mobile/form/SelectBox.js +39 -25
  623. package/source/class/qx/test/mobile/form/SingleRenderer.js +31 -27
  624. package/source/class/qx/test/mobile/form/Slider.js +55 -35
  625. package/source/class/qx/test/mobile/form/TextArea.js +34 -24
  626. package/source/class/qx/test/mobile/form/TextField.js +34 -24
  627. package/source/class/qx/test/mobile/form/ToggleButton.js +10 -14
  628. package/source/class/qx/test/mobile/layout/Card.js +21 -17
  629. package/source/class/qx/test/mobile/layout/HBox.js +25 -20
  630. package/source/class/qx/test/mobile/layout/VBox.js +25 -21
  631. package/source/class/qx/test/mobile/list/List.js +114 -83
  632. package/source/class/qx/test/mobile/navigationbar/NavigationBar.js +5 -9
  633. package/source/class/qx/test/mobile/page/Manager.js +7 -13
  634. package/source/class/qx/test/mobile/page/NavigationPage.js +7 -17
  635. package/source/class/qx/test/mobile/page/Page.js +101 -68
  636. package/source/class/qx/test/mobile/tabbar/TabBar.js +11 -21
  637. package/source/class/qx/test/mobile/toolbar/Toolbar.js +16 -16
  638. package/source/class/qx/test/performance/BaseCall.js +31 -36
  639. package/source/class/qx/test/performance/Event.js +60 -53
  640. package/source/class/qx/test/performance/Object.js +16 -22
  641. package/source/class/qx/test/performance/Property.js +20 -22
  642. package/source/class/qx/test/performance/data/Marshaling.js +25 -30
  643. package/source/class/qx/test/performance/decorator/AbstractDecorator.js +22 -34
  644. package/source/class/qx/test/performance/decorator/Background.js +4 -6
  645. package/source/class/qx/test/performance/decorator/BackgroundScale.js +6 -8
  646. package/source/class/qx/test/performance/decorator/Single.js +4 -6
  647. package/source/class/qx/test/performance/element/Element.js +50 -67
  648. package/source/class/qx/test/performance/widget/AbstractWidget.js +31 -44
  649. package/source/class/qx/test/performance/widget/Button.js +5 -7
  650. package/source/class/qx/test/performance/widget/Label.js +5 -7
  651. package/source/class/qx/test/performance/widget/RichLabel.js +6 -8
  652. package/source/class/qx/test/performance/widget/Widget.js +5 -7
  653. package/source/class/qx/test/performance/widget/WidgetWithDecorator.js +7 -9
  654. package/source/class/qx/test/performance/widget/WidgetWithSingle.js +9 -11
  655. package/source/class/qx/test/renderer/Color.js +22 -49
  656. package/source/class/qx/test/testclasses/BaseClassBoth.js +11 -8
  657. package/source/class/qx/test/testclasses/BaseClassIncluded.js +5 -6
  658. package/source/class/qx/test/testclasses/BaseClassPatched.js +15 -8
  659. package/source/class/qx/test/testclasses/DerivedClassBoth.js +7 -7
  660. package/source/class/qx/test/testclasses/DerivedClassIncluded.js +7 -7
  661. package/source/class/qx/test/testclasses/DerivedClassPatched.js +7 -7
  662. package/source/class/qx/test/testclasses/MMixinOne.js +4 -4
  663. package/source/class/qx/test/testclasses/MMixinTwo.js +2 -2
  664. package/source/class/qx/test/testclasses/RootClass.js +8 -8
  665. package/source/class/qx/test/theme/__init__.js +4 -4
  666. package/source/class/qx/test/theme/manager/Color.js +52 -66
  667. package/source/class/qx/test/theme/manager/Decoration.js +177 -154
  668. package/source/class/qx/test/theme/manager/Font.js +68 -39
  669. package/source/class/qx/test/theme/manager/Icon.js +46 -43
  670. package/source/class/qx/test/theme/manager/Meta.js +121 -110
  671. package/source/class/qx/test/theme/manager/__init__.js +4 -4
  672. package/source/class/qx/test/theme/manager/mock/Appearance.js +17 -23
  673. package/source/class/qx/test/theme/manager/mock/Color.js +7 -9
  674. package/source/class/qx/test/theme/manager/mock/Decoration.js +7 -10
  675. package/source/class/qx/test/theme/manager/mock/Font.js +6 -10
  676. package/source/class/qx/test/theme/simple/Appearance.js +268 -210
  677. package/source/class/qx/test/tool/utils/Utils.js +10 -8
  678. package/source/class/qx/test/toolchain/PrivateOptimization.js +20 -13
  679. package/source/class/qx/test/toolchain/TestRunner.js +12 -12
  680. package/source/class/qx/test/toolchain/VariantOptimization.js +37 -26
  681. package/source/class/qx/test/toolchain/__init__.js +4 -4
  682. package/source/class/qx/test/type/Array.js +8 -12
  683. package/source/class/qx/test/type/BaseArray.js +58 -78
  684. package/source/class/qx/test/type/BaseString.js +27 -65
  685. package/source/class/qx/test/type/__init__.js +4 -4
  686. package/source/class/qx/test/ui/BackgroundColor.js +20 -21
  687. package/source/class/qx/test/ui/ChildrenHandling.js +136 -81
  688. package/source/class/qx/test/ui/Destroy.js +310 -248
  689. package/source/class/qx/test/ui/Focus.js +40 -87
  690. package/source/class/qx/test/ui/Insets.js +14 -18
  691. package/source/class/qx/test/ui/LayoutTestCase.js +99 -92
  692. package/source/class/qx/test/ui/LocaleSwitch.js +37 -41
  693. package/source/class/qx/test/ui/RadioItems.js +11 -22
  694. package/source/class/qx/test/ui/Widget.js +13 -17
  695. package/source/class/qx/test/ui/Window.js +26 -39
  696. package/source/class/qx/test/ui/basic/Atom.js +37 -25
  697. package/source/class/qx/test/ui/basic/Image.js +179 -138
  698. package/source/class/qx/test/ui/basic/Label.js +147 -65
  699. package/source/class/qx/test/ui/basic/__init__.js +4 -4
  700. package/source/class/qx/test/ui/command/Command.js +105 -69
  701. package/source/class/qx/test/ui/command/Group.js +24 -21
  702. package/source/class/qx/test/ui/command/GroupManager.js +7 -12
  703. package/source/class/qx/test/ui/container/Stack.js +26 -36
  704. package/source/class/qx/test/ui/core/AbstractScrollArea.js +84 -67
  705. package/source/class/qx/test/ui/core/Appearance.js +53 -54
  706. package/source/class/qx/test/ui/core/Blocker.js +80 -44
  707. package/source/class/qx/test/ui/core/DragDropScrolling.js +69 -55
  708. package/source/class/qx/test/ui/core/Placement.js +22 -34
  709. package/source/class/qx/test/ui/core/Queues.js +28 -39
  710. package/source/class/qx/test/ui/core/SizeHint.js +32 -76
  711. package/source/class/qx/test/ui/core/SizeHintX.js +8 -15
  712. package/source/class/qx/test/ui/core/SizeHintY.js +8 -15
  713. package/source/class/qx/test/ui/core/Spacer.js +11 -18
  714. package/source/class/qx/test/ui/core/Widget.js +117 -112
  715. package/source/class/qx/test/ui/core/__init__.js +4 -4
  716. package/source/class/qx/test/ui/decoration/LinearGradient.js +18 -14
  717. package/source/class/qx/test/ui/embed/Iframe.js +69 -65
  718. package/source/class/qx/test/ui/embed/__init__.js +4 -4
  719. package/source/class/qx/test/ui/form/AbstractSelectBox.js +11 -16
  720. package/source/class/qx/test/ui/form/AbstractVirtualBox.js +12 -19
  721. package/source/class/qx/test/ui/form/BooleanFormat.js +40 -25
  722. package/source/class/qx/test/ui/form/Color.js +29 -19
  723. package/source/class/qx/test/ui/form/ComboBox.js +39 -25
  724. package/source/class/qx/test/ui/form/Date.js +34 -21
  725. package/source/class/qx/test/ui/form/DateField.js +16 -19
  726. package/source/class/qx/test/ui/form/Executable.js +98 -68
  727. package/source/class/qx/test/ui/form/Field.js +65 -54
  728. package/source/class/qx/test/ui/form/Form.js +211 -123
  729. package/source/class/qx/test/ui/form/FormManager.js +72 -100
  730. package/source/class/qx/test/ui/form/FormValidator.js +549 -399
  731. package/source/class/qx/test/ui/form/Label.js +87 -65
  732. package/source/class/qx/test/ui/form/List.js +19 -19
  733. package/source/class/qx/test/ui/form/MenuButton.js +26 -20
  734. package/source/class/qx/test/ui/form/ModelProperty.js +40 -36
  735. package/source/class/qx/test/ui/form/ModelSelection.js +39 -84
  736. package/source/class/qx/test/ui/form/NumberFormat.js +30 -19
  737. package/source/class/qx/test/ui/form/Placeholder.js +147 -87
  738. package/source/class/qx/test/ui/form/RadioButtonGroup.js +31 -26
  739. package/source/class/qx/test/ui/form/RadioGroup.js +58 -54
  740. package/source/class/qx/test/ui/form/Range.js +63 -28
  741. package/source/class/qx/test/ui/form/Renderer.js +39 -33
  742. package/source/class/qx/test/ui/form/Resetter.js +21 -35
  743. package/source/class/qx/test/ui/form/Slider.js +37 -21
  744. package/source/class/qx/test/ui/form/Spinner.js +9 -5
  745. package/source/class/qx/test/ui/form/SplitButton.js +7 -11
  746. package/source/class/qx/test/ui/form/StringFormat.js +60 -30
  747. package/source/class/qx/test/ui/form/TextArea.js +59 -41
  748. package/source/class/qx/test/ui/form/TextField.js +14 -16
  749. package/source/class/qx/test/ui/form/ToggleButton.js +20 -24
  750. package/source/class/qx/test/ui/form/VirtualSelectBox.js +66 -40
  751. package/source/class/qx/test/ui/form/__init__.js +4 -4
  752. package/source/class/qx/test/ui/form/virtual/VirtualComboBox.js +58 -60
  753. package/source/class/qx/test/ui/form/virtual/VirtualDropDownList.js +120 -110
  754. package/source/class/qx/test/ui/form/virtual/VirtualSelectBox.js +43 -27
  755. package/source/class/qx/test/ui/groupbox/CheckGroupBox.js +13 -18
  756. package/source/class/qx/test/ui/indicator/ProgressBar.js +73 -48
  757. package/source/class/qx/test/ui/layout/Box.js +23 -22
  758. package/source/class/qx/test/ui/layout/Flow.js +233 -153
  759. package/source/class/qx/test/ui/layout/Grid.js +88 -101
  760. package/source/class/qx/test/ui/layout/LayoutItem.js +57 -83
  761. package/source/class/qx/test/ui/layout/LayoutRoot.js +7 -11
  762. package/source/class/qx/test/ui/layout/Util.js +30 -31
  763. package/source/class/qx/test/ui/layout/__init__.js +4 -4
  764. package/source/class/qx/test/ui/list/AbstractListTest.js +13 -21
  765. package/source/class/qx/test/ui/list/Group.js +191 -114
  766. package/source/class/qx/test/ui/list/List.js +189 -132
  767. package/source/class/qx/test/ui/list/MAssert.js +14 -9
  768. package/source/class/qx/test/ui/list/ObjectGroup.js +131 -109
  769. package/source/class/qx/test/ui/list/core/MultiSelection.js +58 -44
  770. package/source/class/qx/test/ui/list/core/SingleSelection.js +43 -43
  771. package/source/class/qx/test/ui/list/fixture/GroupMock.js +6 -9
  772. package/source/class/qx/test/ui/list/fixture/ItemMock.js +9 -13
  773. package/source/class/qx/test/ui/root/Inline.js +22 -20
  774. package/source/class/qx/test/ui/selection/AbstractMultiSelectonTest.js +188 -105
  775. package/source/class/qx/test/ui/selection/AbstractSingleSelectonTest.js +173 -125
  776. package/source/class/qx/test/ui/selection/ListMultiSelection.js +19 -21
  777. package/source/class/qx/test/ui/selection/ListSingleSelection.js +19 -21
  778. package/source/class/qx/test/ui/selection/RadioGroup.js +41 -29
  779. package/source/class/qx/test/ui/selection/SelectBox.js +11 -17
  780. package/source/class/qx/test/ui/selection/Stack.js +22 -27
  781. package/source/class/qx/test/ui/selection/TabView.js +35 -26
  782. package/source/class/qx/test/ui/selection/TreeMultiSelection.js +14 -19
  783. package/source/class/qx/test/ui/selection/TreeSingleSelection.js +20 -24
  784. package/source/class/qx/test/ui/selection/__init__.js +4 -4
  785. package/source/class/qx/test/ui/table/Dispose.js +46 -46
  786. package/source/class/qx/test/ui/table/Table.js +74 -69
  787. package/source/class/qx/test/ui/table/__init__.js +4 -4
  788. package/source/class/qx/test/ui/table/celleditor/AbstractField.js +14 -28
  789. package/source/class/qx/test/ui/table/celleditor/ComboBox.js +11 -18
  790. package/source/class/qx/test/ui/table/celleditor/PasswordField.js +6 -10
  791. package/source/class/qx/test/ui/table/celleditor/SelectBox.js +16 -32
  792. package/source/class/qx/test/ui/table/celleditor/TextField.js +6 -9
  793. package/source/class/qx/test/ui/table/celleditor/__init__.js +4 -4
  794. package/source/class/qx/test/ui/table/columnmodel/Basic.js +130 -129
  795. package/source/class/qx/test/ui/table/model/Filtered.js +51 -36
  796. package/source/class/qx/test/ui/table/model/Simple.js +43 -45
  797. package/source/class/qx/test/ui/table/selection/Model.js +70 -22
  798. package/source/class/qx/test/ui/toolbar/OverflowHandling.js +145 -123
  799. package/source/class/qx/test/ui/toolbar/ToolBar.js +20 -30
  800. package/source/class/qx/test/ui/tree/Tree.js +63 -42
  801. package/source/class/qx/test/ui/tree/TreeFolder.js +44 -46
  802. package/source/class/qx/test/ui/tree/virtual/AbstractTreeTest.js +61 -96
  803. package/source/class/qx/test/ui/tree/virtual/MultiSelection.js +68 -39
  804. package/source/class/qx/test/ui/tree/virtual/OneSelection.js +82 -42
  805. package/source/class/qx/test/ui/tree/virtual/OpenCloseController.js +80 -101
  806. package/source/class/qx/test/ui/tree/virtual/SingleSelection.js +40 -32
  807. package/source/class/qx/test/ui/tree/virtual/Sorting.js +46 -47
  808. package/source/class/qx/test/ui/tree/virtual/Tree.js +267 -191
  809. package/source/class/qx/test/ui/tree/virtual/TreeItem.js +60 -63
  810. package/source/class/qx/test/ui/tree/virtual/UtilTest.js +65 -50
  811. package/source/class/qx/test/ui/tree/virtual/WidgetProvider.js +127 -132
  812. package/source/class/qx/test/ui/virtual/Axis.js +210 -193
  813. package/source/class/qx/test/ui/virtual/Pane.js +287 -190
  814. package/source/class/qx/test/ui/virtual/PaneUpdate.js +71 -77
  815. package/source/class/qx/test/ui/virtual/PointerEventMock.js +10 -13
  816. package/source/class/qx/test/ui/virtual/Scroller.js +29 -39
  817. package/source/class/qx/test/ui/virtual/__init__.js +4 -4
  818. package/source/class/qx/test/ui/virtual/cell/WidgetCell.js +39 -40
  819. package/source/class/qx/test/ui/virtual/layer/CellSpanManager.js +157 -127
  820. package/source/class/qx/test/ui/virtual/layer/Column.js +6 -10
  821. package/source/class/qx/test/ui/virtual/layer/GridLines.js +6 -10
  822. package/source/class/qx/test/ui/virtual/layer/GridLinesHorizontal.js +6 -9
  823. package/source/class/qx/test/ui/virtual/layer/GridLinesVertical.js +6 -9
  824. package/source/class/qx/test/ui/virtual/layer/HtmlCell.js +12 -19
  825. package/source/class/qx/test/ui/virtual/layer/HtmlCellSpan.js +13 -21
  826. package/source/class/qx/test/ui/virtual/layer/LayerMock.js +31 -43
  827. package/source/class/qx/test/ui/virtual/layer/LayerSimple.js +26 -26
  828. package/source/class/qx/test/ui/virtual/layer/LayerTestCase.js +52 -50
  829. package/source/class/qx/test/ui/virtual/layer/Row.js +6 -10
  830. package/source/class/qx/test/ui/virtual/layer/WidgetCell.js +45 -52
  831. package/source/class/qx/test/ui/virtual/layer/WidgetCellSpan.js +71 -48
  832. package/source/class/qx/test/ui/virtual/layer/__init__.js +4 -4
  833. package/source/class/qx/test/ui/virtual/performance/AbstractLayerTest.js +84 -68
  834. package/source/class/qx/test/ui/virtual/performance/DomCell.js +6 -9
  835. package/source/class/qx/test/ui/virtual/performance/DomPoolCell.js +6 -9
  836. package/source/class/qx/test/ui/virtual/performance/HtmlDivCell.js +7 -11
  837. package/source/class/qx/test/ui/virtual/performance/HtmlDivRelative.js +6 -9
  838. package/source/class/qx/test/ui/virtual/performance/HtmlTableCell.js +8 -13
  839. package/source/class/qx/test/ui/virtual/performance/HtmlTableCellNaive.js +8 -13
  840. package/source/class/qx/test/ui/virtual/performance/HtmlTableCssCell.js +8 -19
  841. package/source/class/qx/test/ui/virtual/performance/WidgetCell.js +10 -15
  842. package/source/class/qx/test/ui/virtual/performance/__init__.js +4 -4
  843. package/source/class/qx/test/ui/virtual/performance/layer/DomCell.js +24 -18
  844. package/source/class/qx/test/ui/virtual/performance/layer/DomPoolCell.js +28 -26
  845. package/source/class/qx/test/ui/virtual/performance/layer/HtmlDivRelative.js +13 -17
  846. package/source/class/qx/test/ui/virtual/performance/layer/HtmlTableCell.js +29 -28
  847. package/source/class/qx/test/ui/virtual/performance/layer/HtmlTableCellNaive.js +22 -24
  848. package/source/class/qx/test/ui/virtual/performance/layer/HtmlTableCssCell.js +32 -47
  849. package/source/class/qx/test/ui/virtual/performance/layer/__init__.js +4 -4
  850. package/source/class/qx/test/ui/window/Desktop.js +21 -12
  851. package/source/class/qx/test/util/Base64.js +10 -13
  852. package/source/class/qx/test/util/ColorUtil.js +121 -54
  853. package/source/class/qx/test/util/DateFormat.js +582 -351
  854. package/source/class/qx/test/util/DateMock.js +16 -19
  855. package/source/class/qx/test/util/DeferredCall.js +12 -13
  856. package/source/class/qx/test/util/Delegate.js +28 -26
  857. package/source/class/qx/test/util/DisposeUtil.js +32 -14
  858. package/source/class/qx/test/util/DynamicScriptLoader.js +99 -64
  859. package/source/class/qx/test/util/Fsm.js +16 -18
  860. package/source/class/qx/test/util/Function.js +23 -19
  861. package/source/class/qx/test/util/LibraryManager.js +15 -22
  862. package/source/class/qx/test/util/NumberFormat.js +53 -64
  863. package/source/class/qx/test/util/PropertyUtil.js +35 -35
  864. package/source/class/qx/test/util/Request.js +26 -18
  865. package/source/class/qx/test/util/ResourceManager.js +50 -35
  866. package/source/class/qx/test/util/ResponseParser.js +45 -35
  867. package/source/class/qx/test/util/RingBuffer.js +15 -28
  868. package/source/class/qx/test/util/Serializer.js +210 -153
  869. package/source/class/qx/test/util/StringBuilder.js +7 -13
  870. package/source/class/qx/test/util/StringSplit.js +114 -69
  871. package/source/class/qx/test/util/Uri.js +74 -78
  872. package/source/class/qx/test/util/Validate.js +95 -64
  873. package/source/class/qx/test/util/placement/BestFitAxis.js +17 -26
  874. package/source/class/qx/test/util/placement/DirectAxis.js +8 -11
  875. package/source/class/qx/test/util/placement/KeepAlignAxis.js +17 -26
  876. package/source/class/qx/test/util/placement/Placement.js +607 -244
  877. package/source/class/qx/test/util/placement/__init__.js +4 -4
  878. package/source/class/qx/theme/Classic.js +9 -11
  879. package/source/class/qx/theme/Indigo.js +9 -11
  880. package/source/class/qx/theme/Modern.js +9 -11
  881. package/source/class/qx/theme/Simple.js +9 -11
  882. package/source/class/qx/theme/TangibleDark.js +1 -1
  883. package/source/class/qx/theme/TangibleLight.js +1 -1
  884. package/source/class/qx/theme/__init__.js +4 -4
  885. package/source/class/qx/theme/classic/Appearance.js +995 -1336
  886. package/source/class/qx/theme/classic/Color.js +83 -83
  887. package/source/class/qx/theme/classic/Decoration.js +318 -299
  888. package/source/class/qx/theme/classic/Font.js +38 -25
  889. package/source/class/qx/theme/icon/Oxygen.js +4 -5
  890. package/source/class/qx/theme/icon/Tango.js +4 -5
  891. package/source/class/qx/theme/indigo/Appearance.js +66 -85
  892. package/source/class/qx/theme/indigo/Color.js +65 -66
  893. package/source/class/qx/theme/indigo/Decoration.js +31 -45
  894. package/source/class/qx/theme/indigo/Font.js +20 -29
  895. package/source/class/qx/theme/manager/Appearance.js +58 -91
  896. package/source/class/qx/theme/manager/Color.js +20 -41
  897. package/source/class/qx/theme/manager/Decoration.js +72 -100
  898. package/source/class/qx/theme/manager/Font.js +51 -67
  899. package/source/class/qx/theme/manager/Icon.js +13 -27
  900. package/source/class/qx/theme/manager/Meta.js +27 -44
  901. package/source/class/qx/theme/modern/Appearance.js +1049 -1440
  902. package/source/class/qx/theme/modern/Color.js +155 -166
  903. package/source/class/qx/theme/modern/Decoration.js +471 -598
  904. package/source/class/qx/theme/modern/Font.js +59 -52
  905. package/source/class/qx/theme/simple/Appearance.js +936 -1207
  906. package/source/class/qx/theme/simple/Color.js +62 -62
  907. package/source/class/qx/theme/simple/Decoration.js +456 -678
  908. package/source/class/qx/theme/simple/Font.js +18 -25
  909. package/source/class/qx/theme/simple/Image.js +49 -52
  910. package/source/class/qx/theme/tangible/Appearance.js +1575 -1743
  911. package/source/class/qx/theme/tangible/ColorDark.js +5 -5
  912. package/source/class/qx/theme/tangible/ColorEngine.js +38 -35
  913. package/source/class/qx/theme/tangible/ColorLight.js +7 -7
  914. package/source/class/qx/theme/tangible/Decoration.js +1108 -1300
  915. package/source/class/qx/theme/tangible/Font.js +66 -70
  916. package/source/class/qx/theme/tangible/Image.js +44 -48
  917. package/source/class/qx/tool/cli/Application.js +5 -5
  918. package/source/class/qx/tool/cli/Cli.js +103 -52
  919. package/source/class/qx/tool/cli/ConfigDb.js +18 -15
  920. package/source/class/qx/tool/cli/LibraryApplication.js +1 -1
  921. package/source/class/qx/tool/cli/Watch.js +174 -102
  922. package/source/class/qx/tool/cli/api/AbstractApi.js +17 -18
  923. package/source/class/qx/tool/cli/api/CompilerApi.js +15 -8
  924. package/source/class/qx/tool/cli/api/LibraryApi.js +4 -6
  925. package/source/class/qx/tool/cli/api/Test.js +12 -9
  926. package/source/class/qx/tool/cli/commands/Add.js +12 -15
  927. package/source/class/qx/tool/cli/commands/Clean.js +10 -9
  928. package/source/class/qx/tool/cli/commands/Command.js +18 -13
  929. package/source/class/qx/tool/cli/commands/Compile.js +630 -264
  930. package/source/class/qx/tool/cli/commands/Config.js +75 -42
  931. package/source/class/qx/tool/cli/commands/Create.js +108 -59
  932. package/source/class/qx/tool/cli/commands/Deploy.js +138 -86
  933. package/source/class/qx/tool/cli/commands/Es6ify.js +118 -0
  934. package/source/class/qx/tool/cli/commands/Lint.js +75 -34
  935. package/source/class/qx/tool/cli/commands/Migrate.js +13 -7
  936. package/source/class/qx/tool/cli/commands/Package.js +67 -45
  937. package/source/class/qx/tool/cli/commands/Pkg.js +21 -18
  938. package/source/class/qx/tool/cli/commands/Run.js +57 -37
  939. package/source/class/qx/tool/cli/commands/Serve.js +62 -37
  940. package/source/class/qx/tool/cli/commands/Test.js +40 -18
  941. package/source/class/qx/tool/cli/commands/add/Class.js +66 -28
  942. package/source/class/qx/tool/cli/commands/add/Script.js +54 -27
  943. package/source/class/qx/tool/cli/commands/package/Install.js +265 -103
  944. package/source/class/qx/tool/cli/commands/package/List.js +199 -75
  945. package/source/class/qx/tool/cli/commands/package/Migrate.js +7 -3
  946. package/source/class/qx/tool/cli/commands/package/Publish.js +209 -117
  947. package/source/class/qx/tool/cli/commands/package/Remove.js +40 -17
  948. package/source/class/qx/tool/cli/commands/package/Update.js +115 -48
  949. package/source/class/qx/tool/cli/commands/package/Upgrade.js +41 -20
  950. package/source/class/qx/tool/compiler/Analyser.js +427 -222
  951. package/source/class/qx/tool/compiler/ClassFile.js +831 -401
  952. package/source/class/qx/tool/compiler/Console.js +136 -87
  953. package/source/class/qx/tool/compiler/Es6ify.js +404 -0
  954. package/source/class/qx/tool/compiler/Preprocess.js +28 -25
  955. package/source/class/qx/tool/compiler/app/Application.js +149 -72
  956. package/source/class/qx/tool/compiler/app/Cldr.js +506 -106
  957. package/source/class/qx/tool/compiler/app/Library.js +62 -27
  958. package/source/class/qx/tool/compiler/app/Part.js +10 -12
  959. package/source/class/qx/tool/compiler/app/Translation.js +189 -162
  960. package/source/class/qx/tool/compiler/app/WebFont.js +215 -161
  961. package/source/class/qx/tool/compiler/jsdoc/ChildControlParser.js +3 -3
  962. package/source/class/qx/tool/compiler/jsdoc/CommandParser.js +8 -9
  963. package/source/class/qx/tool/compiler/jsdoc/ParamParser.js +7 -6
  964. package/source/class/qx/tool/compiler/jsdoc/Parser.js +27 -18
  965. package/source/class/qx/tool/compiler/jsdoc/ReturnParser.js +3 -3
  966. package/source/class/qx/tool/compiler/jsdoc/ThrowsParser.js +4 -4
  967. package/source/class/qx/tool/compiler/makers/AbstractAppMaker.js +5 -6
  968. package/source/class/qx/tool/compiler/makers/AppMaker.js +38 -18
  969. package/source/class/qx/tool/compiler/makers/Maker.js +29 -21
  970. package/source/class/qx/tool/compiler/resources/AbstractMatcher.js +8 -8
  971. package/source/class/qx/tool/compiler/resources/Asset.js +123 -61
  972. package/source/class/qx/tool/compiler/resources/ImageLoader.js +18 -8
  973. package/source/class/qx/tool/compiler/resources/Manager.js +156 -93
  974. package/source/class/qx/tool/compiler/resources/MetaLoader.js +5 -3
  975. package/source/class/qx/tool/compiler/resources/ResourceConverter.js +8 -8
  976. package/source/class/qx/tool/compiler/resources/ResourceLoader.js +8 -9
  977. package/source/class/qx/tool/compiler/resources/ScssConverter.js +54 -18
  978. package/source/class/qx/tool/compiler/resources/ScssFile.js +157 -80
  979. package/source/class/qx/tool/compiler/resources/ScssIncludeConverter.js +3 -3
  980. package/source/class/qx/tool/compiler/targets/BuildTarget.js +23 -13
  981. package/source/class/qx/tool/compiler/targets/SourceCodeCopier.js +29 -9
  982. package/source/class/qx/tool/compiler/targets/SourceTarget.js +2 -2
  983. package/source/class/qx/tool/compiler/targets/Target.js +292 -188
  984. package/source/class/qx/tool/compiler/targets/TypeScriptWriter.js +163 -103
  985. package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +48 -23
  986. package/source/class/qx/tool/compiler/targets/meta/ApplicationMeta.js +75 -62
  987. package/source/class/qx/tool/compiler/targets/meta/BootJs.js +49 -29
  988. package/source/class/qx/tool/compiler/targets/meta/Javascript.js +6 -7
  989. package/source/class/qx/tool/compiler/targets/meta/Package.js +54 -51
  990. package/source/class/qx/tool/compiler/targets/meta/PackageJavascript.js +41 -21
  991. package/source/class/qx/tool/compiler/targets/meta/Part.js +9 -10
  992. package/source/class/qx/tool/compiler/targets/meta/PolyfillJs.js +10 -5
  993. package/source/class/qx/tool/compiler/targets/meta/Uglify.js +35 -23
  994. package/source/class/qx/tool/config/Abstract.js +61 -25
  995. package/source/class/qx/tool/config/Compile.js +3 -2
  996. package/source/class/qx/tool/config/Lockfile.js +3 -2
  997. package/source/class/qx/tool/config/Manifest.js +3 -2
  998. package/source/class/qx/tool/config/Registry.js +4 -3
  999. package/source/class/qx/tool/config/Utils.js +88 -37
  1000. package/source/class/qx/tool/migration/BaseMigration.js +67 -25
  1001. package/source/class/qx/tool/migration/M6_0_0.js +96 -46
  1002. package/source/class/qx/tool/migration/M7_0_0.js +12 -6
  1003. package/source/class/qx/tool/migration/Runner.js +28 -14
  1004. package/source/class/qx/tool/utils/IndexedArray.js +15 -18
  1005. package/source/class/qx/tool/utils/Json.js +35 -14
  1006. package/source/class/qx/tool/utils/LogManager.js +50 -26
  1007. package/source/class/qx/tool/utils/Logger.js +11 -12
  1008. package/source/class/qx/tool/utils/Promisify.js +45 -49
  1009. package/source/class/qx/tool/utils/Utils.js +63 -48
  1010. package/source/class/qx/tool/utils/Values.js +4 -7
  1011. package/source/class/qx/tool/utils/Website.js +82 -29
  1012. package/source/class/qx/tool/utils/files/FindFiles.js +37 -33
  1013. package/source/class/qx/tool/utils/files/Utils.js +74 -54
  1014. package/source/class/qx/tool/utils/json/Parser.js +163 -54
  1015. package/source/class/qx/tool/utils/json/Stringify.js +87 -72
  1016. package/source/class/qx/tool/utils/json/Tokenizer.js +64 -39
  1017. package/source/class/qx/tool/utils/json/Writer.js +20 -21
  1018. package/source/class/qx/type/Array.js +19 -41
  1019. package/source/class/qx/type/BaseArray.js +136 -151
  1020. package/source/class/qx/type/BaseError.js +17 -34
  1021. package/source/class/qx/type/BaseString.js +104 -121
  1022. package/source/class/qx/type/__init__.js +3 -3
  1023. package/source/class/qx/ui/basic/Atom.js +75 -109
  1024. package/source/class/qx/ui/basic/Image.js +283 -319
  1025. package/source/class/qx/ui/basic/Label.js +161 -208
  1026. package/source/class/qx/ui/command/Command.js +51 -86
  1027. package/source/class/qx/ui/command/Group.js +43 -50
  1028. package/source/class/qx/ui/command/GroupManager.js +50 -53
  1029. package/source/class/qx/ui/container/Composite.js +15 -29
  1030. package/source/class/qx/ui/container/Resizer.js +7 -11
  1031. package/source/class/qx/ui/container/Scroll.js +10 -21
  1032. package/source/class/qx/ui/container/SlideBar.js +76 -119
  1033. package/source/class/qx/ui/container/Stack.js +27 -54
  1034. package/source/class/qx/ui/control/ColorPopup.js +109 -130
  1035. package/source/class/qx/ui/control/ColorSelector.js +334 -301
  1036. package/source/class/qx/ui/control/DateChooser.js +143 -177
  1037. package/source/class/qx/ui/core/Blocker.js +91 -127
  1038. package/source/class/qx/ui/core/ColumnData.js +16 -34
  1039. package/source/class/qx/ui/core/DragDropCursor.js +17 -30
  1040. package/source/class/qx/ui/core/DragDropScrolling.js +8 -14
  1041. package/source/class/qx/ui/core/EventHandler.js +108 -132
  1042. package/source/class/qx/ui/core/FocusHandler.js +78 -127
  1043. package/source/class/qx/ui/core/IMultiSelection.js +5 -9
  1044. package/source/class/qx/ui/core/ISingleSelection.js +10 -16
  1045. package/source/class/qx/ui/core/ISingleSelectionProvider.js +4 -6
  1046. package/source/class/qx/ui/core/LayoutItem.js +190 -306
  1047. package/source/class/qx/ui/core/MBlocker.js +22 -38
  1048. package/source/class/qx/ui/core/MChildrenHandling.js +14 -29
  1049. package/source/class/qx/ui/core/MContentPadding.js +50 -69
  1050. package/source/class/qx/ui/core/MDragDropScrolling.js +82 -80
  1051. package/source/class/qx/ui/core/MExecutable.js +27 -52
  1052. package/source/class/qx/ui/core/MLayoutHandling.js +6 -14
  1053. package/source/class/qx/ui/core/MMovable.js +64 -80
  1054. package/source/class/qx/ui/core/MMultiSelectionHandling.js +68 -87
  1055. package/source/class/qx/ui/core/MNativeOverflow.js +16 -26
  1056. package/source/class/qx/ui/core/MPlacement.js +171 -170
  1057. package/source/class/qx/ui/core/MRemoteChildrenHandling.js +14 -27
  1058. package/source/class/qx/ui/core/MRemoteLayoutHandling.js +4 -7
  1059. package/source/class/qx/ui/core/MResizable.js +142 -175
  1060. package/source/class/qx/ui/core/MSingleSelectionHandling.js +40 -45
  1061. package/source/class/qx/ui/core/SingleSelectionManager.js +41 -60
  1062. package/source/class/qx/ui/core/Spacer.js +12 -22
  1063. package/source/class/qx/ui/core/Widget.js +628 -983
  1064. package/source/class/qx/ui/core/queue/Appearance.js +15 -24
  1065. package/source/class/qx/ui/core/queue/Dispose.js +7 -16
  1066. package/source/class/qx/ui/core/queue/Layout.js +44 -71
  1067. package/source/class/qx/ui/core/queue/Manager.js +140 -133
  1068. package/source/class/qx/ui/core/queue/Visibility.js +21 -39
  1069. package/source/class/qx/ui/core/queue/Widget.js +15 -26
  1070. package/source/class/qx/ui/core/scroll/AbstractScrollArea.js +124 -162
  1071. package/source/class/qx/ui/core/scroll/IScrollBar.js +13 -24
  1072. package/source/class/qx/ui/core/scroll/MRoll.js +14 -19
  1073. package/source/class/qx/ui/core/scroll/MScrollBarFactory.js +3 -6
  1074. package/source/class/qx/ui/core/scroll/MWheelHandling.js +10 -12
  1075. package/source/class/qx/ui/core/scroll/NativeScrollBar.js +101 -125
  1076. package/source/class/qx/ui/core/scroll/ScrollBar.js +86 -130
  1077. package/source/class/qx/ui/core/scroll/ScrollPane.js +95 -134
  1078. package/source/class/qx/ui/core/scroll/ScrollSlider.js +13 -19
  1079. package/source/class/qx/ui/core/scroll/__init__.js +4 -4
  1080. package/source/class/qx/ui/core/selection/Abstract.js +255 -456
  1081. package/source/class/qx/ui/core/selection/ScrollArea.js +35 -73
  1082. package/source/class/qx/ui/core/selection/Widget.js +57 -120
  1083. package/source/class/qx/ui/decoration/Abstract.js +11 -20
  1084. package/source/class/qx/ui/decoration/Decorator.js +56 -55
  1085. package/source/class/qx/ui/decoration/IDecorator.js +5 -11
  1086. package/source/class/qx/ui/decoration/MBackgroundColor.js +13 -20
  1087. package/source/class/qx/ui/decoration/MBackgroundImage.js +82 -77
  1088. package/source/class/qx/ui/decoration/MBorderImage.js +72 -94
  1089. package/source/class/qx/ui/decoration/MBorderRadius.js +35 -38
  1090. package/source/class/qx/ui/decoration/MBoxShadow.js +61 -55
  1091. package/source/class/qx/ui/decoration/MDoubleBorder.js +157 -155
  1092. package/source/class/qx/ui/decoration/MLinearBackgroundGradient.js +169 -89
  1093. package/source/class/qx/ui/decoration/MSingleBorder.js +138 -124
  1094. package/source/class/qx/ui/decoration/MTransition.js +46 -42
  1095. package/source/class/qx/ui/decoration/__init__.js +2 -2
  1096. package/source/class/qx/ui/embed/AbstractIframe.js +37 -55
  1097. package/source/class/qx/ui/embed/Canvas.js +34 -66
  1098. package/source/class/qx/ui/embed/Html.js +46 -70
  1099. package/source/class/qx/ui/embed/Iframe.js +178 -158
  1100. package/source/class/qx/ui/embed/ThemedIframe.js +91 -135
  1101. package/source/class/qx/ui/form/AbstractField.js +262 -303
  1102. package/source/class/qx/ui/form/AbstractSelectBox.js +65 -87
  1103. package/source/class/qx/ui/form/Button.js +35 -73
  1104. package/source/class/qx/ui/form/CheckBox.js +26 -48
  1105. package/source/class/qx/ui/form/CheckedList.js +41 -25
  1106. package/source/class/qx/ui/form/CheckedSelectBox.js +97 -62
  1107. package/source/class/qx/ui/form/ComboBox.js +93 -121
  1108. package/source/class/qx/ui/form/DateField.js +140 -181
  1109. package/source/class/qx/ui/form/Form.js +50 -69
  1110. package/source/class/qx/ui/form/HoverButton.js +37 -54
  1111. package/source/class/qx/ui/form/IArrayForm.js +8 -16
  1112. package/source/class/qx/ui/form/IBooleanForm.js +8 -16
  1113. package/source/class/qx/ui/form/IColorForm.js +8 -16
  1114. package/source/class/qx/ui/form/IDateForm.js +8 -16
  1115. package/source/class/qx/ui/form/IExecutable.js +7 -14
  1116. package/source/class/qx/ui/form/IField.js +7 -14
  1117. package/source/class/qx/ui/form/IForm.js +17 -32
  1118. package/source/class/qx/ui/form/IListItem.js +1 -4
  1119. package/source/class/qx/ui/form/IModel.js +7 -15
  1120. package/source/class/qx/ui/form/IModelForm.js +8 -16
  1121. package/source/class/qx/ui/form/IModelSelection.js +4 -8
  1122. package/source/class/qx/ui/form/INumberForm.js +8 -15
  1123. package/source/class/qx/ui/form/IRadioItem.js +8 -17
  1124. package/source/class/qx/ui/form/IRange.js +10 -20
  1125. package/source/class/qx/ui/form/IStringForm.js +8 -16
  1126. package/source/class/qx/ui/form/List.js +82 -122
  1127. package/source/class/qx/ui/form/ListItem.js +21 -38
  1128. package/source/class/qx/ui/form/MForm.js +35 -41
  1129. package/source/class/qx/ui/form/MModelProperty.js +9 -14
  1130. package/source/class/qx/ui/form/MModelSelection.js +30 -32
  1131. package/source/class/qx/ui/form/MenuButton.js +44 -75
  1132. package/source/class/qx/ui/form/PasswordField.js +4 -6
  1133. package/source/class/qx/ui/form/RadioButton.js +36 -72
  1134. package/source/class/qx/ui/form/RadioButtonGroup.js +67 -82
  1135. package/source/class/qx/ui/form/RadioGroup.js +92 -127
  1136. package/source/class/qx/ui/form/RepeatButton.js +57 -106
  1137. package/source/class/qx/ui/form/Resetter.js +19 -29
  1138. package/source/class/qx/ui/form/SelectBox.js +56 -104
  1139. package/source/class/qx/ui/form/Slider.js +202 -269
  1140. package/source/class/qx/ui/form/Spinner.js +173 -217
  1141. package/source/class/qx/ui/form/SplitButton.js +73 -115
  1142. package/source/class/qx/ui/form/Tag.js +7 -8
  1143. package/source/class/qx/ui/form/TextArea.js +147 -153
  1144. package/source/class/qx/ui/form/TextField.js +37 -46
  1145. package/source/class/qx/ui/form/ToggleButton.js +54 -90
  1146. package/source/class/qx/ui/form/VirtualComboBox.js +73 -113
  1147. package/source/class/qx/ui/form/VirtualSelectBox.js +264 -274
  1148. package/source/class/qx/ui/form/core/AbstractVirtualBox.js +117 -157
  1149. package/source/class/qx/ui/form/core/VirtualDropDownList.js +101 -144
  1150. package/source/class/qx/ui/form/renderer/AbstractRenderer.js +48 -55
  1151. package/source/class/qx/ui/form/renderer/Double.js +25 -34
  1152. package/source/class/qx/ui/form/renderer/IFormRenderer.js +4 -8
  1153. package/source/class/qx/ui/form/renderer/Single.js +25 -35
  1154. package/source/class/qx/ui/form/renderer/SinglePlaceholder.js +12 -11
  1155. package/source/class/qx/ui/form/renderer/__init__.js +5 -5
  1156. package/source/class/qx/ui/form/validation/AsyncValidator.js +13 -19
  1157. package/source/class/qx/ui/form/validation/Manager.js +74 -108
  1158. package/source/class/qx/ui/form/validation/__init__.js +6 -6
  1159. package/source/class/qx/ui/groupbox/CheckGroupBox.js +30 -47
  1160. package/source/class/qx/ui/groupbox/GroupBox.js +36 -75
  1161. package/source/class/qx/ui/groupbox/RadioGroupBox.js +29 -59
  1162. package/source/class/qx/ui/groupbox/__init__.js +3 -3
  1163. package/source/class/qx/ui/indicator/ProgressBar.js +29 -46
  1164. package/source/class/qx/ui/layout/Abstract.js +28 -53
  1165. package/source/class/qx/ui/layout/Atom.js +95 -111
  1166. package/source/class/qx/ui/layout/Basic.js +29 -30
  1167. package/source/class/qx/ui/layout/Canvas.js +62 -99
  1168. package/source/class/qx/ui/layout/Dock.js +266 -250
  1169. package/source/class/qx/ui/layout/Flow.js +50 -76
  1170. package/source/class/qx/ui/layout/Grid.js +268 -343
  1171. package/source/class/qx/ui/layout/Grow.js +26 -32
  1172. package/source/class/qx/ui/layout/HBox.js +137 -153
  1173. package/source/class/qx/ui/layout/LineSizeIterator.js +19 -28
  1174. package/source/class/qx/ui/layout/Util.js +91 -120
  1175. package/source/class/qx/ui/layout/VBox.js +125 -147
  1176. package/source/class/qx/ui/list/List.js +148 -262
  1177. package/source/class/qx/ui/list/core/IListDelegate.js +13 -26
  1178. package/source/class/qx/ui/list/core/MWidgetController.js +51 -78
  1179. package/source/class/qx/ui/list/provider/IListProvider.js +15 -28
  1180. package/source/class/qx/ui/list/provider/WidgetProvider.js +52 -84
  1181. package/source/class/qx/ui/menu/AbstractButton.js +118 -127
  1182. package/source/class/qx/ui/menu/Button.js +11 -25
  1183. package/source/class/qx/ui/menu/ButtonLayout.js +49 -37
  1184. package/source/class/qx/ui/menu/CheckBox.js +21 -46
  1185. package/source/class/qx/ui/menu/Layout.js +45 -51
  1186. package/source/class/qx/ui/menu/Manager.js +131 -209
  1187. package/source/class/qx/ui/menu/Menu.js +164 -259
  1188. package/source/class/qx/ui/menu/MenuSlideBar.js +13 -20
  1189. package/source/class/qx/ui/menu/RadioButton.js +29 -51
  1190. package/source/class/qx/ui/menu/Separator.js +9 -16
  1191. package/source/class/qx/ui/menubar/Button.js +23 -41
  1192. package/source/class/qx/ui/menubar/MenuBar.js +9 -13
  1193. package/source/class/qx/ui/mobile/__init__.js +5 -5
  1194. package/source/class/qx/ui/mobile/basic/Atom.js +79 -101
  1195. package/source/class/qx/ui/mobile/basic/Image.js +80 -86
  1196. package/source/class/qx/ui/mobile/basic/Label.js +38 -54
  1197. package/source/class/qx/ui/mobile/container/Carousel.js +281 -188
  1198. package/source/class/qx/ui/mobile/container/Collapsible.js +57 -77
  1199. package/source/class/qx/ui/mobile/container/Composite.js +9 -13
  1200. package/source/class/qx/ui/mobile/container/Drawer.js +167 -164
  1201. package/source/class/qx/ui/mobile/container/INavigation.js +6 -10
  1202. package/source/class/qx/ui/mobile/container/IScrollDelegate.js +4 -6
  1203. package/source/class/qx/ui/mobile/container/MIScroll.js +108 -100
  1204. package/source/class/qx/ui/mobile/container/MNativeScroll.js +118 -102
  1205. package/source/class/qx/ui/mobile/container/MScrollHandling.js +8 -7
  1206. package/source/class/qx/ui/mobile/container/Navigation.js +46 -65
  1207. package/source/class/qx/ui/mobile/container/Scroll.js +140 -151
  1208. package/source/class/qx/ui/mobile/control/Picker.js +125 -112
  1209. package/source/class/qx/ui/mobile/core/Blocker.js +62 -71
  1210. package/source/class/qx/ui/mobile/core/DomUpdatedHandler.js +24 -60
  1211. package/source/class/qx/ui/mobile/core/EventHandler.js +158 -138
  1212. package/source/class/qx/ui/mobile/core/MChildrenHandling.js +14 -30
  1213. package/source/class/qx/ui/mobile/core/MLayoutHandling.js +6 -14
  1214. package/source/class/qx/ui/mobile/core/MResize.js +16 -30
  1215. package/source/class/qx/ui/mobile/core/Root.js +90 -80
  1216. package/source/class/qx/ui/mobile/core/Widget.js +351 -479
  1217. package/source/class/qx/ui/mobile/dialog/BusyIndicator.js +31 -46
  1218. package/source/class/qx/ui/mobile/dialog/Manager.js +127 -89
  1219. package/source/class/qx/ui/mobile/dialog/Menu.js +111 -122
  1220. package/source/class/qx/ui/mobile/dialog/Popup.js +202 -194
  1221. package/source/class/qx/ui/mobile/embed/Canvas.js +12 -25
  1222. package/source/class/qx/ui/mobile/embed/Html.js +13 -27
  1223. package/source/class/qx/ui/mobile/form/Button.js +12 -18
  1224. package/source/class/qx/ui/mobile/form/CheckBox.js +20 -35
  1225. package/source/class/qx/ui/mobile/form/Form.js +31 -51
  1226. package/source/class/qx/ui/mobile/form/Group.js +18 -30
  1227. package/source/class/qx/ui/mobile/form/Input.js +30 -35
  1228. package/source/class/qx/ui/mobile/form/Label.js +76 -79
  1229. package/source/class/qx/ui/mobile/form/MState.js +20 -27
  1230. package/source/class/qx/ui/mobile/form/MText.js +27 -47
  1231. package/source/class/qx/ui/mobile/form/MValue.js +66 -94
  1232. package/source/class/qx/ui/mobile/form/NumberField.js +30 -47
  1233. package/source/class/qx/ui/mobile/form/PasswordField.js +8 -14
  1234. package/source/class/qx/ui/mobile/form/RadioButton.js +25 -46
  1235. package/source/class/qx/ui/mobile/form/RadioGroup.js +2 -4
  1236. package/source/class/qx/ui/mobile/form/Row.js +14 -29
  1237. package/source/class/qx/ui/mobile/form/SelectBox.js +77 -104
  1238. package/source/class/qx/ui/mobile/form/Slider.js +116 -144
  1239. package/source/class/qx/ui/mobile/form/TextArea.js +26 -39
  1240. package/source/class/qx/ui/mobile/form/TextField.js +18 -28
  1241. package/source/class/qx/ui/mobile/form/Title.js +11 -19
  1242. package/source/class/qx/ui/mobile/form/ToggleButton.js +35 -58
  1243. package/source/class/qx/ui/mobile/form/__init__.js +1 -1
  1244. package/source/class/qx/ui/mobile/form/renderer/AbstractRenderer.js +24 -31
  1245. package/source/class/qx/ui/mobile/form/renderer/Single.js +59 -85
  1246. package/source/class/qx/ui/mobile/form/renderer/SinglePlaceholder.js +8 -16
  1247. package/source/class/qx/ui/mobile/layout/Abstract.js +48 -85
  1248. package/source/class/qx/ui/mobile/layout/AbstractBox.js +93 -125
  1249. package/source/class/qx/ui/mobile/layout/Card.js +133 -116
  1250. package/source/class/qx/ui/mobile/layout/CardAnimation.js +95 -72
  1251. package/source/class/qx/ui/mobile/layout/HBox.js +9 -12
  1252. package/source/class/qx/ui/mobile/layout/VBox.js +9 -12
  1253. package/source/class/qx/ui/mobile/list/IListDelegate.js +5 -9
  1254. package/source/class/qx/ui/mobile/list/List.js +172 -183
  1255. package/source/class/qx/ui/mobile/list/provider/Provider.js +58 -65
  1256. package/source/class/qx/ui/mobile/list/renderer/Abstract.js +54 -82
  1257. package/source/class/qx/ui/mobile/list/renderer/Default.js +39 -55
  1258. package/source/class/qx/ui/mobile/list/renderer/group/Abstract.js +20 -33
  1259. package/source/class/qx/ui/mobile/list/renderer/group/Default.js +29 -45
  1260. package/source/class/qx/ui/mobile/navigationbar/BackButton.js +11 -15
  1261. package/source/class/qx/ui/mobile/navigationbar/Button.js +11 -15
  1262. package/source/class/qx/ui/mobile/navigationbar/NavigationBar.js +23 -29
  1263. package/source/class/qx/ui/mobile/navigationbar/Title.js +12 -20
  1264. package/source/class/qx/ui/mobile/page/Manager.js +195 -169
  1265. package/source/class/qx/ui/mobile/page/NavigationPage.js +132 -196
  1266. package/source/class/qx/ui/mobile/page/Page.js +109 -148
  1267. package/source/class/qx/ui/mobile/tabbar/TabBar.js +41 -62
  1268. package/source/class/qx/ui/mobile/tabbar/TabButton.js +19 -28
  1269. package/source/class/qx/ui/mobile/toolbar/Button.js +7 -11
  1270. package/source/class/qx/ui/mobile/toolbar/Separator.js +11 -15
  1271. package/source/class/qx/ui/mobile/toolbar/ToolBar.js +30 -39
  1272. package/source/class/qx/ui/popup/Manager.js +41 -53
  1273. package/source/class/qx/ui/popup/Popup.js +22 -47
  1274. package/source/class/qx/ui/popup/__init__.js +32 -32
  1275. package/source/class/qx/ui/progressive/Progressive.js +96 -137
  1276. package/source/class/qx/ui/progressive/State.js +12 -19
  1277. package/source/class/qx/ui/progressive/headfoot/Abstract.js +10 -15
  1278. package/source/class/qx/ui/progressive/headfoot/Null.js +4 -7
  1279. package/source/class/qx/ui/progressive/headfoot/Progress.js +67 -69
  1280. package/source/class/qx/ui/progressive/headfoot/TableHeading.js +42 -54
  1281. package/source/class/qx/ui/progressive/model/Abstract.js +8 -15
  1282. package/source/class/qx/ui/progressive/model/Default.js +17 -29
  1283. package/source/class/qx/ui/progressive/renderer/Abstract.js +6 -11
  1284. package/source/class/qx/ui/progressive/renderer/FunctionCaller.js +4 -7
  1285. package/source/class/qx/ui/progressive/renderer/table/Row.js +215 -242
  1286. package/source/class/qx/ui/progressive/renderer/table/Widths.js +32 -47
  1287. package/source/class/qx/ui/progressive/renderer/table/cell/Abstract.js +17 -24
  1288. package/source/class/qx/ui/progressive/renderer/table/cell/Boolean.js +68 -79
  1289. package/source/class/qx/ui/progressive/renderer/table/cell/Conditional.js +146 -199
  1290. package/source/class/qx/ui/progressive/renderer/table/cell/Default.js +14 -32
  1291. package/source/class/qx/ui/progressive/renderer/table/cell/Html.js +2 -3
  1292. package/source/class/qx/ui/progressive/renderer/table/cell/Icon.js +38 -53
  1293. package/source/class/qx/ui/progressive/renderer/table/cell/Image.js +20 -42
  1294. package/source/class/qx/ui/progressive/renderer/table/cell/String.js +6 -12
  1295. package/source/class/qx/ui/progressive/structure/Abstract.js +14 -26
  1296. package/source/class/qx/ui/progressive/structure/Default.js +20 -40
  1297. package/source/class/qx/ui/root/Abstract.js +73 -90
  1298. package/source/class/qx/ui/root/Application.js +57 -61
  1299. package/source/class/qx/ui/root/Inline.js +78 -64
  1300. package/source/class/qx/ui/root/Page.js +25 -46
  1301. package/source/class/qx/ui/splitpane/Blocker.js +20 -30
  1302. package/source/class/qx/ui/splitpane/HLayout.js +53 -49
  1303. package/source/class/qx/ui/splitpane/Pane.js +112 -150
  1304. package/source/class/qx/ui/splitpane/Slider.js +9 -15
  1305. package/source/class/qx/ui/splitpane/Splitter.js +27 -46
  1306. package/source/class/qx/ui/splitpane/VLayout.js +53 -49
  1307. package/source/class/qx/ui/style/Stylesheet.js +12 -19
  1308. package/source/class/qx/ui/table/ICellEditorFactory.js +4 -8
  1309. package/source/class/qx/ui/table/ICellRenderer.js +3 -7
  1310. package/source/class/qx/ui/table/IColumnMenuButton.js +6 -11
  1311. package/source/class/qx/ui/table/IColumnMenuItem.js +5 -8
  1312. package/source/class/qx/ui/table/IHeaderRenderer.js +4 -8
  1313. package/source/class/qx/ui/table/IRowRenderer.js +6 -12
  1314. package/source/class/qx/ui/table/ITableModel.js +23 -41
  1315. package/source/class/qx/ui/table/MTableContextMenu.js +25 -28
  1316. package/source/class/qx/ui/table/Table.js +556 -748
  1317. package/source/class/qx/ui/table/celleditor/AbstractField.js +16 -26
  1318. package/source/class/qx/ui/table/celleditor/CheckBox.js +15 -16
  1319. package/source/class/qx/ui/table/celleditor/ComboBox.js +24 -34
  1320. package/source/class/qx/ui/table/celleditor/Dynamic.js +25 -32
  1321. package/source/class/qx/ui/table/celleditor/PasswordField.js +4 -8
  1322. package/source/class/qx/ui/table/celleditor/SelectBox.js +29 -38
  1323. package/source/class/qx/ui/table/celleditor/TextField.js +9 -14
  1324. package/source/class/qx/ui/table/cellrenderer/Abstract.js +78 -73
  1325. package/source/class/qx/ui/table/cellrenderer/AbstractImage.js +65 -84
  1326. package/source/class/qx/ui/table/cellrenderer/Boolean.js +36 -50
  1327. package/source/class/qx/ui/table/cellrenderer/Conditional.js +74 -63
  1328. package/source/class/qx/ui/table/cellrenderer/Date.js +12 -22
  1329. package/source/class/qx/ui/table/cellrenderer/Debug.js +9 -9
  1330. package/source/class/qx/ui/table/cellrenderer/Default.js +30 -52
  1331. package/source/class/qx/ui/table/cellrenderer/Dynamic.js +13 -24
  1332. package/source/class/qx/ui/table/cellrenderer/Html.js +6 -8
  1333. package/source/class/qx/ui/table/cellrenderer/Image.js +13 -26
  1334. package/source/class/qx/ui/table/cellrenderer/Number.js +13 -24
  1335. package/source/class/qx/ui/table/cellrenderer/Password.js +8 -11
  1336. package/source/class/qx/ui/table/cellrenderer/Replace.js +27 -42
  1337. package/source/class/qx/ui/table/cellrenderer/String.js +5 -7
  1338. package/source/class/qx/ui/table/columnmenu/Button.js +19 -29
  1339. package/source/class/qx/ui/table/columnmenu/MenuItem.js +11 -19
  1340. package/source/class/qx/ui/table/columnmenu/__init__.js +4 -4
  1341. package/source/class/qx/ui/table/columnmenu/grid/__init__.js +4 -4
  1342. package/source/class/qx/ui/table/columnmenu/simple/__init__.js +4 -4
  1343. package/source/class/qx/ui/table/columnmodel/Basic.js +193 -215
  1344. package/source/class/qx/ui/table/columnmodel/Resize.js +65 -111
  1345. package/source/class/qx/ui/table/columnmodel/resizebehavior/Abstract.js +17 -24
  1346. package/source/class/qx/ui/table/columnmodel/resizebehavior/Default.js +66 -117
  1347. package/source/class/qx/ui/table/headerrenderer/Default.js +25 -46
  1348. package/source/class/qx/ui/table/headerrenderer/HeaderCell.js +36 -51
  1349. package/source/class/qx/ui/table/headerrenderer/Icon.js +11 -27
  1350. package/source/class/qx/ui/table/model/Abstract.js +52 -62
  1351. package/source/class/qx/ui/table/model/Filtered.js +121 -153
  1352. package/source/class/qx/ui/table/model/Remote.js +166 -271
  1353. package/source/class/qx/ui/table/model/Simple.js +225 -252
  1354. package/source/class/qx/ui/table/pane/CellEvent.js +25 -32
  1355. package/source/class/qx/ui/table/pane/Clipper.js +8 -12
  1356. package/source/class/qx/ui/table/pane/FocusIndicator.js +42 -48
  1357. package/source/class/qx/ui/table/pane/Header.js +45 -86
  1358. package/source/class/qx/ui/table/pane/Model.js +73 -96
  1359. package/source/class/qx/ui/table/pane/Pane.js +132 -190
  1360. package/source/class/qx/ui/table/pane/Scroller.js +542 -659
  1361. package/source/class/qx/ui/table/rowrenderer/Default.js +75 -86
  1362. package/source/class/qx/ui/table/selection/Manager.js +23 -57
  1363. package/source/class/qx/ui/table/selection/Model.js +89 -179
  1364. package/source/class/qx/ui/tabview/Page.js +48 -79
  1365. package/source/class/qx/ui/tabview/TabButton.js +45 -72
  1366. package/source/class/qx/ui/tabview/TabView.js +94 -141
  1367. package/source/class/qx/ui/toolbar/Button.js +13 -18
  1368. package/source/class/qx/ui/toolbar/CheckBox.js +13 -17
  1369. package/source/class/qx/ui/toolbar/MenuButton.js +18 -34
  1370. package/source/class/qx/ui/toolbar/Part.js +42 -64
  1371. package/source/class/qx/ui/toolbar/PartContainer.js +19 -28
  1372. package/source/class/qx/ui/toolbar/RadioButton.js +12 -19
  1373. package/source/class/qx/ui/toolbar/Separator.js +15 -25
  1374. package/source/class/qx/ui/toolbar/SplitButton.js +19 -28
  1375. package/source/class/qx/ui/toolbar/ToolBar.js +182 -232
  1376. package/source/class/qx/ui/tooltip/Manager.js +125 -123
  1377. package/source/class/qx/ui/tooltip/ToolTip.js +49 -79
  1378. package/source/class/qx/ui/tooltip/__init__.js +23 -23
  1379. package/source/class/qx/ui/tree/Tree.js +95 -148
  1380. package/source/class/qx/ui/tree/TreeFile.js +8 -15
  1381. package/source/class/qx/ui/tree/TreeFolder.js +8 -15
  1382. package/source/class/qx/ui/tree/VirtualTree.js +207 -333
  1383. package/source/class/qx/ui/tree/VirtualTreeItem.js +30 -45
  1384. package/source/class/qx/ui/tree/__init__.js +50 -50
  1385. package/source/class/qx/ui/tree/core/AbstractItem.js +98 -152
  1386. package/source/class/qx/ui/tree/core/AbstractTreeItem.js +83 -137
  1387. package/source/class/qx/ui/tree/core/FolderOpenButton.js +15 -34
  1388. package/source/class/qx/ui/tree/core/IVirtualTree.js +13 -33
  1389. package/source/class/qx/ui/tree/core/IVirtualTreeDelegate.js +9 -16
  1390. package/source/class/qx/ui/tree/core/MWidgetController.js +58 -69
  1391. package/source/class/qx/ui/tree/core/OpenCloseController.js +29 -35
  1392. package/source/class/qx/ui/tree/core/Util.js +12 -16
  1393. package/source/class/qx/ui/tree/provider/IVirtualTreeProvider.js +10 -23
  1394. package/source/class/qx/ui/tree/provider/WidgetProvider.js +39 -67
  1395. package/source/class/qx/ui/tree/selection/SelectionManager.js +27 -41
  1396. package/source/class/qx/ui/treevirtual/DefaultDataCellRenderer.js +2 -3
  1397. package/source/class/qx/ui/treevirtual/MFamily.js +26 -63
  1398. package/source/class/qx/ui/treevirtual/MNode.js +43 -103
  1399. package/source/class/qx/ui/treevirtual/MTreePrimitive.js +41 -52
  1400. package/source/class/qx/ui/treevirtual/SelectionManager.js +44 -58
  1401. package/source/class/qx/ui/treevirtual/SimpleTreeDataCellRenderer.js +172 -229
  1402. package/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js +256 -367
  1403. package/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js +8 -18
  1404. package/source/class/qx/ui/treevirtual/TreeVirtual.js +155 -250
  1405. package/source/class/qx/ui/treevirtual/celleditor/NodeEditor.js +10 -16
  1406. package/source/class/qx/ui/treevirtual/pane/Scroller.js +14 -11
  1407. package/source/class/qx/ui/virtual/__init__.js +4 -4
  1408. package/source/class/qx/ui/virtual/behavior/Prefetch.js +71 -86
  1409. package/source/class/qx/ui/virtual/cell/Abstract.js +18 -27
  1410. package/source/class/qx/ui/virtual/cell/AbstractImage.js +42 -51
  1411. package/source/class/qx/ui/virtual/cell/AbstractWidget.js +25 -49
  1412. package/source/class/qx/ui/virtual/cell/Boolean.js +31 -44
  1413. package/source/class/qx/ui/virtual/cell/Cell.js +143 -183
  1414. package/source/class/qx/ui/virtual/cell/CellStylesheet.js +31 -38
  1415. package/source/class/qx/ui/virtual/cell/Date.js +15 -24
  1416. package/source/class/qx/ui/virtual/cell/Html.js +9 -20
  1417. package/source/class/qx/ui/virtual/cell/ICell.js +4 -6
  1418. package/source/class/qx/ui/virtual/cell/IWidgetCell.js +7 -12
  1419. package/source/class/qx/ui/virtual/cell/IWidgetCellDelegate.js +4 -6
  1420. package/source/class/qx/ui/virtual/cell/Image.js +8 -14
  1421. package/source/class/qx/ui/virtual/cell/Number.js +14 -23
  1422. package/source/class/qx/ui/virtual/cell/String.js +11 -20
  1423. package/source/class/qx/ui/virtual/cell/WidgetCell.js +13 -16
  1424. package/source/class/qx/ui/virtual/cell/__init__.js +4 -4
  1425. package/source/class/qx/ui/virtual/core/Axis.js +75 -103
  1426. package/source/class/qx/ui/virtual/core/CellEvent.js +23 -31
  1427. package/source/class/qx/ui/virtual/core/IHtmlCellProvider.js +4 -6
  1428. package/source/class/qx/ui/virtual/core/ILayer.js +5 -15
  1429. package/source/class/qx/ui/virtual/core/IWidgetCellProvider.js +5 -7
  1430. package/source/class/qx/ui/virtual/core/Pane.js +199 -242
  1431. package/source/class/qx/ui/virtual/core/Scroller.js +25 -43
  1432. package/source/class/qx/ui/virtual/layer/Abstract.js +44 -83
  1433. package/source/class/qx/ui/virtual/layer/AbstractBackground.js +47 -68
  1434. package/source/class/qx/ui/virtual/layer/CellSpanManager.js +74 -96
  1435. package/source/class/qx/ui/virtual/layer/Column.js +26 -36
  1436. package/source/class/qx/ui/virtual/layer/GridLines.js +43 -70
  1437. package/source/class/qx/ui/virtual/layer/HtmlCell.js +34 -32
  1438. package/source/class/qx/ui/virtual/layer/HtmlCellSpan.js +54 -56
  1439. package/source/class/qx/ui/virtual/layer/Row.js +28 -36
  1440. package/source/class/qx/ui/virtual/layer/WidgetCell.js +87 -123
  1441. package/source/class/qx/ui/virtual/layer/WidgetCellSpan.js +123 -124
  1442. package/source/class/qx/ui/virtual/selection/Abstract.js +26 -54
  1443. package/source/class/qx/ui/virtual/selection/CellLines.js +11 -21
  1444. package/source/class/qx/ui/virtual/selection/CellRectangle.js +45 -73
  1445. package/source/class/qx/ui/virtual/selection/Column.js +16 -35
  1446. package/source/class/qx/ui/virtual/selection/ISelectionDelegate.js +5 -9
  1447. package/source/class/qx/ui/virtual/selection/MModel.js +84 -122
  1448. package/source/class/qx/ui/virtual/selection/Row.js +29 -61
  1449. package/source/class/qx/ui/website/Accordion.js +39 -42
  1450. package/source/class/qx/ui/website/Button.js +17 -25
  1451. package/source/class/qx/ui/website/Calendar.js +243 -172
  1452. package/source/class/qx/ui/website/Carousel.js +169 -155
  1453. package/source/class/qx/ui/website/DatePicker.js +99 -85
  1454. package/source/class/qx/ui/website/Rating.js +35 -53
  1455. package/source/class/qx/ui/website/Slider.js +174 -153
  1456. package/source/class/qx/ui/website/Table.js +482 -456
  1457. package/source/class/qx/ui/website/Tabs.js +225 -180
  1458. package/source/class/qx/ui/website/Widget.js +39 -52
  1459. package/source/class/qx/ui/window/Desktop.js +14 -12
  1460. package/source/class/qx/ui/window/IDesktop.js +8 -10
  1461. package/source/class/qx/ui/window/IWindowManager.js +7 -9
  1462. package/source/class/qx/ui/window/MDesktop.js +34 -62
  1463. package/source/class/qx/ui/window/Manager.js +31 -57
  1464. package/source/class/qx/ui/window/Window.js +250 -351
  1465. package/source/class/qx/util/AliasManager.js +23 -42
  1466. package/source/class/qx/util/Animation.js +248 -191
  1467. package/source/class/qx/util/Base64.js +144 -89
  1468. package/source/class/qx/util/ColorUtil.js +253 -287
  1469. package/source/class/qx/util/DeferredCall.js +21 -30
  1470. package/source/class/qx/util/DeferredCallManager.js +23 -44
  1471. package/source/class/qx/util/Delegate.js +4 -10
  1472. package/source/class/qx/util/DisposeUtil.js +76 -70
  1473. package/source/class/qx/util/DynamicScriptLoader.js +83 -66
  1474. package/source/class/qx/util/EditDistance.js +64 -58
  1475. package/source/class/qx/util/ExtendedColor.js +157 -163
  1476. package/source/class/qx/util/Function.js +8 -8
  1477. package/source/class/qx/util/LibraryManager.js +11 -18
  1478. package/source/class/qx/util/OOUtil.js +17 -36
  1479. package/source/class/qx/util/ObjectPool.js +19 -45
  1480. package/source/class/qx/util/Permutation.js +9 -16
  1481. package/source/class/qx/util/PropertyUtil.js +58 -70
  1482. package/source/class/qx/util/Request.js +27 -16
  1483. package/source/class/qx/util/ResourceManager.js +103 -104
  1484. package/source/class/qx/util/ResponseParser.js +14 -21
  1485. package/source/class/qx/util/RingBuffer.js +46 -48
  1486. package/source/class/qx/util/Serializer.js +103 -68
  1487. package/source/class/qx/util/StringBuilder.js +11 -22
  1488. package/source/class/qx/util/StringEscape.js +15 -29
  1489. package/source/class/qx/util/StringSplit.js +18 -21
  1490. package/source/class/qx/util/TimerManager.js +61 -70
  1491. package/source/class/qx/util/Uri.js +42 -30
  1492. package/source/class/qx/util/Uuid.js +50 -35
  1493. package/source/class/qx/util/Validate.js +88 -73
  1494. package/source/class/qx/util/ValueManager.js +17 -29
  1495. package/source/class/qx/util/Wheel.js +22 -16
  1496. package/source/class/qx/util/format/DateFormat.js +822 -759
  1497. package/source/class/qx/util/format/IFormat.js +4 -8
  1498. package/source/class/qx/util/format/NumberFormat.js +84 -91
  1499. package/source/class/qx/util/fsm/FiniteStateMachine.js +323 -382
  1500. package/source/class/qx/util/fsm/State.js +210 -249
  1501. package/source/class/qx/util/fsm/Transition.js +138 -160
  1502. package/source/class/qx/util/placement/AbstractAxis.js +12 -14
  1503. package/source/class/qx/util/placement/BestFitAxis.js +5 -8
  1504. package/source/class/qx/util/placement/DirectAxis.js +5 -7
  1505. package/source/class/qx/util/placement/KeepAlignAxis.js +8 -14
  1506. package/source/class/qx/util/placement/Placement.js +39 -56
  1507. package/source/class/qx/util/placement/__init__.js +4 -4
  1508. package/source/class/qx/xml/Document.js +21 -34
  1509. package/source/class/qx/xml/Element.js +90 -73
  1510. package/source/class/qx/xml/String.js +15 -21
  1511. package/source/class/qxWeb.js +102 -69
  1512. package/source/resource/qx/mobile/js/iscroll.js +1328 -982
  1513. package/source/resource/qx/mobile/js/iscroll.min.js +1081 -1
  1514. package/source/resource/qx/test/dynamicscriptloader/first.js +1 -1
  1515. package/source/resource/qx/test/dynamicscriptloader/second.js +1 -1
  1516. package/source/resource/qx/test/dynamicscriptloader/third.js +1 -1
  1517. package/source/resource/qx/test/script.js +1 -1
  1518. package/source/resource/qx/test/webworker.js +2 -2
  1519. package/source/resource/qx/tool/loadsass.js +16 -15
  1520. package/source/resource/qx/tool/schema/compile-1-0-0.json +13 -13
  1521. package/source/resource/qx/tool/website/build/assets/bluebird.min.js +4593 -9
  1522. package/source/resource/qx/tool/website/build/assets/buttons.js +391 -1
  1523. package/source/resource/qx/tool/website/build/assets/fontawesome-all.js +8963 -1
  1524. package/source/resource/qx/tool/website/build/assets/jquery.js +5452 -3
  1525. package/source/resource/qx/tool/website/build/diagnostics/dependson.js +31 -31
  1526. package/source/resource/qx/tool/website/build/diagnostics/requiredby.js +32 -36
  1527. package/source/resource/qx/tool/website/build/scripts/serve.js +87 -66
  1528. package/source/resource/qx/tool/website/src/assets/bluebird.min.js +4593 -9
  1529. package/source/resource/qx/tool/website/src/assets/buttons.js +391 -1
  1530. package/source/resource/qx/tool/website/src/assets/fontawesome-all.js +8963 -1
  1531. package/source/resource/qx/tool/website/src/assets/jquery.js +5452 -3
  1532. package/source/resource/qx/tool/website/src/diagnostics/dependson.js +31 -31
  1533. package/source/resource/qx/tool/website/src/diagnostics/requiredby.js +32 -36
  1534. package/source/resource/qx/tool/website/src/scripts/serve.js +87 -66
  1535. package/lib/resource/qx/static/blank.gif +0 -0
  1536. package/source/class/qx/io/remote/Exchange.js +0 -1063
  1537. package/source/class/qx/io/remote/Request.js +0 -1021
  1538. package/source/class/qx/io/remote/RequestQueue.js +0 -521
  1539. package/source/class/qx/io/remote/Response.js +0 -137
  1540. package/source/class/qx/io/remote/Rpc.js +0 -1075
  1541. package/source/class/qx/io/remote/RpcError.js +0 -198
  1542. package/source/class/qx/io/remote/__init__.js +0 -88
  1543. package/source/class/qx/io/remote/transport/Abstract.js +0 -513
  1544. package/source/class/qx/io/remote/transport/Iframe.js +0 -652
  1545. package/source/class/qx/io/remote/transport/Script.js +0 -475
  1546. package/source/class/qx/io/remote/transport/XmlHttp.js +0 -1019
  1547. package/source/class/qx/io/remote/transport/__init__.js +0 -3
  1548. package/source/class/qx/test/io/remote/AbstractRequest.js +0 -150
  1549. package/source/class/qx/test/io/remote/RequestIframe.js +0 -105
  1550. package/source/class/qx/test/io/remote/RequestXhr.js +0 -151
  1551. package/source/class/qx/test/io/remote/Rpc.js +0 -205
  1552. package/source/class/qx/test/io/remote/__init__.js +0 -4
  1553. package/source/class/qx/test/io/remote/transport/Iframe.js +0 -67
  1554. package/source/class/qx/test/io/remote/transport/XmlHttp.js +0 -133
  1555. package/source/class/qx/test/io/remote/transport/__init__.js +0 -4
@@ -1,18 +1,18 @@
1
1
  /* @preserve
2
2
  * The MIT License (MIT)
3
- *
3
+ *
4
4
  * Copyright (c) 2013-2018 Petka Antonov
5
- *
5
+ *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
8
8
  * in the Software without restriction, including without limitation the rights
9
9
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
10
  * copies of the Software, and to permit persons to whom the Software is
11
11
  * furnished to do so, subject to the following conditions:
12
- *
12
+ *
13
13
  * The above copyright notice and this permission notice shall be included in
14
14
  * all copies or substantial portions of the Software.
15
- *
15
+ *
16
16
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
17
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
18
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -20,12 +20,4596 @@
20
20
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
22
  * THE SOFTWARE.
23
- *
23
+ *
24
24
  */
25
25
  /**
26
26
  * bluebird build version 3.5.5
27
27
  * Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each
28
- */
29
- !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}(function(){var t,e,n;return function r(t,e,n){function i(s,a){if(!e[s]){if(!t[s]){var c="function"==typeof _dereq_&&_dereq_;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=e[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n?n:e)},u,u.exports,r,t,e,n)}return e[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,n){"use strict";function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=p}function i(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function o(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function s(t){this._normalQueue._pushOne(t),this._queueTick()}function a(t){for(;t.length()>0;)c(t)}function c(t){var e=t.shift();if("function"!=typeof e)e._settlePromises();else{var n=t.shift(),r=t.shift();e.call(n,r)}}var l;try{throw new Error}catch(u){l=u}var p=t("./schedule"),h=t("./queue"),f=t("./util");r.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,e){e?(process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?i.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},r.prototype.invoke=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},r.prototype.settlePromises=function(t){this._trampolineEnabled?s.call(this,t):this._schedule(function(){t._settlePromises()})}):(r.prototype.invokeLater=i,r.prototype.invoke=o,r.prototype.settlePromises=s),r.prototype._drainQueues=function(){a(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,a(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=r,e.exports.firstLineError=l},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),u=new t(e);u._propagateFrom(this,1);var p=this._target();if(u._setBoundTo(l),l instanceof t){var h={promiseRejectionQueued:!1,promise:u,target:p,bindingPromise:l};p._then(e,s,void 0,u,h),l._then(a,c,void 0,u,h),u._setOnCancel(l)}else u._resolveCallback(p);return u},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=r,e.exports=o},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return 0>e&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=o;else if(c){var r=s(t);e=null!==r?r:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"==typeof t){if(!e){var r=s(t).call(this._boundValue());r===a&&(this._attachExtraTrace(r.e),c.throwLater(r.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){"use strict";e.exports=function(e){function n(t,n,a){return function(c){var l=a._boundValue();t:for(var u=0;u<t.length;++u){var p=t[u];if(p===Error||null!=p&&p.prototype instanceof Error){if(c instanceof p)return o(n).call(l,c)}else if("function"==typeof p){var h=o(p).call(l,c);if(h===s)return h;if(h)return o(n).call(l,c)}else if(r.isObject(c)){for(var f=i(p),_=0;_<f.length;++_){var d=f[_];if(p[d]!=c[d])continue t}return o(n).call(l,c)}}return e}}var r=t("./util"),i=t("./es5").keys,o=r.tryCatch,s=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(t,e,n){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(r())}function n(){return i?new e:void 0}function r(){var t=o.length-1;return t>=0?o[t]:void 0}var i=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,i=!1},i=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,e){return{promise:e}}function i(){return!1}function o(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+H.toString(t));r._attachCancellationCallback(t)})}catch(i){return i}}function s(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?H.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function a(){return this._onCancelField}function c(t){this._onCancelField=t}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function u(t,e){if(0!==(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function p(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function f(){this._trace=new O(this._peekContext())}function _(t,e){if(U(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=E(t);H.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),H.notEnumerableProp(t,"__stackCleaned__",!0)}}}function d(){this._trace=void 0}function v(t,e,n,r,i){if(void 0===t&&null!==e&&J){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",s="";if(e._trace){for(var a=e._trace.stack.split("\n"),c=C(a),l=c.length-1;l>=0;--l){var u=c[l];if(!q.test(u)){var p=u.match($);p&&(o="at "+p[1]+":"+p[2]+":"+p[3]+" ");break}}if(c.length>0)for(var h=c[0],l=0;l<a.length;++l)if(a[l]===h){l>0&&(s="\n"+a[l-1]);break}}var f="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;r._warn(f,!0,e)}}function y(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),m(n)}function m(t,n,r){if(at.warnings){var i,o=new N(t);if(n)r._attachExtraTrace(o);else if(at.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var s=E(o);o.stack=s.message+"\n"+s.stack.join("\n")}nt("warning",o)||k(o,"",!0)}}function g(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function b(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function w(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],i=e.length-1,o=e[i],s=-1,a=r.length-1;a>=0;--a)if(r[a]===o){s=a;break}for(var a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function C(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=" (No stack trace)"===r||Q.test(r),o=i&&it(r);i&&!o&&(z&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function j(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||Q.test(r))break}return n>0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}function E(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?j(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:C(e)}}function k(t,e,n){if("undefined"!=typeof console){var r;if(H.isObject(t)){var i=t.stack;r=e+G(i,t)}else r=e+String(t);"function"==typeof V?V(r,n):("function"==typeof console.log||"object"==typeof console.log)&&console.log(r)}}function F(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(o){L.throwLater(o)}"unhandledRejection"===t?nt(t,n,r)||i||k(n,"Unhandled rejection "):nt(t,r)}function T(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():H.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(i){}0===e.length&&(e="(empty array)")}return"(<"+x(e)+">, no stack trace)"}function x(t){var e=41;return t.length<e?t:t.substr(0,e-3)+"..."}function P(){return"function"==typeof st}function S(t){var e=t.match(ot);return e?{fileName:e[1],line:parseInt(e[2],10)}:void 0}function R(t,e){if(P()){for(var n,r,i=(t.stack||"").split("\n"),o=(e.stack||"").split("\n"),s=-1,a=-1,c=0;c<i.length;++c){var l=S(i[c]);if(l){n=l.fileName,s=l.line;break}}for(var c=0;c<o.length;++c){var l=S(o[c]);if(l){r=l.fileName,a=l.line;break}}0>s||0>a||!n||!r||n!==r||s>=a||(it=function(t){if(M.test(t))return!0;var e=S(t);return e&&e.fileName===n&&s<=e.line&&e.line<=a?!0:!1})}}function O(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);st(this,O),e>32&&this.uncycle()}var A,D,V,I=e._getDomain,L=e._async,N=t("./errors").Warning,H=t("./util"),B=t("./es5"),U=H.canAttachTrace,M=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,q=/\((?:timers\.js):\d+:\d+\)/,$=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,Q=null,G=null,z=!1,X=!(0==H.env("BLUEBIRD_DEBUG")||!H.env("BLUEBIRD_DEBUG")&&"development"!==H.env("NODE_ENV")),W=!(0==H.env("BLUEBIRD_WARNINGS")||!X&&!H.env("BLUEBIRD_WARNINGS")),K=!(0==H.env("BLUEBIRD_LONG_STACK_TRACES")||!X&&!H.env("BLUEBIRD_LONG_STACK_TRACES")),J=0!=H.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(W||!!H.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){if(0===(524288&this._bitField)){this._setRejectionIsUnhandled();var t=this;setTimeout(function(){t._notifyUnhandledRejection()},1)}},e.prototype._notifyUnhandledRejectionIsHandled=function(){F("rejectionHandled",A,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),F("unhandledRejection",D,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return m(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=I();D="function"==typeof t?null===e?t:H.domainBind(e,t):void 0},e.onUnhandledRejectionHandled=function(t){var e=I();A="function"==typeof t?null===e?t:H.domainBind(e,t):void 0};var Y=function(){};e.longStackTraces=function(){if(L.haveItemsQueued()&&!at.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!at.longStackTraces&&P()){var t=e.prototype._captureStackTrace,r=e.prototype._attachExtraTrace,i=e.prototype._dereferenceTrace;at.longStackTraces=!0,Y=function(){if(L.haveItemsQueued()&&!at.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=r,e.prototype._dereferenceTrace=i,n.deactivateLongStackTraces(),L.enableTrampoline(),at.longStackTraces=!1},e.prototype._captureStackTrace=f,e.prototype._attachExtraTrace=_,e.prototype._dereferenceTrace=d,n.activateLongStackTraces(),L.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return at.longStackTraces&&P()};var Z=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return H.global.dispatchEvent(t),function(t,e){var n={detail:e,cancelable:!0};B.defineProperty(n,"promise",{value:e.promise}),B.defineProperty(n,"reason",{value:e.reason});var r=new CustomEvent(t.toLowerCase(),n);return!H.global.dispatchEvent(r)}}if("function"==typeof Event){var t=new Event("CustomEvent");return H.global.dispatchEvent(t),function(t,e){var n=new Event(t.toLowerCase(),{cancelable:!0});return n.detail=e,B.defineProperty(n,"promise",{value:e.promise}),B.defineProperty(n,"reason",{value:e.reason}),!H.global.dispatchEvent(n)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),H.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!H.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),tt=function(){return H.isNode?function(){return process.emit.apply(process,arguments)}:H.global?function(t){var e="on"+t.toLowerCase(),n=H.global[e];return n?(n.apply(H.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}(),et={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:r},nt=function(t){var e=!1;try{e=tt.apply(null,arguments)}catch(n){L.throwLater(n),e=!0}var r=!1;try{r=Z(t,et[t].apply(null,arguments))}catch(n){L.throwLater(n),r=!0}return r||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&Y()),"warnings"in t){var n=t.warnings;at.warnings=!!n,J=at.warnings,H.isObject(n)&&"wForgottenReturn"in n&&(J=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!at.cancellation){if(L.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=l,e.prototype._propagateFrom=u,e.prototype._onCancel=a,e.prototype._setOnCancel=c,e.prototype._attachCancellationCallback=s,e.prototype._execute=o,rt=u,at.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!at.monitoring?(at.monitoring=!0,e.prototype._fireEvent=nt):!t.monitoring&&at.monitoring&&(at.monitoring=!1,e.prototype._fireEvent=i)),e},e.prototype._fireEvent=i,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(r){return r}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._dereferenceTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var rt=p,it=function(){return!1},ot=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;H.inherits(O,Error),n.CapturedTrace=O,O.prototype.uncycle=function(){var t=this._length;if(!(2>t)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;t>r;++r){var s=e[r].stack,a=n[s];if(void 0!==a&&a!==r){a>0&&(e[a-1]._parent=void 0,e[a-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var c=r>0?e[r-1]:this;t-1>a?(c._parent=e[a+1],c._parent.uncycle(),c._length=c._parent._length+1):(c._parent=void 0,c._length=1);for(var l=c._length+1,u=r-2;u>=0;--u)e[u]._length=l,l++;return}}}},O.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=E(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(C(i.stack.split("\n"))),i=i._parent;w(r),b(r),H.notEnumerableProp(t,"stack",g(n,r)),H.notEnumerableProp(t,"__stackCleaned__",!0)}};var st=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():T(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,Q=t,G=e;var n=Error.captureStackTrace;return it=function(t){return M.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return Q=/@/,G=e,z=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(o){i="stack"in o}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(G=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?T(e):e.toString()},null):(Q=t,G=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(V=function(t){console.warn(t)},H.isNode&&process.stderr.isTTY?V=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:H.isNode||"string"!=typeof(new Error).stack||(V=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var at={warnings:W,longStackTraces:!1,cancellation:!1,monitoring:!1};return K&&e.longStackTraces(),{longStackTraces:function(){return at.longStackTraces},warnings:function(){return at.warnings},cancellation:function(){return at.cancellation},monitoring:function(){return at.monitoring},propagateFromFunction:function(){return rt},boundValueFunction:function(){return h},checkForgottenReturns:v,setBounds:R,warn:m,deprecated:y,CapturedTrace:O,fireDomEvent:Z,fireGlobalEvent:tt}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return i(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,r){return i(t,r,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){"use strict";function r(t,e){function n(r){return this instanceof n?(p(this,"message","string"==typeof r?r:e),p(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return u(n,Error),n}function i(t){return this instanceof i?(p(this,"name","OperationalError"),p(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(p(this,"message",t.message),p(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(t)}var o,s,a=t("./es5"),c=a.freeze,l=t("./util"),u=l.inherits,p=l.notEnumerableProp,h=r("Warning","warning"),f=r("CancellationError","cancellation error"),_=r("TimeoutError","timeout error"),d=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(v){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var y="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<y.length;++m)"function"==typeof Array.prototype[y[m]]&&(d.prototype[y[m]]=Array.prototype[y[m]]);a.defineProperty(d.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),d.prototype.isOperational=!0;var g=0;d.prototype.toString=function(){var t=Array(4*g+1).join(" "),e="\n"+t+"AggregateError of:\n";g++,t=Array(4*g+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];r=i.join("\n"),e+=r+"\n"}return g--,e},u(i,Error);var b=Error.__BluebirdErrorTypes__;b||(b=c({CancellationError:f,TimeoutError:_,OperationalError:i,RejectionError:i,AggregateError:d}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:s,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:h}},{"./es5":13,"./util":36}],13:[function(t,e,n){var r=function(){"use strict";return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,s={}.constructor.prototype,a=function(t){var e=[];for(var n in t)i.call(t,n)&&e.push(n);return e},c=function(t,e){return{value:t[e]}},l=function(t,e,n){return t[e]=n.value,t},u=function(t){return t},p=function(t){try{return Object(t).constructor.prototype}catch(e){return s}},h=function(t){try{return"[object Array]"===o.call(t)}catch(e){return!1}};e.exports={isArray:h,keys:a,names:a,defineProperty:l,getDescriptor:c,freeze:u,getPrototypeOf:p,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,i){return n(t,r,i,e)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function o(t){this.finallyHandler=t}function s(t,e){return null!=t.cancelPromise?(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0):!1}function a(){return l.call(this,this.promise._target()._settledValue())}function c(t){return s(this,t)?void 0:(h.e=t,h)}function l(t){var i=this.promise,l=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?l.call(i._boundValue()):l.call(i._boundValue(),t);if(u===r)return u;if(void 0!==u){i._setReturnedNonUndefined();var f=n(u,i);if(f instanceof e){if(null!=this.cancelPromise){if(f._isCancelled()){var _=new p("late cancellation observer");return i._attachExtraTrace(_),h.e=_,h}f.isPending()&&f._attachCancellationCallback(new o(this))}return f._then(a,c,void 0,this,void 0)}}}return i.isRejected()?(s(this),h.e=t,h):(s(this),t)}var u=t("./util"),p=e.CancellationError,h=u.errorObj,f=t("./catch_filter")(r);return i.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){s(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new i(this,e,t),void 0)},e.prototype.lastly=e.prototype["finally"]=function(t){return this._passThrough(t,0,l,l)},e.prototype.tap=function(t){return this._passThrough(t,1,l)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,l);var r,i=new Array(n-1),o=0;for(r=0;n-1>r;++r){var s=arguments[r];if(!u.isObject(s))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+u.classString(s)));i[o++]=s}i.length=o;var a=arguments[r];return this._passThrough(f(i,a,this),1,void 0,l)},i}},{"./catch_filter":7,"./util":36}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var s=f(n[o])(t);if(r._popContext(),s===h){r._pushContext();var a=e.reject(h.e);return r._popContext(),a}var c=i(s,r);if(c instanceof e)return c}return null}function c(t,n,i,o){if(s.cancellation()){var a=new e(r),c=this._finallyPromise=new e(r);this._promise=a.lastly(function(){return c}),a._captureStackTrace(),a._setOnCancel(this)}else{var l=this._promise=new e(r);l._captureStackTrace()}this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(_):_,this._yieldedPromise=null,this._cancellationPhase=!1}var l=t("./errors"),u=l.TypeError,p=t("./util"),h=p.errorObj,f=p.tryCatch,_=[];p.inherits(c,o),c.prototype._isResolved=function(){return null===this._promise},c.prototype._cleanup=function(){this._promise=this._generator=null,s.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},c.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),t=f(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=f(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},c.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=f(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},c.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=f(this._generator["throw"]).call(this._generator,t);this._promise._popContext(),this._continue(e)},c.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},c.prototype.promise=function(){return this._promise},c.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},c.prototype._continue=function(t){var n=this._promise;if(t===h)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(t.done===!0)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(!(o instanceof e)&&(o=a(o,this._yieldHandlers,this._promise),
30
- null===o))return void this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var s=o._bitField;0===(50397184&s)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&s)?e._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&s)?e._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeof t)throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=c,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new r(void 0,void 0,n,i),s=o.promise();return o._generator=e,o._promiseFulfilled(void 0),s}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new u("expecting a function but got "+p.classString(t));_.push(t)},e.spawn=function(t){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new c(t,this),i=r.promise();return r._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){var a=t("./util");a.canEvaluate,a.tryCatch,a.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}var i=[].slice.call(arguments);t&&i.pop();var r=new n(i).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=l();this._callback=null===i?e:u.domainBind(i,e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void 0)}function c(t,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+u.classString(n));var s=0;if(void 0!==i){if("object"!=typeof i||null===i)return e.reject(new TypeError("options argument must be an object but it is "+u.classString(i)));if("number"!=typeof i.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+u.classString(i.concurrency)));s=i.concurrency}return s="number"==typeof s&&isFinite(s)&&s>=1?s:0,new a(t,n,s,o).promise()}var l=e._getDomain,u=t("./util"),p=u.tryCatch,h=u.errorObj,f=e._async;u.inherits(a,n),a.prototype._asyncInit=function(){this._init$(void 0,-2)},a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(0>n){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var l=this._promise,u=this._callback,f=l._boundValue();l._pushContext();var _=p(u).call(f,t,n,o),d=l._popContext();if(s.checkForgottenReturns(_,d,null!==a?"Promise.filter":"Promise.map",l),_===h)return this._reject(_.e),!0;var v=i(_,this._promise);if(v instanceof e){v=v._target();var y=v._bitField;if(0===(50397184&y))return c>=1&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0===(33554432&y))return 0!==(16777216&y)?(this._reject(v._reason()),!0):(this._cancel(),!0);_=v._value()}r[n]=_}var m=++this._totalResolved;return m>=o?(null!==a?this._filter(r,a):this._resolve(r),!0):!1},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},a.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),i=0,o=0;n>o;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},a.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return c(this,t,e,null)},e.map=function(t,e,n,r){return c(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var s=t("./util"),a=s.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+s.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=a(t).apply(this,arguments),s=r._popContext();return o.checkForgottenReturns(i,s,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t){if("function"!=typeof t)return i("expecting a function but got "+s.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var c;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],u=arguments[2];c=s.isArray(l)?a(t).apply(u,l):a(t).call(u,l)}else c=a(t)();var p=r._popContext();return o.checkForgottenReturns(c,p,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";function r(t){return t instanceof Error&&u.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){e=new l(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=u.keys(t),i=0;i<n.length;++i){var o=n[i];p.test(o)||(e[o]=t[o])}return e}return s.markAsOriginatingFromRejection(t),t}function o(t,e){return function(n,r){if(null!==t){if(n){var o=i(a(n));t._attachExtraTrace(o),t._reject(o)}else if(e){var s=[].slice.call(arguments,1);t._fulfill(s)}else t._fulfill(r);t=null}}}var s=t("./util"),a=s.maybeWrapAsError,c=t("./errors"),l=c.OperationalError,u=t("./es5"),p=/^(?:name|message|stack|cause)$/;e.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e){var n=this;if(!o.isArray(t))return r.call(n,t,e);var i=a(e).apply(n._boundValue(),[null].concat(t));i===c&&s.throwLater(i.e)}function r(t,e){var n=this,r=n._boundValue(),i=void 0===t?a(e).call(r,null):a(e).call(r,null,t);i===c&&s.throwLater(i.e)}function i(t,e){var n=this;if(!t){var r=new Error(t+"");r.cause=t,t=r}var i=a(e).call(n._boundValue(),t);i===c&&s.throwLater(i.e)}var o=t("./util"),s=e._async,a=o.tryCatch,c=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=r;void 0!==e&&Object(e).spread&&(o=n),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e,n){"use strict";e.exports=function(){function n(){}function r(t,e){if(null==t||t.constructor!==i)throw new m("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new m("expecting a function but got "+f.classString(e))}function i(t){t!==b&&r(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(t){this.promise._resolveCallback(t)}function s(t){this.promise._rejectCallback(t,!1)}function a(t){var e=new i(b);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var c,l=function(){return new m("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},u=function(){return new i.PromiseInspection(this._target())},p=function(t){return i.reject(new m(t))},h={},f=t("./util");c=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(i,"_getDomain",c);var _=t("./es5"),d=t("./async"),v=new d;_.defineProperty(i,"_async",{value:v});var y=t("./errors"),m=i.TypeError=y.TypeError;i.RangeError=y.RangeError;var g=i.CancellationError=y.CancellationError;i.TimeoutError=y.TimeoutError,i.OperationalError=y.OperationalError,i.RejectionError=y.OperationalError,i.AggregateError=y.AggregateError;var b=function(){},w={},C={},j=t("./thenables")(i,b),E=t("./promise_array")(i,b,j,p,n),k=t("./context")(i),F=k.create,T=t("./debuggability")(i,k),x=(T.CapturedTrace,t("./finally")(i,j,C)),P=t("./catch_filter")(C),S=t("./nodeback"),R=f.errorObj,O=f.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype["catch"]=function(t){var e=arguments.length;if(e>1){var n,r=new Array(e-1),i=0;for(n=0;e-1>n;++n){var o=arguments[n];if(!f.isObject(o))return p("Catch statement predicate: expecting an object but got "+f.classString(o));r[i++]=o}if(r.length=i,t=arguments[n],"function"!=typeof t)throw new m("The last argument to .catch() must be a function, got "+f.toString(t));return this.then(void 0,P(r,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(u,u,void 0,this,void 0)},i.prototype.then=function(t,e){if(T.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+f.classString(t);arguments.length>1&&(n+=", "+f.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){var n=this._then(t,e,void 0,void 0,void 0);n._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?p("expecting a function but got "+f.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new E(this).promise()},i.prototype.error=function(t){return this.caught(f.originatesFromRejection,t)},i.getNewLibraryCopy=e.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(b);e._captureStackTrace();var n=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,r=O(t)(S(e,n));return r===R&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new E(t).promise()},i.cast=function(t){var e=j(t);return e instanceof i||(e=new i(b),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(b);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new m("expecting a function but got "+f.classString(t));return v.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var s=void 0!==o,a=s?o:new i(b),l=this._target(),u=l._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&u)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var p=c();if(0!==(50397184&u)){var h,_,d=l._settlePromiseCtx;0!==(33554432&u)?(_=l._rejectionHandler0,h=t):0!==(16777216&u)?(_=l._fulfillmentHandler0,h=e,l._unsetRejectionIsUnhandled()):(d=l._settlePromiseLateCancellationObserver,_=new g("late cancellation observer"),l._attachExtraTrace(_),h=e),v.invoke(d,l,{handler:null===p?h:"function"==typeof h&&f.domainBind(p,h),promise:a,receiver:r,value:_})}else l._addCallbacks(t,e,a,r,p);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){v.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];return e===h?void 0:void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=h),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=h),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:f.domainBind(i,t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:f.domainBind(i,e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:f.domainBind(i,t)),"function"==typeof e&&(this[s+1]=null===i?e:f.domainBind(i,e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0===(117506048&this._bitField)){if(t===this)return this._rejectCallback(l(),!1);var n=j(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(l());var o=r._bitField;if(0===(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;s>a;++a)r._migrateCallbackAt(this,a);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!==(33554432&o))this._fulfill(r._value());else if(0!==(16777216&o))this._reject(r._reason());else{var c=new g("late cancellation observer");r._attachExtraTrace(c),this._reject(c)}}},i.prototype._rejectCallback=function(t,e,n){var r=f.ensureErrorObject(t),i=r===t;if(!i&&!n&&T.warnings()){var o="a promise was rejected with a non-error: "+f.classString(t);this._warn(o,!0)}this._attachExtraTrace(r,e?i:!1),this._reject(t)},i.prototype._resolveFromExecutor=function(t){if(t!==b){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)}},i.prototype._settlePromiseFromHandler=function(t,e,n,r){var i=r._bitField;if(0===(65536&i)){r._pushContext();var o;e===w?n&&"number"==typeof n.length?o=O(t).apply(this._boundValue(),n):(o=R,o.e=new m("cannot .spread() a non-array: "+f.classString(n))):o=O(t).call(e,n);var s=r._popContext();i=r._bitField,0===(65536&i)&&(o===C?r._reject(n):o===R?r._rejectCallback(o.e,!1):(T.checkForgottenReturns(o,s,"",r,this),r._resolveCallback(o)))}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,r,o){var s=t instanceof i,a=this._bitField,c=0!==(134217728&a);0!==(65536&a)?(s&&t._invokeInternalOnCancel(),r instanceof x&&r.isFinallyHandler()?(r.cancelPromise=t,O(e).call(r,o)===R&&t._reject(R.e)):e===u?t._fulfill(u.call(r)):r instanceof n?r._promiseCancelled(t):s||t instanceof E?t._cancel():r.cancel()):"function"==typeof e?s?(c&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,r,o,t)):e.call(r,o,t):r instanceof n?r._isResolved()||(0!==(33554432&a)?r._promiseFulfilled(o,t):r._promiseRejected(o,t)):s&&(c&&t._setAsyncGuaranteed(),0!==(33554432&a)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,r=t.receiver,o=t.value;"function"==typeof e?n instanceof i?this._settlePromiseFromHandler(e,r,o,n):e.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,i,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!==(134217728&e)?this._settlePromises():v.settlePromises(this),this._dereferenceTrace())}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?v.fatalError(t,f.isNode):void((65535&e)>0?v.settlePromises(this):this._ensurePossibleRejectionHandled())},i.prototype._fulfillPromises=function(t,e){for(var n=1;t>n;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._rejectPromises=function(t,e){for(var n=1;t>n;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!==(33554432&t)?this._rejectionHandler0:0!==(16777216&t)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&_.defineProperty(i.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),i.defer=i.pending=function(){T.deprecated("Promise.defer","new Promise");var t=new i(b);return{promise:t,resolve:o,reject:s}},f.notEnumerableProp(i,"_makeSelfResolutionError",l),t("./method")(i,b,j,p,T),t("./bind")(i,b,j,T),t("./cancel")(i,E,p,T),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,E,j,b,v,c),i.Promise=i,i.version="3.5.5",t("./call_get.js")(i),t("./generators.js")(i,p,b,j,n,T),t("./map.js")(i,E,p,j,b,T),t("./nodeify.js")(i),t("./promisify.js")(i,b),t("./props.js")(i,E,j,p),t("./race.js")(i,b,j,p),t("./reduce.js")(i,E,p,j,b,T),t("./settle.js")(i,E,T),t("./some.js")(i,E,p),t("./timers.js")(i,b,T),t("./using.js")(i,p,j,F,b,T),t("./any.js")(i),t("./each.js")(i,b),t("./filter.js")(i,b),f.toFastProperties(i),f.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(b)),T.setBounds(d.firstLineError,f.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function l(t,n){var o=r(this._values,this._promise);if(o instanceof e){o=o._target();var a=o._bitField;if(this._values=o,0===(50397184&a))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&a))return 0!==(16777216&a)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=c.asArray(o),null===o){var u=i("expecting an array or an iterable object but got "+c.classString(o)).reason();return void this._promise._rejectCallback(u,!1)}return 0===o.length?void(-5===n?this._resolveEmptyArray():this._resolve(s(n))):void this._iterate(o)},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;n>a;++a){var c=r(t[a],i);c instanceof e?(c=c._target(),s=c._bitField):s=null,o?null!==s&&c.suppressUnhandledRejections():null!==s?0===(50397184&s)?(c._proxy(this,a),this._values[a]=c):o=0!==(33554432&s)?this._promiseFulfilled(c._value(),a):0!==(16777216&s)?this._promiseRejected(c._reason(),a):this._promiseCancelled(a):o=this._promiseFulfilled(c,a)}o||i._setAsyncGuaranteed()},a.prototype._isResolved=function(){return null===this._values},a.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},a.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},a.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},a.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(t){return t},a}},{"./util":36}],24:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){return!C.test(t)}function i(t){try{return t.__isPromisified__===!0}catch(e){return!1}}function o(t,e,n){var r=f.getDataPropertyOrDefault(t,e+n,b);return r?i(r):!1}function s(t,e,n){for(var r=0;r<t.length;r+=2){var i=t[r];if(n.test(i))for(var o=i.replace(n,""),s=0;s<t.length;s+=2)if(t[s]===o)throw new m("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}function a(t,e,n,r){for(var a=f.inheritedDataKeys(t),c=[],l=0;l<a.length;++l){var u=a[l],p=t[u],h=r===j?!0:j(u,p,t);"function"!=typeof p||i(p)||o(t,u,e)||!r(u,p,t,h)||c.push(u,p)}return s(c,e,n),c}function c(t,r,i,o,s,a){function c(){var i=r;r===h&&(i=this);var o=new e(n);o._captureStackTrace();var s="string"==typeof u&&this!==l?this[u]:t,c=_(o,a);try{s.apply(i,d(arguments,c))}catch(p){o._rejectCallback(v(p),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var l=function(){return this}(),u=t;return"string"==typeof u&&(t=o),f.notEnumerableProp(c,"__isPromisified__",!0),c}function l(t,e,n,r,i){for(var o=new RegExp(E(e)+"$"),s=a(t,e,o,n),c=0,l=s.length;l>c;c+=2){var u=s[c],p=s[c+1],_=u+e;if(r===k)t[_]=k(u,h,u,p,e,i);else{var d=r(p,function(){return k(u,h,u,p,e,i)});f.notEnumerableProp(d,"__isPromisified__",!0),t[_]=d}}return f.toFastProperties(t),t}function u(t,e,n){return k(t,e,void 0,t,null,n)}var p,h={},f=t("./util"),_=t("./nodeback"),d=f.withAppended,v=f.maybeWrapAsError,y=f.canEvaluate,m=t("./errors").TypeError,g="Async",b={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],C=new RegExp("^(?:"+w.join("|")+")$"),j=function(t){return f.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},E=function(t){return t.replace(/([$])/,"\\$")},k=y?p:c;e.promisify=function(t,e){if("function"!=typeof t)throw new m("expecting a function but got "+f.classString(t));if(i(t))return t;e=Object(e);var n=void 0===e.context?h:e.context,o=!!e.multiArgs,s=u(t,n,o);return f.copyDescriptors(t,s,r),s},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!=typeof t)throw new m("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r=g);var i=e.filter;"function"!=typeof i&&(i=j);var o=e.promisifier;if("function"!=typeof o&&(o=k),!f.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=f.inheritedDataKeys(t),a=0;a<s.length;++a){var c=t[s[a]];"constructor"!==s[a]&&f.isClass(c)&&(l(c.prototype,r,i,o,n),l(c,r,i,o,n))}return l(t,r,i,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){var e,n=!1;if(void 0!==a&&t instanceof a)e=p(t),n=!0;else{var r=u.keys(t),i=r.length;e=new Array(2*i);for(var o=0;i>o;++o){var s=r[o];e[o]=t[s],e[o+i]=s}}this.constructor$(e),this._isMap=n,this._init$(void 0,n?-6:-3)}function s(t){var n,s=r(t);return l(s)?(n=s instanceof e?s._then(e.props,void 0,void 0,void 0,void 0):new o(s).promise(),s instanceof e&&n._propagateFrom(s,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var a,c=t("./util"),l=c.isObject,u=t("./es5");"function"==typeof Map&&(a=Map);var p=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var i=new Array(2*r.size);return r.forEach(t,i),i}}(),h=function(t){for(var e=new a,n=t.length/2|0,r=0;n>r;++r){var i=t[n+r],o=t[r];e.set(i,o)}return e};c.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=h(this._values);else{r={};for(var i=this.length(),o=0,s=this.length();s>o;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=0;i>o;++o)n[o+r]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1},i.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var n=this._front,i=this._length,o=n+i&e-1;r(this,0,this,e,o)},e.exports=i},{}],27:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,o){var c=r(t);if(c instanceof e)return a(c);if(t=s.asArray(t),null===t)return i("expecting an array or an iterable object but got "+s.classString(t));var l=new e(n);void 0!==o&&l._propagateFrom(o,3);for(var u=l._fulfill,p=l._reject,h=0,f=t.length;f>h;++h){var _=t[h];(void 0!==_||h in t)&&e.cast(_)._then(u,p,void 0,l,null)}return l}var s=t("./util"),a=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,n,r,i){this.constructor$(t);var s=h();this._fn=null===s?n:f.domainBind(s,n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,i===o?this._eachValues=Array(this._length):0===i?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function c(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function l(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o=new a(t,e,n,i);return o.promise()}function u(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(t){var n=this.array,r=n._promise,i=_(n._fn);r._pushContext();var o;o=void 0!==n._eachValues?i.call(r._boundValue(),t,this.index,this.length):i.call(r._boundValue(),this.accum,t,this.index,this.length),o instanceof e&&(n._currentCancellable=o);var a=r._popContext();return s.checkForgottenReturns(o,a,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),o}var h=e._getDomain,f=t("./util"),_=f.tryCatch;f.inherits(a,n),a.prototype._gotAccum=function(t){void 0!==this._eachValues&&null!==this._eachValues&&t!==o&&this._eachValues.push(t)},a.prototype._eachComplete=function(t){return null!==this._eachValues&&this._eachValues.push(t),this._eachValues},a.prototype._init=function(){},a.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},a.prototype.shouldCopyValues=function(){return!1},a.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},a.prototype._resultCancelled=function(t){return t===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel()))},a.prototype._iterate=function(t){this._values=t;var n,r,i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;i>r;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(u,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(c,c,void 0,n,this)},e.prototype.reduce=function(t,e){return l(this,t,e,null)},e.reduce=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],29:[function(t,e,n){"use strict";var r,i=t("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},s=i.getNativePromise();if(i.isNode&&"undefined"==typeof MutationObserver){var a=global.setImmediate,c=process.nextTick;r=i.isRecentNode?function(t){a.call(global,t)}:function(t){c.call(process,t)}}else if("function"==typeof s&&"function"==typeof s.resolve){var l=s.resolve();r=function(t){l.then(t)}}else r="undefined"!=typeof MutationObserver&&("undefined"==typeof window||!window.navigator||!window.navigator.standalone&&!window.cordova)&&"classList"in document.documentElement?function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}():"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:o;e.exports=r},{"./util":36
31
- }],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t)}var o=e.PromiseInspection,s=t("./util");s.inherits(i,n),i.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||0>e)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,l=s.isArray,u={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(u),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e<this._values.length;++e)this._values[e]!==u&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,r){if(u(t)){if(t instanceof e)return t;var i=o(t);if(i===l){r&&r._pushContext();var c=e.reject(i.e);return r&&r._popContext(),c}if("function"==typeof i){if(s(t)){var c=new e(n);return t._then(c._fulfill,c._reject,void 0,c,null),c}return a(t,i,r)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(e){return l.e=e,l}}function s(t){try{return p.call(t,"_promise0")}catch(e){return!1}}function a(t,r,i){function o(t){a&&(a._resolveCallback(t),a=null)}function s(t){a&&(a._rejectCallback(t,p,!0),a=null)}var a=new e(n),u=a;i&&i._pushContext(),a._captureStackTrace(),i&&i._popContext();var p=!0,h=c.tryCatch(r).call(t,o,s);return p=!1,a&&h===l&&(a._rejectCallback(h.e,!0,!0),a=null),u}var c=t("./util"),l=c.errorObj,u=c.isObject,p={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return u(+this).thenReturn(t)},u=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(l,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a)),s._captureStackTrace()),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return u(t,this)};var p=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&p(n,e,a)},t));return r.cancellation()?(a=this.then(),n=a._then(o,s,void 0,c,void 0),n._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function l(t,n){function i(){if(s>=l)return u._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(p){return a(p)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,l=t.length,u=new e(o);return i(),u}function u(t,e,n){this._data=t,this._promise=e,this._context=n}function p(t,e,n){this.constructor$(t,e,n)}function h(t){return u.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function f(t){this.length=t,this.promise=null,this[t-1]=null}var _=t("./util"),d=t("./errors").TypeError,v=t("./util").inherits,y=_.errorObj,m=_.tryCatch,g={};u.prototype.data=function(){return this._data},u.prototype.promise=function(){return this._promise},u.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},u.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==g?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},u.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},v(p,u),p.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},f.prototype._resultCancelled=function(){for(var t=this.length,n=0;t>n;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(2>t)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!=typeof i)return n("expecting a function but got "+_.classString(i));var o,a=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,a=!1):(o=arguments,t--);for(var c=new f(t),p=0;t>p;++p){var d=o[p];if(u.isDisposer(d)){var v=d;d=d.promise(),d._setDisposable(v)}else{var g=r(d);g instanceof e&&(d=g._then(h,null,null,{resources:c,index:p},void 0))}c[p]=d}for(var b=new Array(c.length),p=0;p<b.length;++p)b[p]=e.resolve(c[p]).reflect();var w=e.all(b).then(function(t){for(var e=0;e<t.length;++e){var n=t[e];if(n.isRejected())return y.e=n.error(),y;if(!n.isFulfilled())return void w.cancel();t[e]=n.value()}C._pushContext(),i=m(i);var r=a?i.apply(void 0,t):i(t),o=C._popContext();return s.checkForgottenReturns(r,o,"Promise.using",C),r}),C=w.lastly(function(){var t=new e.PromiseInspection(w);return l(c,t)});return c.promise=C,C._setOnCancel(c),C},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,i());throw new d}}},{"./errors":12,"./util":36}],36:[function(t,e,n){"use strict";function r(){try{var t=P;return P=null,t.apply(this,arguments)}catch(e){return x.e=e,x}}function i(t){return P=t,r}function o(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return o(t)?new Error(v(t)):t}function c(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;r>n;++n)i[n]=t[n];return i[n]=e,i}function l(t,e,n){if(!F.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function u(t,e,n){if(o(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return F.defineProperty(t,e,r),t}function p(t){throw t}function h(t){try{if("function"==typeof t){var e=F.names(t.prototype),n=F.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=A.test(t+"")&&F.names(t).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function f(t){function e(){}function n(){return typeof r.foo}e.prototype=t;var r=new e;return n(),n(),t}function _(t){return D.test(t)}function d(t,e,n){for(var r=new Array(t),i=0;t>i;++i)r[i]=e+i+n;return r}function v(t){try{return t+""}catch(e){return"[no string representation]"}}function y(t){return t instanceof Error||null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function m(t){try{u(t,"isOperational",!0)}catch(e){}}function g(t){return null==t?!1:t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0}function b(t){return y(t)&&F.propertyIsWritable(t,"stack")}function w(t){return{}.toString.call(t)}function C(t,e,n){for(var r=F.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{F.defineProperty(e,o,F.getDescriptor(t,o))}catch(s){}}}function j(t){return H?process.env[t]:void 0}function E(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(e){}}function k(t,e){return t.bind(e)}var F=t("./es5"),T="undefined"==typeof navigator,x={e:{}},P,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,R=function(t,e){function n(){this.constructor=t,this.constructor$=e;for(var n in e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},O=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(F.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=n(t)}catch(s){return r}for(var a=0;a<o.length;++a){var c=o[a];if(!i[c]){i[c]=!0;var l=Object.getOwnPropertyDescriptor(t,c);null!=l&&null==l.get&&null==l.set&&r.push(c)}}t=F.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var i=[];t:for(var o in n)if(r.call(n,o))i.push(o);else{for(var s=0;s<t.length;++s)if(r.call(t[s],o))continue t;i.push(o)}return i}}(),A=/this\s*\.\s*\S+\s*=/,D=/^[a-z$_][a-z$_0-9]*$/i,V=function(){return"stack"in new Error?function(t){return b(t)?t:new Error(v(t))}:function(t){if(b(t))return t;try{throw new Error(v(t))}catch(e){return e}}}(),I=function(t){return F.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var L="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};I=function(t){return F.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?L(t):null}}var N="undefined"!=typeof process&&"[object process]"===w(process).toLowerCase(),H="undefined"!=typeof process&&"undefined"!=typeof process.env,B={isClass:h,isIdentifier:_,inheritedDataKeys:O,getDataPropertyOrDefault:l,thrower:p,isArray:F.isArray,asArray:I,notEnumerableProp:u,isPrimitive:o,isObject:s,isError:y,canEvaluate:T,errorObj:x,tryCatch:i,inherits:R,withAppended:c,maybeWrapAsError:a,toFastProperties:f,filledRange:d,toString:v,canAttachTrace:b,ensureErrorObject:V,originatesFromRejection:g,markAsOriginatingFromRejection:m,classString:w,copyDescriptors:C,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:N,hasEnvVariables:H,env:j,global:S,getNativePromise:E,domainBind:k};B.isRecentNode=B.isNode&&function(){var t;return process.versions&&process.versions.node?t=process.versions.node.split(".").map(Number):process.version&&(t=process.version.split(".").map(Number)),0===t[0]&&t[1]>10||t[0]>0}(),B.isNode&&B.toFastProperties(process);try{throw new Error}catch(U){B.lastLineError=U}e.exports=B},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise);
28
+ */
29
+ !(function (t) {
30
+ if ("object" == typeof exports && "undefined" != typeof module)
31
+ module.exports = t();
32
+ else if ("function" == typeof define && define.amd) define([], t);
33
+ else {
34
+ var e;
35
+ "undefined" != typeof window
36
+ ? (e = window)
37
+ : "undefined" != typeof global
38
+ ? (e = global)
39
+ : "undefined" != typeof self && (e = self),
40
+ (e.Promise = t());
41
+ }
42
+ })(function () {
43
+ var t, e, n;
44
+ return (function r(t, e, n) {
45
+ function i(s, a) {
46
+ if (!e[s]) {
47
+ if (!t[s]) {
48
+ var c = "function" == typeof _dereq_ && _dereq_;
49
+ if (!a && c) return c(s, !0);
50
+ if (o) return o(s, !0);
51
+ var l = new Error("Cannot find module '" + s + "'");
52
+ throw ((l.code = "MODULE_NOT_FOUND"), l);
53
+ }
54
+ var u = (e[s] = { exports: {} });
55
+ t[s][0].call(
56
+ u.exports,
57
+ function (e) {
58
+ var n = t[s][1][e];
59
+ return i(n ? n : e);
60
+ },
61
+ u,
62
+ u.exports,
63
+ r,
64
+ t,
65
+ e,
66
+ n
67
+ );
68
+ }
69
+ return e[s].exports;
70
+ }
71
+ for (
72
+ var o = "function" == typeof _dereq_ && _dereq_, s = 0;
73
+ s < n.length;
74
+ s++
75
+ )
76
+ i(n[s]);
77
+ return i;
78
+ })(
79
+ {
80
+ 1: [
81
+ function (t, e, n) {
82
+ "use strict";
83
+ e.exports = function (t) {
84
+ function e(t) {
85
+ var e = new n(t),
86
+ r = e.promise();
87
+ return e.setHowMany(1), e.setUnwrap(), e.init(), r;
88
+ }
89
+ var n = t._SomePromiseArray;
90
+ (t.any = function (t) {
91
+ return e(t);
92
+ }),
93
+ (t.prototype.any = function () {
94
+ return e(this);
95
+ });
96
+ };
97
+ },
98
+ {}
99
+ ],
100
+
101
+ 2: [
102
+ function (t, e, n) {
103
+ "use strict";
104
+ function r() {
105
+ (this._customScheduler = !1),
106
+ (this._isTickUsed = !1),
107
+ (this._lateQueue = new h(16)),
108
+ (this._normalQueue = new h(16)),
109
+ (this._haveDrainedQueues = !1),
110
+ (this._trampolineEnabled = !0);
111
+ var t = this;
112
+ (this.drainQueues = function () {
113
+ t._drainQueues();
114
+ }),
115
+ (this._schedule = p);
116
+ }
117
+ function i(t, e, n) {
118
+ this._lateQueue.push(t, e, n), this._queueTick();
119
+ }
120
+ function o(t, e, n) {
121
+ this._normalQueue.push(t, e, n), this._queueTick();
122
+ }
123
+ function s(t) {
124
+ this._normalQueue._pushOne(t), this._queueTick();
125
+ }
126
+ function a(t) {
127
+ for (; t.length() > 0; ) c(t);
128
+ }
129
+ function c(t) {
130
+ var e = t.shift();
131
+ if ("function" != typeof e) e._settlePromises();
132
+ else {
133
+ var n = t.shift(),
134
+ r = t.shift();
135
+ e.call(n, r);
136
+ }
137
+ }
138
+ var l;
139
+ try {
140
+ throw new Error();
141
+ } catch (u) {
142
+ l = u;
143
+ }
144
+ var p = t("./schedule"),
145
+ h = t("./queue"),
146
+ f = t("./util");
147
+ (r.prototype.setScheduler = function (t) {
148
+ var e = this._schedule;
149
+ return (this._schedule = t), (this._customScheduler = !0), e;
150
+ }),
151
+ (r.prototype.hasCustomScheduler = function () {
152
+ return this._customScheduler;
153
+ }),
154
+ (r.prototype.enableTrampoline = function () {
155
+ this._trampolineEnabled = !0;
156
+ }),
157
+ (r.prototype.disableTrampolineIfNecessary = function () {
158
+ f.hasDevTools && (this._trampolineEnabled = !1);
159
+ }),
160
+ (r.prototype.haveItemsQueued = function () {
161
+ return this._isTickUsed || this._haveDrainedQueues;
162
+ }),
163
+ (r.prototype.fatalError = function (t, e) {
164
+ e
165
+ ? (process.stderr.write(
166
+ "Fatal " + (t instanceof Error ? t.stack : t) + "\n"
167
+ ),
168
+ process.exit(2))
169
+ : this.throwLater(t);
170
+ }),
171
+ (r.prototype.throwLater = function (t, e) {
172
+ if (
173
+ (1 === arguments.length &&
174
+ ((e = t),
175
+ (t = function () {
176
+ throw e;
177
+ })),
178
+ "undefined" != typeof setTimeout)
179
+ )
180
+ setTimeout(function () {
181
+ t(e);
182
+ }, 0);
183
+ else
184
+ try {
185
+ this._schedule(function () {
186
+ t(e);
187
+ });
188
+ } catch (n) {
189
+ throw new Error(
190
+ "No async scheduler available\n\n See http://goo.gl/MqrFmX\n"
191
+ );
192
+ }
193
+ }),
194
+ f.hasDevTools
195
+ ? ((r.prototype.invokeLater = function (t, e, n) {
196
+ this._trampolineEnabled
197
+ ? i.call(this, t, e, n)
198
+ : this._schedule(function () {
199
+ setTimeout(function () {
200
+ t.call(e, n);
201
+ }, 100);
202
+ });
203
+ }),
204
+ (r.prototype.invoke = function (t, e, n) {
205
+ this._trampolineEnabled
206
+ ? o.call(this, t, e, n)
207
+ : this._schedule(function () {
208
+ t.call(e, n);
209
+ });
210
+ }),
211
+ (r.prototype.settlePromises = function (t) {
212
+ this._trampolineEnabled
213
+ ? s.call(this, t)
214
+ : this._schedule(function () {
215
+ t._settlePromises();
216
+ });
217
+ }))
218
+ : ((r.prototype.invokeLater = i),
219
+ (r.prototype.invoke = o),
220
+ (r.prototype.settlePromises = s)),
221
+ (r.prototype._drainQueues = function () {
222
+ a(this._normalQueue),
223
+ this._reset(),
224
+ (this._haveDrainedQueues = !0),
225
+ a(this._lateQueue);
226
+ }),
227
+ (r.prototype._queueTick = function () {
228
+ this._isTickUsed ||
229
+ ((this._isTickUsed = !0), this._schedule(this.drainQueues));
230
+ }),
231
+ (r.prototype._reset = function () {
232
+ this._isTickUsed = !1;
233
+ }),
234
+ (e.exports = r),
235
+ (e.exports.firstLineError = l);
236
+ },
237
+ { "./queue": 26, "./schedule": 29, "./util": 36 }
238
+ ],
239
+
240
+ 3: [
241
+ function (t, e, n) {
242
+ "use strict";
243
+ e.exports = function (t, e, n, r) {
244
+ var i = !1,
245
+ o = function (t, e) {
246
+ this._reject(e);
247
+ },
248
+ s = function (t, e) {
249
+ (e.promiseRejectionQueued = !0),
250
+ e.bindingPromise._then(o, o, null, this, t);
251
+ },
252
+ a = function (t, e) {
253
+ 0 === (50397184 & this._bitField) &&
254
+ this._resolveCallback(e.target);
255
+ },
256
+ c = function (t, e) {
257
+ e.promiseRejectionQueued || this._reject(t);
258
+ };
259
+ (t.prototype.bind = function (o) {
260
+ i ||
261
+ ((i = !0),
262
+ (t.prototype._propagateFrom = r.propagateFromFunction()),
263
+ (t.prototype._boundValue = r.boundValueFunction()));
264
+ var l = n(o),
265
+ u = new t(e);
266
+ u._propagateFrom(this, 1);
267
+ var p = this._target();
268
+ if ((u._setBoundTo(l), l instanceof t)) {
269
+ var h = {
270
+ promiseRejectionQueued: !1,
271
+ promise: u,
272
+ target: p,
273
+ bindingPromise: l
274
+ };
275
+
276
+ p._then(e, s, void 0, u, h),
277
+ l._then(a, c, void 0, u, h),
278
+ u._setOnCancel(l);
279
+ } else u._resolveCallback(p);
280
+ return u;
281
+ }),
282
+ (t.prototype._setBoundTo = function (t) {
283
+ void 0 !== t
284
+ ? ((this._bitField = 2097152 | this._bitField),
285
+ (this._boundTo = t))
286
+ : (this._bitField = -2097153 & this._bitField);
287
+ }),
288
+ (t.prototype._isBound = function () {
289
+ return 2097152 === (2097152 & this._bitField);
290
+ }),
291
+ (t.bind = function (e, n) {
292
+ return t.resolve(n).bind(e);
293
+ });
294
+ };
295
+ },
296
+ {}
297
+ ],
298
+
299
+ 4: [
300
+ function (t, e, n) {
301
+ "use strict";
302
+ function r() {
303
+ try {
304
+ Promise === o && (Promise = i);
305
+ } catch (t) {}
306
+ return o;
307
+ }
308
+ var i;
309
+ "undefined" != typeof Promise && (i = Promise);
310
+ var o = t("./promise")();
311
+ (o.noConflict = r), (e.exports = o);
312
+ },
313
+ { "./promise": 22 }
314
+ ],
315
+
316
+ 5: [
317
+ function (t, e, n) {
318
+ "use strict";
319
+ var r = Object.create;
320
+ if (r) {
321
+ var i = r(null),
322
+ o = r(null);
323
+ i[" size"] = o[" size"] = 0;
324
+ }
325
+ e.exports = function (e) {
326
+ function n(t, n) {
327
+ var r;
328
+ if ((null != t && (r = t[n]), "function" != typeof r)) {
329
+ var i =
330
+ "Object " +
331
+ a.classString(t) +
332
+ " has no method '" +
333
+ a.toString(n) +
334
+ "'";
335
+ throw new e.TypeError(i);
336
+ }
337
+ return r;
338
+ }
339
+ function r(t) {
340
+ var e = this.pop(),
341
+ r = n(t, e);
342
+ return r.apply(t, this);
343
+ }
344
+ function i(t) {
345
+ return t[this];
346
+ }
347
+ function o(t) {
348
+ var e = +this;
349
+ return 0 > e && (e = Math.max(0, e + t.length)), t[e];
350
+ }
351
+ var s,
352
+ a = t("./util"),
353
+ c = a.canEvaluate;
354
+ a.isIdentifier;
355
+ (e.prototype.call = function (t) {
356
+ var e = [].slice.call(arguments, 1);
357
+ return e.push(t), this._then(r, void 0, void 0, e, void 0);
358
+ }),
359
+ (e.prototype.get = function (t) {
360
+ var e,
361
+ n = "number" == typeof t;
362
+ if (n) e = o;
363
+ else if (c) {
364
+ var r = s(t);
365
+ e = null !== r ? r : i;
366
+ } else e = i;
367
+ return this._then(e, void 0, void 0, t, void 0);
368
+ });
369
+ };
370
+ },
371
+ { "./util": 36 }
372
+ ],
373
+
374
+ 6: [
375
+ function (t, e, n) {
376
+ "use strict";
377
+ e.exports = function (e, n, r, i) {
378
+ var o = t("./util"),
379
+ s = o.tryCatch,
380
+ a = o.errorObj,
381
+ c = e._async;
382
+ (e.prototype["break"] = e.prototype.cancel =
383
+ function () {
384
+ if (!i.cancellation())
385
+ return this._warn("cancellation is disabled");
386
+ for (var t = this, e = t; t._isCancellable(); ) {
387
+ if (!t._cancelBy(e)) {
388
+ e._isFollowing()
389
+ ? e._followee().cancel()
390
+ : e._cancelBranched();
391
+ break;
392
+ }
393
+ var n = t._cancellationParent;
394
+ if (null == n || !n._isCancellable()) {
395
+ t._isFollowing()
396
+ ? t._followee().cancel()
397
+ : t._cancelBranched();
398
+ break;
399
+ }
400
+ t._isFollowing() && t._followee().cancel(),
401
+ t._setWillBeCancelled(),
402
+ (e = t),
403
+ (t = n);
404
+ }
405
+ }),
406
+ (e.prototype._branchHasCancelled = function () {
407
+ this._branchesRemainingToCancel--;
408
+ }),
409
+ (e.prototype._enoughBranchesHaveCancelled = function () {
410
+ return (
411
+ void 0 === this._branchesRemainingToCancel ||
412
+ this._branchesRemainingToCancel <= 0
413
+ );
414
+ }),
415
+ (e.prototype._cancelBy = function (t) {
416
+ return t === this
417
+ ? ((this._branchesRemainingToCancel = 0),
418
+ this._invokeOnCancel(),
419
+ !0)
420
+ : (this._branchHasCancelled(),
421
+ this._enoughBranchesHaveCancelled()
422
+ ? (this._invokeOnCancel(), !0)
423
+ : !1);
424
+ }),
425
+ (e.prototype._cancelBranched = function () {
426
+ this._enoughBranchesHaveCancelled() && this._cancel();
427
+ }),
428
+ (e.prototype._cancel = function () {
429
+ this._isCancellable() &&
430
+ (this._setCancelled(),
431
+ c.invoke(this._cancelPromises, this, void 0));
432
+ }),
433
+ (e.prototype._cancelPromises = function () {
434
+ this._length() > 0 && this._settlePromises();
435
+ }),
436
+ (e.prototype._unsetOnCancel = function () {
437
+ this._onCancelField = void 0;
438
+ }),
439
+ (e.prototype._isCancellable = function () {
440
+ return this.isPending() && !this._isCancelled();
441
+ }),
442
+ (e.prototype.isCancellable = function () {
443
+ return this.isPending() && !this.isCancelled();
444
+ }),
445
+ (e.prototype._doInvokeOnCancel = function (t, e) {
446
+ if (o.isArray(t))
447
+ for (var n = 0; n < t.length; ++n)
448
+ this._doInvokeOnCancel(t[n], e);
449
+ else if (void 0 !== t)
450
+ if ("function" == typeof t) {
451
+ if (!e) {
452
+ var r = s(t).call(this._boundValue());
453
+ r === a &&
454
+ (this._attachExtraTrace(r.e), c.throwLater(r.e));
455
+ }
456
+ } else t._resultCancelled(this);
457
+ }),
458
+ (e.prototype._invokeOnCancel = function () {
459
+ var t = this._onCancel();
460
+ this._unsetOnCancel(),
461
+ c.invoke(this._doInvokeOnCancel, this, t);
462
+ }),
463
+ (e.prototype._invokeInternalOnCancel = function () {
464
+ this._isCancellable() &&
465
+ (this._doInvokeOnCancel(this._onCancel(), !0),
466
+ this._unsetOnCancel());
467
+ }),
468
+ (e.prototype._resultCancelled = function () {
469
+ this.cancel();
470
+ });
471
+ };
472
+ },
473
+ { "./util": 36 }
474
+ ],
475
+
476
+ 7: [
477
+ function (t, e, n) {
478
+ "use strict";
479
+ e.exports = function (e) {
480
+ function n(t, n, a) {
481
+ return function (c) {
482
+ var l = a._boundValue();
483
+ t: for (var u = 0; u < t.length; ++u) {
484
+ var p = t[u];
485
+ if (
486
+ p === Error ||
487
+ (null != p && p.prototype instanceof Error)
488
+ ) {
489
+ if (c instanceof p) return o(n).call(l, c);
490
+ } else if ("function" == typeof p) {
491
+ var h = o(p).call(l, c);
492
+ if (h === s) return h;
493
+ if (h) return o(n).call(l, c);
494
+ } else if (r.isObject(c)) {
495
+ for (var f = i(p), _ = 0; _ < f.length; ++_) {
496
+ var d = f[_];
497
+ if (p[d] != c[d]) continue t;
498
+ }
499
+ return o(n).call(l, c);
500
+ }
501
+ }
502
+ return e;
503
+ };
504
+ }
505
+ var r = t("./util"),
506
+ i = t("./es5").keys,
507
+ o = r.tryCatch,
508
+ s = r.errorObj;
509
+ return n;
510
+ };
511
+ },
512
+ { "./es5": 13, "./util": 36 }
513
+ ],
514
+
515
+ 8: [
516
+ function (t, e, n) {
517
+ "use strict";
518
+ e.exports = function (t) {
519
+ function e() {
520
+ this._trace = new e.CapturedTrace(r());
521
+ }
522
+ function n() {
523
+ return i ? new e() : void 0;
524
+ }
525
+ function r() {
526
+ var t = o.length - 1;
527
+ return t >= 0 ? o[t] : void 0;
528
+ }
529
+ var i = !1,
530
+ o = [];
531
+ return (
532
+ (t.prototype._promiseCreated = function () {}),
533
+ (t.prototype._pushContext = function () {}),
534
+ (t.prototype._popContext = function () {
535
+ return null;
536
+ }),
537
+ (t._peekContext = t.prototype._peekContext = function () {}),
538
+ (e.prototype._pushContext = function () {
539
+ void 0 !== this._trace &&
540
+ ((this._trace._promiseCreated = null), o.push(this._trace));
541
+ }),
542
+ (e.prototype._popContext = function () {
543
+ if (void 0 !== this._trace) {
544
+ var t = o.pop(),
545
+ e = t._promiseCreated;
546
+ return (t._promiseCreated = null), e;
547
+ }
548
+ return null;
549
+ }),
550
+ (e.CapturedTrace = null),
551
+ (e.create = n),
552
+ (e.deactivateLongStackTraces = function () {}),
553
+ (e.activateLongStackTraces = function () {
554
+ var n = t.prototype._pushContext,
555
+ o = t.prototype._popContext,
556
+ s = t._peekContext,
557
+ a = t.prototype._peekContext,
558
+ c = t.prototype._promiseCreated;
559
+ (e.deactivateLongStackTraces = function () {
560
+ (t.prototype._pushContext = n),
561
+ (t.prototype._popContext = o),
562
+ (t._peekContext = s),
563
+ (t.prototype._peekContext = a),
564
+ (t.prototype._promiseCreated = c),
565
+ (i = !1);
566
+ }),
567
+ (i = !0),
568
+ (t.prototype._pushContext = e.prototype._pushContext),
569
+ (t.prototype._popContext = e.prototype._popContext),
570
+ (t._peekContext = t.prototype._peekContext = r),
571
+ (t.prototype._promiseCreated = function () {
572
+ var t = this._peekContext();
573
+ t &&
574
+ null == t._promiseCreated &&
575
+ (t._promiseCreated = this);
576
+ });
577
+ }),
578
+ e
579
+ );
580
+ };
581
+ },
582
+ {}
583
+ ],
584
+
585
+ 9: [
586
+ function (t, e, n) {
587
+ "use strict";
588
+ e.exports = function (e, n) {
589
+ function r(t, e) {
590
+ return { promise: e };
591
+ }
592
+ function i() {
593
+ return !1;
594
+ }
595
+ function o(t, e, n) {
596
+ var r = this;
597
+ try {
598
+ t(e, n, function (t) {
599
+ if ("function" != typeof t)
600
+ throw new TypeError(
601
+ "onCancel must be a function, got: " + H.toString(t)
602
+ );
603
+
604
+ r._attachCancellationCallback(t);
605
+ });
606
+ } catch (i) {
607
+ return i;
608
+ }
609
+ }
610
+ function s(t) {
611
+ if (!this._isCancellable()) return this;
612
+ var e = this._onCancel();
613
+ void 0 !== e
614
+ ? H.isArray(e)
615
+ ? e.push(t)
616
+ : this._setOnCancel([e, t])
617
+ : this._setOnCancel(t);
618
+ }
619
+ function a() {
620
+ return this._onCancelField;
621
+ }
622
+ function c(t) {
623
+ this._onCancelField = t;
624
+ }
625
+ function l() {
626
+ (this._cancellationParent = void 0),
627
+ (this._onCancelField = void 0);
628
+ }
629
+ function u(t, e) {
630
+ if (0 !== (1 & e)) {
631
+ this._cancellationParent = t;
632
+ var n = t._branchesRemainingToCancel;
633
+ void 0 === n && (n = 0), (t._branchesRemainingToCancel = n + 1);
634
+ }
635
+ 0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo);
636
+ }
637
+ function p(t, e) {
638
+ 0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo);
639
+ }
640
+ function h() {
641
+ var t = this._boundTo;
642
+ return void 0 !== t && t instanceof e
643
+ ? t.isFulfilled()
644
+ ? t.value()
645
+ : void 0
646
+ : t;
647
+ }
648
+ function f() {
649
+ this._trace = new O(this._peekContext());
650
+ }
651
+ function _(t, e) {
652
+ if (U(t)) {
653
+ var n = this._trace;
654
+ if ((void 0 !== n && e && (n = n._parent), void 0 !== n))
655
+ n.attachExtraTrace(t);
656
+ else if (!t.__stackCleaned__) {
657
+ var r = E(t);
658
+ H.notEnumerableProp(
659
+ t,
660
+ "stack",
661
+ r.message + "\n" + r.stack.join("\n")
662
+ ),
663
+ H.notEnumerableProp(t, "__stackCleaned__", !0);
664
+ }
665
+ }
666
+ }
667
+ function d() {
668
+ this._trace = void 0;
669
+ }
670
+ function v(t, e, n, r, i) {
671
+ if (void 0 === t && null !== e && J) {
672
+ if (void 0 !== i && i._returnedNonUndefined()) return;
673
+ if (0 === (65535 & r._bitField)) return;
674
+ n && (n += " ");
675
+ var o = "",
676
+ s = "";
677
+ if (e._trace) {
678
+ for (
679
+ var a = e._trace.stack.split("\n"),
680
+ c = C(a),
681
+ l = c.length - 1;
682
+ l >= 0;
683
+ --l
684
+ ) {
685
+ var u = c[l];
686
+ if (!q.test(u)) {
687
+ var p = u.match($);
688
+ p && (o = "at " + p[1] + ":" + p[2] + ":" + p[3] + " ");
689
+ break;
690
+ }
691
+ }
692
+ if (c.length > 0)
693
+ for (var h = c[0], l = 0; l < a.length; ++l)
694
+ if (a[l] === h) {
695
+ l > 0 && (s = "\n" + a[l - 1]);
696
+ break;
697
+ }
698
+ }
699
+ var f =
700
+ "a promise was created in a " +
701
+ n +
702
+ "handler " +
703
+ o +
704
+ "but was not returned from it, see http://goo.gl/rRqMUw" +
705
+ s;
706
+ r._warn(f, !0, e);
707
+ }
708
+ }
709
+ function y(t, e) {
710
+ var n =
711
+ t + " is deprecated and will be removed in a future version.";
712
+ return e && (n += " Use " + e + " instead."), m(n);
713
+ }
714
+ function m(t, n, r) {
715
+ if (at.warnings) {
716
+ var i,
717
+ o = new N(t);
718
+ if (n) r._attachExtraTrace(o);
719
+ else if (at.longStackTraces && (i = e._peekContext()))
720
+ i.attachExtraTrace(o);
721
+ else {
722
+ var s = E(o);
723
+ o.stack = s.message + "\n" + s.stack.join("\n");
724
+ }
725
+ nt("warning", o) || k(o, "", !0);
726
+ }
727
+ }
728
+ function g(t, e) {
729
+ for (var n = 0; n < e.length - 1; ++n)
730
+ e[n].push("From previous event:"), (e[n] = e[n].join("\n"));
731
+ return (
732
+ n < e.length && (e[n] = e[n].join("\n")),
733
+ t + "\n" + e.join("\n")
734
+ );
735
+ }
736
+ function b(t) {
737
+ for (var e = 0; e < t.length; ++e)
738
+ (0 === t[e].length ||
739
+ (e + 1 < t.length && t[e][0] === t[e + 1][0])) &&
740
+ (t.splice(e, 1), e--);
741
+ }
742
+ function w(t) {
743
+ for (var e = t[0], n = 1; n < t.length; ++n) {
744
+ for (
745
+ var r = t[n],
746
+ i = e.length - 1,
747
+ o = e[i],
748
+ s = -1,
749
+ a = r.length - 1;
750
+ a >= 0;
751
+ --a
752
+ )
753
+ if (r[a] === o) {
754
+ s = a;
755
+ break;
756
+ }
757
+ for (var a = s; a >= 0; --a) {
758
+ var c = r[a];
759
+ if (e[i] !== c) break;
760
+ e.pop(), i--;
761
+ }
762
+ e = r;
763
+ }
764
+ }
765
+ function C(t) {
766
+ for (var e = [], n = 0; n < t.length; ++n) {
767
+ var r = t[n],
768
+ i = " (No stack trace)" === r || Q.test(r),
769
+ o = i && it(r);
770
+ i &&
771
+ !o &&
772
+ (z && " " !== r.charAt(0) && (r = " " + r), e.push(r));
773
+ }
774
+ return e;
775
+ }
776
+ function j(t) {
777
+ for (
778
+ var e = t.stack.replace(/\s+$/g, "").split("\n"), n = 0;
779
+ n < e.length;
780
+ ++n
781
+ ) {
782
+ var r = e[n];
783
+ if (" (No stack trace)" === r || Q.test(r)) break;
784
+ }
785
+ return n > 0 && "SyntaxError" != t.name && (e = e.slice(n)), e;
786
+ }
787
+ function E(t) {
788
+ var e = t.stack,
789
+ n = t.toString();
790
+ return (
791
+ (e =
792
+ "string" == typeof e && e.length > 0
793
+ ? j(t)
794
+ : [" (No stack trace)"]),
795
+ { message: n, stack: "SyntaxError" == t.name ? e : C(e) }
796
+ );
797
+ }
798
+ function k(t, e, n) {
799
+ if ("undefined" != typeof console) {
800
+ var r;
801
+ if (H.isObject(t)) {
802
+ var i = t.stack;
803
+ r = e + G(i, t);
804
+ } else r = e + String(t);
805
+ "function" == typeof V
806
+ ? V(r, n)
807
+ : ("function" == typeof console.log ||
808
+ "object" == typeof console.log) &&
809
+ console.log(r);
810
+ }
811
+ }
812
+ function F(t, e, n, r) {
813
+ var i = !1;
814
+ try {
815
+ "function" == typeof e &&
816
+ ((i = !0), "rejectionHandled" === t ? e(r) : e(n, r));
817
+ } catch (o) {
818
+ L.throwLater(o);
819
+ }
820
+ "unhandledRejection" === t
821
+ ? nt(t, n, r) || i || k(n, "Unhandled rejection ")
822
+ : nt(t, r);
823
+ }
824
+ function T(t) {
825
+ var e;
826
+ if ("function" == typeof t)
827
+ e = "[function " + (t.name || "anonymous") + "]";
828
+ else {
829
+ e =
830
+ t && "function" == typeof t.toString
831
+ ? t.toString()
832
+ : H.toString(t);
833
+ var n = /\[object [a-zA-Z0-9$_]+\]/;
834
+ if (n.test(e))
835
+ try {
836
+ var r = JSON.stringify(t);
837
+ e = r;
838
+ } catch (i) {}
839
+ 0 === e.length && (e = "(empty array)");
840
+ }
841
+ return "(<" + x(e) + ">, no stack trace)";
842
+ }
843
+ function x(t) {
844
+ var e = 41;
845
+ return t.length < e ? t : t.substr(0, e - 3) + "...";
846
+ }
847
+ function P() {
848
+ return "function" == typeof st;
849
+ }
850
+ function S(t) {
851
+ var e = t.match(ot);
852
+ return e ? { fileName: e[1], line: parseInt(e[2], 10) } : void 0;
853
+ }
854
+ function R(t, e) {
855
+ if (P()) {
856
+ for (
857
+ var n,
858
+ r,
859
+ i = (t.stack || "").split("\n"),
860
+ o = (e.stack || "").split("\n"),
861
+ s = -1,
862
+ a = -1,
863
+ c = 0;
864
+ c < i.length;
865
+ ++c
866
+ ) {
867
+ var l = S(i[c]);
868
+ if (l) {
869
+ (n = l.fileName), (s = l.line);
870
+ break;
871
+ }
872
+ }
873
+ for (var c = 0; c < o.length; ++c) {
874
+ var l = S(o[c]);
875
+ if (l) {
876
+ (r = l.fileName), (a = l.line);
877
+ break;
878
+ }
879
+ }
880
+ 0 > s ||
881
+ 0 > a ||
882
+ !n ||
883
+ !r ||
884
+ n !== r ||
885
+ s >= a ||
886
+ (it = function (t) {
887
+ if (M.test(t)) return !0;
888
+ var e = S(t);
889
+ return e && e.fileName === n && s <= e.line && e.line <= a
890
+ ? !0
891
+ : !1;
892
+ });
893
+ }
894
+ }
895
+ function O(t) {
896
+ (this._parent = t), (this._promisesCreated = 0);
897
+ var e = (this._length = 1 + (void 0 === t ? 0 : t._length));
898
+ st(this, O), e > 32 && this.uncycle();
899
+ }
900
+ var A,
901
+ D,
902
+ V,
903
+ I = e._getDomain,
904
+ L = e._async,
905
+ N = t("./errors").Warning,
906
+ H = t("./util"),
907
+ B = t("./es5"),
908
+ U = H.canAttachTrace,
909
+ M = /[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,
910
+ q = /\((?:timers\.js):\d+:\d+\)/,
911
+ $ = /[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,
912
+ Q = null,
913
+ G = null,
914
+ z = !1,
915
+ X = !(
916
+ 0 == H.env("BLUEBIRD_DEBUG") ||
917
+ (!H.env("BLUEBIRD_DEBUG") &&
918
+ "development" !== H.env("NODE_ENV"))
919
+ ),
920
+ W = !(
921
+ 0 == H.env("BLUEBIRD_WARNINGS") ||
922
+ (!X && !H.env("BLUEBIRD_WARNINGS"))
923
+ ),
924
+ K = !(
925
+ 0 == H.env("BLUEBIRD_LONG_STACK_TRACES") ||
926
+ (!X && !H.env("BLUEBIRD_LONG_STACK_TRACES"))
927
+ ),
928
+ J =
929
+ 0 != H.env("BLUEBIRD_W_FORGOTTEN_RETURN") &&
930
+ (W || !!H.env("BLUEBIRD_W_FORGOTTEN_RETURN"));
931
+ (e.prototype.suppressUnhandledRejections = function () {
932
+ var t = this._target();
933
+ t._bitField = (-1048577 & t._bitField) | 524288;
934
+ }),
935
+ (e.prototype._ensurePossibleRejectionHandled = function () {
936
+ if (0 === (524288 & this._bitField)) {
937
+ this._setRejectionIsUnhandled();
938
+ var t = this;
939
+ setTimeout(function () {
940
+ t._notifyUnhandledRejection();
941
+ }, 1);
942
+ }
943
+ }),
944
+ (e.prototype._notifyUnhandledRejectionIsHandled = function () {
945
+ F("rejectionHandled", A, void 0, this);
946
+ }),
947
+ (e.prototype._setReturnedNonUndefined = function () {
948
+ this._bitField = 268435456 | this._bitField;
949
+ }),
950
+ (e.prototype._returnedNonUndefined = function () {
951
+ return 0 !== (268435456 & this._bitField);
952
+ }),
953
+ (e.prototype._notifyUnhandledRejection = function () {
954
+ if (this._isRejectionUnhandled()) {
955
+ var t = this._settledValue();
956
+ this._setUnhandledRejectionIsNotified(),
957
+ F("unhandledRejection", D, t, this);
958
+ }
959
+ }),
960
+ (e.prototype._setUnhandledRejectionIsNotified = function () {
961
+ this._bitField = 262144 | this._bitField;
962
+ }),
963
+ (e.prototype._unsetUnhandledRejectionIsNotified = function () {
964
+ this._bitField = -262145 & this._bitField;
965
+ }),
966
+ (e.prototype._isUnhandledRejectionNotified = function () {
967
+ return (262144 & this._bitField) > 0;
968
+ }),
969
+ (e.prototype._setRejectionIsUnhandled = function () {
970
+ this._bitField = 1048576 | this._bitField;
971
+ }),
972
+ (e.prototype._unsetRejectionIsUnhandled = function () {
973
+ (this._bitField = -1048577 & this._bitField),
974
+ this._isUnhandledRejectionNotified() &&
975
+ (this._unsetUnhandledRejectionIsNotified(),
976
+ this._notifyUnhandledRejectionIsHandled());
977
+ }),
978
+ (e.prototype._isRejectionUnhandled = function () {
979
+ return (1048576 & this._bitField) > 0;
980
+ }),
981
+ (e.prototype._warn = function (t, e, n) {
982
+ return m(t, e, n || this);
983
+ }),
984
+ (e.onPossiblyUnhandledRejection = function (t) {
985
+ var e = I();
986
+ D =
987
+ "function" == typeof t
988
+ ? null === e
989
+ ? t
990
+ : H.domainBind(e, t)
991
+ : void 0;
992
+ }),
993
+ (e.onUnhandledRejectionHandled = function (t) {
994
+ var e = I();
995
+ A =
996
+ "function" == typeof t
997
+ ? null === e
998
+ ? t
999
+ : H.domainBind(e, t)
1000
+ : void 0;
1001
+ });
1002
+ var Y = function () {};
1003
+ (e.longStackTraces = function () {
1004
+ if (L.haveItemsQueued() && !at.longStackTraces)
1005
+ throw new Error(
1006
+ "cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n"
1007
+ );
1008
+
1009
+ if (!at.longStackTraces && P()) {
1010
+ var t = e.prototype._captureStackTrace,
1011
+ r = e.prototype._attachExtraTrace,
1012
+ i = e.prototype._dereferenceTrace;
1013
+ (at.longStackTraces = !0),
1014
+ (Y = function () {
1015
+ if (L.haveItemsQueued() && !at.longStackTraces)
1016
+ throw new Error(
1017
+ "cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n"
1018
+ );
1019
+
1020
+ (e.prototype._captureStackTrace = t),
1021
+ (e.prototype._attachExtraTrace = r),
1022
+ (e.prototype._dereferenceTrace = i),
1023
+ n.deactivateLongStackTraces(),
1024
+ L.enableTrampoline(),
1025
+ (at.longStackTraces = !1);
1026
+ }),
1027
+ (e.prototype._captureStackTrace = f),
1028
+ (e.prototype._attachExtraTrace = _),
1029
+ (e.prototype._dereferenceTrace = d),
1030
+ n.activateLongStackTraces(),
1031
+ L.disableTrampolineIfNecessary();
1032
+ }
1033
+ }),
1034
+ (e.hasLongStackTraces = function () {
1035
+ return at.longStackTraces && P();
1036
+ });
1037
+ var Z = (function () {
1038
+ try {
1039
+ if ("function" == typeof CustomEvent) {
1040
+ var t = new CustomEvent("CustomEvent");
1041
+ return (
1042
+ H.global.dispatchEvent(t),
1043
+ function (t, e) {
1044
+ var n = { detail: e, cancelable: !0 };
1045
+ B.defineProperty(n, "promise", { value: e.promise }),
1046
+ B.defineProperty(n, "reason", { value: e.reason });
1047
+ var r = new CustomEvent(t.toLowerCase(), n);
1048
+ return !H.global.dispatchEvent(r);
1049
+ }
1050
+ );
1051
+ }
1052
+ if ("function" == typeof Event) {
1053
+ var t = new Event("CustomEvent");
1054
+ return (
1055
+ H.global.dispatchEvent(t),
1056
+ function (t, e) {
1057
+ var n = new Event(t.toLowerCase(), { cancelable: !0 });
1058
+ return (
1059
+ (n.detail = e),
1060
+ B.defineProperty(n, "promise", { value: e.promise }),
1061
+ B.defineProperty(n, "reason", { value: e.reason }),
1062
+ !H.global.dispatchEvent(n)
1063
+ );
1064
+ }
1065
+ );
1066
+ }
1067
+ var t = document.createEvent("CustomEvent");
1068
+ return (
1069
+ t.initCustomEvent("testingtheevent", !1, !0, {}),
1070
+ H.global.dispatchEvent(t),
1071
+ function (t, e) {
1072
+ var n = document.createEvent("CustomEvent");
1073
+ return (
1074
+ n.initCustomEvent(t.toLowerCase(), !1, !0, e),
1075
+ !H.global.dispatchEvent(n)
1076
+ );
1077
+ }
1078
+ );
1079
+ } catch (e) {}
1080
+ return function () {
1081
+ return !1;
1082
+ };
1083
+ })(),
1084
+ tt = (function () {
1085
+ return H.isNode
1086
+ ? function () {
1087
+ return process.emit.apply(process, arguments);
1088
+ }
1089
+ : H.global
1090
+ ? function (t) {
1091
+ var e = "on" + t.toLowerCase(),
1092
+ n = H.global[e];
1093
+ return n
1094
+ ? (n.apply(H.global, [].slice.call(arguments, 1)), !0)
1095
+ : !1;
1096
+ }
1097
+ : function () {
1098
+ return !1;
1099
+ };
1100
+ })(),
1101
+ et = {
1102
+ promiseCreated: r,
1103
+ promiseFulfilled: r,
1104
+ promiseRejected: r,
1105
+ promiseResolved: r,
1106
+ promiseCancelled: r,
1107
+ promiseChained(t, e, n) {
1108
+ return { promise: e, child: n };
1109
+ },
1110
+ warning(t, e) {
1111
+ return { warning: e };
1112
+ },
1113
+ unhandledRejection(t, e, n) {
1114
+ return { reason: e, promise: n };
1115
+ },
1116
+ rejectionHandled: r
1117
+ },
1118
+ nt = function (t) {
1119
+ var e = !1;
1120
+ try {
1121
+ e = tt.apply(null, arguments);
1122
+ } catch (n) {
1123
+ L.throwLater(n), (e = !0);
1124
+ }
1125
+ var r = !1;
1126
+ try {
1127
+ r = Z(t, et[t].apply(null, arguments));
1128
+ } catch (n) {
1129
+ L.throwLater(n), (r = !0);
1130
+ }
1131
+ return r || e;
1132
+ };
1133
+ (e.config = function (t) {
1134
+ if (
1135
+ ((t = Object(t)),
1136
+ "longStackTraces" in t &&
1137
+ (t.longStackTraces
1138
+ ? e.longStackTraces()
1139
+ : !t.longStackTraces && e.hasLongStackTraces() && Y()),
1140
+ "warnings" in t)
1141
+ ) {
1142
+ var n = t.warnings;
1143
+ (at.warnings = !!n),
1144
+ (J = at.warnings),
1145
+ H.isObject(n) &&
1146
+ "wForgottenReturn" in n &&
1147
+ (J = !!n.wForgottenReturn);
1148
+ }
1149
+ if ("cancellation" in t && t.cancellation && !at.cancellation) {
1150
+ if (L.haveItemsQueued())
1151
+ throw new Error(
1152
+ "cannot enable cancellation after promises are in use"
1153
+ );
1154
+
1155
+ (e.prototype._clearCancellationData = l),
1156
+ (e.prototype._propagateFrom = u),
1157
+ (e.prototype._onCancel = a),
1158
+ (e.prototype._setOnCancel = c),
1159
+ (e.prototype._attachCancellationCallback = s),
1160
+ (e.prototype._execute = o),
1161
+ (rt = u),
1162
+ (at.cancellation = !0);
1163
+ }
1164
+ return (
1165
+ "monitoring" in t &&
1166
+ (t.monitoring && !at.monitoring
1167
+ ? ((at.monitoring = !0), (e.prototype._fireEvent = nt))
1168
+ : !t.monitoring &&
1169
+ at.monitoring &&
1170
+ ((at.monitoring = !1), (e.prototype._fireEvent = i))),
1171
+ e
1172
+ );
1173
+ }),
1174
+ (e.prototype._fireEvent = i),
1175
+ (e.prototype._execute = function (t, e, n) {
1176
+ try {
1177
+ t(e, n);
1178
+ } catch (r) {
1179
+ return r;
1180
+ }
1181
+ }),
1182
+ (e.prototype._onCancel = function () {}),
1183
+ (e.prototype._setOnCancel = function (t) {}),
1184
+ (e.prototype._attachCancellationCallback = function (t) {}),
1185
+ (e.prototype._captureStackTrace = function () {}),
1186
+ (e.prototype._attachExtraTrace = function () {}),
1187
+ (e.prototype._dereferenceTrace = function () {}),
1188
+ (e.prototype._clearCancellationData = function () {}),
1189
+ (e.prototype._propagateFrom = function (t, e) {});
1190
+ var rt = p,
1191
+ it = function () {
1192
+ return !1;
1193
+ },
1194
+ ot = /[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;
1195
+ H.inherits(O, Error),
1196
+ (n.CapturedTrace = O),
1197
+ (O.prototype.uncycle = function () {
1198
+ var t = this._length;
1199
+ if (!(2 > t)) {
1200
+ for (var e = [], n = {}, r = 0, i = this; void 0 !== i; ++r)
1201
+ e.push(i), (i = i._parent);
1202
+ t = this._length = r;
1203
+ for (var r = t - 1; r >= 0; --r) {
1204
+ var o = e[r].stack;
1205
+ void 0 === n[o] && (n[o] = r);
1206
+ }
1207
+ for (var r = 0; t > r; ++r) {
1208
+ var s = e[r].stack,
1209
+ a = n[s];
1210
+ if (void 0 !== a && a !== r) {
1211
+ a > 0 &&
1212
+ ((e[a - 1]._parent = void 0), (e[a - 1]._length = 1)),
1213
+ (e[r]._parent = void 0),
1214
+ (e[r]._length = 1);
1215
+ var c = r > 0 ? e[r - 1] : this;
1216
+ t - 1 > a
1217
+ ? ((c._parent = e[a + 1]),
1218
+ c._parent.uncycle(),
1219
+ (c._length = c._parent._length + 1))
1220
+ : ((c._parent = void 0), (c._length = 1));
1221
+ for (var l = c._length + 1, u = r - 2; u >= 0; --u)
1222
+ (e[u]._length = l), l++;
1223
+ return;
1224
+ }
1225
+ }
1226
+ }
1227
+ }),
1228
+ (O.prototype.attachExtraTrace = function (t) {
1229
+ if (!t.__stackCleaned__) {
1230
+ this.uncycle();
1231
+ for (
1232
+ var e = E(t), n = e.message, r = [e.stack], i = this;
1233
+ void 0 !== i;
1234
+
1235
+ )
1236
+ r.push(C(i.stack.split("\n"))), (i = i._parent);
1237
+ w(r),
1238
+ b(r),
1239
+ H.notEnumerableProp(t, "stack", g(n, r)),
1240
+ H.notEnumerableProp(t, "__stackCleaned__", !0);
1241
+ }
1242
+ });
1243
+ var st = (function () {
1244
+ var t = /^\s*at\s*/,
1245
+ e = function (t, e) {
1246
+ return "string" == typeof t
1247
+ ? t
1248
+ : void 0 !== e.name && void 0 !== e.message
1249
+ ? e.toString()
1250
+ : T(e);
1251
+ };
1252
+ if (
1253
+ "number" == typeof Error.stackTraceLimit &&
1254
+ "function" == typeof Error.captureStackTrace
1255
+ ) {
1256
+ (Error.stackTraceLimit += 6), (Q = t), (G = e);
1257
+ var n = Error.captureStackTrace;
1258
+ return (
1259
+ (it = function (t) {
1260
+ return M.test(t);
1261
+ }),
1262
+ function (t, e) {
1263
+ (Error.stackTraceLimit += 6),
1264
+ n(t, e),
1265
+ (Error.stackTraceLimit -= 6);
1266
+ }
1267
+ );
1268
+ }
1269
+ var r = new Error();
1270
+ if (
1271
+ "string" == typeof r.stack &&
1272
+ r.stack.split("\n")[0].indexOf("stackDetection@") >= 0
1273
+ )
1274
+ return (
1275
+ (Q = /@/),
1276
+ (G = e),
1277
+ (z = !0),
1278
+ function (t) {
1279
+ t.stack = new Error().stack;
1280
+ }
1281
+ );
1282
+
1283
+ var i;
1284
+ try {
1285
+ throw new Error();
1286
+ } catch (o) {
1287
+ i = "stack" in o;
1288
+ }
1289
+ return "stack" in r ||
1290
+ !i ||
1291
+ "number" != typeof Error.stackTraceLimit
1292
+ ? ((G = function (t, e) {
1293
+ return "string" == typeof t
1294
+ ? t
1295
+ : ("object" != typeof e && "function" != typeof e) ||
1296
+ void 0 === e.name ||
1297
+ void 0 === e.message
1298
+ ? T(e)
1299
+ : e.toString();
1300
+ }),
1301
+ null)
1302
+ : ((Q = t),
1303
+ (G = e),
1304
+ function (t) {
1305
+ Error.stackTraceLimit += 6;
1306
+ try {
1307
+ throw new Error();
1308
+ } catch (e) {
1309
+ t.stack = e.stack;
1310
+ }
1311
+ Error.stackTraceLimit -= 6;
1312
+ });
1313
+ })([]);
1314
+ "undefined" != typeof console &&
1315
+ "undefined" != typeof console.warn &&
1316
+ ((V = function (t) {
1317
+ console.warn(t);
1318
+ }),
1319
+ H.isNode && process.stderr.isTTY
1320
+ ? (V = function (t, e) {
1321
+ var n = e ? "" : "";
1322
+ console.warn(n + t + "\n");
1323
+ })
1324
+ : H.isNode ||
1325
+ "string" != typeof new Error().stack ||
1326
+ (V = function (t, e) {
1327
+ console.warn(
1328
+ "%c" + t,
1329
+ e ? "color: darkorange" : "color: red"
1330
+ );
1331
+ }));
1332
+ var at = {
1333
+ warnings: W,
1334
+ longStackTraces: !1,
1335
+ cancellation: !1,
1336
+ monitoring: !1
1337
+ };
1338
+
1339
+ return (
1340
+ K && e.longStackTraces(),
1341
+ {
1342
+ longStackTraces() {
1343
+ return at.longStackTraces;
1344
+ },
1345
+ warnings() {
1346
+ return at.warnings;
1347
+ },
1348
+ cancellation() {
1349
+ return at.cancellation;
1350
+ },
1351
+ monitoring() {
1352
+ return at.monitoring;
1353
+ },
1354
+ propagateFromFunction() {
1355
+ return rt;
1356
+ },
1357
+ boundValueFunction() {
1358
+ return h;
1359
+ },
1360
+ checkForgottenReturns: v,
1361
+ setBounds: R,
1362
+ warn: m,
1363
+ deprecated: y,
1364
+ CapturedTrace: O,
1365
+ fireDomEvent: Z,
1366
+ fireGlobalEvent: tt
1367
+ }
1368
+ );
1369
+ };
1370
+ },
1371
+ { "./errors": 12, "./es5": 13, "./util": 36 }
1372
+ ],
1373
+
1374
+ 10: [
1375
+ function (t, e, n) {
1376
+ "use strict";
1377
+ e.exports = function (t) {
1378
+ function e() {
1379
+ return this.value;
1380
+ }
1381
+ function n() {
1382
+ throw this.reason;
1383
+ }
1384
+ (t.prototype["return"] = t.prototype.thenReturn =
1385
+ function (n) {
1386
+ return (
1387
+ n instanceof t && n.suppressUnhandledRejections(),
1388
+ this._then(e, void 0, void 0, { value: n }, void 0)
1389
+ );
1390
+ }),
1391
+ (t.prototype["throw"] = t.prototype.thenThrow =
1392
+ function (t) {
1393
+ return this._then(n, void 0, void 0, { reason: t }, void 0);
1394
+ }),
1395
+ (t.prototype.catchThrow = function (t) {
1396
+ if (arguments.length <= 1)
1397
+ return this._then(void 0, n, void 0, { reason: t }, void 0);
1398
+ var e = arguments[1],
1399
+ r = function () {
1400
+ throw e;
1401
+ };
1402
+ return this.caught(t, r);
1403
+ }),
1404
+ (t.prototype.catchReturn = function (n) {
1405
+ if (arguments.length <= 1)
1406
+ return (
1407
+ n instanceof t && n.suppressUnhandledRejections(),
1408
+ this._then(void 0, e, void 0, { value: n }, void 0)
1409
+ );
1410
+
1411
+ var r = arguments[1];
1412
+ r instanceof t && r.suppressUnhandledRejections();
1413
+ var i = function () {
1414
+ return r;
1415
+ };
1416
+ return this.caught(n, i);
1417
+ });
1418
+ };
1419
+ },
1420
+ {}
1421
+ ],
1422
+
1423
+ 11: [
1424
+ function (t, e, n) {
1425
+ "use strict";
1426
+ e.exports = function (t, e) {
1427
+ function n() {
1428
+ return o(this);
1429
+ }
1430
+ function r(t, n) {
1431
+ return i(t, n, e, e);
1432
+ }
1433
+ var i = t.reduce,
1434
+ o = t.all;
1435
+ (t.prototype.each = function (t) {
1436
+ return i(this, t, e, 0)._then(n, void 0, void 0, this, void 0);
1437
+ }),
1438
+ (t.prototype.mapSeries = function (t) {
1439
+ return i(this, t, e, e);
1440
+ }),
1441
+ (t.each = function (t, r) {
1442
+ return i(t, r, e, 0)._then(n, void 0, void 0, t, void 0);
1443
+ }),
1444
+ (t.mapSeries = r);
1445
+ };
1446
+ },
1447
+ {}
1448
+ ],
1449
+
1450
+ 12: [
1451
+ function (t, e, n) {
1452
+ "use strict";
1453
+ function r(t, e) {
1454
+ function n(r) {
1455
+ return this instanceof n
1456
+ ? (p(this, "message", "string" == typeof r ? r : e),
1457
+ p(this, "name", t),
1458
+ void (Error.captureStackTrace
1459
+ ? Error.captureStackTrace(this, this.constructor)
1460
+ : Error.call(this)))
1461
+ : new n(r);
1462
+ }
1463
+ return u(n, Error), n;
1464
+ }
1465
+ function i(t) {
1466
+ return this instanceof i
1467
+ ? (p(this, "name", "OperationalError"),
1468
+ p(this, "message", t),
1469
+ (this.cause = t),
1470
+ (this.isOperational = !0),
1471
+ void (t instanceof Error
1472
+ ? (p(this, "message", t.message), p(this, "stack", t.stack))
1473
+ : Error.captureStackTrace &&
1474
+ Error.captureStackTrace(this, this.constructor)))
1475
+ : new i(t);
1476
+ }
1477
+ var o,
1478
+ s,
1479
+ a = t("./es5"),
1480
+ c = a.freeze,
1481
+ l = t("./util"),
1482
+ u = l.inherits,
1483
+ p = l.notEnumerableProp,
1484
+ h = r("Warning", "warning"),
1485
+ f = r("CancellationError", "cancellation error"),
1486
+ _ = r("TimeoutError", "timeout error"),
1487
+ d = r("AggregateError", "aggregate error");
1488
+ try {
1489
+ (o = TypeError), (s = RangeError);
1490
+ } catch (v) {
1491
+ (o = r("TypeError", "type error")),
1492
+ (s = r("RangeError", "range error"));
1493
+ }
1494
+ for (
1495
+ var y =
1496
+ "join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(
1497
+ " "
1498
+ ),
1499
+ m = 0;
1500
+ m < y.length;
1501
+ ++m
1502
+ )
1503
+ "function" == typeof Array.prototype[y[m]] &&
1504
+ (d.prototype[y[m]] = Array.prototype[y[m]]);
1505
+ a.defineProperty(d.prototype, "length", {
1506
+ value: 0,
1507
+ configurable: !1,
1508
+ writable: !0,
1509
+ enumerable: !0
1510
+ }),
1511
+ (d.prototype.isOperational = !0);
1512
+ var g = 0;
1513
+ (d.prototype.toString = function () {
1514
+ var t = Array(4 * g + 1).join(" "),
1515
+ e = "\n" + t + "AggregateError of:\n";
1516
+ g++, (t = Array(4 * g + 1).join(" "));
1517
+ for (var n = 0; n < this.length; ++n) {
1518
+ for (
1519
+ var r =
1520
+ this[n] === this
1521
+ ? "[Circular AggregateError]"
1522
+ : this[n] + "",
1523
+ i = r.split("\n"),
1524
+ o = 0;
1525
+ o < i.length;
1526
+ ++o
1527
+ )
1528
+ i[o] = t + i[o];
1529
+ (r = i.join("\n")), (e += r + "\n");
1530
+ }
1531
+ return g--, e;
1532
+ }),
1533
+ u(i, Error);
1534
+ var b = Error.__BluebirdErrorTypes__;
1535
+ b ||
1536
+ ((b = c({
1537
+ CancellationError: f,
1538
+ TimeoutError: _,
1539
+ OperationalError: i,
1540
+ RejectionError: i,
1541
+ AggregateError: d
1542
+ })),
1543
+ a.defineProperty(Error, "__BluebirdErrorTypes__", {
1544
+ value: b,
1545
+ writable: !1,
1546
+ enumerable: !1,
1547
+ configurable: !1
1548
+ })),
1549
+ (e.exports = {
1550
+ Error: Error,
1551
+ TypeError: o,
1552
+ RangeError: s,
1553
+ CancellationError: b.CancellationError,
1554
+ OperationalError: b.OperationalError,
1555
+ TimeoutError: b.TimeoutError,
1556
+ AggregateError: b.AggregateError,
1557
+ Warning: h
1558
+ });
1559
+ },
1560
+ { "./es5": 13, "./util": 36 }
1561
+ ],
1562
+
1563
+ 13: [
1564
+ function (t, e, n) {
1565
+ var r = (function () {
1566
+ "use strict";
1567
+ return void 0 === this;
1568
+ })();
1569
+ if (r)
1570
+ e.exports = {
1571
+ freeze: Object.freeze,
1572
+ defineProperty: Object.defineProperty,
1573
+ getDescriptor: Object.getOwnPropertyDescriptor,
1574
+ keys: Object.keys,
1575
+ names: Object.getOwnPropertyNames,
1576
+ getPrototypeOf: Object.getPrototypeOf,
1577
+ isArray: Array.isArray,
1578
+ isES5: r,
1579
+ propertyIsWritable(t, e) {
1580
+ var n = Object.getOwnPropertyDescriptor(t, e);
1581
+ return !(n && !n.writable && !n.set);
1582
+ }
1583
+ };
1584
+ else {
1585
+ var i = {}.hasOwnProperty,
1586
+ o = {}.toString,
1587
+ s = {}.constructor.prototype,
1588
+ a = function (t) {
1589
+ var e = [];
1590
+ for (var n in t) i.call(t, n) && e.push(n);
1591
+ return e;
1592
+ },
1593
+ c = function (t, e) {
1594
+ return { value: t[e] };
1595
+ },
1596
+ l = function (t, e, n) {
1597
+ return (t[e] = n.value), t;
1598
+ },
1599
+ u = function (t) {
1600
+ return t;
1601
+ },
1602
+ p = function (t) {
1603
+ try {
1604
+ return Object(t).constructor.prototype;
1605
+ } catch (e) {
1606
+ return s;
1607
+ }
1608
+ },
1609
+ h = function (t) {
1610
+ try {
1611
+ return "[object Array]" === o.call(t);
1612
+ } catch (e) {
1613
+ return !1;
1614
+ }
1615
+ };
1616
+ e.exports = {
1617
+ isArray: h,
1618
+ keys: a,
1619
+ names: a,
1620
+ defineProperty: l,
1621
+ getDescriptor: c,
1622
+ freeze: u,
1623
+ getPrototypeOf: p,
1624
+ isES5: r,
1625
+ propertyIsWritable() {
1626
+ return !0;
1627
+ }
1628
+ };
1629
+ }
1630
+ },
1631
+ {}
1632
+ ],
1633
+
1634
+ 14: [
1635
+ function (t, e, n) {
1636
+ "use strict";
1637
+ e.exports = function (t, e) {
1638
+ var n = t.map;
1639
+ (t.prototype.filter = function (t, r) {
1640
+ return n(this, t, r, e);
1641
+ }),
1642
+ (t.filter = function (t, r, i) {
1643
+ return n(t, r, i, e);
1644
+ });
1645
+ };
1646
+ },
1647
+ {}
1648
+ ],
1649
+
1650
+ 15: [
1651
+ function (t, e, n) {
1652
+ "use strict";
1653
+ e.exports = function (e, n, r) {
1654
+ function i(t, e, n) {
1655
+ (this.promise = t),
1656
+ (this.type = e),
1657
+ (this.handler = n),
1658
+ (this.called = !1),
1659
+ (this.cancelPromise = null);
1660
+ }
1661
+ function o(t) {
1662
+ this.finallyHandler = t;
1663
+ }
1664
+ function s(t, e) {
1665
+ return null != t.cancelPromise
1666
+ ? (arguments.length > 1
1667
+ ? t.cancelPromise._reject(e)
1668
+ : t.cancelPromise._cancel(),
1669
+ (t.cancelPromise = null),
1670
+ !0)
1671
+ : !1;
1672
+ }
1673
+ function a() {
1674
+ return l.call(this, this.promise._target()._settledValue());
1675
+ }
1676
+ function c(t) {
1677
+ return s(this, t) ? void 0 : ((h.e = t), h);
1678
+ }
1679
+ function l(t) {
1680
+ var i = this.promise,
1681
+ l = this.handler;
1682
+ if (!this.called) {
1683
+ this.called = !0;
1684
+ var u = this.isFinallyHandler()
1685
+ ? l.call(i._boundValue())
1686
+ : l.call(i._boundValue(), t);
1687
+ if (u === r) return u;
1688
+ if (void 0 !== u) {
1689
+ i._setReturnedNonUndefined();
1690
+ var f = n(u, i);
1691
+ if (f instanceof e) {
1692
+ if (null != this.cancelPromise) {
1693
+ if (f._isCancelled()) {
1694
+ var _ = new p("late cancellation observer");
1695
+ return i._attachExtraTrace(_), (h.e = _), h;
1696
+ }
1697
+ f.isPending() &&
1698
+ f._attachCancellationCallback(new o(this));
1699
+ }
1700
+ return f._then(a, c, void 0, this, void 0);
1701
+ }
1702
+ }
1703
+ }
1704
+ return i.isRejected() ? (s(this), (h.e = t), h) : (s(this), t);
1705
+ }
1706
+ var u = t("./util"),
1707
+ p = e.CancellationError,
1708
+ h = u.errorObj,
1709
+ f = t("./catch_filter")(r);
1710
+ return (
1711
+ (i.prototype.isFinallyHandler = function () {
1712
+ return 0 === this.type;
1713
+ }),
1714
+ (o.prototype._resultCancelled = function () {
1715
+ s(this.finallyHandler);
1716
+ }),
1717
+ (e.prototype._passThrough = function (t, e, n, r) {
1718
+ return "function" != typeof t
1719
+ ? this.then()
1720
+ : this._then(n, r, void 0, new i(this, e, t), void 0);
1721
+ }),
1722
+ (e.prototype.lastly = e.prototype["finally"] =
1723
+ function (t) {
1724
+ return this._passThrough(t, 0, l, l);
1725
+ }),
1726
+ (e.prototype.tap = function (t) {
1727
+ return this._passThrough(t, 1, l);
1728
+ }),
1729
+ (e.prototype.tapCatch = function (t) {
1730
+ var n = arguments.length;
1731
+ if (1 === n) return this._passThrough(t, 1, void 0, l);
1732
+ var r,
1733
+ i = new Array(n - 1),
1734
+ o = 0;
1735
+ for (r = 0; n - 1 > r; ++r) {
1736
+ var s = arguments[r];
1737
+ if (!u.isObject(s))
1738
+ return e.reject(
1739
+ new TypeError(
1740
+ "tapCatch statement predicate: expecting an object but got " +
1741
+ u.classString(s)
1742
+ )
1743
+ );
1744
+
1745
+ i[o++] = s;
1746
+ }
1747
+ i.length = o;
1748
+ var a = arguments[r];
1749
+ return this._passThrough(f(i, a, this), 1, void 0, l);
1750
+ }),
1751
+ i
1752
+ );
1753
+ };
1754
+ },
1755
+ { "./catch_filter": 7, "./util": 36 }
1756
+ ],
1757
+
1758
+ 16: [
1759
+ function (t, e, n) {
1760
+ "use strict";
1761
+ e.exports = function (e, n, r, i, o, s) {
1762
+ function a(t, n, r) {
1763
+ for (var o = 0; o < n.length; ++o) {
1764
+ r._pushContext();
1765
+ var s = f(n[o])(t);
1766
+ if ((r._popContext(), s === h)) {
1767
+ r._pushContext();
1768
+ var a = e.reject(h.e);
1769
+ return r._popContext(), a;
1770
+ }
1771
+ var c = i(s, r);
1772
+ if (c instanceof e) return c;
1773
+ }
1774
+ return null;
1775
+ }
1776
+ function c(t, n, i, o) {
1777
+ if (s.cancellation()) {
1778
+ var a = new e(r),
1779
+ c = (this._finallyPromise = new e(r));
1780
+ (this._promise = a.lastly(function () {
1781
+ return c;
1782
+ })),
1783
+ a._captureStackTrace(),
1784
+ a._setOnCancel(this);
1785
+ } else {
1786
+ var l = (this._promise = new e(r));
1787
+ l._captureStackTrace();
1788
+ }
1789
+ (this._stack = o),
1790
+ (this._generatorFunction = t),
1791
+ (this._receiver = n),
1792
+ (this._generator = void 0),
1793
+ (this._yieldHandlers =
1794
+ "function" == typeof i ? [i].concat(_) : _),
1795
+ (this._yieldedPromise = null),
1796
+ (this._cancellationPhase = !1);
1797
+ }
1798
+ var l = t("./errors"),
1799
+ u = l.TypeError,
1800
+ p = t("./util"),
1801
+ h = p.errorObj,
1802
+ f = p.tryCatch,
1803
+ _ = [];
1804
+ p.inherits(c, o),
1805
+ (c.prototype._isResolved = function () {
1806
+ return null === this._promise;
1807
+ }),
1808
+ (c.prototype._cleanup = function () {
1809
+ (this._promise = this._generator = null),
1810
+ s.cancellation() &&
1811
+ null !== this._finallyPromise &&
1812
+ (this._finallyPromise._fulfill(),
1813
+ (this._finallyPromise = null));
1814
+ }),
1815
+ (c.prototype._promiseCancelled = function () {
1816
+ if (!this._isResolved()) {
1817
+ var t,
1818
+ n = "undefined" != typeof this._generator["return"];
1819
+ if (n)
1820
+ this._promise._pushContext(),
1821
+ (t = f(this._generator["return"]).call(
1822
+ this._generator,
1823
+ void 0
1824
+ )),
1825
+ this._promise._popContext();
1826
+ else {
1827
+ var r = new e.CancellationError(
1828
+ "generator .return() sentinel"
1829
+ );
1830
+
1831
+ (e.coroutine.returnSentinel = r),
1832
+ this._promise._attachExtraTrace(r),
1833
+ this._promise._pushContext(),
1834
+ (t = f(this._generator["throw"]).call(
1835
+ this._generator,
1836
+ r
1837
+ )),
1838
+ this._promise._popContext();
1839
+ }
1840
+ (this._cancellationPhase = !0),
1841
+ (this._yieldedPromise = null),
1842
+ this._continue(t);
1843
+ }
1844
+ }),
1845
+ (c.prototype._promiseFulfilled = function (t) {
1846
+ (this._yieldedPromise = null), this._promise._pushContext();
1847
+ var e = f(this._generator.next).call(this._generator, t);
1848
+ this._promise._popContext(), this._continue(e);
1849
+ }),
1850
+ (c.prototype._promiseRejected = function (t) {
1851
+ (this._yieldedPromise = null),
1852
+ this._promise._attachExtraTrace(t),
1853
+ this._promise._pushContext();
1854
+ var e = f(this._generator["throw"]).call(this._generator, t);
1855
+ this._promise._popContext(), this._continue(e);
1856
+ }),
1857
+ (c.prototype._resultCancelled = function () {
1858
+ if (this._yieldedPromise instanceof e) {
1859
+ var t = this._yieldedPromise;
1860
+ (this._yieldedPromise = null), t.cancel();
1861
+ }
1862
+ }),
1863
+ (c.prototype.promise = function () {
1864
+ return this._promise;
1865
+ }),
1866
+ (c.prototype._run = function () {
1867
+ (this._generator = this._generatorFunction.call(
1868
+ this._receiver
1869
+ )),
1870
+ (this._receiver = this._generatorFunction = void 0),
1871
+ this._promiseFulfilled(void 0);
1872
+ }),
1873
+ (c.prototype._continue = function (t) {
1874
+ var n = this._promise;
1875
+ if (t === h)
1876
+ return (
1877
+ this._cleanup(),
1878
+ this._cancellationPhase
1879
+ ? n.cancel()
1880
+ : n._rejectCallback(t.e, !1)
1881
+ );
1882
+
1883
+ var r = t.value;
1884
+ if (t.done === !0)
1885
+ return (
1886
+ this._cleanup(),
1887
+ this._cancellationPhase ? n.cancel() : n._resolveCallback(r)
1888
+ );
1889
+
1890
+ var o = i(r, this._promise);
1891
+ if (
1892
+ !(o instanceof e) &&
1893
+ ((o = a(o, this._yieldHandlers, this._promise)), null === o)
1894
+ )
1895
+ return void this._promiseRejected(
1896
+ new u(
1897
+ "A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace(
1898
+ "%s",
1899
+ String(r)
1900
+ ) +
1901
+ "From coroutine:\n" +
1902
+ this._stack.split("\n").slice(1, -7).join("\n")
1903
+ )
1904
+ );
1905
+
1906
+ o = o._target();
1907
+ var s = o._bitField;
1908
+ 0 === (50397184 & s)
1909
+ ? ((this._yieldedPromise = o), o._proxy(this, null))
1910
+ : 0 !== (33554432 & s)
1911
+ ? e._async.invoke(this._promiseFulfilled, this, o._value())
1912
+ : 0 !== (16777216 & s)
1913
+ ? e._async.invoke(this._promiseRejected, this, o._reason())
1914
+ : this._promiseCancelled();
1915
+ }),
1916
+ (e.coroutine = function (t, e) {
1917
+ if ("function" != typeof t)
1918
+ throw new u(
1919
+ "generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n"
1920
+ );
1921
+
1922
+ var n = Object(e).yieldHandler,
1923
+ r = c,
1924
+ i = new Error().stack;
1925
+ return function () {
1926
+ var e = t.apply(this, arguments),
1927
+ o = new r(void 0, void 0, n, i),
1928
+ s = o.promise();
1929
+ return (o._generator = e), o._promiseFulfilled(void 0), s;
1930
+ };
1931
+ }),
1932
+ (e.coroutine.addYieldHandler = function (t) {
1933
+ if ("function" != typeof t)
1934
+ throw new u(
1935
+ "expecting a function but got " + p.classString(t)
1936
+ );
1937
+
1938
+ _.push(t);
1939
+ }),
1940
+ (e.spawn = function (t) {
1941
+ if (
1942
+ (s.deprecated("Promise.spawn()", "Promise.coroutine()"),
1943
+ "function" != typeof t)
1944
+ )
1945
+ return n(
1946
+ "generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n"
1947
+ );
1948
+
1949
+ var r = new c(t, this),
1950
+ i = r.promise();
1951
+ return r._run(e.spawn), i;
1952
+ });
1953
+ };
1954
+ },
1955
+ { "./errors": 12, "./util": 36 }
1956
+ ],
1957
+
1958
+ 17: [
1959
+ function (t, e, n) {
1960
+ "use strict";
1961
+ e.exports = function (e, n, r, i, o, s) {
1962
+ var a = t("./util");
1963
+ a.canEvaluate, a.tryCatch, a.errorObj;
1964
+ e.join = function () {
1965
+ var t,
1966
+ e = arguments.length - 1;
1967
+ if (e > 0 && "function" == typeof arguments[e]) {
1968
+ t = arguments[e];
1969
+ var r;
1970
+ }
1971
+ var i = [].slice.call(arguments);
1972
+ t && i.pop();
1973
+ var r = new n(i).promise();
1974
+ return void 0 !== t ? r.spread(t) : r;
1975
+ };
1976
+ };
1977
+ },
1978
+ { "./util": 36 }
1979
+ ],
1980
+
1981
+ 18: [
1982
+ function (t, e, n) {
1983
+ "use strict";
1984
+ e.exports = function (e, n, r, i, o, s) {
1985
+ function a(t, e, n, r) {
1986
+ this.constructor$(t), this._promise._captureStackTrace();
1987
+ var i = l();
1988
+ (this._callback = null === i ? e : u.domainBind(i, e)),
1989
+ (this._preservedValues =
1990
+ r === o ? new Array(this.length()) : null),
1991
+ (this._limit = n),
1992
+ (this._inFlight = 0),
1993
+ (this._queue = []),
1994
+ f.invoke(this._asyncInit, this, void 0);
1995
+ }
1996
+ function c(t, n, i, o) {
1997
+ if ("function" != typeof n)
1998
+ return r("expecting a function but got " + u.classString(n));
1999
+ var s = 0;
2000
+ if (void 0 !== i) {
2001
+ if ("object" != typeof i || null === i)
2002
+ return e.reject(
2003
+ new TypeError(
2004
+ "options argument must be an object but it is " +
2005
+ u.classString(i)
2006
+ )
2007
+ );
2008
+
2009
+ if ("number" != typeof i.concurrency)
2010
+ return e.reject(
2011
+ new TypeError(
2012
+ "'concurrency' must be a number but it is " +
2013
+ u.classString(i.concurrency)
2014
+ )
2015
+ );
2016
+
2017
+ s = i.concurrency;
2018
+ }
2019
+ return (
2020
+ (s = "number" == typeof s && isFinite(s) && s >= 1 ? s : 0),
2021
+ new a(t, n, s, o).promise()
2022
+ );
2023
+ }
2024
+ var l = e._getDomain,
2025
+ u = t("./util"),
2026
+ p = u.tryCatch,
2027
+ h = u.errorObj,
2028
+ f = e._async;
2029
+ u.inherits(a, n),
2030
+ (a.prototype._asyncInit = function () {
2031
+ this._init$(void 0, -2);
2032
+ }),
2033
+ (a.prototype._init = function () {}),
2034
+ (a.prototype._promiseFulfilled = function (t, n) {
2035
+ var r = this._values,
2036
+ o = this.length(),
2037
+ a = this._preservedValues,
2038
+ c = this._limit;
2039
+ if (0 > n) {
2040
+ if (
2041
+ ((n = -1 * n - 1),
2042
+ (r[n] = t),
2043
+ c >= 1 &&
2044
+ (this._inFlight--,
2045
+ this._drainQueue(),
2046
+ this._isResolved()))
2047
+ )
2048
+ return !0;
2049
+ } else {
2050
+ if (c >= 1 && this._inFlight >= c)
2051
+ return (r[n] = t), this._queue.push(n), !1;
2052
+ null !== a && (a[n] = t);
2053
+ var l = this._promise,
2054
+ u = this._callback,
2055
+ f = l._boundValue();
2056
+ l._pushContext();
2057
+ var _ = p(u).call(f, t, n, o),
2058
+ d = l._popContext();
2059
+ if (
2060
+ (s.checkForgottenReturns(
2061
+ _,
2062
+ d,
2063
+ null !== a ? "Promise.filter" : "Promise.map",
2064
+ l
2065
+ ),
2066
+ _ === h)
2067
+ )
2068
+ return this._reject(_.e), !0;
2069
+ var v = i(_, this._promise);
2070
+ if (v instanceof e) {
2071
+ v = v._target();
2072
+ var y = v._bitField;
2073
+ if (0 === (50397184 & y))
2074
+ return (
2075
+ c >= 1 && this._inFlight++,
2076
+ (r[n] = v),
2077
+ v._proxy(this, -1 * (n + 1)),
2078
+ !1
2079
+ );
2080
+
2081
+ if (0 === (33554432 & y))
2082
+ return 0 !== (16777216 & y)
2083
+ ? (this._reject(v._reason()), !0)
2084
+ : (this._cancel(), !0);
2085
+ _ = v._value();
2086
+ }
2087
+ r[n] = _;
2088
+ }
2089
+ var m = ++this._totalResolved;
2090
+ return m >= o
2091
+ ? (null !== a ? this._filter(r, a) : this._resolve(r), !0)
2092
+ : !1;
2093
+ }),
2094
+ (a.prototype._drainQueue = function () {
2095
+ for (
2096
+ var t = this._queue, e = this._limit, n = this._values;
2097
+ t.length > 0 && this._inFlight < e;
2098
+
2099
+ ) {
2100
+ if (this._isResolved()) return;
2101
+ var r = t.pop();
2102
+ this._promiseFulfilled(n[r], r);
2103
+ }
2104
+ }),
2105
+ (a.prototype._filter = function (t, e) {
2106
+ for (
2107
+ var n = e.length, r = new Array(n), i = 0, o = 0;
2108
+ n > o;
2109
+ ++o
2110
+ )
2111
+ t[o] && (r[i++] = e[o]);
2112
+ (r.length = i), this._resolve(r);
2113
+ }),
2114
+ (a.prototype.preservedValues = function () {
2115
+ return this._preservedValues;
2116
+ }),
2117
+ (e.prototype.map = function (t, e) {
2118
+ return c(this, t, e, null);
2119
+ }),
2120
+ (e.map = function (t, e, n, r) {
2121
+ return c(t, e, n, r);
2122
+ });
2123
+ };
2124
+ },
2125
+ { "./util": 36 }
2126
+ ],
2127
+
2128
+ 19: [
2129
+ function (t, e, n) {
2130
+ "use strict";
2131
+ e.exports = function (e, n, r, i, o) {
2132
+ var s = t("./util"),
2133
+ a = s.tryCatch;
2134
+ (e.method = function (t) {
2135
+ if ("function" != typeof t)
2136
+ throw new e.TypeError(
2137
+ "expecting a function but got " + s.classString(t)
2138
+ );
2139
+
2140
+ return function () {
2141
+ var r = new e(n);
2142
+ r._captureStackTrace(), r._pushContext();
2143
+ var i = a(t).apply(this, arguments),
2144
+ s = r._popContext();
2145
+ return (
2146
+ o.checkForgottenReturns(i, s, "Promise.method", r),
2147
+ r._resolveFromSyncValue(i),
2148
+ r
2149
+ );
2150
+ };
2151
+ }),
2152
+ (e.attempt = e["try"] =
2153
+ function (t) {
2154
+ if ("function" != typeof t)
2155
+ return i(
2156
+ "expecting a function but got " + s.classString(t)
2157
+ );
2158
+
2159
+ var r = new e(n);
2160
+ r._captureStackTrace(), r._pushContext();
2161
+ var c;
2162
+ if (arguments.length > 1) {
2163
+ o.deprecated(
2164
+ "calling Promise.try with more than 1 argument"
2165
+ );
2166
+
2167
+ var l = arguments[1],
2168
+ u = arguments[2];
2169
+ c = s.isArray(l) ? a(t).apply(u, l) : a(t).call(u, l);
2170
+ } else c = a(t)();
2171
+ var p = r._popContext();
2172
+ return (
2173
+ o.checkForgottenReturns(c, p, "Promise.try", r),
2174
+ r._resolveFromSyncValue(c),
2175
+ r
2176
+ );
2177
+ }),
2178
+ (e.prototype._resolveFromSyncValue = function (t) {
2179
+ t === s.errorObj
2180
+ ? this._rejectCallback(t.e, !1)
2181
+ : this._resolveCallback(t, !0);
2182
+ });
2183
+ };
2184
+ },
2185
+ { "./util": 36 }
2186
+ ],
2187
+
2188
+ 20: [
2189
+ function (t, e, n) {
2190
+ "use strict";
2191
+ function r(t) {
2192
+ return (
2193
+ t instanceof Error && u.getPrototypeOf(t) === Error.prototype
2194
+ );
2195
+ }
2196
+ function i(t) {
2197
+ var e;
2198
+ if (r(t)) {
2199
+ (e = new l(t)),
2200
+ (e.name = t.name),
2201
+ (e.message = t.message),
2202
+ (e.stack = t.stack);
2203
+ for (var n = u.keys(t), i = 0; i < n.length; ++i) {
2204
+ var o = n[i];
2205
+ p.test(o) || (e[o] = t[o]);
2206
+ }
2207
+ return e;
2208
+ }
2209
+ return s.markAsOriginatingFromRejection(t), t;
2210
+ }
2211
+ function o(t, e) {
2212
+ return function (n, r) {
2213
+ if (null !== t) {
2214
+ if (n) {
2215
+ var o = i(a(n));
2216
+ t._attachExtraTrace(o), t._reject(o);
2217
+ } else if (e) {
2218
+ var s = [].slice.call(arguments, 1);
2219
+ t._fulfill(s);
2220
+ } else t._fulfill(r);
2221
+ t = null;
2222
+ }
2223
+ };
2224
+ }
2225
+ var s = t("./util"),
2226
+ a = s.maybeWrapAsError,
2227
+ c = t("./errors"),
2228
+ l = c.OperationalError,
2229
+ u = t("./es5"),
2230
+ p = /^(?:name|message|stack|cause)$/;
2231
+ e.exports = o;
2232
+ },
2233
+ { "./errors": 12, "./es5": 13, "./util": 36 }
2234
+ ],
2235
+
2236
+ 21: [
2237
+ function (t, e, n) {
2238
+ "use strict";
2239
+ e.exports = function (e) {
2240
+ function n(t, e) {
2241
+ var n = this;
2242
+ if (!o.isArray(t)) return r.call(n, t, e);
2243
+ var i = a(e).apply(n._boundValue(), [null].concat(t));
2244
+ i === c && s.throwLater(i.e);
2245
+ }
2246
+ function r(t, e) {
2247
+ var n = this,
2248
+ r = n._boundValue(),
2249
+ i = void 0 === t ? a(e).call(r, null) : a(e).call(r, null, t);
2250
+ i === c && s.throwLater(i.e);
2251
+ }
2252
+ function i(t, e) {
2253
+ var n = this;
2254
+ if (!t) {
2255
+ var r = new Error(t + "");
2256
+ (r.cause = t), (t = r);
2257
+ }
2258
+ var i = a(e).call(n._boundValue(), t);
2259
+ i === c && s.throwLater(i.e);
2260
+ }
2261
+ var o = t("./util"),
2262
+ s = e._async,
2263
+ a = o.tryCatch,
2264
+ c = o.errorObj;
2265
+ e.prototype.asCallback = e.prototype.nodeify = function (t, e) {
2266
+ if ("function" == typeof t) {
2267
+ var o = r;
2268
+ void 0 !== e && Object(e).spread && (o = n),
2269
+ this._then(o, i, void 0, this, t);
2270
+ }
2271
+ return this;
2272
+ };
2273
+ };
2274
+ },
2275
+ { "./util": 36 }
2276
+ ],
2277
+
2278
+ 22: [
2279
+ function (t, e, n) {
2280
+ "use strict";
2281
+ e.exports = function () {
2282
+ function n() {}
2283
+ function r(t, e) {
2284
+ if (null == t || t.constructor !== i)
2285
+ throw new m(
2286
+ "the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n"
2287
+ );
2288
+
2289
+ if ("function" != typeof e)
2290
+ throw new m("expecting a function but got " + f.classString(e));
2291
+ }
2292
+ function i(t) {
2293
+ t !== b && r(this, t),
2294
+ (this._bitField = 0),
2295
+ (this._fulfillmentHandler0 = void 0),
2296
+ (this._rejectionHandler0 = void 0),
2297
+ (this._promise0 = void 0),
2298
+ (this._receiver0 = void 0),
2299
+ this._resolveFromExecutor(t),
2300
+ this._promiseCreated(),
2301
+ this._fireEvent("promiseCreated", this);
2302
+ }
2303
+ function o(t) {
2304
+ this.promise._resolveCallback(t);
2305
+ }
2306
+ function s(t) {
2307
+ this.promise._rejectCallback(t, !1);
2308
+ }
2309
+ function a(t) {
2310
+ var e = new i(b);
2311
+ (e._fulfillmentHandler0 = t),
2312
+ (e._rejectionHandler0 = t),
2313
+ (e._promise0 = t),
2314
+ (e._receiver0 = t);
2315
+ }
2316
+ var c,
2317
+ l = function () {
2318
+ return new m(
2319
+ "circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n"
2320
+ );
2321
+ },
2322
+ u = function () {
2323
+ return new i.PromiseInspection(this._target());
2324
+ },
2325
+ p = function (t) {
2326
+ return i.reject(new m(t));
2327
+ },
2328
+ h = {},
2329
+ f = t("./util");
2330
+ (c = f.isNode
2331
+ ? function () {
2332
+ var t = process.domain;
2333
+ return void 0 === t && (t = null), t;
2334
+ }
2335
+ : function () {
2336
+ return null;
2337
+ }),
2338
+ f.notEnumerableProp(i, "_getDomain", c);
2339
+ var _ = t("./es5"),
2340
+ d = t("./async"),
2341
+ v = new d();
2342
+ _.defineProperty(i, "_async", { value: v });
2343
+ var y = t("./errors"),
2344
+ m = (i.TypeError = y.TypeError);
2345
+ i.RangeError = y.RangeError;
2346
+ var g = (i.CancellationError = y.CancellationError);
2347
+ (i.TimeoutError = y.TimeoutError),
2348
+ (i.OperationalError = y.OperationalError),
2349
+ (i.RejectionError = y.OperationalError),
2350
+ (i.AggregateError = y.AggregateError);
2351
+ var b = function () {},
2352
+ w = {},
2353
+ C = {},
2354
+ j = t("./thenables")(i, b),
2355
+ E = t("./promise_array")(i, b, j, p, n),
2356
+ k = t("./context")(i),
2357
+ F = k.create,
2358
+ T = t("./debuggability")(i, k),
2359
+ x = (T.CapturedTrace, t("./finally")(i, j, C)),
2360
+ P = t("./catch_filter")(C),
2361
+ S = t("./nodeback"),
2362
+ R = f.errorObj,
2363
+ O = f.tryCatch;
2364
+ return (
2365
+ (i.prototype.toString = function () {
2366
+ return "[object Promise]";
2367
+ }),
2368
+ (i.prototype.caught = i.prototype["catch"] =
2369
+ function (t) {
2370
+ var e = arguments.length;
2371
+ if (e > 1) {
2372
+ var n,
2373
+ r = new Array(e - 1),
2374
+ i = 0;
2375
+ for (n = 0; e - 1 > n; ++n) {
2376
+ var o = arguments[n];
2377
+ if (!f.isObject(o))
2378
+ return p(
2379
+ "Catch statement predicate: expecting an object but got " +
2380
+ f.classString(o)
2381
+ );
2382
+
2383
+ r[i++] = o;
2384
+ }
2385
+ if (
2386
+ ((r.length = i),
2387
+ (t = arguments[n]),
2388
+ "function" != typeof t)
2389
+ )
2390
+ throw new m(
2391
+ "The last argument to .catch() must be a function, got " +
2392
+ f.toString(t)
2393
+ );
2394
+
2395
+ return this.then(void 0, P(r, t, this));
2396
+ }
2397
+ return this.then(void 0, t);
2398
+ }),
2399
+ (i.prototype.reflect = function () {
2400
+ return this._then(u, u, void 0, this, void 0);
2401
+ }),
2402
+ (i.prototype.then = function (t, e) {
2403
+ if (
2404
+ T.warnings() &&
2405
+ arguments.length > 0 &&
2406
+ "function" != typeof t &&
2407
+ "function" != typeof e
2408
+ ) {
2409
+ var n =
2410
+ ".then() only accepts functions but was passed: " +
2411
+ f.classString(t);
2412
+ arguments.length > 1 && (n += ", " + f.classString(e)),
2413
+ this._warn(n);
2414
+ }
2415
+ return this._then(t, e, void 0, void 0, void 0);
2416
+ }),
2417
+ (i.prototype.done = function (t, e) {
2418
+ var n = this._then(t, e, void 0, void 0, void 0);
2419
+ n._setIsFinal();
2420
+ }),
2421
+ (i.prototype.spread = function (t) {
2422
+ return "function" != typeof t
2423
+ ? p("expecting a function but got " + f.classString(t))
2424
+ : this.all()._then(t, void 0, void 0, w, void 0);
2425
+ }),
2426
+ (i.prototype.toJSON = function () {
2427
+ var t = {
2428
+ isFulfilled: !1,
2429
+ isRejected: !1,
2430
+ fulfillmentValue: void 0,
2431
+ rejectionReason: void 0
2432
+ };
2433
+
2434
+ return (
2435
+ this.isFulfilled()
2436
+ ? ((t.fulfillmentValue = this.value()),
2437
+ (t.isFulfilled = !0))
2438
+ : this.isRejected() &&
2439
+ ((t.rejectionReason = this.reason()),
2440
+ (t.isRejected = !0)),
2441
+ t
2442
+ );
2443
+ }),
2444
+ (i.prototype.all = function () {
2445
+ return (
2446
+ arguments.length > 0 &&
2447
+ this._warn(
2448
+ ".all() was passed arguments but it does not take any"
2449
+ ),
2450
+ new E(this).promise()
2451
+ );
2452
+ }),
2453
+ (i.prototype.error = function (t) {
2454
+ return this.caught(f.originatesFromRejection, t);
2455
+ }),
2456
+ (i.getNewLibraryCopy = e.exports),
2457
+ (i.is = function (t) {
2458
+ return t instanceof i;
2459
+ }),
2460
+ (i.fromNode = i.fromCallback =
2461
+ function (t) {
2462
+ var e = new i(b);
2463
+ e._captureStackTrace();
2464
+ var n =
2465
+ arguments.length > 1
2466
+ ? !!Object(arguments[1]).multiArgs
2467
+ : !1,
2468
+ r = O(t)(S(e, n));
2469
+ return (
2470
+ r === R && e._rejectCallback(r.e, !0),
2471
+ e._isFateSealed() || e._setAsyncGuaranteed(),
2472
+ e
2473
+ );
2474
+ }),
2475
+ (i.all = function (t) {
2476
+ return new E(t).promise();
2477
+ }),
2478
+ (i.cast = function (t) {
2479
+ var e = j(t);
2480
+ return (
2481
+ e instanceof i ||
2482
+ ((e = new i(b)),
2483
+ e._captureStackTrace(),
2484
+ e._setFulfilled(),
2485
+ (e._rejectionHandler0 = t)),
2486
+ e
2487
+ );
2488
+ }),
2489
+ (i.resolve = i.fulfilled = i.cast),
2490
+ (i.reject = i.rejected =
2491
+ function (t) {
2492
+ var e = new i(b);
2493
+ return e._captureStackTrace(), e._rejectCallback(t, !0), e;
2494
+ }),
2495
+ (i.setScheduler = function (t) {
2496
+ if ("function" != typeof t)
2497
+ throw new m(
2498
+ "expecting a function but got " + f.classString(t)
2499
+ );
2500
+
2501
+ return v.setScheduler(t);
2502
+ }),
2503
+ (i.prototype._then = function (t, e, n, r, o) {
2504
+ var s = void 0 !== o,
2505
+ a = s ? o : new i(b),
2506
+ l = this._target(),
2507
+ u = l._bitField;
2508
+ s ||
2509
+ (a._propagateFrom(this, 3),
2510
+ a._captureStackTrace(),
2511
+ void 0 === r &&
2512
+ 0 !== (2097152 & this._bitField) &&
2513
+ (r =
2514
+ 0 !== (50397184 & u)
2515
+ ? this._boundValue()
2516
+ : l === this
2517
+ ? void 0
2518
+ : this._boundTo),
2519
+ this._fireEvent("promiseChained", this, a));
2520
+ var p = c();
2521
+ if (0 !== (50397184 & u)) {
2522
+ var h,
2523
+ _,
2524
+ d = l._settlePromiseCtx;
2525
+ 0 !== (33554432 & u)
2526
+ ? ((_ = l._rejectionHandler0), (h = t))
2527
+ : 0 !== (16777216 & u)
2528
+ ? ((_ = l._fulfillmentHandler0),
2529
+ (h = e),
2530
+ l._unsetRejectionIsUnhandled())
2531
+ : ((d = l._settlePromiseLateCancellationObserver),
2532
+ (_ = new g("late cancellation observer")),
2533
+ l._attachExtraTrace(_),
2534
+ (h = e)),
2535
+ v.invoke(d, l, {
2536
+ handler:
2537
+ null === p
2538
+ ? h
2539
+ : "function" == typeof h && f.domainBind(p, h),
2540
+ promise: a,
2541
+ receiver: r,
2542
+ value: _
2543
+ });
2544
+ } else l._addCallbacks(t, e, a, r, p);
2545
+ return a;
2546
+ }),
2547
+ (i.prototype._length = function () {
2548
+ return 65535 & this._bitField;
2549
+ }),
2550
+ (i.prototype._isFateSealed = function () {
2551
+ return 0 !== (117506048 & this._bitField);
2552
+ }),
2553
+ (i.prototype._isFollowing = function () {
2554
+ return 67108864 === (67108864 & this._bitField);
2555
+ }),
2556
+ (i.prototype._setLength = function (t) {
2557
+ this._bitField = (-65536 & this._bitField) | (65535 & t);
2558
+ }),
2559
+ (i.prototype._setFulfilled = function () {
2560
+ (this._bitField = 33554432 | this._bitField),
2561
+ this._fireEvent("promiseFulfilled", this);
2562
+ }),
2563
+ (i.prototype._setRejected = function () {
2564
+ (this._bitField = 16777216 | this._bitField),
2565
+ this._fireEvent("promiseRejected", this);
2566
+ }),
2567
+ (i.prototype._setFollowing = function () {
2568
+ (this._bitField = 67108864 | this._bitField),
2569
+ this._fireEvent("promiseResolved", this);
2570
+ }),
2571
+ (i.prototype._setIsFinal = function () {
2572
+ this._bitField = 4194304 | this._bitField;
2573
+ }),
2574
+ (i.prototype._isFinal = function () {
2575
+ return (4194304 & this._bitField) > 0;
2576
+ }),
2577
+ (i.prototype._unsetCancelled = function () {
2578
+ this._bitField = -65537 & this._bitField;
2579
+ }),
2580
+ (i.prototype._setCancelled = function () {
2581
+ (this._bitField = 65536 | this._bitField),
2582
+ this._fireEvent("promiseCancelled", this);
2583
+ }),
2584
+ (i.prototype._setWillBeCancelled = function () {
2585
+ this._bitField = 8388608 | this._bitField;
2586
+ }),
2587
+ (i.prototype._setAsyncGuaranteed = function () {
2588
+ v.hasCustomScheduler() ||
2589
+ (this._bitField = 134217728 | this._bitField);
2590
+ }),
2591
+ (i.prototype._receiverAt = function (t) {
2592
+ var e = 0 === t ? this._receiver0 : this[4 * t - 4 + 3];
2593
+ return e === h
2594
+ ? void 0
2595
+ : void 0 === e && this._isBound()
2596
+ ? this._boundValue()
2597
+ : e;
2598
+ }),
2599
+ (i.prototype._promiseAt = function (t) {
2600
+ return this[4 * t - 4 + 2];
2601
+ }),
2602
+ (i.prototype._fulfillmentHandlerAt = function (t) {
2603
+ return this[4 * t - 4 + 0];
2604
+ }),
2605
+ (i.prototype._rejectionHandlerAt = function (t) {
2606
+ return this[4 * t - 4 + 1];
2607
+ }),
2608
+ (i.prototype._boundValue = function () {}),
2609
+ (i.prototype._migrateCallback0 = function (t) {
2610
+ var e = (t._bitField, t._fulfillmentHandler0),
2611
+ n = t._rejectionHandler0,
2612
+ r = t._promise0,
2613
+ i = t._receiverAt(0);
2614
+ void 0 === i && (i = h), this._addCallbacks(e, n, r, i, null);
2615
+ }),
2616
+ (i.prototype._migrateCallbackAt = function (t, e) {
2617
+ var n = t._fulfillmentHandlerAt(e),
2618
+ r = t._rejectionHandlerAt(e),
2619
+ i = t._promiseAt(e),
2620
+ o = t._receiverAt(e);
2621
+ void 0 === o && (o = h), this._addCallbacks(n, r, i, o, null);
2622
+ }),
2623
+ (i.prototype._addCallbacks = function (t, e, n, r, i) {
2624
+ var o = this._length();
2625
+ if ((o >= 65531 && ((o = 0), this._setLength(0)), 0 === o))
2626
+ (this._promise0 = n),
2627
+ (this._receiver0 = r),
2628
+ "function" == typeof t &&
2629
+ (this._fulfillmentHandler0 =
2630
+ null === i ? t : f.domainBind(i, t)),
2631
+ "function" == typeof e &&
2632
+ (this._rejectionHandler0 =
2633
+ null === i ? e : f.domainBind(i, e));
2634
+ else {
2635
+ var s = 4 * o - 4;
2636
+ (this[s + 2] = n),
2637
+ (this[s + 3] = r),
2638
+ "function" == typeof t &&
2639
+ (this[s + 0] = null === i ? t : f.domainBind(i, t)),
2640
+ "function" == typeof e &&
2641
+ (this[s + 1] = null === i ? e : f.domainBind(i, e));
2642
+ }
2643
+ return this._setLength(o + 1), o;
2644
+ }),
2645
+ (i.prototype._proxy = function (t, e) {
2646
+ this._addCallbacks(void 0, void 0, e, t, null);
2647
+ }),
2648
+ (i.prototype._resolveCallback = function (t, e) {
2649
+ if (0 === (117506048 & this._bitField)) {
2650
+ if (t === this) return this._rejectCallback(l(), !1);
2651
+ var n = j(t, this);
2652
+ if (!(n instanceof i)) return this._fulfill(t);
2653
+ e && this._propagateFrom(n, 2);
2654
+ var r = n._target();
2655
+ if (r === this) return void this._reject(l());
2656
+ var o = r._bitField;
2657
+ if (0 === (50397184 & o)) {
2658
+ var s = this._length();
2659
+ s > 0 && r._migrateCallback0(this);
2660
+ for (var a = 1; s > a; ++a) r._migrateCallbackAt(this, a);
2661
+ this._setFollowing(),
2662
+ this._setLength(0),
2663
+ this._setFollowee(r);
2664
+ } else if (0 !== (33554432 & o)) this._fulfill(r._value());
2665
+ else if (0 !== (16777216 & o)) this._reject(r._reason());
2666
+ else {
2667
+ var c = new g("late cancellation observer");
2668
+ r._attachExtraTrace(c), this._reject(c);
2669
+ }
2670
+ }
2671
+ }),
2672
+ (i.prototype._rejectCallback = function (t, e, n) {
2673
+ var r = f.ensureErrorObject(t),
2674
+ i = r === t;
2675
+ if (!i && !n && T.warnings()) {
2676
+ var o =
2677
+ "a promise was rejected with a non-error: " +
2678
+ f.classString(t);
2679
+ this._warn(o, !0);
2680
+ }
2681
+ this._attachExtraTrace(r, e ? i : !1), this._reject(t);
2682
+ }),
2683
+ (i.prototype._resolveFromExecutor = function (t) {
2684
+ if (t !== b) {
2685
+ var e = this;
2686
+ this._captureStackTrace(), this._pushContext();
2687
+ var n = !0,
2688
+ r = this._execute(
2689
+ t,
2690
+ function (t) {
2691
+ e._resolveCallback(t);
2692
+ },
2693
+ function (t) {
2694
+ e._rejectCallback(t, n);
2695
+ }
2696
+ );
2697
+
2698
+ (n = !1),
2699
+ this._popContext(),
2700
+ void 0 !== r && e._rejectCallback(r, !0);
2701
+ }
2702
+ }),
2703
+ (i.prototype._settlePromiseFromHandler = function (t, e, n, r) {
2704
+ var i = r._bitField;
2705
+ if (0 === (65536 & i)) {
2706
+ r._pushContext();
2707
+ var o;
2708
+ e === w
2709
+ ? n && "number" == typeof n.length
2710
+ ? (o = O(t).apply(this._boundValue(), n))
2711
+ : ((o = R),
2712
+ (o.e = new m(
2713
+ "cannot .spread() a non-array: " + f.classString(n)
2714
+ )))
2715
+ : (o = O(t).call(e, n));
2716
+ var s = r._popContext();
2717
+ (i = r._bitField),
2718
+ 0 === (65536 & i) &&
2719
+ (o === C
2720
+ ? r._reject(n)
2721
+ : o === R
2722
+ ? r._rejectCallback(o.e, !1)
2723
+ : (T.checkForgottenReturns(o, s, "", r, this),
2724
+ r._resolveCallback(o)));
2725
+ }
2726
+ }),
2727
+ (i.prototype._target = function () {
2728
+ for (var t = this; t._isFollowing(); ) t = t._followee();
2729
+ return t;
2730
+ }),
2731
+ (i.prototype._followee = function () {
2732
+ return this._rejectionHandler0;
2733
+ }),
2734
+ (i.prototype._setFollowee = function (t) {
2735
+ this._rejectionHandler0 = t;
2736
+ }),
2737
+ (i.prototype._settlePromise = function (t, e, r, o) {
2738
+ var s = t instanceof i,
2739
+ a = this._bitField,
2740
+ c = 0 !== (134217728 & a);
2741
+ 0 !== (65536 & a)
2742
+ ? (s && t._invokeInternalOnCancel(),
2743
+ r instanceof x && r.isFinallyHandler()
2744
+ ? ((r.cancelPromise = t),
2745
+ O(e).call(r, o) === R && t._reject(R.e))
2746
+ : e === u
2747
+ ? t._fulfill(u.call(r))
2748
+ : r instanceof n
2749
+ ? r._promiseCancelled(t)
2750
+ : s || t instanceof E
2751
+ ? t._cancel()
2752
+ : r.cancel())
2753
+ : "function" == typeof e
2754
+ ? s
2755
+ ? (c && t._setAsyncGuaranteed(),
2756
+ this._settlePromiseFromHandler(e, r, o, t))
2757
+ : e.call(r, o, t)
2758
+ : r instanceof n
2759
+ ? r._isResolved() ||
2760
+ (0 !== (33554432 & a)
2761
+ ? r._promiseFulfilled(o, t)
2762
+ : r._promiseRejected(o, t))
2763
+ : s &&
2764
+ (c && t._setAsyncGuaranteed(),
2765
+ 0 !== (33554432 & a) ? t._fulfill(o) : t._reject(o));
2766
+ }),
2767
+ (i.prototype._settlePromiseLateCancellationObserver = function (
2768
+ t
2769
+ ) {
2770
+ var e = t.handler,
2771
+ n = t.promise,
2772
+ r = t.receiver,
2773
+ o = t.value;
2774
+ "function" == typeof e
2775
+ ? n instanceof i
2776
+ ? this._settlePromiseFromHandler(e, r, o, n)
2777
+ : e.call(r, o, n)
2778
+ : n instanceof i && n._reject(o);
2779
+ }),
2780
+ (i.prototype._settlePromiseCtx = function (t) {
2781
+ this._settlePromise(t.promise, t.handler, t.receiver, t.value);
2782
+ }),
2783
+ (i.prototype._settlePromise0 = function (t, e, n) {
2784
+ var r = this._promise0,
2785
+ i = this._receiverAt(0);
2786
+ (this._promise0 = void 0),
2787
+ (this._receiver0 = void 0),
2788
+ this._settlePromise(r, t, i, e);
2789
+ }),
2790
+ (i.prototype._clearCallbackDataAtIndex = function (t) {
2791
+ var e = 4 * t - 4;
2792
+ this[e + 2] = this[e + 3] = this[e + 0] = this[e + 1] = void 0;
2793
+ }),
2794
+ (i.prototype._fulfill = function (t) {
2795
+ var e = this._bitField;
2796
+ if (!((117506048 & e) >>> 16)) {
2797
+ if (t === this) {
2798
+ var n = l();
2799
+ return this._attachExtraTrace(n), this._reject(n);
2800
+ }
2801
+ this._setFulfilled(),
2802
+ (this._rejectionHandler0 = t),
2803
+ (65535 & e) > 0 &&
2804
+ (0 !== (134217728 & e)
2805
+ ? this._settlePromises()
2806
+ : v.settlePromises(this),
2807
+ this._dereferenceTrace());
2808
+ }
2809
+ }),
2810
+ (i.prototype._reject = function (t) {
2811
+ var e = this._bitField;
2812
+ if (!((117506048 & e) >>> 16))
2813
+ return (
2814
+ this._setRejected(),
2815
+ (this._fulfillmentHandler0 = t),
2816
+ this._isFinal()
2817
+ ? v.fatalError(t, f.isNode)
2818
+ : void ((65535 & e) > 0
2819
+ ? v.settlePromises(this)
2820
+ : this._ensurePossibleRejectionHandled())
2821
+ );
2822
+ }),
2823
+ (i.prototype._fulfillPromises = function (t, e) {
2824
+ for (var n = 1; t > n; n++) {
2825
+ var r = this._fulfillmentHandlerAt(n),
2826
+ i = this._promiseAt(n),
2827
+ o = this._receiverAt(n);
2828
+ this._clearCallbackDataAtIndex(n),
2829
+ this._settlePromise(i, r, o, e);
2830
+ }
2831
+ }),
2832
+ (i.prototype._rejectPromises = function (t, e) {
2833
+ for (var n = 1; t > n; n++) {
2834
+ var r = this._rejectionHandlerAt(n),
2835
+ i = this._promiseAt(n),
2836
+ o = this._receiverAt(n);
2837
+ this._clearCallbackDataAtIndex(n),
2838
+ this._settlePromise(i, r, o, e);
2839
+ }
2840
+ }),
2841
+ (i.prototype._settlePromises = function () {
2842
+ var t = this._bitField,
2843
+ e = 65535 & t;
2844
+ if (e > 0) {
2845
+ if (0 !== (16842752 & t)) {
2846
+ var n = this._fulfillmentHandler0;
2847
+ this._settlePromise0(this._rejectionHandler0, n, t),
2848
+ this._rejectPromises(e, n);
2849
+ } else {
2850
+ var r = this._rejectionHandler0;
2851
+ this._settlePromise0(this._fulfillmentHandler0, r, t),
2852
+ this._fulfillPromises(e, r);
2853
+ }
2854
+ this._setLength(0);
2855
+ }
2856
+ this._clearCancellationData();
2857
+ }),
2858
+ (i.prototype._settledValue = function () {
2859
+ var t = this._bitField;
2860
+ return 0 !== (33554432 & t)
2861
+ ? this._rejectionHandler0
2862
+ : 0 !== (16777216 & t)
2863
+ ? this._fulfillmentHandler0
2864
+ : void 0;
2865
+ }),
2866
+ "undefined" != typeof Symbol &&
2867
+ Symbol.toStringTag &&
2868
+ _.defineProperty(i.prototype, Symbol.toStringTag, {
2869
+ get() {
2870
+ return "Object";
2871
+ }
2872
+ }),
2873
+ (i.defer = i.pending =
2874
+ function () {
2875
+ T.deprecated("Promise.defer", "new Promise");
2876
+ var t = new i(b);
2877
+ return { promise: t, resolve: o, reject: s };
2878
+ }),
2879
+ f.notEnumerableProp(i, "_makeSelfResolutionError", l),
2880
+ t("./method")(i, b, j, p, T),
2881
+ t("./bind")(i, b, j, T),
2882
+ t("./cancel")(i, E, p, T),
2883
+ t("./direct_resolve")(i),
2884
+ t("./synchronous_inspection")(i),
2885
+ t("./join")(i, E, j, b, v, c),
2886
+ (i.Promise = i),
2887
+ (i.version = "3.5.5"),
2888
+ t("./call_get.js")(i),
2889
+ t("./generators.js")(i, p, b, j, n, T),
2890
+ t("./map.js")(i, E, p, j, b, T),
2891
+ t("./nodeify.js")(i),
2892
+ t("./promisify.js")(i, b),
2893
+ t("./props.js")(i, E, j, p),
2894
+ t("./race.js")(i, b, j, p),
2895
+ t("./reduce.js")(i, E, p, j, b, T),
2896
+ t("./settle.js")(i, E, T),
2897
+ t("./some.js")(i, E, p),
2898
+ t("./timers.js")(i, b, T),
2899
+ t("./using.js")(i, p, j, F, b, T),
2900
+ t("./any.js")(i),
2901
+ t("./each.js")(i, b),
2902
+ t("./filter.js")(i, b),
2903
+ f.toFastProperties(i),
2904
+ f.toFastProperties(i.prototype),
2905
+ a({ a: 1 }),
2906
+ a({ b: 2 }),
2907
+ a({ c: 3 }),
2908
+ a(1),
2909
+ a(function () {}),
2910
+ a(void 0),
2911
+ a(!1),
2912
+ a(new i(b)),
2913
+ T.setBounds(d.firstLineError, f.lastLineError),
2914
+ i
2915
+ );
2916
+ };
2917
+ },
2918
+ {
2919
+ "./any.js": 1,
2920
+ "./async": 2,
2921
+ "./bind": 3,
2922
+ "./call_get.js": 5,
2923
+ "./cancel": 6,
2924
+ "./catch_filter": 7,
2925
+ "./context": 8,
2926
+ "./debuggability": 9,
2927
+ "./direct_resolve": 10,
2928
+ "./each.js": 11,
2929
+ "./errors": 12,
2930
+ "./es5": 13,
2931
+ "./filter.js": 14,
2932
+ "./finally": 15,
2933
+ "./generators.js": 16,
2934
+ "./join": 17,
2935
+ "./map.js": 18,
2936
+ "./method": 19,
2937
+ "./nodeback": 20,
2938
+ "./nodeify.js": 21,
2939
+ "./promise_array": 23,
2940
+ "./promisify.js": 24,
2941
+ "./props.js": 25,
2942
+ "./race.js": 27,
2943
+ "./reduce.js": 28,
2944
+ "./settle.js": 30,
2945
+ "./some.js": 31,
2946
+ "./synchronous_inspection": 32,
2947
+ "./thenables": 33,
2948
+ "./timers.js": 34,
2949
+ "./using.js": 35,
2950
+ "./util": 36
2951
+ }
2952
+ ],
2953
+
2954
+ 23: [
2955
+ function (t, e, n) {
2956
+ "use strict";
2957
+ e.exports = function (e, n, r, i, o) {
2958
+ function s(t) {
2959
+ switch (t) {
2960
+ case -2:
2961
+ return [];
2962
+ case -3:
2963
+ return {};
2964
+ case -6:
2965
+ return new Map();
2966
+ }
2967
+ }
2968
+ function a(t) {
2969
+ var r = (this._promise = new e(n));
2970
+ t instanceof e && r._propagateFrom(t, 3),
2971
+ r._setOnCancel(this),
2972
+ (this._values = t),
2973
+ (this._length = 0),
2974
+ (this._totalResolved = 0),
2975
+ this._init(void 0, -2);
2976
+ }
2977
+ var c = t("./util");
2978
+ c.isArray;
2979
+ return (
2980
+ c.inherits(a, o),
2981
+ (a.prototype.length = function () {
2982
+ return this._length;
2983
+ }),
2984
+ (a.prototype.promise = function () {
2985
+ return this._promise;
2986
+ }),
2987
+ (a.prototype._init = function l(t, n) {
2988
+ var o = r(this._values, this._promise);
2989
+ if (o instanceof e) {
2990
+ o = o._target();
2991
+ var a = o._bitField;
2992
+ if (((this._values = o), 0 === (50397184 & a)))
2993
+ return (
2994
+ this._promise._setAsyncGuaranteed(),
2995
+ o._then(l, this._reject, void 0, this, n)
2996
+ );
2997
+
2998
+ if (0 === (33554432 & a))
2999
+ return 0 !== (16777216 & a)
3000
+ ? this._reject(o._reason())
3001
+ : this._cancel();
3002
+ o = o._value();
3003
+ }
3004
+ if (((o = c.asArray(o)), null === o)) {
3005
+ var u = i(
3006
+ "expecting an array or an iterable object but got " +
3007
+ c.classString(o)
3008
+ ).reason();
3009
+ return void this._promise._rejectCallback(u, !1);
3010
+ }
3011
+ return 0 === o.length
3012
+ ? void (-5 === n
3013
+ ? this._resolveEmptyArray()
3014
+ : this._resolve(s(n)))
3015
+ : void this._iterate(o);
3016
+ }),
3017
+ (a.prototype._iterate = function (t) {
3018
+ var n = this.getActualLength(t.length);
3019
+ (this._length = n),
3020
+ (this._values = this.shouldCopyValues()
3021
+ ? new Array(n)
3022
+ : this._values);
3023
+ for (
3024
+ var i = this._promise, o = !1, s = null, a = 0;
3025
+ n > a;
3026
+ ++a
3027
+ ) {
3028
+ var c = r(t[a], i);
3029
+ c instanceof e
3030
+ ? ((c = c._target()), (s = c._bitField))
3031
+ : (s = null),
3032
+ o
3033
+ ? null !== s && c.suppressUnhandledRejections()
3034
+ : null !== s
3035
+ ? 0 === (50397184 & s)
3036
+ ? (c._proxy(this, a), (this._values[a] = c))
3037
+ : (o =
3038
+ 0 !== (33554432 & s)
3039
+ ? this._promiseFulfilled(c._value(), a)
3040
+ : 0 !== (16777216 & s)
3041
+ ? this._promiseRejected(c._reason(), a)
3042
+ : this._promiseCancelled(a))
3043
+ : (o = this._promiseFulfilled(c, a));
3044
+ }
3045
+ o || i._setAsyncGuaranteed();
3046
+ }),
3047
+ (a.prototype._isResolved = function () {
3048
+ return null === this._values;
3049
+ }),
3050
+ (a.prototype._resolve = function (t) {
3051
+ (this._values = null), this._promise._fulfill(t);
3052
+ }),
3053
+ (a.prototype._cancel = function () {
3054
+ !this._isResolved() &&
3055
+ this._promise._isCancellable() &&
3056
+ ((this._values = null), this._promise._cancel());
3057
+ }),
3058
+ (a.prototype._reject = function (t) {
3059
+ (this._values = null), this._promise._rejectCallback(t, !1);
3060
+ }),
3061
+ (a.prototype._promiseFulfilled = function (t, e) {
3062
+ this._values[e] = t;
3063
+ var n = ++this._totalResolved;
3064
+ return n >= this._length
3065
+ ? (this._resolve(this._values), !0)
3066
+ : !1;
3067
+ }),
3068
+ (a.prototype._promiseCancelled = function () {
3069
+ return this._cancel(), !0;
3070
+ }),
3071
+ (a.prototype._promiseRejected = function (t) {
3072
+ return this._totalResolved++, this._reject(t), !0;
3073
+ }),
3074
+ (a.prototype._resultCancelled = function () {
3075
+ if (!this._isResolved()) {
3076
+ var t = this._values;
3077
+ if ((this._cancel(), t instanceof e)) t.cancel();
3078
+ else
3079
+ for (var n = 0; n < t.length; ++n)
3080
+ t[n] instanceof e && t[n].cancel();
3081
+ }
3082
+ }),
3083
+ (a.prototype.shouldCopyValues = function () {
3084
+ return !0;
3085
+ }),
3086
+ (a.prototype.getActualLength = function (t) {
3087
+ return t;
3088
+ }),
3089
+ a
3090
+ );
3091
+ };
3092
+ },
3093
+ { "./util": 36 }
3094
+ ],
3095
+
3096
+ 24: [
3097
+ function (t, e, n) {
3098
+ "use strict";
3099
+ e.exports = function (e, n) {
3100
+ function r(t) {
3101
+ return !C.test(t);
3102
+ }
3103
+ function i(t) {
3104
+ try {
3105
+ return t.__isPromisified__ === !0;
3106
+ } catch (e) {
3107
+ return !1;
3108
+ }
3109
+ }
3110
+ function o(t, e, n) {
3111
+ var r = f.getDataPropertyOrDefault(t, e + n, b);
3112
+ return r ? i(r) : !1;
3113
+ }
3114
+ function s(t, e, n) {
3115
+ for (var r = 0; r < t.length; r += 2) {
3116
+ var i = t[r];
3117
+ if (n.test(i))
3118
+ for (var o = i.replace(n, ""), s = 0; s < t.length; s += 2)
3119
+ if (t[s] === o)
3120
+ throw new m(
3121
+ "Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace(
3122
+ "%s",
3123
+ e
3124
+ )
3125
+ );
3126
+ }
3127
+ }
3128
+ function a(t, e, n, r) {
3129
+ for (
3130
+ var a = f.inheritedDataKeys(t), c = [], l = 0;
3131
+ l < a.length;
3132
+ ++l
3133
+ ) {
3134
+ var u = a[l],
3135
+ p = t[u],
3136
+ h = r === j ? !0 : j(u, p, t);
3137
+ "function" != typeof p ||
3138
+ i(p) ||
3139
+ o(t, u, e) ||
3140
+ !r(u, p, t, h) ||
3141
+ c.push(u, p);
3142
+ }
3143
+ return s(c, e, n), c;
3144
+ }
3145
+ function c(t, r, i, o, s, a) {
3146
+ function c() {
3147
+ var i = r;
3148
+ r === h && (i = this);
3149
+ var o = new e(n);
3150
+ o._captureStackTrace();
3151
+ var s = "string" == typeof u && this !== l ? this[u] : t,
3152
+ c = _(o, a);
3153
+ try {
3154
+ s.apply(i, d(arguments, c));
3155
+ } catch (p) {
3156
+ o._rejectCallback(v(p), !0, !0);
3157
+ }
3158
+ return o._isFateSealed() || o._setAsyncGuaranteed(), o;
3159
+ }
3160
+ var l = (function () {
3161
+ return this;
3162
+ })(),
3163
+ u = t;
3164
+ return (
3165
+ "string" == typeof u && (t = o),
3166
+ f.notEnumerableProp(c, "__isPromisified__", !0),
3167
+ c
3168
+ );
3169
+ }
3170
+ function l(t, e, n, r, i) {
3171
+ for (
3172
+ var o = new RegExp(E(e) + "$"),
3173
+ s = a(t, e, o, n),
3174
+ c = 0,
3175
+ l = s.length;
3176
+ l > c;
3177
+ c += 2
3178
+ ) {
3179
+ var u = s[c],
3180
+ p = s[c + 1],
3181
+ _ = u + e;
3182
+ if (r === k) t[_] = k(u, h, u, p, e, i);
3183
+ else {
3184
+ var d = r(p, function () {
3185
+ return k(u, h, u, p, e, i);
3186
+ });
3187
+ f.notEnumerableProp(d, "__isPromisified__", !0), (t[_] = d);
3188
+ }
3189
+ }
3190
+ return f.toFastProperties(t), t;
3191
+ }
3192
+ function u(t, e, n) {
3193
+ return k(t, e, void 0, t, null, n);
3194
+ }
3195
+ var p,
3196
+ h = {},
3197
+ f = t("./util"),
3198
+ _ = t("./nodeback"),
3199
+ d = f.withAppended,
3200
+ v = f.maybeWrapAsError,
3201
+ y = f.canEvaluate,
3202
+ m = t("./errors").TypeError,
3203
+ g = "Async",
3204
+ b = { __isPromisified__: !0 },
3205
+ w = [
3206
+ "arity",
3207
+ "length",
3208
+ "name",
3209
+ "arguments",
3210
+ "caller",
3211
+ "callee",
3212
+ "prototype",
3213
+ "__isPromisified__"
3214
+ ],
3215
+ C = new RegExp("^(?:" + w.join("|") + ")$"),
3216
+ j = function (t) {
3217
+ return (
3218
+ f.isIdentifier(t) &&
3219
+ "_" !== t.charAt(0) &&
3220
+ "constructor" !== t
3221
+ );
3222
+ },
3223
+ E = function (t) {
3224
+ return t.replace(/([$])/, "\\$");
3225
+ },
3226
+ k = y ? p : c;
3227
+ (e.promisify = function (t, e) {
3228
+ if ("function" != typeof t)
3229
+ throw new m("expecting a function but got " + f.classString(t));
3230
+ if (i(t)) return t;
3231
+ e = Object(e);
3232
+ var n = void 0 === e.context ? h : e.context,
3233
+ o = !!e.multiArgs,
3234
+ s = u(t, n, o);
3235
+ return f.copyDescriptors(t, s, r), s;
3236
+ }),
3237
+ (e.promisifyAll = function (t, e) {
3238
+ if ("function" != typeof t && "object" != typeof t)
3239
+ throw new m(
3240
+ "the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n"
3241
+ );
3242
+
3243
+ e = Object(e);
3244
+ var n = !!e.multiArgs,
3245
+ r = e.suffix;
3246
+ "string" != typeof r && (r = g);
3247
+ var i = e.filter;
3248
+ "function" != typeof i && (i = j);
3249
+ var o = e.promisifier;
3250
+ if (("function" != typeof o && (o = k), !f.isIdentifier(r)))
3251
+ throw new RangeError(
3252
+ "suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n"
3253
+ );
3254
+
3255
+ for (var s = f.inheritedDataKeys(t), a = 0; a < s.length; ++a) {
3256
+ var c = t[s[a]];
3257
+ "constructor" !== s[a] &&
3258
+ f.isClass(c) &&
3259
+ (l(c.prototype, r, i, o, n), l(c, r, i, o, n));
3260
+ }
3261
+ return l(t, r, i, o, n);
3262
+ });
3263
+ };
3264
+ },
3265
+ { "./errors": 12, "./nodeback": 20, "./util": 36 }
3266
+ ],
3267
+
3268
+ 25: [
3269
+ function (t, e, n) {
3270
+ "use strict";
3271
+ e.exports = function (e, n, r, i) {
3272
+ function o(t) {
3273
+ var e,
3274
+ n = !1;
3275
+ if (void 0 !== a && t instanceof a) (e = p(t)), (n = !0);
3276
+ else {
3277
+ var r = u.keys(t),
3278
+ i = r.length;
3279
+ e = new Array(2 * i);
3280
+ for (var o = 0; i > o; ++o) {
3281
+ var s = r[o];
3282
+ (e[o] = t[s]), (e[o + i] = s);
3283
+ }
3284
+ }
3285
+ this.constructor$(e),
3286
+ (this._isMap = n),
3287
+ this._init$(void 0, n ? -6 : -3);
3288
+ }
3289
+ function s(t) {
3290
+ var n,
3291
+ s = r(t);
3292
+ return l(s)
3293
+ ? ((n =
3294
+ s instanceof e
3295
+ ? s._then(e.props, void 0, void 0, void 0, void 0)
3296
+ : new o(s).promise()),
3297
+ s instanceof e && n._propagateFrom(s, 2),
3298
+ n)
3299
+ : i(
3300
+ "cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n"
3301
+ );
3302
+ }
3303
+ var a,
3304
+ c = t("./util"),
3305
+ l = c.isObject,
3306
+ u = t("./es5");
3307
+ "function" == typeof Map && (a = Map);
3308
+ var p = (function () {
3309
+ function t(t, r) {
3310
+ (this[e] = t), (this[e + n] = r), e++;
3311
+ }
3312
+ var e = 0,
3313
+ n = 0;
3314
+ return function (r) {
3315
+ (n = r.size), (e = 0);
3316
+ var i = new Array(2 * r.size);
3317
+ return r.forEach(t, i), i;
3318
+ };
3319
+ })(),
3320
+ h = function (t) {
3321
+ for (
3322
+ var e = new a(), n = (t.length / 2) | 0, r = 0;
3323
+ n > r;
3324
+ ++r
3325
+ ) {
3326
+ var i = t[n + r],
3327
+ o = t[r];
3328
+ e.set(i, o);
3329
+ }
3330
+ return e;
3331
+ };
3332
+ c.inherits(o, n),
3333
+ (o.prototype._init = function () {}),
3334
+ (o.prototype._promiseFulfilled = function (t, e) {
3335
+ this._values[e] = t;
3336
+ var n = ++this._totalResolved;
3337
+ if (n >= this._length) {
3338
+ var r;
3339
+ if (this._isMap) r = h(this._values);
3340
+ else {
3341
+ r = {};
3342
+ for (
3343
+ var i = this.length(), o = 0, s = this.length();
3344
+ s > o;
3345
+ ++o
3346
+ )
3347
+ r[this._values[o + i]] = this._values[o];
3348
+ }
3349
+ return this._resolve(r), !0;
3350
+ }
3351
+ return !1;
3352
+ }),
3353
+ (o.prototype.shouldCopyValues = function () {
3354
+ return !1;
3355
+ }),
3356
+ (o.prototype.getActualLength = function (t) {
3357
+ return t >> 1;
3358
+ }),
3359
+ (e.prototype.props = function () {
3360
+ return s(this);
3361
+ }),
3362
+ (e.props = function (t) {
3363
+ return s(t);
3364
+ });
3365
+ };
3366
+ },
3367
+ { "./es5": 13, "./util": 36 }
3368
+ ],
3369
+
3370
+ 26: [
3371
+ function (t, e, n) {
3372
+ "use strict";
3373
+ function r(t, e, n, r, i) {
3374
+ for (var o = 0; i > o; ++o)
3375
+ (n[o + r] = t[o + e]), (t[o + e] = void 0);
3376
+ }
3377
+ function i(t) {
3378
+ (this._capacity = t), (this._length = 0), (this._front = 0);
3379
+ }
3380
+ (i.prototype._willBeOverCapacity = function (t) {
3381
+ return this._capacity < t;
3382
+ }),
3383
+ (i.prototype._pushOne = function (t) {
3384
+ var e = this.length();
3385
+ this._checkCapacity(e + 1);
3386
+ var n = (this._front + e) & (this._capacity - 1);
3387
+ (this[n] = t), (this._length = e + 1);
3388
+ }),
3389
+ (i.prototype.push = function (t, e, n) {
3390
+ var r = this.length() + 3;
3391
+ if (this._willBeOverCapacity(r))
3392
+ return (
3393
+ this._pushOne(t), this._pushOne(e), void this._pushOne(n)
3394
+ );
3395
+
3396
+ var i = this._front + r - 3;
3397
+ this._checkCapacity(r);
3398
+ var o = this._capacity - 1;
3399
+ (this[(i + 0) & o] = t),
3400
+ (this[(i + 1) & o] = e),
3401
+ (this[(i + 2) & o] = n),
3402
+ (this._length = r);
3403
+ }),
3404
+ (i.prototype.shift = function () {
3405
+ var t = this._front,
3406
+ e = this[t];
3407
+ return (
3408
+ (this[t] = void 0),
3409
+ (this._front = (t + 1) & (this._capacity - 1)),
3410
+ this._length--,
3411
+ e
3412
+ );
3413
+ }),
3414
+ (i.prototype.length = function () {
3415
+ return this._length;
3416
+ }),
3417
+ (i.prototype._checkCapacity = function (t) {
3418
+ this._capacity < t && this._resizeTo(this._capacity << 1);
3419
+ }),
3420
+ (i.prototype._resizeTo = function (t) {
3421
+ var e = this._capacity;
3422
+ this._capacity = t;
3423
+ var n = this._front,
3424
+ i = this._length,
3425
+ o = (n + i) & (e - 1);
3426
+ r(this, 0, this, e, o);
3427
+ }),
3428
+ (e.exports = i);
3429
+ },
3430
+ {}
3431
+ ],
3432
+
3433
+ 27: [
3434
+ function (t, e, n) {
3435
+ "use strict";
3436
+ e.exports = function (e, n, r, i) {
3437
+ function o(t, o) {
3438
+ var c = r(t);
3439
+ if (c instanceof e) return a(c);
3440
+ if (((t = s.asArray(t)), null === t))
3441
+ return i(
3442
+ "expecting an array or an iterable object but got " +
3443
+ s.classString(t)
3444
+ );
3445
+
3446
+ var l = new e(n);
3447
+ void 0 !== o && l._propagateFrom(o, 3);
3448
+ for (
3449
+ var u = l._fulfill, p = l._reject, h = 0, f = t.length;
3450
+ f > h;
3451
+ ++h
3452
+ ) {
3453
+ var _ = t[h];
3454
+ (void 0 !== _ || h in t) &&
3455
+ e.cast(_)._then(u, p, void 0, l, null);
3456
+ }
3457
+ return l;
3458
+ }
3459
+ var s = t("./util"),
3460
+ a = function (t) {
3461
+ return t.then(function (e) {
3462
+ return o(e, t);
3463
+ });
3464
+ };
3465
+ (e.race = function (t) {
3466
+ return o(t, void 0);
3467
+ }),
3468
+ (e.prototype.race = function () {
3469
+ return o(this, void 0);
3470
+ });
3471
+ };
3472
+ },
3473
+ { "./util": 36 }
3474
+ ],
3475
+
3476
+ 28: [
3477
+ function (t, e, n) {
3478
+ "use strict";
3479
+ e.exports = function (e, n, r, i, o, s) {
3480
+ function a(t, n, r, i) {
3481
+ this.constructor$(t);
3482
+ var s = h();
3483
+ (this._fn = null === s ? n : f.domainBind(s, n)),
3484
+ void 0 !== r &&
3485
+ ((r = e.resolve(r)), r._attachCancellationCallback(this)),
3486
+ (this._initialValue = r),
3487
+ (this._currentCancellable = null),
3488
+ i === o
3489
+ ? (this._eachValues = Array(this._length))
3490
+ : 0 === i
3491
+ ? (this._eachValues = null)
3492
+ : (this._eachValues = void 0),
3493
+ this._promise._captureStackTrace(),
3494
+ this._init$(void 0, -5);
3495
+ }
3496
+ function c(t, e) {
3497
+ this.isFulfilled() ? e._resolve(t) : e._reject(t);
3498
+ }
3499
+ function l(t, e, n, i) {
3500
+ if ("function" != typeof e)
3501
+ return r("expecting a function but got " + f.classString(e));
3502
+ var o = new a(t, e, n, i);
3503
+ return o.promise();
3504
+ }
3505
+ function u(t) {
3506
+ (this.accum = t), this.array._gotAccum(t);
3507
+ var n = i(this.value, this.array._promise);
3508
+ return n instanceof e
3509
+ ? ((this.array._currentCancellable = n),
3510
+ n._then(p, void 0, void 0, this, void 0))
3511
+ : p.call(this, n);
3512
+ }
3513
+ function p(t) {
3514
+ var n = this.array,
3515
+ r = n._promise,
3516
+ i = _(n._fn);
3517
+ r._pushContext();
3518
+ var o;
3519
+ (o =
3520
+ void 0 !== n._eachValues
3521
+ ? i.call(r._boundValue(), t, this.index, this.length)
3522
+ : i.call(
3523
+ r._boundValue(),
3524
+ this.accum,
3525
+ t,
3526
+ this.index,
3527
+ this.length
3528
+ )),
3529
+ o instanceof e && (n._currentCancellable = o);
3530
+ var a = r._popContext();
3531
+ return (
3532
+ s.checkForgottenReturns(
3533
+ o,
3534
+ a,
3535
+ void 0 !== n._eachValues ? "Promise.each" : "Promise.reduce",
3536
+ r
3537
+ ),
3538
+ o
3539
+ );
3540
+ }
3541
+ var h = e._getDomain,
3542
+ f = t("./util"),
3543
+ _ = f.tryCatch;
3544
+ f.inherits(a, n),
3545
+ (a.prototype._gotAccum = function (t) {
3546
+ void 0 !== this._eachValues &&
3547
+ null !== this._eachValues &&
3548
+ t !== o &&
3549
+ this._eachValues.push(t);
3550
+ }),
3551
+ (a.prototype._eachComplete = function (t) {
3552
+ return (
3553
+ null !== this._eachValues && this._eachValues.push(t),
3554
+ this._eachValues
3555
+ );
3556
+ }),
3557
+ (a.prototype._init = function () {}),
3558
+ (a.prototype._resolveEmptyArray = function () {
3559
+ this._resolve(
3560
+ void 0 !== this._eachValues
3561
+ ? this._eachValues
3562
+ : this._initialValue
3563
+ );
3564
+ }),
3565
+ (a.prototype.shouldCopyValues = function () {
3566
+ return !1;
3567
+ }),
3568
+ (a.prototype._resolve = function (t) {
3569
+ this._promise._resolveCallback(t), (this._values = null);
3570
+ }),
3571
+ (a.prototype._resultCancelled = function (t) {
3572
+ return t === this._initialValue
3573
+ ? this._cancel()
3574
+ : void (
3575
+ this._isResolved() ||
3576
+ (this._resultCancelled$(),
3577
+ this._currentCancellable instanceof e &&
3578
+ this._currentCancellable.cancel(),
3579
+ this._initialValue instanceof e &&
3580
+ this._initialValue.cancel())
3581
+ );
3582
+ }),
3583
+ (a.prototype._iterate = function (t) {
3584
+ this._values = t;
3585
+ var n,
3586
+ r,
3587
+ i = t.length;
3588
+ if (
3589
+ (void 0 !== this._initialValue
3590
+ ? ((n = this._initialValue), (r = 0))
3591
+ : ((n = e.resolve(t[0])), (r = 1)),
3592
+ (this._currentCancellable = n),
3593
+ !n.isRejected())
3594
+ )
3595
+ for (; i > r; ++r) {
3596
+ var o = {
3597
+ accum: null,
3598
+ value: t[r],
3599
+ index: r,
3600
+ length: i,
3601
+ array: this
3602
+ };
3603
+
3604
+ n = n._then(u, void 0, void 0, o, void 0);
3605
+ }
3606
+ void 0 !== this._eachValues &&
3607
+ (n = n._then(
3608
+ this._eachComplete,
3609
+ void 0,
3610
+ void 0,
3611
+ this,
3612
+ void 0
3613
+ )),
3614
+ n._then(c, c, void 0, n, this);
3615
+ }),
3616
+ (e.prototype.reduce = function (t, e) {
3617
+ return l(this, t, e, null);
3618
+ }),
3619
+ (e.reduce = function (t, e, n, r) {
3620
+ return l(t, e, n, r);
3621
+ });
3622
+ };
3623
+ },
3624
+ { "./util": 36 }
3625
+ ],
3626
+
3627
+ 29: [
3628
+ function (t, e, n) {
3629
+ "use strict";
3630
+ var r,
3631
+ i = t("./util"),
3632
+ o = function () {
3633
+ throw new Error(
3634
+ "No async scheduler available\n\n See http://goo.gl/MqrFmX\n"
3635
+ );
3636
+ },
3637
+ s = i.getNativePromise();
3638
+ if (i.isNode && "undefined" == typeof MutationObserver) {
3639
+ var a = global.setImmediate,
3640
+ c = process.nextTick;
3641
+ r = i.isRecentNode
3642
+ ? function (t) {
3643
+ a.call(global, t);
3644
+ }
3645
+ : function (t) {
3646
+ c.call(process, t);
3647
+ };
3648
+ } else if ("function" == typeof s && "function" == typeof s.resolve) {
3649
+ var l = s.resolve();
3650
+ r = function (t) {
3651
+ l.then(t);
3652
+ };
3653
+ } else
3654
+ r =
3655
+ "undefined" != typeof MutationObserver &&
3656
+ ("undefined" == typeof window ||
3657
+ !window.navigator ||
3658
+ (!window.navigator.standalone && !window.cordova)) &&
3659
+ "classList" in document.documentElement
3660
+ ? (function () {
3661
+ var t = document.createElement("div"),
3662
+ e = { attributes: !0 },
3663
+ n = !1,
3664
+ r = document.createElement("div"),
3665
+ i = new MutationObserver(function () {
3666
+ t.classList.toggle("foo"), (n = !1);
3667
+ });
3668
+ i.observe(r, e);
3669
+ var o = function () {
3670
+ n || ((n = !0), r.classList.toggle("foo"));
3671
+ };
3672
+ return function (n) {
3673
+ var r = new MutationObserver(function () {
3674
+ r.disconnect(), n();
3675
+ });
3676
+ r.observe(t, e), o();
3677
+ };
3678
+ })()
3679
+ : "undefined" != typeof setImmediate
3680
+ ? function (t) {
3681
+ setImmediate(t);
3682
+ }
3683
+ : "undefined" != typeof setTimeout
3684
+ ? function (t) {
3685
+ setTimeout(t, 0);
3686
+ }
3687
+ : o;
3688
+ e.exports = r;
3689
+ },
3690
+ { "./util": 36 }
3691
+ ],
3692
+
3693
+ 30: [
3694
+ function (t, e, n) {
3695
+ "use strict";
3696
+ e.exports = function (e, n, r) {
3697
+ function i(t) {
3698
+ this.constructor$(t);
3699
+ }
3700
+ var o = e.PromiseInspection,
3701
+ s = t("./util");
3702
+ s.inherits(i, n),
3703
+ (i.prototype._promiseResolved = function (t, e) {
3704
+ this._values[t] = e;
3705
+ var n = ++this._totalResolved;
3706
+ return n >= this._length
3707
+ ? (this._resolve(this._values), !0)
3708
+ : !1;
3709
+ }),
3710
+ (i.prototype._promiseFulfilled = function (t, e) {
3711
+ var n = new o();
3712
+ return (
3713
+ (n._bitField = 33554432),
3714
+ (n._settledValueField = t),
3715
+ this._promiseResolved(e, n)
3716
+ );
3717
+ }),
3718
+ (i.prototype._promiseRejected = function (t, e) {
3719
+ var n = new o();
3720
+ return (
3721
+ (n._bitField = 16777216),
3722
+ (n._settledValueField = t),
3723
+ this._promiseResolved(e, n)
3724
+ );
3725
+ }),
3726
+ (e.settle = function (t) {
3727
+ return (
3728
+ r.deprecated(".settle()", ".reflect()"), new i(t).promise()
3729
+ );
3730
+ }),
3731
+ (e.prototype.settle = function () {
3732
+ return e.settle(this);
3733
+ });
3734
+ };
3735
+ },
3736
+ { "./util": 36 }
3737
+ ],
3738
+
3739
+ 31: [
3740
+ function (t, e, n) {
3741
+ "use strict";
3742
+ e.exports = function (e, n, r) {
3743
+ function i(t) {
3744
+ this.constructor$(t),
3745
+ (this._howMany = 0),
3746
+ (this._unwrap = !1),
3747
+ (this._initialized = !1);
3748
+ }
3749
+ function o(t, e) {
3750
+ if ((0 | e) !== e || 0 > e)
3751
+ return r(
3752
+ "expecting a positive integer\n\n See http://goo.gl/MqrFmX\n"
3753
+ );
3754
+
3755
+ var n = new i(t),
3756
+ o = n.promise();
3757
+ return n.setHowMany(e), n.init(), o;
3758
+ }
3759
+ var s = t("./util"),
3760
+ a = t("./errors").RangeError,
3761
+ c = t("./errors").AggregateError,
3762
+ l = s.isArray,
3763
+ u = {};
3764
+ s.inherits(i, n),
3765
+ (i.prototype._init = function () {
3766
+ if (this._initialized) {
3767
+ if (0 === this._howMany) return void this._resolve([]);
3768
+ this._init$(void 0, -5);
3769
+ var t = l(this._values);
3770
+ !this._isResolved() &&
3771
+ t &&
3772
+ this._howMany > this._canPossiblyFulfill() &&
3773
+ this._reject(this._getRangeError(this.length()));
3774
+ }
3775
+ }),
3776
+ (i.prototype.init = function () {
3777
+ (this._initialized = !0), this._init();
3778
+ }),
3779
+ (i.prototype.setUnwrap = function () {
3780
+ this._unwrap = !0;
3781
+ }),
3782
+ (i.prototype.howMany = function () {
3783
+ return this._howMany;
3784
+ }),
3785
+ (i.prototype.setHowMany = function (t) {
3786
+ this._howMany = t;
3787
+ }),
3788
+ (i.prototype._promiseFulfilled = function (t) {
3789
+ return (
3790
+ this._addFulfilled(t),
3791
+ this._fulfilled() === this.howMany()
3792
+ ? ((this._values.length = this.howMany()),
3793
+ 1 === this.howMany() && this._unwrap
3794
+ ? this._resolve(this._values[0])
3795
+ : this._resolve(this._values),
3796
+ !0)
3797
+ : !1
3798
+ );
3799
+ }),
3800
+ (i.prototype._promiseRejected = function (t) {
3801
+ return this._addRejected(t), this._checkOutcome();
3802
+ }),
3803
+ (i.prototype._promiseCancelled = function () {
3804
+ return this._values instanceof e || null == this._values
3805
+ ? this._cancel()
3806
+ : (this._addRejected(u), this._checkOutcome());
3807
+ }),
3808
+ (i.prototype._checkOutcome = function () {
3809
+ if (this.howMany() > this._canPossiblyFulfill()) {
3810
+ for (
3811
+ var t = new c(), e = this.length();
3812
+ e < this._values.length;
3813
+ ++e
3814
+ )
3815
+ this._values[e] !== u && t.push(this._values[e]);
3816
+ return t.length > 0 ? this._reject(t) : this._cancel(), !0;
3817
+ }
3818
+ return !1;
3819
+ }),
3820
+ (i.prototype._fulfilled = function () {
3821
+ return this._totalResolved;
3822
+ }),
3823
+ (i.prototype._rejected = function () {
3824
+ return this._values.length - this.length();
3825
+ }),
3826
+ (i.prototype._addRejected = function (t) {
3827
+ this._values.push(t);
3828
+ }),
3829
+ (i.prototype._addFulfilled = function (t) {
3830
+ this._values[this._totalResolved++] = t;
3831
+ }),
3832
+ (i.prototype._canPossiblyFulfill = function () {
3833
+ return this.length() - this._rejected();
3834
+ }),
3835
+ (i.prototype._getRangeError = function (t) {
3836
+ var e =
3837
+ "Input array must contain at least " +
3838
+ this._howMany +
3839
+ " items but contains only " +
3840
+ t +
3841
+ " items";
3842
+ return new a(e);
3843
+ }),
3844
+ (i.prototype._resolveEmptyArray = function () {
3845
+ this._reject(this._getRangeError(0));
3846
+ }),
3847
+ (e.some = function (t, e) {
3848
+ return o(t, e);
3849
+ }),
3850
+ (e.prototype.some = function (t) {
3851
+ return o(this, t);
3852
+ }),
3853
+ (e._SomePromiseArray = i);
3854
+ };
3855
+ },
3856
+ { "./errors": 12, "./util": 36 }
3857
+ ],
3858
+
3859
+ 32: [
3860
+ function (t, e, n) {
3861
+ "use strict";
3862
+ e.exports = function (t) {
3863
+ function e(t) {
3864
+ void 0 !== t
3865
+ ? ((t = t._target()),
3866
+ (this._bitField = t._bitField),
3867
+ (this._settledValueField = t._isFateSealed()
3868
+ ? t._settledValue()
3869
+ : void 0))
3870
+ : ((this._bitField = 0), (this._settledValueField = void 0));
3871
+ }
3872
+ e.prototype._settledValue = function () {
3873
+ return this._settledValueField;
3874
+ };
3875
+ var n = (e.prototype.value = function () {
3876
+ if (!this.isFulfilled())
3877
+ throw new TypeError(
3878
+ "cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n"
3879
+ );
3880
+
3881
+ return this._settledValue();
3882
+ }),
3883
+ r =
3884
+ (e.prototype.error =
3885
+ e.prototype.reason =
3886
+ function () {
3887
+ if (!this.isRejected())
3888
+ throw new TypeError(
3889
+ "cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n"
3890
+ );
3891
+
3892
+ return this._settledValue();
3893
+ }),
3894
+ i = (e.prototype.isFulfilled = function () {
3895
+ return 0 !== (33554432 & this._bitField);
3896
+ }),
3897
+ o = (e.prototype.isRejected = function () {
3898
+ return 0 !== (16777216 & this._bitField);
3899
+ }),
3900
+ s = (e.prototype.isPending = function () {
3901
+ return 0 === (50397184 & this._bitField);
3902
+ }),
3903
+ a = (e.prototype.isResolved = function () {
3904
+ return 0 !== (50331648 & this._bitField);
3905
+ });
3906
+ (e.prototype.isCancelled = function () {
3907
+ return 0 !== (8454144 & this._bitField);
3908
+ }),
3909
+ (t.prototype.__isCancelled = function () {
3910
+ return 65536 === (65536 & this._bitField);
3911
+ }),
3912
+ (t.prototype._isCancelled = function () {
3913
+ return this._target().__isCancelled();
3914
+ }),
3915
+ (t.prototype.isCancelled = function () {
3916
+ return 0 !== (8454144 & this._target()._bitField);
3917
+ }),
3918
+ (t.prototype.isPending = function () {
3919
+ return s.call(this._target());
3920
+ }),
3921
+ (t.prototype.isRejected = function () {
3922
+ return o.call(this._target());
3923
+ }),
3924
+ (t.prototype.isFulfilled = function () {
3925
+ return i.call(this._target());
3926
+ }),
3927
+ (t.prototype.isResolved = function () {
3928
+ return a.call(this._target());
3929
+ }),
3930
+ (t.prototype.value = function () {
3931
+ return n.call(this._target());
3932
+ }),
3933
+ (t.prototype.reason = function () {
3934
+ var t = this._target();
3935
+ return t._unsetRejectionIsUnhandled(), r.call(t);
3936
+ }),
3937
+ (t.prototype._value = function () {
3938
+ return this._settledValue();
3939
+ }),
3940
+ (t.prototype._reason = function () {
3941
+ return this._unsetRejectionIsUnhandled(), this._settledValue();
3942
+ }),
3943
+ (t.PromiseInspection = e);
3944
+ };
3945
+ },
3946
+ {}
3947
+ ],
3948
+
3949
+ 33: [
3950
+ function (t, e, n) {
3951
+ "use strict";
3952
+ e.exports = function (e, n) {
3953
+ function r(t, r) {
3954
+ if (u(t)) {
3955
+ if (t instanceof e) return t;
3956
+ var i = o(t);
3957
+ if (i === l) {
3958
+ r && r._pushContext();
3959
+ var c = e.reject(i.e);
3960
+ return r && r._popContext(), c;
3961
+ }
3962
+ if ("function" == typeof i) {
3963
+ if (s(t)) {
3964
+ var c = new e(n);
3965
+ return t._then(c._fulfill, c._reject, void 0, c, null), c;
3966
+ }
3967
+ return a(t, i, r);
3968
+ }
3969
+ }
3970
+ return t;
3971
+ }
3972
+ function i(t) {
3973
+ return t.then;
3974
+ }
3975
+ function o(t) {
3976
+ try {
3977
+ return i(t);
3978
+ } catch (e) {
3979
+ return (l.e = e), l;
3980
+ }
3981
+ }
3982
+ function s(t) {
3983
+ try {
3984
+ return p.call(t, "_promise0");
3985
+ } catch (e) {
3986
+ return !1;
3987
+ }
3988
+ }
3989
+ function a(t, r, i) {
3990
+ function o(t) {
3991
+ a && (a._resolveCallback(t), (a = null));
3992
+ }
3993
+ function s(t) {
3994
+ a && (a._rejectCallback(t, p, !0), (a = null));
3995
+ }
3996
+ var a = new e(n),
3997
+ u = a;
3998
+ i && i._pushContext(),
3999
+ a._captureStackTrace(),
4000
+ i && i._popContext();
4001
+ var p = !0,
4002
+ h = c.tryCatch(r).call(t, o, s);
4003
+ return (
4004
+ (p = !1),
4005
+ a && h === l && (a._rejectCallback(h.e, !0, !0), (a = null)),
4006
+ u
4007
+ );
4008
+ }
4009
+ var c = t("./util"),
4010
+ l = c.errorObj,
4011
+ u = c.isObject,
4012
+ p = {}.hasOwnProperty;
4013
+ return r;
4014
+ };
4015
+ },
4016
+ { "./util": 36 }
4017
+ ],
4018
+
4019
+ 34: [
4020
+ function (t, e, n) {
4021
+ "use strict";
4022
+ e.exports = function (e, n, r) {
4023
+ function i(t) {
4024
+ this.handle = t;
4025
+ }
4026
+ function o(t) {
4027
+ return clearTimeout(this.handle), t;
4028
+ }
4029
+ function s(t) {
4030
+ throw (clearTimeout(this.handle), t);
4031
+ }
4032
+ var a = t("./util"),
4033
+ c = e.TimeoutError;
4034
+ i.prototype._resultCancelled = function () {
4035
+ clearTimeout(this.handle);
4036
+ };
4037
+ var l = function (t) {
4038
+ return u(+this).thenReturn(t);
4039
+ },
4040
+ u = (e.delay = function (t, o) {
4041
+ var s, a;
4042
+ return (
4043
+ void 0 !== o
4044
+ ? ((s = e.resolve(o)._then(l, null, null, t, void 0)),
4045
+ r.cancellation() && o instanceof e && s._setOnCancel(o))
4046
+ : ((s = new e(n)),
4047
+ (a = setTimeout(function () {
4048
+ s._fulfill();
4049
+ }, +t)),
4050
+ r.cancellation() && s._setOnCancel(new i(a)),
4051
+ s._captureStackTrace()),
4052
+ s._setAsyncGuaranteed(),
4053
+ s
4054
+ );
4055
+ });
4056
+ e.prototype.delay = function (t) {
4057
+ return u(t, this);
4058
+ };
4059
+ var p = function (t, e, n) {
4060
+ var r;
4061
+ (r =
4062
+ "string" != typeof e
4063
+ ? e instanceof Error
4064
+ ? e
4065
+ : new c("operation timed out")
4066
+ : new c(e)),
4067
+ a.markAsOriginatingFromRejection(r),
4068
+ t._attachExtraTrace(r),
4069
+ t._reject(r),
4070
+ null != n && n.cancel();
4071
+ };
4072
+ e.prototype.timeout = function (t, e) {
4073
+ t = +t;
4074
+ var n,
4075
+ a,
4076
+ c = new i(
4077
+ setTimeout(function () {
4078
+ n.isPending() && p(n, e, a);
4079
+ }, t)
4080
+ );
4081
+
4082
+ return (
4083
+ r.cancellation()
4084
+ ? ((a = this.then()),
4085
+ (n = a._then(o, s, void 0, c, void 0)),
4086
+ n._setOnCancel(c))
4087
+ : (n = this._then(o, s, void 0, c, void 0)),
4088
+ n
4089
+ );
4090
+ };
4091
+ };
4092
+ },
4093
+ { "./util": 36 }
4094
+ ],
4095
+
4096
+ 35: [
4097
+ function (t, e, n) {
4098
+ "use strict";
4099
+ e.exports = function (e, n, r, i, o, s) {
4100
+ function a(t) {
4101
+ setTimeout(function () {
4102
+ throw t;
4103
+ }, 0);
4104
+ }
4105
+ function c(t) {
4106
+ var e = r(t);
4107
+ return (
4108
+ e !== t &&
4109
+ "function" == typeof t._isDisposable &&
4110
+ "function" == typeof t._getDisposer &&
4111
+ t._isDisposable() &&
4112
+ e._setDisposable(t._getDisposer()),
4113
+ e
4114
+ );
4115
+ }
4116
+ function l(t, n) {
4117
+ function i() {
4118
+ if (s >= l) return u._fulfill();
4119
+ var o = c(t[s++]);
4120
+ if (o instanceof e && o._isDisposable()) {
4121
+ try {
4122
+ o = r(o._getDisposer().tryDispose(n), t.promise);
4123
+ } catch (p) {
4124
+ return a(p);
4125
+ }
4126
+ if (o instanceof e) return o._then(i, a, null, null, null);
4127
+ }
4128
+ i();
4129
+ }
4130
+ var s = 0,
4131
+ l = t.length,
4132
+ u = new e(o);
4133
+ return i(), u;
4134
+ }
4135
+ function u(t, e, n) {
4136
+ (this._data = t), (this._promise = e), (this._context = n);
4137
+ }
4138
+ function p(t, e, n) {
4139
+ this.constructor$(t, e, n);
4140
+ }
4141
+ function h(t) {
4142
+ return u.isDisposer(t)
4143
+ ? (this.resources[this.index]._setDisposable(t), t.promise())
4144
+ : t;
4145
+ }
4146
+ function f(t) {
4147
+ (this.length = t), (this.promise = null), (this[t - 1] = null);
4148
+ }
4149
+ var _ = t("./util"),
4150
+ d = t("./errors").TypeError,
4151
+ v = t("./util").inherits,
4152
+ y = _.errorObj,
4153
+ m = _.tryCatch,
4154
+ g = {};
4155
+ (u.prototype.data = function () {
4156
+ return this._data;
4157
+ }),
4158
+ (u.prototype.promise = function () {
4159
+ return this._promise;
4160
+ }),
4161
+ (u.prototype.resource = function () {
4162
+ return this.promise().isFulfilled()
4163
+ ? this.promise().value()
4164
+ : g;
4165
+ }),
4166
+ (u.prototype.tryDispose = function (t) {
4167
+ var e = this.resource(),
4168
+ n = this._context;
4169
+ void 0 !== n && n._pushContext();
4170
+ var r = e !== g ? this.doDispose(e, t) : null;
4171
+ return (
4172
+ void 0 !== n && n._popContext(),
4173
+ this._promise._unsetDisposable(),
4174
+ (this._data = null),
4175
+ r
4176
+ );
4177
+ }),
4178
+ (u.isDisposer = function (t) {
4179
+ return (
4180
+ null != t &&
4181
+ "function" == typeof t.resource &&
4182
+ "function" == typeof t.tryDispose
4183
+ );
4184
+ }),
4185
+ v(p, u),
4186
+ (p.prototype.doDispose = function (t, e) {
4187
+ var n = this.data();
4188
+ return n.call(t, t, e);
4189
+ }),
4190
+ (f.prototype._resultCancelled = function () {
4191
+ for (var t = this.length, n = 0; t > n; ++n) {
4192
+ var r = this[n];
4193
+ r instanceof e && r.cancel();
4194
+ }
4195
+ }),
4196
+ (e.using = function () {
4197
+ var t = arguments.length;
4198
+ if (2 > t)
4199
+ return n(
4200
+ "you must pass at least 2 arguments to Promise.using"
4201
+ );
4202
+
4203
+ var i = arguments[t - 1];
4204
+ if ("function" != typeof i)
4205
+ return n("expecting a function but got " + _.classString(i));
4206
+ var o,
4207
+ a = !0;
4208
+ 2 === t && Array.isArray(arguments[0])
4209
+ ? ((o = arguments[0]), (t = o.length), (a = !1))
4210
+ : ((o = arguments), t--);
4211
+ for (var c = new f(t), p = 0; t > p; ++p) {
4212
+ var d = o[p];
4213
+ if (u.isDisposer(d)) {
4214
+ var v = d;
4215
+ (d = d.promise()), d._setDisposable(v);
4216
+ } else {
4217
+ var g = r(d);
4218
+ g instanceof e &&
4219
+ (d = g._then(
4220
+ h,
4221
+ null,
4222
+ null,
4223
+ { resources: c, index: p },
4224
+ void 0
4225
+ ));
4226
+ }
4227
+ c[p] = d;
4228
+ }
4229
+ for (var b = new Array(c.length), p = 0; p < b.length; ++p)
4230
+ b[p] = e.resolve(c[p]).reflect();
4231
+ var w = e.all(b).then(function (t) {
4232
+ for (var e = 0; e < t.length; ++e) {
4233
+ var n = t[e];
4234
+ if (n.isRejected()) return (y.e = n.error()), y;
4235
+ if (!n.isFulfilled()) return void w.cancel();
4236
+ t[e] = n.value();
4237
+ }
4238
+ C._pushContext(), (i = m(i));
4239
+ var r = a ? i.apply(void 0, t) : i(t),
4240
+ o = C._popContext();
4241
+ return s.checkForgottenReturns(r, o, "Promise.using", C), r;
4242
+ }),
4243
+ C = w.lastly(function () {
4244
+ var t = new e.PromiseInspection(w);
4245
+ return l(c, t);
4246
+ });
4247
+ return (c.promise = C), C._setOnCancel(c), C;
4248
+ }),
4249
+ (e.prototype._setDisposable = function (t) {
4250
+ (this._bitField = 131072 | this._bitField),
4251
+ (this._disposer = t);
4252
+ }),
4253
+ (e.prototype._isDisposable = function () {
4254
+ return (131072 & this._bitField) > 0;
4255
+ }),
4256
+ (e.prototype._getDisposer = function () {
4257
+ return this._disposer;
4258
+ }),
4259
+ (e.prototype._unsetDisposable = function () {
4260
+ (this._bitField = -131073 & this._bitField),
4261
+ (this._disposer = void 0);
4262
+ }),
4263
+ (e.prototype.disposer = function (t) {
4264
+ if ("function" == typeof t) return new p(t, this, i());
4265
+ throw new d();
4266
+ });
4267
+ };
4268
+ },
4269
+ { "./errors": 12, "./util": 36 }
4270
+ ],
4271
+
4272
+ 36: [
4273
+ function (t, e, n) {
4274
+ "use strict";
4275
+ function r() {
4276
+ try {
4277
+ var t = P;
4278
+ return (P = null), t.apply(this, arguments);
4279
+ } catch (e) {
4280
+ return (x.e = e), x;
4281
+ }
4282
+ }
4283
+ function i(t) {
4284
+ return (P = t), r;
4285
+ }
4286
+ function o(t) {
4287
+ return (
4288
+ null == t ||
4289
+ t === !0 ||
4290
+ t === !1 ||
4291
+ "string" == typeof t ||
4292
+ "number" == typeof t
4293
+ );
4294
+ }
4295
+ function s(t) {
4296
+ return (
4297
+ "function" == typeof t || ("object" == typeof t && null !== t)
4298
+ );
4299
+ }
4300
+ function a(t) {
4301
+ return o(t) ? new Error(v(t)) : t;
4302
+ }
4303
+ function c(t, e) {
4304
+ var n,
4305
+ r = t.length,
4306
+ i = new Array(r + 1);
4307
+ for (n = 0; r > n; ++n) i[n] = t[n];
4308
+ return (i[n] = e), i;
4309
+ }
4310
+ function l(t, e, n) {
4311
+ if (!F.isES5) return {}.hasOwnProperty.call(t, e) ? t[e] : void 0;
4312
+ var r = Object.getOwnPropertyDescriptor(t, e);
4313
+ return null != r
4314
+ ? null == r.get && null == r.set
4315
+ ? r.value
4316
+ : n
4317
+ : void 0;
4318
+ }
4319
+ function u(t, e, n) {
4320
+ if (o(t)) return t;
4321
+ var r = {
4322
+ value: n,
4323
+ configurable: !0,
4324
+ enumerable: !1,
4325
+ writable: !0
4326
+ };
4327
+
4328
+ return F.defineProperty(t, e, r), t;
4329
+ }
4330
+ function p(t) {
4331
+ throw t;
4332
+ }
4333
+ function h(t) {
4334
+ try {
4335
+ if ("function" == typeof t) {
4336
+ var e = F.names(t.prototype),
4337
+ n = F.isES5 && e.length > 1,
4338
+ r =
4339
+ e.length > 0 && !(1 === e.length && "constructor" === e[0]),
4340
+ i = A.test(t + "") && F.names(t).length > 0;
4341
+ if (n || r || i) return !0;
4342
+ }
4343
+ return !1;
4344
+ } catch (o) {
4345
+ return !1;
4346
+ }
4347
+ }
4348
+ function f(t) {
4349
+ function e() {}
4350
+ function n() {
4351
+ return typeof r.foo;
4352
+ }
4353
+ e.prototype = t;
4354
+ var r = new e();
4355
+ return n(), n(), t;
4356
+ }
4357
+ function _(t) {
4358
+ return D.test(t);
4359
+ }
4360
+ function d(t, e, n) {
4361
+ for (var r = new Array(t), i = 0; t > i; ++i) r[i] = e + i + n;
4362
+ return r;
4363
+ }
4364
+ function v(t) {
4365
+ try {
4366
+ return t + "";
4367
+ } catch (e) {
4368
+ return "[no string representation]";
4369
+ }
4370
+ }
4371
+ function y(t) {
4372
+ return (
4373
+ t instanceof Error ||
4374
+ (null !== t &&
4375
+ "object" == typeof t &&
4376
+ "string" == typeof t.message &&
4377
+ "string" == typeof t.name)
4378
+ );
4379
+ }
4380
+ function m(t) {
4381
+ try {
4382
+ u(t, "isOperational", !0);
4383
+ } catch (e) {}
4384
+ }
4385
+ function g(t) {
4386
+ return null == t
4387
+ ? !1
4388
+ : t instanceof Error.__BluebirdErrorTypes__.OperationalError ||
4389
+ t.isOperational === !0;
4390
+ }
4391
+ function b(t) {
4392
+ return y(t) && F.propertyIsWritable(t, "stack");
4393
+ }
4394
+ function w(t) {
4395
+ return {}.toString.call(t);
4396
+ }
4397
+ function C(t, e, n) {
4398
+ for (var r = F.names(t), i = 0; i < r.length; ++i) {
4399
+ var o = r[i];
4400
+ if (n(o))
4401
+ try {
4402
+ F.defineProperty(e, o, F.getDescriptor(t, o));
4403
+ } catch (s) {}
4404
+ }
4405
+ }
4406
+ function j(t) {
4407
+ return H ? process.env[t] : void 0;
4408
+ }
4409
+ function E() {
4410
+ if ("function" == typeof Promise)
4411
+ try {
4412
+ var t = new Promise(function () {});
4413
+ if ("[object Promise]" === {}.toString.call(t)) return Promise;
4414
+ } catch (e) {}
4415
+ }
4416
+ function k(t, e) {
4417
+ return t.bind(e);
4418
+ }
4419
+ var F = t("./es5"),
4420
+ T = "undefined" == typeof navigator,
4421
+ x = { e: {} },
4422
+ P,
4423
+ S =
4424
+ "undefined" != typeof self
4425
+ ? self
4426
+ : "undefined" != typeof window
4427
+ ? window
4428
+ : "undefined" != typeof global
4429
+ ? global
4430
+ : void 0 !== this
4431
+ ? this
4432
+ : null,
4433
+ R = function (t, e) {
4434
+ function n() {
4435
+ (this.constructor = t), (this.constructor$ = e);
4436
+ for (var n in e.prototype)
4437
+ r.call(e.prototype, n) &&
4438
+ "$" !== n.charAt(n.length - 1) &&
4439
+ (this[n + "$"] = e.prototype[n]);
4440
+ }
4441
+ var r = {}.hasOwnProperty;
4442
+ return (
4443
+ (n.prototype = e.prototype),
4444
+ (t.prototype = new n()),
4445
+ t.prototype
4446
+ );
4447
+ },
4448
+ O = (function () {
4449
+ var t = [Array.prototype, Object.prototype, Function.prototype],
4450
+ e = function (e) {
4451
+ for (var n = 0; n < t.length; ++n) if (t[n] === e) return !0;
4452
+ return !1;
4453
+ };
4454
+ if (F.isES5) {
4455
+ var n = Object.getOwnPropertyNames;
4456
+ return function (t) {
4457
+ for (
4458
+ var r = [], i = Object.create(null);
4459
+ null != t && !e(t);
4460
+
4461
+ ) {
4462
+ var o;
4463
+ try {
4464
+ o = n(t);
4465
+ } catch (s) {
4466
+ return r;
4467
+ }
4468
+ for (var a = 0; a < o.length; ++a) {
4469
+ var c = o[a];
4470
+ if (!i[c]) {
4471
+ i[c] = !0;
4472
+ var l = Object.getOwnPropertyDescriptor(t, c);
4473
+ null != l &&
4474
+ null == l.get &&
4475
+ null == l.set &&
4476
+ r.push(c);
4477
+ }
4478
+ }
4479
+ t = F.getPrototypeOf(t);
4480
+ }
4481
+ return r;
4482
+ };
4483
+ }
4484
+ var r = {}.hasOwnProperty;
4485
+ return function (n) {
4486
+ if (e(n)) return [];
4487
+ var i = [];
4488
+ t: for (var o in n)
4489
+ if (r.call(n, o)) i.push(o);
4490
+ else {
4491
+ for (var s = 0; s < t.length; ++s)
4492
+ if (r.call(t[s], o)) continue t;
4493
+ i.push(o);
4494
+ }
4495
+ return i;
4496
+ };
4497
+ })(),
4498
+ A = /this\s*\.\s*\S+\s*=/,
4499
+ D = /^[a-z$_][a-z$_0-9]*$/i,
4500
+ V = (function () {
4501
+ return "stack" in new Error()
4502
+ ? function (t) {
4503
+ return b(t) ? t : new Error(v(t));
4504
+ }
4505
+ : function (t) {
4506
+ if (b(t)) return t;
4507
+ try {
4508
+ throw new Error(v(t));
4509
+ } catch (e) {
4510
+ return e;
4511
+ }
4512
+ };
4513
+ })(),
4514
+ I = function (t) {
4515
+ return F.isArray(t) ? t : null;
4516
+ };
4517
+ if ("undefined" != typeof Symbol && Symbol.iterator) {
4518
+ var L =
4519
+ "function" == typeof Array.from
4520
+ ? function (t) {
4521
+ return Array.from(t);
4522
+ }
4523
+ : function (t) {
4524
+ for (
4525
+ var e, n = [], r = t[Symbol.iterator]();
4526
+ !(e = r.next()).done;
4527
+
4528
+ )
4529
+ n.push(e.value);
4530
+ return n;
4531
+ };
4532
+ I = function (t) {
4533
+ return F.isArray(t)
4534
+ ? t
4535
+ : null != t && "function" == typeof t[Symbol.iterator]
4536
+ ? L(t)
4537
+ : null;
4538
+ };
4539
+ }
4540
+ var N =
4541
+ "undefined" != typeof process &&
4542
+ "[object process]" === w(process).toLowerCase(),
4543
+ H =
4544
+ "undefined" != typeof process &&
4545
+ "undefined" != typeof process.env,
4546
+ B = {
4547
+ isClass: h,
4548
+ isIdentifier: _,
4549
+ inheritedDataKeys: O,
4550
+ getDataPropertyOrDefault: l,
4551
+ thrower: p,
4552
+ isArray: F.isArray,
4553
+ asArray: I,
4554
+ notEnumerableProp: u,
4555
+ isPrimitive: o,
4556
+ isObject: s,
4557
+ isError: y,
4558
+ canEvaluate: T,
4559
+ errorObj: x,
4560
+ tryCatch: i,
4561
+ inherits: R,
4562
+ withAppended: c,
4563
+ maybeWrapAsError: a,
4564
+ toFastProperties: f,
4565
+ filledRange: d,
4566
+ toString: v,
4567
+ canAttachTrace: b,
4568
+ ensureErrorObject: V,
4569
+ originatesFromRejection: g,
4570
+ markAsOriginatingFromRejection: m,
4571
+ classString: w,
4572
+ copyDescriptors: C,
4573
+ hasDevTools:
4574
+ "undefined" != typeof chrome &&
4575
+ chrome &&
4576
+ "function" == typeof chrome.loadTimes,
4577
+ isNode: N,
4578
+ hasEnvVariables: H,
4579
+ env: j,
4580
+ global: S,
4581
+ getNativePromise: E,
4582
+ domainBind: k
4583
+ };
4584
+
4585
+ (B.isRecentNode =
4586
+ B.isNode &&
4587
+ (function () {
4588
+ var t;
4589
+ return (
4590
+ process.versions && process.versions.node
4591
+ ? (t = process.versions.node.split(".").map(Number))
4592
+ : process.version &&
4593
+ (t = process.version.split(".").map(Number)),
4594
+ (0 === t[0] && t[1] > 10) || t[0] > 0
4595
+ );
4596
+ })()),
4597
+ B.isNode && B.toFastProperties(process);
4598
+ try {
4599
+ throw new Error();
4600
+ } catch (U) {
4601
+ B.lastLineError = U;
4602
+ }
4603
+ e.exports = B;
4604
+ },
4605
+ { "./es5": 13 }
4606
+ ]
4607
+ },
4608
+
4609
+ {},
4610
+ [4]
4611
+ )(4);
4612
+ }),
4613
+ "undefined" != typeof window && null !== window
4614
+ ? (window.P = window.Promise)
4615
+ : "undefined" != typeof self && null !== self && (self.P = self.Promise);