@swf2es/player-hosts 0.0.0-stage → 0.1.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 (405) hide show
  1. package/LICENSE +202 -0
  2. package/LICENSE.third-party +759 -0
  3. package/README.md +43 -2
  4. package/dist/indexeddb.d.ts +27 -0
  5. package/dist/indexeddb.d.ts.map +1 -0
  6. package/dist/indexeddb.js +170 -0
  7. package/dist/indexeddb.js.map +1 -0
  8. package/dist/node-worker.d.ts +2 -0
  9. package/dist/node-worker.d.ts.map +1 -0
  10. package/dist/node-worker.js +12 -0
  11. package/dist/node-worker.js.map +1 -0
  12. package/dist/node.d.ts +8 -0
  13. package/dist/node.d.ts.map +1 -0
  14. package/dist/node.js +43 -0
  15. package/dist/node.js.map +1 -0
  16. package/dist/precompiled.d.ts +31 -0
  17. package/dist/precompiled.d.ts.map +1 -0
  18. package/dist/precompiled.js +125 -0
  19. package/dist/precompiled.js.map +1 -0
  20. package/dist/stage3d.d.ts +13 -0
  21. package/dist/stage3d.d.ts.map +1 -0
  22. package/dist/stage3d.js +61 -0
  23. package/dist/stage3d.js.map +1 -0
  24. package/dist/thread/codegen/codegen.js +308 -0
  25. package/dist/thread/codegen/index.js +405 -0
  26. package/dist/thread/format/abc-names.js +126 -0
  27. package/dist/thread/format/actions.js +222 -0
  28. package/dist/thread/format/air-descriptor.js +63 -0
  29. package/dist/thread/format/api-versions.js +22 -0
  30. package/dist/thread/format/bitmap.js +199 -0
  31. package/dist/thread/format/button.js +60 -0
  32. package/dist/thread/format/compression.js +200 -0
  33. package/dist/thread/format/display.js +305 -0
  34. package/dist/thread/format/filters.js +136 -0
  35. package/dist/thread/format/font.js +168 -0
  36. package/dist/thread/format/index.js +26 -0
  37. package/dist/thread/format/pbj.js +484 -0
  38. package/dist/thread/format/shape.js +411 -0
  39. package/dist/thread/format/sound.js +91 -0
  40. package/dist/thread/format/swf.js +163 -0
  41. package/dist/thread/format/tags.js +58 -0
  42. package/dist/thread/format/text.js +135 -0
  43. package/dist/thread/format/zip.js +91 -0
  44. package/dist/thread/native/audio/binary.js +3 -0
  45. package/dist/thread/native/audio/index.js +72 -0
  46. package/dist/thread/native/base64.js +9 -0
  47. package/dist/thread/native/compress/binary.js +3 -0
  48. package/dist/thread/native/compress/index.js +145 -0
  49. package/dist/thread/native/instance.js +49 -0
  50. package/dist/thread/native/mp3/binary.js +3 -0
  51. package/dist/thread/native/mp3/index.js +48 -0
  52. package/dist/thread/native/render/binary.js +3 -0
  53. package/dist/thread/native/render/bitmap-kernel.js +591 -0
  54. package/dist/thread/native/render/draw-kernel.js +204 -0
  55. package/dist/thread/native/render/dxt-encoder.js +94 -0
  56. package/dist/thread/native/render/index.js +10 -0
  57. package/dist/thread/native/render/lines.js +122 -0
  58. package/dist/thread/native/render/module.js +26 -0
  59. package/dist/thread/native/render/pixel-ops.js +235 -0
  60. package/dist/thread/native/render/tessellator.js +250 -0
  61. package/dist/thread/player/avm1/amf.js +507 -0
  62. package/dist/thread/player/avm1/avm1.js +1304 -0
  63. package/dist/thread/player/avm1/bindings.js +214 -0
  64. package/dist/thread/player/avm1/classes.js +75 -0
  65. package/dist/thread/player/avm1/clips.js +229 -0
  66. package/dist/thread/player/avm1/compile.js +140 -0
  67. package/dist/thread/player/avm1/external.js +79 -0
  68. package/dist/thread/player/avm1/focus.js +278 -0
  69. package/dist/thread/player/avm1/globals/BitmapData.js +542 -0
  70. package/dist/thread/player/avm1/globals/Button.js +31 -0
  71. package/dist/thread/player/avm1/globals/Color.js +115 -0
  72. package/dist/thread/player/avm1/globals/ExternalInterface.js +310 -0
  73. package/dist/thread/player/avm1/globals/FileReference.js +217 -0
  74. package/dist/thread/player/avm1/globals/Key.js +60 -0
  75. package/dist/thread/player/avm1/globals/LoadVars.js +208 -0
  76. package/dist/thread/player/avm1/globals/LocalConnection.js +92 -0
  77. package/dist/thread/player/avm1/globals/MovieClip.js +1070 -0
  78. package/dist/thread/player/avm1/globals/MovieClipLoader.js +90 -0
  79. package/dist/thread/player/avm1/globals/NetConnection.js +261 -0
  80. package/dist/thread/player/avm1/globals/PrintJob.js +37 -0
  81. package/dist/thread/player/avm1/globals/Selection.js +62 -0
  82. package/dist/thread/player/avm1/globals/SharedObject.js +245 -0
  83. package/dist/thread/player/avm1/globals/Sound.js +238 -0
  84. package/dist/thread/player/avm1/globals/Stage.js +12 -0
  85. package/dist/thread/player/avm1/globals/StyleSheet.js +205 -0
  86. package/dist/thread/player/avm1/globals/TextField.js +396 -0
  87. package/dist/thread/player/avm1/globals/TextFormat.js +194 -0
  88. package/dist/thread/player/avm1/globals/TextSnapshot.js +88 -0
  89. package/dist/thread/player/avm1/globals/XML.js +396 -0
  90. package/dist/thread/player/avm1/globals/XMLNode.js +413 -0
  91. package/dist/thread/player/avm1/globals/XMLSocket.js +205 -0
  92. package/dist/thread/player/avm1/globals/drawing.js +202 -0
  93. package/dist/thread/player/avm1/globals/filters.js +635 -0
  94. package/dist/thread/player/avm1/globals/geom.js +600 -0
  95. package/dist/thread/player/avm1/input.js +483 -0
  96. package/dist/thread/player/avm1/keyboard.js +113 -0
  97. package/dist/thread/player/avm1/loads.js +352 -0
  98. package/dist/thread/player/avm1/net.js +219 -0
  99. package/dist/thread/player/avm1/paths.js +104 -0
  100. package/dist/thread/player/avm1/pointer.js +512 -0
  101. package/dist/thread/player/avm1/queue.js +303 -0
  102. package/dist/thread/player/avm1/sound.js +106 -0
  103. package/dist/thread/player/avm1/swf.js +141 -0
  104. package/dist/thread/player/avm1/timers.js +113 -0
  105. package/dist/thread/player/bitmap/bitmap.js +627 -0
  106. package/dist/thread/player/bitmap/draw.js +68 -0
  107. package/dist/thread/player/bitmap/dxt.js +11 -0
  108. package/dist/thread/player/bitmap/filters.js +656 -0
  109. package/dist/thread/player/bitmap/images.js +240 -0
  110. package/dist/thread/player/bitmap/kernel.js +65 -0
  111. package/dist/thread/player/bitmap/ops.js +1239 -0
  112. package/dist/thread/player/bitmap/pixel-bender.js +911 -0
  113. package/dist/thread/player/bitmap/png.js +139 -0
  114. package/dist/thread/player/bitmap/turbulence.js +89 -0
  115. package/dist/thread/player/clock.js +182 -0
  116. package/dist/thread/player/display/bitmapobject.js +25 -0
  117. package/dist/thread/player/display/bounds.js +520 -0
  118. package/dist/thread/player/display/buttonobject.js +305 -0
  119. package/dist/thread/player/display/color.js +40 -0
  120. package/dist/thread/player/display/container.js +150 -0
  121. package/dist/thread/player/display/display.js +14 -0
  122. package/dist/thread/player/display/displayobject.js +664 -0
  123. package/dist/thread/player/display/drawing.js +613 -0
  124. package/dist/thread/player/display/filters.js +285 -0
  125. package/dist/thread/player/display/geometry.js +189 -0
  126. package/dist/thread/player/display/gradients.js +117 -0
  127. package/dist/thread/player/display/graphicsdata.js +592 -0
  128. package/dist/thread/player/display/instantiate.js +71 -0
  129. package/dist/thread/player/display/matrix3d.js +373 -0
  130. package/dist/thread/player/display/morph.js +226 -0
  131. package/dist/thread/player/display/movieclip.js +680 -0
  132. package/dist/thread/player/display/perspective.js +193 -0
  133. package/dist/thread/player/display/scale9.js +236 -0
  134. package/dist/thread/player/display/shapeobject.js +131 -0
  135. package/dist/thread/player/display/shapes.js +407 -0
  136. package/dist/thread/player/display/textobjects.js +222 -0
  137. package/dist/thread/player/display/timeline.js +471 -0
  138. package/dist/thread/player/display/value-lists.js +40 -0
  139. package/dist/thread/player/display/videoobject.js +6 -0
  140. package/dist/thread/player/display/walk.js +127 -0
  141. package/dist/thread/player/files.js +334 -0
  142. package/dist/thread/player/hosts.js +207 -0
  143. package/dist/thread/player/input/avm1.js +82 -0
  144. package/dist/thread/player/input/context-menu.js +63 -0
  145. package/dist/thread/player/input/keyboard.js +458 -0
  146. package/dist/thread/player/input/pointer.js +863 -0
  147. package/dist/thread/player/input/text-editor.js +319 -0
  148. package/dist/thread/player/input/touch.js +209 -0
  149. package/dist/thread/player/localconnection.js +90 -0
  150. package/dist/thread/player/media/audio.js +376 -0
  151. package/dist/thread/player/media/dynamic-sound.js +90 -0
  152. package/dist/thread/player/media/extract.js +135 -0
  153. package/dist/thread/player/media/mp3.js +152 -0
  154. package/dist/thread/player/media/sounds.js +507 -0
  155. package/dist/thread/player/media/streaming-audio.js +133 -0
  156. package/dist/thread/player/player.js +616 -0
  157. package/dist/thread/player/playerglobal/air/net/WebSocket.js +250 -0
  158. package/dist/thread/player/playerglobal/air-library.js +8 -0
  159. package/dist/thread/player/playerglobal/flash/accessibility/Accessibility.js +21 -0
  160. package/dist/thread/player/playerglobal/flash/crypto/generateRandomBytes.js +32 -0
  161. package/dist/thread/player/playerglobal/flash/data/EncryptedLocalStore.js +61 -0
  162. package/dist/thread/player/playerglobal/flash/desktop/Clipboard.js +173 -0
  163. package/dist/thread/player/playerglobal/flash/desktop/NativeApplication.js +179 -0
  164. package/dist/thread/player/playerglobal/flash/display/AVM1Movie.js +19 -0
  165. package/dist/thread/player/playerglobal/flash/display/Bitmap.js +58 -0
  166. package/dist/thread/player/playerglobal/flash/display/BitmapData.js +633 -0
  167. package/dist/thread/player/playerglobal/flash/display/DisplayObject.js +614 -0
  168. package/dist/thread/player/playerglobal/flash/display/DisplayObjectContainer.js +224 -0
  169. package/dist/thread/player/playerglobal/flash/display/Graphics.js +345 -0
  170. package/dist/thread/player/playerglobal/flash/display/InteractiveObject.js +87 -0
  171. package/dist/thread/player/playerglobal/flash/display/Loader.js +79 -0
  172. package/dist/thread/player/playerglobal/flash/display/LoaderInfo.js +128 -0
  173. package/dist/thread/player/playerglobal/flash/display/MovieClip.js +194 -0
  174. package/dist/thread/player/playerglobal/flash/display/NativeWindow.js +245 -0
  175. package/dist/thread/player/playerglobal/flash/display/Shader.js +26 -0
  176. package/dist/thread/player/playerglobal/flash/display/ShaderData.js +85 -0
  177. package/dist/thread/player/playerglobal/flash/display/ShaderInput.js +64 -0
  178. package/dist/thread/player/playerglobal/flash/display/ShaderJob.js +181 -0
  179. package/dist/thread/player/playerglobal/flash/display/ShaderParameter.js +23 -0
  180. package/dist/thread/player/playerglobal/flash/display/Shape.js +13 -0
  181. package/dist/thread/player/playerglobal/flash/display/SimpleButton.js +103 -0
  182. package/dist/thread/player/playerglobal/flash/display/Sprite.js +84 -0
  183. package/dist/thread/player/playerglobal/flash/display/Stage.js +231 -0
  184. package/dist/thread/player/playerglobal/flash/display/Stage3D.js +54 -0
  185. package/dist/thread/player/playerglobal/flash/display/shaders.js +228 -0
  186. package/dist/thread/player/playerglobal/flash/events/Event.js +58 -0
  187. package/dist/thread/player/playerglobal/flash/events/EventDispatcher.js +103 -0
  188. package/dist/thread/player/playerglobal/flash/events/GestureEvent.js +34 -0
  189. package/dist/thread/player/playerglobal/flash/events/HTTPStatusEvent.js +8 -0
  190. package/dist/thread/player/playerglobal/flash/events/KeyboardEvent.js +51 -0
  191. package/dist/thread/player/playerglobal/flash/events/MouseEvent.js +59 -0
  192. package/dist/thread/player/playerglobal/flash/events/PressAndTapGestureEvent.js +30 -0
  193. package/dist/thread/player/playerglobal/flash/events/TimerEvent.js +16 -0
  194. package/dist/thread/player/playerglobal/flash/events/TouchEvent.js +45 -0
  195. package/dist/thread/player/playerglobal/flash/external/ExternalInterface.js +73 -0
  196. package/dist/thread/player/playerglobal/flash/filesystem/File.js +340 -0
  197. package/dist/thread/player/playerglobal/flash/filesystem/FileStream.js +453 -0
  198. package/dist/thread/player/playerglobal/flash/filesystem/paths.js +156 -0
  199. package/dist/thread/player/playerglobal/flash/filesystem/writes.js +143 -0
  200. package/dist/thread/player/playerglobal/flash/filters/BevelFilter.js +4 -0
  201. package/dist/thread/player/playerglobal/flash/filters/BitmapFilter.js +205 -0
  202. package/dist/thread/player/playerglobal/flash/filters/BlurFilter.js +4 -0
  203. package/dist/thread/player/playerglobal/flash/filters/ColorMatrixFilter.js +11 -0
  204. package/dist/thread/player/playerglobal/flash/filters/ConvolutionFilter.js +26 -0
  205. package/dist/thread/player/playerglobal/flash/filters/DisplacementMapFilter.js +51 -0
  206. package/dist/thread/player/playerglobal/flash/filters/DropShadowFilter.js +4 -0
  207. package/dist/thread/player/playerglobal/flash/filters/GlowFilter.js +4 -0
  208. package/dist/thread/player/playerglobal/flash/filters/GradientBevelFilter.js +4 -0
  209. package/dist/thread/player/playerglobal/flash/filters/GradientGlowFilter.js +4 -0
  210. package/dist/thread/player/playerglobal/flash/filters/ShaderFilter.js +53 -0
  211. package/dist/thread/player/playerglobal/flash/geom/Matrix3D.js +361 -0
  212. package/dist/thread/player/playerglobal/flash/geom/PerspectiveProjection.js +122 -0
  213. package/dist/thread/player/playerglobal/flash/geom/Transform.js +245 -0
  214. package/dist/thread/player/playerglobal/flash/geom/Utils3D.js +85 -0
  215. package/dist/thread/player/playerglobal/flash/globalization/Collator.js +149 -0
  216. package/dist/thread/player/playerglobal/flash/globalization/CurrencyFormatter.js +272 -0
  217. package/dist/thread/player/playerglobal/flash/globalization/CurrencyParseResult.js +21 -0
  218. package/dist/thread/player/playerglobal/flash/globalization/DateTimeFormatter.js +463 -0
  219. package/dist/thread/player/playerglobal/flash/globalization/LocaleID.js +144 -0
  220. package/dist/thread/player/playerglobal/flash/globalization/NumberFormatter.js +444 -0
  221. package/dist/thread/player/playerglobal/flash/globalization/NumberParseResult.js +22 -0
  222. package/dist/thread/player/playerglobal/flash/globalization/StringTools.js +59 -0
  223. package/dist/thread/player/playerglobal/flash/globalization/locale.js +190 -0
  224. package/dist/thread/player/playerglobal/flash/media/Camera.js +89 -0
  225. package/dist/thread/player/playerglobal/flash/media/Microphone.js +126 -0
  226. package/dist/thread/player/playerglobal/flash/media/Sound.js +543 -0
  227. package/dist/thread/player/playerglobal/flash/media/SoundMixer.js +74 -0
  228. package/dist/thread/player/playerglobal/flash/media/SoundTransform.js +40 -0
  229. package/dist/thread/player/playerglobal/flash/media/Video.js +43 -0
  230. package/dist/thread/player/playerglobal/flash/net/FileFilter.js +27 -0
  231. package/dist/thread/player/playerglobal/flash/net/FileReference.js +197 -0
  232. package/dist/thread/player/playerglobal/flash/net/LocalConnection.js +167 -0
  233. package/dist/thread/player/playerglobal/flash/net/NetConnection.js +155 -0
  234. package/dist/thread/player/playerglobal/flash/net/SharedObject.js +299 -0
  235. package/dist/thread/player/playerglobal/flash/net/Socket.js +282 -0
  236. package/dist/thread/player/playerglobal/flash/net/URLRequest.js +93 -0
  237. package/dist/thread/player/playerglobal/flash/net/URLStream.js +146 -0
  238. package/dist/thread/player/playerglobal/flash/net/XMLSocket.js +14 -0
  239. package/dist/thread/player/playerglobal/flash/net/local-modern.js +142 -0
  240. package/dist/thread/player/playerglobal/flash/net/local-values.js +217 -0
  241. package/dist/thread/player/playerglobal/flash/net/navigateToURL.js +29 -0
  242. package/dist/thread/player/playerglobal/flash/profiler/Telemetry.js +25 -0
  243. package/dist/thread/player/playerglobal/flash/sensors/Accelerometer.js +12 -0
  244. package/dist/thread/player/playerglobal/flash/system/ApplicationDomain.js +69 -0
  245. package/dist/thread/player/playerglobal/flash/system/Capabilities.js +163 -0
  246. package/dist/thread/player/playerglobal/flash/system/FSCommandHost.js +17 -0
  247. package/dist/thread/player/playerglobal/flash/system/Security.js +46 -0
  248. package/dist/thread/player/playerglobal/flash/system/SecurityDomain.js +21 -0
  249. package/dist/thread/player/playerglobal/flash/system/System.js +73 -0
  250. package/dist/thread/player/playerglobal/flash/system/Worker.js +112 -0
  251. package/dist/thread/player/playerglobal/flash/text/Font.js +95 -0
  252. package/dist/thread/player/playerglobal/flash/text/StaticText.js +16 -0
  253. package/dist/thread/player/playerglobal/flash/text/StyleSheet.js +65 -0
  254. package/dist/thread/player/playerglobal/flash/text/TextField.js +707 -0
  255. package/dist/thread/player/playerglobal/flash/text/TextRenderer.js +77 -0
  256. package/dist/thread/player/playerglobal/flash/text/engine/FontDescription.js +141 -0
  257. package/dist/thread/player/playerglobal/flash/text/engine/TabStop.js +46 -0
  258. package/dist/thread/player/playerglobal/flash/trace/Trace.js +17 -0
  259. package/dist/thread/player/playerglobal/flash/ui/ContextMenu.js +17 -0
  260. package/dist/thread/player/playerglobal/flash/ui/GameInput.js +19 -0
  261. package/dist/thread/player/playerglobal/flash/ui/Keyboard.js +27 -0
  262. package/dist/thread/player/playerglobal/flash/ui/Mouse.js +127 -0
  263. package/dist/thread/player/playerglobal/flash/ui/Multitouch.js +46 -0
  264. package/dist/thread/player/playerglobal/flash/utils/ByteArray.js +155 -0
  265. package/dist/thread/player/playerglobal/flash/utils/Timer.js +25 -0
  266. package/dist/thread/player/playerglobal/flash/xml/XMLDocument.js +74 -0
  267. package/dist/thread/player/playerglobal/index.js +224 -0
  268. package/dist/thread/player/playerglobal/libraries.js +10 -0
  269. package/dist/thread/player/playerglobal/playerglobal-library.js +22 -0
  270. package/dist/thread/player/playerglobal/toplevel.js +122 -0
  271. package/dist/thread/player/scripting/clipboard.js +146 -0
  272. package/dist/thread/player/scripting/code.js +900 -0
  273. package/dist/thread/player/scripting/evaluate.js +144 -0
  274. package/dist/thread/player/scripting/events.js +172 -0
  275. package/dist/thread/player/scripting/handover.js +182 -0
  276. package/dist/thread/player/scripting/lazy.js +38 -0
  277. package/dist/thread/player/scripting/lifecycle.js +272 -0
  278. package/dist/thread/player/scripting/loads.js +860 -0
  279. package/dist/thread/player/scripting/sha256.js +95 -0
  280. package/dist/thread/player/scripting/symbols.js +348 -0
  281. package/dist/thread/player/scripting/timers.js +434 -0
  282. package/dist/thread/player/scripting/workers.js +923 -0
  283. package/dist/thread/player/scripting.js +1018 -0
  284. package/dist/thread/player/stage.js +4 -0
  285. package/dist/thread/player/text/csm.js +113 -0
  286. package/dist/thread/player/text/css.js +167 -0
  287. package/dist/thread/player/text/fonts.js +97 -0
  288. package/dist/thread/player/text/layout.js +393 -0
  289. package/dist/thread/player/text/static.js +109 -0
  290. package/dist/thread/player/text/text.js +431 -0
  291. package/dist/thread/player/workers/thread.js +159 -0
  292. package/dist/thread/player/workers/wire.js +198 -0
  293. package/dist/thread/player-hosts/web-worker.js +19 -0
  294. package/dist/thread/runtime/avm1/activation.js +89 -0
  295. package/dist/thread/runtime/avm1/case.js +249 -0
  296. package/dist/thread/runtime/avm1/clips.js +334 -0
  297. package/dist/thread/runtime/avm1/control.js +280 -0
  298. package/dist/thread/runtime/avm1/errors.js +50 -0
  299. package/dist/thread/runtime/avm1/functions.js +249 -0
  300. package/dist/thread/runtime/avm1/globals/array.js +549 -0
  301. package/dist/thread/runtime/avm1/globals/broadcaster.js +131 -0
  302. package/dist/thread/runtime/avm1/globals/date.js +436 -0
  303. package/dist/thread/runtime/avm1/globals/global.js +344 -0
  304. package/dist/thread/runtime/avm1/globals/math.js +139 -0
  305. package/dist/thread/runtime/avm1/globals/number.js +93 -0
  306. package/dist/thread/runtime/avm1/globals/string.js +201 -0
  307. package/dist/thread/runtime/avm1/globals/timers.js +129 -0
  308. package/dist/thread/runtime/avm1/host.js +5 -0
  309. package/dist/thread/runtime/avm1/index.js +14 -0
  310. package/dist/thread/runtime/avm1/inheritance.js +132 -0
  311. package/dist/thread/runtime/avm1/numbers.js +298 -0
  312. package/dist/thread/runtime/avm1/objects.js +896 -0
  313. package/dist/thread/runtime/avm1/operators.js +170 -0
  314. package/dist/thread/runtime/avm1/realm.js +529 -0
  315. package/dist/thread/runtime/avm1/runtime.js +882 -0
  316. package/dist/thread/runtime/avm1/scope.js +385 -0
  317. package/dist/thread/runtime/avm1/urls.js +180 -0
  318. package/dist/thread/runtime/avm1/values.js +97 -0
  319. package/dist/thread/runtime/avm2/amf-classes.js +66 -0
  320. package/dist/thread/runtime/avm2/amf.js +801 -0
  321. package/dist/thread/runtime/avm2/array-conversion.js +100 -0
  322. package/dist/thread/runtime/avm2/builtin-library.js +21 -0
  323. package/dist/thread/runtime/avm2/cache-fill.js +86 -0
  324. package/dist/thread/runtime/avm2/classes.js +211 -0
  325. package/dist/thread/runtime/avm2/definitions.js +69 -0
  326. package/dist/thread/runtime/avm2/descriptors.js +5 -0
  327. package/dist/thread/runtime/avm2/dictionary-keys.js +295 -0
  328. package/dist/thread/runtime/avm2/domain-memory.js +75 -0
  329. package/dist/thread/runtime/avm2/domain.js +280 -0
  330. package/dist/thread/runtime/avm2/dynamic-properties.js +182 -0
  331. package/dist/thread/runtime/avm2/enumeration.js +393 -0
  332. package/dist/thread/runtime/avm2/errors.js +45 -0
  333. package/dist/thread/runtime/avm2/float-library.js +66 -0
  334. package/dist/thread/runtime/avm2/float.js +26 -0
  335. package/dist/thread/runtime/avm2/hooks.js +19 -0
  336. package/dist/thread/runtime/avm2/index.js +38 -0
  337. package/dist/thread/runtime/avm2/messages.js +177 -0
  338. package/dist/thread/runtime/avm2/method-factories.js +95 -0
  339. package/dist/thread/runtime/avm2/modules.js +105 -0
  340. package/dist/thread/runtime/avm2/names.js +248 -0
  341. package/dist/thread/runtime/avm2/natives/aliases.js +47 -0
  342. package/dist/thread/runtime/avm2/natives/array.js +390 -0
  343. package/dist/thread/runtime/avm2/natives/bytearray.js +1227 -0
  344. package/dist/thread/runtime/avm2/natives/case.js +88 -0
  345. package/dist/thread/runtime/avm2/natives/concurrent.js +199 -0
  346. package/dist/thread/runtime/avm2/natives/date.js +581 -0
  347. package/dist/thread/runtime/avm2/natives/define.js +130 -0
  348. package/dist/thread/runtime/avm2/natives/describe.js +351 -0
  349. package/dist/thread/runtime/avm2/natives/dictionary.js +12 -0
  350. package/dist/thread/runtime/avm2/natives/float-vector.js +81 -0
  351. package/dist/thread/runtime/avm2/natives/float.js +96 -0
  352. package/dist/thread/runtime/avm2/natives/index.js +64 -0
  353. package/dist/thread/runtime/avm2/natives/json.js +514 -0
  354. package/dist/thread/runtime/avm2/natives/number.js +162 -0
  355. package/dist/thread/runtime/avm2/natives/object.js +237 -0
  356. package/dist/thread/runtime/avm2/natives/proxy.js +75 -0
  357. package/dist/thread/runtime/avm2/natives/regexp.js +485 -0
  358. package/dist/thread/runtime/avm2/natives/shell-workers.js +404 -0
  359. package/dist/thread/runtime/avm2/natives/shell.js +557 -0
  360. package/dist/thread/runtime/avm2/natives/sort.js +377 -0
  361. package/dist/thread/runtime/avm2/natives/string.js +132 -0
  362. package/dist/thread/runtime/avm2/natives/sync.js +821 -0
  363. package/dist/thread/runtime/avm2/natives/toplevel.js +139 -0
  364. package/dist/thread/runtime/avm2/natives/vector-elements.js +46 -0
  365. package/dist/thread/runtime/avm2/natives/vector.js +406 -0
  366. package/dist/thread/runtime/avm2/natives/xml/access.js +633 -0
  367. package/dist/thread/runtime/avm2/natives/xml/build.js +291 -0
  368. package/dist/thread/runtime/avm2/natives/xml/chars.js +112 -0
  369. package/dist/thread/runtime/avm2/natives/xml/escape.js +38 -0
  370. package/dist/thread/runtime/avm2/natives/xml/names.js +204 -0
  371. package/dist/thread/runtime/avm2/natives/xml/node.js +272 -0
  372. package/dist/thread/runtime/avm2/natives/xml/operators.js +69 -0
  373. package/dist/thread/runtime/avm2/natives/xml/parser.js +356 -0
  374. package/dist/thread/runtime/avm2/natives/xml/strings.js +191 -0
  375. package/dist/thread/runtime/avm2/natives/xml/values.js +122 -0
  376. package/dist/thread/runtime/avm2/natives/xml/xml.js +645 -0
  377. package/dist/thread/runtime/avm2/number-strings.js +110 -0
  378. package/dist/thread/runtime/avm2/numbers.js +558 -0
  379. package/dist/thread/runtime/avm2/options.js +16 -0
  380. package/dist/thread/runtime/avm2/player-messages.js +550 -0
  381. package/dist/thread/runtime/avm2/property-cache.js +135 -0
  382. package/dist/thread/runtime/avm2/runtime.js +2644 -0
  383. package/dist/thread/runtime/avm2/traits.js +509 -0
  384. package/dist/thread/runtime/index.js +7 -0
  385. package/dist/web-worker.d.ts +2 -0
  386. package/dist/web-worker.d.ts.map +1 -0
  387. package/dist/web-worker.js +20 -0
  388. package/dist/web-worker.js.map +1 -0
  389. package/dist/websocket.d.ts +4 -0
  390. package/dist/websocket.d.ts.map +1 -0
  391. package/dist/websocket.js +27 -0
  392. package/dist/websocket.js.map +1 -0
  393. package/dist/workers.d.ts +35 -0
  394. package/dist/workers.d.ts.map +1 -0
  395. package/dist/workers.js +171 -0
  396. package/dist/workers.js.map +1 -0
  397. package/package.json +62 -3
  398. package/src/indexeddb.ts +227 -0
  399. package/src/node-worker.ts +13 -0
  400. package/src/node.ts +49 -0
  401. package/src/precompiled.ts +166 -0
  402. package/src/stage3d.ts +76 -0
  403. package/src/web-worker.ts +24 -0
  404. package/src/websocket.ts +32 -0
  405. package/src/workers.ts +255 -0
@@ -0,0 +1,759 @@
1
+ Code from elsewhere in @swf2es/player-hosts, and its terms. The package's own
2
+ code is under the Apache License 2.0 (LICENSE).
3
+
4
+
5
+ Ruffle
6
+ ======
7
+
8
+ dist/thread/ holds the modules of @swf2es/codegen, @swf2es/format,
9
+ @swf2es/player and @swf2es/runtime for the Web Workers. Parts of them are
10
+ taken or ported from Ruffle, Copyright (c) 2018-2022 Ruffle LLC and Ruffle
11
+ contributors, as each file's header says, and playerglobal's ABC
12
+ (player/playerglobal/playerglobal-library.js) is compiled from ActionScript
13
+ much of which is Ruffle's.
14
+
15
+ Ruffle, https://github.com/ruffle-rs/ruffle, is under the MIT license or
16
+ the Apache License 2.0 (LICENSE), at your choice. Its MIT terms:
17
+
18
+ The MIT License (MIT)
19
+
20
+ Copyright (c) 2018-2022 Ruffle LLC and Ruffle contributors
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
+ SOFTWARE.
39
+
40
+
41
+ avmplus
42
+ =======
43
+
44
+ dist/thread/runtime/ holds @swf2es/runtime's modules: avmplus'
45
+ builtin.abc (avm2/builtin-library.js), and the files whose headers say they
46
+ are translated from avmplus.
47
+
48
+ These are subject to the Mozilla Public License, v. 2.0, below.
49
+ Their TypeScript is @swf2es/runtime's src/,
50
+ and the repository's packages/runtime/src/.
51
+ Each ABC is compiled from avmplus' ActionScript, whose source form is at
52
+ https://github.com/swf2es/avmplus/tree/858d034a3bd3a54d9b70909386435cf4aec81d21.
53
+
54
+ Mozilla Public License Version 2.0
55
+ ==================================
56
+
57
+ 1. Definitions
58
+ --------------
59
+
60
+ 1.1. "Contributor"
61
+ means each individual or legal entity that creates, contributes to
62
+ the creation of, or owns Covered Software.
63
+
64
+ 1.2. "Contributor Version"
65
+ means the combination of the Contributions of others (if any) used
66
+ by a Contributor and that particular Contributor's Contribution.
67
+
68
+ 1.3. "Contribution"
69
+ means Covered Software of a particular Contributor.
70
+
71
+ 1.4. "Covered Software"
72
+ means Source Code Form to which the initial Contributor has attached
73
+ the notice in Exhibit A, the Executable Form of such Source Code
74
+ Form, and Modifications of such Source Code Form, in each case
75
+ including portions thereof.
76
+
77
+ 1.5. "Incompatible With Secondary Licenses"
78
+ means
79
+
80
+ (a) that the initial Contributor has attached the notice described
81
+ in Exhibit B to the Covered Software; or
82
+
83
+ (b) that the Covered Software was made available under the terms of
84
+ version 1.1 or earlier of the License, but not also under the
85
+ terms of a Secondary License.
86
+
87
+ 1.6. "Executable Form"
88
+ means any form of the work other than Source Code Form.
89
+
90
+ 1.7. "Larger Work"
91
+ means a work that combines Covered Software with other material, in
92
+ a separate file or files, that is not Covered Software.
93
+
94
+ 1.8. "License"
95
+ means this document.
96
+
97
+ 1.9. "Licensable"
98
+ means having the right to grant, to the maximum extent possible,
99
+ whether at the time of the initial grant or subsequently, any and
100
+ all of the rights conveyed by this License.
101
+
102
+ 1.10. "Modifications"
103
+ means any of the following:
104
+
105
+ (a) any file in Source Code Form that results from an addition to,
106
+ deletion from, or modification of the contents of Covered
107
+ Software; or
108
+
109
+ (b) any new file in Source Code Form that contains any Covered
110
+ Software.
111
+
112
+ 1.11. "Patent Claims" of a Contributor
113
+ means any patent claim(s), including without limitation, method,
114
+ process, and apparatus claims, in any patent Licensable by such
115
+ Contributor that would be infringed, but for the grant of the
116
+ License, by the making, using, selling, offering for sale, having
117
+ made, import, or transfer of either its Contributions or its
118
+ Contributor Version.
119
+
120
+ 1.12. "Secondary License"
121
+ means either the GNU General Public License, Version 2.0, the GNU
122
+ Lesser General Public License, Version 2.1, the GNU Affero General
123
+ Public License, Version 3.0, or any later versions of those
124
+ licenses.
125
+
126
+ 1.13. "Source Code Form"
127
+ means the form of the work preferred for making modifications.
128
+
129
+ 1.14. "You" (or "Your")
130
+ means an individual or a legal entity exercising rights under this
131
+ License. For legal entities, "You" includes any entity that
132
+ controls, is controlled by, or is under common control with You. For
133
+ purposes of this definition, "control" means (a) the power, direct
134
+ or indirect, to cause the direction or management of such entity,
135
+ whether by contract or otherwise, or (b) ownership of more than
136
+ fifty percent (50%) of the outstanding shares or beneficial
137
+ ownership of such entity.
138
+
139
+ 2. License Grants and Conditions
140
+ --------------------------------
141
+
142
+ 2.1. Grants
143
+
144
+ Each Contributor hereby grants You a world-wide, royalty-free,
145
+ non-exclusive license:
146
+
147
+ (a) under intellectual property rights (other than patent or trademark)
148
+ Licensable by such Contributor to use, reproduce, make available,
149
+ modify, display, perform, distribute, and otherwise exploit its
150
+ Contributions, either on an unmodified basis, with Modifications, or
151
+ as part of a Larger Work; and
152
+
153
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
154
+ for sale, have made, import, and otherwise transfer either its
155
+ Contributions or its Contributor Version.
156
+
157
+ 2.2. Effective Date
158
+
159
+ The licenses granted in Section 2.1 with respect to any Contribution
160
+ become effective for each Contribution on the date the Contributor first
161
+ distributes such Contribution.
162
+
163
+ 2.3. Limitations on Grant Scope
164
+
165
+ The licenses granted in this Section 2 are the only rights granted under
166
+ this License. No additional rights or licenses will be implied from the
167
+ distribution or licensing of Covered Software under this License.
168
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
169
+ Contributor:
170
+
171
+ (a) for any code that a Contributor has removed from Covered Software;
172
+ or
173
+
174
+ (b) for infringements caused by: (i) Your and any other third party's
175
+ modifications of Covered Software, or (ii) the combination of its
176
+ Contributions with other software (except as part of its Contributor
177
+ Version); or
178
+
179
+ (c) under Patent Claims infringed by Covered Software in the absence of
180
+ its Contributions.
181
+
182
+ This License does not grant any rights in the trademarks, service marks,
183
+ or logos of any Contributor (except as may be necessary to comply with
184
+ the notice requirements in Section 3.4).
185
+
186
+ 2.4. Subsequent Licenses
187
+
188
+ No Contributor makes additional grants as a result of Your choice to
189
+ distribute the Covered Software under a subsequent version of this
190
+ License (see Section 10.2) or under the terms of a Secondary License (if
191
+ permitted under the terms of Section 3.3).
192
+
193
+ 2.5. Representation
194
+
195
+ Each Contributor represents that the Contributor believes its
196
+ Contributions are its original creation(s) or it has sufficient rights
197
+ to grant the rights to its Contributions conveyed by this License.
198
+
199
+ 2.6. Fair Use
200
+
201
+ This License is not intended to limit any rights You have under
202
+ applicable copyright doctrines of fair use, fair dealing, or other
203
+ equivalents.
204
+
205
+ 2.7. Conditions
206
+
207
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
208
+ in Section 2.1.
209
+
210
+ 3. Responsibilities
211
+ -------------------
212
+
213
+ 3.1. Distribution of Source Form
214
+
215
+ All distribution of Covered Software in Source Code Form, including any
216
+ Modifications that You create or to which You contribute, must be under
217
+ the terms of this License. You must inform recipients that the Source
218
+ Code Form of the Covered Software is governed by the terms of this
219
+ License, and how they can obtain a copy of this License. You may not
220
+ attempt to alter or restrict the recipients' rights in the Source Code
221
+ Form.
222
+
223
+ 3.2. Distribution of Executable Form
224
+
225
+ If You distribute Covered Software in Executable Form then:
226
+
227
+ (a) such Covered Software must also be made available in Source Code
228
+ Form, as described in Section 3.1, and You must inform recipients of
229
+ the Executable Form how they can obtain a copy of such Source Code
230
+ Form by reasonable means in a timely manner, at a charge no more
231
+ than the cost of distribution to the recipient; and
232
+
233
+ (b) You may distribute such Executable Form under the terms of this
234
+ License, or sublicense it under different terms, provided that the
235
+ license for the Executable Form does not attempt to limit or alter
236
+ the recipients' rights in the Source Code Form under this License.
237
+
238
+ 3.3. Distribution of a Larger Work
239
+
240
+ You may create and distribute a Larger Work under terms of Your choice,
241
+ provided that You also comply with the requirements of this License for
242
+ the Covered Software. If the Larger Work is a combination of Covered
243
+ Software with a work governed by one or more Secondary Licenses, and the
244
+ Covered Software is not Incompatible With Secondary Licenses, this
245
+ License permits You to additionally distribute such Covered Software
246
+ under the terms of such Secondary License(s), so that the recipient of
247
+ the Larger Work may, at their option, further distribute the Covered
248
+ Software under the terms of either this License or such Secondary
249
+ License(s).
250
+
251
+ 3.4. Notices
252
+
253
+ You may not remove or alter the substance of any license notices
254
+ (including copyright notices, patent notices, disclaimers of warranty,
255
+ or limitations of liability) contained within the Source Code Form of
256
+ the Covered Software, except that You may alter any license notices to
257
+ the extent required to remedy known factual inaccuracies.
258
+
259
+ 3.5. Application of Additional Terms
260
+
261
+ You may choose to offer, and to charge a fee for, warranty, support,
262
+ indemnity or liability obligations to one or more recipients of Covered
263
+ Software. However, You may do so only on Your own behalf, and not on
264
+ behalf of any Contributor. You must make it absolutely clear that any
265
+ such warranty, support, indemnity, or liability obligation is offered by
266
+ You alone, and You hereby agree to indemnify every Contributor for any
267
+ liability incurred by such Contributor as a result of warranty, support,
268
+ indemnity or liability terms You offer. You may include additional
269
+ disclaimers of warranty and limitations of liability specific to any
270
+ jurisdiction.
271
+
272
+ 4. Inability to Comply Due to Statute or Regulation
273
+ ---------------------------------------------------
274
+
275
+ If it is impossible for You to comply with any of the terms of this
276
+ License with respect to some or all of the Covered Software due to
277
+ statute, judicial order, or regulation then You must: (a) comply with
278
+ the terms of this License to the maximum extent possible; and (b)
279
+ describe the limitations and the code they affect. Such description must
280
+ be placed in a text file included with all distributions of the Covered
281
+ Software under this License. Except to the extent prohibited by statute
282
+ or regulation, such description must be sufficiently detailed for a
283
+ recipient of ordinary skill to be able to understand it.
284
+
285
+ 5. Termination
286
+ --------------
287
+
288
+ 5.1. The rights granted under this License will terminate automatically
289
+ if You fail to comply with any of its terms. However, if You become
290
+ compliant, then the rights granted under this License from a particular
291
+ Contributor are reinstated (a) provisionally, unless and until such
292
+ Contributor explicitly and finally terminates Your grants, and (b) on an
293
+ ongoing basis, if such Contributor fails to notify You of the
294
+ non-compliance by some reasonable means prior to 60 days after You have
295
+ come back into compliance. Moreover, Your grants from a particular
296
+ Contributor are reinstated on an ongoing basis if such Contributor
297
+ notifies You of the non-compliance by some reasonable means, this is the
298
+ first time You have received notice of non-compliance with this License
299
+ from such Contributor, and You become compliant prior to 30 days after
300
+ Your receipt of the notice.
301
+
302
+ 5.2. If You initiate litigation against any entity by asserting a patent
303
+ infringement claim (excluding declaratory judgment actions,
304
+ counter-claims, and cross-claims) alleging that a Contributor Version
305
+ directly or indirectly infringes any patent, then the rights granted to
306
+ You by any and all Contributors for the Covered Software under Section
307
+ 2.1 of this License shall terminate.
308
+
309
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
310
+ end user license agreements (excluding distributors and resellers) which
311
+ have been validly granted by You or Your distributors under this License
312
+ prior to termination shall survive termination.
313
+
314
+ ************************************************************************
315
+ * *
316
+ * 6. Disclaimer of Warranty *
317
+ * ------------------------- *
318
+ * *
319
+ * Covered Software is provided under this License on an "as is" *
320
+ * basis, without warranty of any kind, either expressed, implied, or *
321
+ * statutory, including, without limitation, warranties that the *
322
+ * Covered Software is free of defects, merchantable, fit for a *
323
+ * particular purpose or non-infringing. The entire risk as to the *
324
+ * quality and performance of the Covered Software is with You. *
325
+ * Should any Covered Software prove defective in any respect, You *
326
+ * (not any Contributor) assume the cost of any necessary servicing, *
327
+ * repair, or correction. This disclaimer of warranty constitutes an *
328
+ * essential part of this License. No use of any Covered Software is *
329
+ * authorized under this License except under this disclaimer. *
330
+ * *
331
+ ************************************************************************
332
+
333
+ ************************************************************************
334
+ * *
335
+ * 7. Limitation of Liability *
336
+ * -------------------------- *
337
+ * *
338
+ * Under no circumstances and under no legal theory, whether tort *
339
+ * (including negligence), contract, or otherwise, shall any *
340
+ * Contributor, or anyone who distributes Covered Software as *
341
+ * permitted above, be liable to You for any direct, indirect, *
342
+ * special, incidental, or consequential damages of any character *
343
+ * including, without limitation, damages for lost profits, loss of *
344
+ * goodwill, work stoppage, computer failure or malfunction, or any *
345
+ * and all other commercial damages or losses, even if such party *
346
+ * shall have been informed of the possibility of such damages. This *
347
+ * limitation of liability shall not apply to liability for death or *
348
+ * personal injury resulting from such party's negligence to the *
349
+ * extent applicable law prohibits such limitation. Some *
350
+ * jurisdictions do not allow the exclusion or limitation of *
351
+ * incidental or consequential damages, so this exclusion and *
352
+ * limitation may not apply to You. *
353
+ * *
354
+ ************************************************************************
355
+
356
+ 8. Litigation
357
+ -------------
358
+
359
+ Any litigation relating to this License may be brought only in the
360
+ courts of a jurisdiction where the defendant maintains its principal
361
+ place of business and such litigation shall be governed by laws of that
362
+ jurisdiction, without reference to its conflict-of-law provisions.
363
+ Nothing in this Section shall prevent a party's ability to bring
364
+ cross-claims or counter-claims.
365
+
366
+ 9. Miscellaneous
367
+ ----------------
368
+
369
+ This License represents the complete agreement concerning the subject
370
+ matter hereof. If any provision of this License is held to be
371
+ unenforceable, such provision shall be reformed only to the extent
372
+ necessary to make it enforceable. Any law or regulation which provides
373
+ that the language of a contract shall be construed against the drafter
374
+ shall not be used to construe this License against a Contributor.
375
+
376
+ 10. Versions of the License
377
+ ---------------------------
378
+
379
+ 10.1. New Versions
380
+
381
+ Mozilla Foundation is the license steward. Except as provided in Section
382
+ 10.3, no one other than the license steward has the right to modify or
383
+ publish new versions of this License. Each version will be given a
384
+ distinguishing version number.
385
+
386
+ 10.2. Effect of New Versions
387
+
388
+ You may distribute the Covered Software under the terms of the version
389
+ of the License under which You originally received the Covered Software,
390
+ or under the terms of any subsequent version published by the license
391
+ steward.
392
+
393
+ 10.3. Modified Versions
394
+
395
+ If you create software not governed by this License, and you want to
396
+ create a new license for such software, you may create and use a
397
+ modified version of this License if you rename the license and remove
398
+ any references to the name of the license steward (except to note that
399
+ such modified license differs from this License).
400
+
401
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
402
+ Licenses
403
+
404
+ If You choose to distribute Source Code Form that is Incompatible With
405
+ Secondary Licenses under the terms of this version of the License, the
406
+ notice described in Exhibit B of this License must be attached.
407
+
408
+ Exhibit A - Source Code Form License Notice
409
+ -------------------------------------------
410
+
411
+ This Source Code Form is subject to the terms of the Mozilla Public
412
+ License, v. 2.0. If a copy of the MPL was not distributed with this
413
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
414
+
415
+ If it is not possible or desirable to put the notice in a particular
416
+ file, then You may include the notice in a location (such as a LICENSE
417
+ file in a relevant directory) where a recipient would be likely to look
418
+ for such a notice.
419
+
420
+ You may add additional accurate notices of copyright ownership.
421
+
422
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
423
+ ---------------------------------------------------------
424
+
425
+ This Source Code Form is "Incompatible With Secondary Licenses", as
426
+ defined by the Mozilla Public License, v. 2.0.
427
+
428
+
429
+ SVG's feTurbulence
430
+ ==================
431
+
432
+ dist/thread/player/bitmap/turbulence.js derives from the reference
433
+ implementation of feTurbulence in Scalable Vector Graphics (SVG) 1.1
434
+ (Second Edition), https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement
435
+
436
+ Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or
437
+ document includes material copied from or derived from SVG 1.1, under the
438
+ W3C Software and Document License:
439
+ https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
440
+
441
+
442
+ @swf2es/native
443
+ ==============
444
+
445
+ dist/thread/native/ holds @swf2es/native's modules, with their WebAssembly. Its LICENSE.third-party:
446
+
447
+ Third-party code compiled into @swf2es/native's WebAssembly binaries, each
448
+ notice verbatim. The package's own code is under the Apache License 2.0.
449
+
450
+
451
+ @swf2es/native/compress: zlib
452
+ =============================
453
+
454
+ Copyright notice:
455
+
456
+ (C) 1995-2026 Jean-loup Gailly and Mark Adler
457
+
458
+ This software is provided 'as-is', without any express or implied
459
+ warranty. In no event will the authors be held liable for any damages
460
+ arising from the use of this software.
461
+
462
+ Permission is granted to anyone to use this software for any purpose,
463
+ including commercial applications, and to alter it and redistribute it
464
+ freely, subject to the following restrictions:
465
+
466
+ 1. The origin of this software must not be misrepresented; you must not
467
+ claim that you wrote the original software. If you use this software
468
+ in a product, an acknowledgment in the product documentation would be
469
+ appreciated but is not required.
470
+ 2. Altered source versions must be plainly marked as such, and must not be
471
+ misrepresented as being the original software.
472
+ 3. This notice may not be removed or altered from any source distribution.
473
+
474
+ Jean-loup Gailly Mark Adler
475
+ jloup@gzip.org madler@alumni.caltech.edu
476
+
477
+
478
+ @swf2es/native/compress: the LZMA SDK
479
+ =====================================
480
+
481
+ The LZMA encoder and decoder in this package's WebAssembly binary are
482
+ compiled from the LZMA SDK 26.05's C sources (C/LzmaEnc.c, C/LzFind.c,
483
+ C/LzmaDec.c and the headers they include), by Igor Pavlov, unchanged but
484
+ for line endings in swf2es/lzma-sdk. Each
485
+ of those files states:
486
+
487
+ Igor Pavlov : Public domain
488
+
489
+ and the SDK's DOC/lzma-sdk.txt says:
490
+
491
+ LZMA SDK is written and placed in the public domain by Igor Pavlov.
492
+
493
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute
494
+ the original LZMA SDK code, either in source code form or as a compiled
495
+ binary, for any purpose, commercial or non-commercial, and by any means.
496
+
497
+ This notice records where they come from.
498
+
499
+ https://www.7-zip.org/sdk.html
500
+
501
+
502
+ @swf2es/native/mp3: minimp3
503
+ ===========================
504
+
505
+ CC0 1.0 Universal
506
+
507
+ Statement of Purpose
508
+
509
+ The laws of most jurisdictions throughout the world automatically confer
510
+ exclusive Copyright and Related Rights (defined below) upon the creator and
511
+ subsequent owner(s) (each and all, an "owner") of an original work of
512
+ authorship and/or a database (each, a "Work").
513
+
514
+ Certain owners wish to permanently relinquish those rights to a Work for the
515
+ purpose of contributing to a commons of creative, cultural and scientific
516
+ works ("Commons") that the public can reliably and without fear of later
517
+ claims of infringement build upon, modify, incorporate in other works, reuse
518
+ and redistribute as freely as possible in any form whatsoever and for any
519
+ purposes, including without limitation commercial purposes. These owners may
520
+ contribute to the Commons to promote the ideal of a free culture and the
521
+ further production of creative, cultural and scientific works, or to gain
522
+ reputation or greater distribution for their Work in part through the use and
523
+ efforts of others.
524
+
525
+ For these and/or other purposes and motivations, and without any expectation
526
+ of additional consideration or compensation, the person associating CC0 with a
527
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
528
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
529
+ and publicly distribute the Work under its terms, with knowledge of his or her
530
+ Copyright and Related Rights in the Work and the meaning and intended legal
531
+ effect of CC0 on those rights.
532
+
533
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
534
+ protected by copyright and related or neighboring rights ("Copyright and
535
+ Related Rights"). Copyright and Related Rights include, but are not limited
536
+ to, the following:
537
+
538
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
539
+ and translate a Work;
540
+
541
+ ii. moral rights retained by the original author(s) and/or performer(s);
542
+
543
+ iii. publicity and privacy rights pertaining to a person's image or likeness
544
+ depicted in a Work;
545
+
546
+ iv. rights protecting against unfair competition in regards to a Work,
547
+ subject to the limitations in paragraph 4(a), below;
548
+
549
+ v. rights protecting the extraction, dissemination, use and reuse of data in
550
+ a Work;
551
+
552
+ vi. database rights (such as those arising under Directive 96/9/EC of the
553
+ European Parliament and of the Council of 11 March 1996 on the legal
554
+ protection of databases, and under any national implementation thereof,
555
+ including any amended or successor version of such directive); and
556
+
557
+ vii. other similar, equivalent or corresponding rights throughout the world
558
+ based on applicable law or treaty, and any national implementations thereof.
559
+
560
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
561
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
562
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
563
+ and Related Rights and associated claims and causes of action, whether now
564
+ known or unknown (including existing as well as future claims and causes of
565
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
566
+ duration provided by applicable law or treaty (including future time
567
+ extensions), (iii) in any current or future medium and for any number of
568
+ copies, and (iv) for any purpose whatsoever, including without limitation
569
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
570
+ the Waiver for the benefit of each member of the public at large and to the
571
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
572
+ shall not be subject to revocation, rescission, cancellation, termination, or
573
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
574
+ by the public as contemplated by Affirmer's express Statement of Purpose.
575
+
576
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
577
+ judged legally invalid or ineffective under applicable law, then the Waiver
578
+ shall be preserved to the maximum extent permitted taking into account
579
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
580
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
581
+ non transferable, non sublicensable, non exclusive, irrevocable and
582
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
583
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
584
+ provided by applicable law or treaty (including future time extensions), (iii)
585
+ in any current or future medium and for any number of copies, and (iv) for any
586
+ purpose whatsoever, including without limitation commercial, advertising or
587
+ promotional purposes (the "License"). The License shall be deemed effective as
588
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
589
+ License for any reason be judged legally invalid or ineffective under
590
+ applicable law, such partial invalidity or ineffectiveness shall not
591
+ invalidate the remainder of the License, and in such case Affirmer hereby
592
+ affirms that he or she will not (i) exercise any of his or her remaining
593
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
594
+ and causes of action with respect to the Work, in either case contrary to
595
+ Affirmer's express Statement of Purpose.
596
+
597
+ 4. Limitations and Disclaimers.
598
+
599
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
600
+ surrendered, licensed or otherwise affected by this document.
601
+
602
+ b. Affirmer offers the Work as-is and makes no representations or warranties
603
+ of any kind concerning the Work, express, implied, statutory or otherwise,
604
+ including without limitation warranties of title, merchantability, fitness
605
+ for a particular purpose, non infringement, or the absence of latent or
606
+ other defects, accuracy, or the present or absence of errors, whether or not
607
+ discoverable, all to the greatest extent permissible under applicable law.
608
+
609
+ c. Affirmer disclaims responsibility for clearing rights of other persons
610
+ that may apply to the Work or any use thereof, including without limitation
611
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
612
+ disclaims responsibility for obtaining any necessary consents, permissions
613
+ or other rights required for any use of the Work.
614
+
615
+ d. Affirmer understands and acknowledges that Creative Commons is not a
616
+ party to this document and has no duty or obligation with respect to this
617
+ CC0 or use of the Work.
618
+
619
+ For more information, please see
620
+ <http://creativecommons.org/publicdomain/zero/1.0/>
621
+
622
+
623
+
624
+ @swf2es/native/audio: FFmpeg's Nellymoser decoder
625
+ =================================================
626
+
627
+ src/audio/nellymoser.zig is translated from FFmpeg's
628
+ libavcodec/nellymoser.c and nellymoserdec.c, which carry this notice:
629
+
630
+ Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
631
+ 539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
632
+ 520e17cd55896441042b14df2566a6eb610ed444
633
+ Copyright (c) 2007 Loic Minier <lool at dooz.org>
634
+ Benjamin Larsson
635
+
636
+ Permission is hereby granted, free of charge, to any person obtaining a
637
+ copy of this software and associated documentation files (the "Software"),
638
+ to deal in the Software without restriction, including without limitation
639
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
640
+ and/or sell copies of the Software, and to permit persons to whom the
641
+ Software is furnished to do so, subject to the following conditions:
642
+
643
+ The above copyright notice and this permission notice shall be included in
644
+ all copies or substantial portions of the Software.
645
+
646
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
647
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
648
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
649
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
650
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
651
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
652
+ DEALINGS IN THE SOFTWARE.
653
+
654
+ (The three alphanumeric notices are the MD5 sums of the original
655
+ implementers' names, of nelly2pcm.)
656
+
657
+
658
+ @swf2es/native/render: libtess2
659
+ ===============================
660
+
661
+ ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
662
+ ** Copyright (C) [dates of first publication] Silicon Graphics, Inc.
663
+ ** All Rights Reserved.
664
+ **
665
+ ** Permission is hereby granted, free of charge, to any person obtaining a copy
666
+ ** of this software and associated documentation files (the "Software"), to deal
667
+ ** in the Software without restriction, including without limitation the rights
668
+ ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
669
+ ** of the Software, and to permit persons to whom the Software is furnished to do so,
670
+ ** subject to the following conditions:
671
+ **
672
+ ** The above copyright notice including the dates of first publication and either this
673
+ ** permission notice or a reference to http://oss.sgi.com/projects/FreeB/ shall be
674
+ ** included in all copies or substantial portions of the Software.
675
+ **
676
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
677
+ ** INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
678
+ ** PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SILICON GRAPHICS, INC.
679
+ ** BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
680
+ ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
681
+ ** OR OTHER DEALINGS IN THE SOFTWARE.
682
+ **
683
+ ** Except as contained in this notice, the name of Silicon Graphics, Inc. shall not
684
+ ** be used in advertising or otherwise to promote the sale, use or other dealings in
685
+ ** this Software without prior written authorization from Silicon Graphics, Inc.
686
+
687
+
688
+ @swf2es/native/render: SVG's feTurbulence (perlinNoise)
689
+ =======================================================
690
+
691
+ src/render/pixels.zig's noise for BitmapData.perlinNoise is derived from
692
+ the reference implementation of feTurbulence in Scalable Vector Graphics
693
+ (SVG) 1.1 (Second Edition),
694
+ https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement
695
+
696
+ Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or
697
+ document includes material copied from or derived from SVG 1.1, under the
698
+ W3C Software and Document License:
699
+ https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
700
+
701
+
702
+ @swf2es/native/atf: jxrlib
703
+ ==========================
704
+
705
+ BSD 2-Clause License
706
+
707
+ Copyright © Microsoft Corp.
708
+ All rights reserved.
709
+
710
+ Redistribution and use in source and binary forms, with or without
711
+ modification, are permitted provided that the following conditions are met:
712
+
713
+ * Redistributions of source code must retain the above copyright notice, this
714
+ list of conditions and the following disclaimer.
715
+
716
+ * Redistributions in binary form must reproduce the above copyright notice,
717
+ this list of conditions and the following disclaimer in the documentation
718
+ and/or other materials provided with the distribution.
719
+
720
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
721
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
722
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
723
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
724
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
725
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
726
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
727
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
728
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
729
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
730
+
731
+
732
+ @swf2es/native: Zig's standard library and compiler-rt
733
+ ======================================================
734
+
735
+ Every binary holds code from Zig 0.17.0 (https://ziglang.org), compiled in
736
+ by the pinned Zig that builds it: parts of its standard library, and
737
+ compiler-rt's routines the C calls (memcmp, strlen). Zig's licence:
738
+
739
+ The MIT License (Expat)
740
+
741
+ Copyright (c) Zig contributors
742
+
743
+ Permission is hereby granted, free of charge, to any person obtaining a copy
744
+ of this software and associated documentation files (the "Software"), to deal
745
+ in the Software without restriction, including without limitation the rights
746
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
747
+ copies of the Software, and to permit persons to whom the Software is
748
+ furnished to do so, subject to the following conditions:
749
+
750
+ The above copyright notice and this permission notice shall be included in
751
+ all copies or substantial portions of the Software.
752
+
753
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
754
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
755
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
756
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
757
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
758
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
759
+ THE SOFTWARE.